|
|
import{g as zue,a as Fn,_ as gGe}from"./index.1762932289438.js";import{_ as Cv,A as mc,B as wu,C as v1,D as pGe,E as que,F as fO,G as vGe,H as _Ge}from"./echarts.1762932289438.js";import{d as gc}from"./dayjs.min.1762932289438.js";import{k as CGe,r as mO,s as SGe,O as bGe,ah as yGe,l as EGe,o as RGe}from"./vue.1762932289438.js";function AGe(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Yue={exports:{}},Bi={};/** |
|
|
* @license React |
|
|
* react.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var EC=Symbol.for("react.element"),wGe=Symbol.for("react.portal"),DGe=Symbol.for("react.fragment"),IGe=Symbol.for("react.strict_mode"),PGe=Symbol.for("react.profiler"),MGe=Symbol.for("react.provider"),TGe=Symbol.for("react.context"),LGe=Symbol.for("react.forward_ref"),xGe=Symbol.for("react.suspense"),OGe=Symbol.for("react.memo"),NGe=Symbol.for("react.lazy"),vie=Symbol.iterator;function kGe(t){return t===null||typeof t!="object"?null:(t=vie&&t[vie]||t["@@iterator"],typeof t=="function"?t:null)}var Xue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gue=Object.assign,Que={};function y7(t,e,n){this.props=t,this.context=e,this.refs=Que,this.updater=n||Xue}y7.prototype.isReactComponent={};y7.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};y7.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Kue(){}Kue.prototype=y7.prototype;function mX(t,e,n){this.props=t,this.context=e,this.refs=Que,this.updater=n||Xue}var gX=mX.prototype=new Kue;gX.constructor=mX;Gue(gX,y7.prototype);gX.isPureReactComponent=!0;var _ie=Array.isArray,Zue=Object.prototype.hasOwnProperty,pX={current:null},Jue={key:!0,ref:!0,__self:!0,__source:!0};function ece(t,e,n){var r,i={},a=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)Zue.call(e,r)&&!Jue.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:EC,type:t,key:a,ref:o,props:i,_owner:pX.current}}function FGe(t,e){return{$$typeof:EC,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function vX(t){return typeof t=="object"&&t!==null&&t.$$typeof===EC}function VGe(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Cie=/\/+/g;function gO(t,e){return typeof t=="object"&&t!==null&&t.key!=null?VGe(""+t.key):e.toString(36)}function uE(t,e,n,r,i){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case EC:case wGe:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+gO(o,0):r,_ie(i)?(n="",t!=null&&(n=t.replace(Cie,"$&/")+"/"),uE(i,e,n,"",function(u){return u})):i!=null&&(vX(i)&&(i=FGe(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Cie,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",_ie(t))for(var s=0;s<t.length;s++){a=t[s];var l=r+gO(a,s);o+=uE(a,e,n,l,i)}else if(l=kGe(t),typeof l=="function")for(t=l.call(t),s=0;!(a=t.next()).done;)a=a.value,l=r+gO(a,s++),o+=uE(a,e,n,l,i);else if(a==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Ib(t,e,n){if(t==null)return t;var r=[],i=0;return uE(t,r,"","",function(a){return e.call(n,a,i++)}),r}function BGe(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Xl={current:null},cE={transition:null},UGe={ReactCurrentDispatcher:Xl,ReactCurrentBatchConfig:cE,ReactCurrentOwner:pX};function tce(){throw Error("act(...) is not supported in production builds of React.")}Bi.Children={map:Ib,forEach:function(t,e,n){Ib(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ib(t,function(){e++}),e},toArray:function(t){return Ib(t,function(e){return e})||[]},only:function(t){if(!vX(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Bi.Component=y7;Bi.Fragment=DGe;Bi.Profiler=PGe;Bi.PureComponent=mX;Bi.StrictMode=IGe;Bi.Suspense=xGe;Bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UGe;Bi.act=tce;Bi.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Gue({},t.props),i=t.key,a=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(a=e.ref,o=pX.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)Zue.call(e,l)&&!Jue.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&s!==void 0?s[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:EC,type:t.type,key:i,ref:a,props:r,_owner:o}};Bi.createContext=function(t){return t={$$typeof:TGe,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:MGe,_context:t},t.Consumer=t};Bi.createElement=ece;Bi.createFactory=function(t){var e=ece.bind(null,t);return e.type=t,e};Bi.createRef=function(){return{current:null}};Bi.forwardRef=function(t){return{$$typeof:LGe,render:t}};Bi.isValidElement=vX;Bi.lazy=function(t){return{$$typeof:NGe,_payload:{_status:-1,_result:t},_init:BGe}};Bi.memo=function(t,e){return{$$typeof:OGe,type:t,compare:e===void 0?null:e}};Bi.startTransition=function(t){var e=cE.transition;cE.transition={};try{t()}finally{cE.transition=e}};Bi.unstable_act=tce;Bi.useCallback=function(t,e){return Xl.current.useCallback(t,e)};Bi.useContext=function(t){return Xl.current.useContext(t)};Bi.useDebugValue=function(){};Bi.useDeferredValue=function(t){return Xl.current.useDeferredValue(t)};Bi.useEffect=function(t,e){return Xl.current.useEffect(t,e)};Bi.useId=function(){return Xl.current.useId()};Bi.useImperativeHandle=function(t,e,n){return Xl.current.useImperativeHandle(t,e,n)};Bi.useInsertionEffect=function(t,e){return Xl.current.useInsertionEffect(t,e)};Bi.useLayoutEffect=function(t,e){return Xl.current.useLayoutEffect(t,e)};Bi.useMemo=function(t,e){return Xl.current.useMemo(t,e)};Bi.useReducer=function(t,e,n){return Xl.current.useReducer(t,e,n)};Bi.useRef=function(t){return Xl.current.useRef(t)};Bi.useState=function(t){return Xl.current.useState(t)};Bi.useSyncExternalStore=function(t,e,n){return Xl.current.useSyncExternalStore(t,e,n)};Bi.useTransition=function(){return Xl.current.useTransition()};Bi.version="18.3.1";Yue.exports=Bi;var E=Yue.exports;const Re=zue(E),HGe=AGe({__proto__:null,default:Re},[E]);function Ca(t){return typeof t=="function"}function _X(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var pO=_X(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription: |
|
|
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(` |
|
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function Sv(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var bl=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Cv(o),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(Ca(c))try{c()}catch(g){a=g instanceof pO?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Cv(d),f=h.next();!f.done;f=h.next()){var m=f.value;try{Sie(m)}catch(g){a=a??[],g instanceof pO?a=mc(mc([],wu(a)),wu(g.errors)):a.push(g)}}}catch(g){r={error:g}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(a)throw new pO(a)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Sie(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Sv(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Sv(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),nce=bl.EMPTY;function rce(t){return t instanceof bl||t&&"closed"in t&&Ca(t.remove)&&Ca(t.add)&&Ca(t.unsubscribe)}function Sie(t){Ca(t)?t():t.unsubscribe()}var jGe={Promise:void 0},$Ge={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,mc([t,e],wu(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function ice(t){$Ge.setTimeout(function(){throw t})}function XA(){}function dE(t){t()}var CX=function(t){v1(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,rce(n)&&n.add(r)):r.destination=qGe,r}return e.create=function(n,r,i){return new p4(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(bl),WGe=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){Pb(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){Pb(r)}else Pb(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Pb(n)}},t}(),p4=function(t){v1(e,t);function e(n,r,i){var a=t.call(this)||this,o;return Ca(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,a.destination=new WGe(o),a}return e}(CX);function Pb(t){ice(t)}function zGe(t){throw t}var qGe={closed:!0,next:XA,error:zGe,complete:XA},SX=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Pp(t){return t}function YGe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ace(t)}function ace(t){return t.length===0?Pp:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var On=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,a=GGe(e)?e:new p4(e,n,r);return dE(function(){var o=i,s=o.operator,l=o.source;a.add(s?s.call(a,l):l?i._subscribe(a):i._trySubscribe(a))}),a},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=bie(n),new n(function(i,a){var o=new p4({next:function(s){try{e(s)}catch(l){a(l),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[SX]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ace(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=bie(e),new e(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},t.create=function(e){return new t(e)},t}();function bie(t){var e;return(e=t??jGe.Promise)!==null&&e!==void 0?e:Promise}function XGe(t){return t&&Ca(t.next)&&Ca(t.error)&&Ca(t.complete)}function GGe(t){return t&&t instanceof CX||XGe(t)&&rce(t)}function QGe(t){return Ca(t==null?void 0:t.lift)}function nl(t){return function(e){if(QGe(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ts(t,e,n,r,i){return new KGe(t,e,n,r,i)}var KGe=function(t){v1(e,t);function e(n,r,i,a,o,s){var l=t.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=s,l._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:t.prototype._next,l._error=a?function(u){try{a(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:t.prototype._error,l._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,l}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(CX),yie={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e(function(i){n=void 0,t(i)});return new bl(function(){return n==null?void 0:n(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return requestAnimationFrame.apply(void 0,mc([],wu(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,mc([],wu(t)))},delegate:void 0},ZGe=_X(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zt=function(t){v1(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new Eie(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new ZGe},e.prototype.next=function(n){var r=this;dE(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Cv(r.currentObservers),s=o.next();!s.done;s=o.next()){var l=s.value;l.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;dE(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;dE(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?nce:(this.currentObservers=null,s.push(n),new bl(function(){r.currentObservers=null,Sv(s,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},e.prototype.asObservable=function(){var n=new On;return n.source=this,n},e.create=function(n,r){return new Eie(n,r)},e}(On),Eie=function(t){v1(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:nce},e}(Zt),Pn=function(t){v1(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(Zt),bX={now:function(){return(bX.delegate||Date).now()},delegate:void 0},JGe=function(t){v1(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=bX);var a=t.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return e.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;i||(a.push(n),!o&&a.push(s.now()+l)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,s=o.slice(),l=0;l<s.length&&!n.closed;l+=a?1:2)n.next(s[l]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,a=n._buffer,o=n._infiniteTimeWindow,s=(o?1:2)*r;if(r<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var l=i.now(),u=0,c=1;c<a.length&&a[c]<=l;c+=2)u=c;u&&a.splice(0,u+1)}},e}(Zt),eQe=function(t){v1(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e}(bl),Rie={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,mc([t,e],wu(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},oce=function(t){v1(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),Rie.setInterval(n.flush.bind(n,this),i)},e.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Rie.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var i=!1,a;try{this.work(n)}catch(o){i=!0,a=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,a=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Sv(a,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(eQe),Aie=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=bX.now,t}(),sce=function(t){v1(e,t);function e(n,r){r===void 0&&(r=Aie.now);var i=t.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},e}(Aie),NP=new sce(oce),tQe=NP,nQe=function(t){v1(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=yie.requestAnimationFrame(function(){return n.flush(void 0)})))},e.prototype.recycleAsyncId=function(n,r,i){var a;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var o=n.actions;r!=null&&r===n._scheduled&&((a=o[o.length-1])===null||a===void 0?void 0:a.id)!==r&&(yie.cancelAnimationFrame(r),n._scheduled=void 0)},e}(oce),rQe=function(t){v1(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r;n?r=n.id:(r=this._scheduled,this._scheduled=void 0);var i=this.actions,a;n=n||i.shift();do if(a=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,a){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw a}},e}(sce),eH=new rQe(nQe),GA=new On(function(t){return t.complete()});function lce(t){return t&&Ca(t.schedule)}function yX(t){return t[t.length-1]}function EX(t){return Ca(yX(t))?t.pop():void 0}function E7(t){return lce(yX(t))?t.pop():void 0}function iQe(t,e){return typeof yX(t)=="number"?t.pop():e}var RX=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function uce(t){return Ca(t==null?void 0:t.then)}function cce(t){return Ca(t[SX])}function dce(t){return Symbol.asyncIterator&&Ca(t==null?void 0:t[Symbol.asyncIterator])}function hce(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function aQe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fce=aQe();function mce(t){return Ca(t==null?void 0:t[fce])}function gce(t){return pGe(this,arguments,function(){var n,r,i,a;return que(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,fO(n.read())];case 3:return r=o.sent(),i=r.value,a=r.done,a?[4,fO(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,fO(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function pce(t){return Ca(t==null?void 0:t.getReader)}function yc(t){if(t instanceof On)return t;if(t!=null){if(cce(t))return oQe(t);if(RX(t))return sQe(t);if(uce(t))return lQe(t);if(dce(t))return vce(t);if(mce(t))return uQe(t);if(pce(t))return cQe(t)}throw hce(t)}function oQe(t){return new On(function(e){var n=t[SX]();if(Ca(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function sQe(t){return new On(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function lQe(t){return new On(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,ice)})}function uQe(t){return new On(function(e){var n,r;try{for(var i=Cv(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()})}function vce(t){return new On(function(e){dQe(t,e).catch(function(n){return e.error(n)})})}function cQe(t){return vce(gce(t))}function dQe(t,e){var n,r,i,a;return vGe(this,void 0,void 0,function(){var o,s;return que(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=_Ge(t),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),i={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function qd(t,e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(a),!i)return a}function _ce(t,e){return e===void 0&&(e=0),nl(function(n,r){n.subscribe(Ts(r,function(i){return qd(r,t,function(){return r.next(i)},e)},function(){return qd(r,t,function(){return r.complete()},e)},function(i){return qd(r,t,function(){return r.error(i)},e)}))})}function Cce(t,e){return e===void 0&&(e=0),nl(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function hQe(t,e){return yc(t).pipe(Cce(e),_ce(e))}function fQe(t,e){return yc(t).pipe(Cce(e),_ce(e))}function mQe(t,e){return new On(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function gQe(t,e){return new On(function(n){var r;return qd(n,e,function(){r=t[fce](),qd(n,e,function(){var i,a,o;try{i=r.next(),a=i.value,o=i.done}catch(s){n.error(s);return}o?n.complete():n.next(a)},0,!0)}),function(){return Ca(r==null?void 0:r.return)&&r.return()}})}function Sce(t,e){if(!t)throw new Error("Iterable cannot be null");return new On(function(n){qd(n,e,function(){var r=t[Symbol.asyncIterator]();qd(n,e,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function pQe(t,e){return Sce(gce(t),e)}function vQe(t,e){if(t!=null){if(cce(t))return hQe(t,e);if(RX(t))return mQe(t,e);if(uce(t))return fQe(t,e);if(dce(t))return Sce(t,e);if(mce(t))return gQe(t,e);if(pce(t))return pQe(t,e)}throw hce(t)}function RC(t,e){return e?vQe(t,e):yc(t)}function Hr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=E7(t);return RC(t,n)}function bv(t){return!!t&&(t instanceof On||Ca(t.lift)&&Ca(t.subscribe))}var _Qe=_X(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function CQe(t,e){return new Promise(function(n,r){var i=new p4({next:function(a){n(a),i.unsubscribe()},error:r,complete:function(){r(new _Qe)}});t.subscribe(i)})}function SQe(t){return t instanceof Date&&!isNaN(t)}function pr(t,e){return nl(function(n,r){var i=0;n.subscribe(Ts(r,function(a){r.next(t.call(e,a,i++))}))})}var bQe=Array.isArray;function yQe(t,e){return bQe(e)?t.apply(void 0,mc([],wu(e))):t(e)}function AX(t){return pr(function(e){return yQe(t,e)})}var EQe=Array.isArray,RQe=Object.getPrototypeOf,AQe=Object.prototype,wQe=Object.keys;function DQe(t){if(t.length===1){var e=t[0];if(EQe(e))return{args:e,keys:null};if(IQe(e)){var n=wQe(e);return{args:n.map(function(r){return e[r]}),keys:n}}}return{args:t,keys:null}}function IQe(t){return t&&typeof t=="object"&&RQe(t)===AQe}function PQe(t,e){return t.reduce(function(n,r,i){return n[r]=e[i],n},{})}function Sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=E7(t),r=EX(t),i=DQe(t),a=i.args,o=i.keys;if(a.length===0)return RC([],n);var s=new On(bce(a,n,o?function(l){return PQe(o,l)}:Pp));return r?s.pipe(AX(r)):s}function bce(t,e,n){return n===void 0&&(n=Pp),function(r){wie(e,function(){for(var i=t.length,a=new Array(i),o=i,s=i,l=function(c){wie(e,function(){var d=RC(t[c],e),h=!1;d.subscribe(Ts(r,function(f){a[c]=f,h||(h=!0,s--),s||r.next(n(a.slice()))},function(){--o||r.complete()}))},r)},u=0;u<i;u++)l(u)},r)}}function wie(t,e,n){t?qd(n,t,e):e()}function MQe(t,e,n,r,i,a,o,s){var l=[],u=0,c=0,d=!1,h=function(){d&&!l.length&&!u&&e.complete()},f=function(g){return u<r?m(g):l.push(g)},m=function(g){u++;var p=!1;yc(n(g,c++)).subscribe(Ts(e,function(v){e.next(v)},function(){p=!0},void 0,function(){if(p)try{u--;for(var v=function(){var _=l.shift();o||m(_)};l.length&&u<r;)v();h()}catch(_){e.error(_)}}))};return t.subscribe(Ts(e,f,function(){d=!0,h()})),function(){}}function kP(t,e,n){return n===void 0&&(n=1/0),Ca(e)?kP(function(r,i){return pr(function(a,o){return e(r,a,i,o)})(yc(t(r,i)))},n):(typeof e=="number"&&(n=e),nl(function(r,i){return MQe(r,i,t,n)}))}function yce(t){return t===void 0&&(t=1/0),kP(Pp,t)}function TQe(){return yce(1)}function Die(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return TQe()(RC(t,E7(t)))}var LQe=["addListener","removeListener"],xQe=["addEventListener","removeEventListener"],OQe=["on","off"];function su(t,e,n,r){if(Ca(n)&&(r=n,n=void 0),r)return su(t,e,n).pipe(AX(r));var i=wu(FQe(t)?xQe.map(function(s){return function(l){return t[s](e,l,n)}}):NQe(t)?LQe.map(Iie(t,e)):kQe(t)?OQe.map(Iie(t,e)):[],2),a=i[0],o=i[1];if(!a&&RX(t))return kP(function(s){return su(s,e,n)})(yc(t));if(!a)throw new TypeError("Invalid event target");return new On(function(s){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return s.next(1<u.length?u:u[0])};return a(l),function(){return o(l)}})}function Iie(t,e){return function(n){return function(r){return t[n](e,r)}}}function NQe(t){return Ca(t.addListener)&&Ca(t.removeListener)}function kQe(t){return Ca(t.on)&&Ca(t.off)}function FQe(t){return Ca(t.addEventListener)&&Ca(t.removeEventListener)}function VQe(t,e,n){t===void 0&&(t=0),n===void 0&&(n=tQe);var r=-1;return e!=null&&(lce(e)?n=e:r=e),new On(function(i){var a=SQe(t)?+t-n.now():t;a<0&&(a=0);var o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},a)})}function Qa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=E7(t),r=iQe(t,1/0),i=t;return i.length?i.length===1?yc(i[0]):yce(r)(RC(i,n)):GA}var BQe=Array.isArray;function UQe(t){return t.length===1&&BQe(t[0])?t[0]:t}function mo(t,e){return nl(function(n,r){var i=0;n.subscribe(Ts(r,function(a){return t.call(e,a,i++)&&r.next(a)}))})}function FP(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=(e=E7(r))!==null&&e!==void 0?e:NP,o=(n=r[0])!==null&&n!==void 0?n:null,s=r[1]||1/0;return nl(function(l,u){var c=[],d=!1,h=function(g){var p=g.buffer,v=g.subs;v.unsubscribe(),Sv(c,g),u.next(p),d&&f()},f=function(){if(c){var g=new bl;u.add(g);var p=[],v={buffer:p,subs:g};c.push(v),qd(g,a,function(){return h(v)},t)}};o!==null&&o>=0?qd(u,a,f,o,!0):d=!0,f();var m=Ts(u,function(g){var p,v,_=c.slice();try{for(var C=Cv(_),S=C.next();!S.done;S=C.next()){var b=S.value,y=b.buffer;y.push(g),s<=y.length&&h(b)}}catch(A){p={error:A}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(p)throw p.error}}},function(){for(;c!=null&&c.length;)u.next(c.shift().buffer);m==null||m.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(m)})}function Ece(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=EX(t);return n?YGe(Ece.apply(void 0,mc([],wu(t))),AX(n)):nl(function(r,i){bce(mc([r],wu(UQe(t))))(i)})}function $f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ece.apply(void 0,mc([],wu(t)))}function ah(t,e){return e===void 0&&(e=NP),nl(function(n,r){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var u=a;a=null,r.next(u)}};function l(){var u=o+t,c=e.now();if(c<u){i=this.schedule(void 0,u-c),r.add(i);return}s()}n.subscribe(Ts(r,function(u){a=u,o=e.now(),i||(i=e.schedule(l,t),r.add(i))},function(){s(),r.complete()},void 0,function(){a=i=null}))})}function Rce(t){return t<=0?function(){return GA}:nl(function(e,n){var r=0;e.subscribe(Ts(n,function(i){++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Hl(t,e){return e===void 0&&(e=Pp),t=t??HQe,nl(function(n,r){var i,a=!0;n.subscribe(Ts(r,function(o){var s=e(o);(a||!t(i,s))&&(a=!1,i=s,r.next(o))}))})}function HQe(t,e){return t===e}function jQe(t,e){return Hl(function(n,r){return n[t]===r[t]})}function $Qe(t){t===void 0&&(t={});var e=t.connector,n=e===void 0?function(){return new Zt}:e,r=t.resetOnError,i=r===void 0?!0:r,a=t.resetOnComplete,o=a===void 0?!0:a,s=t.resetOnRefCountZero,l=s===void 0?!0:s;return function(u){var c,d,h,f=0,m=!1,g=!1,p=function(){d==null||d.unsubscribe(),d=void 0},v=function(){p(),c=h=void 0,m=g=!1},_=function(){var C=c;v(),C==null||C.unsubscribe()};return nl(function(C,S){f++,!g&&!m&&p();var b=h=h??n();S.add(function(){f--,f===0&&!g&&!m&&(d=vO(_,l))}),b.subscribe(S),!c&&f>0&&(c=new p4({next:function(y){return b.next(y)},error:function(y){g=!0,p(),d=vO(v,i,y),b.error(y)},complete:function(){m=!0,p(),d=vO(v,o),b.complete()}}),yc(C).subscribe(c))})(u)}}function vO(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(e===!0){t();return}if(e!==!1){var i=new p4({next:function(){i.unsubscribe(),t()}});return yc(e.apply(void 0,mc([],wu(n)))).subscribe(i)}}function VP(t,e,n){var r,i=!1;return r=t,$Qe({connector:function(){return new JGe(r,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function wX(t){return mo(function(e,n){return t<=n})}function Du(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=E7(t);return nl(function(r,i){(n?Die(t,r,n):Die(t,r)).subscribe(i)})}function Ei(t,e){return nl(function(n,r){var i=null,a=0,o=!1,s=function(){return o&&!i&&r.complete()};n.subscribe(Ts(r,function(l){i==null||i.unsubscribe();var u=0,c=a++;yc(t(l,c)).subscribe(i=Ts(r,function(d){return r.next(e?e(l,d,c,u++):d)},function(){i=null,s()}))},function(){o=!0,s()}))})}function _a(t){return nl(function(e,n){yc(t).subscribe(Ts(n,function(){return n.complete()},XA)),!n.closed&&e.subscribe(n)})}function WQe(t,e,n){var r=Ca(t)||e||n?{next:t,error:e,complete:n}:t;return r?nl(function(i,a){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var s=!0;i.subscribe(Ts(a,function(l){var u;(u=r.next)===null||u===void 0||u.call(r,l),a.next(l)},function(){var l;s=!1,(l=r.complete)===null||l===void 0||l.call(r),a.complete()},function(l){var u;s=!1,(u=r.error)===null||u===void 0||u.call(r,l),a.error(l)},function(){var l,u;s&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Pp}function zQe(t,e){return nl(function(n,r){var i=e??{},a=i.leading,o=a===void 0?!0:a,s=i.trailing,l=s===void 0?!1:s,u=!1,c=null,d=null,h=!1,f=function(){d==null||d.unsubscribe(),d=null,l&&(p(),h&&r.complete())},m=function(){d=null,h&&r.complete()},g=function(v){return d=yc(t(v)).subscribe(Ts(r,f,m))},p=function(){if(u){u=!1;var v=c;c=null,r.next(v),!h&&g(v)}};n.subscribe(Ts(r,function(v){u=!0,c=v,!(d&&!d.closed)&&(o?p():g(v))},function(){h=!0,!(l&&u&&d&&!d.closed)&&r.complete()}))})}function zg(t,e,n){e===void 0&&(e=NP);var r=VQe(t,e);return zQe(function(){return r},n)}function qQe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=EX(t);return nl(function(r,i){for(var a=t.length,o=new Array(a),s=t.map(function(){return!1}),l=!1,u=function(d){yc(t[d]).subscribe(Ts(i,function(h){o[d]=h,!l&&!s[d]&&(s[d]=!0,(l=s.every(Pp))&&(s=null))},XA))},c=0;c<a;c++)u(c);r.subscribe(Ts(i,function(d){if(l){var h=mc([d],wu(o));i.next(n?n.apply(void 0,mc([],wu(h))):h)}}))})}var Ace=Object.defineProperty,YQe=(t,e,n)=>e in t?Ace(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e)=>Ace(t,"name",{value:e,configurable:!0}),Xe=(t,e,n)=>YQe(t,typeof e!="symbol"?e+"":e,n);function XQe(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:j(()=>r[i],"get")})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}j(XQe,"_mergeNamespaces");function wce(){Dce()}j(wce,"installShims");const Mb=typeof global<"u"?global:typeof self<"u"?self:window;function Dce(){typeof Mb.requestIdleCallback!="function"&&(Mb.requestIdleCallback=j(function(t){const e=Date.now();return setTimeout(j(function(){const n=Math.max(0,50-(Date.now()-e));t({didTimeout:n===0,timeRemaining(){return n}})},"rICCallback"),1)},"shimRIC")),typeof Mb.cancelIdleCallback!="function"&&(Mb.cancelIdleCallback=j(function(t){clearTimeout(t)},"shimCancelRIC"))}j(Dce,"installRequestIdleCallback");function Zu(t,e){const n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1}j(Zu,"remove");function GQe(t){const e=new Set,n=[];for(const r of t)e.has(r)||(e.add(r),n.push(r));return n}j(GQe,"dedupe");function Ice(t,e){for(let n=t.length-1;n>-1;n--){const r=t[n];if(e(r,n))return r}return null}j(Ice,"findLast");function QQe(t,e){if(t.length===0)return t;const n=e%t.length;return t.slice(n).concat(t.slice(0,n))}j(QQe,"rotate");function KQe(t,e){const n=new Map;return t.forEach(r=>{const i=e(r);let a=n.get(i);n.has(i)||(a=[],n.set(i,a)),a.push(r)}),n}j(KQe,"groupBy");function ZQe(t){return Array.isArray(t)?t:[t]}j(ZQe,"makeArray");function DX(t){return["true","false"].includes(t.toLowerCase())}j(DX,"isBooleanString");const AC="__INTERNAL_EDITOR__",Yo=`${AC}DOCS_NORMAL`,Ki=`${AC}DOCS_FORMULA_BAR`,IX=`${AC}ZEN_EDITOR`,Sd=`\r |
|
|
`;function qg(t){return`${AC}${t}`}j(qg,"createInternalEditorID");function oh(t){return t.startsWith(AC)}j(oh,"isInternalEditorID");var PX=Symbol("$$IDENTIFIER_DECORATOR");function Pce(t){return t&&t[PX]===!0}j(Pce,"isIdentifierDecorator");function MX(t){return typeof t=="function"}j(MX,"isCtor");function QA(t){return!!(t&&typeof t.useClass<"u")}j(QA,"isClassDependencyItem");function tH(t){return!!(t&&typeof t.useFactory<"u")}j(tH,"isFactoryDependencyItem");function nH(t){return!!(t&&typeof t.useValue<"u")}j(nH,"isValueDependencyItem");function Mce(t){return!!(t&&typeof t.useExisting<"u")}j(Mce,"isExistingDependencyItem");function rH(t){return!!(t&&typeof t.useAsync<"u")}j(rH,"isAsyncDependencyItem");var Tce=Symbol("AsyncHook");function hE(t){return!!(t&&t.__symbol===Tce)}j(hE,"isAsyncHook");function Iu(t){return typeof t>"u"?"undefined":MX(t)&&!t[PX]?t.name:t.toString()}j(Iu,"prettyPrintIdentifier");var va;(function(t){t.MANY="many",t.OPTIONAL="optional",t.REQUIRED="required"})(va||(va={}));var af;(function(t){t.SELF="self",t.SKIP_SELF="skipSelf"})(af||(af={}));var JQe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=function(t){JQe(e,t);function e(n){return t.call(this,"[redi]: ".concat(n))||this}return j(e,"RediError"),e}(Error),Lce=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pie=Symbol("$$TARGET"),iH=Symbol("$$DEPENDENCIES"),eKe=function(t){Lce(e,t);function e(n,r){var i="Could not find dependency registered on the ".concat(n,' (indexed) parameter of the constructor of "').concat(Iu(r),'".');return t.call(this,i)||this}return j(e,"DependencyDescriptorNotFoundError"),e}(rl),xce=function(t){Lce(e,t);function e(n,r){var i='It seems that you register "undefined" as dependency on the '.concat(r+1,' parameter of "').concat(Iu(n),'". Please make sure that there is not cyclic dependency among your TypeScript files, or consider using "forwardRef". For more info please visit our website https://redi.wendell.fun/docs/debug#could-not-find-dependency-registered-on');return t.call(this,i)||this}return j(e,"IdentifierUndefinedError"),e}(rl);function TX(t){var e=t;return e[iH]||[]}j(TX,"getDependencies");function BP(t,e){var n=TX(t),r=n.find(function(i){return i.paramIndex===e});if(!r)throw new eKe(e,t);return r}j(BP,"getDependencyByIndex");function UP(t,e,n,r,i){r===void 0&&(r=va.REQUIRED);var a={paramIndex:n,identifier:e,quantity:r,lookUp:i,withNew:!1};if(typeof e>"u")throw new xce(t,n);var o=t;o[Pie]===o?o[iH].push(a):(o[iH]=[a],o[Pie]=o)}j(UP,"setDependency");var Mie=new Set;function er(t){if(Mie.has(t))throw new rl('Identifier "'.concat(t,'" already exists.'));Mie.add(t);var e=j(function(n,r,i){UP(n,e,i)},"decorator");return e.toString=function(){return t},e[PX]=!0,e}j(er,"createIdentifier");var tKe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nKe=function(t){tKe(e,t);function e(n,r,i){var a='Expect "'.concat(r,'" dependency items for id "').concat(Iu(n),'" but get ').concat(i,".");return t.call(this,a)||this}return j(e,"QuantityCheckError"),e}(rl);function LX(t,e,n){if(e===va.OPTIONAL&&n>1||e===va.REQUIRED&&n!==1)throw new nKe(t,e,n)}j(LX,"checkQuantity");function Oce(t,e){return t===va.MANY?e:e[0]}j(Oce,"retrieveQuantity");function Nce(t,e,n){var r=BP(t,e);r.quantity=n}j(Nce,"changeQuantity");function HP(t){return j(function e(n){return this instanceof e?this:function(r,i,a){if(n)UP(r,n,a,t);else{if(t===va.REQUIRED)throw new xce(r,a);Nce(r,a,t)}}},"decoratorFactory")}j(HP,"quantifyDecoratorFactoryProducer");var rKe=HP(va.MANY),_1=HP(va.OPTIONAL),se=HP(va.REQUIRED);function iKe(t){return{unwrap:t}}j(iKe,"forwardRef");function kce(t){return!!t&&typeof t.unwrap=="function"}j(kce,"isForwardRef");function Fce(t){return kce(t)?t.unwrap():t}j(Fce,"normalizeForwardRef");function aH(t){return!!t&&typeof t.dispose=="function"}j(aH,"isDisposable");var Vce=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function Bce(t){return t.length===1}j(Bce,"isBareClassDependency");var jP=[];function oH(t){jP.push(t)}j(oH,"pushResolvingStack");function sH(){jP.pop()}j(sH,"popupResolvingStack");function Uce(){jP.length=0}j(Uce,"clearResolvingStack");var Tie=function(t){Vce(e,t);function e(n,r,i){var a='Cannot find "'.concat(Iu(r),'" registered by any injector. It is the ').concat(i,'th param of "').concat(Pce(n)?Iu(n):n.name,'".');return t.call(this,a)||this}return j(e,"DependencyNotFoundForModuleError"),e}(rl),fE=function(t){Vce(e,t);function e(n){var r=this,i='Cannot find "'.concat(Iu(n),'" registered by any injector. The stack of dependencies is: "').concat(jP.map(function(a){return Iu(a)}).join(" -> "),'".');return r=t.call(this,i)||this,Uce(),r}return j(e,"DependencyNotFoundError"),e}(rl),aKe=function(){function t(e){var n=this;this.dependencyMap=new Map,this.normalizeDependencies(e).map(function(r){return n.add(r[0],r[1])})}return j(t,"DependencyCollection"),t.prototype.add=function(e,n){typeof n>"u"&&(n={useClass:e,lazy:!1});var r=this.dependencyMap.get(e);typeof r>"u"&&(r=[],this.dependencyMap.set(e,r)),r.push(n)},t.prototype.delete=function(e){this.dependencyMap.delete(e)},t.prototype.get=function(e,n){n===void 0&&(n=va.REQUIRED);var r=this.dependencyMap.get(e);return LX(e,n,r.length),Oce(n,r)},t.prototype.has=function(e){return this.dependencyMap.has(e)},t.prototype.append=function(e){var n=this;this.normalizeDependencies(e).forEach(function(r){return n.add(r[0],r[1])})},t.prototype.dispose=function(){this.dependencyMap.clear()},t.prototype.normalizeDependencies=function(e){return e.map(function(n){var r=n[0],i;return Bce(n)?i={useClass:n[0],lazy:!1}:i=n[1],[r,i]})},t}(),oKe=function(){function t(){this.resolvedDependencies=new Map}return j(t,"ResolvedDependencyCollection"),t.prototype.add=function(e,n){var r=this.resolvedDependencies.get(e);typeof r>"u"&&(r=[],this.resolvedDependencies.set(e,r)),r.push(n)},t.prototype.has=function(e){return this.resolvedDependencies.has(e)},t.prototype.delete=function(e){if(this.resolvedDependencies.has(e)){var n=this.resolvedDependencies.get(e);n.forEach(function(r){return aH(r)?r.dispose():void 0}),this.resolvedDependencies.delete(e)}},t.prototype.get=function(e,n){n===void 0&&(n=va.REQUIRED);var r=this.resolvedDependencies.get(e);if(!r)throw new fE(e);return LX(e,n,r.length),n===va.MANY?r:r[0]},t.prototype.dispose=function(){Array.from(this.resolvedDependencies.values()).forEach(function(e){e.forEach(function(n){return aH(n)?n.dispose():void 0})}),this.resolvedDependencies.clear()},t}();function Hce(t,e,n){var r=BP(t,e);r.lookUp=n}j(Hce,"changeLookup");function xX(t){return j(function e(){return this instanceof e?this:function(n,r,i){Hce(n,i,t)}},"DecoratorFactory")}j(xX,"lookupDecoratorFactoryProducer");var sKe=xX(af.SKIP_SELF),lKe=xX(af.SELF);function jce(t,e,n){var r=BP(t,e);r.withNew=n}j(jce,"changeToSelf");function $ce(t){return j(function e(){return this instanceof e?this:function(n,r,i){jce(n,i,t)}},"DecoratorFactory")}j($ce,"withNewDecoratorFactoryProducer");var uKe=$ce(!0);function OX(t,e){return e===void 0&&(e=0),t?t.map(function(n,r){if(r+=e,!Array.isArray(n))return{paramIndex:r,identifier:n,quantity:va.REQUIRED,withNew:!1};var i=n.slice(0,n.length-1),a=n[n.length-1],o=void 0,s=va.REQUIRED,l=!1;return i.forEach(function(u){if(u instanceof lKe)o=af.SELF;else if(u instanceof sKe)o=af.SKIP_SELF;else if(u instanceof _1)s=va.OPTIONAL;else if(u instanceof rKe)s=va.MANY;else if(u instanceof uKe)l=!0;else throw new rl("unknown dep modifier ".concat(u,"."))}),{paramIndex:r,identifier:a,quantity:s,lookUp:o,withNew:l}}):[]}j(OX,"normalizeFactoryDeps");var lH;(function(){if(typeof requestIdleCallback<"u"&&typeof cancelIdleCallback<"u")lH=j(function(e,n){var r=requestIdleCallback(e,typeof n=="number"?{timeout:n}:void 0),i=!1;return function(){i||(i=!0,cancelIdleCallback(r))}},"runWhenIdle");else{var t=Object.freeze({didTimeout:!0,timeRemaining:j(function(){return 15},"timeRemaining")});lH=j(function(e){var n=setTimeout(function(){return e(t)}),r=!1;return function(){r||(r=!0,clearTimeout(n))}},"runWhenIdle")}})();var cKe=function(){function t(e){var n=this;this.didRun=!1,this.selfExecutor=function(){try{n.value=e()}catch(r){n.error=r}finally{n.didRun=!0}},this.disposeCallback=lH(function(){return n.selfExecutor()})}return j(t,"IdleValue"),t.prototype.hasRun=function(){return this.didRun},t.prototype.dispose=function(){this.disposeCallback()},t.prototype.getValue=function(){if(this.didRun||(this.dispose(),this.selfExecutor()),this.error)throw this.error;return this.value},t}(),R7=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),KA=j(function(){return KA=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},KA.apply(this,arguments)},"__assign$1"),v2=j(function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},"__spreadArray$2"),dKe=300,w9=Symbol("$$NOT_INSTANTIATED_SYMBOL"),hKe=function(t){R7(e,t);function e(n){return t.call(this,'Detecting cyclic dependency. The last identifier is "'.concat(Iu(n),'".'))||this}return j(e,"CircularDependencyError"),e}(rl),fKe=function(t){R7(e,t);function e(){return t.call(this,"Injector cannot be accessed after it was disposed.")||this}return j(e,"InjectorAlreadyDisposedError"),e}(rl),mKe=function(t){R7(e,t);function e(n){return t.call(this,'Async item "'.concat(Iu(n),'" returns another async item.'))||this}return j(e,"AsyncItemReturnAsyncItemError"),e}(rl),gKe=function(t){R7(e,t);function e(n){return t.call(this,'Cannot get async item "'.concat(Iu(n),'" from sync api.'))||this}return j(e,"GetAsyncItemFromSyncApiError"),e}(rl),Lie=function(t){R7(e,t);function e(n){return t.call(this,'Cannot add dependency "'.concat(Iu(n),'" after it is already resolved.'))||this}return j(e,"AddDependencyAfterResolutionError"),e}(rl),pKe=function(t){R7(e,t);function e(n){return t.call(this,'Cannot dependency dependency "'.concat(Iu(n),'" after it is already resolved.'))||this}return j(e,"DeleteDependencyAfterResolutionError"),e}(rl),Wn=function(){function t(e,n){n===void 0&&(n=null),this.parent=n,this.children=[],this.resolutionOngoing=0,this.disposed=!1,this.dependencyCollection=new aKe(e||[]),this.resolvedDependencyCollection=new oKe,n&&n.children.push(this)}return j(t,"Injector"),t.prototype.createChild=function(e){return this._ensureInjectorNotDisposed(),new t(e,this)},t.prototype.dispose=function(){this.children.forEach(function(e){return e.dispose()}),this.children.length=0,this.dependencyCollection.dispose(),this.resolvedDependencyCollection.dispose(),this.deleteSelfFromParent(),this.disposed=!0},t.prototype.deleteSelfFromParent=function(){if(this.parent){var e=this.parent.children.indexOf(this);e>-1&&this.parent.children.splice(e,1)}},t.prototype.add=function(e){this._ensureInjectorNotDisposed();var n=e[0],r=e[1];if(this.resolvedDependencyCollection.has(n))throw new Lie(n);typeof r>"u"?this.dependencyCollection.add(n):rH(r)||QA(r)||nH(r)||tH(r)?this.dependencyCollection.add(n,r):this.resolvedDependencyCollection.add(n,r)},t.prototype.replace=function(e){this._ensureInjectorNotDisposed();var n=e[0];if(this.resolvedDependencyCollection.has(n))throw new Lie(n);this.dependencyCollection.delete(n),e.length===1?this.dependencyCollection.add(n):this.dependencyCollection.add(n,e[1])},t.prototype.delete=function(e){if(this._ensureInjectorNotDisposed(),this.resolvedDependencyCollection.has(e))throw new pKe(e);this.dependencyCollection.delete(e)},t.prototype.invoke=function(e){for(var n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this._ensureInjectorNotDisposed();var a={get:j(function(o,s,l){return n._get(o,s,l)},"get"),has:j(function(o){return n.has(o)},"has")};return e.apply(void 0,v2([a],r,!1))},t.prototype.has=function(e){var n;return this.dependencyCollection.has(e)||((n=this.parent)===null||n===void 0?void 0:n.has(e))||!1},t.prototype.get=function(e,n,r){this._ensureInjectorNotDisposed();var i=this._get(e,n,r);if(Array.isArray(i)&&i.some(function(a){return hE(a)})||hE(i))throw new gKe(e);return i},t.prototype._get=function(e,n,r,i){var a=va.REQUIRED;if(n===va.REQUIRED||n===va.OPTIONAL||n===va.MANY?a=n:r=n,!i){var o=this.getValue(e,a,r);if(o!==w9)return o}return this.createDependency(e,a,r,!i)},t.prototype.getAsync=function(e){this._ensureInjectorNotDisposed();var n=this.getValue(e,va.REQUIRED);if(n!==w9)return Promise.resolve(n);var r=this.createDependency(e,va.REQUIRED);return hE(r)?r.whenReady():Promise.resolve(r)},t.prototype.createInstance=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return this._ensureInjectorNotDisposed(),this._resolveClassImpl.apply(this,v2([{useClass:e}],n,!1))},t.prototype._resolveDependency=function(e,n,r){r===void 0&&(r=!0);var i;oH(e);try{nH(n)?i=this._resolveValueDependency(e,n):tH(n)?i=this._resolveFactory(e,n,r):QA(n)?i=this._resolveClass(e,n,r):Mce(n)?i=this._resolveExisting(e,n):i=this._resolveAsync(e,n),sH()}catch(a){throw sH(),a}return i},t.prototype._resolveExisting=function(e,n){var r=this.get(n.useExisting);return this.resolvedDependencyCollection.add(e,r),r},t.prototype._resolveValueDependency=function(e,n){var r=n.useValue;return this.resolvedDependencyCollection.add(e,r),r},t.prototype._resolveClass=function(e,n,r){var i=this;r===void 0&&(r=!0);var a;if(n.lazy){var o=new cKe(function(){return i._ensureInjectorNotDisposed(),i._resolveClassImpl(n)});a=new Proxy(Object.create(null),{get:j(function(s,l){if(l in s)return s[l];if(l!=="whenReady"){var u=o.getValue(),c=u[l];return typeof c!="function"||(c=c.bind(u),s[l]=c),c}},"get"),set:j(function(s,l,u){return o.getValue()[l]=u,!0},"set")})}else a=this._resolveClassImpl(n);return e&&r&&this.resolvedDependencyCollection.add(e,a),a},t.prototype._resolveClassImpl=function(e){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=e.useClass;this.markNewResolution(a);for(var o=TX(a).sort(function(p,v){return p.paramIndex-v.paramIndex}).map(function(p){return KA(KA({},p),{identifier:Fce(p.identifier)})}),s=[],l=0,u=o;l<u.length;l++){var c=u[l];try{var d=this._get(c.identifier,c.quantity,c.lookUp,c.withNew);s.push(d)}catch(p){throw p instanceof fE?new Tie(a,c.identifier,c.paramIndex):p}}var h=v2([],r,!0),f=o.length>0?o[0].paramIndex:h.length;if(h.length!==f){console.warn("[redi]: Expect ".concat(f," custom parameter(s) of ").concat(Iu(a)," but get ").concat(h.length,"."));var m=f-h.length;m>0?h=v2(v2([],h,!0),new Array(m).fill(void 0),!0):h=h.slice(0,f)}var g=new(a.bind.apply(a,v2(v2([void 0],h,!1),s,!1)));return(n=e==null?void 0:e.onInstantiation)===null||n===void 0||n.call(e,g),this.markResolutionCompleted(),g},t.prototype._resolveFactory=function(e,n,r){var i;this.markNewResolution(e);for(var a=OX(n.deps),o=[],s=0,l=a;s<l.length;s++){var u=l[s];try{var c=this._get(u.identifier,u.quantity,u.lookUp,u.withNew);o.push(c)}catch(h){throw h instanceof fE?new Tie(e,u.identifier,u.paramIndex):h}}var d=n.useFactory.apply(null,o);return r&&this.resolvedDependencyCollection.add(e,d),this.markResolutionCompleted(),(i=n==null?void 0:n.onInstantiation)===null||i===void 0||i.call(n,d),d},t.prototype._resolveAsync=function(e,n){var r=this,i={__symbol:Tce,whenReady:j(function(){return r._resolveAsyncImpl(e,n)},"whenReady")};return i},t.prototype._resolveAsyncImpl=function(e,n){var r=this;return n.useAsync().then(function(i){var a=r.getValue(e);if(a!==w9)return a;var o;if(Array.isArray(i)){var s=i[1];if(rH(s))throw new mKe(e);o=r._resolveDependency(e,s)}else MX(i)?o=r._resolveClassImpl({useClass:i,onInstantiation:n.onInstantiation}):o=i;return r.resolvedDependencyCollection.add(e,o),o})},t.prototype.getValue=function(e,n,r){var i=this;n===void 0&&(n=va.REQUIRED);var a=j(function(){return i.dependencyCollection.has(e)&&!i.resolvedDependencyCollection.has(e)?w9:i.resolvedDependencyCollection.get(e,n)},"onSelf"),o=j(function(){return i.parent?i.parent.getValue(e,n):w9},"onParent");return r===af.SKIP_SELF?o():r===af.SELF||this.resolvedDependencyCollection.has(e)||this.dependencyCollection.has(e)?a():o()},t.prototype.createDependency=function(e,n,r,i){var a=this;n===void 0&&(n=va.REQUIRED),i===void 0&&(i=!0);var o=j(function(){var l=a.dependencyCollection.get(e,n),u=null;return Array.isArray(l)?u=l.map(function(c){return a._resolveDependency(e,c,i)}):l&&(u=a._resolveDependency(e,l,i)),u},"onSelf"),s=j(function(){if(a.parent)return a.parent.createDependency(e,n,void 0,i);if(n===va.OPTIONAL)return null;throw oH(e),new fE(e)},"onParent");return r===af.SKIP_SELF?s():e===t?this:this.dependencyCollection.has(e)?o():s()},t.prototype.markNewResolution=function(e){if(this.resolutionOngoing+=1,this.resolutionOngoing>=dKe)throw new hKe(e)},t.prototype.markResolutionCompleted=function(){this.resolutionOngoing-=1},t.prototype._ensureInjectorNotDisposed=function(){if(this.disposed)throw new fKe},t}();function vKe(t,e,n){n===void 0&&(n=0);var r=OX(e,n);r.forEach(function(i){UP(t,i.identifier,i.paramIndex,i.quantity,i.lookUp)})}j(vKe,"setDependencies");var xie=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global,Oie="REDI_GLOBAL_LOCK",_Ke=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;xie[Oie]?_Ke||console.error(`[redi]: You are loading scripts of redi more than once! This may cause undesired behavior in your application. |
|
|
Maybe your dependencies added redi as its dependency and bundled redi to its dist files. Or you import different versions of redi. |
|
|
For more info please visit our website: https://redi.wendell.fun/en-US/docs/debug#import-scripts-of-redi-more-than-once`):xie[Oie]=!0;var Nie="REDI_CONTEXT_LOCK",CKe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,kie=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global;kie[Nie]?CKe||console.error(`[redi]: "RediContext" is already created. You may import "RediContext" from different paths. Use "import { RediContext } from '@wendellhu/redi/react-bindings'; instead."`):kie[Nie]=!0;var $P=E.createContext({injector:null});$P.displayName="RediContext";var Wce=$P.Provider,SKe=$P.Consumer,bKe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yKe=function(t){bKe(e,t);function e(){return t.call(this,"Using dependency injection outside of a RediContext.")||this}return j(e,"HooksNotInRediContextError"),e}(rl);function wC(){var t=E.useContext($P);if(!t.injector)throw new yKe;return t.injector}j(wC,"useInjector");function Ne(t,e,n){var r=wC();return E.useMemo(function(){return r.get(t,e,n)},[t,e,n])}j(Ne,"useDependency");var ZA=j(function(){return ZA=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ZA.apply(this,arguments)},"__assign");function zce(t){var e=t.children,n=t.dependencies,r=E.useRef(null);return E.useEffect(function(){return function(){var i;return(i=r.current)===null||i===void 0?void 0:i.dispose()}},[]),E.createElement(SKe,null,function(i){var a;return r.current?a=r.current:(a=i.injector?i.injector.createChild(n):new Wn(n),r.current=a),E.createElement(Wce,{value:{injector:a}},e)})}j(zce,"RediInjector");function yl(t,e){return j(function(n){return E.createElement(Wce,{value:{injector:e}},E.createElement(t,ZA({},n)))},"ComponentWithInjector")}j(yl,"connectInjector");function EKe(t,e){return j(function(n){return E.createElement(zce,{dependencies:e},E.createElement(t,ZA({},n)))},"ComponentWithInjector")}j(EKe,"connectDependencies");var RKe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AKe=function(t){RKe(e,t);function e(n){return t.call(this,'You should make "RediContext" as '.concat(n.constructor.name,"'s default context type. ")+"If you want to use multiple context, please check this on React doc site. https://reactjs.org/docs/context.html#classcontexttype")||this}return j(e,"ClassComponentNotInRediContextError"),e}(rl);function wKe(t,e,n){return function(){return{get:j(function(){var r=this,i=r.context;if(!i||!i.injector)throw new AKe(r);var a=i.injector,o=a.get(t,e||va.REQUIRED,n);return o},"get")}}}j(wKe,"WithDependency");var DKe=j(function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},"__spreadArray$1");function qce(t,e){var n=t instanceof Pn&&typeof e>"u"?t.getValue():e,r=E.useState(n),i=r[0],a=r[1];return E.useEffect(function(){var o=t.subscribe(function(s){return a(s)});return function(){return o.unsubscribe()}},[t]),i}j(qce,"useDependencyValue");function uH(t){return typeof t=="function"?t():t}j(uH,"unwrap");function Xh(t,e,n,r){if(typeof t=="function"&&!r)throw new rl("Expected deps to be provided when observable is a function!");var i=E.useRef(null),a=E.useRef(!1),o=E.useMemo(function(){return t},DKe([],typeof r<"u"?r:[t],!0)),s=E.useState(0);s[0];var l=s[1],u=E.useRef(function(){var c;if(o){var d=uH(o).subscribe(function(h){a.current=!0,c=h});d.unsubscribe()}return c??e}());if(E.useEffect(function(){var c=null;return o&&(i.current=uH(o),c=i.current.subscribe(function(d){u.current=d,l(function(h){return h+1})})),function(){return c==null?void 0:c.unsubscribe()}},[o]),n&&!a.current)throw new Error("Expect `shouldHaveSyncValue` but not getting a sync value!");return u.current}j(Xh,"useObservable");function IKe(t){var e=E.useState(0),n=e[1];E.useEffect(function(){var r=t.subscribe(function(){return n(function(i){return i+1})});return function(){return r.unsubscribe()}},[])}j(IKe,"useUpdateBinder");var cH=new WeakMap;function PKe(t,e){var n=E.useRef(void 0),r=qce(t,e),i=E.useMemo(function(){return E.createContext(r)},[t]),a=E.useCallback(function(o){return Re.createElement(i.Provider,{value:r},o.children)},[t,r]);return n.current!==t&&(n.current&&cH.delete(n.current),n.current=t,cH.set(t,i)),{Provider:a,value:r}}j(PKe,"useDependencyContext");function MKe(t){var e=cH.get(t);if(!e)throw new rl("try to read context value but no ancestor component subscribed it.");return E.useContext(e)}j(MKe,"useDependencyContextValue");function dH(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const i=Object.prototype.hasOwnProperty.bind(e);for(let a=0;a<n.length;a++){const o=n[a];if(!i(o))return!1;const s=t[o],l=e[o];if(s!==l)return!1}return!0}j(dH,"shallowEqual");const Yce=class extends Error{constructor(e){super(e),this.name="CustomCommandExecutionError"}};j(Yce,"CustomCommandExecutionError");let Xce=Yce;function hH(t,e=16){let n=0,r=null;return j(function(...i){const a=Date.now();a-n<e?(r&&clearTimeout(r),r=setTimeout(()=>{n=a,t.apply(this,i)},e)):(n=a,t.apply(this,i))},"throttled")}j(hH,"throttle");function _s(t){return`sheet_interceptor_${t}`}j(_s,"createInterceptorKey");const NX=j(t=>function(e,n){let r=-1;function i(a,o){if(a<=r)throw new Error("[SheetInterceptorService]: next() called multiple times!");return r=a,a===t.length?o:t[a].handler(o,n,i.bind(null,a+1))}return j(i,"passThrough"),i(0,e)},"composeInterceptors"),Gce=class{constructor(e){Xe(this,"_interceptorsByName",new Map),Xe(this,"_interceptorPoints"),this._interceptorPoints=e}fetchThroughInterceptors(e){const n=e,r=this._interceptorsByName.get(n);return NX(r||[])}intercept(e,n){const r=e;this._interceptorsByName.has(r)||this._interceptorsByName.set(r,[]);const i=this._interceptorsByName.get(r);return i.push(n),this._interceptorsByName.set(r,i.sort((a,o)=>{var s,l;return((s=o.priority)!=null?s:0)-((l=a.priority)!=null?l:0)})),()=>Zu(this._interceptorsByName.get(r),n)}getInterceptPoints(){return this._interceptorPoints}dispose(){this._interceptorsByName.clear()}};j(Gce,"InterceptorManager");let Wf=Gce;const Qce=class{constructor(){Xe(this,"cursor",0)}reset(){return this.cursor=0,this}moveCursor(e){this.cursor+=e}moveCursorTo(e){this.cursor=e}};j(Qce,"MemoryCursor");let bd=Qce;function TKe(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}j(TKe,"mixinClass");function Kce(t){return/^-?\d+(\.\d+)?$/.test(t)}j(Kce,"isNumeric");function Zce(t){return Kce(t)?Number(t)<=Number.MAX_SAFE_INTEGER:!1}j(Zce,"isSafeNumeric");const Jce=class e1e{constructor(){Xe(this,"_data",[])}static create(){return new e1e}add(e){this._data.indexOf(e)>-1||this._data.push(e)}delete(e){const n=this._data.indexOf(e);this._data.splice(n,1)}getData(){return this._data}};j(Jce,"Registry");let WP=Jce;const LKe=class t1e{constructor(){Xe(this,"_data",new Map)}static create(){return new t1e}add(e,n){this._data.has(e)||this._data.set(e,n)}delete(e){this._data.delete(e)}getData(){return this._data}};j(LKe,"RegistryAsMap");function zP(t){const e=new MessageChannel;let n=!1;const r=j(()=>{n||t()},"hanlder");return e.port1.onmessage=r,e.port2.postMessage(null),()=>{n=!0,e.port1.close(),e.port2.close()}}j(zP,"requestImmediateMacroTask");async function n1e(t){for(const[e,n]of t.entries())try{if(!await n())return{index:e,result:!1}}catch(r){return{index:e,result:!1,error:r}}return{result:!0,index:-1}}j(n1e,"sequenceAsync");function r1e(t){for(const[e,n]of t.entries())try{if(!n())return{index:e,result:!1}}catch(r){return{index:e,result:!1,error:r}}return{result:!0,index:-1}}j(r1e,"sequence");function xKe(t,e){return e.forEach(n=>t.add(n)),t}j(xKe,"mergeSets");function fH(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:j(function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}j(fH,"__values");function mH(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}j(mH,"__read");function gH(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}j(gH,"__spreadArray");function k6(t){return typeof t=="function"}j(k6,"isFunction");function i1e(t){var e=j(function(r){Error.call(r),r.stack=new Error().stack},"_super"),n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}j(i1e,"createErrorClass");var _O=i1e(function(t){return j(function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription: |
|
|
`+e.map(function(n,r){return r+1+") "+n.toString()}).join(` |
|
|
`):"",this.name="UnsubscriptionError",this.errors=e},"UnsubscriptionErrorImpl")});function pH(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}j(pH,"arrRemove");var a1e=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return j(t,"Subscription"),t.prototype.unsubscribe=function(){var e,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=fH(o),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(k6(c))try{c()}catch(g){a=g instanceof _O?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=fH(d),f=h.next();!f.done;f=h.next()){var m=f.value;try{vH(m)}catch(g){a=a??[],g instanceof _O?a=gH(gH([],mH(a)),mH(g.errors)):a.push(g)}}}catch(g){r={error:g}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(a)throw new _O(a)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)vH(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&pH(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&pH(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();a1e.EMPTY;function o1e(t){return t instanceof a1e||t&&"closed"in t&&k6(t.remove)&&k6(t.add)&&k6(t.unsubscribe)}j(o1e,"isSubscription");function vH(t){k6(t)?t():t.unsubscribe()}j(vH,"execFinalizer");function $t(t){let e=!1;return t?o1e(t)?{dispose:j(()=>t.unsubscribe(),"dispose")}:typeof t=="function"?{dispose:j(()=>{e||(e=!0,t())},"dispose")}:t:$t(()=>{})}j($t,"toDisposable");function OKe(t){return $t(()=>{t.unsubscribe()})}j(OKe,"fromObservable");const s1e=class{constructor(){Xe(this,"_disposables",new Set)}add(e){const n=$t(e);return this._disposables.add(n),{dispose:j(()=>{n.dispose(),this._disposables.delete(n)},"dispose")}}dispose(){this._disposables.forEach(e=>{e.dispose()}),this._disposables.clear()}};j(s1e,"DisposableCollection");let Gi=s1e;const l1e=class{constructor(){Xe(this,"_disposed",!1),Xe(this,"_collection",new Gi)}disposeWithMe(e){return this._collection.add(e)}ensureNotDisposed(){if(this._disposed)throw new Error("[Disposable]: object is disposed!")}dispose(){this._disposed||(this._disposed=!0,this._collection.dispose())}};j(l1e,"Disposable");let et=l1e;const u1e=class extends et{constructor(){super(...arguments),Xe(this,"dispose$",new Zt)}dispose(){super.dispose(),this.dispose$.next(),this.dispose$.complete()}};j(u1e,"RxDisposable");let Da=u1e;const NKe=class extends et{constructor(e){super(),Xe(this,"_ref",0),this._rootDisposable=e}inc(){if(this._disposed)throw new Error("[RCDisposable]: should not ref to a disposed.");this._ref+=1}dec(){this._ref-=1,this._ref===0&&(this._rootDisposable.dispose(),this.dispose())}};j(NKe,"RCDisposable");const ui=er("univer.context-service"),c1e=class extends et{constructor(){super(...arguments),Xe(this,"_contextChanged$",new Zt),Xe(this,"contextChanged$",this._contextChanged$.asObservable()),Xe(this,"_contextMap",new Map)}dispose(){super.dispose(),this._contextChanged$.complete()}getContextValue(e){var n;return(n=this._contextMap.get(e))!=null?n:!1}setContextValue(e,n){this._contextMap.set(e,n),this._contextChanged$.next({[e]:n})}subscribeContextValue$(e){return new On(n=>{const r=this._contextChanged$.pipe(mo(i=>typeof i[e]<"u")).subscribe(i=>n.next(i[e]));return this._contextMap.has(e)&&n.next(this._contextMap.get(e)),()=>r.unsubscribe()})}};j(c1e,"ContextService");let kKe=c1e;const Ra=er("univer.log"),d1e=class extends et{constructor(){super(...arguments),Xe(this,"_logLevel",3)}debug(...e){this._logLevel>=4&&this._log(console.debug,...e)}log(...e){this._logLevel>=3&&this._log(console.log,...e)}warn(...e){this._logLevel>=2&&this._log(console.warn,...e)}error(...e){this._logLevel>=1&&this._log(console.error,...e)}setLogLevel(e){this._logLevel=e}_log(e,...n){const r=n[0];/^\[(.*?)\]/g.test(r)?e(`\x1B[97;104m${r}\x1B[0m`,...n.slice(1)):e(...n)}};j(d1e,"DesktopLogService");let FKe=d1e;var VKe=Object.defineProperty,BKe=Object.getOwnPropertyDescriptor,UKe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?BKe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&VKe(e,n,i),i},"__decorateClass$8"),Fie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),Se=(t=>(t[t.COMMAND=0]="COMMAND",t[t.OPERATION=1]="OPERATION",t[t.MUTATION=2]="MUTATION",t))(Se||{});const me=er("anywhere.command-service"),h1e=class{constructor(){Xe(this,"_commands",new Map),Xe(this,"_commandTypes",new Map)}registerCommand(e){if(this._commands.has(e.id))throw new Error(`[CommandRegistry]: command "${e.id}" has been registered before.`);return this._commands.set(e.id,e),this._commandTypes.set(e.id,e.type),$t(()=>{this._commands.delete(e.id),this._commandTypes.delete(e.id)})}hasCommand(e){return this._commands.has(e)}getCommand(e){return this._commands.has(e)?[this._commands.get(e)]:null}getCommandType(e){return this._commandTypes.get(e)}};j(h1e,"CommandRegistry");let HKe=h1e;const qP={id:"nil",type:0,handler:j(()=>!0,"handler")};var CO;let _H=(CO=class extends et{constructor(t,e){super(),Xe(this,"_commandRegistry"),Xe(this,"_beforeCommandExecutionListeners",[]),Xe(this,"_commandExecutedListeners",[]),Xe(this,"_multiCommandDisposables",new Map),Xe(this,"_commandExecutingLevel",0),Xe(this,"_commandExecutionStack",[]),this._injector=t,this._logService=e,this._commandRegistry=new HKe,this._registerCommand(qP)}dispose(){super.dispose(),this._commandExecutedListeners.length=0,this._beforeCommandExecutionListeners.length=0}hasCommand(t){return this._commandRegistry.hasCommand(t)}registerCommand(t){return this._registerCommand(t)}registerMultipleCommand(t){return this._registerMultiCommand(t)}beforeCommandExecuted(t){if(this._beforeCommandExecutionListeners.indexOf(t)===-1)return this._beforeCommandExecutionListeners.push(t),$t(()=>{const e=this._beforeCommandExecutionListeners.indexOf(t);this._beforeCommandExecutionListeners.splice(e,1)});throw new Error("[CommandService]: could not add a listener twice.")}onCommandExecuted(t){if(this._commandExecutedListeners.indexOf(t)===-1)return this._commandExecutedListeners.push(t),$t(()=>{const e=this._commandExecutedListeners.indexOf(t);this._commandExecutedListeners.splice(e,1)});throw new Error("[CommandService]: could not add a listener twice.")}async executeCommand(t,e,n){try{const r=this._commandRegistry.getCommand(t);if(r){const[i]=r,a={id:i.id,type:i.type,params:e},o=this._pushCommandExecutionStack(a);this._beforeCommandExecutionListeners.forEach(l=>l(a,n));const s=await this._execute(i,e,n);return this._commandExecutedListeners.forEach(l=>l(a,n)),o.dispose(),s}throw new Error(`[CommandService]: command "${t}" is not registered.`)}catch(r){if(r instanceof Xce)return!1;throw this._logService.error(r),r}}syncExecuteCommand(t,e,n){var r;try{const i=this._commandRegistry.getCommand(t);if(i){const[a]=i,o={id:a.id,type:a.type,params:e};if(a.type===2){const u=Ice(this._commandExecutionStack,c=>c.type===0);u&&(o.params=(r=o.params)!=null?r:{},o.params.trigger=u.id)}const s=this._pushCommandExecutionStack(o);this._beforeCommandExecutionListeners.forEach(u=>u(o,n));const l=this._syncExecute(a,e,n);return this._commandExecutedListeners.forEach(u=>u(o,n)),s.dispose(),l}throw new Error(`[CommandService]: command "${t}" is not registered.`)}catch(i){throw this._logService.error(i),i}}_pushCommandExecutionStack(t){return this._commandExecutionStack.push(t),$t(()=>Zu(this._commandExecutionStack,t))}_registerCommand(t){return this._commandRegistry.registerCommand(t)}_registerMultiCommand(t){const e=this._commandRegistry.getCommand(t.id);let n;if(e){if(e[0].multi!==!0)throw new Error("Command has registered as a single command.");n=e[0]}else{const i=new Gi;n=new jKe(t.id),i.add(this._commandRegistry.registerCommand(n)),i.add($t(()=>{this._multiCommandDisposables.delete(t.id)})),this._multiCommandDisposables.set(t.id,i)}const r=n.registerImplementation(t);return $t(()=>{var i;r.dispose(),n.hasImplementations()||(i=this._multiCommandDisposables.get(t.id))==null||i.dispose()})}async _execute(t,e,n){this._logService.debug("[CommandService]",`${"|-".repeat(Math.max(this._commandExecutingLevel,0))}executing command "${t.id}"`),this._commandExecutingLevel++;let r;try{r=await this._injector.invoke(t.handler,e,n),this._commandExecutingLevel--}catch(i){throw r=!1,this._commandExecutingLevel=0,i}return r}_syncExecute(t,e,n){this._logService.debug("[CommandService]",`${"|-".repeat(Math.max(0,this._commandExecutingLevel))}executing command "${t.id}".`),this._commandExecutingLevel++;let r;try{if(r=this._injector.invoke(t.handler,e,n),r instanceof Promise)throw new TypeError("[CommandService]: Command handler should not return a promise.");this._commandExecutingLevel--}catch(i){throw r=!1,this._commandExecutingLevel=0,i}return r}},j(CO,"CommandService"),CO);_H=UKe([Fie(0,se(Wn)),Fie(1,Ra)],_H);const f1e=class{constructor(e){Xe(this,"name"),Xe(this,"multi",!0),Xe(this,"type",0),Xe(this,"priority",0),Xe(this,"_implementations",[]),Xe(this,"handler",j(async(n,r)=>{if(!this._implementations.length)return!1;const i=n.get(Ra),a=n.get(ui),o=n.get(Wn);for(const s of this._implementations){const l=s.command.preconditions;if((!l||l&&l(a))&&(i.debug("[MultiCommand]",`executing implementation "${s.command.name}".`),await o.invoke(s.command.handler,r)))return!0}return!1},"handler")),this.id=e,this.name=e}registerImplementation(e){const n={command:e};return this._implementations.push(n),this._implementations.sort((r,i)=>i.command.priority-r.command.priority),$t(()=>{const r=this._implementations.indexOf(n);this._implementations.splice(r,1)})}hasImplementations(){return this._implementations.length>0}};j(f1e,"MultiCommand");let jKe=f1e;function ti(t,e,n){const r=t.map(i=>()=>e.syncExecuteCommand(i.id,i.params,n));return r1e(r)}j(ti,"sequenceExecute");function A7(t,e,n){const r=t.map(i=>()=>e.executeCommand(i.id,i.params,n));return n1e(r)}j(A7,"sequenceExecuteAsync");function $Ke(t){return new On(e=>{const n=t((...r)=>e.next(r));return()=>n==null?void 0:n.dispose()})}j($Ke,"fromCallback");function m1e(t){return j(function(e){return new On(n=>(e.subscribe({next:j(r=>{n.next(r),t(r)&&n.complete()},"next"),complete:j(()=>n.complete(),"complete"),error:j(r=>n.error(r),"error")}),()=>n.unsubscribe()))},"complateAfter")}j(m1e,"takeAfter");function g1e(t,e){let n=0,r=t.length-1;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<t[i]&&(i===0||e>=t[i-1]))return i;if(e>=t[i])n=i+1;else if(e<t[i])r=i-1;else return-1}return-1}j(g1e,"binarySearchArray");function p1e(t,e){let n=0,r=0,i=0,a=-1,o=t.length-1;for(;n<t.length&&o>=0&&o>=n;){if(r=t[o],o===0?i=0:i=t[o-1],e>=i&&e<=r){a=o;break}if(r=t[n],n===0?i=0:i=t[n-1],e>=i&&e<r){a=n;break}n++,o--}return a}j(p1e,"orderSearchArray");function Nh(t,e){let n=t.length-1;return e<0?-1:e<t[0]?0:e>t[t.length-1]?Number.POSITIVE_INFINITY:(t.length<40||e<=t[20]||e>=t[n-20]?n=p1e(t,e):n=g1e(t,e),n)}j(Nh,"searchArray");function WKe(t){const e=new Blob([t],{type:"text/javascript"});return window.URL.createObjectURL(e)}j(WKe,"codeToBlob");const d6=2,zKe=1;function qKe(t,e){if(e==null||t==null)return!0;const{left:n=0,top:r=0,height:i=0,width:a=0,angle:o=0}=e,{left:s=0,top:l=0,height:u=0,width:c=0,angle:d=0}=t,h=c,f=u,m=a,g=i;return Math.abs(s-n)>d6||Math.abs(l-r)>d6||Math.abs(h-m)>d6||Math.abs(f-g)>d6||Math.abs(d-o)>zKe}j(qKe,"checkIfMove");var Un=(t=>(t[t.NONE=0]="NONE",t[t.THIN=1]="THIN",t[t.HAIR=2]="HAIR",t[t.DOTTED=3]="DOTTED",t[t.DASHED=4]="DASHED",t[t.DASH_DOT=5]="DASH_DOT",t[t.DASH_DOT_DOT=6]="DASH_DOT_DOT",t[t.DOUBLE=7]="DOUBLE",t[t.MEDIUM=8]="MEDIUM",t[t.MEDIUM_DASHED=9]="MEDIUM_DASHED",t[t.MEDIUM_DASH_DOT=10]="MEDIUM_DASH_DOT",t[t.MEDIUM_DASH_DOT_DOT=11]="MEDIUM_DASH_DOT_DOT",t[t.SLANT_DASH_DOT=12]="SLANT_DASH_DOT",t[t.THICK=13]="THICK",t))(Un||{}),Wo=(t=>(t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none",t.ALL="all",t.OUTSIDE="outside",t.INSIDE="inside",t.HORIZONTAL="horizontal",t.VERTICAL="vertical",t.TLBR="tlbr",t.TLBC_TLMR="tlbc_tlmr",t.TLBR_TLBC_TLMR="tlbr_tlbc_tlmr",t.BLTR="bl_tr",t.MLTR_BCTR="mltr_bctr",t))(Wo||{}),F1=(t=>(t[t.UNSUPPORTED=0]="UNSUPPORTED",t[t.RGB=1]="RGB",t[t.HEX=2]="HEX",t[t.THEME=3]="THEME",t))(F1||{}),ts=(t=>(t[t.COLUMNS=0]="COLUMNS",t[t.ROWS=1]="ROWS",t))(ts||{}),ut=(t=>(t[t.UP=0]="UP",t[t.RIGHT=1]="RIGHT",t[t.DOWN=2]="DOWN",t[t.LEFT=3]="LEFT",t))(ut||{});function kX(t){switch(t){case 3:return 1;case 1:return 3;case 0:return 2;case 2:return 0}}j(kX,"getReverseDirection");var pf=(t=>(t.EN_US="enUS",t.ZH_CN="zhCN",t.RU_RU="ruRU",t.ZH_TW="zhTW",t.VI_VN="viVN",t))(pf||{}),JA=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LEFT_TO_RIGHT=1]="LEFT_TO_RIGHT",t[t.RIGHT_TO_LEFT=2]="RIGHT_TO_LEFT",t))(JA||{}),Fc=(t=>(t[t.DASH=0]="DASH",t[t.DASH_DOT_DOT_HEAVY=1]="DASH_DOT_DOT_HEAVY",t[t.DASH_DOT_HEAVY=2]="DASH_DOT_HEAVY",t[t.DASHED_HEAVY=3]="DASHED_HEAVY",t[t.DASH_LONG=4]="DASH_LONG",t[t.DASH_LONG_HEAVY=5]="DASH_LONG_HEAVY",t[t.DOT_DASH=6]="DOT_DASH",t[t.DOT_DOT_DASH=7]="DOT_DOT_DASH",t[t.DOTTED=8]="DOTTED",t[t.DOTTED_HEAVY=9]="DOTTED_HEAVY",t[t.DOUBLE=10]="DOUBLE",t[t.NONE=11]="NONE",t[t.SINGLE=12]="SINGLE",t[t.THICK=13]="THICK",t[t.WAVE=14]="WAVE",t[t.WAVY_DOUBLE=15]="WAVY_DOUBLE",t[t.WAVY_HEAVY=16]="WAVY_HEAVY",t[t.WORDS=17]="WORDS",t))(Fc||{}),dr=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LEFT=1]="LEFT",t[t.CENTER=2]="CENTER",t[t.RIGHT=3]="RIGHT",t[t.JUSTIFIED=4]="JUSTIFIED",t[t.BOTH=5]="BOTH",t[t.DISTRIBUTED=6]="DISTRIBUTED",t))(dr||{}),ea=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TOP=1]="TOP",t[t.MIDDLE=2]="MIDDLE",t[t.BOTTOM=3]="BOTTOM",t))(ea||{}),Li=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.OVERFLOW=1]="OVERFLOW",t[t.CLIP=2]="CLIP",t[t.WRAP=3]="WRAP",t))(Li||{}),Vm=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ITALIC=1]="ITALIC",t))(Vm||{}),Bm=(t=>(t[t.NORMAL=0]="NORMAL",t[t.BOLD=1]="BOLD",t))(Bm||{}),ca=(t=>(t[t.NORMAL=1]="NORMAL",t[t.SUBSCRIPT=2]="SUBSCRIPT",t[t.SUPERSCRIPT=3]="SUPERSCRIPT",t))(ca||{}),at=(t=>(t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t))(at||{}),rr=(t=>(t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER",t[t.BOOLEAN=3]="BOOLEAN",t[t.FORCE_STRING=4]="FORCE_STRING",t))(rr||{}),au=(t=>(t[t.DARK1=0]="DARK1",t[t.LIGHT1=1]="LIGHT1",t[t.DARK2=2]="DARK2",t[t.LIGHT2=3]="LIGHT2",t[t.ACCENT1=4]="ACCENT1",t[t.ACCENT2=5]="ACCENT2",t[t.ACCENT3=6]="ACCENT3",t[t.ACCENT4=7]="ACCENT4",t[t.ACCENT5=8]="ACCENT5",t[t.ACCENT6=9]="ACCENT6",t[t.HYPERLINK=10]="HYPERLINK",t[t.FOLLOWED_HYPERLINK=11]="FOLLOWED_HYPERLINK",t))(au||{}),FX=(t=>(t.OFFICE="Office",t.OFFICE_2007_2010="Office 2007-2010",t.GRAYSCALE="Grayscale",t.BLUE_WARM="Blue Warm",t.BLUE="Blue",t.BLUE_II="Blue II",t.BLUE_GREEN="Blue Green",t.GREEN="Green",t.GREEN_YELLOW="Green Yellow",t.YELLOW="Yellow",t.YELLOW_ORANGE="Yellow Orange",t.ORANGE="Orange",t.ORANGE_RED="Orange Red",t.RED_ORANGE="Red Orange",t.RED="Red",t.RED_VIOLET="Red Violet",t.VIOLET="Violet",t.VIOLET_II="Violet II",t.MEDIAN="Median",t.PAPER="Paper",t.MARQUEE="Marquee",t.SLIPSTREAM="Slipstream",t.Aspect="Aspect",t))(FX||{}),CH=(t=>(t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t))(CH||{});const YKe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let XKe=j(t=>crypto.getRandomValues(new Uint8Array(t)),"random"),GKe=j((t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*e/t.length);return(a=e)=>{let o="";for(;;){let s=n(i),l=i;for(;l--;)if(o+=t[s[l]&r]||"",o.length===a)return o}}},"customRandom"),QKe=j((t,e=21)=>GKe(t,e,XKe),"customAlphabet"),KKe=j((t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=YKe[n[t]&63];return e},"nanoid");var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VX(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}j(VX,"getDefaultExportFromCjs");var ew={exports:{}};ew.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",p="[object Number]",v="[object Null]",_="[object Object]",C="[object Proxy]",S="[object RegExp]",b="[object Set]",y="[object String]",A="[object Undefined]",w="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",k="[object Float64Array]",O="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",X="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,G={};G[L]=G[k]=G[O]=G[$]=G[B]=G[V]=G[X]=G[z]=G[F]=!0,G[s]=G[l]=G[P]=G[c]=G[M]=G[d]=G[h]=G[f]=G[g]=G[p]=G[_]=G[S]=G[b]=G[y]=G[w]=!1;var te=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Y=typeof self=="object"&&self&&self.Object===Object&&self,ae=te||Y||Function("return this")(),ie=e&&!e.nodeType&&e,ne=ie&&!0&&t&&!t.nodeType&&t,de=ne&&ne.exports===ie,_e=de&&te.process,Pe=function(){try{var Le=ne&&ne.require&&ne.require("util").types;return Le||_e&&_e.binding&&_e.binding("util")}catch{}}(),De=Pe&&Pe.isTypedArray;function Ee(Le,lt,It){switch(It.length){case 0:return Le.call(lt);case 1:return Le.call(lt,It[0]);case 2:return Le.call(lt,It[0],It[1]);case 3:return Le.call(lt,It[0],It[1],It[2])}return Le.apply(lt,It)}j(Ee,"apply");function ye(Le,lt){for(var It=-1,_r=Array(Le);++It<Le;)_r[It]=lt(It);return _r}j(ye,"baseTimes");function Ve(Le){return function(lt){return Le(lt)}}j(Ve,"baseUnary");function ke(Le,lt){return Le==null?void 0:Le[lt]}j(ke,"getValue");function Ke(Le,lt){return function(It){return Le(lt(It))}}j(Ke,"overArg");var $e=Array.prototype,Fe=Function.prototype,He=Object.prototype,ct=ae["__core-js_shared__"],_t=Fe.toString,Ye=He.hasOwnProperty,Ot=function(){var Le=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return Le?"Symbol(src)_1."+Le:""}(),An=He.toString,Ut=_t.call(Object),Jt=RegExp("^"+_t.call(Ye).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dn=de?ae.Buffer:void 0,Sn=ae.Symbol,hn=ae.Uint8Array;dn&&dn.allocUnsafe;var tr=Ke(Object.getPrototypeOf,Object),en=Object.create,bt=He.propertyIsEnumerable,ue=$e.splice,ce=Sn?Sn.toStringTag:void 0,pe=function(){try{var Le=Rt(Object,"defineProperty");return Le({},"",{}),Le}catch{}}(),Ae=dn?dn.isBuffer:void 0,je=Math.max,tt=Date.now,Qe=Rt(ae,"Map"),nt=Rt(Object,"create"),we=function(){function Le(){}return j(Le,"object"),function(lt){if(!Zr(lt))return{};if(en)return en(lt);Le.prototype=lt;var It=new Le;return Le.prototype=void 0,It}}();function Ze(Le){var lt=-1,It=Le==null?0:Le.length;for(this.clear();++lt<It;){var _r=Le[lt];this.set(_r[0],_r[1])}}j(Ze,"Hash");function ht(){this.__data__=nt?nt(null):{},this.size=0}j(ht,"hashClear");function pt(Le){var lt=this.has(Le)&&delete this.__data__[Le];return this.size-=lt?1:0,lt}j(pt,"hashDelete");function Mt(Le){var lt=this.__data__;if(nt){var It=lt[Le];return It===r?void 0:It}return Ye.call(lt,Le)?lt[Le]:void 0}j(Mt,"hashGet");function xt(Le){var lt=this.__data__;return nt?lt[Le]!==void 0:Ye.call(lt,Le)}j(xt,"hashHas");function st(Le,lt){var It=this.__data__;return this.size+=this.has(Le)?0:1,It[Le]=nt&<===void 0?r:lt,this}j(st,"hashSet"),Ze.prototype.clear=ht,Ze.prototype.delete=pt,Ze.prototype.get=Mt,Ze.prototype.has=xt,Ze.prototype.set=st;function Be(Le){var lt=-1,It=Le==null?0:Le.length;for(this.clear();++lt<It;){var _r=Le[lt];this.set(_r[0],_r[1])}}j(Be,"ListCache");function vt(){this.__data__=[],this.size=0}j(vt,"listCacheClear");function qt(Le){var lt=this.__data__,It=pi(lt,Le);if(It<0)return!1;var _r=lt.length-1;return It==_r?lt.pop():ue.call(lt,It,1),--this.size,!0}j(qt,"listCacheDelete");function Lt(Le){var lt=this.__data__,It=pi(lt,Le);return It<0?void 0:lt[It][1]}j(Lt,"listCacheGet");function zt(Le){return pi(this.__data__,Le)>-1}j(zt,"listCacheHas");function Yt(Le,lt){var It=this.__data__,_r=pi(It,Le);return _r<0?(++this.size,It.push([Le,lt])):It[_r][1]=lt,this}j(Yt,"listCacheSet"),Be.prototype.clear=vt,Be.prototype.delete=qt,Be.prototype.get=Lt,Be.prototype.has=zt,Be.prototype.set=Yt;function un(Le){var lt=-1,It=Le==null?0:Le.length;for(this.clear();++lt<It;){var _r=Le[lt];this.set(_r[0],_r[1])}}j(un,"MapCache");function ir(){this.size=0,this.__data__={hash:new Ze,map:new(Qe||Be),string:new Ze}}j(ir,"mapCacheClear");function jr(Le){var lt=yt(this,Le).delete(Le);return this.size-=lt?1:0,lt}j(jr,"mapCacheDelete");function ln(Le){return yt(this,Le).get(Le)}j(ln,"mapCacheGet");function Nr(Le){return yt(this,Le).has(Le)}j(Nr,"mapCacheHas");function mn(Le,lt){var It=yt(this,Le),_r=It.size;return It.set(Le,lt),this.size+=It.size==_r?0:1,this}j(mn,"mapCacheSet"),un.prototype.clear=ir,un.prototype.delete=jr,un.prototype.get=ln,un.prototype.has=Nr,un.prototype.set=mn;function rn(Le){var lt=this.__data__=new Be(Le);this.size=lt.size}j(rn,"Stack");function En(){this.__data__=new Be,this.size=0}j(En,"stackClear");function Ft(Le){var lt=this.__data__,It=lt.delete(Le);return this.size=lt.size,It}j(Ft,"stackDelete");function $r(Le){return this.__data__.get(Le)}j($r,"stackGet");function br(Le){return this.__data__.has(Le)}j(br,"stackHas");function Rn(Le,lt){var It=this.__data__;if(It instanceof Be){var _r=It.__data__;if(!Qe||_r.length<n-1)return _r.push([Le,lt]),this.size=++It.size,this;It=this.__data__=new un(_r)}return It.set(Le,lt),this.size=It.size,this}j(Rn,"stackSet"),rn.prototype.clear=En,rn.prototype.delete=Ft,rn.prototype.get=$r,rn.prototype.has=br,rn.prototype.set=Rn;function Qn(Le,lt){var It=I1(Le),_r=!It&&Rh(Le),Xi=!It&&!_r&&f3(Le),$a=!It&&!_r&&!Xi&&so(Le),lo=It||_r||Xi||$a,sa=lo?ye(Le.length,String):[],uo=sa.length;for(var P1 in Le)lo&&(P1=="length"||Xi&&(P1=="offset"||P1=="parent")||$a&&(P1=="buffer"||P1=="byteLength"||P1=="byteOffset")||fn(P1,uo))||sa.push(P1);return sa}j(Qn,"arrayLikeKeys");function vr(Le,lt,It){(It!==void 0&&!eu(Le[lt],It)||It===void 0&&!(lt in Le))&&vi(Le,lt,It)}j(vr,"assignMergeValue");function gi(Le,lt,It){var _r=Le[lt];(!(Ye.call(Le,lt)&&eu(_r,It))||It===void 0&&!(lt in Le))&&vi(Le,lt,It)}j(gi,"assignValue");function pi(Le,lt){for(var It=Le.length;It--;)if(eu(Le[It][0],lt))return It;return-1}j(pi,"assocIndexOf");function vi(Le,lt,It){lt=="__proto__"&&pe?pe(Le,lt,{configurable:!0,enumerable:!0,value:It,writable:!0}):Le[lt]=It}j(vi,"baseAssignValue");var qi=rt();function Yi(Le){return Le==null?Le===void 0?A:v:ce&&ce in Object(Le)?Nt(Le):Vo(Le)}j(Yi,"baseGetTag");function is(Le){return eo(Le)&&Yi(Le)==s}j(is,"baseIsArguments");function Do(Le){if(!Zr(Le)||qr(Le))return!1;var lt=um(Le)?Jt:W;return lt.test(Hu(Le))}j(Do,"baseIsNative");function oo(Le){return eo(Le)&&$n(Le.length)&&!!G[Yi(Le)]}j(oo,"baseIsTypedArray");function Ss(Le){if(!Zr(Le))return Ai(Le);var lt=Ri(Le),It=[];for(var _r in Le)_r=="constructor"&&(lt||!Ye.call(Le,_r))||It.push(_r);return It}j(Ss,"baseKeysIn");function po(Le,lt,It,_r,Xi){Le!==lt&&qi(lt,function($a,lo){if(Xi||(Xi=new rn),Zr($a))vo(Le,lt,lo,It,po,_r,Xi);else{var sa=_r?_r($o(Le,lo),$a,lo+"",Le,lt,Xi):void 0;sa===void 0&&(sa=$a),vr(Le,lo,sa)}},g2)}j(po,"baseMerge");function vo(Le,lt,It,_r,Xi,$a,lo){var sa=$o(Le,It),uo=$o(lt,It),P1=lo.get(uo);if(P1){vr(Le,It,P1);return}var ju=$a?$a(sa,uo,It+"",Le,lt,lo):void 0,A9=ju===void 0;if(A9){var dO=I1(uo),hO=!dO&&f3(uo),pie=!dO&&!hO&&so(uo);ju=uo,dO||hO||pie?I1(sa)?ju=sa:f2(sa)?ju=ot(sa):hO?(A9=!1,ju=ve(uo)):pie?(A9=!1,ju=Te(uo)):ju=[]:Io(uo)||Rh(uo)?(ju=sa,Rh(sa)?ju=m2(sa):(!Zr(sa)||um(sa))&&(ju=dt(uo))):A9=!1}A9&&(lo.set(uo,ju),Xi(ju,uo,_r,$a,lo),lo.delete(uo)),vr(Le,It,ju)}j(vo,"baseMergeDeep");function ll(Le,lt){return h2(Lc(Le,lt,cO),Le+"")}j(ll,"baseRest");var Jl=pe?function(Le,lt){return pe(Le,"toString",{configurable:!0,enumerable:!1,value:p2(lt),writable:!0})}:cO;function ve(Le,lt){return Le.slice()}j(ve,"cloneBuffer");function Me(Le){var lt=new Le.constructor(Le.byteLength);return new hn(lt).set(new hn(Le)),lt}j(Me,"cloneArrayBuffer");function Te(Le,lt){var It=Me(Le.buffer);return new Le.constructor(It,Le.byteOffset,Le.length)}j(Te,"cloneTypedArray");function ot(Le,lt){var It=-1,_r=Le.length;for(lt||(lt=Array(_r));++It<_r;)lt[It]=Le[It];return lt}j(ot,"copyArray");function Ge(Le,lt,It,_r){var Xi=!It;It||(It={});for(var $a=-1,lo=lt.length;++$a<lo;){var sa=lt[$a],uo=void 0;uo===void 0&&(uo=Le[sa]),Xi?vi(It,sa,uo):gi(It,sa,uo)}return It}j(Ge,"copyObject");function Ue(Le){return ll(function(lt,It){var _r=-1,Xi=It.length,$a=Xi>1?It[Xi-1]:void 0,lo=Xi>2?It[2]:void 0;for($a=Le.length>3&&typeof $a=="function"?(Xi--,$a):void 0,lo&&sr(It[0],It[1],lo)&&($a=Xi<3?void 0:$a,Xi=1),lt=Object(lt);++_r<Xi;){var sa=It[_r];sa&&Le(lt,sa,_r,$a)}return lt})}j(Ue,"createAssigner");function rt(Le){return function(lt,It,_r){for(var Xi=-1,$a=Object(lt),lo=_r(lt),sa=lo.length;sa--;){var uo=lo[++Xi];if(It($a[uo],uo,$a)===!1)break}return lt}}j(rt,"createBaseFor");function yt(Le,lt){var It=Le.__data__;return Wr(lt)?It[typeof lt=="string"?"string":"hash"]:It.map}j(yt,"getMapData");function Rt(Le,lt){var It=ke(Le,lt);return Do(It)?It:void 0}j(Rt,"getNative");function Nt(Le){var lt=Ye.call(Le,ce),It=Le[ce];try{Le[ce]=void 0;var _r=!0}catch{}var Xi=An.call(Le);return _r&&(lt?Le[ce]=It:delete Le[ce]),Xi}j(Nt,"getRawTag");function dt(Le){return typeof Le.constructor=="function"&&!Ri(Le)?we(tr(Le)):{}}j(dt,"initCloneObject");function fn(Le,lt){var It=typeof Le;return lt=lt??o,!!lt&&(It=="number"||It!="symbol"&&K.test(Le))&&Le>-1&&Le%1==0&&Le<lt}j(fn,"isIndex");function sr(Le,lt,It){if(!Zr(It))return!1;var _r=typeof lt;return(_r=="number"?Ah(It)&&fn(lt,It.length):_r=="string"&< in It)?eu(It[lt],Le):!1}j(sr,"isIterateeCall");function Wr(Le){var lt=typeof Le;return lt=="string"||lt=="number"||lt=="symbol"||lt=="boolean"?Le!=="__proto__":Le===null}j(Wr,"isKeyable");function qr(Le){return!!Ot&&Ot in Le}j(qr,"isMasked");function Ri(Le){var lt=Le&&Le.constructor,It=typeof lt=="function"&<.prototype||He;return Le===It}j(Ri,"isPrototype");function Ai(Le){var lt=[];if(Le!=null)for(var It in Object(Le))lt.push(It);return lt}j(Ai,"nativeKeysIn");function Vo(Le){return An.call(Le)}j(Vo,"objectToString");function Lc(Le,lt,It){return lt=je(lt===void 0?Le.length-1:lt,0),function(){for(var _r=arguments,Xi=-1,$a=je(_r.length-lt,0),lo=Array($a);++Xi<$a;)lo[Xi]=_r[lt+Xi];Xi=-1;for(var sa=Array(lt+1);++Xi<lt;)sa[Xi]=_r[Xi];return sa[lt]=It(lo),Ee(Le,this,sa)}}j(Lc,"overRest");function $o(Le,lt){if(!(lt==="constructor"&&typeof Le[lt]=="function")&<!="__proto__")return Le[lt]}j($o,"safeGet");var h2=bs(Jl);function bs(Le){var lt=0,It=0;return function(){var _r=tt(),Xi=a-(_r-It);if(It=_r,Xi>0){if(++lt>=i)return arguments[0]}else lt=0;return Le.apply(void 0,arguments)}}j(bs,"shortOut");function Hu(Le){if(Le!=null){try{return _t.call(Le)}catch{}try{return Le+""}catch{}}return""}j(Hu,"toSource");function eu(Le,lt){return Le===lt||Le!==Le&<!==lt}j(eu,"eq");var Rh=is(function(){return arguments}())?is:function(Le){return eo(Le)&&Ye.call(Le,"callee")&&!bt.call(Le,"callee")},I1=Array.isArray;function Ah(Le){return Le!=null&&$n(Le.length)&&!um(Le)}j(Ah,"isArrayLike");function f2(Le){return eo(Le)&&Ah(Le)}j(f2,"isArrayLikeObject");var f3=Ae||gie;function um(Le){if(!Zr(Le))return!1;var lt=Yi(Le);return lt==f||lt==m||lt==u||lt==C}j(um,"isFunction");function $n(Le){return typeof Le=="number"&&Le>-1&&Le%1==0&&Le<=o}j($n,"isLength");function Zr(Le){var lt=typeof Le;return Le!=null&&(lt=="object"||lt=="function")}j(Zr,"isObject");function eo(Le){return Le!=null&&typeof Le=="object"}j(eo,"isObjectLike");function Io(Le){if(!eo(Le)||Yi(Le)!=_)return!1;var lt=tr(Le);if(lt===null)return!0;var It=Ye.call(lt,"constructor")&<.constructor;return typeof It=="function"&&It instanceof It&&_t.call(It)==Ut}j(Io,"isPlainObject");var so=De?Ve(De):oo;function m2(Le){return Ge(Le,g2(Le))}j(m2,"toPlainObject");function g2(Le){return Ah(Le)?Qn(Le):Ss(Le)}j(g2,"keysIn");var Db=Ue(function(Le,lt,It,_r){po(Le,lt,It,_r)});function p2(Le){return function(){return Le}}j(p2,"constant");function cO(Le){return Le}j(cO,"identity");function gie(){return!1}j(gie,"stubFalse"),t.exports=Db})(ew,ew.exports);var ZKe=ew.exports;const JKe=VX(ZKe),eZe=new Set(["ac","ad","ae","aero","af","ag","ai","al","am","ao","aq","ar","arpa","as","asia","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","biz","bj","bm","bn","bo","br","bs","bt","bv","bw","by","bz","ca","cat","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","com","coop","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","edu","ee","eg","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gov","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","info","int","io","iq","ir","is","it","je","jm","jo","jobs","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mh","mil","mk","ml","mm","mn","mo","mobi","mp","mq","mr","ms","mt","mu","museum","mv","mw","mx","my","mz","na","name","nc","ne","net","nf","ng","ni","nl","no","np","nr","nu","nz","om","onion","org","pa","pe","pf","pg","ph","pk","pl","pm","pn","post","pr","pro","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tel","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","yt","za","zm","zw"]),tZe=new RegExp("^(?:(?:(?:https?|ftp):)?\\/\\/)?(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function v1e(t){if(!Number.isNaN(+t))return!1;if(t.startsWith("http://localhost:3002")||t.startsWith("localhost:3002"))return!0;if(tZe.test(t)){if(BX(t))return!0;try{const e=new URL(UX(t)).hostname.split(".").pop();if(e&&eZe.has(e))return!0}catch{return!1}}return!1}j(v1e,"isLegalUrl");function BX(t){return/^[a-zA-Z]+:\/\//.test(t)}j(BX,"hasProtocol");function _1e(t){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(t)}j(_1e,"isEmail");function UX(t){return BX(t)?t:_1e(t)?`mailto://${t}`:`https://${t}`}j(UX,"normalizeUrl");const nZe=/^-ms-/,rZe=/-([a-z])/g,cm=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],C1e=class os{static stringAt(e){let n="",r=e;for(;r>=cm.length;)r/=cm.length,r-=1,n+=cm[r%cm.length];const i=e%cm.length;return n+=cm[i],n}static indexAt(e){let n=0;for(let r=0;r<e.length-1;r+=1){const i=e.charCodeAt(r)-65,a=e.length-1-r;n+=cm.length**a+cm.length*i}return n+=e.charCodeAt(e.length-1)-65,n}static deleteBlank(e){return os.isString(e)?e.replace(/\s/g,""):e}static getSystemType(){const e=navigator.userAgent,n=navigator.platform==="Win32"||navigator.platform==="Windows",r=navigator.platform==="Mac68K"||navigator.platform==="MacPPC"||navigator.platform==="Macintosh"||navigator.platform==="MacIntel";if(r)return"Mac";if(navigator.platform==="X11"&&!n&&!r)return"Unix";if(String(navigator.platform).indexOf("Linux")>-1)return"Linux";if(n){if(e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1)return"Windows 2000";if(e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1)return"Windows XP";if(e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1)return"Windows 2003";if(e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1)return"Windows Vista";if(e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1)return"Windows 7";if(e.indexOf("Windows NT 10")>-1||e.indexOf("Windows 10")>-1)return"Windows 10";if(e.indexOf("Windows NT 11")>-1||e.indexOf("Windows 11")>-1)return"Windows 11"}return"Unknown system"}static getBrowserType(){const e=navigator.userAgent,n=e.indexOf("Opera")>-1,r=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1&&!n,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1,a=e.indexOf("Edge")>-1,o=e.indexOf("Firefox")>-1,s=e.indexOf("Safari")>-1&&e.indexOf("Chrome")===-1,l=e.indexOf("Chrome")>-1&&e.indexOf("Safari")>-1;if(r){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const u=Number.parseFloat(RegExp.$1);return u===7?"IE7":u===8?"IE8":u===9?"IE9":u===10?"IE10":"0"}return o?"FF":n?"Opera":s?"Safari":l?"Chrome":a?"Edge":i?"IE11":"Unknown browser"}static generateRandomId(e=21,n){return Vl(e,n)}static getClassName(e){return e.constructor.name}static deepMerge(e,...n){n.forEach(o=>o&&a(o));function r(o,s){o.forEach((l,u)=>{var c,d;if(os.isArray(l)){const h=(c=s[u])!=null?c:[];s[u]=h,r(l,h);return}if(os.isObject(l)){const h=(d=s[u])!=null?d:{};s[u]=h,i(l,h);return}s[u]=l})}j(r,"deepArray");function i(o,s){Object.keys(o).forEach(l=>{var u,c;const d=o[l];if(os.isObject(d)){const h=(u=s[l])!=null?u:{};s[l]=h,i(d,h);return}if(os.isArray(d)){const h=(c=s[l])!=null?c:[];s[l]=h,r(d,h);return}s[l]=d})}j(i,"deepObject");function a(o){Object.keys(o).forEach(s=>{var l,u;const c=o[s];if(os.isArray(c)){const d=(l=e[s])!=null?l:[];e[s]=d,r(c,d);return}if(os.isObject(c)){const d=(u=e[s])!=null?u:{};e[s]=d,i(c,d);return}e[s]=c})}return j(a,"deepItem"),e}static numberFixed(e,n){return Number(Number(e).toFixed(n))}static diffValue(e,n){function r(o,s){const l=os.getValueType(o),u=os.getValueType(s);return l!==u?!1:os.isArray(o)?i(o,s):os.isObject(o)?a(o,s):os.isDate(o)?o.getTime()===s.getTime():os.isRegExp(o)?o.toString()===s.toString():o===s}j(r,"diffValue");function i(o,s){if(e.length!==n.length)return!1;for(let l=0,u=o.length;l<u;l++){const c=o[l],d=s[l];if(!r(c,d))return!1}return!0}j(i,"diffArrays");function a(o,s){const l=Object.keys(o),u=Object.keys(s);if(l.length!==u.length)return!1;for(const c of l){if(!u.includes(c))return!1;const d=o[c],h=s[c];if(!r(d,h))return!1}return!0}return j(a,"diffObject"),r(e,n)}static deepClone(e){if(!this.isDefine(e))return e;if(this.isRegExp(e))return new RegExp(e);if(this.isDate(e))return new Date(e);if(this.isArray(e)){const n=[];return e.forEach((r,i)=>{n[i]=os.deepClone(r)}),n}if(this.isObject(e)){const n={};return Object.keys(e).forEach(r=>{const i=e[r];n[r]=os.deepClone(i)}),Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}return e}static getLanguage(){return globalThis.navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||"en-US"}static getValueType(e){return Object.prototype.toString.apply(e)}static isDefine(e){return e!=null}static isBlank(e){return this.isDefine(e)?this.isString(e)?e.trim()==="":!1:!0}static isBoolean(e){return this.getValueType(e)==="[object Boolean]"}static isPlainObject(e){return this.isDefine(e)?Object.getPrototypeOf(e)===Object.getPrototypeOf({}):!1}static isFunction(e){return this.getValueType(e)==="[object Function]"}static isDate(e){return this.getValueType(e)==="[object Date]"}static isRegExp(e){return this.getValueType(e)==="[object RegExp]"}static isArray(e){return this.getValueType(e)==="[object Array]"}static isString(e){return this.getValueType(e)==="[object String]"}static isNumber(e){return this.getValueType(e)==="[object Number]"}static isStringNumber(e){return!isNaN(Number.parseFloat(e))&&isFinite(e)}static isObject(e){return this.getValueType(e)==="[object Object]"}static isEmptyObject(e){for(const n in e)return!1;return!0}static isMobile(){let e=0,n=0;return document.body.clientWidth&&(e=document.body.clientWidth),document.body.clientHeight&&(n=document.body.clientHeight),this.isAndroid()||this.isIPhone()||this.isTablet()||e<350&&n<500}static isTablet(){return/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())}static isWeChat(){const e=navigator.userAgent.toLowerCase();return String(e.match(/MicroMessenger/i))==="micromessenger"}static isAndroid(){const e=navigator.userAgent;return e.indexOf("Android")>-1||e.indexOf("Linux")>-1}static isIPhone(){return/iPhone/i.test(navigator.userAgent)}static isLegalUrl(e){return v1e(e)}static normalizeUrl(e){return UX(e)}static itCount(e){return n=>{for(let r=0;r<e;r++)n&&n()}}static hasLength(e,n){return os.isDefine(e)?os.isDefine(n)?e.length===n:e.length>0:!1}static capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}static fCamelCase(e,n){return n.toUpperCase()}static camelCase(e){return e.replace(nZe,"ms-").replace(rZe,this.fCamelCase)}static removeNull(e){return this.isObject(e)&&Object.keys(e).forEach(n=>{const r=e[n];r==null?delete e[n]:os.removeNull(r)}),e}static fillTwoDimensionalArray(e,n,r){return new Array(e).fill(r).map(i=>new Array(n).fill(r))}static numToWord(e){let n="";for(;e>0;){let r=e%26;r=r===0?r=26:r,n=String.fromCharCode(96+r)+n,e=(e-r)/26}return n.toLocaleUpperCase()}static ABCatNum(e){if(e==null||e.length===0)return Number.NaN;const n=e.toLowerCase().split(""),r=n.length;let i=0,a=0;for(let o=0;o<r;o++)a=n[o].charCodeAt(0)-96,i+=a*26**(r-o-1);return i===0?Number.NaN:i-1}static chatAtABC(e){let n="";for(;e>=0;)n=String.fromCharCode(e%26+97)+n,e=Math.floor(e/26)-1;return n.toUpperCase()}static randSort(e){for(let n=0,r=e.length;n<r;n++){const i=Number.parseInt((Math.random()*r).toString()),a=e[i];e[i]=e[n],e[n]=a}return e}static commonExtend(e,n){const r={};for(const i in e)r[i]=e[i];for(const i in n)n[i]!=null&&(r[i]=n[i]);return r}static commonExtend1(e,n){for(const r in e)n[r]==null&&(n[r]=e[r]);return n}static arrayToObject(e){const n={};return e.forEach((r,i)=>{n[i]={},r.forEach((a,o)=>{n[i][o]=a})}),n}static hasIntersectionBetweenTwoRanges(e,n,r,i){return n>=r&&i>=e}static isStartValidPosition(e){return/^[A-Za-z_]/.test(e)}static isValidParameter(e){const n=/[~!@#$%^&*()+=\-{}\[\]\|:;"'<>,?\/ ]+/.test(e),r=e.length<=255;return!n&&r}static set(e,n,r){const i=n.split("."),a=i.pop();i.forEach(o=>{e[o]||(e[o]={}),e=e[o]}),a&&(e[a]=r)}static clamp(e,n,r){return Math.max(n,Math.min(r,e))}static now(){return performance&&performance.now?performance.now():Date.now()}static mergeWith(e,n,r){return JKe(e,n,r)}};j(C1e,"Tools");let Ie=C1e;function Vl(t=21,e){return e?QKe(e,t)():KKe(t)}j(Vl,"generateRandomId");function mE(t,e,n){const{dataStream:r,textRuns:i=[]}=t;let a=e;const o=[];for(const s of i){const{st:l,ed:u}=s;Ie.hasIntersectionBetweenTwoRanges(e,n,l,u)&&(l>a?(o.push(r.slice(a,l)),o.push(SH(r,{...s,ed:Math.min(u,n)}))):o.push(SH(r,{...s,st:a,ed:Math.min(u,n)}))),a=Math.max(e,Math.min(u,n))}return a!==n&&o.push(r.slice(a,n)),o.join("")}j(mE,"getBodySliceHtml");function S1e(t,e=!0){var n;if(e&&(n=t.paragraphs)!=null&&n.length){const{dataStream:r,paragraphs:i=[]}=t;let a="",o=-1;for(const s of i){const{startIndex:l,paragraphStyle:u={}}=s,{spaceAbove:c,spaceBelow:d,lineSpacing:h}=u,f=[];c!=null&&(typeof c=="number"?f.push(`margin-top: ${c}px`):f.push(`margin-top: ${c.v}px`)),d!=null&&(typeof d=="number"?f.push(`margin-bottom: ${d}px`):f.push(`margin-bottom: ${d.v}px`)),h!=null&&f.push(`line-height: ${h}`),l>o+1?a+=`<p class="UniverNormal" ${f.length?`style="${f.join("; ")};"`:""}>${mE(t,o+1,l)}</p>`:a+=`<p class="UniverNormal" ${f.length?`style="${f.join("; ")};"`:""}></p>`,o=l}return o!==r.length&&(a+=mE(t,o,r.length)),a}else return mE(t,0,t.dataStream.length)}j(S1e,"convertBodyToHtml");function SH(t,e){const{st:n,ed:r,ts:i={}}=e,{ff:a,fs:o,it:s,bl:l,ul:u,st:c,ol:d,bg:h,cl:f,va:m}=i;let g=t.slice(n,r);const p=[];return s===at.TRUE&&(g=`<i>${g}</i>`),m===ca.SUPERSCRIPT?g=`<sup>${g}</sup>`:m===ca.SUBSCRIPT&&(g=`<sub>${g}</sub>`),(u==null?void 0:u.s)===at.TRUE&&(g=`<u>${g}</u>`),(c==null?void 0:c.s)===at.TRUE&&(g=`<s>${g}</s>`),l===at.TRUE&&(g=`<strong>${g}</strong>`),a&&p.push(`font-family: ${a}`),f&&p.push(`color: ${f.rgb}`),o&&p.push(`font-size: ${o}pt`),d&&p.push("text-decoration: overline"),h&&p.push(`background: ${h.rgb}`),p.length?`<span style="${p.join("; ")};">${g}</span>`:g}j(SH,"covertTextRunToHtml");const iZe={[FX.OFFICE]:{[au.ACCENT1]:"#4472C4",[au.ACCENT2]:"#ED7D31",[au.ACCENT3]:"#A5A5A5",[au.ACCENT4]:"#70AD47",[au.ACCENT5]:"#5B9BD5",[au.ACCENT6]:"#70AD47",[au.DARK1]:"#000000",[au.DARK2]:"#44546A",[au.LIGHT1]:"#FFFFFF",[au.LIGHT2]:"#E7E6E6",[au.HYPERLINK]:"#0563C1",[au.FOLLOWED_HYPERLINK]:"#954F72"}},b1e=class{constructor(){Xe(this,"_themeValue",au.LIGHT1),Xe(this,"_themeColors"),Xe(this,"_themeTint"),Xe(this,"_rgbValue",""),Xe(this,"_colorType"),this._colorType=F1.UNSUPPORTED,this._themeColors=FX.OFFICE,this._themeTint=0}asRgbColor(){return new oZe(this._rgbValue,this)}asThemeColor(){return new sZe(this._themeValue,this._themeTint,this._themeColors,this)}build(){switch(this._colorType){case F1.THEME:return this.asThemeColor();case F1.RGB:return this.asRgbColor();case F1.UNSUPPORTED:throw new Error("unsupported color type")}}setRgbColor(e){return this._colorType=F1.RGB,this._rgbValue=e,this}setThemeColors(e){this._colorType=F1.THEME,this._themeColors=e}setThemeTint(e){this._colorType=F1.THEME,this._themeTint=e}setThemeColor(e){return this._colorType=F1.THEME,this._themeValue=e,this}getColorType(){return this._colorType}};j(b1e,"ColorBuilder");let HX=b1e;const y1e=class E1e{constructor(e){Xe(this,"_builder"),this._builder=e}static rgbColorToHexValue(e){return`#${((1<<24)+(e.getRed()<<16)+(e.getGreen()<<8)+e.getBlue()).toString(16).slice(1)}`}static hexValueToRgbColor(e){e?e.indexOf("#")>-1&&(e=e.substring(1)):e="#000000";const n=+`0x${e[0]}${e[1]}`,r=+`0x${e[2]}${e[3]}`,i=+`0x${e[4]}${e[5]}`;return new HX().setRgbColor(`rgb(${n},${r},${i})`).asRgbColor()}static hexToRgbString(e){const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(n,(a,o,s,l)=>o+o+s+s+l+l);const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);let i=null;if(r){const a=Number.parseInt(r[1],16),o=Number.parseInt(r[2],16),s=Number.parseInt(r[3],16);i=`rgba(${a},${o},${s})`}return i}asRgbColor(){return this._builder.asRgbColor()}asThemeColor(){return this._builder.asThemeColor()}getColorType(){return this._builder.getColorType()}clone(){return new E1e(this._builder)}equals(e){return!1}};j(y1e,"Color");let tw=y1e;const R1e=class{constructor(e){Xe(this,"_saturation",0),Xe(this,"_hue",0),Xe(this,"_lightness",0),Xe(this,"_alpha",0);const n=e.getRed()/255,r=e.getGreen()/255,i=e.getBlue()/255,a=e.getAlpha()/255,o=Math.min(n,Math.min(r,i)),s=Math.max(n,Math.max(r,i)),l=s-o;if(s===o){this._hue=0,this._saturation=0,this._lightness=s;return}this._lightness=(o+s)/2,this._lightness<.5?this._saturation=l/(s+o):this._saturation=l/(2-s-o),n===s&&(this._hue=(r-i)/l),r===s&&(this._hue=2+(i-n)/l),i===s&&(this._hue=4+(n-r)/l),this._hue*=60,this._hue<0&&(this._hue+=360),this._alpha=a}asRgbColor(){const e=new HX;if(this._saturation===0)return e.setRgbColor(`rgba(${this._lightness*255},${this._lightness*255},${this._lightness*255},${this._alpha*255})`),e.asRgbColor();let n;this._lightness<.5?n=this._lightness*(1+this._saturation):n=this._lightness+this._saturation-this._lightness*this._saturation;const r=2*this._lightness-n,i=this._hue/360,a=i+1/3,o=this.setColor(n,r,a),s=this.setColor(n,r,i),l=i-1/3,u=this.setColor(n,r,l);return e.setRgbColor(`rgba(${Math.round(o*255)},${Math.round(s*255)},${Math.round(u*255)},${this._alpha*255})`),e.asRgbColor()}getLightness(){return this._lightness}getHue(){return this._hue}getSaturation(){return this._saturation}getAlpha(){return this._alpha}setColor(e,n,r){r<0&&(r+=1),r>1&&(r-=1);let i;return 6*r<1?i=n+(e-n)*6*r:2*r<1?i=e:3*r<2?i=n+(e-n)*(2/3-r)*6:i=n,i}setLightness(e){this._lightness=e}};j(R1e,"HLSColor");let aZe=R1e;const b5=class Am extends tw{constructor(e,n){super(n),Xe(this,"_cssString"),Xe(this,"_red"),Xe(this,"_green"),Xe(this,"_blue"),Xe(this,"_alpha");let r=e.match(Am.RGBA_EXTRACT);if(r){const i=+r[1],a=+r[2],o=+r[3],s=+r[4];this._cssString=e,this._red=i,this._green=a,this._blue=o,this._alpha=s;return}if(r=e.match(Am.RGB_EXTRACT),r){const i=+r[1],a=+r[2],o=+r[3];this._cssString=e,this._red=i,this._green=a,this._blue=o,this._alpha=1;return}throw new Error("Invalid rgba or rgb color")}asHexString(){return tw.rgbColorToHexValue(this)}getRed(){let e=this._red+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getGreen(){let e=this._green+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getBlue(){let e=this._blue+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getAlpha(){return this._alpha}getColorType(){return F1.RGB}clone(){return new Am(this._cssString,this._builder)}asThemeColor(){throw new Error("rgb color not support to themeColor")}equals(e){return e instanceof Am?e._red===this._red&&e._blue===this._blue&&e._green===this._green&&e._alpha===this._alpha:!1}getCssString(){return this._cssString}};j(b5,"RgbColor"),Xe(b5,"RGB_COLOR_AMT",0),Xe(b5,"RGBA_EXTRACT",new RegExp("\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*")),Xe(b5,"RGB_EXTRACT",new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));let oZe=b5;const bH=class q3 extends tw{constructor(e,n,r,i){super(i),Xe(this,"_themeColorType"),Xe(this,"_themeTint"),Xe(this,"_themeColors"),this._themeColorType=e,this._themeTint=n,this._themeColors=r}lumValue(e,n){if(e==null)return n;let r;return e<0?r=n*(1+e):r=n*(1-e)+(255-255*(1-e)),r}asRgbColor(){const e=iZe[this._themeColors];if(e==null)throw new Error("not find themeColors type");const n=e[this._themeColorType];if(n==null)throw new Error("not find themeColors value");let r;if(q3._cacheThemeColor.has(this._themeColors)){if(r=q3._cacheThemeColor.get(this._themeColors),r.has(this._themeColorType))return r.get(this._themeColorType)}else r=new Map,q3._cacheThemeColor.set(this._themeColors,r);const i=new aZe(tw.hexValueToRgbColor(n));i.setLightness(this.lumValue(this._themeTint,i.getLightness()*255)/255);const a=i.asRgbColor();return r.set(this._themeColorType,a),a}clone(){return new q3(this._themeColorType,this._themeTint,this._themeColors,this._builder)}equals(e){return e instanceof q3?e._themeColorType===this._themeColorType:!1}getColorType(){return F1.THEME}getThemeColorType(){return this._themeColorType}};j(bH,"ThemeColor"),Xe(bH,"_cacheThemeColor",new Map);let sZe=bH;const Gh={aliceBlue:[240,248,255],antiqueWhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blancheAlmond:[255,235,205],blue:[0,0,255],blueViolet:[138,43,226],brown:[165,42,42],burlyWood:[222,184,135],cadetBlue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornFlowerBlue:[100,149,237],cornSilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkCyan:[0,139,139],darkGoldenrod:[184,132,11],darkGray:[169,169,169],darkGreen:[0,100,0],darkGrey:[169,169,169],darkKhaki:[189,183,107],darkMagenta:[139,0,139],darkOliveGreen:[85,107,47],darkOrange:[255,140,0],darkOrchid:[153,50,204],darkRed:[139,0,0],darkSalmon:[233,150,122],darkSeaGreen:[143,188,143],darkSlateBlue:[72,61,139],darkSlateGray:[47,79,79],darkSlateGrey:[47,79,79],darkTurquoise:[0,206,209],darkViolet:[148,0,211],deepPink:[255,20,147],deepSkyBlue:[0,191,255],dimGray:[105,105,105],dimGrey:[105,105,105],dodgerBlue:[30,144,255],firebrick:[178,34,34],floralWhite:[255,255,240],forestGreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostWhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenYellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotPink:[255,105,180],indianRed:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderBlush:[255,240,245],lawnGreen:[124,252,0],lemonChiffon:[255,250,205],lightblue:[173,216,230],lightCoral:[240,128,128],lightCyan:[224,255,255],lightGoldenrodYellow:[250,250,210],lightGray:[211,211,211],lightGreen:[144,238,144],lightGrey:[211,211,211],lightPink:[255,182,193],lightSalmon:[255,160,122],lightSeaGreen:[32,178,170],lightSkyBlue:[135,206,250],lightSlateGray:[119,136,153],lightSlateGrey:[119,136,153],lightSteelBlue:[176,196,222],lightYellow:[255,255,224],lime:[0,255,0],limeGreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumAquamarine:[102,205,170],mediumBlue:[0,0,205],mediumOrchid:[186,85,211],mediumPurple:[147,112,219],mediumSeaGreen:[60,179,113],mediumSlateBlue:[123,104,238],mediumSpringGreen:[0,250,154],mediumTurquoise:[72,209,204],mediumVioletRed:[199,21,133],midBightBlue:[25,25,112],mintCream:[245,255,250],mistyRose:[255,228,225],moccasin:[255,228,181],navajoWhite:[255,222,173],navy:[0,0,128],oldLace:[253,245,230],olive:[128,128,0],oliveDrab:[107,142,35],orange:[255,165,0],orangeRed:[255,69,0],orchid:[218,112,214],paleGoldenrod:[238,232,170],paleGreen:[152,251,152],paleTurquoise:[175,238,238],paleVioletRed:[219,112,147],papayaWhip:[255,239,213],peachPuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderBlue:[176,224,230],purple:[128,0,128],rebeccaPurple:[102,51,153],red:[255,0,0],rosyBrown:[188,143,143],royalBlue:[65,105,225],saddleBrown:[139,69,19],salmon:[250,128,114],sandyBrown:[244,164,96],seaGreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyBlue:[135,206,235],slateBlue:[106,90,205],slateGray:[119,128,144],slateGrey:[119,128,144],snow:[255,255,250],springGreen:[0,255,127],steelBlue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whiteSmoke:[245,245,245],yellow:[255,255,0],yellowGreen:[154,205,5]},A1e=class Ld{constructor(e){if(Xe(this,"_color"),Xe(this,"_rgbColor"),Xe(this,"_isValid",!1),e==null){this._setNullColor();return}if(e instanceof Ld){this._color={...e._color},this._rgbColor={...e._rgbColor};return}const n=w1e(e);if(n==null){this._setNullColor();return}this._color=n;const r=hZe(this._color);if(r==null){this._setNullColor();return}this._rgbColor=r,this._isValid=!0}static mix(e,n,r){var i,a;r=Math.min(1,Math.max(0,r));const o=new Ld(e).toRgb(),s=new Ld(n).toRgb(),l=(i=o.a)!=null?i:1,u=(a=s.a)!=null?a:1,c={r:(s.r-o.r)*r+o.r,g:(s.g-o.g)*r+o.g,b:(s.b-o.b)*r+o.b,a:(u-l)*r+l};return new Ld(c)}static getContrastRatio(e,n){const r=new Ld(e).getLuminance(),i=new Ld(n).getLuminance();return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}get isValid(){return this._isValid}toRgb(){return this._rgbColor}toRgbString(){const{r:e,g:n,b:r,a:i=1}=this.toRgb(),a=i<1;return`rgb${a?"a":""}(${e},${n},${r}${a?`,${i}`:""})`}toString(){return this.toRgbString()}toHexString(e){const{r:n,g:r,b:i,a=1}=this.toRgb(),o=a<1,s=[Tb(Math.round(n).toString(16)),Tb(Math.round(r).toString(16)),Tb(Math.round(i).toString(16)),Tb(Math.round(a*255).toString(16))];return e&&s[0][0]===s[0][1]&&s[1][0]===s[1][1]&&s[2][0]===s[2][1]&&s[3][0]===s[3][1]?o?`#${s[0][0]}${s[1][0]}${s[2][0]}${s[3][0]}`:`#${s[0][0]}${s[1][0]}${s[2][0]}`:o?`#${s[0]}${s[1]}${s[2]}${s[3]}`:`#${s[0]}${s[1]}${s[2]}`}toHsv(){return pZe(this.toRgb())}toHsl(){return gZe(this.toRgb())}lighten(e=10){const n=this.toHsl();return n.l+=e,n.l=Math.min(Math.max(n.l,0),100),new Ld(n)}darken(e=10){const n=this.toHsl();return n.l-=e,n.l=Math.min(Math.max(n.l,0),100),new Ld(n)}setAlpha(e){return new Ld({...this._rgbColor,a:e})}getLuminance(){let{r:e,g:n,b:r}=this.toRgb();return e=SO(e),n=SO(n),r=SO(r),Number((.2126*e+.7152*n+.0722*r).toFixed(3))}getBrightness(){const{r:e,g:n,b:r}=this.toRgb();return(e*299+n*587+r*114)/1e3}getAlpha(){var e;return(e=this._color.a)!=null?e:1}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}_setNullColor(){this._isValid=!1,this._color={r:0,g:0,b:0,a:0},this._rgbColor={r:0,g:0,b:0,a:0}}};j(A1e,"ColorKit");let Zs=A1e;const Tb=j(t=>t.length===1?`0${t}`:t,"pad2"),SO=j(t=>(t/=255,t<=.03928?t/12.92:((t+.055)/1.055)**2.4),"rgbNormalize"),w1e=j(t=>{if(_Ze(t)){if("r"in t){const r={r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)};return t.a!==void 0&&(r.a=t.a),r}if("l"in t){const r={h:Math.round(t.h),s:t.s,l:t.l};return t.a!==void 0&&(r.a=t.a),r}const n={h:Math.round(t.h),s:t.s,v:t.v};return t.a!==void 0&&(n.a=t.a),n}const e=t.trim();if(Gh[e]){const n=Gh[e],r={r:Math.round(n[0]),g:Math.round(n[1]),b:Math.round(n[2])};return r.a=n[3]||1,r}if(e.startsWith("#"))return lZe(e);if(e.startsWith("rgb"))return uZe(e);if(e.startsWith("hsl"))return cZe(e);if(e.startsWith("hsv"))return dZe(e)},"toColor"),lZe=j(t=>{const e=t.substring(1),n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(n);if(!r||r.length<3)throw new Error(`The color '${t}' is illegal hex color`);r[0].length===1&&(r=r.map(a=>a+a));const i={r:Number.parseInt(r[0],16),g:Number.parseInt(r[1],16),b:Number.parseInt(r[2],16)};return r.length>3&&(i.a=Number.parseInt(r[3],16)/255),i},"hexToColor"),uZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal rgb color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal rgb color`);const r={r:Number.parseInt(n[0],10),g:Number.parseInt(n[1],10),b:Number.parseInt(n[2],10)};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"rgbToColor"),cZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal hsl color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal hsl color`);const r={h:Number.parseInt(n[0],10),s:Number.parseFloat(n[1]),l:Number.parseFloat(n[2])};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"hslToColor"),dZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal hsv color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal hsv color`);const r={h:Number.parseInt(n[0],10),s:Number.parseFloat(n[1]),v:Number.parseFloat(n[2])};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"hsvToColor"),hZe=j(t=>{const e=w1e(t);if(e!=null)return"r"in e?e:"l"in e?fZe(e):mZe(e)},"toRgbColor"),bO=j((t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),"hue2Rgb"),fZe=j(t=>{let{h:e,s:n,l:r}=t;e/=360,n/=100,r/=100;let i=0,a=0,o=0;if(n===0)i=a=o=r;else{const l=r<.5?r*(1+n):r+n-r*n,u=2*r-l;i=bO(u,l,e+1/3),a=bO(u,l,e),o=bO(u,l,e-1/3)}const s={r:Math.round(i*255),g:Math.round(a*255),b:Math.round(o*255)};return t.a!==void 0&&(s.a=t.a),s},"hsl2Rgb"),mZe=j(t=>{let{h:e,s:n,v:r}=t;e=e/360*6,n/=100,r/=100;const i=Math.floor(e),a=e-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),u=i%6,c=[r,s,o,o,l,r][u],d=[l,r,r,s,o,o][u],h=[o,o,l,r,r,s][u],f={r:c*255,g:d*255,b:h*255};return t.a!==void 0&&(f.a=t.a),f},"hsv2Rgb"),gZe=j(t=>{let{r:e,g:n,b:r}=t;e/=255,n/=255,r/=255;const i=Math.max(e,n,r),a=Math.min(e,n,r),o=(i+a)/2;let s,l;if(i===a)s=l=0;else{const c=i-a;switch(l=o>.5?c/(2-i-a):c/(i+a),i){case e:s=(n-r)/c+(n<r?6:0);break;case n:s=(r-e)/c+2;break;default:s=(e-n)/c+4;break}s/=6}const u={h:Math.round(s*360),s:Math.round(l*100),l:Math.round(o*100)};return t.a!==void 0&&(u.a=t.a),u},"rgb2Hsl"),pZe=j(t=>{let{r:e,g:n,b:r}=t;e/=255,n/=255,r/=255;const i=Math.max(e,n,r),a=Math.min(e,n,r);let o;const s=i,l=i-a,u=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;default:o=(e-n)/l+4;break}o/=6}const c={h:Math.round(o*360),s:Math.round(u*100),v:Math.round(s*100)};return t.a!==void 0&&(c.a=t.a),c},"rgb2Hsv"),vZe=j(t=>t==null,"isUndefinedOrNull"),_Ze=j(t=>!vZe(t)&&typeof t=="object","isObject");function CZe(t){const e=/^#(?:[0]{3}|[0]{6})\b/,n=/^rgb\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*\)$/,r=/^rgba\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*,\s*(1|1\.0*|0?\.\d+)\)$/,i=/^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*\)$/,a=/^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;return!!(e.test(t)||n.test(t)||r.test(t)||i.test(t)||a.test(t))}j(CZe,"isBlackColor");function yH(t){const e=/^#(?:[Ff]{3}|[Ff]{6})\b/,n=/^rgb\s*\(\s*255\s*,\s*255\s*,\s*255\s*\)$/,r=/^rgba\s*\(\s*255\s*,\s*255\s*,\s*255\s*,\s*(1|1\.0*|0?\.\d+)\)$/,i=/^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*\)$/,a=/^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;return!!(e.test(t)||n.test(t)||r.test(t)||i.test(t)||a.test(t))}j(yH,"isWhiteColor");var go=(t=>(t[t.COVER=0]="COVER",t[t.REPLACE=1]="REPLACE",t[t.INTERSECTION=2]="INTERSECTION",t))(go||{});function YP(t){return t&&(t.s!==void 0||t.p!==void 0||t.v!==void 0||t.t!==void 0||t.f!==void 0||t.si!==void 0||t.custom!==void 0)}j(YP,"isICellData");function D1e(t){if(t.t!==void 0)return t.t;if(typeof t.v=="string")return rr.STRING;if(typeof t.v=="number")return rr.NUMBER;if(typeof t.v=="boolean")return rr.BOOLEAN}j(D1e,"getCellValueType");function pg(t){if(t==null)return!0;const{v:e,f:n,si:r,p:i,s:a,custom:o}=t;return!(!(e==null||typeof e=="string"&&e.length===0)||n!=null&&n.length>0||r!=null&&r.length>0||i!=null||o!=null)}j(pg,"isNullCell");function SZe(t){return t!=null&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean")}j(SZe,"isCellV");var it=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ROW=1]="ROW",t[t.COLUMN=2]="COLUMN",t[t.ALL=3]="ALL",t))(it||{}),yr=(t=>(t[t.NONE=0]="NONE",t[t.ROW=1]="ROW",t[t.COLUMN=2]="COLUMN",t[t.ALL=3]="ALL",t))(yr||{});function I1e(t){return[t.startRow,t.startColumn,t.endRow,t.endColumn]}j(I1e,"selectionToArray");var Ws=(t=>(t.NONE="none",t.BACKWARD="backward",t.FORWARD="forward",t))(Ws||{}),v4=(t=>(t.RECT="RECT",t.TEXT="TEXT",t))(v4||{});function XP(t,e,n){let r=!1,i=!1,a=t,o=e,s=t,l=e;if(n==null)return{actualRow:t,actualColumn:e,isMergedMainCell:i,isMerged:r,endRow:a,endColumn:o,startRow:s,startColumn:l};for(let u=0;u<n.length;u++){const{startRow:c,endRow:d,startColumn:h,endColumn:f}=n[u];if(t===c&&e===h){a=d,o=f,s=c,l=h,i=!0;break}if(t>=c&&t<=d&&e>=h&&e<=f){a=d,o=f,s=c,l=h,r=!0;break}}return{actualRow:t,actualColumn:e,isMergedMainCell:i,isMerged:r,endRow:a,endColumn:o,startRow:s,startColumn:l}}j(XP,"getCellInfoInMergeData");function GP(t){const{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i,mergeInfo:a}=t;let{startY:o,endY:s,startX:l,endX:u}=t,c=e,d=n,h=e,f=n;if(r&&a){const{startRow:m,startColumn:g,endRow:p,endColumn:v,startY:_,endY:C,startX:S,endX:b}=a;c=m,d=g,h=p,f=v,o=_,s=C,l=S,u=b}return i&&(o=a.startY,s=a.endY,l=a.startX,u=a.endX,h=a.endRow,f=a.endColumn),{startRow:c,startColumn:d,endRow:h,endColumn:f,startY:o,endY:s,startX:l,endX:u}}j(GP,"makeCellToSelection");function P1e(t){if(!t)return;const{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i,startRow:a,startColumn:o,endRow:s,endColumn:l}=t;let u=e,c=n,d=e,h=n;return(r||i)&&(u=a,c=o,d=s,h=l),{startRow:u,startColumn:c,endRow:d,endColumn:h}}j(P1e,"makeCellRangeToRangeData");function M1e(t){var e;return!t||(((e=t==null?void 0:t.v)==null?void 0:e.toString())||"").length===0&&!t.p}j(M1e,"isEmptyCell");function EH(t){return M1e(t)&&(t==null?void 0:t.coverable)!==!1}j(EH,"isCellCoverable");function js(t){if(t){if(t.rgb)return t.rgb;if(t.th)return new HX().setThemeColor(t.th).asThemeColor().asRgbColor().getCssString()}return null}j(js,"getColorStyle");function Ar(t){return Ie.isString(t)&&t.substring(0,1)==="="&&t.length>1}j(Ar,"isFormulaString");function Rl(t){return Ie.isString(t)&&t.length>0}j(Rl,"isFormulaId");function RH(t,e=!1){var n;let r="";const i=new Map([["ff",()=>{t.ff&&(r+=`font-family: ${t.ff}; `)}],["fs",()=>{if(t.fs){let o=t.fs;t.va&&(o/=2),r+=`font-size: ${o}pt; `}}],["it",()=>{t.it&&(r+="font-style: italic; ")}],["bl",()=>{t.bl&&(r+="font-weight: bold; ")}],["ul",()=>{var o;(o=t.ul)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} underline`):r+="text-decoration: underline; ",t.ul.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.ul.cl)}; `),t.ul.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.ul.t} `))}],["st",()=>{var o;(o=t.st)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} line-through`):r+="text-decoration-line: line-through; ",t.st.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.st.cl)}; `),t.st.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.st.t} `))}],["ol",()=>{var o;(o=t.ol)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} overline`):r+="text-decoration-line: overline; ",t.ol.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.ol.cl)}; `),t.ol.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.ol.t} `))}],["bg",()=>{t.bg&&(r+=`background: ${js(t.bg)}; `)}],["bd",()=>{var o,s,l,u,c,d,h,f,m,g,p,v;(o=t.bd)!=null&&o.b&&(r+=`border-bottom: ${y5((s=t.bd)==null?void 0:s.b.s)} ${(l=js(t.bd.b.cl))!=null?l:""}; `),(u=t.bd)!=null&&u.t&&(r+=`border-top: ${y5((c=t.bd)==null?void 0:c.t.s)} ${(d=js(t.bd.t.cl))!=null?d:""}; `),(h=t.bd)!=null&&h.r&&(r+=`border-right: ${y5((f=t.bd)==null?void 0:f.r.s)} ${(m=js(t.bd.r.cl))!=null?m:""}; `),(g=t.bd)!=null&&g.l&&(r+=`border-left: ${y5((p=t.bd)==null?void 0:p.l.s)} ${(v=js(t.bd.l.cl))!=null?v:""}; `)}],["cl",()=>{t.cl&&(r+=`color: ${js(t.cl)}; `)}],["va",()=>{t.va===ca.SUBSCRIPT?r+="vertical-align: sub; ":t.va===ca.SUPERSCRIPT&&(r+="vertical-align: super; ")}],["td",()=>{t.td===JA.LEFT_TO_RIGHT?r+="direction: ltr; ":t.td===JA.RIGHT_TO_LEFT&&(r+="direction: rtl; ")}],["tr",()=>{var o,s,l;t.tr&&(r+=`--data-rotate: (${(o=t.tr)==null?void 0:o.a}deg${(s=t.tr)!=null&&s.v?` ,${(l=t.tr)==null?void 0:l.v}`:""});`)}],["ht",()=>{t.ht===dr.LEFT?r+="text-align: left; ":t.ht===dr.RIGHT?r+="text-align: right; ":t.ht===dr.CENTER?r+="text-align: center; ":t.ht===dr.JUSTIFIED&&(r+="text-align: justify; ")}],["vt",()=>{t.vt===ea.BOTTOM?r+="vertical-align: bottom; ":t.vt===ea.TOP?r+="vertical-align: top; ":t.vt===ea.MIDDLE&&(r+="vertical-align: middle; ")}],["tb",()=>{t.tb===Li.CLIP?r+="white-space: nowrap; overflow-x: hidden; ":t.tb===Li.WRAP&&(r+="white-space: normal;")}],["pd",()=>{var o,s,l,u,c,d,h,f;const m=`${(o=t.pd)==null?void 0:o.b}pt`,g=`${(s=t.pd)==null?void 0:s.t}pt`,p=`${(l=t.pd)==null?void 0:l.l}pt`,v=`${(u=t.pd)==null?void 0:u.r}pt`;(c=t.pd)!=null&&c.b&&(r+=`padding-bottom: ${m}; `),(d=t.pd)!=null&&d.t&&(r+=`padding-top: ${g}; `),(h=t.pd)!=null&&h.l&&(r+=`padding-left: ${p}; `),(f=t.pd)!=null&&f.r&&(r+=`padding-right: ${v}; `)}]]),a=["bd","tr","tb"];for(const o in t)e&&a.includes(o)||(n=i.get(o))==null||n();return r}j(RH,"handleStyleToString");function y5(t){let e="";return t===Un.NONE?e="none":t===Un.THIN?e="0.5pt solid":t===Un.HAIR?e="0.5pt double":t===Un.DOTTED?e="0.5pt dotted":t===Un.DASHED||t===Un.DASH_DOT?e="0.5pt dashed":t===Un.DASH_DOT_DOT?e="0.5pt dotted":t===Un.DOUBLE?e="0.5pt double":t===Un.MEDIUM?e="1pt solid":t===Un.MEDIUM_DASHED||t===Un.MEDIUM_DASH_DOT?e="1pt dashed":t===Un.MEDIUM_DASH_DOT_DOT?e="1pt dotted":t===Un.SLANT_DASH_DOT?e="0.5pt dashed":t===Un.THICK&&(e="1.5pt solid"),e}j(y5,"getBorderStyle");function O1(t){let e=0;if(t=t.trim(),t==="none")e=Un.NONE;else if(t==="0.5pt solid")e=Un.THIN;else if(t==="0.5pt double")e=Un.HAIR;else if(t==="0.5pt dotted")e=Un.DOTTED;else if(t==="0.5pt dashed")e=Un.DASHED;else if(t==="1pt solid")e=Un.MEDIUM;else if(t==="1pt dashed")e=Un.MEDIUM_DASHED;else if(t==="1pt dotted")e=Un.MEDIUM_DASH_DOT_DOT;else if(t==="1.5pt solid")e=Un.THICK;else if(!t.includes("none"))e=Un.THIN;else return Un.NONE;return e}j(O1,"getBorderStyleType");function bZe(t,e){let n=t.body;if(e){const{headers:r,footers:i}=t;r!=null&&r[e]?n=r[e].body:i!=null&&i[e]&&(n=i[e].body)}return n}j(bZe,"getDocsUpdateBody");function QP(t,e){const{startRow:n,endRow:r,startColumn:i,endColumn:a,rangeType:o}=t;if(n<0||i<0||r<0||a<0||!(Number.isNaN(n)&&Number.isNaN(r))&&o===it.COLUMN||!(Number.isNaN(i)&&Number.isNaN(a))&&o===it.ROW||o!==it.ROW&&o!==it.COLUMN&&(Number.isNaN(i)||Number.isNaN(n)||Number.isNaN(a)||Number.isNaN(r)))return!1;if(e){const s=e.getRowCount(),l=e.getColumnCount();if(r>=s||a>=l)return!1}return!0}j(QP,"isValidRange");function DC(t,e){return{startRow:t,endRow:t,startColumn:e,endColumn:e}}j(DC,"cellToRange");function jX(t,e){return Object.prototype.toString.call(t)===Object.prototype.toString.call(e)?Object.prototype.toString.call(t)==="[object Object]"||Object.prototype.toString.call(t)==="[object Array]"?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(n=>jX(t[n],e[n])):t===e:!1}j(jX,"deepCompare");function T1e(t,e){const n=t.ts||{},r=e.ts||{};return t.sId!==e.sId?!1:jX(n,r)}j(T1e,"isSameStyleTextRun");function L1e(t,e){return e.some(n=>t.indexOf(n)>-1)}j(L1e,"checkForSubstrings");function _4(t,e){let n;function r(...i){const a=this,o=j(function(){n=null,t.apply(a,i)},"later");clearTimeout(n),n=setTimeout(o,e)}return j(r,"run"),Object.defineProperty(r,"cancel",{value:j(()=>{clearTimeout(n)},"value"),enumerable:!1,writable:!1}),r}j(_4,"debounce");function IC(t,e,n,r){if(t>e&&([t,e]=[e,t]),n>r&&([n,r]=[r,n]),e<n||r<t)return[t,e];n<t&&(n=t),r>e&&(r=e);const i=r-n+1;let a=[];return t===n?a=[r+1-i,e-i]:e===r?a=[t,n-1]:a=[t,e-i],a}j(IC,"horizontalLineSegmentsSubtraction");function yZe(t){if(t==null)return!1;const e=t.bullet;return(e==null?void 0:e.listId)!=null}j(yZe,"checkParagraphHasBullet");function EZe(t){if(t==null)return!1;const e=t.paragraphStyle;return $X(e)}j(EZe,"checkParagraphHasIndent");function $X(t){var e;return!(t==null||(t.indentStart==null||t.indentStart.v===0)&&t.hanging==null||((e=t.hanging)==null?void 0:e.v)===0)}j($X,"checkParagraphHasIndentByStyle");function WX(t,e,n){return t.slice(0,e)+n+t.slice(e)}j(WX,"insertTextToContent");function zX(t,e,n){return e>n?t:t.slice(0,e)+t.slice(n)}j(zX,"deleteContent");function Kr(t){return t===null||t.toString().replace(/\s/g,"")===""||typeof t=="boolean"?!1:!isNaN(t)}j(Kr,"isRealNum");function x1e(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+(e<<6)+(e<<16)-e;return e>>>0}j(x1e,"hashAlgorithm");const Ta=Symbol("newer"),ss=Symbol("older"),O1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:e.key}):{done:!0,value:void 0}}};j(O1e,"KeyIterator");let RZe=O1e;const N1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:e.value}):{done:!0,value:void 0}}};j(N1e,"ValueIterator");let AZe=N1e;const k1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}}};j(k1e,"EntryIterator");let wZe=k1e;var F1e,V1e;V1e=Ta,F1e=ss;const B1e=class{constructor(e,n){Xe(this,"key"),Xe(this,"value"),Xe(this,V1e),Xe(this,F1e),this.key=e,this.value=n,this[Ta]=void 0,this[ss]=void 0}toJSON(){return{key:this.key,value:this.value}}};j(B1e,"Entry");let Vie=B1e;const U1e=class{constructor(...e){if(Xe(this,"_keymap"),Xe(this,"size",0),Xe(this,"limit"),Xe(this,"oldest"),Xe(this,"newest"),Xe(this,"_onShiftListeners",[]),Lb.hasLength(e,1)){if(Lb.isNumber(e[0])){const n=e[0];this._initialize(n,void 0);return}if(Lb.isIterable(e[0])){const n=e[0];this._initialize(0,n);return}return}if(Lb.hasLength(e,2)){const n=e[0],r=e[1];this._initialize(n,r)}}onShift(e){if(this._onShiftListeners.indexOf(e)===-1)return this._onShiftListeners.push(e),$t(()=>Zu(this._onShiftListeners,e));throw new Error("[LRUMap]: the listener has been registered!")}_initialize(e,n){this.oldest=void 0,this.newest=void 0,this.size=0,this.limit=e,this._keymap=new Map,n&&(this.assign(n),e<1&&(this.limit=this.size))}_markEntryAsUsed(e){e!==this.newest&&(e[Ta]&&(e===this.oldest&&(this.oldest=e[Ta]),e[Ta][ss]=e[ss]),e[ss]&&(e[ss][Ta]=e[Ta]),e[Ta]=void 0,e[ss]=this.newest,this.newest&&(this.newest[Ta]=e),this.newest=e)}assign(e){let n,r=this.limit||Number.MAX_VALUE;this._keymap.clear();const i=e[Symbol.iterator]();for(let a=i.next();!a.done;a=i.next()){const o=new Vie(a.value[0],a.value[1]);if(this._keymap.set(o.key,o),n?(n[Ta]=o,o[ss]=n):this.oldest=o,n=o,r--===0)throw new Error("overflow")}this.newest=n,this.size=this._keymap.size}set(e,n){let r=this._keymap.get(e);return r?(r.value=n,this._markEntryAsUsed(r),this):(this._keymap.set(e,r=new Vie(e,n)),this.newest?(this.newest[Ta]=r,r[ss]=this.newest):this.oldest=r,this.newest=r,++this.size,this.size>this.limit&&this.shift(),this)}shift(){const e=this.oldest;if(e)return this.oldest&&this.oldest[Ta]?(this.oldest=this.oldest[Ta],this.oldest[ss]=void 0):(this.oldest=void 0,this.newest=void 0),e[Ta]=e[ss]=void 0,this._keymap.delete(e.key),--this.size,this._onShiftListeners.forEach(n=>n(e)),[e.key,e.value]}get(e){const n=this._keymap.get(e);if(n)return this._markEntryAsUsed(n),n.value}has(e){return this._keymap.has(e)}find(e){const n=this._keymap.get(e);return n?n.value:void 0}delete(e){const n=this._keymap.get(e);if(n)return this._keymap.delete(n.key),n[Ta]&&n[ss]?(n[ss][Ta]=n[Ta],n[Ta][ss]=n[ss]):n[Ta]?(n[Ta][ss]=void 0,this.oldest=n[Ta]):n[ss]?(n[ss][Ta]=void 0,this.newest=n[ss]):this.oldest=this.newest=void 0,this.size--,n.value}clear(){this.oldest=void 0,this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new RZe(this.oldest)}values(){return new AZe(this.oldest)}entries(){return this[Symbol.iterator]()}[Symbol.iterator](){return new wZe(this.oldest)}forEach(e,n){typeof n!="object"&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[Ta]}toJSON(){const e=new Array(this.size);let n=0,r=this.oldest;for(;r;)e[n++]={key:r.key,value:r.value},r=r[Ta];return e}toString(){let e="",n=this.oldest;for(;n;)e+=`${String(n.key)}:${n.value}`,n=n[Ta],n&&(e+=" < ");return e}};j(U1e,"LRUMap");let Yg=U1e;const H1e=class{static hasLength(e,n){return e.length===n}static getValueType(e){return Object.prototype.toString.apply(e)}static isObject(e){return this.getValueType(e)==="[object Object]"}static isIterable(e){return e[Symbol.iterator]!=null}static isNumber(e){return this.getValueType(e)==="[object Number]"}};j(H1e,"LRUHelper");let Lb=H1e;var j1e={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(typeof self<"u"?self:cs,function(){return function(){var n={d:j(function(ue,ce){for(var pe in ce)n.o(ce,pe)&&!n.o(ue,pe)&&Object.defineProperty(ue,pe,{enumerable:!0,get:ce[pe]})},"d"),o:j(function(ue,ce){return Object.prototype.hasOwnProperty.call(ue,ce)},"o")},r={};n.d(r,{default:j(function(){return bt},"default")});var i={1078:"af",1052:"sq",1118:"am",5121:"ar_DZ",15361:"ar_BH",3073:"ar_EG",2049:"ar_IQ",11265:"ar_JO",13313:"ar_KW",12289:"ar_LB",4097:"ar_LY",6145:"ar_MA",8193:"ar_OM",16385:"ar_QA",1025:"ar_SA",10241:"ar_SY",7169:"ar_TN",14337:"ar_AE",9217:"ar_YE",1067:"hy",1101:"as",2092:"az_AZ",1068:"az_AZ",1069:"eu",1059:"be",2117:"bn",1093:"bn_IN",5146:"bs",1026:"bg",1109:"my",1027:"ca",2052:"zh_CN",3076:"zh_HK",5124:"zh_MO",4100:"zh_SG",1028:"zh_TW",1050:"hr",1029:"cs",1030:"da",1125:"dv",2067:"nl_BE",1043:"nl_NL",1126:"bin",3081:"en_AU",10249:"en_BZ",4105:"en_CA",9225:"en_CB",2057:"en_GB",16393:"en_IN",6153:"en_IE",8201:"en_JM",5129:"en_NZ",13321:"en_PH",7177:"en_ZA",11273:"en_TT",1033:"en_US",12297:"en_ZW",1061:"et",1071:"mk",1080:"fo",1065:"fa",1124:"fil",1035:"fi",2060:"fr_BE",11276:"fr_CM",3084:"fr_CA",9228:"fr_CG",12300:"fr_CI",1036:"fr_FR",5132:"fr_LU",13324:"fr_ML",6156:"fr_MC",14348:"fr_MA",10252:"fr_SN",4108:"fr_CH",7180:"fr",1122:"fy_NL",2108:"gd_IE",1084:"gd",1110:"gl",1079:"ka",3079:"de_AT",1031:"de_DE",5127:"de_LI",4103:"de_LU",2055:"de_CH",1032:"el",1140:"gn",1095:"gu",1279:"en",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig_NG",1057:"id",1040:"it_IT",2064:"it_CH",1041:"ja",1099:"kn",1120:"ks",1087:"kk",1107:"km",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1142:"la",1062:"lv",1063:"lt",2110:"ms_BN",1086:"ms_MY",1100:"ml",1082:"mt",1112:"mni",1153:"mi",1102:"mr",1104:"mn",2128:"mn",1121:"ne",1044:"no_NO",2068:"no_NO",1096:"or",1045:"pl",1046:"pt_BR",2070:"pt_PT",1094:"pa",1047:"rm",2072:"ro_MO",1048:"ro_RO",1049:"ru",2073:"ru_MO",1083:"se",1103:"sa",3098:"sr_SP",2074:"sr_SP",1072:"st",1074:"tn",1113:"sd",1115:"si",1051:"sk",1060:"sl",1143:"so",1070:"sb",11274:"es_AR",16394:"es_BO",13322:"es_CL",9226:"es_CO",5130:"es_CR",7178:"es_DO",12298:"es_EC",17418:"es_SV",4106:"es_GT",18442:"es_HN",2058:"es_MX",19466:"es_NI",6154:"es_PA",15370:"es_PY",10250:"es_PE",20490:"es_PR",1034:"es_ES",14346:"es_UY",8202:"es_VE",1089:"sw",2077:"sv_FI",1053:"sv_SE",1114:"syc",1064:"tg",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1073:"ts",1055:"tr",1090:"tk",1058:"uk",1056:"ur",2115:"uz_UZ",1091:"uz_UZ",1075:"ve",1066:"vi",1106:"cy",1076:"xh",1085:"yi",1077:"zu"};const a=/^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i,o={},s={group:" ",decimal:".",positive:"+",negative:"-",percent:"%",exponent:"E",nan:"NaN",infinity:"∞",ampm:["AM","PM"],mmmm6:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"],mmm6:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],mmmm:["January","February","March","April","May","June","July","August","September","October","November","December"],mmm:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]};function l(ue){const ce=a.exec(ue);if(!ce)throw new SyntaxError("Malformed locale: ".concat(ue));return{lang:ce[1]+(ce[2]?"_"+ce[2]:""),language:ce[1],territory:ce[2]||"",codeset:ce[3]||"",modifier:ce[4]||""}}j(l,"s");function u(ue){if(typeof ue=="number")return i[65535&ue]||null;const ce=parseInt(ue,16);return isFinite(ce)&&i[65535&ce]?i[65535&ce]||null:a.test(ue)?ue:null}j(u,"o");function c(ue){const ce=u(ue);let pe=null;if(ce){const Ae=l(ce);pe=o[Ae.lang]||o[Ae.language]||null}return pe}j(c,"l");function d(ue){return Object.assign({},s,ue)}j(d,"d");function h(ue,ce){const pe=typeof ce=="object"?ce:l(ce);return o[pe.lang]=d(ue),pe.language===pe.lang||o[pe.language]||(o[pe.language]=d(ue)),o[pe.lang]}j(h,"m");const f=d({group:","});function m(ue,ce){if(typeof ue!="number")return ue;if(ue<0)return-m(-ue,ce);if(ce){const pe=10**(ce||0)||1;return m(ue*pe,0)/pe}return Math.round(ue)}j(m,"c"),f.isDefault=!0,h({group:",",ampm:["上午","下午"],mmmm:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ddd:["周日","周一","周二","周三","周四","周五","周六"]},"zh_CN"),h({group:",",nan:"非數值",ampm:["上午","下午"],mmmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ddd:["週日","週一","週二","週三","週四","週五","週六"]},"zh_TW"),h({group:",",ampm:["午前","午後"],mmmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],ddd:["日","月","火","水","木","金","土"]},"ja"),h({group:",",ampm:["오전","오후"],mmmm:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],mmm:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dddd:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],ddd:["일","월","화","수","목","금","토"]},"ko"),h({group:",",ampm:["ก่อนเที่ยง","หลังเที่ยง"],mmmm:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],mmm:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dddd:["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],ddd:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]},"th"),h({decimal:",",ampm:["dop.","odp."],mmmm:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],mmm:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],dddd:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],ddd:["ne","po","út","st","čt","pá","so"]},"cs"),h({group:".",decimal:",",mmmm:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],mmm:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],dddd:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ddd:["søn.","man.","tir.","ons.","tor.","fre.","lør."]},"da"),h({group:".",decimal:",",ampm:["a.m.","p.m."],mmmm:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],mmm:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],dddd:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],ddd:["zo","ma","di","wo","do","vr","za"]},"nl"),h({group:","},"en"),h({decimal:",",nan:"epäluku",ampm:["ap.","ip."],mmmm:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],mmm:["tammik.","helmik.","maalisk.","huhtik.","toukok.","kesäk.","heinäk.","elok.","syysk.","lokak.","marrask.","jouluk."],dddd:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],ddd:["su","ma","ti","ke","to","pe","la"]},"fi"),h({group:" ",decimal:",",mmmm:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],mmm:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dddd:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],ddd:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."]},"fr"),h({group:".",decimal:",",mmmm:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],mmm:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],dddd:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],ddd:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]},"de"),h({group:".",decimal:",",ampm:["π.μ.","μ.μ."],mmmm:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"],mmm:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dddd:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],ddd:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"]},"el"),h({decimal:",",ampm:["de.","du."],mmmm:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],mmm:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],dddd:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],ddd:["V","H","K","Sze","Cs","P","Szo"]},"hu"),h({group:".",decimal:",",ampm:["f.h.","e.h."],mmmm:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"],mmm:["jan.","feb.","mar.","apr.","maí","jún.","júl.","ágú.","sep.","okt.","nóv.","des."],dddd:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],ddd:["sun.","mán.","þri.","mið.","fim.","fös.","lau."]},"is"),h({group:".",decimal:",",mmmm:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],mmm:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],dddd:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],ddd:["Min","Sen","Sel","Rab","Kam","Jum","Sab"]},"id"),h({group:".",decimal:",",mmmm:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],mmm:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],dddd:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],ddd:["dom","lun","mar","mer","gio","ven","sab"]},"it"),h({decimal:",",ampm:["a.m.","p.m."],mmmm:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],mmm:["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],dddd:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ddd:["søn.","man.","tir.","ons.","tor.","fre.","lør."]},"nb"),h({decimal:",",mmmm:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"],mmm:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],dddd:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],ddd:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."]},"pl"),h({group:".",decimal:",",mmmm:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],mmm:["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],dddd:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],ddd:["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]},"pt"),h({decimal:",",nan:"не число",mmmm:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],mmm:["янв.","февр.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],dddd:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],ddd:["вс","пн","вт","ср","чт","пт","сб"]},"ru"),h({decimal:",",mmmm:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"],mmm:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],dddd:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],ddd:["ne","po","ut","st","št","pi","so"]},"sk"),h({group:".",decimal:",",ampm:["a. m.","p. m."],mmmm:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],mmm:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],dddd:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],ddd:["dom.","lun.","mar.","mié.","jue.","vie.","sáb."]},"es"),h({decimal:",",ampm:["fm","em"],mmmm:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],mmm:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],dddd:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],ddd:["sön","mån","tis","ons","tors","fre","lör"]},"sv"),h({group:".",decimal:",",ampm:["ÖÖ","ÖS"],mmmm:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],mmm:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dddd:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],ddd:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"]},"tr");function g(ue,ce,pe){const Ae=ue<0?-1:1,je=10**(ce||2),tt=10**(pe||2);let Qe,nt,we=Math.abs(ue),Ze=0,ht=0,pt=0,Mt=1;if((ue=we)%1==0)nt=[ue*Ae,1];else if(ue<1e-19)nt=[Ae,1e19];else if(ue>1e19)nt=[1e19*Ae,1];else{do if(we=1/(we-Math.floor(we)),Qe=Mt,Mt=Mt*Math.floor(we)+Ze,Ze=Qe,ht=pt,pt=Math.floor(ue*Mt+.5),pt>=je||Mt>=tt)return[Ae*ht,Ze];while(Math.abs(ue-pt/Mt)>=1e-10&&we!==Math.floor(we));nt=[Ae*pt,Mt]}return nt}j(g,"p");const p={overflow:"######",dateErrorThrows:!1,dateErrorNumber:!0,dateSpanLarge:!0,leap1900:!0,nbsp:!0,throws:!0,invalid:"######",locale:"",ignoreTimezone:!1},v=Object.assign({},p);function _(ue){if(ue===null&&(ue=p),ue){for(const ce in ue)if(ce in p){const pe=ue[ce];v[ce]=pe??p[ce]}}return{...v}}j(_,"h");const C={"#":"",0:"0","?":" "},S={"@":"text","-":"minus","+":"plus"},b=["#000","#FFF","#F00","#0F0","#00F","#FF0","#F0F","#0FF","#000","#FFF","#F00","#0F0","#00F","#FF0","#F0F","#0FF","#800","#080","#008","#880","#808","#088","#CCC","#888","#99F","#936","#FFC","#CFF","#606","#F88","#06C","#CCF","#008","#F0F","#FF0","#0FF","#808","#800","#088","#00F","#0CF","#CFF","#CFC","#FF9","#9CF","#F9C","#C9F","#FC9","#36F","#3CC","#9C0","#FC0"],y=["¤","$","£","¥","֏","؋","৳","฿","៛","₡","₦","₩","₪","₫","€","₭","₮","₱","₲","₴","₸","₹","₺","₼","₽","₾","₿"],A=new RegExp("["+y.join("")+"]");function w(ue,ce,pe){return ce[pe+"_max"]=ue.length,ce[pe+"_min"]=ue.replace(/#/g,"").length,ce}j(w,"M");const P={};function M(ue){if(!(ue in P)){const ce=[],pe=ue.replace(/^[#,]+/,"").replace(/[1-9]\d*/g,Ae=>"?".repeat(Ae.length));for(let Ae=0;Ae<pe.length;Ae++){const je=pe.charAt(Ae);ce[Ae]=je in C?C[je]:je}P[ue]=ce.join("")}return P[ue]}j(M,"x");function L(ue,ce){typeof ue=="string"&&(ue={type:"string",value:ue=ue.replace(/ /g,C["?"])}),ce.push(ue)}j(L,"F");function k(ue){const ce=[],pe={scale:1,percent:!1,text:!1,date:0,date_eval:!1,date_system:1,sec_decimals:0,general:!1,clock:24,int_pattern:[],frac_pattern:[],man_pattern:[],den_pattern:[],num_pattern:[],tokens:ce};let Ae=ue+"",je="int",tt=!1,Qe=null;const nt=[];let we,Ze,ht=!1;for(;Ae&&!tt;){if(we=/^General/i.exec(Ae))pe.general=!0,L({type:"general"},ce);else if(je==="int"&&(we=/^[#?0]+(?:,[#?0]+)*/.exec(Ae))||je==="den"&&(we=/^[#?\d]+/.exec(Ae))||(we=/^[#?0]+/.exec(Ae)))pe[je+"_pattern"].push(we[0]),Qe={type:je,num:we[0]},L(Qe,ce);else if((we=/^\//.exec(Ae))&&pe[je+"_pattern"].length){if(!Qe)throw new SyntaxError("Missing a numerator in pattern ".concat(ue));pe.fractions=!0,pe.num_pattern.push(pe[je+"_pattern"].pop()),Qe.type="num",je="den",L({type:"div"},ce)}else if(we=/^,+/.exec(Ae)){const Be=Ae.charAt(1)in C;Ze.slice(-1)in C&&(we[0].length>1||!Be)?pe.scale=.001**we[0].length:pe.dec_fractions||L(we[0],ce)}else{if(we=/^;/.exec(Ae)){tt=!0;break}if(we=/^[@+-]/.exec(Ae))we[0]==="@"&&(pe.text=!0),L({type:S[we[0]]},ce);else if(we=/^(?:\[(h+|m+|s+)\])/i.exec(Ae)){const Be=we[1].toLowerCase(),vt=Be[0],qt={type:"",size:0,date:1,raw:we[0],pad:Be.length};vt==="h"?(qt.size=16,qt.type="hour-elap"):vt==="m"?(qt.size=32,qt.type="min-elap"):(qt.size=64,qt.type="sec-elap"),pe.date=pe.date|qt.size,nt.push(qt),L(qt,ce)}else if(we=/^(?:B2)/i.exec(Ae))ht||(pe.date_system=6);else if(we=/^(?:B1)/i.exec(Ae))ht||(pe.date_system=1);else if(we=/^(?:([hHmMsSyYbBdDegG])\1*)/.exec(Ae)){const Be={type:"",size:0,date:1,raw:we[0]},vt=we[0].toLowerCase(),qt=vt[0];if(vt==="y"||vt==="yy")Be.size=2,Be.type="year-short";else if(qt==="y"||qt==="e")Be.size=2,Be.type="year";else if(vt==="b"||vt==="bb")Be.size=2,Be.type="b-year-short";else if(qt==="b")Be.size=2,Be.type="b-year";else if(vt==="d"||vt==="dd")Be.size=8,Be.type="day",Be.pad=/dd/.test(vt);else if(vt==="ddd")Be.size=8,Be.type="weekday-short";else if(qt==="d")Be.size=8,Be.type="weekday";else if(qt==="h")Be.size=16,Be.type="hour",Be.pad=/hh/i.test(vt);else if(qt==="m"){vt.length===3?(Be.size=4,Be.type="monthname-short"):vt.length===5?(Be.size=4,Be.type="monthname-single"):vt.length>=4&&(Be.size=4,Be.type="monthname");const Lt=nt[nt.length-1];!Be.type&&Lt&&!Lt.used&&80&Lt.size&&(Lt.used=!0,Be.size=32,Be.type="min",Be.pad=/mm/.test(vt)),Be.type||(Be.size=4,Be.type="month",Be.pad=/mm/.test(vt),Be.indeterminate=!0)}else if(qt==="s"){Be.size=64,Be.type="sec",Be.pad=/ss/.test(vt);const Lt=nt[nt.length-1];Lt&&32&Lt.size?Be.used=!0:Lt&&Lt.indeterminate&&(delete Lt.indeterminate,Lt.size=32,Lt.type="min",Be.used=!0)}pe.date=pe.date|Be.size,pe.date_eval=!0,nt.push(Be),L(Be,ce)}else if(we=/^(?:AM\/PM|am\/pm|A\/P)/.exec(Ae))pe.clock=12,pe.date=16|pe.date,pe.date_eval=!0,L({type:"am",short:we[0]==="A/P"},ce);else if(pe.date&&(we=/^\.0{1,3}/i.exec(Ae))){const Be=we[0].length-1,vt=[64,128,256,512][Be];pe.date=pe.date|vt,pe.date_eval=!0,pe.sec_decimals=Math.max(pe.sec_decimals,Be),L({type:"subsec",size:vt,decimals:Be,date:1,raw:we[0]},ce)}else if((we=/^\\(.)/.exec(Ae))||(we=/^"([^"]*?)"/.exec(Ae)))L(we[1],ce);else if(we=/^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(Ae))pe.condition=[we[1],parseFloat(we[2],10)];else if(we=/^\[\$([^\]]+)\]/.exec(Ae)){const Be=we[1].split("-"),vt=Be.length<2?"":Be[Be.length-1],qt=Be[0];qt&&L(qt,ce);const Lt=u(vt);Lt&&(pe.locale=Lt);const zt=parseInt(vt,16);isFinite(zt)&&16711680&zt&&(zt>>16&255)===6&&(pe.date_system=6),ht=!0}else if(we=/^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(Ae))pe.color=we[2]?b[parseInt(we[2],10)]||"#000":we[1].toLowerCase();else if(!(we=/^\[(DBNum1|ENG|HIJ|JPN|TWN)\]/i.exec(Ae))){if(we=/^%/.exec(Ae))pe.scale=100,pe.percent=!0,L("%",ce);else if(we=/^_(\\.|.)/.exec(Ae))L(" ",ce);else if(we=/^\./.exec(Ae))L({type:"point",value:we[0]},ce),pe.dec_fractions=!0,je="frac";else if(we=/^[Ee]([+-]?|(?=[0#?]))/.exec(Ae))pe.exponential=!0,pe.exp_plus=we[1]==="+",je="man",L({type:"exp",plus:we[1]==="+"},ce);else if(!(we=/^\*(\\.|.)/.exec(Ae))){if(we=/^[BENn[]/.exec(Ae))throw new SyntaxError("Unexpected char ".concat(Ae.charAt(0)," in pattern ").concat(ue));Ae[0]==="("&&(pe.parens=!0),we=[Ae[0]],L(we[0],ce)}}}Ze=we[0],Ae=Ae.slice(we?we[0].length:1)}if(pe.pattern=ue.slice(0,ue.length-Ae.length),/^((?:\[[^\]]+\])+)(;|$)/.test(pe.pattern)&&!/^\[(?:h+|m+|s+)\]/.test(pe.pattern)&&L({type:"text"},ce),pe.fractions&&pe.dec_fractions||pe.fractions&&pe.exponential)throw new SyntaxError("Invalid pattern: ".concat(pe.pattern));const pt=pe.int_pattern.join("");if(pe.grouping=pt.indexOf(",")>=0,pe.grouping){const Be=pt.split(","),vt=Be.length;vt===2?(pe.group_pri=Be[1].length,pe.group_sec=pe.group_pri):vt>2&&(pe.group_pri=Be[vt-1].length,pe.group_sec=Be[vt-2].length)}else pe.group_pri=0,pe.group_sec=0;w(pt.replace(/[,]/g,""),pe,"int"),w(pe.frac_pattern.join(""),pe,"frac"),w(pe.man_pattern.join(""),pe,"man");let Mt=pe.num_pattern.join(""),xt=pe.den_pattern.join("");const st=/\?/.test(xt)||/\?/.test(Mt);return xt=xt.replace(/\d/g,st?"?":"#"),st&&(xt=xt.replace(/#$/g,"?")),w(Mt,pe,"num"),w(xt,pe,"den"),st&&(Mt=Mt.replace(/#$/g,"?")),pe.int_padding=M(pe.int_pattern.join("")),pe.man_padding=M(pe.man_pattern.join("")),pe.num_padding=M(Mt),pe.den_padding=M(xt),pe.den_pattern.length&&(pe.denominator=parseInt(pe.den_pattern.join("").replace(/\D/g,""),10)),pe.integer=!!pe.int_pattern.join("").length,pe.fractions&&ce.forEach((Be,vt)=>{const qt=ce[vt+1];Be.type==="string"&&qt&&(qt.type==="num"?Be.rule="num+int":qt.type==="div"?Be.rule="num":qt.type==="den"&&(Be.rule="den"))}),pe}j(k,"z");const O=j(ue=>{const ce=ue.condition;ce&&ce[1]<0&&(ce[0]==="<"||ce[0]==="<="||ce[0]==="=")||ue.tokens.unshift({type:"minus",volatile:!0})},"w");function $(ue){const ce=[];let pe,Ae=!1,je=null,tt=ue,Qe=0,nt=!1,we=0,Ze=0;do{if(nt=k(tt),(nt.date||nt.general)&&(nt.int_pattern.length||nt.frac_pattern.length||nt.scale!==1||nt.text))throw new Error("Illegal format");if(nt.condition&&(Ze++,Ae=!0),nt.text){if(je)throw new Error("Unexpected partition");je=nt}nt.locale&&(pe=u(nt.locale)),ce.push(nt),Qe=tt.charAt(nt.pattern.length)===";"?1:0,tt=tt.slice(nt.pattern.length+Qe),we++}while(Qe&&we<4&&Ze<3);if(Qe)throw new Error("Unexpected partition");if(Ze>2)throw new Error("Unexpected condition");const ht=ce[3];if(ht&&(ht.int_pattern.length||ht.frac_pattern.length||ht.date))throw new Error("Unexpected partition");if(Ae){const pt=ce.length;if(pt===1&&(ce[1]=k("General"),ce[1].generated=!0),pt<3){const Mt=ce[0],xt=ce[1];if(O(Mt),xt.condition)O(xt);else{const st=Mt.condition;(st[0]==="="||st[1]>=0&&(st[0]===">"||st[0]===">="))&&xt.tokens.unshift({type:"minus",volatile:!0})}}else ce.forEach(O)}else{if(ce.length<4&&je)for(let pt=0,Mt=ce.length;pt<Mt;pt++)ce[pt]===je&&ce.splice(pt,1);if(ce.length<1&&je&&(ce[0]=k("General"),ce[0].generated=!0),ce.length<2){const pt=k(ce[0].pattern);pt.tokens.unshift({type:"minus",volatile:!0}),pt.generated=!0,ce.push(pt)}if(ce.length<3){const pt=k(ce[0].pattern);pt.generated=!0,ce.push(pt)}if(ce.length<4)if(je)ce.push(je);else{const pt=k("@");pt.generated=!0,ce.push(pt)}ce[0].condition=[">",0],ce[1].condition=["<",0],ce[2].condition=null}return{pattern:ue,partitions:ce,locale:pe}}j($,"D");const B=Math.floor;function V(ue){if((!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&ue>=0){if(ue===0)return[1900,1,0];if(ue===60)return[1900,2,29];if(ue<60)return[1900,ue<32?1:2,(ue-1)%31+1]}let ce=ue+68569+2415019;const pe=B(4*ce/146097);ce-=B((146097*pe+3)/4);const Ae=B(4e3*(ce+1)/1461001);ce=ce-B(1461*Ae/4)+31;const je=B(80*ce/2447),tt=ce-B(2447*je/80);ce=B(je/11);const Qe=je+2-12*ce;return[0|100*(pe-49)+Ae+ce,0|Qe,0|tt]}j(V,"C");function X(ue){return V(ue+1462)}j(X,"E");function z(ue){if(ue===60)throw new Error("#VALUE!");if(ue<=1)return[1317,8,29];if(ue<60)return[1317,ue<32?9:10,1+(ue-2)%30];const ce=10631/30,pe=.1335;let Ae=ue+466935;const je=B(Ae/10631);Ae-=10631*je;const tt=B((Ae-pe)/ce);Ae-=B(tt*ce+pe);const Qe=B((Ae+28.5001)/29.5);return Qe===13?[30*je+tt,12,30]:[30*je+tt,Qe,Ae-B(29.5001*Qe-29)]}j(z,"A");function F(ue){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pe=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];const Ae=B(ue);return ce===6?z(Ae):ce===-1?X(Ae):V(Ae,pe)}j(F,"Y");const H=Math.floor,W=86400;function K(ue,ce){let pe=null;if(Array.isArray(ue)){const[Ae,je,tt,Qe,nt,we]=ue;pe=Date.UTC(Ae,je==null?0:je-1,tt??1,Qe||0,nt||0,we||0)}else if(ue instanceof Date&&(pe=1*ue,!ce||!ce.ignoreTimezone)){const Ae=new Date;Ae.setUTCFullYear(ue.getFullYear(),ue.getMonth(),ue.getDate()),Ae.setUTCHours(ue.getHours(),ue.getMinutes(),ue.getSeconds(),ue.getMilliseconds()),pe=1*Ae}if(pe!=null&&isFinite(pe)){const Ae=pe/864e5;return Ae-(Ae<=-25509?-25568:-25569)}return ue}j(K,"P");function G(ue,ce){let pe=0|ue;const Ae=W*(ue-pe);let je=H(Ae);Ae-je>.9999&&(je+=1,je===W&&(je=0,pe+=1));const tt=je<0?W+je:je,[Qe,nt,we]=F(ue,0,ce&&ce.leap1900),Ze=H(tt/60/60)%60,ht=H(tt/60)%60,pt=H(tt)%60;if(ce&&ce.nativeDate){const Mt=new Date(0);return Mt.setUTCFullYear(Qe,nt-1,we),Mt.setUTCHours(Ze,ht,pt),Mt}return[Qe,nt,we,Ze,ht,pt]}j(G,"I");function te(ue){return!!(ue[0]&&ue[0].percent||ue[1]&&ue[1].percent||ue[2]&&ue[2].percent||ue[3]&&ue[3].percent)}j(te,"O");function Y(ue){return!!(ue[0]&&ue[0].date||ue[1]&&ue[1].date||ue[2]&&ue[2].date||ue[3]&&ue[3].date)}j(Y,"J");function ae(ue){const[ce,pe,Ae,je]=ue;return!(ce&&!ce.generated||pe&&!pe.generated||Ae&&!Ae.generated||!je||!je.text||je.generated)}j(ae,"L");const ie={text:15,datetime:10.8,date:10.8,time:10.8,percent:10.6,currency:10.4,grouped:10.2,scientific:6,number:4,fraction:2,general:0,error:0},ne=[["DMY",1],["DM",2],["MY",3],["MDY",4],["MD",5],["hmsa",6],["hma",7],["hms",8],["hm",9]],de={total:1,sign:0,period:0,int:1,frac:0},_e=j((ue,ce)=>ue.replace(/\./,ce.decimal),"H");function Pe(ue,ce,pe,Ae){const je=0|pe;if(typeof pe=="string")ue.push(pe);else if(pe===je)ue.push(Math.abs(je));else{const tt=Math.abs(pe);let Qe=tt?Math.floor(Math.log10(tt)):0,nt=Qe<0?tt*10**-Qe:tt/10**Qe;nt===10&&(nt=1,Qe++);const we=function(ht){let pt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const Mt=Math.abs(ht);if(!Mt)return de;const xt=pt&&ht<0?1:0,st=Math.floor(Mt),Be=Math.floor(Math.log10(Mt)+1);let vt=0,qt=0;if(st!==Mt){vt=1;const Lt=String(m(Be<0?Mt*10**-Be:Mt/10**Be,15));let zt=Lt.length,Yt=!0,un=0;for(;un<=Lt.length;){if(Lt[un]==="."){zt--;break}Lt[un]==="0"&&Yt?zt--:Yt=!1,un++}qt=zt-Be,qt<0&&(qt=0,vt=0)}return{total:xt+Math.max(Be,1)+vt+qt,digits:Math.max(Be,0)+qt,sign:xt,period:vt,int:Math.max(Be,1),frac:qt}}(tt),Ze=j(()=>{const ht=Math.abs(Qe);let pt;pt=nt===1?nt:m(nt,5),ue.push(_e(pt+"",Ae),Ae.exponent,Qe<0?Ae.negative:Ae.positive,ht<10?"0":"",ht)},"o");if(Qe>=-4&&Qe<=-1){const ht=tt.toPrecision(10+Qe).replace(/\.?0+$/,"");ue.push(_e(ht,Ae))}else if(Qe===10){const ht=tt.toFixed(10).slice(0,12).replace(/\.$/,"");ue.push(_e(ht,Ae))}else if(Math.abs(Qe)<=9)if(we.total<=11){const ht=m(tt,9).toFixed(we.frac);ue.push(_e(ht,Ae))}else Qe===9?ue.push(Math.floor(tt)):Qe>=0&&Qe<9?ue.push(m(tt,9-Qe)):Ze();else we.total>=12?Ze():Math.floor(tt)===tt?ue.push(Math.floor(tt)):ue.push(_e(m(tt,9).toFixed(we.frac),Ae))}return ue}j(Pe,"B");const De=86400,Ee={int:"integer",frac:"fraction",man:"mantissa",num:"numerator",den:"denominator"},ye=j(function(ue){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const pe=Math.floor(Math.log10(ue));return ce>1?Math.floor(pe/ce)*ce:pe},"Z");function Ve(ue,ce,pe,Ae){let je="",tt="",Qe="",nt="",we="",Ze=0,ht=0|ue,pt=0,Mt=0,xt=1,st=0,Be=0,vt=0,qt=0,Lt=0,zt=0;const Yt=Ae||f;if(!ce.text&&isFinite(ce.scale)&&ce.scale!==1&&(ue=function(rn){if(rn===0)return rn;const En=Math.ceil(Math.log10(rn<0?-rn:rn)),Ft=10**(16-Math.floor(En));return Math.round(rn*Ft)/Ft}(ue*ce.scale)),ce.exponential){let rn=Math.abs(ue);if(rn){const En=10**-ye(rn,ce.int_max),Ft=m(rn*En,ce.frac_max)/En;Ze=ye(Ft,ce.int_max)}rn/=10**Ze,ue=ue<0?-rn:rn,je+=Math.abs(Ze)}if(ce.integer){const rn=Math.abs(m(ue,ce.fractions?1:ce.frac_max));we+=rn<1?"":Math.floor(rn)}if(ce.grouping){let rn="",En=we.length;for(En>ce.group_pri&&(En-=ce.group_pri,rn=Yt.group+we.slice(En,En+ce.group_pri)+rn);En>ce.group_sec;)En-=ce.group_sec,rn=Yt.group+we.slice(En,En+ce.group_sec)+rn;we=En?we.slice(0,En)+rn:rn}ce.dec_fractions&&(nt=String(m(ue,ce.frac_max)).split(".")[1]||"");let un=!1;if(ce.fractions){const rn=Math.abs(ce.integer?ue%1:ue);if(rn)if(un=!0,isFinite(ce.denominator))Qe+=ce.denominator,tt+=m(rn*ce.denominator),tt==="0"&&(tt="",Qe="",un=!1,we||(we="0"));else{const En=g(rn,ce.integer?ce.num_max:1/0,ce.den_max);tt+=En[0],Qe+=En[1],ce.integer&&tt==="0"&&(we||(we="0"),tt="",Qe="",un=!1)}}if(ce.date){ht=Math.trunc(ue);const rn=De*(ue-ht);if(pt=Math.floor(rn),zt=rn-pt,Math.abs(zt)<1e-6?zt=0:zt>.9999&&(zt=0,pt+=1,pt===De&&(pt=0,ht+=1)),zt){const En=512&ce.date||256&ce.date||128&ce.date;(En===512&&zt>.9995||En===256&&zt>.995||En===128&&zt>.95||!En&&zt>=.5)&&(pt++,zt=0)}if(ht||ce.date_system){const En=F(ue,ce.date_system,pe.leap1900);Mt=En[0],xt=En[1],st=En[2]}if(pt){const En=pt<0?De+pt:pt;Lt=Math.floor(En)%60,qt=Math.floor(En/60)%60,vt=Math.floor(En/60/60)%60}if(Be=(6+ht)%7,ce.date_eval&&(ir=ue,jr=ht+pt/De,pe.dateSpanLarge?ir<-694324||jr>=35830291:ir<0||jr>=2958466)){if(pe.dateErrorThrows)throw new Error("Date out of bounds");return pe.dateErrorNumber?Pe(ue<0?[Yt.negative]:[],0,ue,Yt).join(""):pe.overflow}}var ir,jr;if(ce.int_padding&&(we=ce.int_padding.length===1?we||ce.int_padding:ce.int_padding.substring(0,ce.int_padding.length-we.length)+we),ce.num_padding&&(tt=ce.num_padding.length===1?tt||ce.num_padding:ce.num_padding.substring(0,ce.num_padding.length-tt.length)+tt),ce.den_padding&&(Qe=ce.den_padding.length===1?Qe||ce.den_padding:Qe+ce.den_padding.slice(Qe.length)),ce.man_padding){const rn=ce.exp_plus?"+":"";je=ce.man_padding.length===1?(Ze<0?"-":rn)+(je||ce.man_padding):(Ze<0?"-":rn)+ce.man_padding.slice(0,ce.man_padding.length-je.length)+je}const ln=[];let Nr=0;const mn={int:0,frac:0,man:0,num:0,den:0};for(let rn=0,En=ce.tokens.length;rn<En;rn++){const Ft=ce.tokens[rn],$r=Ft.num?Ft.num.length:0;if(Ft.type==="string")Ft.rule?Ft.rule==="num"?un?ln.push(Ft.value):(ce.num_min>0||ce.den_min>0)&&ln.push(Ft.value.replace(/./g,C["?"])):Ft.rule==="num+int"?un&&we?ln.push(Ft.value):ce.den_min>0&&(we||ce.num_min)&&ln.push(Ft.value.replace(/./g,C["?"])):Ft.rule==="den"&&(un?ln.push(Ft.value):(ce.den_min>0||ce.den_min>0)&&ln.push(Ft.value.replace(/./g,C["?"]))):ln.push(Ft.value);else if(Ft.type==="error")ln.push(pe.invalid);else if(Ft.type==="point")ln.push(ce.date?Ft.value:Yt.decimal);else if(Ft.type==="general")Pe(ln,0,ue,Yt);else if(Ft.type==="exp")ln.push(Yt.exponent);else if(Ft.type==="minus")Ft.volatile&&ce.date||Ft.volatile&&(ue>=0||typeof ue!="number")||(Ft.volatile&&!ce.fractions&&(ce.integer||ce.dec_fractions)?(ue<0&&we&&we!=="0"||nt)&&ln.push(Yt.negative):ln.push(Yt.negative));else if(Ft.type==="plus")ln.push(Yt.positive);else if(Ft.type==="text")ln.push(ue);else if(Ft.type==="div")un?ln.push("/"):ce.num_min>0||ce.den_min>0?ln.push(C["?"]):ln.push(C["#"]);else if(Ft.type==="int")if(ce.int_pattern.length===1)ln.push(we);else{const br=Nr?ce.int_pattern.join("").length-mn.int:1/0,Rn=Nr===ce.int_pattern.length-1?0:ce.int_pattern.join("").length-(mn.int+Ft.num.length);ln.push(we.substring(we.length-br,we.length-Rn)),Nr++,mn.int+=Ft.num.length}else if(Ft.type==="frac"){const br=mn.frac;for(let Rn=0;Rn<$r;Rn++)ln.push(nt[Rn+br]||C[Ft.num[Rn]]);mn.frac+=$r}else if(Ft.type in Ee)ce[Ft.type+"_pattern"].length===1?(Ft.type==="int"&&ln.push(we),Ft.type==="frac"&&ln.push(nt),Ft.type==="man"&&ln.push(je),Ft.type==="num"&&ln.push(tt),Ft.type==="den"&&ln.push(Qe)):(ln.push(Ee[Ft.type].slice(mn[Ft.type],mn[Ft.type]+$r)),mn[Ft.type]+=$r);else if(Ft.type==="year")Mt<0&&ln.push(Yt.negative),ln.push(String(Math.abs(Mt)).padStart(4,"0"));else if(Ft.type==="year-short"){const br=Mt%100;ln.push(br<10?"0":"",br)}else if(Ft.type==="month")ln.push(Ft.pad&&xt<10?"0":"",xt);else if(Ft.type==="monthname-single")ce.date_system===6?ln.push(Yt.mmmm6[xt-1].charAt(0)):ln.push(Yt.mmmm[xt-1].charAt(0));else if(Ft.type==="monthname-short")ce.date_system===6?ln.push(Yt.mmm6[xt-1]):ln.push(Yt.mmm[xt-1]);else if(Ft.type==="monthname")ce.date_system===6?ln.push(Yt.mmmm6[xt-1]):ln.push(Yt.mmmm[xt-1]);else if(Ft.type==="weekday-short")ln.push(Yt.ddd[Be]);else if(Ft.type==="weekday")ln.push(Yt.dddd[Be]);else if(Ft.type==="day")ln.push(Ft.pad&&st<10?"0":"",st);else if(Ft.type==="hour"){const br=vt%ce.clock||(ce.clock<24?ce.clock:0);ln.push(Ft.pad&&br<10?"0":"",br)}else if(Ft.type==="min")ln.push(Ft.pad&&qt<10?"0":"",qt);else if(Ft.type==="sec")ln.push(Ft.pad&&Lt<10?"0":"",Lt);else if(Ft.type==="subsec"){ln.push(Yt.decimal);const br=zt.toFixed(ce.sec_decimals);ln.push(br.slice(2,2+Ft.decimals))}else if(Ft.type==="am"){const br=vt<12?0:1;Ft.short&&!Ae?ln.push("AP"[br]):ln.push(Yt.ampm[br])}else if(Ft.type==="hour-elap"){ue<0&&ln.push(Yt.negative);const br=24*ht+Math.floor(Math.abs(pt)/3600);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="min-elap"){ue<0&&ln.push(Yt.negative);const br=1440*ht+Math.floor(Math.abs(pt)/60);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="sec-elap"){ue<0&&ln.push(Yt.negative);const br=ht*De+Math.abs(pt);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="b-year")ln.push(Mt+543);else if(Ft.type==="b-year-short"){const br=(Mt+543)%100;ln.push(br<10?"0":"",br)}}return pe.nbsp?ln.join(""):ln.join("").replace(/\u00a0/g," ")}j(Ve,"K");function ke(ue,ce){for(let pe=0;pe<3;pe++){const Ae=ce[pe];if(Ae){let je;if(Ae.condition){const tt=Ae.condition[0],Qe=Ae.condition[1];tt==="="?je=ue===Qe:tt===">"?je=ue>Qe:tt==="<"?je=ue<Qe:tt===">="?je=ue>=Qe:tt==="<="?je=ue<=Qe:tt==="<>"&&(je=ue!==Qe)}else je=!0;if(je)return Ae}}}j(ke,"q");const Ke=k("@"),$e="black",Fe={};function He(ue,ce){if(ue){const pe=ue[0];ce[pe]=ce[pe]||{},He(ue.slice(1),ce[pe])}else ce.$=!0}j(He,"ee"),["d-F-y","d-F-Y","d-M-y","d-M-Y","F-d-y","F-d-Y","F-j-y","F-j-Y","j-F-y","j-F-Y","j-M-y","j-M-Y","M-d-y","M-d-Y","M-j-y","M-j-Y","m-d-y","m-d-Y","m-j-y","m-j-Y","n-d-y","n-d-Y","n-j-y","n-j-Y","y-F-d","y-F-j","y-M-d","y-M-j","Y-F-d","Y-F-j","Y-M-d","Y-m-d","Y-M-j","Y-m-j","Y-n-d","Y-n-j","j-F","j-M","d-F","d-M","n-d","n-j","n-Y","m-d","m-j","m-Y","M-Y","M-y","F-y","F-Y","Y-M","Y-n","Y-m","Y-F","Y-M"].forEach(ue=>{He(ue,Fe),He(ue+" x",Fe),He(ue+" l",Fe),He(ue+" l x",Fe),He("l "+ue,Fe),He("l "+ue+" x",Fe),He(ue+" D",Fe),He(ue+" D x",Fe),He("D "+ue,Fe),He("D "+ue+" x",Fe)});const ct={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},_t={january:1,february:2,march:3,april:4,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Ye={sunday:"l",monday:"l",tuesday:"l",wednesday:"l",thursday:"l",friday:"l",saturday:"l",sun:"D",mon:"D",tue:"D",wed:"D",thu:"D",fri:"D",sat:"D"},Ot=new Date().getUTCFullYear();function An(ue){const ce=new RegExp("^([\\s+%"+y.join("")+"(-]*)(((?:(?:\\d[\\d,]*)(?:\\.\\d*)?|(?:\\.\\d+)))([eE][+-]?\\d+)?)([\\s%"+y.join("")+")]*)$").exec(ue);if(ce){const[,pe,Ae,je,tt,Qe]=ce;let nt=1,we="",Ze=!1,ht=!1,pt=!1,Mt=!1,xt=!1,st=null,Be=!1,vt=parseFloat(Ae.replace(/,/g,""));if(!isFinite(vt))return null;for(let Lt=0;Lt<pe.length;Lt++){const zt=pe[Lt];if(zt==="-"){if(Ze||ht)return null;Ze=!0,nt=-1}else if(A.test(zt)){if(xt)return null;xt=!0,st=zt}else if(zt==="("){if(ht||Ze)return null;ht=!0,nt=-1}else if(zt==="%"){if(Mt)return null;Mt=!0}}for(let Lt=0;Lt<Qe.length;Lt++){const zt=Qe[Lt];if(A.test(zt)){if(xt)return null;xt=!0,st=zt,Be=!0}else if(zt===")"){if(pt||!ht)return null;pt=!0}else if(zt==="%"){if(Mt)return null;Mt=!0}}if(tt){if(Mt||xt)return null;we="0.00E+00"}else if(Mt){if(xt)return null;we=je.includes(".")?"0.00%":"0%",vt*=.01}else if(xt){const Lt=je.includes(".")?"#,##0.00":"#,##0";we=Be?Lt+st:st+Lt}else je.includes(",")&&(we=je.includes(".")?"#,##0.00":"#,##0");const qt={v:vt*nt};return we&&(qt.z=we),qt}}j(An,"ie");const Ut=j((ue,ce,pe)=>{const Ae=pe.path||"",je=Object.keys(ce);for(let tt=0;tt<je.length;tt++){let Qe;const nt=je[tt];if(ce[nt]){if(nt==="$"||nt==="€")ue||(Qe=pe);else if(nt==="-"){const we=/^(\s*([./-]|,\s)\s*|\s+)/.exec(ue);if(we){const Ze=we[1]==="-"||we[1]==="/"||we[1]==="."?we[1]:" ";if(!pe.sep||pe.sep===Ze){const ht=we[0].replace(/\s+/g," ");Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,sep:Ze,path:Ae+ht})}}}else if(nt===" "){const we=/^[,.]?\s+/.exec(ue);if(we){const Ze=we[0].replace(/\s+/g," ");Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,path:Ae+Ze})}}else if(nt==="j"||nt==="d"){const we=/^(0?[1-9]|1\d|2\d|3[01])\b/.exec(ue);we&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,day:we[0],path:Ae+nt}))}else if(nt==="n"||nt==="m"){const we=/^(0?[1-9]|1[012])\b/.exec(ue);we&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,month:+we[0],_mon:we[0],path:Ae+nt}))}else if(nt==="F"||nt==="M"){const we=/^([a-z]{3,9})\b/i.exec(ue),Ze=we&&(nt==="F"?_t:ct)[we[0].toLowerCase()];Ze&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,month:Ze,_mon:we[0],path:Ae+nt}))}else if(nt==="l"||nt==="D"){const we=/^([a-z]{3,9})\b/i.exec(ue);(we&&Ye[we[0].toLowerCase()])===nt&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,path:Ae+nt}))}else if(nt==="y"){const we=/^\d\d\b/.exec(ue);if(we){const Ze=+we[0]>=30?+we[0]+1900:+we[0]+2e3;Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,year:Ze,path:Ae+nt})}}else if(nt==="Y"){const we=/^\d\d\d\d\b/.exec(ue);we&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,year:+we[0],path:Ae+nt}))}else{if(nt!=="x")throw new Error('Unknown date token "'.concat(nt,'"'));{const we=dn(ue);we&&(Qe=Ut("",ce[nt],{...pe,time:we.v,tf:we.z,path:Ae+nt}))}}if(Qe)return Qe}}},"se");function Jt(ue,ce){const pe=Ut(ue.trim(),Fe,{path:""});if(pe){var Ae;if(pe.sep==="."&&pe.path.length===3)return null;const je=+((Ae=pe.year)!==null&&Ae!==void 0?Ae:Ot);if(pe.day||(pe.day=1),!function(nt,we,Ze){if(Ze<1||we<1||we>12)return!1;if(we===2){if(Ze>(nt%4==0&&nt%100!=0||nt%400==0||nt===1900?29:28))return!1}else if((we===4||we===6||we===9||we===11)&&Ze>30||(we===1||we===3||we===5||we===7||we===8||we===10||we===12)&&Ze>31)return!1;return!0}(je,pe.month,pe.day))return null;let tt=-1/0;if(je<1900)return null;je<=1900&&pe.month<=2?tt=25568:je<1e4&&(tt=25569);const Qe=Date.UTC(je,pe.month-1,pe.day)/864e5+tt+(pe.time||0);if(Qe>=0&&Qe<=2958465){const nt=pe._mon[0]==="0"||pe.day[0]==="0"||pe._mon.length===2&&pe.day.length===2,we=pe.path.replace(/[jdlDnmMFyYx-]/g,Ze=>Ze==="j"||Ze==="d"?nt?"dd":"d":Ze==="D"?"ddd":Ze==="l"?"dddd":Ze==="n"||Ze==="m"?nt?"mm":"m":Ze==="M"?"mmm":Ze==="F"?"mmmm":Ze==="y"?"yy":Ze==="x"?pe.tf||"":Ze==="Y"?"yyyy":Ze);return ce&&ce.nativeDate?{v:G(Qe,ce),z:we}:{v:Qe,z:we}}}return null}j(Jt,"oe");function dn(ue){const ce=/^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?:\s*([AP])M?)?\s*$/i.exec(ue);if(ce){const[,pe,Ae,je,tt,Qe]=ce;if(tt&&!je||!Qe&&!Ae&&!je)return null;let nt=1*(pe||0);if(Qe){if(nt>=13)return null;Qe[0]!=="p"&&Qe[0]!=="P"||(nt+=12)}return{v:(60*nt*60+60*(1*(Ae||0))+1*(je||0)+1*(tt||0))/86400,z:(pe.length===2?"hh":"h")+":mm"+(je?":ss":"")+(Qe?" AM/PM":"")}}return null}j(dn,"le");function Sn(ue){return/^\s*true\s*$/i.test(ue)?{v:!0}:/^\s*false\s*$/i.test(ue)?{v:!1}:null}j(Sn,"de");const hn={};function tr(ue,ce){const{pattern:pe,partitions:Ae,locale:je}=ue,tt=j(we=>{const Ze=Object.assign({},_(),ce,we);return je&&(Ze.locale=je),Ze},"i"),Qe=j((we,Ze)=>{const ht=tt(Ze);return function(pt,Mt,xt){const st=c(xt.locale),Be=Mt[3]?Mt[3]:Ke;if(typeof pt=="boolean"&&(pt=pt?"TRUE":"FALSE"),pt==null)return"";if(typeof pt!="number")return Ve(pt,Be,xt,st);if(!isFinite(pt)){const qt=st||f;return isNaN(pt)?qt.nan:(pt<0?qt.negative:"")+qt.infinity}const vt=ke(pt,Mt);return vt?Ve(pt,vt,xt,st):xt.overflow}(K(we,ht),Ae,ht)},"s");Qe.color=(we,Ze)=>function(ht,pt){if(typeof ht!="number"||!isFinite(ht))return(pt[3]?pt[3].color:Ke.color)||$e;const Mt=ke(ht,pt);return Mt&&Mt.color||$e}(K(we,tt(Ze)),Ae);const nt=function(we){var Ze;let ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const[pt,Mt]=we,xt=pt.frac_max,st={type:"general",isDate:Y(we),isText:ae(we),isPercent:te(we),maxDecimals:pt.general?9:xt,scale:(Ze=pt.scale)!==null&&Ze!==void 0?Ze:1,color:0,parentheses:0,grouped:pt.grouping?1:0,_partitions:we},Be=!st.isDate&&!st.isText&&!pt.error&&pt.tokens.some(Yt=>Yt.type==="string"&&(ht?Yt.value===ht:A.test(Yt.value)));let vt="G",qt=xt>=0?Math.min(15,xt):"",Lt="",zt="";if(Mt&&Mt.color&&(zt="-",st.color=1),pt.parens&&(Lt="()",st.parentheses=1),Be)vt="C",st.type="currency";else if(pt.error)st.type="error",st.maxDecimals=0;else if(st.isDate){let Yt=0,un=0,ir="";pt.tokens.forEach(ln=>{const Nr=ln.type;/^(b-)?year/.test(Nr)?(ir+="Y",un++):Nr.startsWith("month")?(ir+="M",un++):/^(week)?day/.test(Nr)?(ir+="D",un++):Nr!=="hour"&&Nr!=="min"&&Nr!=="sec"&&Nr!=="am"||(ir+=Nr[0],Yt++)}),st.type="date",un&&Yt?st.type="datetime":!un&&Yt&&(st.type="time");const jr=ne.find(ln=>ir.startsWith(ln[0]));vt=jr?"D":"G",qt=jr?jr[1]:""}else st.isText?(vt="G",st.type="text",qt="",st.maxDecimals=0):pt.general?(vt="G",st.type="general",qt=""):pt.fractions?(vt="G",st.type="fraction",qt=""):pt.exponential?(vt="S",st.type="scientific"):st.isPercent?(vt="P",st.type="percent"):pt.grouping?(vt=",",st.type="grouped"):(pt.int_max||xt)&&(vt="F",st.type="number");return st.code=vt+qt+zt+Lt,st.level=ie[st.type],Object.freeze(st)}(Ae,(ce||{}).currency)||new SyntaxError;return Qe.info=nt,Qe.dateInfo=function(we){const[Ze]=we;return{year:!!(2&Ze.date),month:!!(4&Ze.date),day:!!(8&Ze.date),hours:!!(16&Ze.date),minutes:!!(32&Ze.date),seconds:!!(64&Ze.date),clockType:Ze.clock===12?12:24}}(Ae),Qe.isPercent=()=>!!nt.isPercent,Qe.isDate=()=>!!nt.isDate,Qe.isText=()=>!!nt.isText,Qe.pattern=pe,ue.error&&(Qe.error=ue.error),Qe.options=tt,Qe.locale=je||ce&&ce.locale||"",Object.freeze(Qe)}j(tr,"ue");function en(ue,ce){ue||(ue="General");let pe=null;return hn[ue]?pe=hn[ue]:(pe=Object.assign({},_(),ce).throws?$(ue):function(Ae){try{return $(Ae)}catch(je){const tt={tokens:[{type:"error"}],error:je.message};return{pattern:Ae,partitions:[tt,tt,tt,tt],error:je.message,locale:null}}}(ue),pe.error||(hn[ue]=pe)),tr(pe,ce)}j(en,"ce"),en.isDate=ue=>en(ue,{throws:!1}).isDate(),en.isPercent=ue=>en(ue,{throws:!1}).isPercent(),en.isText=ue=>en(ue,{throws:!1}).isText(),en.getInfo=(ue,ce)=>en(ue,{...ce,throws:!1}).info,en.getDateInfo=(ue,ce)=>en(ue,{...ce,throws:!1}).dateInfo,en.dateToSerial=K,en.dateFromSerial=G,en.options=_,en.dec2frac=g,en.round=m,en.codeToLocale=i,en.parseLocale=l,en.getLocale=c,en.addLocale=(ue,ce)=>{const pe=l(ce);return delete hn[pe.lang],delete hn[pe.language],h(ue,pe)},en.format=function(ue,ce,pe){let Ae=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const je=pe&&typeof pe=="object"?pe:{locale:pe,throws:!Ae};return en(ue,je)(K(ce,je),je)},en.is_date=en.isDate,en.parseNumber=An,en.parseDate=Jt,en.parseTime=dn,en.parseBool=Sn,en.parseValue=function(ue,ce){var pe,Ae,je;return(pe=(Ae=(je=An(ue))!==null&&je!==void 0?je:Jt(ue,ce))!==null&&Ae!==void 0?Ae:dn(ue))!==null&&pe!==void 0?pe:Sn(ue)};var bt=en;return r=r.default}()})})(j1e);var DZe=j1e.exports,IZe=DZe;const PZe=VX(IZe),Fi=PZe;function Yd(t){let e=0;const n=Object.keys(t);for(const r of n){const i=Number(r);e=Math.max(e,i)}return e+1}j(Yd,"getArrayLength");function Xg(t,e,n){const r=Yd(n),i=n;for(let a=r-1;a>=t;a--)i[a+1]=i[a];i[t]=e}j(Xg,"insertMatrixArray");function yv(t,e,n){const r=Object.keys(n).reduce((i,a)=>Math.max(i,Number.parseInt(a)),0)+1;for(let i=t;i<r;i++)i<t+e?delete n[i]:n[i]!==void 0&&(n[i-e]=n[i],delete n[i])}j(yv,"spliceArray");function qX(t,e){const n=t,r=Object.keys(n),i=r.length,a=e,o=Object.keys(a),s=o.length,l={};let u=0;for(let c=0;c<i;c++,u++){const d=r[c];l[u]=n[d]}for(let c=0;c<s;c++,u++){const d=o[c];l[u]=a[d]}return l}j(qX,"concatMatrixArray");function YX(t,e,n){const r=n;if(Yd(n)>0){const i={};let a=0;for(let o=t;o<=e;o++)r[o]&&(i[a]=r[o],a++);return i}return{}}j(YX,"sliceMatrixArray");function Ev(t,e,n,r){const i=t>n;if(!i&&t+e>n)throw new Error("Invalid move operation");i?$1e(t,e,n,r):W1e(t,e,n,r)}j(Ev,"moveMatrixArray");function $1e(t,e,n,r){const i=r,a=[];for(let o=t;o<t+e;o++)a.push(i[o]);for(let o=t-1;o>=n;o--){const s=i[o];i[o+e]=s,s===void 0&&delete i[o+e]}a.forEach((o,s)=>{i[n+s]=o,o===void 0&&delete i[n+s]})}j($1e,"_moveBackward");function W1e(t,e,n,r){const i=r,a=[];for(let o=t;o<t+e;o++)a.push(i[o]);for(let o=t+e;o<n;o++){const s=i[o];i[o-e]=s,s===void 0&&delete i[o-e]}a.forEach((o,s)=>{i[n+s-e]=o,o===void 0&&delete i[n+s-e]})}j(W1e,"_moveForward");const z1e=class E5{constructor(e={}){Xe(this,"_matrix"),this._setOriginValue(e)}static MakeObjectMatrixSize(e){return new E5({[e-1]:{}})}getMatrix(){return this._matrix}forEach(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(e(a,o)===!1)return this}return this}forRow(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(e(a,Object.keys(o).map(s=>Number(s)))===!1)return this}return this}forValue(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(!o)continue;const s=Object.keys(o);for(const l of s){const u=Number(l),c=o[Number(l)];if(e(a,u,c)===!1)return this}}return this}swapRow(e,n){const r=this._matrix[e],i=this._matrix[n];this._matrix[e]=i,this._matrix[n]=r}getRow(e){return this._matrix[e]}getRowOrCreate(e){let n=this.getRow(e);return n==null&&(n={},this._matrix[e]=n),n}reset(){this._setOriginValue({})}hasValue(){const e=this._matrix,n=Object.keys(e);if(n.length===0)return!1;for(const r of n){const i=Number(r),a=e[i];if(Object.keys(a).length>0)return!0}return!1}getValue(e,n){var r,i;return(i=(r=this._matrix)==null?void 0:r[e])==null?void 0:i[n]}setValue(e,n,r){const i=this.getRowOrCreate(e);i[n]=r}deleteValue(e,n){var r,i;(i=(r=this._matrix)==null?void 0:r[e])==null||delete i[n]}realDeleteValue(e,n){var r,i,a;if((i=(r=this._matrix)==null?void 0:r[e])==null||delete i[n],this.getRow(e)){const o=this.getRow(e);if(o==null)return;Object.keys(o).length===0&&((a=this._matrix)==null||delete a[e])}}setRow(e,n){this._matrix[e]=n}moveRows(e,n,r){Ev(e,n,r,this._matrix)}moveColumns(e,n,r){this.forEach((i,a)=>{Ev(e,n,r,a)})}insertRows(e,n){for(let r=e;r<e+n;r++)Xg(r,{},this._matrix)}insertColumns(e,n){for(let r=e;r<e+n;r++)this.forEach((i,a)=>{a&&Xg(r,void 0,a)})}removeRows(e,n){yv(e,n,this._matrix)}removeColumns(e,n){this.forEach((r,i)=>{i&&yv(e,n,i)})}getFragment(e,n,r,i){const a=new E5;let o=0;for(let s=e;s<=n;s++){const l={};let u=0;for(let c=r;c<=i;c++){const d=this.getValue(s,c);l[u]=d,u++}a.setRow(o,l),o++}return a}getSlice(e,n,r,i){const a=new E5;for(let o=e;o<=n;o++)for(let s=r;s<=i;s++){const l=this.getValue(o,s);l&&a.setValue(o,s,Ie.deepClone(l))}return a}getSizeOf(){return Object.keys(this._matrix).length}getLength(){return Yd(this._matrix)}getRange(){const e=this.getLength()-1;let n=0;const r=this.getLength();for(let i=0;i<r;i++){const a=this.getRow(i);if(a){const o=Yd(a)-1;n=o>n?o:n}}return{startRow:0,startColumn:0,endRow:e,endColumn:n}}toNativeArray(){const e=new Array;return this.forValue((n,r,i)=>{e.push(i)}),e}toArray(){const e=[];return this.forRow((n,r)=>{e[n]==null&&(e[n]=[]),r.forEach(i=>{e[n][i]=this.getValue(n,i)})}),e}toFullArray(){const e=this.getRange(),{endColumn:n,endRow:r}=e,i=[];for(let a=0;a<=r;a++){const o=new Array(n+1).fill(void 0);i.push(o)}return this.forValue((a,o,s)=>{i[a][o]=s}),i}toJSON(){return this._matrix}clone(){const e=JSON.stringify(this._matrix);return JSON.parse(e)}getData(){const e=JSON.stringify(this._matrix);return JSON.parse(e)}getArrayData(){let e=0,n=0,r=!1,i=!1;const a=new E5;return this.forEach((o,s)=>{r||(r=!0,e=o),Object.keys(s).forEach(l=>{const u=Number(l);i?u<n&&(n=u):(i=!0,n=u);const c=this.getValue(o,u);a.setValue(o-e,u-n,c)})}),a.getData()}getStartEndScope(){let e=1/0,n=-1/0,r=1/0,i=-1/0;const a=Object.keys(this._matrix);a.length>0&&(e=+a[0],n=+a[a.length-1]);for(const o of a){const s=Object.keys(this._matrix[o]);s.length>0&&(r=Math.min(r,+s[0]),i=Math.max(i,+s[s.length-1]))}return{startRow:e,endRow:n,startColumn:r,endColumn:i}}getDataRange(){let e=0,n=0,r=0,i=-1,a=!1,o=!1;return this.forEach((s,l)=>{if(a||(a=!0,e=s),l==null)return;const u=Yd(l)-1;u>r&&(r=u),Object.keys(l).forEach(c=>{const d=Number(c);o?d<n&&(n=d):(o=!0,n=d)}),s>i&&(i=s)}),{startRow:e,startColumn:n,endRow:i,endColumn:r}}getDiscreteRanges(){const e=[];return this.forEach((n,r)=>{Object.keys(r).forEach(i=>{const a=Number(i);let o=!1;for(const s of e)if(n>=s.startRow&&n<=s.endRow+1&&a>=s.startColumn&&a<=s.endColumn+1){s.endRow=Math.max(n,s.endRow),s.endColumn=Math.max(a,s.endColumn),o=!0;break}o||e.push({startRow:n,endRow:n,startColumn:a,endColumn:a})})}),e}merge(e){this.forValue((n,r)=>{const i=e.getValue(n,r);i!=null&&this.setValue(n,r,i)})}_setOriginValue(e={}){this._matrix=e}};j(z1e,"ObjectMatrix");let Ct=z1e;const ba={ff:"Arial",fs:11,it:at.FALSE,bl:at.FALSE,ul:{s:at.FALSE},st:{s:at.FALSE},ol:{s:at.FALSE},tr:{a:0,v:at.FALSE},td:JA.UNSPECIFIED,cl:{rgb:"#000"},bg:{rgb:"#fff"},ht:dr.UNSPECIFIED,vt:ea.UNSPECIFIED,tb:Li.UNSPECIFIED,pd:{t:0,r:0,b:0,l:0},n:null},MZe={id:"default_slide",title:"defaultSlide",pageSize:{width:300,height:300}};function R5(t,e){const{textRuns:n=[]}=e;let r=0;for(const i of n){const{ts:a={},st:o,ed:s}=i;if(a[t]==null)return at.FALSE;switch(t){case"bl":case"it":{if(a[t]===at.FALSE)return at.FALSE;break}case"ul":case"st":{if(a[t].s===at.FALSE)return at.FALSE;break}default:throw new Error(`unknown style key: ${t} in IStyleBase`)}r+=s-o}return e.dataStream.indexOf(`\r |
|
|
`)===r?at.TRUE:at.FALSE}j(R5,"isAllFormatInTextRuns");const AH=class wH{constructor(e,n,r){Xe(this,"_range"),Xe(this,"_worksheet"),this._deps=r,this._range=n,this._worksheet=e}static foreach(e,n){const{startRow:r,startColumn:i,endRow:a,endColumn:o}=e;for(let s=r;s<=a;s++)for(let l=i;l<=o;l++)n(s,l)}getRangeData(){return this._range}getValue(){return this.getValues()[0][0]}getValues(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=[];for(let o=e;o<=n;o++){const s=[];for(let l=r;l<=i;l++)s.push(this.getMatrix().getValue(o,l)||null);a.push(s)}return a}getMatrix(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=this._worksheet.getCellMatrix(),o=new Ct;for(let s=e;s<=n;s++)for(let l=r;l<=i;l++)o.setValue(s,l,a.getValue(s,l)||null);return o}getMatrixObject(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=this._worksheet.getCellMatrix(),o=new Ct;for(let s=e;s<=n;s++)for(let l=r;l<=i;l++)o.setValue(s-e,l-r,a.getValue(s,l)||{});return o}getA1Notation(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range;let a,o;return r<i?(a=Ie.numToWord(r+1)+(e+1),o=Ie.numToWord(i+1)+(n+1)):(a=Ie.numToWord(i+1)+(n+1),o=Ie.numToWord(r+1)+(e+1)),a===o?`${a}`:`${a}:${o}`}getBackground(){return this.getBackgrounds()[0][0]}getBackgrounds(){const e=this._deps.getStyles();return this.getValues().map(n=>n.map(r=>{var i;const a=e.getStyleByCell(r);return((i=a==null?void 0:a.bg)==null?void 0:i.rgb)||ba.bg.rgb}))}getCell(e,n){const{startRow:r,startColumn:i}=this._range,a={startRow:r+e,endRow:r+e,startColumn:i+n,endColumn:i+n};return new wH(this._worksheet,a,this._deps)}getColumn(){return this._range.startColumn}getObjectValue(e={}){return this.getObjectValues(e)[0][0]}getObjectValues(e={}){var n;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this._range,s=this._worksheet.getCellMatrix().getFragment(r,i,a,o).getData();if(e.isIncludeStyle){const l=this._deps.getStyles();for(let u=0;u<=i-r;u++)for(let c=0;c<=o-a;c++){if(s==null||((n=s==null?void 0:s[u])==null?void 0:n[c])==null)continue;const d=s[u][c].s;d&&(s[u][c].s=l.get(d))}}return s}getFontColor(){return this.getFontColors()[0][0]}getFontColors(){const e=this._deps.getStyles();return this.getValues().map(n=>n.map(r=>{var i;const a=e.getStyleByCell(r);return((i=a==null?void 0:a.cl)==null?void 0:i.rgb)||ba.cl.rgb}))}getFontFamilies(){return this._getStyles("ff")}getFontFamily(){return this.getFontFamilies()[0][0]}getUnderlines(){return this._getStyles("ul")}getUnderline(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("ul",r.body)===at.TRUE?{s:at.TRUE}:{s:at.FALSE}:this.getUnderlines()[0][0]}getOverlines(){return this._getStyles("ol")}getOverline(){return this.getOverlines()[0][0]}getStrikeThrough(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("st",r.body)===at.TRUE?{s:at.TRUE}:{s:at.FALSE}:this.getStrikeThroughs()[0][0]}getStrikeThroughs(){return this._getStyles("st")}getFontSize(){var e,n;const r=((e=this.getValue())==null?void 0:e.p)||{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?r.body.textRuns.some(i=>{var a;return((a=i==null?void 0:i.ts)==null?void 0:a.fs)!=null})?Math.max(...r.body.textRuns.map(i=>{var a;return((a=i==null?void 0:i.ts)==null?void 0:a.fs)||0})):this.getFontSizes()[0][0]:this.getFontSizes()[0][0]}getFontSizes(){return this._getStyles("fs")}getBorder(){return this.getBorders()[0][0]}getBorders(){return this._getStyles("bd")}getFontStyle(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("it",r.body)===at.TRUE?Vm.ITALIC:Vm.NORMAL:this._getFontStyles()[0][0]}_getFontStyles(){return this._getStyles("it")}getFontWeight(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("bl",r.body)===at.TRUE?Bm.BOLD:Bm.NORMAL:this._getFontWeights()[0][0]}_getFontWeights(){return this._getStyles("bl")}getGridId(){return this._worksheet.getSheetId()}getHeight(){const{_range:e,_worksheet:n}=this,{startRow:r,endRow:i}=e;let a=0;for(let o=0;o<=i-r;o++){const s=n.getRowHeight(o);a+=s}return a}getHorizontalAlignment(){return this.getHorizontalAlignments()[0][0]}getHorizontalAlignments(){return this._getStyles("ht")}getLastColumn(){return this._range.endColumn}getLastRow(){return this._range.endRow}getNumColumns(){const{startColumn:e,endColumn:n}=this._range;return n-e+1}getNumRows(){const{startRow:e,endRow:n}=this._range;return n-e+1}getRichTextValue(){return this.getRichTextValues()[0][0]}getRichTextValues(){return this.getValues().map(e=>e.map(n=>(n==null?void 0:n.p)||""))}getRowIndex(){return this._range.startRow}getSheet(){return this._worksheet}getTextDirection(){return this.getTextDirections()[0][0]}getTextDirections(){return this._getStyles("td")}getTextRotation(){return this.getTextRotations()[0][0]}getTextRotations(){return this._getStyles("tr")}getTextStyle(){return this.getTextStyles()[0][0]}getTextStyles(){const e=this._deps.getStyles();return this.getValues().map(n=>n.map(r=>e.getStyleByCell(r)))}getVerticalAlignment(){return this.getVerticalAlignments()[0][0]}getVerticalAlignments(){return this._getStyles("vt")}getWidth(){const{_range:e,_worksheet:n}=this,{startColumn:r,endColumn:i}=e;let a=0;for(let o=0;o<=i-r;o++)a+=n.getColumnWidth(o);return a}getWrap(){return this.getWrapStrategy()===Li.WRAP?at.TRUE:at.FALSE}getWrapStrategies(){return this._getStyles("tb")}getWrapStrategy(){return this.getWrapStrategies()[0][0]}forEach(e){wH.foreach(this._range,e)}_getStyles(e){const n=this._deps.getStyles();return this.getValues().map(r=>r.map(i=>{const a=n&&n.getStyleByCell(i);return a&&a[e]||ba[e]}))}};j(AH,"Range"),Xe(AH,"transformRange",j((t,e)=>t.rangeType===it.ALL?{startColumn:0,startRow:0,endColumn:e.getMaxColumns()-1,endRow:e.getMaxRows()-1}:t.rangeType===it.COLUMN?{startRow:0,endRow:e.getMaxRows()-1,startColumn:t.startColumn,endColumn:t.endColumn}:t.rangeType===it.ROW?{startColumn:0,endColumn:e.getMaxColumns()-1,startRow:t.startRow,endRow:t.endRow}:t,"transformRange"));let Gn=AH;function XX(t,e,n,r=!1){let i={...t};const a=i.startAbsoluteRefType||yr.NONE,o=i.endAbsoluteRefType||yr.NONE;return!r&&a===yr.ALL&&o===yr.ALL?i:r||a===yr.NONE&&o===yr.NONE?ft.moveOffset(i,e,n):(a===yr.NONE?i={...i,startRow:i.startRow+n,startColumn:i.startColumn+e}:a===yr.COLUMN?i={...i,startRow:i.startRow+n}:a===yr.ROW&&(i={...i,startColumn:i.startColumn+e}),o===yr.NONE?i={...i,endRow:i.endRow+n,endColumn:i.endColumn+e}:o===yr.COLUMN?i={...i,endRow:i.endRow+n}:o===yr.ROW&&(i={...i,endColumn:i.endColumn+e}),i)}j(XX,"moveRangeByOffset");function q1e(t){const e=new Set,n=new Set;for(const s of t)e.add(s.startColumn),e.add(s.endColumn+1),n.add(s.startRow),n.add(s.endRow+1);const r=Array.from(e).sort((s,l)=>s-l),i=Array.from(n).sort((s,l)=>s-l),a=[];for(let s=0;s<i.length-1;s++)for(let l=0;l<r.length-1;l++)a.push({startColumn:r[l],endColumn:r[l+1]-1,startRow:i[s],endRow:i[s+1]-1});const o=[];for(const s of a)for(const l of t)if(l.startRow<=s.endRow&&l.endRow>=s.startRow&&l.startColumn<=s.endColumn&&l.endColumn>=s.startColumn){o.push({startColumn:Math.max(s.startColumn,l.startColumn),endColumn:Math.min(s.endColumn,l.endColumn),startRow:Math.max(s.startRow,l.startRow),endRow:Math.min(s.endRow,l.endRow)});break}return o}j(q1e,"splitIntoGrid");function Y1e(t){t.sort((r,i)=>r.startRow-i.startRow||r.startColumn-i.startColumn);const e={};for(const r of t)e[r.startRow]||(e[r.startRow]=[]),e[r.startRow].push(r);const n=[];for(const r in e){const i=e[+r];i.sort((o,s)=>o.startColumn-s.startColumn);let a=i[0];for(let o=1;o<i.length;o++){const s=i[o];s.startColumn<=a.endColumn+1&&s.startRow===a.startRow&&s.endRow===a.endRow?a.endColumn=Math.max(a.endColumn,s.endColumn):(n.push(a),a=s)}n.push(a)}return n}j(Y1e,"mergeHorizontalRanges");function X1e(t){t.sort((r,i)=>r.startColumn-i.startColumn||r.startRow-i.startRow);const e={};for(const r of t)e[r.startColumn]||(e[r.startColumn]=[]),e[r.startColumn].push(r);const n=[];for(const r in e){const i=e[+r];i.sort((o,s)=>o.startRow-s.startRow);let a=i[0];for(let o=1;o<i.length;o++){const s=i[o];s.startRow<=a.endRow+1&&s.startColumn===a.startColumn&&s.endColumn===a.endColumn?a.endRow=Math.max(a.endRow,s.endRow):(n.push(a),a=s)}n.push(a)}return n}j(X1e,"mergeVerticalRanges");function G1e(t){const e=q1e(t),n=Y1e(e);return X1e(n)}j(G1e,"mergeRanges$1");function Q1e(t,e){const n=[];return t.forEach(r=>{n.push(...ft.subtract(r,e))}),ft.mergeRanges(n)}j(Q1e,"multiSubtractSingleRange");const q2=class gE{static clone(e){return e.rangeType!==void 0?{startRow:e.startRow,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn,rangeType:e.rangeType}:{startRow:e.startRow,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn}}static equals(e,n){return e==null||n==null?!1:e.endRow===n.endRow&&e.endColumn===n.endColumn&&e.startRow===n.startRow&&e.startColumn===n.startColumn&&(e.rangeType===n.rangeType||e.rangeType===void 0&&n.rangeType===it.NORMAL||n.rangeType===void 0&&e.rangeType===it.NORMAL)}static intersects(e,n){if(e.rangeType===it.ROW&&n.rangeType===it.COLUMN||e.rangeType===it.COLUMN&&n.rangeType===it.ROW)return!0;if(e.rangeType===it.ROW&&n.rangeType===it.ROW)return e.startRow<=n.endRow&&e.endRow>=n.startRow;if(e.rangeType===it.COLUMN&&n.rangeType===it.COLUMN)return e.startColumn<=n.endColumn&&e.endColumn>=n.startColumn;const r=Math.floor(Number.MAX_SAFE_INTEGER/10),i=Number.isNaN(e.startRow)?0:e.startRow,a=Number.isNaN(e.endRow)?r:e.endRow,o=Number.isNaN(e.startColumn)?0:e.startColumn,s=Number.isNaN(e.endColumn)?r:e.endColumn,l=Number.isNaN(n.startRow)?0:n.startRow,u=Number.isNaN(n.endRow)?r:n.endRow,c=Number.isNaN(n.startColumn)?0:n.startColumn,d=Number.isNaN(n.endColumn)?r:n.endColumn,h=Math.abs(o+s-c-d),f=Math.abs(o-s)+Math.abs(c-d),m=Math.abs(i+a-l-u),g=Math.abs(i-a)+Math.abs(l-u);return h<=f&&m<=g}static getIntersects(e,n){const r=e.startRow,i=e.endRow,a=e.startColumn,o=e.endColumn,s=n.startRow,l=n.endRow,u=n.startColumn,c=n.endColumn;let d,h,f,m;if(s<=i)s>=r?h=s:h=r;else return null;if(l>=r)l>=i?m=i:m=l;else return null;if(u<=o)u>a?d=u:d=a;else return null;if(c>=a)c>=o?f=o:f=c;else return null;return{startRow:h,endRow:m,startColumn:d,endColumn:f,rangeType:it.NORMAL}}static contains(e,n){return e.startRow<=n.startRow&&e.endRow>=n.endRow&&e.startColumn<=n.startColumn&&e.endColumn>=n.endColumn}static realContain(e,n){return gE.contains(e,n)&&(e.startRow<n.startRow||e.endRow>n.endRow||e.startColumn<n.startColumn||e.endColumn>n.endColumn)}static union(...e){return e.reduce((n,r)=>({startRow:Math.min(n.startRow,r.startRow),startColumn:Math.min(n.startColumn,r.startColumn),endRow:Math.max(n.endRow,r.endRow),endColumn:Math.max(n.endColumn,r.endColumn),rangeType:it.NORMAL}),e[0])}static realUnion(...e){const n=e.some(a=>a.rangeType===it.COLUMN),r=e.some(a=>a.rangeType===it.ROW),i=gE.union(...e);return{startColumn:r?Number.NaN:i.startColumn,endColumn:r?Number.NaN:i.endColumn,startRow:n?Number.NaN:i.startRow,endRow:n?Number.NaN:i.endRow,rangeType:r?it.ROW:n?it.COLUMN:it.NORMAL}}static subtract(e,n){if(n.startRow>e.endRow||n.endRow<e.startRow||n.startColumn>e.endColumn||n.endColumn<e.startColumn)return[e];const r=[];n.startRow>=e.startRow&&r.push({startRow:e.startRow,startColumn:e.startColumn,endRow:n.startRow-1,endColumn:e.endColumn}),n.endRow<=e.endRow&&r.push({startRow:n.endRow+1,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn});const i=Math.max(e.startRow,n.startRow),a=Math.min(e.endRow,n.endRow);return n.startColumn>=e.startColumn&&r.push({startRow:i,startColumn:e.startColumn,endRow:a,endColumn:n.startColumn-1}),n.endColumn<=e.endColumn&&r.push({startRow:i,startColumn:n.endColumn+1,endRow:a,endColumn:e.endColumn}),r.filter(o=>o.startRow<=o.endRow&&o.startColumn<=o.endColumn)}static mergeRanges(e){return G1e(e)}static subtractMulti(e,n){if(!n.length)return e;let r=e;return n.forEach(i=>{r=Q1e(r,i)}),gE.mergeRanges(r)}static hasIntersectionBetweenTwoRect(e,n){return!(e.left>n.right||e.right<n.left||e.top>n.bottom||e.bottom<n.top)}static getIntersectionBetweenTwoRect(e,n){const r=Math.max(e.left,n.left),i=Math.min(e.right,n.right),a=Math.max(e.top,n.top),o=Math.min(e.bottom,n.bottom);return i<=r||o<=a?null:{left:r,right:i,top:a,bottom:o,width:i-r,height:o-a}}};j(q2,"Rectangle"),Xe(q2,"getRelativeRange",j((t,e)=>({startRow:t.startRow-e.startRow,endRow:t.endRow-t.startRow,startColumn:t.startColumn-e.startColumn,endColumn:t.endColumn-t.startColumn}),"getRelativeRange")),Xe(q2,"getPositionRange",j((t,e,n)=>({...n||{},startRow:n&&[yr.ROW,yr.ALL].includes(n.startAbsoluteRefType||0)?n.startRow:t.startRow+e.startRow,endRow:n&&[yr.ROW,yr.ALL].includes(n.endAbsoluteRefType||0)?n.endRow:t.endRow+t.startRow+e.startRow,startColumn:n&&[yr.COLUMN,yr.ALL].includes(n.startAbsoluteRefType||0)?n.startColumn:t.startColumn+e.startColumn,endColumn:n&&[yr.COLUMN,yr.ALL].includes(n.endAbsoluteRefType||0)?n.endColumn:t.endColumn+t.startColumn+e.startColumn}),"getPositionRange")),Xe(q2,"moveHorizontal",j((t,e=0,n=0)=>({...t,startColumn:t.startColumn+e,endColumn:t.endColumn+e+n}),"moveHorizontal")),Xe(q2,"moveVertical",j((t,e=0,n=0)=>({...t,startRow:t.startRow+e,endRow:t.endRow+e+n}),"moveVertical")),Xe(q2,"moveOffset",j((t,e,n)=>({...t,startRow:t.startRow+n,endRow:t.endRow+n,startColumn:t.startColumn+e,endColumn:t.endColumn+e}),"moveOffset"));let ft=q2;function K1e(t,e){if(t.length===0||t[0].length===0)return null;const n=new Array(t[0].length).fill(0);let r=0,i=null;for(let a=0;a<t.length;a++){for(let s=0;s<t[0].length;s++)n[s]=e(t[a][s])?n[s]+1:0;const o=Z1e(n);o.area>r&&(r=o.area,i={startColumn:o.start,startRow:a-o.height+1,endColumn:o.end,endRow:a})}return i}j(K1e,"maximalRectangle");function Z1e(t){const e=[];let n=0,r={area:0,height:0,start:0,end:0},i=0;for(;i<t.length;)if(e.length===0||t[i]>=t[e[e.length-1]])e.push(i++);else{const a=t[e.pop()],o=e.length===0?i:i-e[e.length-1]-1;a*o>n&&(n=a*o,r={area:n,height:a,start:e.length===0?0:e[e.length-1]+1,end:i-1})}for(;e.length>0;){const a=t[e.pop()],o=e.length===0?i:i-e[e.length-1]-1;a*o>n&&(n=a*o,r={area:n,height:a,start:e.length===0?0:e[e.length-1]+1,end:i-1})}return r}j(Z1e,"largestRectangleArea");function J1e(t,e){Gn.foreach(e,(n,r)=>{t[n][r]=void 0})}j(J1e,"resetMatrix");function pc(t,e){const n=t.toFullArray(),r=[];for(;;){const i=K1e(n,e);if(!i)break;r.push(i),J1e(n,i)}return r}j(pc,"queryObjectMatrix");const TZe=class{constructor(e,n){Xe(this,"_values",[]),Xe(this,"_keys",[]),Xe(this,"_keyMaps",new Map),this._values=e,this._keys=n,e.forEach(r=>{this._initKeyMap(r)})}_initKeyMap(e){this._keys.forEach(n=>{const r=e[n],i=this._keyMaps.get(n)||new Map;i.set(r,e),this._keyMaps.set(n,i)})}getValue(e,n){const r=n||this._keys;for(let i=0;i<r.length;i++){const a=this._keyMaps.get(r[i]);if(a!=null&&a.has(e))return a.get(e)}return null}hasValue(e){for(let n=0;n<this._keys.length;n++){const r=this._keyMaps.get(this._keys[n]);if(r!=null&&r.has(e))return!0}return!1}addValue(e){this._values.push(e),this._initKeyMap(e)}setValue(e,n,r){const i=this.getValue(e);i&&Object.keys(i).includes(n)&&(i[n]=r)}deleteValue(e){const n=this.getValue(e);if(n){this._keys.forEach(i=>{const a=this._keyMaps.get(i),o=n[i];a==null||a.delete(o)});const r=this._values.findIndex(i=>i===n);this._values.splice(r,1)}}getValues(){return this._values}getKeyMap(e){var n;return[...((n=this._keyMaps.get(e))==null?void 0:n.keys())||[]]}clear(){this._values=[],this._keys=[],this._keyMaps.clear()}};j(TZe,"RefAlias");function nw(t,e,n,r){return{forEach(i){for(let a=t;a<=e;a++)for(let o=n;o<=r;o++)i(a,o)}}}j(nw,"createRowColIter");function LZe(t){if(t==null||t.length===0)return Number.NaN;const e=t.toLowerCase().split(""),n=e.length,r=j(o=>o.charCodeAt(0)-96,"getCharNumber");let i=0,a=0;for(let o=0;o<n;o++)a=r(e[o]),i+=a*26**(n-o-1);return i===0?Number.NaN:i-1}j(LZe,"ABCToNumber");const rw=65,ede=90,xZe=97;function tde(t){const e=ede-rw+1;let n="";for(;t>=0;)n=String.fromCharCode(t%e+rw)+n,t=Math.floor(t/e)-1;return n}j(tde,"numberToABC");function nde(t,e){let n="";for(;e>0;)n+=t,e--;return n}j(nde,"repeatStringNumTimes");function GX(t,e=!1){const n=ede-rw+1;let r=xZe;e&&(r=rw);const i=String.fromCharCode(t%n+r),a=Math.floor(t/n)+1;return nde(i,a)}j(GX,"numberToListABC");function Ol(t,e){return t.zIndex>e.zIndex?1:t.zIndex===e.zIndex?0:-1}j(Ol,"sortRules");function DH(t,e){return t.zIndex>e.zIndex?-1:t.zIndex===e.zIndex?0:1}j(DH,"sortRulesByDesc");function K0(t="index",e=1){return(n,r)=>n[t]>r[t]?e:n[t]===r[t]?0:-e}j(K0,"sortRulesFactory");var le=(t=>(t[t.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",t[t.UNIVER_DOC=1]="UNIVER_DOC",t[t.UNIVER_SHEET=2]="UNIVER_SHEET",t[t.UNIVER_SLIDE=3]="UNIVER_SLIDE",t[t.UNIVER_PROJECT=4]="UNIVER_PROJECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(le||{}),Ud=(t=>(t[t.Reader=0]="Reader",t[t.Editor=1]="Editor",t[t.Owner=2]="Owner",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(Ud||{}),IH=(t=>(t[t.SomeCollaborator=0]="SomeCollaborator",t[t.AllCollaborator=1]="AllCollaborator",t[t.OneSelf=2]="OneSelf",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(IH||{});const rde=class extends et{};j(rde,"UnitModel");let QX=rde;function ide(t=Ie.generateRandomId(6),e=pf.EN_US,n=""){return{id:t,locale:e,title:n,body:{dataStream:`\r |
|
|
`,textRuns:[],paragraphs:[{startIndex:0,paragraphStyle:{spaceAbove:{v:5},lineSpacing:1,spaceBelow:{v:0}}}],sectionBreaks:[{startIndex:1}]},documentStyle:{pageSize:{width:793.3333333333334,height:1122.6666666666667},marginTop:50,marginBottom:50,marginRight:40,marginLeft:40,renderConfig:{vertexAngle:0,centerAngle:0}},settings:{}}}j(ide,"getEmptySnapshot$1");var zu={},ade={},KX={};Object.defineProperty(KX,"__esModule",{value:!0});function ode(t,e){if(Array.isArray(e))return!1;for(let n in t)if(!KP(t[n],e[n]))return!1;for(let n in e)if(t[n]===void 0)return!1;return!0}j(ode,"eqObj");function sde(t,e){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!KP(t[n],e[n]))return!1;return!0}j(sde,"eqArr");function KP(t,e){return t===e?!0:t===null||e===null||typeof t!="object"||typeof e!="object"?!1:Array.isArray(t)?sde(t,e):ode(t,e)}j(KP,"deepEqual");KX.default=KP;var ZX={};Object.defineProperty(ZX,"__esModule",{value:!0});function iw(t){if(t===null)return null;if(Array.isArray(t))return t.map(iw);if(typeof t=="object"){const e={};for(let n in t)e[n]=iw(t[n]);return e}else return t}j(iw,"deepClone");ZX.default=iw;var JX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.eachChildOf=t.advancer=t.readCursor=t.writeCursor=t.WriteCursor=t.ReadCursor=t.isValidPathItem=void 0;function e(f,m){if(!f)throw new Error(m)}j(e,"assert");const n=j(f=>f!=null&&typeof f=="object"&&!Array.isArray(f),"isObject"),r=j((f,m)=>typeof f==typeof m?f>m:typeof f=="string"&&typeof m=="number","isGreaterKey");function i(f,m){for(let g in f){const p=g;m.write(p,f[p])}}j(i,"copyAll"),t.isValidPathItem=f=>typeof f=="number"||typeof f=="string"&&f!=="__proto__";const a=class{constructor(m=null){this.parents=[],this.indexes=[],this.lcIdx=-1,this.idx=-1,this.container=m}ascend(){e(this.parents.length===this.indexes.length/2),this.idx===0?this.parents.length?(this.lcIdx=this.indexes.pop(),this.container=this.parents.pop(),this.idx=this.indexes.pop()):(this.lcIdx=0,this.idx=-1):(e(this.idx>0),this.idx--,n(this.container[this.idx])&&this.idx--)}getPath(){const m=[];let g=this.container,p=this.parents.length-1,v=this.idx;for(;v>=0;)m.unshift(g[v]),v===0?(v=this.indexes[p*2],g=this.parents[p--]):v-=n(g[v-1])?2:1;return m}};j(a,"Cursor");let o=a;const s=class lde extends o{get(){return this.container?this.container.slice(this.idx+1):null}getKey(){return e(this.container!=null,"Invalid call to getKey before cursor descended"),this.container[this.idx]}getComponent(){let m;return this.container&&this.container.length>this.idx+1&&n(m=this.container[this.idx+1])?m:null}descendFirst(){let m=this.idx+1;if(!this.container||m>=this.container.length||n(this.container[m])&&m+1>=this.container.length)return!1;n(this.container[m])&&m++;const g=this.container[m];return Array.isArray(g)?(this.indexes.push(this.idx),this.parents.push(this.container),this.indexes.push(m),this.idx=0,this.container=g):this.idx=m,!0}nextSibling(){if(e(this.parents.length===this.indexes.length/2),this.idx>0||this.parents.length===0)return!1;const m=this.indexes[this.indexes.length-1]+1,g=this.parents[this.parents.length-1];return m>=g.length?!1:(e(!isNaN(m)),this.indexes[this.indexes.length-1]=m,this.container=g[m],!0)}_init(m,g,p,v){this.container=m,this.idx=g,this.parents=p.slice(),this.indexes=v.slice()}clone(){const m=new lde;return m._init(this.container,this.idx,this.parents,this.indexes),m}*[Symbol.iterator](){if(this.descendFirst()){do yield this.getKey();while(this.nextSibling());this.ascend()}}traverse(m,g){const p=this.getComponent();p&&g(p,m);for(const v of this)m&&m.descend(v),this.traverse(m,g),m&&m.ascend()}eachPick(m,g){this.traverse(m,(p,v)=>{p.p!=null&&g(p.p,v)})}eachDrop(m,g){this.traverse(m,(p,v)=>{p.d!=null&&g(p.d,v)})}};j(s,"ReadCursor");let l=s;t.ReadCursor=l;const u=class extends o{constructor(m=null){super(m),this.pendingDescent=[],this._op=m}flushDescent(){e(this.parents.length===this.indexes.length/2),this.container===null&&(this._op=this.container=[]);for(let m=0;m<this.pendingDescent.length;m++){const g=this.pendingDescent[m];let p=this.idx+1;if(p<this.container.length&&n(this.container[p])&&p++,e(p===this.container.length||!n(this.container[p])),p===this.container.length)this.container.push(g),this.idx=p;else if(this.container[p]===g)this.idx=p;else{if(!Array.isArray(this.container[p])){const v=this.container.splice(p,this.container.length-p);this.container.push(v),this.lcIdx>-1&&(this.lcIdx=p)}for(this.indexes.push(this.idx),this.parents.push(this.container),this.lcIdx!==-1&&(e(r(g,this.container[this.lcIdx][0])),p=this.lcIdx+1,this.lcIdx=-1);p<this.container.length&&r(g,this.container[p][0]);)p++;if(this.indexes.push(p),this.idx=0,p<this.container.length&&this.container[p][0]===g)this.container=this.container[p];else{const v=[g];this.container.splice(p,0,v),this.container=v}}}this.pendingDescent.length=0}reset(){this.lcIdx=-1}getComponent(){this.flushDescent();const m=this.idx+1;if(m<this.container.length&&n(this.container[m]))return this.container[m];{const g={};return this.container.splice(m,0,g),g}}write(m,g){const p=this.getComponent();e(p[m]==null||p[m]===g,"Internal consistency error: Overwritten component. File a bug"),p[m]=g}get(){return this._op}descend(m){if(!t.isValidPathItem(m))throw Error("Invalid JSON key");this.pendingDescent.push(m)}descendPath(m){return this.pendingDescent.push(...m),this}ascend(){this.pendingDescent.length?this.pendingDescent.pop():super.ascend()}mergeTree(m,g=i){if(m===null)return;if(e(Array.isArray(m)),m===this._op)throw Error("Cannot merge into my own tree");const p=this.lcIdx,v=this.parents.length;let _=0;for(let C=0;C<m.length;C++){const S=m[C];typeof S=="string"||typeof S=="number"?(_++,this.descend(S)):Array.isArray(S)?this.mergeTree(S,g):typeof S=="object"&&g(S,this)}for(;_--;)this.ascend();this.lcIdx=this.parents.length===v?p:-1}at(m,g){this.descendPath(m),g(this);for(let p=0;p<m.length;p++)this.ascend();return this}writeAtPath(m,g,p){return this.at(m,()=>this.write(g,p)),this.reset(),this}writeMove(m,g,p=0){return this.writeAtPath(m,"p",p).writeAtPath(g,"d",p)}getPath(){const m=super.getPath();return m.push(...this.pendingDescent),m}};j(u,"WriteCursor");let c=u;t.WriteCursor=c,t.writeCursor=()=>new c,t.readCursor=f=>new l(f);function d(f,m,g){let p,v;v=p=f?f.descendFirst():!1;function _(C){let S;for(;v;){const b=S=f.getKey();if(C!=null){let y=!1;if(m&&typeof b=="number"&&(S=m(b,f.getComponent()),S<0&&(S=~S,y=!0)),r(S,C))return null;if(S===C&&!y)return f}g&&typeof S=="number"&&g(S,f.getComponent()),v=f.nextSibling()}return null}return j(_,"adv"),_.end=()=>{p&&f.ascend()},_}j(d,"advancer"),t.advancer=d;function h(f,m,g){let p,v,_,C;for(p=v=f&&f.descendFirst(),_=C=m&&m.descendFirst();p||_;){let S=p?f.getKey():null,b=_?m.getKey():null;S!==null&&b!==null&&(r(b,S)?b=null:S!==b&&(S=null)),g(S??b,S!=null?f:null,b!=null?m:null),S!=null&&p&&(p=f.nextSibling()),b!=null&&_&&(_=m.nextSibling())}v&&f.ascend(),C&&m.ascend()}j(h,"eachChildOf"),t.eachChildOf=h})(JX);var eG={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictType=void 0,function(e){e[e.RM_UNEXPECTED_CONTENT=1]="RM_UNEXPECTED_CONTENT",e[e.DROP_COLLISION=2]="DROP_COLLISION",e[e.BLACKHOLE=3]="BLACKHOLE"}(t.ConflictType||(t.ConflictType={}))})(eG);var Bie={},m3={},Uie;function ZP(){return Uie||(Uie=1,Object.defineProperty(m3,"__esModule",{value:!0}),m3.uniToStrPos=m3.strPosToUni=void 0,m3.strPosToUni=(t,e=t.length)=>{let n=0,r=0;for(;r<e;r++){const i=t.charCodeAt(r);i>=55296&&i<=57343&&(n++,r++)}if(r!==e)throw Error("Invalid offset - splits unicode bytes");return r-n},m3.uniToStrPos=(t,e)=>{let n=0;for(;e>0;e--){const r=t.charCodeAt(n);n+=r>=55296&&r<=57343?2:1}return n}),m3}j(ZP,"requireUnicount");var Hie={},jie;function aw(){return jie||(jie=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniSlice=t.dlen=t.eachOp=void 0;const e=ZP(),n=j(b=>{if(!Array.isArray(b))throw Error("Op must be an array of components");let y=null;for(let A=0;A<b.length;A++){const w=b[A];switch(typeof w){case"object":if(typeof w.d!="number"&&typeof w.d!="string")throw Error("Delete must be number or string");if(t.dlen(w.d)<=0)throw Error("Deletes must not be empty");break;case"string":if(!(w.length>0))throw Error("Inserts cannot be empty");break;case"number":if(!(w>0))throw Error("Skip components must be >0");if(typeof y=="number")throw Error("Adjacent skip components should be combined");break}y=w}if(typeof y=="number")throw Error("Op has a trailing skip")},"checkOp");function r(b,y){let A=0,w=0;for(let P=0;P<b.length;P++){const M=b[P];switch(y(M,A,w),typeof M){case"object":A+=t.dlen(M.d);break;case"string":w+=e.strPosToUni(M);break;case"number":A+=M,w+=M;break}}}j(r,"eachOp"),t.eachOp=r;function i(b,y){const A=[],w=s(A);return r(b,(P,M,L)=>{w(y(P,M,L))}),d(A)}j(i,"mapOp");const a=j(b=>b,"id"),o=j(b=>i(b,a),"normalize");t.dlen=b=>typeof b=="number"?b:e.strPosToUni(b);const s=j(b=>y=>{if(!(!y||y.d===0||y.d===""))if(b.length===0)b.push(y);else if(typeof y==typeof b[b.length-1])if(typeof y=="object"){const A=b[b.length-1];A.d=typeof A.d=="string"&&typeof y.d=="string"?A.d+y.d:t.dlen(A.d)+t.dlen(y.d)}else b[b.length-1]+=y;else b.push(y)},"makeAppend"),l=j(b=>typeof b=="number"?b:typeof b=="string"?e.strPosToUni(b):typeof b.d=="number"?b.d:e.strPosToUni(b.d),"componentLength");t.uniSlice=(b,y,A)=>{const w=e.uniToStrPos(b,y),P=A==null?1/0:e.uniToStrPos(b,A);return b.slice(w,P)};const u=j((b,y,A)=>typeof b=="number"?A==null?b-y:Math.min(b,A)-y:t.uniSlice(b,y,A),"dslice"),c=j(b=>{let y=0,A=0;return{take:j((w,P)=>{if(y===b.length)return w===-1?null:w;const M=b[y];let L;if(typeof M=="number")return w===-1||M-A<=w?(L=M-A,++y,A=0,L):(A+=w,w);if(typeof M=="string"){if(w===-1||P==="i"||e.strPosToUni(M.slice(A))<=w)return L=M.slice(A),++y,A=0,L;{const k=A+e.uniToStrPos(M.slice(A),w);return L=M.slice(A,k),A=k,L}}else{if(w===-1||P==="d"||t.dlen(M.d)-A<=w)return L={d:u(M.d,A)},++y,A=0,L;{let k=u(M.d,A,A+w);return A+=w,{d:k}}}},"take"),peek:j(()=>b[y],"peek")}},"makeTake"),d=j(b=>(b.length>0&&typeof b[b.length-1]=="number"&&b.pop(),b),"trim");function h(b,y,A){if(A!=="left"&&A!=="right")throw Error("side ("+A+") must be 'left' or 'right'");n(b),n(y);const w=[],P=s(w),{take:M,peek:L}=c(b);for(let O=0;O<y.length;O++){const $=y[O];let B,V;switch(typeof $){case"number":for(B=$;B>0;)V=M(B,"i"),P(V),typeof V!="string"&&(B-=l(V));break;case"string":A==="left"&&typeof L()=="string"&&P(M(-1)),P(e.strPosToUni($));break;case"object":for(B=t.dlen($.d);B>0;)switch(V=M(B,"i"),typeof V){case"number":B-=V;break;case"string":P(V);break;case"object":B-=t.dlen(V.d)}break}}let k;for(;k=M(-1);)P(k);return d(w)}j(h,"transform");function f(b,y){n(b),n(y);const A=[],w=s(A),{take:P}=c(b);for(let L=0;L<y.length;L++){const k=y[L];let O,$;switch(typeof k){case"number":for(O=k;O>0;)$=P(O,"d"),w($),typeof $!="object"&&(O-=l($));break;case"string":w(k);break;case"object":O=t.dlen(k.d);let B=0;for(;B<O;)switch($=P(O-B,"d"),typeof $){case"number":w({d:u(k.d,B,B+$)}),B+=$;break;case"string":B+=e.strPosToUni($);break;case"object":w($)}break}}let M;for(;M=P(-1);)w(M);return d(A)}j(f,"compose");const m=j((b,y)=>{let A=0;for(let w=0;w<y.length&&b>A;w++){const P=y[w];switch(typeof P){case"number":{A+=P;break}case"string":const M=e.strPosToUni(P);A+=M,b+=M;break;case"object":b-=Math.min(t.dlen(P.d),b-A);break}}return b},"transformPosition"),g=j((b,y)=>typeof b=="number"?m(b,y):b.map(A=>m(A,y)),"transformSelection");function p(b,y,A){return i(b,(w,P)=>typeof w=="object"&&typeof w.d=="number"?{d:A.slice(y,P,P+w.d)}:w)}j(p,"makeInvertible");function v(b){return i(b,y=>{switch(typeof y){case"object":if(typeof y.d=="number")throw Error("Cannot invert text op: Deleted characters missing from operation. makeInvertible must be called first.");return y.d;case"string":return{d:y};case"number":return y}})}j(v,"invert");function _(b){return i(b,y=>typeof y=="object"&&typeof y.d=="string"?{d:e.strPosToUni(y.d)}:y)}j(_,"stripInvertible");function C(b){let y=!0;return r(b,A=>{typeof A=="object"&&typeof A.d=="number"&&(y=!1)}),y}j(C,"isInvertible");function S(b){return{name:"text-unicode",uri:"http://sharejs.org/types/text-unicode",trim:d,normalize:o,checkOp:n,create(y=""){if(typeof y!="string")throw Error("Initial data must be a string");return b.create(y)},apply(y,A){n(A);const w=b.builder(y);for(let P=0;P<A.length;P++){const M=A[P];switch(typeof M){case"number":w.skip(M);break;case"string":w.append(M);break;case"object":w.del(t.dlen(M.d));break}}return w.build()},transform:h,compose:f,transformPosition:m,transformSelection:g,isInvertible:C,makeInvertible(y,A){return p(y,A,b)},stripInvertible:_,invert:v,invertWithDoc(y,A){return v(p(y,A,b))},isNoop:j(y=>y.length===0,"isNoop")}}j(S,"makeType"),t.default=S}(Hie)),Hie}j(aw,"requireType");var xb={},$ie;function ude(){if($ie)return xb;$ie=1,Object.defineProperty(xb,"__esModule",{value:!0});const t=aw(),e=ZP();function n(r,i){return{get:r,getLength(){return r().length},insert(a,o,s){const l=e.strPosToUni(r(),a);return i([l,o],s)},remove(a,o,s){const l=e.strPosToUni(r(),a);return i([l,{d:o}],s)},_onOp(a){t.eachOp(a,(o,s,l)=>{switch(typeof o){case"string":this.onInsert&&this.onInsert(l,o);break;case"object":const u=t.dlen(o.d);this.onRemove&&this.onRemove(l,u)}})},onInsert:null,onRemove:null}}return j(n,"api$1"),xb.default=n,n.provides={text:!0},xb}j(ude,"requireApi");var Wie;function cde(){return Wie||(Wie=1,function(t){var e=cs&&cs.__createBinding||(Object.create?function(h,f,m,g){g===void 0&&(g=m),Object.defineProperty(h,g,{enumerable:!0,get:j(function(){return f[m]},"get")})}:function(h,f,m,g){g===void 0&&(g=m),h[g]=f[m]}),n=cs&&cs.__setModuleDefault||(Object.create?function(h,f){Object.defineProperty(h,"default",{enumerable:!0,value:f})}:function(h,f){h.default=f}),r=cs&&cs.__importStar||function(h){if(h&&h.__esModule)return h;var f={};if(h!=null)for(var m in h)Object.hasOwnProperty.call(h,m)&&e(f,h,m);return n(f,h),f},i=cs&&cs.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.type=t.remove=t.insert=void 0;const a=ZP(),o=r(aw()),s=i(ude()),l={create(h){return h},toString(h){return h},builder(h){if(typeof h!="string")throw Error("Invalid document snapshot: "+h);const f=[];return{skip(m){let g=a.uniToStrPos(h,m);if(g>h.length)throw Error("The op is too long for this document");f.push(h.slice(0,g)),h=h.slice(g)},append(m){f.push(m)},del(m){h=h.slice(a.uniToStrPos(h,m))},build(){return f.join("")+h}}},slice:o.uniSlice},u=o.default(l),c=Object.assign(Object.assign({},u),{api:s.default});t.type=c,t.insert=(h,f)=>f.length===0?[]:h===0?[f]:[h,f],t.remove=(h,f)=>o.dlen(f)===0?[]:h===0?[{d:f}]:[h,{d:f}];var d=aw();Object.defineProperty(t,"makeType",{enumerable:!0,get:j(function(){return d.default},"get")})}(Bie)),Bie}j(cde,"requireDist");(function(t){var e=cs&&cs.__importDefault||function(Y){return Y&&Y.__esModule?Y:{default:Y}};Object.defineProperty(t,"__esModule",{value:!0}),t.editOp=t.replaceOp=t.insertOp=t.moveOp=t.removeOp=t.type=void 0;const n=e(KX),r=e(ZX),i=JX,a=eG;function o(Y,ae){if(!Y)throw new Error(ae)}j(o,"assert"),t.type={name:"json1",uri:"http://sharejs.org/types/JSONv1",readCursor:i.readCursor,writeCursor:i.writeCursor,create:j(Y=>Y,"create"),isNoop:j(Y=>Y==null,"isNoop"),setDebug(Y){},registerSubtype:v,checkValidOp:P,normalize:M,apply:L,transformPosition:k,compose:O,tryTransform:F,transform:W,makeInvertible:V,invert:$,invertWithDoc:X,RM_UNEXPECTED_CONTENT:a.ConflictType.RM_UNEXPECTED_CONTENT,DROP_COLLISION:a.ConflictType.DROP_COLLISION,BLACKHOLE:a.ConflictType.BLACKHOLE,transformNoConflict:j((Y,ae,ie)=>te(()=>!0,Y,ae,ie),"transformNoConflict"),typeAllowingConflictsPred:j(Y=>Object.assign(Object.assign({},t.type),{transform:j((ae,ie,ne)=>te(Y,ae,ie,ne),"transform")}),"typeAllowingConflictsPred")};const s=j(Y=>Y?Y.getComponent():null,"getComponent");function l(Y){return Y&&typeof Y=="object"&&!Array.isArray(Y)}j(l,"isObject");const u=j(Y=>Array.isArray(Y)?Y.slice():Y!==null&&typeof Y=="object"?Object.assign({},Y):Y,"shallowClone"),c=j(Y=>Y&&(Y.p!=null||Y.r!==void 0),"hasPick"),d=j(Y=>Y&&(Y.d!=null||Y.i!==void 0),"hasDrop");function h(Y,ae){return o(Y!=null),typeof ae=="number"?(o(Array.isArray(Y),"Invalid key - child is not an array"),(Y=Y.slice()).splice(ae,1)):(o(l(Y),"Invalid key - child is not an object"),delete(Y=Object.assign({},Y))[ae]),Y}j(h,"removeChild");function f(Y,ae,ie){return typeof ae=="number"?(o(Y!=null,"Container is missing for key"),o(Array.isArray(Y),"Cannot use numerical key for object container"),o(Y.length>=ae,"Cannot insert into out of bounds index"),Y.splice(ae,0,ie)):(o(l(Y),"Cannot insert into missing item"),o(Y[ae]===void 0,"Trying to overwrite value at key. Your op needs to remove it first"),Y[ae]=ie),ie}j(f,"insertChildMut"),t.removeOp=(Y,ae=!0)=>i.writeCursor().writeAtPath(Y,"r",ae).get(),t.moveOp=(Y,ae)=>i.writeCursor().writeMove(Y,ae).get(),t.insertOp=(Y,ae)=>i.writeCursor().writeAtPath(Y,"i",ae).get(),t.replaceOp=(Y,ae,ie)=>i.writeCursor().at(Y,ne=>{ne.write("r",ae),ne.write("i",ie)}).get(),t.editOp=(Y,ae,ie,ne=!1)=>i.writeCursor().at(Y,de=>y(de,ae,ie,ne)).get();const m=j((Y,ae)=>Y!=null&&(typeof ae=="number"?Array.isArray(Y):typeof Y=="object"),"isValidKey"),g=j((Y,ae)=>m(Y,ae)?Y[ae]:void 0,"maybeGetChild"),p={};function v(Y){let ae=Y.type?Y.type:Y;ae.name&&(p[ae.name]=ae),ae.uri&&(p[ae.uri]=ae)}j(v,"registerSubtype");const _=j(Y=>{const ae=p[Y];if(ae)return ae;throw Error("Missing type: "+Y)},"typeOrThrow");v(cde());const C=j((Y,ae)=>Y+ae,"add");v({name:"number",apply:C,compose:C,invert:j(Y=>-Y,"invert"),transform:j(Y=>Y,"transform")});const S=j(Y=>Y==null?null:Y.et?_(Y.et):Y.es?p["text-unicode"]:Y.ena!=null?p.number:null,"getEditType"),b=j(Y=>Y.es?Y.es:Y.ena!=null?Y.ena:Y.e,"getEdit"),y=j((Y,ae,ie,ne=!1)=>{const[de,_e]=typeof ae=="string"?[_(ae),ae]:[ae,ae.name];!ne&&de.isNoop&&de.isNoop(ie)||(_e==="number"?Y.write("ena",ie):_e==="text-unicode"?Y.write("es",ie):(Y.write("et",_e),Y.write("e",ie)))},"writeEdit");function A(Y){o(typeof Y=="number"),o(Y>=0),o(Y===(0|Y))}j(A,"checkNonNegInteger");function w(Y){typeof Y=="number"?A(Y):o(typeof Y=="string")}j(w,"checkScalar");function P(Y){if(Y===null)return;const ae=new Set,ie=new Set,ne=j(_e=>{let Pe=!0,De=!1;for(let Ee in _e){const ye=_e[Ee];if(Pe=!1,o(Ee==="p"||Ee==="r"||Ee==="d"||Ee==="i"||Ee==="e"||Ee==="es"||Ee==="ena"||Ee==="et","Invalid component item '"+Ee+"'"),Ee==="p")A(ye),o(!ae.has(ye)),ae.add(ye),o(_e.r===void 0);else if(Ee==="d")A(ye),o(!ie.has(ye)),ie.add(ye),o(_e.i===void 0);else if(Ee==="e"||Ee==="es"||Ee==="ena"){o(!De),De=!0;const Ve=S(_e);o(Ve,"Missing type in edit"),Ve.checkValidOp&&Ve.checkValidOp(b(_e))}}o(!Pe)},"checkComponent"),de=j((_e,Pe,De)=>{if(!Array.isArray(_e))throw Error("Op must be null or a list");if(_e.length===0)throw Error("Empty descent");Pe||w(_e[0]);let Ee=1,ye=0,Ve=0;for(let ke=0;ke<_e.length;ke++){const Ke=_e[ke];if(o(Ke!=null),Array.isArray(Ke)){const $e=de(Ke,!1);if(ye){const Fe=typeof Ve,He=typeof $e;Fe===He?o(Ve<$e,"descent keys are not in order"):o(Fe==="number"&&He==="string")}Ve=$e,ye++,Ee=3}else typeof Ke=="object"?(o(Ee===1,`Prev not scalar - instead ${Ee}`),ne(Ke),Ee=2):(o(Ee!==3),w(Ke),o(i.isValidPathItem(Ke),"Invalid path key"),Ee=1)}return o(ye!==1,"Operation makes multiple descents. Remove some []"),o(Ee===2||Ee===3),_e[0]},"checkDescent");de(Y,!0),o(ae.size===ie.size,"Mismatched picks and drops in op");for(let _e=0;_e<ae.size;_e++)o(ae.has(_e)),o(ie.has(_e))}j(P,"checkValidOp");function M(Y){let ae=0,ie=[];const ne=i.writeCursor();return ne.mergeTree(Y,(de,_e)=>{const Pe=S(de);if(Pe){const Ee=b(de);y(_e,Pe,Pe.normalize?Pe.normalize(Ee):Ee)}for(const Ee of["r","p","i","d"])if(de[Ee]!==void 0){const ye=Ee==="p"||Ee==="d"?(De=de[Ee],ie[De]==null&&(ie[De]=ae++),ie[De]):de[Ee];_e.write(Ee,ye)}var De}),ne.get()}j(M,"normalize");function L(Y,ae){if(P(ae),ae===null)return Y;const ie=[];return j(function ne(de,_e){let Pe=de,De=0,Ee={root:de},ye=0,Ve=Ee,ke="root";function Ke(){for(;ye<De;ye++){let $e=_e[ye];typeof $e!="object"&&(o(m(Ve,ke)),Ve=Ve[ke]=u(Ve[ke]),ke=$e)}}for(j(Ke,"mut");De<_e.length;De++){const $e=_e[De];if(Array.isArray($e)){const Fe=ne(Pe,$e);Fe!==Pe&&Fe!==void 0&&(Ke(),Pe=Ve[ke]=Fe)}else if(typeof $e=="object"){$e.d!=null?(Ke(),Pe=f(Ve,ke,ie[$e.d])):$e.i!==void 0&&(Ke(),Pe=f(Ve,ke,$e.i));const Fe=S($e);if(Fe)Ke(),Pe=Ve[ke]=Fe.apply(Pe,b($e));else if($e.e!==void 0)throw Error("Subtype "+$e.et+" undefined")}else Pe=g(Pe,$e)}return Ee.root},"drop")(Y=j(function ne(de,_e){const Pe=[];let De=0;for(;De<_e.length;De++){const ke=_e[De];if(Array.isArray(ke))break;typeof ke!="object"&&(Pe.push(de),de=g(de,ke))}for(let ke=_e.length-1;ke>=De;ke--)de=ne(de,_e[ke]);for(--De;De>=0;De--){const ke=_e[De];if(typeof ke!="object"){const Ke=Pe.pop();de=de===g(Ke,ke)?Ke:de===void 0?h(Ke,ke):(ye=ke,Ve=de,(Ee=u(Ee=Ke))[ye]=Ve,Ee)}else c(ke)&&(o(de!==void 0,"Cannot pick up or remove undefined"),ke.p!=null&&(ie[ke.p]=de),de=void 0)}var Ee,ye,Ve;return de},"pick")(Y,ae),ae)}j(L,"apply");function k(Y,ae){Y=Y.slice(),P(ae);const ie=i.readCursor(ae);let ne,de,_e=!1;const Pe=[];for(let Ee=0;;Ee++){const ye=Y[Ee],Ve=ie.getComponent();if(Ve&&(Ve.r!==void 0?_e=!0:Ve.p!=null&&(_e=!1,ne=Ve.p,de=Ee)),Ee>=Y.length)break;let ke=0;const Ke=i.advancer(ie,void 0,(Fe,He)=>{c(He)&&ke++});Pe.unshift(Ke);const $e=Ke(ye);if(typeof ye=="number"&&(Y[Ee]-=ke),!$e)break}if(Pe.forEach(Ee=>Ee.end()),_e)return null;const De=j(()=>{let Ee=0;if(ne!=null){const ye=ie.getPath();Ee=ye.length,Y=ye.concat(Y.slice(de))}for(;Ee<Y.length;Ee++){const ye=Y[Ee],Ve=s(ie),ke=S(Ve);if(ke){const Fe=b(Ve);ke.transformPosition&&(Y[Ee]=ke.transformPosition(Y[Ee],Fe));break}let Ke=0;const $e=i.advancer(ie,(Fe,He)=>d(He)?~(Fe-Ke):Fe-Ke,(Fe,He)=>{d(He)&&Ke++})(ye);if(typeof ye=="number"&&(Y[Ee]+=Ke),!$e)break}},"handleDrop");return ne!=null?ie.eachDrop(null,Ee=>{Ee===ne&&De()}):De(),Y}j(k,"transformPosition");function O(Y,ae){if(P(Y),P(ae),Y==null)return ae;if(ae==null)return Y;let ie=0;const ne=i.readCursor(Y),de=i.readCursor(ae),_e=i.writeCursor(),Pe=[],De=[],Ee=[],ye=[],Ve=[],ke=[],Ke=new Set;ne.traverse(null,Fe=>{Fe.p!=null&&(Ee[Fe.p]=ne.clone())}),de.traverse(null,Fe=>{Fe.d!=null&&(ye[Fe.d]=de.clone())});const $e=i.writeCursor();return j(function Fe(He,ct,_t,Ye,Ot,An,Ut,Jt){o(ct||_t);const dn=s(ct),Sn=s(_t),hn=!!Sn&&Sn.r!==void 0,tr=!!dn&&dn.i!==void 0,en=dn?dn.d:null,bt=Sn?Sn.p:null,ue=(An||hn)&&bt==null;if(bt!=null)Ye=ye[bt],Ut=De[bt]=new i.WriteCursor;else if(Sn&&Sn.r!==void 0)Ye=null;else{const Be=s(Ye);Be&&Be.d!=null&&(Ye=null)}const ce=s(Ye);if(en!=null)if(He=Ee[en],Jt=Pe[en]=new i.WriteCursor,ue)An&&!hn&&Jt.write("r",!0);else{const Be=Ve[en]=ie++;Ut.write("d",Be)}else if(dn&&dn.i!==void 0)He=null;else{const Be=s(He);Be&&Be.p!=null&&(He=null)}let pe;tr?(o(Ot===void 0),pe=dn.i):pe=Ot;const Ae=(bt==null?!tr||An||hn:pe===void 0)?null:Ut.getComponent();if(bt!=null){if(!(Ot!==void 0||tr)){const Be=en!=null?Ve[en]:ie++;ke[bt]=Be,Jt.write("p",Be)}}else hn&&(tr||Ot!==void 0||(Sn.r,Jt.write("r",Sn.r)));const je=ue?null:S(dn),tt=S(ce);if((je||tt)&&(je&&je.name,tt&&tt.name),je&&tt){o(je===tt);const Be=b(dn),vt=b(ce),qt=je.compose(Be,vt);y(Ut,je,qt),Ke.add(ce)}else je?y(Ut,je,b(dn)):tt&&(y(Ut,tt,b(ce)),Ke.add(ce));const Qe=typeof pe=="object"&&pe!=null;let nt=!1,we=0,Ze=0,ht=0,pt=0,Mt=0;const xt=i.advancer(Ye,(Be,vt)=>d(vt)?pt-Be-1:Be-pt,(Be,vt)=>{d(vt)&&pt++}),st=i.advancer(He,(Be,vt)=>c(vt)?we-Be-1:Be-we,(Be,vt)=>{c(vt)&&we++});if(i.eachChildOf(ct,_t,(Be,vt,qt)=>{let Lt,zt,Yt=Be,un=Be,ir=Be;if(typeof Be=="number"){let En=Be+ht;zt=xt(En),un=En+pt;let Ft=Be+Ze;Lt=st(Ft),d(s(zt))&&(Lt=null),Yt=Ft+we,ir=Be+Mt,o(Yt>=0,"p1PickKey is negative"),o(un>=0,"p2DropKey is negative");const $r=d(s(vt)),br=c(s(qt));($r||br&&!ue)&&Mt--,$r&&Ze--,br&&ht--}else Lt=st(Be),zt=xt(Be);Jt.descend(Yt),Ut.descend(un);const jr=Qe&&!d(s(vt))?pe[ir]:void 0,ln=Fe(Lt,vt,qt,zt,jr,ue,Ut,Jt);var Nr,mn,rn;Qe&&!ue?jr!==ln&&(nt||(pe=Array.isArray(pe)?pe.slice():Object.assign({},pe),nt=!0),Nr=pe,rn=ln,typeof(mn=ir)=="number"?(o(Array.isArray(Nr)),o(mn<Nr.length)):(o(!Array.isArray(Nr)),o(Nr[mn]!==void 0)),rn===void 0?typeof mn=="number"?Nr.splice(mn,1):delete Nr[mn]:Nr[mn]=rn):o(ln===void 0),Ut.ascend(),Jt.ascend()}),st.end(),xt.end(),Ae!=null)Ae.i=pe;else if(!An&&!hn&&bt==null)return pe},"xfBoundary")(ne,ne.clone(),de,de.clone(),void 0,!1,_e,$e),_e.reset(),_e.mergeTree($e.get()),_e.reset(),_e.get(),Pe.map(Fe=>Fe.get()),De.map(Fe=>Fe.get()),ne.traverse(_e,(Fe,He)=>{const ct=Fe.p;if(ct!=null){const _t=Ve[ct];_t!=null&&He.write("p",_t);const Ye=Pe[ct];Ye&&Ye.get(),Ye&&He.mergeTree(Ye.get())}else Fe.r!==void 0&&He.write("r",Fe.r)}),_e.reset(),_e.get(),de.traverse(_e,(Fe,He)=>{const ct=Fe.d;if(ct!=null){const Ye=ke[ct];Ye!=null&&He.write("d",Ye);const Ot=De[ct];Ot&&He.mergeTree(Ot.get())}else Fe.i!==void 0&&He.write("i",Fe.i);const _t=S(Fe);_t&&!Ke.has(Fe)&&y(He,_t,b(Fe))}),_e.get()}j(O,"compose");function $(Y){if(Y==null)return null;const ae=new i.ReadCursor(Y),ie=new i.WriteCursor;let ne;const de=[],_e=[];return j(function Pe(De,Ee,ye){const Ve=De.getComponent();let ke,Ke=!1;if(Ve){Ve.p!=null&&(Ee.write("d",Ve.p),de[Ve.p]=De.clone()),Ve.r!==void 0&&Ee.write("i",Ve.r),Ve.d!=null&&(Ee.write("p",Ve.d),ye=void 0),Ve.i!==void 0&&(ye=ke=Ve.i);const Fe=S(Ve);Fe&&(ye===void 0?(ne||(ne=new Set),ne.add(Ve)):(b(Ve),ye=Fe.apply(ye,b(Ve)),Ke=!0))}let $e=0;for(const Fe of De){Ee.descend(Fe);const He=typeof Fe=="number"?Fe-$e:Fe,ct=g(ye,He);d(De.getComponent())&&$e++;const _t=Pe(De,Ee,ct);if(ye!==void 0&&_t!==void 0){if(Ke||(Ke=!0,ye=u(ye)),!m(ye,He))throw Error("Cannot modify child - invalid operation");ye[He]=_t}Ee.ascend()}if(ke===void 0)return Ke?ye:void 0;Ee.write("r",ye)},"invertSimple")(ae,ie,void 0),ne&&(ie.reset(),j(function Pe(De,Ee,ye){const Ve=Ee.getComponent();if(Ve){const Fe=Ve.d;if(Fe!=null&&(De=de[Fe],ye=_e[Fe]=i.writeCursor()),ne.has(Ve)){const He=S(Ve);if(!He.invert)throw Error(`Cannot invert subtype ${He.name}`);y(ye,He,He.invert(b(Ve)))}}let ke=0,Ke=0;const $e=i.advancer(De,(Fe,He)=>c(He)?ke-Fe-1:Fe-ke,(Fe,He)=>{c(He)&&ke++});for(const Fe of Ee)if(typeof Fe=="number"){const He=Fe-Ke,ct=$e(He),_t=He+ke;ye.descend(_t),Pe(ct,Ee,ye),d(Ee.getComponent())&&Ke++,ye.ascend()}else ye.descend(Fe),Pe($e(Fe),Ee,ye),ye.ascend();$e.end()},"transformEdits")(ae.clone(),ae,ie),_e.length&&(ie.reset(),ae.traverse(ie,(Pe,De)=>{const Ee=Pe.p;if(Ee!=null){const ye=_e[Ee];ye&&ye.get(),ye&&De.mergeTree(ye.get())}}))),ie.get()}j($,"invert");const B=j((Y,ae)=>Y.some(ie=>typeof ie=="object"&&(Array.isArray(ie)?B(ie,ae):ae(ie))),"anyComponent");function V(Y,ae){if(Y==null||!B(Y,Ee=>{var ye;return Ee.r!==void 0||((ye=S(Ee))===null||ye===void 0?void 0:ye.makeInvertible)!=null}))return Y;const ie=new i.ReadCursor(Y),ne=new i.WriteCursor;let de=!1;const _e=[],Pe=[],De=j((Ee,ye,Ve)=>{const ke=Ee.getComponent();let Ke=!1;if(ke){ke.d!=null&&ye.write("d",ke.d),ke.i!==void 0&&ye.write("i",ke.i);const Fe=ke.p;if(Fe!=null&&(_e[Fe]=Ee.clone(),o(Ve!==void 0,"Operation picks up at an invalid key"),Pe[Fe]=Ve,ye.write("p",ke.p)),ke.r!==void 0&&Ve===void 0)throw Error("Invalid doc / op in makeInvertible: removed item missing from doc");const He=S(ke);He&&(He.makeInvertible?de=!0:y(ye,He,b(ke),!0))}let $e=0;for(const Fe of Ee){ye.descend(Fe);const He=typeof Fe=="number"?Fe-$e:Fe,ct=g(Ve,He),_t=De(Ee,ye,ct);ct!==_t&&(Ke||(Ke=!0,Ve=u(Ve)),_t===void 0?(Ve=h(Ve,He),typeof Fe=="number"&&$e++):Ve[He]=_t),ye.ascend()}return ke&&(ke.r!==void 0?(ye.write("r",r.default(Ve)),Ve=void 0):ke.p!=null&&(Ve=void 0)),Ve},"traversePick");return De(ie,ne,ae),ne.get(),de&&(ne.reset(),j(function Ee(ye,Ve,ke,Ke,$e){const Fe=Ve.getComponent();if(Fe){Fe.i!==void 0?(Ke=Fe.i,$e=!0):Fe.d!=null&&(Ke=Pe[Fe.d],ye=_e[Fe.d],$e=!1,Fe.d);let Ye=S(Fe);if(Ye&&Ye.makeInvertible){const Ot=b(Fe);y(ke,Ye,Ye.makeInvertible(Ot,Ke),!0)}}let He=0,ct=0;const _t=i.advancer(ye,(Ye,Ot)=>c(Ot)?He-Ye-1:Ye-He,(Ye,Ot)=>{c(Ot)&&He++});for(const Ye of Ve)if(typeof Ye=="number"){const Ot=Ye-ct,An=_t(Ot),Ut=Ot+He,Jt=g(Ke,$e?Ot:Ut);ke.descend(Ye),Ee(An,Ve,ke,Jt,$e),d(Ve.getComponent())&&ct++,ke.ascend()}else{const Ot=g(Ke,Ye);ke.descend(Ye),Ee(_t(Ye),Ve,ke,Ot,$e),ke.ascend()}_t.end()},"traverseDrop")(ie.clone(),ie,ne,ae,!1)),ne.get()}j(V,"makeInvertible");function X(Y,ae){return $(V(Y,ae))}j(X,"invertWithDoc");const z=j(Y=>{if(Y==null)return null;const ae=Y.slice();for(let ie=0;ie<Y.length;ie++){const ne=ae[ie];Array.isArray(ne)&&(ae[ie]=z(ne))}return ae},"shallowCloneOp");function F(Y,ae,ie){o(ie==="left"||ie==="right","Direction must be left or right");const ne=ie==="left"?0:1;if(ae==null)return{ok:!0,result:Y};P(Y),P(ae);let de=null;const _e=[],Pe=[],De=[],Ee=[],ye=[],Ve=[],ke=[],Ke=[],$e=[],Fe=[],He=[],ct=[],_t=[],Ye=[],Ot=[];let An=0;const Ut=i.readCursor(Y),Jt=i.readCursor(ae),dn=i.writeCursor();if(j(function ce(pe,Ae=null,je){const tt=s(Ae);tt&&(tt.r!==void 0?je=Ae.clone():tt.p!=null&&(je=null,Ve[tt.p]=pe.clone()));const Qe=pe.getComponent();let nt;Qe&&(nt=Qe.p)!=null&&(ye[nt]=Ae?Ae.clone():null,De[nt]=pe.clone(),je&&(Fe[nt]=!0,$e[nt]=je),tt&&tt.p!=null&&(Ye[nt]=tt.p));const we=i.advancer(Ae);for(const Ze of pe)ce(pe,we(Ze),je);we.end()},"scanOp2Pick")(Jt,Ut,null),j(function ce(pe,Ae,je,tt,Qe){const nt=je.getComponent();let we,Ze=!1;nt&&((we=nt.d)!=null?(Ee[we]=je.clone(),tt!=null&&(Ot[tt]==null&&(Ot[tt]=[]),Ot[tt].push(we)),pe=ye[we]||null,Ae=De[we]||null,Fe[we]?(Qe&&(He[we]=!0),Qe=$e[we]||null):!Qe||ne!==1&&Ye[we]!=null||de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:t.removeOp(Qe.getPath()),op2:t.moveOp(Ae.getPath(),je.getPath())}),Ze=!0):nt.i!==void 0&&(pe=Ae=null,Ze=!0,Qe&&de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:t.removeOp(Qe.getPath()),op2:t.insertOp(je.getPath(),nt.i)})));const ht=s(pe);ht&&(ht.r!==void 0?Qe=pe.clone():ht.p!=null&&(ht.p,tt=ht.p,Qe=null));const pt=S(nt);pt&&Qe&&de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:t.removeOp(Qe.getPath()),op2:t.editOp(je.getPath(),pt,b(nt),!0)});let Mt=0,xt=0;const st=i.advancer(Ae,(vt,qt)=>c(qt)?Mt-vt-1:vt-Mt,(vt,qt)=>{c(qt)&&Mt++}),Be=i.advancer(pe);for(const vt of je)if(typeof vt=="number"){const qt=vt-xt,Lt=st(qt);xt+=+ce(Be(qt+Mt),Lt,je,tt,Qe)}else{const qt=st(vt);ce(Be(vt),qt,je,tt,Qe)}return st.end(),Be.end(),Ze},"scanOp2Drop")(Ut,Jt,Jt.clone(),null,null),Ee.map(ce=>ce&&ce.get()),de)return{ok:!1,conflict:de};He.map(ce=>!!ce);const Sn=[];let hn=null;j(function ce(pe,Ae,je,tt,Qe){let nt=!1;const we=s(Ae);if(c(we)){const st=we.p;st!=null?(je=Ee[st],tt=ct[st]=i.writeCursor(),nt=!0,Qe=null):(je=null,Qe=Ae.clone())}else d(s(je))&&(je=null);const Ze=pe.getComponent();if(Ze){const st=Ze.p;st!=null?(Qe&&(Ke[st]=Qe),Sn[st]=Qe||ne===1&&nt?null:tt.getComponent(),_e[st]=pe.clone(),je&&(ke[st]=je.clone())):Ze.r!==void 0&&(Qe||tt.write("r",!0),(Qe||nt)&&(hn==null&&(hn=new Set),hn.add(Ze)))}let ht=0,pt=0;const Mt=i.advancer(Ae,void 0,(st,Be)=>{c(Be)&&ht++}),xt=i.advancer(je,(st,Be)=>d(Be)?~(st-pt):st-pt,(st,Be)=>{d(Be)&&pt++});if(pe)for(const st of pe)if(typeof st=="string"){const Be=Mt(st),vt=xt(st);tt.descend(st),ce(pe,Be,vt,tt,Qe),tt.ascend()}else{const Be=Mt(st),vt=st-ht,qt=c(s(Be))?null:xt(vt),Lt=vt+pt;o(Lt>=0),tt.descend(Lt),ce(pe,Be,qt,tt,Qe),tt.ascend()}Mt.end(),xt.end()},"writeOp1Pick")(Ut,Jt,Jt.clone(),dn,null),dn.reset();let tr=[];if(j(function ce(pe,Ae,je,tt,Qe,nt){o(Ae);const we=Ae.getComponent();let Ze=s(tt),ht=!1;const pt=j((mn,rn,En)=>mn?t.moveOp(mn.getPath(),rn.getPath()):t.insertOp(rn.getPath(),En.i),"insOrMv");if(d(we)){const mn=we.d;mn!=null&&(Pe[mn]=Ae.clone());const rn=mn!=null?Sn[mn]:null;let En=!1;if(we.i!==void 0||mn!=null&&rn){let Ft;Ze&&(Ze.i!==void 0||(Ft=Ze.d)!=null&&!Fe[Ft])&&(En=Ft!=null?mn!=null&&mn===Ye[Ft]:n.default(Ze.i,we.i),En||Ft!=null&&ne!==1&&Ye[Ft]!=null||de==null&&(de={type:a.ConflictType.DROP_COLLISION,op1:pt(mn!=null?_e[mn]:null,Ae,we),op2:pt(Ft!=null?De[Ft]:null,tt,Ze)})),En||(nt?de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:pt(mn!=null?_e[mn]:null,Ae,we),op2:t.removeOp(nt.getPath())}):(mn!=null?(tr[An]=mn,Qe.write("d",rn.p=An++)):Qe.write("i",r.default(we.i)),ht=!0))}else if(mn!=null&&!rn){const Ft=Ke[mn];Ft&&(nt=Ft.clone())}mn!=null?(pe=_e[mn],je=Ve[mn],tt=ke[mn]):we.i!==void 0&&(pe=je=null,En||(tt=null))}else c(s(pe))&&(pe=je=tt=null);const Mt=s(pe),xt=s(je);if(c(xt)){const mn=xt.p;xt.r!==void 0&&(!Mt||Mt.r===void 0)||Fe[mn]?(tt=null,nt=je.clone()):mn!=null&&(tt=Ee[mn],ne!==1&&Ye[mn]!=null||((Qe=_t[mn])||(Qe=_t[mn]=i.writeCursor()),Qe.reset(),nt=null))}else!d(we)&&d(Ze)&&(tt=null);Ze=tt!=null?tt.getComponent():null;const st=S(we);if(st){const mn=b(we);if(nt)de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:t.editOp(Ae.getPath(),st,mn,!0),op2:t.removeOp(nt.getPath())});else{const rn=S(Ze);let En;if(rn){if(st!==rn)throw Error("Transforming incompatible types");const Ft=b(Ze);En=st.transform(mn,Ft,ie)}else En=r.default(mn);y(Qe,st,En)}}let Be=0,vt=0,qt=0,Lt=0,zt=0,Yt=0,un=pe!=null&&pe.descendFirst(),ir=un;const jr=i.advancer(je,void 0,(mn,rn)=>{c(rn)&&qt++});let ln=tt!=null&&tt.descendFirst(),Nr=ln;for(const mn of Ae)if(typeof mn=="number"){let rn;const En=d(Ae.getComponent()),Ft=mn-vt;{let gi;for(;un&&typeof(gi=pe.getKey())=="number";){gi+=Be;const pi=pe.getComponent(),vi=c(pi);if(gi>Ft||gi===Ft&&(!vi||ne===0&&En))break;if(vi){Be--;const qi=pi.p;Ye.includes(qi),pi.d,s(_t[pi.d]),c(s(_t[pi.d])),(pi.r===void 0||hn&&hn.has(pi))&&(qi==null||!Sn[qi]||ne!==1&&Ye.includes(qi))||zt--}un=pe.nextSibling()}rn=un&&gi===Ft?pe:null}const $r=Ft-Be;let br=jr($r);const Rn=$r-qt;let Qn=null;{let gi,pi;for(;ln&&typeof(gi=tt.getKey())=="number";){pi=gi-Lt;const vi=tt.getComponent(),qi=d(vi);if(pi>Rn)break;if(pi===Rn){if(!qi){Qn=tt;break}{if(ne===0&&En){Qn=tt;break}const Yi=br&&c(br.getComponent());if(ne===0&&Yi)break}}if(qi){const Yi=vi.d;Ye[Yi],vi.i===void 0&&(Fe[Yi]||Ye[Yi]!=null&&ne!==1)?(Fe[Yi]||Ye[Yi]!=null&&ne===0)&&(Lt++,Yt--):Lt++}ln=tt.nextSibling()}}const vr=Rn+Lt+zt+Yt;o(vr>=0,"trying to descend to a negative index"),Qe.descend(vr),En&&(rn=br=Qn=null,vt++),ce(rn,Ae,br,Qn,Qe,nt)&&Yt++,Qe.ascend()}else{let rn;for(;un&&(rn=pe.getKey(),typeof rn!="string"||!(rn>mn||rn===mn));)un=pe.nextSibling();const En=un&&rn===mn?pe:null,Ft=jr(mn);let $r;for(;ln&&($r=tt.getKey(),typeof $r!="string"||!($r>mn||$r===mn));)ln=tt.nextSibling();const br=ln&&$r===mn?tt:null;Qe.descend(mn),ce(En,Ae,Ft,br,Qe,nt),Qe.ascend()}return jr.end(),ir&&pe.ascend(),Nr&&tt.ascend(),ht},"writeOp1Drop")(Ut,Ut.clone(),Jt,Jt.clone(),dn,null),de)return{ok:!1,conflict:de};dn.reset();const en=j((ce,pe,Ae)=>ce.traverse(pe,(je,tt)=>{je.d!=null&&Ae(je.d,ce,tt)}),"eachDrop");(Fe.length||ct.length)&&(en(Jt,dn,(ce,pe,Ae)=>{Fe[ce]&&!He[ce]&&Ae.write("r",!0),ct[ce]&&Ae.mergeTree(ct[ce].get())}),dn.reset());const bt=[],ue=[];if((_t.length||Fe.length)&&!de){const ce=i.readCursor(z(dn.get()));if(en(ce,null,(pe,Ae)=>{bt[pe]=Ae.clone()}),_t.forEach(pe=>{pe&&en(i.readCursor(pe.get()),null,(Ae,je)=>{bt[Ae]=je.clone()})}),j(function pe(Ae,je,tt,Qe,nt,we){const Ze=s(je);if(Ze&&c(Ze))if(Ze.p!=null){const Be=Ze.p;bt[Be].getPath(),tt=bt[Be],Qe=ue[Be]=i.writeCursor()}else Ze.r!==void 0&&(tt=null);else d(s(tt))&&(tt=null);const ht=Ae.getComponent();if(ht){let Be;if((Be=ht.d)!=null){const vt=_t[Be];vt&&(vt.get(),Qe.mergeTree(vt.get()),tt=i.readCursor(vt.get()))}}let pt=0,Mt=0;const xt=i.advancer(je,void 0,(Be,vt)=>{c(vt)&&pt--}),st=i.advancer(tt,(Be,vt)=>d(vt)?-(Be-Mt)-1:Be-Mt,(Be,vt)=>{d(vt)&&Mt++});for(const Be of Ae)if(typeof Be=="number"){const vt=xt(Be),qt=Be+pt,Lt=st(qt),zt=qt+Mt;Qe.descend(zt),pe(Ae,vt,Lt,Qe),Qe.ascend()}else Qe.descend(Be),pe(Ae,xt(Be),st(Be),Qe),Qe.ascend();xt.end(),st.end()},"writeHeldOp2Drop")(Jt,ce,ce.clone(),dn),dn.reset(),de)return{ok:!1,conflict:de};if(dn.get(),ue.length){const pe=ue.map(je=>je?je.get():null),Ae=i.readCursor(z(dn.get()));if(en(Ae,dn,(je,tt,Qe)=>{const nt=pe[je];nt&&(Qe.mergeTree(nt),pe[je]=null)}),pe.find(je=>je)){const je=i.writeCursor(),tt=i.writeCursor();let Qe=0,nt=0;pe.forEach(we=>{we!=null&&en(i.readCursor(we),null,Ze=>{const ht=tr[Ze];je.writeMove(_e[ht].getPath(),Pe[ht].getPath(),Qe++);const pt=Ot[ht];pt&&pt.forEach(Mt=>{Fe[Mt]||ne!==1&&Ye[Mt]!=null||tt.writeMove(De[Mt].getPath(),Ee[Mt].getPath(),nt++)})})}),de={type:a.ConflictType.BLACKHOLE,op1:je.get(),op2:tt.get()}}}}return de?{ok:!1,conflict:de}:{ok:!0,result:dn.get()}}j(F,"tryTransform");const H=j(Y=>{const ae=new Error("Transform detected write conflict");throw ae.conflict=Y,ae.type=ae.name="writeConflict",ae},"throwConflictErr");function W(Y,ae,ie){const ne=F(Y,ae,ie);if(ne.ok)return ne.result;H(ne.conflict)}j(W,"transform");const K=j(Y=>{const ae=i.writeCursor();return i.readCursor(Y).traverse(ae,(ie,ne)=>{(d(ie)||S(ie))&&ne.write("r",!0)}),ae.get()},"opThatRemovesDE"),G=j((Y,ae)=>{const{type:ie,op1:ne,op2:de}=Y;switch(ie){case a.ConflictType.DROP_COLLISION:return ae==="left"?[null,K(de)]:[K(ne),null];case a.ConflictType.RM_UNEXPECTED_CONTENT:let _e=!1;return i.readCursor(ne).traverse(null,Pe=>{Pe.r!==void 0&&(_e=!0)}),_e?[null,K(de)]:[K(ne),null];case a.ConflictType.BLACKHOLE:return[K(ne),K(de)];default:throw Error("Unrecognised conflict: "+ie)}},"resolveConflict");function te(Y,ae,ie,ne){let de=null;for(;;){const _e=F(ae,ie,ne);if(_e.ok)return O(de,_e.result);{const{conflict:Pe}=_e;Y(Pe)||H(Pe);const[De,Ee]=G(Pe,ne);ae=O(M(ae),De),ie=O(M(ie),Ee),de=O(de,Ee)}}}j(te,"transformWithConflictsPred")})(ade);(function(t){var e=cs&&cs.__createBinding||(Object.create?function(a,o,s,l){l===void 0&&(l=s),Object.defineProperty(a,l,{enumerable:!0,get:j(function(){return o[s]},"get")})}:function(a,o,s,l){l===void 0&&(l=s),a[l]=o[s]}),n=cs&&cs.__exportStar||function(a,o){for(var s in a)s!=="default"&&!o.hasOwnProperty(s)&&e(o,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(ade,t);var r=JX;Object.defineProperty(t,"ReadCursor",{enumerable:!0,get:j(function(){return r.ReadCursor},"get")}),Object.defineProperty(t,"WriteCursor",{enumerable:!0,get:j(function(){return r.WriteCursor},"get")});var i=eG;Object.defineProperty(t,"ConflictType",{enumerable:!0,get:j(function(){return i.ConflictType},"get")})})(zu);var kt=(t=>(t.RETAIN="r",t.INSERT="i",t.DELETE="d",t))(kt||{}),Co=(t=>(t.PARAGRAPH="PARAGRAPH",t.SECTION_BREAK="SECTION_BREAK",t.TABLE="TABLE",t.TABLE_ROW="TABLE_ROW",t.TABLE_CELL="TABLE_CELL",t.CUSTOM_BLOCK="CUSTOM_BLOCK",t))(Co||{}),wt=(t=>(t.PARAGRAPH="\r",t.SECTION_BREAK=` |
|
|
`,t.TABLE_START="",t.TABLE_ROW_START="\x1B",t.TABLE_CELL_START="",t.TABLE_CELL_END="",t.TABLE_ROW_END="",t.TABLE_END="",t.CUSTOM_RANGE_START="",t.CUSTOM_RANGE_END="",t.COLUMN_BREAK="\v",t.PAGE_BREAK="\f",t.DOCS_END="\0",t.TAB=" ",t.CUSTOM_BLOCK="\b",t.LETTER="",t.SPACE=" ",t))(wt||{});function OZe(t){return`${t}`}j(OZe,"makeCustomRangeStream");var Er=(t=>(t[t.BULLET=0]="BULLET",t[t.NONE=1]="NONE",t[t.DECIMAL=2]="DECIMAL",t[t.DECIMAL_ZERO=3]="DECIMAL_ZERO",t[t.UPPER_LETTER=4]="UPPER_LETTER",t[t.LOWER_LETTER=5]="LOWER_LETTER",t[t.UPPER_ROMAN=6]="UPPER_ROMAN",t[t.LOWER_ROMAN=7]="LOWER_ROMAN",t[t.ORDINAL=8]="ORDINAL",t[t.CARDINAL_TEXT=9]="CARDINAL_TEXT",t[t.ORDINAL_TEXT=10]="ORDINAL_TEXT",t[t.HEX=11]="HEX",t[t.CHICAGO=12]="CHICAGO",t[t.IDEOGRAPH_DIGITAL=13]="IDEOGRAPH_DIGITAL",t[t.JAPANESE_COUNTING=14]="JAPANESE_COUNTING",t[t.AIUEO=15]="AIUEO",t[t.IROHA=16]="IROHA",t[t.DECIMAL_FULL_WIDTH=17]="DECIMAL_FULL_WIDTH",t[t.DECIMAL_HALF_WIDTH=18]="DECIMAL_HALF_WIDTH",t[t.JAPANESE_LEGAL=19]="JAPANESE_LEGAL",t[t.JAPANESE_DIGITAL_TEN_THOUSAND=20]="JAPANESE_DIGITAL_TEN_THOUSAND",t[t.DECIMAL_ENCLOSED_CIRCLE=21]="DECIMAL_ENCLOSED_CIRCLE",t[t.DECIMAL_FULL_WIDTH2=22]="DECIMAL_FULL_WIDTH2",t[t.AIUEO_FULL_WIDTH=23]="AIUEO_FULL_WIDTH",t[t.IROHA_FULL_WIDTH=24]="IROHA_FULL_WIDTH",t[t.GANADA=25]="GANADA",t[t.CHOSUNG=26]="CHOSUNG",t[t.DECIMAL_ENCLOSED_FULLSTOP=27]="DECIMAL_ENCLOSED_FULLSTOP",t[t.DECIMAL_ENCLOSED_PAREN=28]="DECIMAL_ENCLOSED_PAREN",t[t.DECIMAL_ENCLOSED_CIRCLE_CHINESE=29]="DECIMAL_ENCLOSED_CIRCLE_CHINESE",t[t.IDEOGRAPH_ENCLOSED_CIRCLE=30]="IDEOGRAPH_ENCLOSED_CIRCLE",t[t.IDEOGRAPH_TRADITIONAL=31]="IDEOGRAPH_TRADITIONAL",t[t.IDEOGRAPH_ZODIAC=32]="IDEOGRAPH_ZODIAC",t[t.IDEOGRAPH_ZODIAC_TRADITIONAL=33]="IDEOGRAPH_ZODIAC_TRADITIONAL",t[t.TAIWANESE_COUNTING=34]="TAIWANESE_COUNTING",t[t.IDEOGRAPH_LEGAL_TRADITIONAL=35]="IDEOGRAPH_LEGAL_TRADITIONAL",t[t.TAIWANESE_COUNTING_THOUSAND=36]="TAIWANESE_COUNTING_THOUSAND",t[t.TAIWANESE_DIGITAL=37]="TAIWANESE_DIGITAL",t[t.CHINESE_COUNTING=38]="CHINESE_COUNTING",t[t.CHINESE_LEGAL_SIMPLIFIED=39]="CHINESE_LEGAL_SIMPLIFIED",t[t.CHINESE_COUNTING_THOUSAND=40]="CHINESE_COUNTING_THOUSAND",t[t.KOREAN_DIGITAL=41]="KOREAN_DIGITAL",t[t.KOREAN_COUNTING=42]="KOREAN_COUNTING",t[t.KOREAN_LEGAL=43]="KOREAN_LEGAL",t[t.KOREAN_DIGITAL2=44]="KOREAN_DIGITAL2",t[t.VIETNAMESE_COUNTING=45]="VIETNAMESE_COUNTING",t[t.RUSSIAN_LOWER=46]="RUSSIAN_LOWER",t[t.RUSSIAN_UPPER=47]="RUSSIAN_UPPER",t[t.NUMBER_IN_DASH=48]="NUMBER_IN_DASH",t[t.HEBREW1=49]="HEBREW1",t[t.HEBREW2=50]="HEBREW2",t[t.ARABIC_ALPHA=51]="ARABIC_ALPHA",t[t.ARABIC_ABJAD=52]="ARABIC_ABJAD",t[t.HINDI_VOWELS=53]="HINDI_VOWELS",t[t.HINDI_CONSONANTS=54]="HINDI_CONSONANTS",t[t.HINDI_NUMBERS=55]="HINDI_NUMBERS",t[t.HINDI_COUNTING=56]="HINDI_COUNTING",t[t.THAI_LETTERS=57]="THAI_LETTERS",t[t.THAI_NUMBERS=58]="THAI_NUMBERS",t[t.THAI_COUNTING=59]="THAI_COUNTING",t[t.CUSTOM=60]="CUSTOM",t))(Er||{}),wg=(t=>(t[t.BULLET_ALIGNMENT_UNSPECIFIED=0]="BULLET_ALIGNMENT_UNSPECIFIED",t[t.START=1]="START",t[t.CENTER=2]="CENTER",t[t.END=3]="END",t[t.BOTH=4]="BOTH",t))(wg||{}),cd=(t=>(t[t.HYPERLINK=0]="HYPERLINK",t[t.FIELD=1]="FIELD",t[t.SDT=2]="SDT",t[t.BOOKMARK=3]="BOOKMARK",t[t.COMMENT=4]="COMMENT",t[t.CUSTOM=5]="CUSTOM",t[t.MENTION=6]="MENTION",t[t.UNI_FORMULA=7]="UNI_FORMULA",t))(cd||{}),dde=(t=>(t[t.COMMENT=0]="COMMENT",t))(dde||{}),Gg=(t=>(t[t.TRADITIONAL=0]="TRADITIONAL",t[t.MODERN=1]="MODERN",t))(Gg||{}),Zo=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.LINES=1]="LINES",t[t.LINES_AND_CHARS=2]="LINES_AND_CHARS",t[t.SNAP_TO_CHARS=3]="SNAP_TO_CHARS",t))(Zo||{}),ow=(t=>(t[t.SECTION_TYPE_UNSPECIFIED=0]="SECTION_TYPE_UNSPECIFIED",t[t.CONTINUOUS=1]="CONTINUOUS",t[t.NEXT_PAGE=2]="NEXT_PAGE",t[t.EVEN_PAGE=3]="EVEN_PAGE",t[t.ODD_PAGE=4]="ODD_PAGE",t))(ow||{}),Rv=(t=>(t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED=0]="COLUMN_SEPARATOR_STYLE_UNSPECIFIED",t[t.NONE=1]="NONE",t[t.BETWEEN_EACH_COLUMN=2]="BETWEEN_EACH_COLUMN",t))(Rv||{}),o8=(t=>(t[t.BOTH_SIDES=0]="BOTH_SIDES",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.LARGEST=3]="LARGEST",t))(o8||{}),Sl=(t=>(t[t.INLINE=0]="INLINE",t[t.WRAP_NONE=1]="WRAP_NONE",t[t.WRAP_POLYGON=2]="WRAP_POLYGON",t[t.WRAP_SQUARE=3]="WRAP_SQUARE",t[t.WRAP_THROUGH=4]="WRAP_THROUGH",t[t.WRAP_TIGHT=5]="WRAP_TIGHT",t[t.WRAP_TOP_AND_BOTTOM=6]="WRAP_TOP_AND_BOTTOM",t))(Sl||{}),rd=(t=>(t[t.AUTO=0]="AUTO",t[t.AT_LEAST=1]="AT_LEAST",t[t.EXACT=2]="EXACT",t))(rd||{}),tG=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.SPECIFIED=1]="SPECIFIED",t))(tG||{}),s8=(t=>(t[t.START=0]="START",t[t.CENTER=1]="CENTER",t[t.END=2]="END",t))(s8||{}),sw=(t=>(t[t.NONE=0]="NONE",t[t.WRAP=1]="WRAP",t))(sw||{}),hde=(t=>(t[t.AUTO=0]="AUTO",t[t.AT_LEAST=1]="AT_LEAST",t[t.EXACT=2]="EXACT",t))(hde||{}),A5=(t=>(t.NORMAL="normal",t.BOLD="bold",t.ITALIC="italic",t))(A5||{}),no=(t=>(t[t.PAGE=0]="PAGE",t[t.COLUMN=1]="COLUMN",t[t.CHARACTER=2]="CHARACTER",t[t.MARGIN=3]="MARGIN",t[t.INSIDE_MARGIN=4]="INSIDE_MARGIN",t[t.OUTSIDE_MARGIN=5]="OUTSIDE_MARGIN",t[t.LEFT_MARGIN=6]="LEFT_MARGIN",t[t.RIGHT_MARGIN=7]="RIGHT_MARGIN",t))(no||{}),La=(t=>(t[t.PAGE=0]="PAGE",t[t.PARAGRAPH=1]="PARAGRAPH",t[t.LINE=2]="LINE",t[t.MARGIN=3]="MARGIN",t[t.TOP_MARGIN=4]="TOP_MARGIN",t[t.BOTTOM_MARGIN=5]="BOTTOM_MARGIN",t[t.INSIDE_MARGIN=6]="INSIDE_MARGIN",t[t.OUTSIDE_MARGIN=7]="OUTSIDE_MARGIN",t))(La||{}),fde=(t=>(t[t.POINT=0]="POINT",t[t.LINE=1]="LINE",t[t.CHARACTER=2]="CHARACTER",t[t.PIXEL=3]="PIXEL",t[t.PERCENT=4]="PERCENT",t))(fde||{}),wm=(t=>(t[t.CENTER=0]="CENTER",t[t.INSIDE=1]="INSIDE",t[t.LEFT=2]="LEFT",t[t.OUTSIDE=3]="OUTSIDE",t[t.RIGHT=4]="RIGHT",t[t.BOTH=5]="BOTH",t[t.DISTRIBUTE=6]="DISTRIBUTE",t))(wm||{}),Y3=(t=>(t[t.BOTTOM=0]="BOTTOM",t[t.CENTER=1]="CENTER",t[t.INSIDE=2]="INSIDE",t[t.OUTSIDE=3]="OUTSIDE",t[t.TOP=4]="TOP",t))(Y3||{}),JP=(t=>(t[t.PORTRAIT=0]="PORTRAIT",t[t.LANDSCAPE=1]="LANDSCAPE",t))(JP||{}),Na=(t=>(t.BULLET_LIST="BULLET_LIST",t.BULLET_LIST_1="BULLET_LIST_1",t.BULLET_LIST_2="BULLET_LIST_2",t.BULLET_LIST_3="BULLET_LIST_3",t.BULLET_LIST_4="BULLET_LIST_4",t.BULLET_LIST_5="BULLET_LIST_5",t.ORDER_LIST="ORDER_LIST",t.ORDER_LIST_1="ORDER_LIST_1",t.ORDER_LIST_2="ORDER_LIST_2",t.ORDER_LIST_3="ORDER_LIST_3",t.ORDER_LIST_4="ORDER_LIST_4",t.ORDER_LIST_5="ORDER_LIST_5",t.ORDER_LIST_QUICK_2="ORDER_LIST_QUICK_2",t.ORDER_LIST_QUICK_3="ORDER_LIST_QUICK_3",t.ORDER_LIST_QUICK_4="ORDER_LIST_QUICK_4",t.ORDER_LIST_QUICK_5="ORDER_LIST_QUICK_5",t.ORDER_LIST_QUICK_6="ORDER_LIST_QUICK_6",t.CHECK_LIST="CHECK_LIST",t.CHECK_LIST_CHECKED="CHECK_LIST_CHECKED",t))(Na||{});const Ob={"a)":{glyphFormat:"%1)",glyphType:Er.DECIMAL},"1.":{glyphType:Er.DECIMAL},"a.":{glyphFormat:"%1.",glyphType:Er.LOWER_LETTER},"A.":{glyphType:Er.UPPER_LETTER},"i.":{glyphFormat:"%1.",glyphType:Er.LOWER_ROMAN},"I.":{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER}},g3=j(t=>[...t,...t,...t].map((e,n)=>({glyphFormat:` %${n+1}`,glyphSymbol:e,bulletAlignment:wg.START,textStyle:{fs:12},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*n}}})),"bulletListFactory"),p3=j(t=>t.map((e,n)=>({...e,bulletAlignment:wg.START,textStyle:{fs:12},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*n}}})),"orderListFactory"),zie=j((t,e)=>new Array(9).fill(0).map((n,r)=>({glyphFormat:` %${r+1}`,glyphSymbol:t,bulletAlignment:wg.START,textStyle:{fs:16},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*r},textStyle:e}})),"checkListFactory"),Z0={BULLET_LIST:{listType:"BULLET_LIST",nestingLevel:g3(["●","○","■"])},BULLET_LIST_1:{listType:"BULLET_LIST",nestingLevel:g3(["❖","➢","■"])},BULLET_LIST_2:{listType:"BULLET_LIST",nestingLevel:g3(["✔","●","◆"])},BULLET_LIST_3:{listType:"BULLET_LIST",nestingLevel:g3(["■","◆","○"])},BULLET_LIST_4:{listType:"BULLET_LIST",nestingLevel:g3(["✧","○","■"])},BULLET_LIST_5:{listType:"BULLET_LIST",nestingLevel:g3(["➢","○","◆"])},ORDER_LIST:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.DECIMAL},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.DECIMAL},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.DECIMAL},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_1:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1)",glyphType:Er.DECIMAL},{glyphFormat:"%2)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3)",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4)",glyphType:Er.DECIMAL},{glyphFormat:"%5)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6)",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7)",glyphType:Er.DECIMAL},{glyphFormat:"%8)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9)",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_2:{listType:"ORDER_LIST",nestingLevel:p3(["%1.","%1.%2.","%1.%2.%3.","%1.%2.%3.%4.","%1.%2.%3.%4.%5.","%1.%2.%3.%4.%5.%6.","%1.%2.%3.%4.%5.%6.%7."].map(t=>({glyphFormat:t,glyphType:Er.DECIMAL})))},ORDER_LIST_3:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_4:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%2.",glyphType:Er.DECIMAL},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%5.",glyphType:Er.DECIMAL},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%8.",glyphType:Er.DECIMAL},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_5:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},CHECK_LIST:{listType:"CHECK_LIST",nestingLevel:zie("☐")},CHECK_LIST_CHECKED:{listType:"CHECK_LIST_CHECKED",nestingLevel:zie("☑",{st:{s:at.TRUE}})}},Nb=j(t=>{const{glyphFormat:e,glyphType:n}=t,r=Ie.deepClone(Z0.ORDER_LIST);return r.nestingLevel[0].glyphFormat=e,r.nestingLevel[0].glyphType=n,r},"generateOrderList"),NZe={ORDER_LIST_QUICK_2:Nb(Ob["a)"]),ORDER_LIST_QUICK_3:Nb(Ob["a."]),ORDER_LIST_QUICK_4:Nb(Ob["i."]),ORDER_LIST_QUICK_6:Nb(Ob["I."])};Object.assign(Z0,NZe);const yO={"1.":"ORDER_LIST","a)":"ORDER_LIST_QUICK_2","a.":"ORDER_LIST_QUICK_3","i.":"ORDER_LIST_QUICK_4","A.":"ORDER_LIST_3","I.":"ORDER_LIST_QUICK_6","01.":"ORDER_LIST_5"};function PC(t){const e=[];for(const n of t){const{ed:r,ts:i}=n;if(n.sId===void 0&&delete n.sId,Ie.isEmptyObject(i)&&n.sId==null)continue;if(e.length===0){e.push(n);continue}const a=e.pop();T1e(n,a)&&Ie.hasIntersectionBetweenTwoRanges(a.st,a.ed,n.st,n.ed)?e.push({...n,st:a.st,ed:r}):e.push(a,n)}return e}j(PC,"normalizeTextRuns");function nG(t,e,n,r){var i;const{textRuns:a}=t;if(a==null)return;const o=[],s=a.length;let l=!1;const u=(i=e.textRuns)!=null?i:[];if(u.length)for(const c of u)c.st+=r,c.ed+=r;for(let c=0;c<s;c++){const d=a[c],h=a[c+1],{st:f,ed:m}=d;if(m<r)o.push(d);else if(r>=f&&r<=m){if(h&&h.st===h.ed&&r===h.st){o.push(d);continue}if(l)d.st+=n,d.ed+=n,o.push(d);else{l=!0,d.ed+=n;const g=[];if(u.length){const p={...d,st:f,ed:u[0].st};p.ed>p.st&&g.push(p),g.push(...u);const v=u[u.length-1],_={...d,st:v.ed,ed:m+n};_.ed>_.st&&g.push(_)}else g.push(d);o.push(...g)}}else d.st+=n,d.ed+=n,l||(l=!0,o.push(...u)),o.push(d)}l||(l=!0,o.push(...u)),t.textRuns=PC(o)}j(nG,"insertTextRuns");function eM(t,e,n,r){const{paragraphs:i}=t;if(i==null)return;const{paragraphs:a,dataStream:o}=e,s=[];let l=-1;for(let c=0,d=i.length;c<d;c++){const h=i[c],{startIndex:f}=h;f>=r&&(h.startIndex+=n),l===-1&&f>=r&&(l=c),s.push(h.startIndex)}let u=-1;if(a){for(let c=0,d=a.length;c<d;c++){const h=a[c];h.startIndex+=r;const f=h.startIndex;u=s.indexOf(f)}if(o===wt.PARAGRAPH&&a.length===1){const c=i[l],d=a[0],h=c.paragraphStyle,f=c.bullet;c.paragraphStyle=d.paragraphStyle,c.bullet=d.bullet,d.paragraphStyle=h,d.bullet=f}u!==-1&&i.splice(u,1),i.push(...a),i.sort(K0("startIndex"))}}j(eM,"insertParagraphs");function mde(t,e,n,r){const{sectionBreaks:i}=t;if(i==null)return;for(let o=0,s=i.length;o<s;o++){const l=i[o],{startIndex:u}=l;u>=r&&(l.startIndex+=n)}const a=e.sectionBreaks;if(a){for(let o=0,s=a.length;o<s;o++){const l=a[o];l.startIndex+=r}i.push(...a),i.sort(K0("startIndex"))}}j(mde,"insertSectionBreaks");function rG(t,e,n,r){const{customBlocks:i}=t;if(i==null)return;for(let o=0,s=i.length;o<s;o++){const l=i[o],{startIndex:u}=l;u>=r&&(l.startIndex+=n)}const a=e.customBlocks;if(a){for(let o=0,s=a.length;o<s;o++){const l=a[o];l.startIndex+=r}i.push(...a),i.sort(K0("startIndex"))}}j(rG,"insertCustomBlocks");function iG(t,e,n,r){const{tables:i}=t;if(i==null)return;for(let o=0,s=i.length;o<s;o++){const l=i[o],{startIndex:u,endIndex:c}=l;u>r?(l.startIndex+=n,l.endIndex+=n):c>r&&(l.endIndex+=n)}const a=e.tables;if(a){for(let o=0,s=a.length;o<s;o++){const l=a[o];l.startIndex+=r,l.endIndex+=r}i.push(...a),i.sort(K0("startIndex"))}}j(iG,"insertTables");function aG(t,e,n,r){t.customRanges||(t.customRanges=[]);const{customRanges:i}=t,a={};for(let s=0,l=i.length;s<l;s++){const u=i[s];a[u.rangeId]=u;const{startIndex:c,endIndex:d}=u;c>=r?(u.startIndex+=n,u.endIndex+=n):d>r-1&&(u.endIndex+=n)}if(i.find(s=>s.startIndex>r&&s.endIndex<r))return;const o=[];if(e.customRanges){for(let s=0,l=e.customRanges.length;s<l;s++){const u=e.customRanges[s],c=a[u.rangeId];if(u.startIndex+=r,u.endIndex+=r,c){if(c.startIndex<=u.startIndex&&c.endIndex>=u.endIndex)continue;if(t.dataStream[c.startIndex]===wt.CUSTOM_RANGE_START&&t.dataStream[c.endIndex]===wt.CUSTOM_RANGE_END){o.push(u);continue}if(t.dataStream[c.startIndex]===wt.CUSTOM_RANGE_START){c.endIndex=u.endIndex;continue}if(t.dataStream[c.endIndex]===wt.CUSTOM_RANGE_END){c.startIndex=u.startIndex;continue}}o.push(u)}i.push(...o),i.sort(K0("startIndex"))}}j(aG,"insertCustomRanges");function gde(t){t.sort((r,i)=>r.startIndex-i.startIndex);const e=[];let n=t[0];for(let r=1;r<t.length;r++)n.endIndex+1>=t[r].startIndex?n.endIndex=Math.max(n.endIndex,t[r].endIndex):(e.push(n),n=t[r]);return e.push(n),e}j(gde,"mergeRanges");function pde(t){const e={};for(let n=0,r=t.length;n<r;n++){const i=t[n],a=e[i.id];e[i.id]=[...a??[],i]}return Object.keys(e).forEach(n=>{const r=e[n],i=gde(r);e[n]=i}),Object.values(e).flat()}j(pde,"mergeDecorations");function oG(t,e,n,r){t.customDecorations||(t.customDecorations=[]);const{customDecorations:i}=t;if(n>0)for(let a=0,o=i.length;a<o;a++){const s=i[a],{startIndex:l,endIndex:u}=s;l>=r?(s.startIndex+=n,s.endIndex+=n):u>r-1&&(s.endIndex+=n)}if(e.customDecorations){const a=[];for(let o=0,s=e.customDecorations.length;o<s;o++){const l=e.customDecorations[o];a.push(l),l.startIndex+=r,l.endIndex+=r}i.push(...a),t.customDecorations=pde(i),t.customDecorations.sort(K0("startIndex"))}}j(oG,"insertCustomDecorations");function sG(t,e,n){var r;const{textRuns:i}=t,a=n,o=n+e,s=[];if(a===o&&i!=null&&i.find(l=>l.st===n&&l.ed===n)){const l=i.find(u=>u.st===n&&u.ed===n);return s.push({...l,st:l.st-n,ed:l.ed-n}),t.textRuns=(r=t.textRuns)==null?void 0:r.filter(u=>u!==l),s}if(i){const l=[];for(let u=0,c=i.length;u<c;u++){const d=i[u],{st:h,ed:f}=d;if(a<=h&&o>=f)if(s.push({...d,st:h-a,ed:f-a}),a===h)d.ed=h;else continue;else h<=a&&f>=o?(s.push({...d,st:a-a,ed:o-a}),d.ed-=e):a>=h&&a<f?(s.push({...d,st:a-a,ed:f-a}),d.ed=a):o>h&&o<=f?(s.push({...d,st:h-a,ed:o-a}),d.st=o-e,d.ed-=e):h>=o&&(d.st-=e,d.ed-=e);l.push(d)}t.textRuns=l}return s.length===0&&s.push({st:0,ed:e,ts:{}}),s}j(sG,"deleteTextRuns");function lG(t,e,n){const{paragraphs:r}=t,i=n,a=n+e,o=[];if(r){const s=[];for(let l=0,u=r.length;l<u;l++){const c=r[l],{startIndex:d}=c;if(d>=i&&d<a){o.push({...c,startIndex:d-n});continue}else d>=a&&(c.startIndex-=e);s.push(c)}t.paragraphs=s}return o}j(lG,"deleteParagraphs");function uG(t,e,n){const{sectionBreaks:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l<u;l++){const c=r[l],{startIndex:d}=c;if(d>=i&&d<=a){o.push({...c,startIndex:d-n});continue}else d>a&&(c.startIndex-=e);s.push(c)}t.sectionBreaks=s}return o}j(uG,"deleteSectionBreaks");function cG(t,e,n){const{customBlocks:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l<u;l++){const c=r[l],{startIndex:d}=c;if(d>=i&&d<=a){o.push({...c,startIndex:d-n});continue}else d>a&&(c.startIndex-=e);s.push(c)}t.customBlocks=s}return o}j(cG,"deleteCustomBlocks");function dG(t,e,n){const{tables:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l<u;l++){const c=r[l],{startIndex:d,endIndex:h}=c;if(i<=d&&a>=h){o.push({...c,startIndex:d-n,endIndex:h-n});continue}else if(d<=i&&h>=a){const f=IC(d,h,i,a);if(c.startIndex=f[0],c.endIndex=f[1],c.startIndex===c.endIndex)continue}else a<d&&(c.startIndex-=e,c.endIndex-=e);s.push(c)}t.tables=s}return o}j(dG,"deleteTables");function hG(t,e,n){const{customRanges:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l<u;l++){const c=r[l],{startIndex:d,endIndex:h}=c;if(i<=d&&a>=d){o.push({...c,startIndex:d-n,endIndex:h-n});continue}else if(d<=i&&h>=a){const f=IC(d,h,i,a);c.startIndex=f[0],c.endIndex=f[1]}else a<d&&(c.startIndex-=e,c.endIndex-=e);s.push(c)}t.customRanges=s}return o}j(hG,"deleteCustomRanges");function fG(t,e,n,r=!0){const{customDecorations:i}=t,a=n,o=n+e-1,s=[];if(i){const l=[];for(let u=0,c=i.length;u<c;u++){const d=i[u],{startIndex:h,endIndex:f}=d;if(h>=a&&f<=o){s.push(d);continue}else if(Math.max(a,h)<=Math.min(o,f)){const m=IC(h,f,a,o);d.startIndex=m[0],d.endIndex=m[1]}else o<h&&r&&(d.startIndex-=e,d.endIndex-=e);l.push(d)}t.customDecorations=l}return s}j(fG,"deleteCustomDecorations");function vde(t,e,n,r,i){const a=_de(t,e,n,r,i),o=Cde(t,e,n,r,i),s=Sde(t,e,n,r,i),l=bde(t,e,n,r,i),u=yde(t,e,n,r,i),c=Ede(t,e,n,r,i),d=Rde(t,e,n,r,i);return{dataStream:"",textRuns:a,paragraphs:o,sectionBreaks:s,customBlocks:l,tables:u,customRanges:c,customDecorations:d}}j(vde,"updateAttribute");function _de(t,e,n,r,i){const{textRuns:a}=t,{textRuns:o}=e;if(a==null||o==null)return;const s=sG(t,n,r);if(i!==go.REPLACE){const l=mG(o,s,i);e.textRuns=l}return nG(t,e,n,r),s}j(_de,"updateTextRuns");function mG(t,e,n){if(e.length===0)return t;t=Ie.deepClone(t),e=Ie.deepClone(e);const r=[],i=t.length,a=e.length;let o=0,s=0,l=null;function u(){return l?(r.push(l),l=null,!0):!1}for(j(u,"pushPendingAndReturnStatus");o<i&&s<a;){const{st:f,ed:m,ts:g}=t[o],{st:p,ed:v,ts:_,sId:C}=e[s];let S;if(n===go.COVER?S={..._,...g}:S={...g,..._},m<p)u()||r.push(t[o]),o++;else if(v<f)u()||r.push(e[s]),s++;else{const b={st:Math.min(f,p),ed:Math.max(f,p),ts:f<p?{...g}:{..._},sId:f<p?void 0:C};b.ed>b.st&&r.push(b),r.push({st:Math.max(f,p),ed:Math.min(m,v),ts:S,sId:C}),m<v?(o++,e[s].st=m,e[s].st===e[s].ed&&s++):(s++,t[o].st=v,t[o].st===t[o].ed&&o++);const y={st:Math.min(m,v),ed:Math.max(m,v),ts:m<v?{..._}:{...g},sId:m<v?C:void 0};l=y.ed>y.st?y:null}}u();const c=r[r.length-1],d=t[i-1],h=e[a-1];return c&&c.ed!==Math.max(d.ed,h.ed)&&(d.ed>h.ed?r.push(d):r.push(h)),PC(r)}j(mG,"coverTextRuns");function Cde(t,e,n,r,i){const{paragraphs:a}=t,{paragraphs:o}=e;if(a==null||o==null)return;const s=lG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c,paragraphStyle:d,bullet:h}=u;let f=[];for(const m of s){const{startIndex:g,paragraphStyle:p,bullet:v}=m;let _,C;if(i===go.COVER?(_={...p,...d},C={listId:"",listType:Na.BULLET_LIST,nestingLevel:0,textStyle:{},...v,...h}):(_={...d,...p},C={listId:"",listType:Na.BULLET_LIST,nestingLevel:0,textStyle:{},...h,...v}),c===g){f.push({startIndex:c,paragraphStyle:_,bullet:C});break}}l.push(...f),f=[]}e.paragraphs=l}return eM(t,e,n,r),s}j(Cde,"updateParagraphs");function Sde(t,e,n,r,i){const{sectionBreaks:a}=t,{sectionBreaks:o}=e;if(a==null||o==null)return;const s=uG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c}=u;let d=[];for(const h of s){const{startIndex:f}=h;if(c===f){i===go.COVER?d.push({...h,...u}):d.push({...u,...h});break}}l.push(...d),d=[]}e.sectionBreaks=l}return eM(t,e,n,r),s}j(Sde,"updateSectionBreaks");function bde(t,e,n,r,i){const{customBlocks:a}=t,{customBlocks:o}=e;if(a==null||o==null)return;const s=cG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c}=u;let d=[];for(const h of s){const{startIndex:f}=h;if(c===f){i===go.COVER?d.push({...h,...u}):d.push({...u,...h});break}}l.push(...d),d=[]}e.customBlocks=l}return rG(t,e,n,r),s}j(bde,"updateCustomBlocks");function yde(t,e,n,r,i){const{tables:a}=t,{tables:o}=e;if(a==null||o==null)return;const s=dG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c,endIndex:d}=u;let h=[];for(const f of s){const{startIndex:m,endIndex:g}=f;if(m>=c&&g<=d){i===go.COVER?h.push({...f,...u}):h.push({...u,...f});break}}l.push(...h),h=[]}e.tables=l}return iG(t,e,n,r),s}j(yde,"updateTables");function Ede(t,e,n,r,i){t.customRanges||(t.customRanges=[]);const{customRanges:a}=t,{customRanges:o}=e;if(a==null||o==null)return;let s=[];return i===go.REPLACE&&(s=hG(t,n,r)),aG(t,e,0,r),s}j(Ede,"updateCustomRanges");function Rde(t,e,n,r,i){t.customDecorations||(t.customDecorations=[]);let a=[];return i===go.REPLACE&&(a=fG(t,n,r,!1)),oG(t,e,0,r),a}j(Rde,"updateCustomDecorations");var lw=(t=>(t[t.copy=0]="copy",t[t.cut=1]="cut",t))(lw||{});function S0(t,e,n,r=!1,i=1){const{dataStream:a,textRuns:o=[],paragraphs:s=[],customBlocks:l=[],tables:u=[]}=t,c={dataStream:a.slice(e,n)},d=[];for(const p of o){const v=Ie.deepClone(p),{st:_,ed:C}=v;Ie.hasIntersectionBetweenTwoRanges(_,C,e,n)&&(e>=_&&e<=C?d.push({...v,st:e,ed:Math.min(n,C)}):n>=_&&n<=C?d.push({...v,st:Math.max(e,_),ed:n}):d.push(v))}d.length?c.textRuns=d.map(p=>{const{st:v,ed:_}=p;return{...p,st:v-e,ed:_-e}}):r&&(c.textRuns=[{st:0,ed:n-e,ts:{}}]);const h=[];for(const p of u){const v=Ie.deepClone(p),{startIndex:_,endIndex:C}=v;_>=e&&C<=n&&h.push({...v,startIndex:_-e,endIndex:C-e})}h.length&&(c.tables=h);const f=[];for(const p of s){const{startIndex:v}=p;v>=e&&v<=n&&f.push(Ie.deepClone(p))}f.length&&(c.paragraphs=f.map(p=>({...p,startIndex:p.startIndex-e}))),i===1&&(c.customDecorations=vG(t,e,n));const{customRanges:m}=pG(t,e,n);c.customRanges=m;const g=[];for(const p of l){const{startIndex:v}=p;v>=e&&v<=n&&g.push(Ie.deepClone(p))}return g.length&&(c.customBlocks=g.map(p=>({...p,startIndex:p.startIndex-e}))),c}j(S0,"getBodySlice");function gG(t){const{dataStream:e,textRuns:n,paragraphs:r,customRanges:i,customDecorations:a,tables:o}=t;let s=0,l=0;i==null||i.forEach(c=>{c.startIndex<0&&(s=Math.max(s,-c.startIndex)),c.endIndex>e.length-1&&(l=Math.max(l,c.endIndex-e.length+1))});const u=`${wt.CUSTOM_RANGE_START.repeat(s)}${e}${wt.CUSTOM_RANGE_END.repeat(l)}`;return n&&(n[0]&&(n[0].st=n[0].st-s),n[n.length-1]&&(n[n.length-1].ed=n[n.length-1].ed+l)),n==null||n.forEach(c=>{c.st+=s,c.ed+=s}),r==null||r.forEach(c=>{c.startIndex+=s}),i==null||i.forEach(c=>{c.startIndex+=s,c.endIndex+=s}),a==null||a.forEach(c=>{c.startIndex+=s,c.endIndex+=l}),o==null||o.forEach(c=>{c.startIndex+=s,c.endIndex+=l}),{...t,dataStream:u,textRuns:n,paragraphs:r,customRanges:i,customDecorations:a,tables:o}}j(gG,"normalizeBody");function pG(t,e,n){const{customRanges:r=[]}=t;let i=0,a=0;const o=r.filter(s=>Math.max(s.startIndex,e)<=Math.min(s.endIndex,n-1)).map(s=>({...s,startIndex:s.startIndex,endIndex:s.endIndex}));if(o.length){o.forEach(s=>{s.startIndex<e&&(i+=1),s.endIndex>n-1&&(a+=1)});for(let s=0;s<i;s++){const l=o[s];l.startIndex=e-i+s}if(a){const s=[...o].sort((l,u)=>u.endIndex-l.endIndex);for(let l=0;l<a;l++){const u=s[l];u.endIndex=n+a-l-1}}}return{customRanges:o.map(s=>({...s,startIndex:s.startIndex-e,endIndex:s.endIndex-e})),leftOffset:i,rightOffset:a}}j(pG,"getCustomRangeSlice");function vG(t,e,n){const{customDecorations:r=[]}=t,i=[];return r.forEach(a=>{if(Math.max(a.startIndex,e)<=Math.min(a.endIndex,n-1)){const o=Ie.deepClone(a);i.push({...o,startIndex:Math.max(o.startIndex-e,0),endIndex:Math.min(o.endIndex,n)-e})}}),i}j(vG,"getCustomDecorationSlice");function PH(t,e,n=go.COVER){if(e.dataStream!=="")throw new Error("Cannot compose other body with non-empty dataStream");const r={dataStream:t.dataStream},{textRuns:i=[],paragraphs:a=[]}=t,{textRuns:o=[],paragraphs:s=[]}=e,l=mG(o,i,n);l.length&&(r.textRuns=l);const u=[];let c=0,d=0;for(;c<a.length&&d<s.length;){const h=a[c],f=s[d],{startIndex:m}=h,{startIndex:g}=f;m===g?(u.push(Ie.deepMerge(h,f)),c++,d++):m<g?(u.push(Ie.deepClone(h)),c++):(u.push(Ie.deepClone(f)),d++)}return c<a.length&&u.push(...a.slice(c)),d<s.length&&u.push(...s.slice(d)),u.length&&(r.paragraphs=u),r}j(PH,"composeBody");function Ade(t){const{body:e}=t;if(e==null)return!0;const{textRuns:n=[],paragraphs:r=[]}=e;return n.length===0&&r.length===0}j(Ade,"isUselessRetainAction");const wde=class{constructor(e){Xe(this,"_index",0),Xe(this,"_offset",0),this._actions=e}hasNext(){return this.peekLength()<Number.POSITIVE_INFINITY}next(e){e||(e=Number.POSITIVE_INFINITY);const n=this._actions[this._index];if(n){const r=this._offset,i=n.len;return e>=i-r?(e=i-r,this._index+=1,this._offset=0):this._offset+=e,n.t===kt.DELETE||n.t===kt.RETAIN&&n.body==null?Ie.deepClone({...n,len:e}):Ie.deepClone({...n,len:e,body:S0(n.body,r,r+e)})}else return{t:kt.RETAIN,len:Number.POSITIVE_INFINITY}}peek(){return this._actions[this._index]}peekLength(){return this._actions[this._index]?this._actions[this._index].len-this._offset:Number.POSITIVE_INFINITY}peekType(){const e=this._actions[this._index];return e?e.t:kt.RETAIN}rest(){if(this.hasNext()){if(this._offset===0)return this._actions.slice(this._index);{const e=this._offset,n=this._index,r=this.next(),i=this._actions.slice(this._index);return this._offset=e,this._index=n,[r].concat(i)}}else return[]}};j(wde,"ActionIterator");let D9=wde;function Dde(t,e,n){const{dataStream:r}=t,i=n,a=n+e,o=sG(t,e,n),s=lG(t,e,n),l=uG(t,e,n),u=cG(t,e,n),c=dG(t,e,n),d=hG(t,e,n),h=fG(t,e,n);let f="";return r&&(t.dataStream=zX(r,i,a),f=r.slice(i,a)),{dataStream:f,textRuns:o,paragraphs:s,sectionBreaks:l,customBlocks:u,tables:c,customRanges:d,customDecorations:h}}j(Dde,"updateAttributeByDelete");function _G(t,e,n,r){t.dataStream=WX(t.dataStream,r,e.dataStream),nG(t,e,n,r),eM(t,e,n,r),mde(t,e,n,r),rG(t,e,n,r),iG(t,e,n,r),aG(t,e,n,r),oG(t,e,n,r)}j(_G,"updateAttributeByInsert");function Ide(t,e,n,r,i=go.COVER){return vde(t,e,n,r,i)}j(Ide,"updateApply");function Pde(t,e,n){return e<=0?{dataStream:""}:Dde(t,e,n)}j(Pde,"deleteApply");function Mde(t,e,n,r){n!==0&&_G(t,e,n,r)}j(Mde,"insertApply");function Tde(t,e){const n=new bd;return n.reset(),e.forEach(r=>{const i=Ie.deepClone(r);switch(i.t){case kt.RETAIN:{const{coverType:a,body:o,len:s}=i;o!=null&&Ide(t,o,s,n.cursor,a),n.moveCursor(s);break}case kt.INSERT:{const{body:a,len:o}=i;Mde(t,a,o,n.cursor),n.moveCursor(o);break}case kt.DELETE:{const{len:a}=i;Pde(t,a,n.cursor);break}default:throw new Error(`Unknown action type for action: ${i}.`)}}),t}j(Tde,"textXApply");function MH(t,e,n){if(t.length===0)return e;e=Ie.deepClone(e),t=Ie.deepClone(t);const r=[],i=e.length,a=t.length;let o=0,s=0,l=null;function u(){return l?(r.push(l),l=null,!0):!1}for(j(u,"pushPendingAndReturnStatus");o<i&&s<a;){const{st:f,ed:m,ts:g}=e[o],{st:p,ed:v,ts:_,sId:C}=t[s];let S={};if(n===0)S={...g};else if(S={...g},_){const b=Object.keys(_);for(const y of b)S[y]&&delete S[y]}if(m<p)u()||r.push(e[o]),o++;else if(v<f)u()||r.push(t[s]),s++;else{const b={st:Math.min(f,p),ed:Math.max(f,p),ts:f<p?{...g}:{..._}};b.ed>b.st&&r.push(),r.push({st:Math.max(f,p),ed:Math.min(m,v),ts:S,sId:C}),m<v?(o++,t[s].st=m,t[s].st===t[s].ed&&s++):(s++,e[o].st=v,e[o].st===e[o].ed&&o++);const y={st:Math.min(m,v),ed:Math.max(m,v),ts:m<v?{..._}:{...g},sId:m<v?C:void 0};l=y.ed>y.st?y:null}}u();const c=r[r.length-1],d=e[i-1],h=t[a-1];return c.ed!==Math.max(d.ed,h.ed)&&(d.ed>h.ed?r.push(d):r.push(h)),PC(r)}j(MH,"transformTextRuns");function TH(t,e,n){const r={startIndex:e.startIndex};if(e.paragraphStyle){if(t.paragraphStyle==null)r.paragraphStyle={...e.paragraphStyle};else if(r.paragraphStyle={...e.paragraphStyle},n===1){const i=Object.keys(t.paragraphStyle);for(const a of i)r.paragraphStyle[a]&&delete r.paragraphStyle[a]}}return e.bullet&&(t.bullet==null||n===0)&&(r.bullet={...e.bullet}),r}j(TH,"transformParagraph");function Lde(t,e,n=!1){const{body:r}=t,{body:i}=e;if(r==null||r.dataStream!==""||i==null||i.dataStream!=="")throw new Error("Data stream is not supported in transform.");const a={dataStream:""},{textRuns:o=[],paragraphs:s=[]}=r,{textRuns:l=[],paragraphs:u=[]}=i;let c=[];n?c=MH(o,l,1):c=MH(o,l,0),c.length&&(a.textRuns=c);const d=[];let h=0,f=0;for(;h<s.length&&f<u.length;){const m=s[h],g=u[f],{startIndex:p}=m,{startIndex:v}=g;if(p===v){let _={startIndex:p};n?_=TH(m,g,1):_=TH(m,g,0),d.push(_),h++,f++}else p<v?h++:(d.push(Ie.deepClone(g)),f++)}return f<u.length&&d.push(...u.slice(f)),d.length&&(a.paragraphs=d),a}j(Lde,"transformBody");function LH(t){return Object.keys(t).length===1}j(LH,"onlyHasDataStream");const pE=class xH{constructor(){Xe(this,"_actions",[])}static apply(e,n){return Tde(e,n)}static compose(e,n){const r=new D9(e),i=new D9(n),a=new xH;for(;r.hasNext()||i.hasNext();)if(i.peekType()===kt.INSERT)a.push(i.next());else if(r.peekType()===kt.DELETE)a.push(r.next());else{const o=Math.min(r.peekLength(),i.peekLength()),s=r.next(o),l=i.next(o);s.t===kt.INSERT&&l.t===kt.RETAIN?l.body==null?a.push(s):a.push({...s,body:PH(s.body,l.body,l.coverType)}):s.t===kt.RETAIN&&l.t===kt.RETAIN?s.body==null&&l.body==null?a.push(s.len!==Number.POSITIVE_INFINITY?s:l):s.body&&l.body?a.push({...s,body:PH(s.body,l.body,l.coverType)}):a.push(s.body?s:l):s.t===kt.RETAIN&&l.t===kt.DELETE?a.push(l):s.t===kt.INSERT&&(l.t,kt.DELETE)}return a.trimEndUselessRetainAction(),a.serialize()}static transform(e,n,r="right"){return this._transform(n,e,r==="left"?"right":"left")}static _transform(e,n,r="right"){var i;const a=new D9(e),o=new D9(n),s=new xH;for(;a.hasNext()||o.hasNext();)if(a.peekType()===kt.INSERT&&(r==="left"||o.peekType()!==kt.INSERT)){const l=a.next();s.retain(l.len,(i=l.segmentId)!=null?i:"")}else if(o.peekType()===kt.INSERT)s.push(o.next());else{const l=Math.min(a.peekLength(),o.peekLength()),u=a.next(l),c=o.next(l);if(u.t===kt.DELETE)continue;if(c.t===kt.DELETE){s.push(c);continue}u.body==null||c.body==null?s.push(c):s.push({...c,body:Lde(u,c,r==="left")})}return s.trimEndUselessRetainAction(),s.serialize()}static transformPosition(e,n,r=!1){const i=new D9(e);let a=0;for(;i.hasNext()&&a<=n;){const o=i.peekLength(),s=i.peekType();if(i.next(),s===kt.DELETE){n-=Math.min(o,n-a);continue}else s===kt.INSERT&&(a<n||!r)&&(n+=o);a+=o}return n}static isNoop(e){return e.length===0}static invert(e){const n=[];for(const r of e)if(r.t===kt.INSERT)n.push({t:kt.DELETE,len:r.len,line:0,body:r.body,segmentId:r.segmentId});else if(r.t===kt.DELETE){if(r.body==null)throw new Error("Can not invert DELETE action without body property, makeInvertible must be called first.");n.push({t:kt.INSERT,body:r.body,len:r.len,line:0,segmentId:r.segmentId})}else if(r.body!=null){if(r.oldBody==null)throw new Error("Can not invert RETAIN action without oldBody property, makeInvertible must be called first.");n.push({t:kt.RETAIN,body:r.oldBody,oldBody:r.body,len:r.len,coverType:go.REPLACE,segmentId:r.segmentId})}else n.push(r);return n}static makeInvertible(e,n){const r=[];let i=0;for(const a of e){if(a.t===kt.DELETE&&a.body==null){const o=S0(n,i,i+a.len,!1);a.len=o.dataStream.length,a.body=o}if(a.t===kt.RETAIN&&a.body!=null){const o=S0(n,i,i+a.len,!0);a.oldBody={...o,dataStream:""},a.len=o.dataStream.length}r.push(a),a.t!==kt.INSERT&&(i+=a.len)}return r}insert(e,n,r=""){const i={t:kt.INSERT,body:n,len:e,line:0,segmentId:r};return this.push(i),this}retain(e,n="",r,i){const a={t:kt.RETAIN,len:e,segmentId:n};return r!=null&&(a.body=r),i!=null&&(a.coverType=i),this.push(a),this}delete(e,n=""){const r={t:kt.DELETE,len:e,line:0,segmentId:n};return this.push(r),this}empty(){return this._actions=[],this}serialize(){return this._actions}push(...e){if(e.length>1){for(const a of e)this.push(a);return this}let n=this._actions.length,r=this._actions[n-1];const i=Ie.deepClone(e[0]);if(i.t===kt.RETAIN&&i.len===0&&i.body==null)return this;if(typeof r=="object"){if(r.t===kt.DELETE&&i.t===kt.DELETE)return r.len+=i.len,this;if(r.t===kt.DELETE&&i.t===kt.INSERT&&(n-=1,r=this._actions[n-1],r==null))return this._actions.unshift(i),this;if(r.t===kt.RETAIN&&i.t===kt.RETAIN&&r.body==null&&i.body==null)return r.len+=i.len,this;if(r.t===kt.INSERT&&LH(r.body)&&i.t===kt.INSERT&&LH(i.body))return r.len+=i.len,r.body.dataStream+=i.body.dataStream,this}return n===this._actions.length?this._actions.push(i):this._actions.splice(n,0,i),this}trimEndUselessRetainAction(){let e=this._actions[this._actions.length-1];for(;e&&e.t===kt.RETAIN&&Ade(e);)this._actions.pop(),e=this._actions[this._actions.length-1];return this}};j(pE,"TextX"),Xe(pE,"id","text-x"),Xe(pE,"uri","https://github.com/dream-num/univer#text-x");let Vi=pE;Object.defineProperty(Vi,"name",{value:"text-x"});const w5=class xde{static registerSubtype(e){var n;e==null||this._subTypes.has(e.name)&&((n=this._subTypes.get(e.name))==null?void 0:n.id)!==Vi.id||(this._subTypes.set(e.name,e),zu.type.registerSubtype(e))}static apply(e,n){if(!zu.type.isNoop(n))return zu.type.apply(e,n)}static compose(e,n){return zu.type.compose(e,n)}static transform(e,n,r){return zu.type.transform(e,n,r)}static transformPosition(e,n,r="right"){return e&&e.length===2&&e[0]==="body"&&e[1].et===Vi.name?Vi.transformPosition(e[1].e,n,r==="left"):n}static invertWithDoc(e,n){return zu.type.invertWithDoc(e,n)}static isNoop(e){return zu.type.isNoop(e)}static getInstance(){return this._instance==null&&(this._instance=new xde),this._instance}removeOp(e,n){return zu.removeOp(e,n)}moveOp(e,n){return zu.moveOp(e,n)}insertOp(e,n){return zu.insertOp(e,n)}replaceOp(e,n,r){return zu.replaceOp(e,n,r)}editOp(e,n=["body"]){return zu.editOp(n,Vi.name,e)}};j(w5,"JSONX"),Xe(w5,"uri","https://github.com/dream-num/univer#json-x"),Xe(w5,"_subTypes",new Map),Xe(w5,"_instance",null);let Ir=w5;Ir.registerSubtype(Vi);const Ode={id:"default_doc",documentStyle:{}},Nde=class extends QX{constructor(e){var n;super(),Xe(this,"type",le.UNIVER_DOC),Xe(this,"_name$",new Pn("")),Xe(this,"name$",this._name$.asObservable()),Xe(this,"snapshot"),this.snapshot={...Ode,...e},this._name$.next((n=this.snapshot.title)!=null?n:"No Title")}getUnitId(){throw new Error("Method not implemented.")}getRev(){var e;return(e=this.snapshot.rev)!=null?e:1}incrementRev(){this.snapshot.rev=this.getRev()+1}setRev(e){this.snapshot.rev=e}setName(e){this.snapshot.title=e,this._name$.next(e)}get drawings(){return this.snapshot.drawings}get documentStyle(){return this.snapshot.documentStyle}get lists(){return this.snapshot.lists}get zoomRatio(){var e;return((e=this.snapshot.settings)==null?void 0:e.zoomRatio)||1}resetDrawing(e,n){this.snapshot.drawings=e,this.snapshot.drawingsOrder=n}getBody(){return this.snapshot.body}getSnapshot(){return this.snapshot}getBulletPresetList(){var e;const n=(e=this.snapshot.lists)!=null?e:{};return{...Z0,...n}}updateDocumentId(e){this.snapshot.id=e}updateDocumentRenderConfig(e){const{documentStyle:n}=this.snapshot;n.renderConfig==null?n.renderConfig=e:n.renderConfig={...n.renderConfig,...e}}updateDocumentStyle(e){this.snapshot.documentStyle==null?this.snapshot.documentStyle=e:this.snapshot.documentStyle={...this.snapshot.documentStyle,...e}}updateDocumentDataMargin(e){const{t:n,l:r,b:i,r:a}=e,{documentStyle:o}=this.snapshot;n!=null&&(o.marginTop=n),r!=null&&(o.marginLeft=r),i!=null&&(o.marginBottom=i),a!=null&&(o.marginRight=a)}updateDocumentDataPageSize(e,n){const{documentStyle:r}=this.snapshot;if(!r.pageSize){e=e??Number.POSITIVE_INFINITY,n=n??Number.POSITIVE_INFINITY,r.pageSize={width:e,height:n};return}e!==void 0&&(r.pageSize.width=e),n!==void 0&&(r.pageSize.height=n)}updateDrawing(e,n){const{drawings:r}=this,{width:i,height:a,left:o,top:s}=n,l=r==null?void 0:r[e];if(!l)return;const u=l.docTransform;u.size.width=i,u.size.height=a,u.positionH.posOffset=o,u.positionV.posOffset=s}setZoomRatio(e=1){this.snapshot.settings==null?this.snapshot.settings={zoomRatio:e}:this.snapshot.settings.zoomRatio=1}};j(Nde,"DocumentDataModelSimple");let kZe=Nde;const kde=class OH extends kZe{constructor(e){var n,r;super(Ie.isEmptyObject(e)?ide():e),Xe(this,"_unitId"),Xe(this,"headerModelMap",new Map),Xe(this,"footerModelMap",new Map);const i=6;this._unitId=(n=this.snapshot.id)!=null?n:Ie.generateRandomId(i),this._initializeHeaderFooterModel(),this._name$.next((r=this.snapshot.title)!=null?r:"")}dispose(){super.dispose(),this.headerModelMap.forEach(e=>{e.dispose()}),this.footerModelMap.forEach(e=>{e.dispose()}),this._name$.complete()}getDrawings(){return this.snapshot.drawings}getDrawingsOrder(){return this.snapshot.drawingsOrder}getCustomRanges(){var e;return(e=this.snapshot.body)==null?void 0:e.customRanges}getCustomDecorations(){var e;return(e=this.snapshot.body)==null?void 0:e.customDecorations}getSettings(){return this.snapshot.settings}reset(e){if(e.id&&e.id!==this._unitId)throw new Error("Cannot reset a document model with a different unit id!");this.snapshot={...Ode,...e},this._initializeHeaderFooterModel()}getSelfOrHeaderFooterModel(e){if(e!=null){if(this.headerModelMap.has(e))return this.headerModelMap.get(e);if(this.footerModelMap.has(e))return this.footerModelMap.get(e)}return this}getUnitId(){return this._unitId}apply(e){if(!Ir.isNoop(e))return this.snapshot=Ir.apply(this.snapshot,e),e!=null&&e.some(n=>Array.isArray(n)&&((n==null?void 0:n[0])==="headers"||(n==null?void 0:n[0])==="footers"))&&(this.headerModelMap.clear(),this.footerModelMap.clear(),this._initializeHeaderFooterModel()),this.snapshot}sliceBody(e,n,r=lw.copy){const i=this.getBody();if(i!=null)return S0(i,e,n,!1,r)}_initializeHeaderFooterModel(){const{headers:e,footers:n}=this.getSnapshot();if(e)for(const r in e){const i=e[r];this.headerModelMap.set(r,new OH(i)),this.headerModelMap.get(r).updateDocumentId(this.getUnitId())}if(n)for(const r in n){const i=n[r];this.footerModelMap.set(r,new OH(i)),this.footerModelMap.get(r).updateDocumentId(this.getUnitId())}}updateDocumentId(e){super.updateDocumentId(e),this._unitId=e}};j(kde,"DocumentDataModel");let sh=kde;function C4(t){return t===wt.CUSTOM_RANGE_END||t===wt.CUSTOM_RANGE_START}j(C4,"isCustomRangeSplitSymbol");function MC(t,e,n,r){return t<=n&&e>=n||t>=n&&t<=r}j(MC,"isIntersecting");function tM(t,e,n,r){const i=r.slice(n.startIndex+1,n.endIndex),a=Math.max(t-(n.startIndex+1),0),o=t+e-1-(n.startIndex+1);if(o<0)return!1;if(a===0&&o>=i.length)return!0;const s=i.slice(0,a)+i.slice(a+e);for(let l=0,u=s.length;l<u;l++){const c=s[l];if(!C4(c))return!1}return!0}j(tM,"shouldDeleteCustomRange");function Fde(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const a=e[r];t.collapsed?a.startIndex<t.startOffset&&t.startOffset<=a.endIndex&&n.push(a):MC(t.startOffset,t.endOffset,a.startIndex,a.endIndex)&&n.push(a)}return n}j(Fde,"getCustomRangesInterestsWithRange");function Vde(t){return{...Ie.deepClone(t),rangeId:Vl()}}j(Vde,"copyCustomRange");function Bde(t,e){const n=[];let r=t[0];for(const i of e)i<t[0]||i>t[1]||(r<i&&n.push([r,i-1]),r=i+1);return r<=t[1]&&n.push([r,t[1]]),n}j(Bde,"excludePointsFromRange");var Ude=(t=>(t[t.SLIDE=0]="SLIDE",t[t.MASTER=1]="MASTER",t[t.LAYOUT=2]="LAYOUT",t[t.HANDOUT_MASTER=3]="HANDOUT_MASTER",t[t.NOTES_MASTER=4]="NOTES_MASTER",t))(Ude||{});const FZe=[wt.TABLE_START,wt.TABLE_ROW_START,wt.TABLE_CELL_START,wt.TABLE_CELL_END,wt.TABLE_ROW_END,wt.TABLE_END,wt.CUSTOM_RANGE_START,wt.CUSTOM_RANGE_END,wt.CUSTOM_BLOCK],VZe=j(t=>{const e=t.endsWith(`\r |
|
|
`)?t.slice(0,-2):t;return FZe.reduce((n,r)=>n.replaceAll(r,""),e)},"getPlainText"),BZe=j(t=>{const e=t.replace(/\n/g,"\r"),n=[],r=[];let i=0,a="",o=0;const s=j((u,c=!0)=>{const d=e.slice(i,u);if(Ie.isLegalUrl(d)){const h=Vl(),f=`${wt.CUSTOM_RANGE_START}${d}${wt.CUSTOM_RANGE_END}`,m={startIndex:i+o*2,endIndex:i+o*2+f.length-1,rangeId:h,rangeType:cd.HYPERLINK,properties:{url:t}};r.push(m),a+=f,i=u+1,o++,c&&(a+="\r",n.push({startIndex:u+o*2}))}else a+=e.slice(i,u+1),i=u+1,c&&n.push({startIndex:u+o*2})},"loopParagraph");let l=0;for(let u=0;u<e.length;u++)e[u]==="\r"&&(s(u),l=u);return l!==e.length-1&&s(e.length,!1),{dataStream:a,paragraphs:n,customRanges:r}},"fromPlainText");function Hde(t,e){if(typeof e>"u")return{startOffset:t,endOffset:t,collapsed:!0};if(e<t)throw new Error(`Cannot make a doc selection when endOffset ${e} is less than startOffset ${t}.`);return{startOffset:t,endOffset:e,collapsed:t===e}}j(Hde,"makeSelection");function w7(t){const{startOffset:e,endOffset:n,collapsed:r}=t,i=Math.min(e,n),a=Math.max(e,n);return{startOffset:i,endOffset:a,collapsed:r}}j(w7,"normalizeSelection");function nM(t,e){let{startOffset:n,endOffset:r}=w7(t);for(;e.dataStream[n-1]===wt.CUSTOM_RANGE_START;)n-=1;for(;e.dataStream[r]===wt.CUSTOM_RANGE_END;)r+=1;return{startOffset:n,endOffset:r}}j(nM,"getSelectionWithSymbolMax");function CG(t,e,n=CH.LEFT){var r;let{startOffset:i,endOffset:a,collapsed:o}=w7(t);if(o)if(n===CH.LEFT)for(;C4(e.dataStream[i-1]);)a-=1,i-=1;else for(;C4(e.dataStream[i]);)a+=1,i+=1;else{const l=nM(t,e);i=l.startOffset,a=l.endOffset}o=i===a;const s=(r=e.customRanges)==null?void 0:r.filter(l=>!l.wholeEntity||i<=l.startIndex&&a>l.endIndex?!1:SG(i,o?a:a-1,l.startIndex,l.endIndex));return s!=null&&s.length&&s.forEach(l=>{i=Math.min(l.startIndex,i),a=Math.max(l.endIndex+1,a)}),{...t,startOffset:i,endOffset:a,collapsed:i===a}}j(CG,"getDeleteSelection");function jde(t,e){let{startOffset:n,endOffset:r,collapsed:i}=w7(t);if(i){for(;e.dataStream[r]===wt.CUSTOM_RANGE_END;)r+=1,n+=1;for(;e.dataStream[r-1]===wt.CUSTOM_RANGE_START;)r-=1,n-=1;return{...t,startOffset:n,endOffset:r,collapsed:i}}else return{...t,...nM(t,e),collapsed:!1}}j(jde,"getInsertSelection");function $de(t,e){if(t.startOffset===t.endOffset)return null;const n=e.customRanges;if(!n)return w7(t);let{startOffset:r,endOffset:i}=nM(t,e);for(;C4(e.dataStream[r]);){if(e.dataStream[r]===wt.CUSTOM_RANGE_START){const a=n.find(o=>o.startIndex===r);if(!a)throw new Error("No custom-range matched");if(a.endIndex===i-1)return{startOffset:r,endOffset:i,collapsed:!1};if(a.endIndex<i-1)break}r+=1}for(;C4(e.dataStream[i-1]);){if(e.dataStream[r]===wt.CUSTOM_RANGE_END){const a=n.find(o=>o.endIndex===i-1);if(!a)throw new Error("No custom-range matched");if(a.startIndex===r)return{startOffset:r,endOffset:i,collapsed:!1};if(a.startIndex>r)break}i-=1}return i<=r?null:{startOffset:r,endOffset:i,collapsed:!1}}j($de,"getSelectionForAddCustomRange");function SG(t,e,n,r){return Math.max(t,n)<=Math.min(e,r)}j(SG,"isSegmentIntersects");function Wde(t,e="",n,r){var i;const{startOffset:a,endOffset:o}=t,s=[],l=a-n,u=o-n,c=r.dataStream,d=(i=r.customRanges)==null?void 0:i.filter(p=>MC(p.startIndex,p.endIndex,a,o)),h=new Set(d==null?void 0:d.filter(p=>tM(a,o-a,p,c))),f=new Set;d==null||d.forEach(p=>{h.has(p)||(p.startIndex-n>=l&&p.startIndex-n<=u&&p.endIndex-n>u&&f.add(p.startIndex),p.endIndex-n>=l&&p.endIndex-n<=u&&p.startIndex<l&&f.add(p.endIndex))}),l>0&&s.push({t:kt.RETAIN,len:l,segmentId:e});const m=[...f].sort((p,v)=>p-v);let g=l;return m.forEach(p=>{const v=p-g;v>0&&s.push({t:kt.DELETE,len:v,line:0,segmentId:e}),s.push({t:kt.RETAIN,len:1,segmentId:e}),g=p+1}),g<u&&(s.push({t:kt.DELETE,len:u-g,line:0,segmentId:e}),g=u+1),{dos:s,cursor:g,retain:f.size}}j(Wde,"getRetainAndDeleteFromReplace");function zde(t,e){var n,r;const{rangeId:i,segmentId:a,documentDataModel:o,insert:s}=e,l=(r=(n=o.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:n.customRanges)==null?void 0:r.find(f=>f.rangeId===i);if(!l)return!1;const{startIndex:u,endIndex:c}=l,d=new Vi,h=c-u+1;return u>0&&d.push({t:kt.RETAIN,len:u,segmentId:a}),d.push({t:kt.DELETE,len:1,segmentId:a,line:0}),h-2>0&&d.push({t:kt.RETAIN,len:h-2,segmentId:a}),d.push({t:kt.DELETE,len:1,segmentId:a,line:0}),s&&d.push({body:s,t:kt.INSERT,len:s.dataStream.length,segmentId:a,line:1}),d}j(zde,"deleteCustomRangeTextX");function qde(t){var e,n;const{range:r,rangeId:i,rangeType:a,segmentId:o,wholeEntity:s,properties:l,body:u}=t,c=$de(r,u);if(!c||!u)return!1;const{startOffset:d,endOffset:h}=c,f=(e=u.customRanges)!=null?e:[];let m=0;const g=new Vi,p=j((_,C,S)=>{const b=[];for(let w=0,P=f.length;w<P;w++){const M=f[w];if(M.rangeType===a&&Math.max(M.startIndex,_)<=Math.min(M.endIndex,C)&&b.push({...M}),M.startIndex>C)break}const y=b.map(w=>[w.startIndex,w.endIndex]).flat().sort((w,P)=>w-P),A=y.length?{startOffset:Math.min(y[0],_),endOffset:Math.max(y[y.length-1]+1,C+1)}:{startOffset:_,endOffset:C+1};A.startOffset!==m&&(g.push({t:kt.RETAIN,len:A.startOffset-m,segmentId:o}),m=A.startOffset),g.push({t:kt.INSERT,body:{dataStream:wt.CUSTOM_RANGE_START},len:1,line:0,segmentId:o}),y.forEach(w=>{w!==m&&(g.push({t:kt.RETAIN,len:w-m,segmentId:o}),m=w),g.push({t:kt.DELETE,len:1,line:0,segmentId:o}),m++}),m!==A.endOffset&&(g.push({t:kt.RETAIN,len:A.endOffset-m,segmentId:o}),m=A.endOffset),g.push({t:kt.INSERT,body:{dataStream:wt.CUSTOM_RANGE_END,customRanges:[{rangeId:S?`${i}-${S}`:i,rangeType:a,startIndex:-(A.endOffset-A.startOffset-y.length+1),endIndex:0,wholeEntity:s,properties:{...l}}]},len:1,line:0,segmentId:o})},"addCustomRange"),v=((n=u.paragraphs)!=null?n:[]).filter(_=>_.startIndex<h&&_.startIndex>d);return Bde([d,h-1],v.map(_=>_.startIndex)).forEach(([_,C],S)=>p(_,C,S)),g}j(qde,"addCustomRangeTextX");function bG(t,e,n="",r=0,i=!0){var a;const{startOffset:o,endOffset:s}=CG(t,e),l=[],{paragraphs:u=[],dataStream:c}=e,d=o-r,h=s-r,f=u==null?void 0:u.find(C=>C.startIndex-r>=d&&C.startIndex-r<h),m=(a=e.customRanges)==null?void 0:a.filter(C=>MC(C.startIndex,C.endIndex,o,s)),g=new Set(m==null?void 0:m.filter(C=>tM(o,s-o,C,c))),p=new Set;if(m==null||m.forEach(C=>{g.has(C)||(C.startIndex-r>=d&&C.startIndex-r<=h&&C.endIndex-r>h&&p.add(C.startIndex),C.endIndex-r>=d&&C.endIndex-r<=h&&C.startIndex<d&&p.add(C.endIndex))}),d>0&&l.push({t:kt.RETAIN,len:d,segmentId:n}),i&&f&&f.startIndex-r>d){const C=f.startIndex-r;p.add(C)}const v=[...p].sort((C,S)=>C-S);let _=d;return v.forEach(C=>{const S=C-_;S>0&&l.push({t:kt.DELETE,len:S,line:0,segmentId:n}),l.push({t:kt.RETAIN,len:1,segmentId:n}),_=C+1}),_<h&&l.push({t:kt.DELETE,len:h-_,line:0,segmentId:n}),l}j(bG,"getRetainAndDeleteAndExcludeLineBreak");const UZe=j(t=>{var e;const{selection:n,body:r,doc:i}=t,a=n.segmentId,o=(e=i.getSelfOrHeaderFooterModel(a))==null?void 0:e.getBody();if(!o)return!1;const s=new Vi,l=bG(n,o,a);return l.length&&s.push(...l),s.push({t:kt.INSERT,body:r,len:r.dataStream.length,line:0,segmentId:a}),s},"replaceSelectionTextX"),X3=class{};j(X3,"BuildTextUtils"),Xe(X3,"customRange",{add:qde,delete:zde,copyCustomRange:Vde,getCustomRangesInterestsWithRange:Fde,shouldDeleteCustomRange:tM,isIntersecting:MC}),Xe(X3,"selection",{replace:UZe,makeSelection:Hde,normalizeSelection:w7,getDeleteSelection:CG,getInsertSelection:jde,getDeleteActions:Wde,getDeleteExculdeLastLineBreakActions:bG}),Xe(X3,"range",{isIntersects:SG}),Xe(X3,"transform",{getPlainText:VZe,fromPlainText:BZe});let Aa=X3;function HZe(t,e,n){if(e==="")return t;const r={id:"mock-id",body:t,documentStyle:{}},i=new sh(r),a=e.length;let o;for(;(o=i.getBody().dataStream.indexOf(e))>=0;){const l=new Vi,u=Ir.getInstance();if(o>0&&l.retain(o),n.length>0){const c=i.sliceBody(o,o+a),d={dataStream:n};Array.isArray(c==null?void 0:c.textRuns)&&c.textRuns.length&&(d.textRuns=[{...c.textRuns[0],st:0,ed:n.length}]),l.insert(n.length,d)}l.delete(a),i.apply(u.editOp(l.serialize()))}const s=i.getBody();return i.dispose(),s}j(HZe,"replaceInDocumentBody");const Yde=class{constructor(){Xe(this,"skipNextObservers",!1),Xe(this,"lastReturnValue"),Xe(this,"isStopPropagation",!1)}stopPropagation(){this.isStopPropagation=!0}};j(Yde,"EventState");let jZe=Yde;const Xde=class extends Zt{constructor(){super(...arguments),Xe(this,"_sortedObservers",[])}subscribe(){throw new Error("[EventSubject]: please use `subscribeEvent` instead of `subscribe` method for `EventSubject`.")}next(){throw new Error("[EventSubject]: please use `emitEvent` instead of `next` method for `EventSubject`.")}unsubscribe(){super.unsubscribe(),this._sortedObservers.length=0}complete(){super.complete(),this._sortedObservers.length=0}subscribeEvent(e){let n;typeof e=="function"?n={next:j(([i,a])=>e(i,a),"next")}:n=e;const r=super.subscribe(n);return this._sortedObservers.push(n),this._sortedObservers.sort((i,a)=>{var o,s;return((o=i.priority)!=null?o:0)-((s=a.priority)!=null?s:0)}),r.add(()=>this._sortedObservers=this._sortedObservers.filter(i=>i!==n)),r}clearObservers(){this._sortedObservers.forEach(e=>{var n;return(n=e.complete)==null?void 0:n.call(e)}),this._sortedObservers.length=0}emitEvent(e){var n;if(!this.closed){const r=new jZe;r.lastReturnValue=e;for(const i of this._sortedObservers){const a=(n=i.next)==null?void 0:n.call(i,[e,r]);if(r.lastReturnValue=a,r.skipNextObservers)return{handled:!0,lastReturnValue:r.lastReturnValue,stopPropagation:r.isStopPropagation}}return{handled:this._sortedObservers.length>0,lastReturnValue:r.lastReturnValue,stopPropagation:r.isStopPropagation}}throw new Error("[EventSubject]: cannot emit event on a closed subject.")}};j(Xde,"EventSubject");let si=Xde;function vg(t){return new On(e=>{const n=t.subscribeEvent(r=>{e.next(r)});return()=>n.unsubscribe()})}j(vg,"fromEventSubject");const J0=er("core.resource-manager.service");var Vt=(t=>(t[t.Starting=0]="Starting",t[t.Ready=1]="Ready",t[t.Rendered=2]="Rendered",t[t.Steady=3]="Steady",t))(Vt||{});const $Ze={0:"Starting",1:"Ready",2:"Rendered",3:"Steady"},vE=new Map;function yn(t,e){return j(function(n){e2(t,e)},"decorator2")}j(yn,"OnLifecycle");function e2(t,e){vE.has(t)||vE.set(t,[]),vE.get(t).push(e)}j(e2,"runOnLifecycle");const NH={[Ud.Editor]:"Editor",[Ud.Owner]:"Owner",[Ud.Reader]:"Reader",[Ud.UNRECOGNIZED]:"UNRECOGNIZED"},kH=j(t=>t?{userID:`${NH[t]}_${Ie.generateRandomId(8)}`,name:NH[t],avatar:""}:{userID:"",name:"",avatar:"",anonymous:!0,canBindAnonymous:!1},"createDefaultUser"),WZe=j((t,e)=>t.startsWith(NH[e]),"isDevRole");var zZe=Object.defineProperty,qZe=Object.getOwnPropertyDescriptor,YZe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?qZe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zZe(e,n,i),i},"__decorateClass$7"),EO;let vs=(EO=class{constructor(){Xe(this,"_model",new Map),Xe(this,"_userChange$",new Zt),Xe(this,"userChange$",this._userChange$.asObservable()),Xe(this,"_currentUser$",new Pn(kH())),Xe(this,"currentUser$",this._currentUser$.asObservable())}getCurrentUser(){return this._currentUser$.getValue()}setCurrentUser(t){this.addUser(t),this._currentUser$.next(t)}addUser(t){this._model.set(t.userID,t),this._userChange$.next({type:"add",user:t})}getUser(t,e){const n=this._model.get(t);if(n)return n;e&&e()}delete(t){const e=this.getUser(t);this._model.delete(t),e&&this._userChange$.next({type:"delete",user:e})}clear(){this._model.clear(),this._userChange$.next({type:"clear"})}list(){return Array.from(this._model.values())}},j(EO,"UserManagerService"),EO);vs=YZe([yn(Vt.Starting,vs)],vs);var XZe=Object.defineProperty,GZe=Object.getOwnPropertyDescriptor,QZe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?GZe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&XZe(e,n,i),i},"__decorateClass$6"),qie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),RO;let FH=(RO=class{constructor(t,e){Xe(this,"_permissionMap",new Map([])),this._resourceManagerService=t,this._userManagerService=e,this._initSnapshot(),this._initDefaultUser()}_initDefaultUser(){const t=this._userManagerService.getCurrentUser();t&&t.userID||this._userManagerService.setCurrentUser(kH(Ud.Owner))}_getRole(t){const e=this._userManagerService.getCurrentUser();return e?WZe(e.userID,t):!1}_initSnapshot(){this._resourceManagerService.registerPluginResource({toJson:j(t=>{const e=[...this._permissionMap.keys()].reduce((n,r)=>{const i=this._permissionMap.get(r);return n[r]=i,n},{});return JSON.stringify(e)},"toJson"),parseJson:j(t=>JSON.parse(t),"parseJson"),pluginName:"SHEET_AuthzIoMockService_PLUGIN",businesses:[le.UNIVER_SHEET,le.UNIVER_DOC,le.UNIVER_SLIDE],onLoad:j((t,e)=>{for(const n in e)this._permissionMap.set(n,e[n])},"onLoad"),onUnLoad:j(()=>{this._permissionMap.clear()},"onUnLoad")})}async create(t){return Vl(8)}async allowed(t){return Promise.resolve([])}async batchAllowed(t){return Promise.resolve([])}async list(t){const e=[];return t.objectIDs.forEach(n=>{const r=this._permissionMap.get(n);if(r){const i={objectID:n,unitID:t.unitID,objectType:r.objectType,name:r.name,shareOn:!1,shareRole:Ud.Owner,shareScope:-1,scope:{read:IH.AllCollaborator,edit:IH.AllCollaborator},creator:kH(Ud.Owner),strategies:[{action:6,role:1},{action:16,role:1},{action:17,role:1},{action:18,role:1},{action:19,role:1},{action:33,role:1},{action:34,role:1},{action:35,role:1},{action:36,role:1},{action:37,role:1},{action:38,role:1},{action:39,role:1},{action:40,role:1}],actions:t.actions.map(a=>({action:a,allowed:this._getRole(Ud.Owner)||this._getRole(Ud.Editor)}))};e.push(i)}}),e}async listCollaborators(){return[]}async listRoles(){return{roles:[],actions:[]}}async deleteCollaborator(){}async update(t){}async updateCollaborator(){}async createCollaborator(){}async putCollaborators(t){}},j(RO,"AuthzIoLocalService"),RO);FH=QZe([qie(0,J0),qie(1,se(vs))],FH);const D7=er("IAuthzIoIoService"),Za=er("univer.config-service"),Gde=class{constructor(){Xe(this,"_config",new Map)}getConfig(e){return this._config.get(e)}setConfig(e,n,r){var i;const{merge:a=!1}=r||{},o=(i=this._config.get(e))!=null?i:{};if(a){this._config.set(e,Ie.deepMerge(o,n));return}this._config.set(e,n)}deleteConfig(e){return this._config.delete(e)}};j(Gde,"ConfigService");let KZe=Gde;const kb="FOCUSING_UNIT",ms="FOCUSING_SHEET",K1="FOCUSING_DOC",Fb="FOCUSING_SLIDE",VH="FOCUSING_EDITOR_BUT_HIDDEN",ha="EDITOR_ACTIVATED",Um="FOCUSING_EDITOR_INPUT_FORMULA",of="FOCUSING_FX_BAR_EDITOR",Pu="FOCUSING_UNIVER_EDITOR",Dg="FOCUSING_EDITOR_INPUT_FORMULA",S4="FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE",I7="FOCUSING_COMMON_DRAWINGS",Yie="FORMULA_EDITOR_ACTIVATED",Qde=class extends et{constructor(){super(...arguments),Xe(this,"_error$",new Zt),Xe(this,"error$",this._error$.asObservable())}dispose(){this._error$.complete()}emit(e){this._error$.next({errorKey:e})}};j(Qde,"ErrorService");let zf=Qde;const ZZe="0.2.15";function Kde(t="",e=pf.ZH_CN,n=""){return{id:t,sheetOrder:[],name:n,appVersion:ZZe,locale:e,styles:{},sheets:{},resources:[]}}j(Kde,"getEmptySnapshot");const Zde=class{constructor(e={}){Xe(this,"_styles"),Xe(this,"_cacheMap",new Yg(1e5)),this._styles=e,this._generateCacheMap()}each(e){return Object.entries(this._styles).forEach(e),this}search(e,n){return this._cacheMap.has(n)?this._cacheMap.get(n):this._getExistingStyleId(e)||"-1"}get(e){return typeof e!="string"?e:(e=String(e),this._styles[e])}add(e,n){const r=Ie.generateRandomId(6);return this._styles[r]=e,this._cacheMap.set(n,r),r}setValue(e){if(e==null)return;const n=JSON.stringify(e),r=this.search(e,n);return r!=="-1"?r:this.add(e,n)}toJSON(){return this._styles}getStyleByCell(e){let n;e&&Ie.isObject(e.s)?n=e.s:n=(e==null?void 0:e.s)&&this.get(e.s);const r=e==null?void 0:e.interceptorStyle;return r?{...n,...r}:n}_generateCacheMap(){const{_styles:e,_cacheMap:n}=this;for(const r in e){const i=JSON.stringify(e[r]);n.set(i,r)}}_getExistingStyleId(e){const{_styles:n}=this;for(const r in n)if(Ie.diffValue(n[r],e))return r;return null}};j(Zde,"Styles");let JZe=Zde;const Jde=class{constructor(e,n){Xe(this,"_columnData",{}),this._config=e,this._columnData=n}getColumnData(){return this._columnData}getColVisible(e){const{_columnData:n}=this,r=n[e];return r?r.hd!==at.TRUE:!0}getHiddenCols(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getColVisible(o);i&&s?(i=!1,r.push({rangeType:it.COLUMN,startColumn:a,endColumn:o-1,startRow:0,endRow:0})):!i&&!s&&(i=!0,a=o)}return i&&r.push({startRow:0,endRow:0,startColumn:a,endColumn:n,rangeType:it.COLUMN}),r}getVisibleCols(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getColVisible(o);i&&!s?(i=!1,r.push({rangeType:it.COLUMN,startColumn:a,endColumn:o-1,startRow:0,endRow:0})):!i&&s&&(i=!0,a=o)}return i&&r.push({startRow:0,endRow:0,startColumn:a,endColumn:n,rangeType:it.COLUMN}),r}getColumnDatas(e,n){const r={};let i=0;for(let a=e;a<e+n;a++){const o=this.getColumnOrCreate(a);r[i]=o,i++}return r}getSize(){return Yd(this._columnData)}getColumnWidth(e){const{_columnData:n}=this,r=this._config;let i=0;return i=(n[e]||{hd:at.FALSE,w:r.defaultColumnWidth}).w||r.defaultColumnWidth,i}getColumn(e){const n=this._columnData[e];if(n)return n}getColumnOrCreate(e){const{_columnData:n}=this,r=this._config,i=n[e];if(i)return i;const a={w:r.defaultColumnWidth,hd:at.FALSE};return this._columnData[e]=a,a}};j(Jde,"ColumnManager");let eJe=Jde;const ehe=class{constructor(e,n,r){Xe(this,"_rowData"),this._config=e,this._viewModel=n,this._rowData=r}getRowData(){return this._rowData}getRowDatas(e,n){const r={};let i=0;for(let a=e;a<e+n;a++){const o=this.getRowOrCreate(a);r[i]=o,i++}return r}getRowHeight(e,n=1){const{_rowData:r}=this,i=this._config;let a=0;for(let o=0;o<n;o++){const s=r[o+e]||{hd:at.FALSE,h:i.defaultRowHeight},{ia:l,ah:u,h:c=i.defaultRowHeight}=s;a+=(l==null||l===at.TRUE)&&typeof u=="number"?u:c}return a}getRow(e){return this._rowData[e]}getRowOrCreate(e){const{_rowData:n}=this,r=n[e];if(r)return r;const i=this._config,a={hd:at.FALSE,h:i.defaultRowHeight};return n[e]=a,a}getHiddenRows(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getRowRawVisible(o);i&&s?(i=!1,r.push({startRow:a,endRow:o-1,startColumn:0,endColumn:0,rangeType:it.ROW})):!i&&!s&&(i=!0,a=o)}return i&&r.push({startRow:a,endRow:n,startColumn:0,endColumn:0,rangeType:it.ROW}),r}getVisibleRows(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getRowRawVisible(o);i&&!s?(i=!1,r.push({startRow:a,endRow:o-1,startColumn:0,endColumn:0,rangeType:it.ROW})):!i&&s&&(i=!0,a=o)}return i&&r.push({startRow:a,endRow:n,startColumn:0,endColumn:0,rangeType:it.ROW}),r}getRowRawVisible(e){const n=this.getRow(e);return n?n.hd!==at.TRUE:!0}getSize(){return Yd(this._rowData)}};j(ehe,"RowManager");let tJe=ehe;const nJe=1e3,rJe=20,uw=24,Xie="DEFAULT_WORKSHEET_COLUMN_WIDTH",BH=88,iJe=46,aJe=20;function yG(t){const e={name:"Sheet1",id:"sheet-01",tabColor:"",hidden:at.FALSE,rowCount:nJe,columnCount:rJe,zoomRatio:1,freeze:{xSplit:0,ySplit:0,startRow:-1,startColumn:-1},scrollTop:0,scrollLeft:0,defaultColumnWidth:BH,defaultRowHeight:uw,mergeData:[],cellData:{},rowData:{},columnData:{},showGridlines:at.TRUE,rowHeader:{width:iJe,hidden:at.FALSE},columnHeader:{height:aJe,hidden:at.FALSE},rightToLeft:at.FALSE};return Object.keys(e).forEach(n=>{const r=n;typeof t[r]>"u"&&(t[r]=e[r])}),t}j(yG,"mergeWorksheetSnapshotWithDefault");const the=class extends et{constructor(e){super(),Xe(this,"_cellCache",{}),Xe(this,"_rowCache",{}),Xe(this,"_columnCache",{}),Xe(this,"_hasAll",!1),Xe(this,"_allIndex",-1),Xe(this,"_mergeData"),Xe(this,"_rangeMap",new Yg(5e4)),Xe(this,"_skeletonCache",new Yg(5e4)),this._init(e.concat())}_init(e){this._mergeData=e,this._createCache(e)}_clearCache(){this._cellCache={},this._rowCache={},this._columnCache={},this._hasAll=!1,this._allIndex=-1,this._rangeMap.clear(),this._skeletonCache.clear()}_createCache(e){let n=0;for(const r of e){const{rangeType:i}=r;i===it.ROW?this._createRowCache(r,n):i===it.COLUMN?this._createColumnCache(r,n):i===it.ALL?this._createCellAllCache(n):this._createCellCache(r,n),n++}}rebuild(e){this._clearCache(),this._init(e.concat())}_createRowCache(e,n){const{startRow:r,endRow:i}=e;for(let a=r;a<=i;a++){const o=`${a}`;this._rowCache[o]=n}}_createColumnCache(e,n){const{startColumn:r,endColumn:i}=e;for(let a=r;a<=i;a++){const o=`${a}`;this._columnCache[o]=n}}_createCellAllCache(e){this._hasAll=!0,this._allIndex=e}_createCellCache(e,n){for(let r=e.startRow;r<=e.endRow;r++)for(let i=e.startColumn;i<=e.endColumn;i++)this._cellCache[`${r}-${i}`]=n}add(e){this._mergeData.push(e),this._clearCache(),this._createCache(this._mergeData)}remove(e,n){const r=this._getMergeDataIndex(e,n);r!==-1&&(this._mergeData.splice(r,1),this._clearCache(),this._createCache(this._mergeData))}getMergedCell(e,n){const r=this._getMergeDataIndex(e,n);return r!==-1?this._mergeData[r]:null}isRowContainsMergedCell(e){return this._hasAll||!Ie.isEmptyObject(this._columnCache)?!0:this._mergeData.some(n=>n.startRow<=e&&e<=n.endRow)}isColumnContainsMergedCell(e){return this._hasAll||!Ie.isEmptyObject(this._rowCache)?!0:this._mergeData.some(n=>n.startColumn<=e&&e<=n.endColumn)}getMergedCellRange(e,n,r,i){const a=[],o=`${e}-${n}-${r}-${i}`;if(this._rangeMap.has(o))return this._getRangeFromCache(o);let s=0;const l=[];for(const u of this._mergeData||[])ft.intersects(u,{startRow:e,endRow:r,startColumn:n,endColumn:i})&&(a.push({...u}),l.push(s),s++);return this._rangeMap.set(o,l),a}getMergedCellRangeForSkeleton(e,n,r,i){const a=[],o=this._mergeData,s=`${e}-${n}-${r}-${i}`;if(this._skeletonCache.has(s))return this._getSkeletonRangeFromCache(s);const l=[];for(let u=0;u<o.length;u++){const{startRow:c,endRow:d,startColumn:h,endColumn:f}=o[u];for(let m=e;m<=r;m++){let g=!1;for(let p=n;p<=i;p++)if(m>=c&&m<=d&&p>=h&&p<=f){a.push({startRow:c,endRow:d,startColumn:h,endColumn:f}),l.push(u),g=!0;break}if(g)break}}return this._skeletonCache.set(s,l),a}_getRangeFromCache(e){const n=this._rangeMap.get(e)||[],r=[];for(const i of n)r.push({...this._mergeData[i]});return r}_getSkeletonRangeFromCache(e){const n=this._skeletonCache.get(e)||[],r=[];for(const i of n)r.push({...this._mergeData[i]});return r}_getMergeDataIndex(e,n){if(this._hasAll)return this._allIndex;const r=`${e}`,i=`${n}`;if(this._rowCache[r]!==void 0)return this._rowCache[r];if(this._columnCache[i]!==void 0)return this._columnCache[i];const a=`${e}-${n}`;return this._cellCache[a]!==void 0?this._cellCache[a]:-1}getMergeDataSnapshot(){return this._mergeData}dispose(){this._clearCache(),this._mergeData=[]}};j(the,"SpanModel");let oJe=the;const nhe=class extends et{constructor(e){super(),Xe(this,"_cellContentInterceptor",null),Xe(this,"_rowFilteredInterceptor",null),this.getRawCell=e}dispose(){super.dispose(),this._cellContentInterceptor=null,this._rowFilteredInterceptor=null}getCell(e,n){return this._cellContentInterceptor?this._cellContentInterceptor.getCell(e,n):this.getRawCell(e,n)}getRowFiltered(e){var n,r;return(r=(n=this._rowFilteredInterceptor)==null?void 0:n.getRowFiltered(e))!=null?r:!1}registerCellContentInterceptor(e){if(this._cellContentInterceptor)throw new Error("[SheetViewModel]: Interceptor already registered.");return this._cellContentInterceptor=e,$t(()=>this._cellContentInterceptor=null)}registerRowFilteredInterceptor(e){if(this._rowFilteredInterceptor)throw new Error("[SheetViewModel]: Interceptor already registered.");return this._rowFilteredInterceptor=e,$t(()=>this._rowFilteredInterceptor=null)}};j(nhe,"SheetViewModel");let sJe=nhe;const rhe=class ihe{constructor(e,n,r){Xe(this,"_sheetId"),Xe(this,"_snapshot"),Xe(this,"_cellData"),Xe(this,"_rowManager"),Xe(this,"_columnManager"),Xe(this,"_viewModel"),Xe(this,"_spanModel");var i;this.unitId=e,this._styles=r,this._snapshot=yG(n);const{columnData:a,rowData:o,cellData:s}=this._snapshot;this._sheetId=(i=this._snapshot.id)!=null?i:Ie.generateRandomId(6),this._cellData=new Ct(s),this._viewModel=new sJe((l,u)=>this.getCellRaw(l,u)),this._rowManager=new tJe(this._snapshot,this._viewModel,o),this._columnManager=new eJe(this._snapshot,a),this._spanModel=new oJe(this._snapshot.mergeData)}__interceptViewModel(e){e(this._viewModel)}getSnapshot(){return this._snapshot}setMergeData(e){this._snapshot.mergeData=e,this.getSpanModel().rebuild(e)}getSpanModel(){return this._spanModel}getCellMatrix(){return this._cellData}getCellMatrixPrintRange(){const e=this.getCellMatrix(),n=this.getMergeData();let r=-1,i=-1,a=-1,o=-1,s=!1,l=!1;return e.forEach((u,c)=>{Object.keys(c).forEach(d=>{const h=+d,f=e.getValue(u,h),m=f!=null&&f.s?this._styles.get(f.s):null,g=(m==null?void 0:m.bd)&&(m.bd.b||m.bd.l||m.bd.r||m.bd.t||m.bd.bc_tr||m.bd.bl_tr||m.bd.ml_tr||m.bd.tl_bc||m.bd.tl_br||m.bd.tl_mr);(f&&(f.v||f.p)||m!=null&&m.bg||g)&&(s?r=Math.min(r,u):(r=u,s=!0),i=Math.max(i,u),l?a=Math.min(a,h):(l=!0,a=h),o=Math.max(o,h))})}),n.forEach(u=>{s?r=Math.min(r,u.startRow):(r=u.startRow,s=!0),i=Math.max(i,u.endRow),l?a=Math.min(a,u.startColumn):(a=u.startColumn,s=!0),o=Math.max(o,u.endColumn)}),!s||!l?null:{startColumn:a,startRow:r,endColumn:o,endRow:i}}getRowManager(){return this._rowManager}getUnitId(){return this.unitId}getSheetId(){return this._sheetId}getColumnManager(){return this._columnManager}getName(){return this._snapshot.name}clone(){const{_snapshot:e}=this,n=Ie.deepClone(e);return new ihe(this.unitId,n,this._styles)}getMergeData(){return this._spanModel.getMergeDataSnapshot()}getMergedCell(e,n){return this._spanModel.getMergedCell(e,n)}getMergedCellRange(e,n,r,i){return this._spanModel.getMergedCellRange(e,n,r,i)}isRowContainsMergedCell(e){return this._spanModel.isRowContainsMergedCell(e)}isColumnContainsMergedCell(e){return this._spanModel.isColumnContainsMergedCell(e)}getCellInfoInMergeData(e,n){const r=this.getMergedCell(e,n);let i=!1,a=!1,o=e,s=n,l=e,u=n;if(r){const{startRow:c,endRow:d,startColumn:h,endColumn:f}=r;e===c&&n===h?(o=d,s=f,l=c,u=h,a=!0):e>=c&&e<=d&&n>=h&&n<=f&&(o=d,s=f,l=c,u=h,i=!0)}return{actualRow:e,actualColumn:n,isMergedMainCell:a,isMerged:i,endRow:o,endColumn:s,startRow:l,startColumn:u}}getCell(e,n){return e<0||n<0?null:this._viewModel.getCell(e,n)}getCellRaw(e,n){return this.getCellMatrix().getValue(e,n)}getRowFiltered(e){return this._viewModel.getRowFiltered(e)}getMatrixWithMergedCells(e,n,r,i,a=!1){const o=this.getCellMatrix(),s=this._spanModel.getMergedCellRange(e,n,r,i),l=new Ct;return nw(e,r,n,i).forEach((u,c)=>{const d=a?this.getCellRaw(u,c):this.getCell(u,c);d&&l.setValue(u,c,d)}),s.forEach(u=>{const{startColumn:c,startRow:d,endColumn:h,endRow:f}=u;nw(d,f,c,h).forEach((m,g)=>{m===d&&g===c&&l.setValue(m,g,{...o.getValue(m,g),rowSpan:f-d+1,colSpan:h-c+1}),(m!==d||g!==c)&&l.realDeleteValue(m,g)})}),l}getRange(e,n,r,i){return typeof e=="object"?new Gn(this,e,{getStyles:j(()=>this._styles,"getStyles")}):new Gn(this,{startRow:e,startColumn:n,endColumn:i||n,endRow:r||e},{getStyles:j(()=>this._styles,"getStyles")})}getScrollLeftTopFromSnapshot(){return{scrollLeft:this._snapshot.scrollLeft,scrollTop:this._snapshot.scrollTop}}getZoomRatio(){return this._snapshot.zoomRatio||1}getConfig(){return this._snapshot}getFreeze(){return this._snapshot.freeze}getMaxColumns(){const{_snapshot:e}=this,{columnCount:n}=e;return n}getMaxRows(){const{_snapshot:e}=this,{rowCount:n}=e;return n}getRowCount(){return this._snapshot.rowCount}setRowCount(e){this._snapshot.rowCount=e}getColumnCount(){return this._snapshot.columnCount}setColumnCount(e){this._snapshot.columnCount=e}isSheetHidden(){return this._snapshot.hidden}hasHiddenGridlines(){const{_snapshot:e}=this,{showGridlines:n}=e;return n===0}getTabColor(){const{_snapshot:e}=this,{tabColor:n}=e;return n}getColumnWidth(e){return this.getColumnManager().getColumnWidth(e)}getRowHeight(e){return this._viewModel.getRowFiltered(e)?0:this.getRowManager().getRowHeight(e)}isRowFiltered(e){return this._viewModel.getRowFiltered(e)}getRowVisible(e){return!this.isRowFiltered(e)&&this.getRowRawVisible(e)}getRowRawVisible(e){return this.getRowManager().getRowRawVisible(e)}getHiddenRows(e,n){const r=this.getMaxColumns()-1,i=this._rowManager.getHiddenRows(e,n);return i.forEach(a=>a.endColumn=r),i}getColVisible(e){return this._columnManager.getColVisible(e)}getHiddenCols(e,n){const r=this.getMaxRows()-1,i=this._columnManager.getHiddenCols(e,n);return i.forEach(a=>a.endRow=r),i}getVisibleRows(){const e=this.getRowCount();return this._rowManager.getVisibleRows(0,e-1)}getVisibleCols(){const e=this.getColumnCount();return this._columnManager.getVisibleCols(0,e-1)}isRightToLeft(){const{_snapshot:e}=this,{rightToLeft:n}=e;return n}getLastRowWithContent(){return this._cellData.getLength()-1}getLastColumnWithContent(){return this._cellData.getRange().endColumn}cellHasValue(e){return e&&(e.v!==void 0||e.f!==void 0||e.p!==void 0)}iterateByRow(e,n=!0){const{startRow:r,startColumn:i,endRow:a,endColumn:o}=e,s=this;return{[Symbol.iterator]:()=>{let l=r,u=i;return{next(){for(;;){if(u>o&&(l+=1,u=i),l>a)return{done:!0,value:void 0};const c=s.getCell(l,u),d=!c,h=s.getMergedCell(l,u);if(h){if(l!==h.startRow||u!==h.startColumn){u=h.endColumn+1;continue}if(d&&n){u=h.endColumn+1;continue}const f={row:l,col:u,value:c};return f.colSpan=h.endColumn-h.startColumn+1,f.rowSpan=h.endRow-h.startRow+1,u=h.endColumn+1,{done:!1,value:f}}if(d&&n)u+=1;else{const f={row:l,col:u,value:c};return u+=1,{done:!1,value:f}}}}}}}}iterateByColumn(e,n=!0,r=!0){const{startRow:i,startColumn:a,endRow:o,endColumn:s}=e,l=this;return{[Symbol.iterator]:()=>{let u=i,c=a;return{next(){for(;;){if(u>o&&(c+=1,u=i),c>s)return{done:!0,value:void 0};const d=l.getMergedCell(u,c);if(d){const f=u!==d.startRow,m=f||c!==d.startColumn;if(r&&m||!r&&f){u=d.endRow+1;continue}const g=l.getCell(d.startRow,d.startColumn);if(!g&&n){u=d.endRow+1;continue}const p={row:u,col:d.startColumn,value:g};return p.colSpan=d.endColumn-d.startColumn+1,p.rowSpan=d.endRow-d.startRow+1,u=d.endRow+1,{done:!1,value:p}}const h=l.getCell(u,c);if(!h&&n)u+=1;else{const f={row:u,col:c,value:h};return u+=1,{done:!1,value:f}}}}}}}}};j(rhe,"Worksheet");let Gie=rhe;function rM(t){var e,n;if(!t)return"";const r=(n=(e=t.p)==null?void 0:e.body)==null?void 0:n.dataStream;if(r)return Aa.transform.getPlainText(r);const i=t.v;return typeof i=="string"?t.t===rr.BOOLEAN?i.toUpperCase():i.replace(/[\r\n]/g,""):typeof i=="number"?t.t===rr.BOOLEAN?i?"TRUE":"FALSE":i.toString():typeof i=="boolean"?i?"TRUE":"FALSE":""}j(rM,"extractPureTextFromCell");function ahe(t){if(t===null)return"";if(t!=null&&t.p){const e=t==null?void 0:t.p.body;if(e==null)return"";const n=e.dataStream;return Aa.transform.getPlainText(n)}return t==null?void 0:t.v}j(ahe,"getOriginCellValue");var lJe=Object.defineProperty,uJe=Object.getOwnPropertyDescriptor,cJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?uJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&lJe(e,n,i),i},"__decorateClass$5"),dJe=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5");function hJe(t,e){return`${t.getUnitId()}|${e.getSheetId()}`}j(hJe,"getWorksheetUID");var AO;let b4=(AO=class extends QX{constructor(t={},e){super(),Xe(this,"type",le.UNIVER_SHEET),Xe(this,"_sheetCreated$",new Zt),Xe(this,"sheetCreated$",this._sheetCreated$.asObservable()),Xe(this,"_sheetDisposed$",new Zt),Xe(this,"sheetDisposed$",this._sheetDisposed$.asObservable()),Xe(this,"_activeSheet$",new Pn(null)),Xe(this,"activeSheet$",this._activeSheet$.asObservable()),Xe(this,"_worksheets"),Xe(this,"_styles"),Xe(this,"_snapshot"),Xe(this,"_unitId"),Xe(this,"_count"),Xe(this,"_name$"),Xe(this,"name$"),this._logService=e;const n=Kde();Ie.isEmptyObject(t)?this._snapshot=n:this._snapshot=Ie.commonExtend(n,t);const{styles:r}=this._snapshot;(this._snapshot.id==null||this._snapshot.id.length===0)&&(this._snapshot.id=Ie.generateRandomId(6)),this._unitId=this._snapshot.id,this._styles=new JZe(r),this._count=1,this._worksheets=new Map,this._name$=new Pn(t.name||""),this.name$=this._name$.asObservable(),this._parseWorksheetSnapshots()}get _activeSheet(){return this._activeSheet$.getValue()}get name(){return this._name$.getValue()}static isIRangeType(t){return typeof t=="string"||"startRow"in t||"row"in t}dispose(){super.dispose(),this._sheetCreated$.complete(),this._sheetDisposed$.complete(),this._activeSheet$.complete(),this._name$.complete()}save(){return Ie.deepClone(this._snapshot)}getSnapshot(){return this._snapshot}getName(){return this._snapshot.name}setName(t){this._name$.next(t),this._snapshot.name=t}getUnitId(){return this._unitId}getRev(){var t;return(t=this._snapshot.rev)!=null?t:1}incrementRev(){this._snapshot.rev=this.getRev()+1}setRev(t){this._snapshot.rev=t}addWorksheet(t,e,n){const{sheets:r,sheetOrder:i}=this._snapshot;if(r[t])return!1;r[t]=n,i.splice(e,0,t);const a=new Gie(this._unitId,n,this._styles);return this._worksheets.set(t,a),this._sheetCreated$.next(a),!0}getSheetOrders(){return this._snapshot.sheetOrder}getWorksheets(){return this._worksheets}getActiveSpreadsheet(){return this}getStyles(){return this._styles}getConfig(){return this._snapshot}getIndexBySheetId(t){const{sheetOrder:e}=this._snapshot;return e.findIndex(n=>n===t)}getActiveSheet(t){if(!this._activeSheet&&typeof t>"u")throw new Error(`[Workbook]: no active Worksheet on Workbook ${this._unitId}!`);return this._activeSheet}ensureActiveSheet(){const t=this._activeSheet;if(t)return t;const e=this._snapshot.sheetOrder;for(let r=0,i=e.length;r<i;r++){const a=this._worksheets.get(e[r]);if(a&&a.isSheetHidden()!==at.TRUE)return this.setActiveSheet(a),a}const n=this._worksheets.get(e[0]);return this.setActiveSheet(n),n}setActiveSheet(t){this._activeSheet$.next(t)}removeSheet(t){const e=this._worksheets.get(t);return e?(this._worksheets.delete(t),this._snapshot.sheetOrder.splice(this._snapshot.sheetOrder.indexOf(t),1),delete this._snapshot.sheets[t],this._sheetDisposed$.next(e),!0):!1}getActiveSheetIndex(){const{sheetOrder:t}=this._snapshot;return t.findIndex(e=>this._worksheets.get(e)===this._activeSheet)}getSheetSize(){return this._snapshot.sheetOrder.length}getSheets(){const{sheetOrder:t}=this._snapshot;return t.map(e=>this._worksheets.get(e))}getSheetsName(){const{sheetOrder:t}=this._snapshot,e=[];return t.forEach(n=>{const r=this._worksheets.get(n);r&&e.push(r.getName())}),e}getSheetIndex(t){const{sheetOrder:e}=this._snapshot;return e.findIndex(n=>t.getSheetId()===n)}getSheetBySheetName(t){const{sheetOrder:e}=this._snapshot,n=e.find(r=>this._worksheets.get(r).getName()===t);return this._worksheets.get(n)}getSheetBySheetId(t){return this._worksheets.get(t)}getSheetByIndex(t){const{sheetOrder:e}=this._snapshot;return this._worksheets.get(e[t])}getHiddenWorksheets(){return this.getSheets().filter(t=>t.getConfig().hidden===at.TRUE).map(t=>t.getConfig().id)}getUnhiddenWorksheets(){return this.getSheets().filter(t=>t.getConfig().hidden!==at.TRUE).map(t=>t.getConfig().id)}load(t){this._snapshot=t}checkSheetName(t){return this.getSheetsName().includes(t)}uniqueSheetName(t="Sheet1"){let e=t;for(;this.checkSheetName(e);)e=t+this._count,this._count++;return e}generateNewSheetName(t){let e=t+this._count;for(;this.checkSheetName(e);)e=t+this._count,this._count++;return e}_parseWorksheetSnapshots(){const{_snapshot:t,_worksheets:e}=this,{sheets:n,sheetOrder:r}=t;if(Ie.isEmptyObject(n)){const i=Ie.generateRandomId();n[i]={id:i}}for(const i in n){const a=n[i],{name:o}=a;a.name=this.uniqueSheetName(o),a.name!==o&&this._logService.debug("[Workbook]",`The worksheet name ${o} is duplicated, we changed it to ${a.name}. Please fix the problem in your snapshot.`);const s=new Gie(this._unitId,a,this._styles);e.set(i,s),r.includes(i)||r.push(i)}this.ensureActiveSheet()}},j(AO,"Workbook"),AO);b4=cJe([dJe(1,Ra)],b4);const ohe=class extends QX{constructor(e){var n;super(),Xe(this,"type",le.UNIVER_SLIDE),Xe(this,"_activePage$",new Pn(null)),Xe(this,"activePage$",this._activePage$.asObservable()),Xe(this,"_name$"),Xe(this,"name$"),Xe(this,"_snapshot"),Xe(this,"_unitId"),this._snapshot={...MZe,...e},this._unitId=(n=this._snapshot.id)!=null?n:Ie.generateRandomId(6),this._name$=new Pn(this._snapshot.title),this.name$=this._name$.asObservable()}get _activePage(){var e,n;const r=this._activePage$.getValue();if(!r){const i=(e=this.getPageOrder())==null?void 0:e[0];return i?(n=this.getPages())==null?void 0:n[i]:null}return r}setName(e){var n;this._snapshot.title=e,this._name$.next(e),this._unitId=(n=this._snapshot.id)!=null?n:Vl(6)}getRev(){return 0}incrementRev(){}setRev(e){}getSnapshot(){return this._snapshot}getUnitId(){return this._unitId}getPages(){var e;return(e=this._snapshot.body)==null?void 0:e.pages}getPageOrder(){var e;return(e=this._snapshot.body)==null?void 0:e.pageOrder}getPage(e){const n=this.getPages();return n==null?void 0:n[e]}getElementsByPage(e){var n;return(n=this.getPage(e))==null?void 0:n.pageElements}getElement(e,n){var r;return(r=this.getElementsByPage(e))==null?void 0:r[n]}getPageSize(){return this._snapshot.pageSize}getBlankPage(){const e=Vl(6);return{id:e,pageType:Ude.SLIDE,zIndex:10,title:e,description:"",pageBackgroundFill:{rgb:"rgb(255,255,255)"},pageElements:{}}}setActivePage(e){this._activePage$.next(e)}getActivePage(){return this._activePage}updatePage(e,n){this._snapshot.body&&(this._snapshot.body.pages[e]=n)}appendPage(e){var n;if(!this._snapshot.body)return;this._snapshot.body.pages[e.id]=e;const r=this._activePage,i=this._snapshot.body.pageOrder.indexOf((n=r==null?void 0:r.id)!=null?n:"");this._snapshot.body.pageOrder.splice(i+1,0,e.id)}};j(ohe,"SlideDataModel");let EG=ohe;var fJe=Object.defineProperty,mJe=Object.getOwnPropertyDescriptor,gJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?mJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fJe(e,n,i),i},"__decorateClass$4"),Qie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4");const Ce=er("univer.current");var wO;let UH=(wO=class extends et{constructor(t,e){super(),Xe(this,"_unitsByType",new Map),Xe(this,"_createHandler"),Xe(this,"_ctorByType",new Map),Xe(this,"_currentUnits",new Map),Xe(this,"_currentUnits$",new Pn(this._currentUnits)),Xe(this,"currentUnits$",this._currentUnits$.asObservable()),Xe(this,"_unitAdded$",new Zt),Xe(this,"unitAdded$",this._unitAdded$.asObservable()),Xe(this,"_unitDisposed$",new Zt),Xe(this,"unitDisposed$",this._unitDisposed$.asObservable()),Xe(this,"_focused$",new Pn(null)),Xe(this,"focused$",this._focused$.asObservable()),this._injector=t,this._contextService=e}dispose(){super.dispose(),this._focused$.complete()}__setCreateHandler(t){this._createHandler=t}createUnit(t,e,n){return this._createHandler(t,e,this._ctorByType.get(t),n)}registerCtorForType(t,e){return this._ctorByType.set(t,e),{dispose:j(()=>{this._ctorByType.delete(t)},"dispose")}}getCurrentTypeOfUnit$(t){return this.currentUnits$.pipe(pr(e=>{var n;return(n=e.get(t))!=null?n:null}),Hl())}getCurrentUnitForType(t){return this._currentUnits.get(t)}setCurrentUnitForType(t){const e=this._getUnitById(t);if(!e)throw new Error(`[UniverInstanceService]: no document with unitId ${t}!`);this._currentUnits.set(e[1],e[0]),this._currentUnits$.next(this._currentUnits)}getTypeOfUnitAdded$(t){return this._unitAdded$.pipe(mo(e=>e.type===t))}__addUnit(t,e){var n;const r=t.type;this._unitsByType.has(r)||this._unitsByType.set(r,[]);const i=this._unitsByType.get(r),a=t.getUnitId();if(i.findIndex(o=>o.getUnitId()===a)!==-1)throw new Error(`[UniverInstanceService]: cannot create a unit with the same unit id: ${a}.`);i.push(t),this._unitAdded$.next(t),((n=e==null?void 0:e.makeCurrent)==null||n)&&this.setCurrentUnitForType(t.getUnitId())}getTypeOfUnitDisposed$(t){return this.unitDisposed$.pipe(mo(e=>e.type===t))}getUnit(t,e){var n;const r=(n=this._getUnitById(t))==null?void 0:n[0];return e&&(r==null?void 0:r.type)!==e?null:r}getCurrentUniverDocInstance(){return this.getCurrentUnitForType(le.UNIVER_DOC)}getUniverDocInstance(t){return this.getUnit(t,le.UNIVER_DOC)}getUniverSheetInstance(t){return this.getUnit(t,le.UNIVER_SHEET)}getAllUnitsForType(t){var e;return(e=this._unitsByType.get(t))!=null?e:[]}changeDoc(t,e){const n=this.getAllUnitsForType(le.UNIVER_DOC),r=n.find(i=>i.getUnitId()===t);if(r!=null){const i=n.indexOf(r);n.splice(i,1)}this.__addUnit(e)}get focused(){var t;const e=this._focused$.getValue();return e?(t=this._getUnitById(e))==null?void 0:t[0]:null}focusUnit(t){this._focused$.next(t),this.focused instanceof b4?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!0),this._contextService.setContextValue(Fb,!1),this.setCurrentUnitForType(t)):this.focused instanceof sh?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!0),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!1),this.setCurrentUnitForType(t)):this.focused instanceof EG?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!0),this.setCurrentUnitForType(t)):(this._contextService.setContextValue(kb,!1),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!1))}getFocusedUnit(){return this.focused}getUnitType(t){const e=this._getUnitById(t);return e?e[1]:le.UNRECOGNIZED}disposeUnit(t){const e=this._getUnitById(t);if(!e)return!1;const[n,r]=e,i=this._unitsByType.get(r),a=i.indexOf(n);return i.splice(a,1),this._tryRemoveCurrentUnitForType(t,r),this._tryBlurUnitOnRemoval(t),this._unitDisposed$.next(n),!0}_tryRemoveCurrentUnitForType(t,e){const n=this.getCurrentUnitForType(e);(n==null?void 0:n.getUnitId())===t&&(this._currentUnits.set(e,null),this._currentUnits$.next(this._currentUnits))}_tryBlurUnitOnRemoval(t){var e;((e=this.focused)==null?void 0:e.getUnitId())===t&&this._focused$.next(null)}_getUnitById(t){for(const[e,n]of this._unitsByType){const r=n.find(i=>i.getUnitId()===t);if(r)return[r,e]}}},j(wO,"UniverInstanceService"),wO);UH=gJe([Qie(0,se(Wn)),Qie(1,ui)],UH);var pJe=Object.defineProperty,vJe=Object.getOwnPropertyDescriptor,she=j((t,e,n,r)=>{for(var i=r>1?void 0:r?vJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pJe(e,n,i),i},"__decorateClass$3"),lhe=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),DO;let b0=(DO=class extends et{constructor(t){super(),Xe(this,"_lifecycle$",new Pn(Vt.Starting)),Xe(this,"lifecycle$",this._lifecycle$.asObservable()),Xe(this,"_lock",!1),this._logService=t,this._reportProgress(Vt.Starting)}get stage(){return this._lifecycle$.getValue()}set stage(t){if(this._lock)throw new Error("[LifecycleService]: cannot set new stage when related logic is all handled!");if(t<this.stage)throw new Error("[LifecycleService]: lifecycle stage cannot go backward!");t!==this.stage&&(this._lock=!0,this._reportProgress(t),this._lifecycle$.next(t),this._lock=!1)}dispose(){this._lifecycle$.complete(),super.dispose()}subscribeWithPrevious(){return Qa(RG(this.stage),this._lifecycle$.pipe(wX(1))).pipe(m1e(t=>t===Vt.Steady))}_reportProgress(t){this._logService.debug("[LifecycleService]",`lifecycle progressed to "${$Ze[t]}".`)}},j(DO,"LifecycleService"),DO);b0=she([lhe(0,Ra)],b0);var IO;let cw=(IO=class extends et{constructor(t){super(),Xe(this,"_seenTokens",new Set),this._injector=t}initModulesOnStage(t){var e;(e=vE.get(t))==null||e.forEach(n=>{this._injector.has(n)&&!this._seenTokens.has(n)&&(this._injector.get(n),this._seenTokens.add(n))})}},j(IO,"LifecycleInitializerService"),IO);cw=she([lhe(0,se(Wn))],cw);function RG(t){switch(t){case Vt.Starting:return Hr(Vt.Starting);case Vt.Ready:return Hr(Vt.Starting,Vt.Ready);case Vt.Rendered:return Hr(Vt.Starting,Vt.Ready,Vt.Rendered);default:return Hr(Vt.Starting,Vt.Ready,Vt.Rendered,Vt.Steady)}}j(RG,"getLifecycleStagesAndBefore");const iM=er("ILocalStorageService"),uhe=class extends et{constructor(){super(),Xe(this,"_currentLocale$",new Pn(pf.ZH_CN)),Xe(this,"currentLocale$",this._currentLocale$.asObservable()),Xe(this,"_locales",null),Xe(this,"localeChanged$",new Zt),Xe(this,"t",j((e,...n)=>{if(!this._locales)throw new Error("[LocaleService]: Locale not initialized");const r=e.split("."),i=this.resolveKeyPath(this._locales[this._currentLocale],r);if(typeof i=="string"){let a=i;return n.forEach((o,s)=>{a=a.replace(`{${s}}`,o)}),a}else return e},"t")),this.disposeWithMe($t(()=>this.localeChanged$.complete()))}get _currentLocale(){return this._currentLocale$.value}load(e){var n;this._locales=Ie.deepMerge((n=this._locales)!=null?n:{},e)}setLocale(e){this._currentLocale$.next(e),this.localeChanged$.next()}getLocales(){var e;return(e=this._locales)==null?void 0:e[this._currentLocale]}getCurrentLocale(){return this._currentLocale}resolveKeyPath(e,n){const r=n.shift();if(r&&e&&r in e){const i=e[r];return n.length>0&&(typeof i=="object"||Array.isArray(i))?this.resolveKeyPath(i,n):i}return null}};j(uhe,"LocaleService");let sn=uhe;var mi=(t=>(t.INIT="init",t.FETCHING="fetching",t.DONE="done",t))(mi||{});const Qi=er("univer.permission-service");e2(Vt.Starting,Qi);const che=class extends et{constructor(){super(...arguments),Xe(this,"_permissionPointMap",new Map),Xe(this,"_permissionPointUpdate$",new Zt),Xe(this,"permissionPointUpdate$",this._permissionPointUpdate$.asObservable())}deletePermissionPoint(e){const n=this._permissionPointMap.get(e);n&&(n.complete(),this._permissionPointMap.delete(e))}addPermissionPoint(e){const n=e instanceof Pn,r=n?e.getValue():e;if(!r.id)return!1;if(this._permissionPointMap.get(r.id))throw new Error(`${r.id} PermissionPoint already exists`);return this._permissionPointMap.set(r.id,n?e:new Pn(r)),this._permissionPointUpdate$.next(r),!0}updatePermissionPoint(e,n){const r=this._permissionPointMap.get(e);if(!r)return;const i=r.getValue();i.value=n,i.status=mi.DONE,r.next(i),this._permissionPointUpdate$.next(i)}clearPermissionMap(){this._permissionPointMap.clear()}getPermissionPoint(e){const n=this._permissionPointMap.get(e);if(n)return n.getValue()}getPermissionPoint$(e){const n=this._permissionPointMap.get(e);if(n)return n}composePermission$(e){const n=e.map(r=>{var i;const a=(i=this._permissionPointMap)==null?void 0:i.get(r);if(!a)throw new Error(`[PermissionService]: ${r} permissionPoint does not exist!`);return a.asObservable()});return Sa(n).pipe(pr(r=>r))}composePermission(e){return e.map(n=>{var r;const i=(r=this._permissionPointMap)==null?void 0:r.get(n);if(!i)throw new Error(`[PermissionService]: ${n} permissionPoint does not exist!`);return i.getValue()})}getAllPermissionPoint(){const e=new Map;return this._permissionPointMap.forEach((n,r)=>{e.set(r,n)}),e}};j(che,"PermissionService");let _Je=che;const dhe=Symbol("DependentOn"),_E=class extends et{onStarting(e){}onReady(){}onRendered(){}onSteady(){}getUniverInstanceType(){return this.constructor.type}getPluginName(){return this.constructor.pluginName}};j(_E,"Plugin"),Xe(_E,"pluginName"),Xe(_E,"type",le.UNIVER_UNKNOWN);let Cs=_E;const hhe=class{constructor(){Xe(this,"_plugins",[])}addPlugin(e){this._plugins.push(e)}removePlugins(){const e=this._plugins.slice();return this._plugins.length=0,e}forEachPlugin(e){this._plugins.forEach(e)}};j(hhe,"PluginStore");let CJe=hhe;const fhe=class{constructor(){Xe(this,"_pluginsRegistered",[])}registerPlugin(e,n){this._pluginsRegistered.push({plugin:e,options:n})}getRegisterPlugins(){return this._pluginsRegistered.slice()}removePlugins(){this._pluginsRegistered=[]}};j(fhe,"PluginRegistry");let SJe=fhe;var bJe=Object.defineProperty,yJe=Object.getOwnPropertyDescriptor,mhe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?yJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bJe(e,n,i),i},"__decorateClass$2"),D5=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const EJe=4;function yd(...t){return function(e){e[dhe]=t}}j(yd,"DependentOn");var PO;let dw=(PO=class{constructor(t){Xe(this,"_pluginHolderForUniver"),Xe(this,"_pluginHoldersForTypes",new Map),Xe(this,"_seenPlugins",new Set),Xe(this,"_flushTimer"),this._injector=t,this._pluginHolderForUniver=this._injector.createInstance(hw,this._checkPluginSeen.bind(this),this._immediateInitPlugin.bind(this)),this._pluginHolderForUniver.start()}dispose(){this._clearFlushTimer();for(const t of this._pluginHoldersForTypes.values())t.dispose();this._pluginHolderForUniver.dispose()}registerPlugin(t,e){this._assertPluginValid(t),this._scheduleInitPlugin();const{type:n}=t;n===le.UNIVER_UNKNOWN?(this._pluginHolderForUniver.register(t,e),this._pluginHolderForUniver.flush()):this._ensurePluginHolderForType(n).register(t,e)}startPluginForType(t){this._ensurePluginHolderForType(t).start()}_ensurePluginHolderForType(t){if(!this._pluginHoldersForTypes.has(t)){const e=this._injector.createInstance(hw,this._checkPluginSeen.bind(this),this._immediateInitPlugin.bind(this));return this._pluginHoldersForTypes.set(t,e),e}return this._pluginHoldersForTypes.get(t)}_immediateInitPlugin(t){this._seenPlugins.add(t.pluginName),this._ensurePluginHolderForType(t.type).immediateInitPlugin(t)}_checkPluginSeen(t){return this._seenPlugins.has(t.pluginName)}_assertPluginValid(t){const{type:e,pluginName:n}=t;if(e===le.UNRECOGNIZED)throw new Error(`[PluginService]: invalid plugin type for ${t.name}. Please assign a "type" to your plugin.`);if(!n)throw new Error(`[PluginService]: no plugin name for ${t.name}. Please assign a "pluginName" to your plugin.`);if(this._seenPlugins.has(n))throw new Error(`[PluginService]: duplicated plugin name for "${n}". Maybe a plugin that dependents on "${n} has already registered it. In that case please register "${n}" before the that plugin.`);this._seenPlugins.add(t.pluginName)}_scheduleInitPlugin(){this._flushTimer===void 0&&(this._flushTimer=setTimeout(()=>{this._pluginHolderForUniver.started||this._pluginHolderForUniver.start(),this._flushPlugins(),this._clearFlushTimer()},EJe))}_clearFlushTimer(){this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=void 0)}_flushPlugins(){this._pluginHolderForUniver.flush();for(const[t,e]of this._pluginHoldersForTypes)e.started&&e.flush()}},j(PO,"PluginService"),PO);dw=mhe([D5(0,se(Wn))],dw);var MO;let hw=(MO=class extends et{constructor(t,e,n,r,i,a){super(),Xe(this,"_started",!1),Xe(this,"_warnedAboutOnStartingDeprecation",!1),Xe(this,"_pluginRegistry",new SJe),Xe(this,"_pluginStore",new CJe),Xe(this,"_awaitingPlugins",[]),this._checkPluginRegistered=t,this._registerPlugin=e,this._logService=n,this._injector=r,this._lifecycleService=i,this._lifecycleInitializerService=a,this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(wX(1)).subscribe(o=>{this._awaitingPlugins.forEach(s=>this._runStage(s,o))}))}get started(){return this._started}dispose(){super.dispose(),this._pluginStore.forEachPlugin(t=>t.dispose()),this._pluginStore.removePlugins(),this._pluginRegistry.removePlugins(),this._awaitingPlugins.length=0}register(t,e){this._pluginRegistry.registerPlugin(t,e)}immediateInitPlugin(t){const e=this._initPlugin(t,void 0);this._pluginsRunLifecycle([e])}start(){this._started||(this._started=!0,this.flush())}flush(){if(!this._started)return;const t=this._pluginRegistry.getRegisterPlugins().map(({plugin:e,options:n})=>this._initPlugin(e,n));t.length&&(this._pluginsRunLifecycle(t),this._pluginRegistry.removePlugins())}_initPlugin(t,e){const n=t[dhe];if(n){const i=j(()=>{const a=n.find(o=>!this._checkPluginRegistered(o));return a?(this._logService.debug("[PluginService]",`Plugin "${t.pluginName}" depends on "${a.pluginName}" which is not registered. Univer will automatically register it with default configuration.`),this._registerPlugin(a,void 0),!0):!1},"exhaustUnregisteredDependents");for(;i(););}const r=this._injector.createInstance(t,e);return this._pluginStore.addPlugin(r),this._logService.debug("[PluginService]",`Plugin "${r.getPluginName()}" registered.`),r}_pluginsRunLifecycle(t){RG(this._lifecycleService.stage).subscribe(e=>this._runStage(t,e)),this._awaitingPlugins.push(t)}_runStage(t,e){t.forEach(n=>{switch(e){case Vt.Starting:n.onStarting.length>0&&n.onStarting!==Cs.prototype.onStarting&&!this._warnedAboutOnStartingDeprecation&&(this._logService.warn("[PluginService]",n.onStarting.length,`Plugin "${n.getPluginName()}" is using deprecated "onStarting" method with arguments. Please use "this._injector" instead.`),this._warnedAboutOnStartingDeprecation=!0),n.onStarting(this._injector);break;case Vt.Ready:n.onReady();break;case Vt.Rendered:n.onRendered();break;case Vt.Steady:n.onSteady();break}}),this._lifecycleInitializerService.initModulesOnStage(e)}},j(MO,"PluginHolder"),MO);hw=mhe([D5(2,Ra),D5(3,se(Wn)),D5(4,se(b0)),D5(5,se(cw))],hw);function Mp(t,e){if(!e)return t;const n=[];for(const r of t){const i=e.find(([a])=>a===r[0]);if(i){if(i[1]===null)continue;n.push([r[0],i[1]])}else n.push(r)}return n}j(Mp,"mergeOverrideWithDependencies");const AG=er("resource-loader-service");e2(Vt.Ready,AG);const ghe=class extends et{constructor(){super(...arguments),Xe(this,"_resourceMap",new Map),Xe(this,"_register$",new Zt),Xe(this,"register$",this._register$.asObservable())}getAllResourceHooks(){return[...this._resourceMap.values()]}getResources(e,n){return n?this.getResourcesByType(e,n):this.getAllResourceHooks().map(r=>{const i=r.toJson(e);return{name:r.pluginName,data:i}})}getResourcesByType(e,n){return this.getAllResourceHooks().filter(r=>r.businesses.includes(n)).map(r=>{const i=r.toJson(e);return{name:r.pluginName,data:i}})}registerPluginResource(e){const n=e.pluginName;if(this._resourceMap.has(n))throw new Error(`the pluginName is registered {${n}}`);return this._resourceMap.set(n,e),this._register$.next(e),$t(()=>this._resourceMap.delete(n))}disposePluginResource(e){this._resourceMap.delete(e)}loadResources(e,n){this.getAllResourceHooks().forEach(r=>{var i;const a=(i=n==null?void 0:n.find(o=>o.name===r.pluginName))==null?void 0:i.data;if(a)try{const o=r.parseJson(a);r.onLoad(e,o)}catch{console.error("LoadResources Error!")}})}unloadResources(e){this.getAllResourceHooks().forEach(n=>{n.onUnLoad(e)})}dispose(){this._register$.complete(),this._resourceMap.clear()}};j(ghe,"ResourceManagerService");let RJe=ghe;const phe=class extends et{constructor(){super(),Xe(this,"_currentTheme"),Xe(this,"_currentTheme$",new Pn({})),Xe(this,"currentTheme$",this._currentTheme$.asObservable()),this.disposeWithMe($t(()=>this._currentTheme$.complete()))}getCurrentTheme(){if(!this._currentTheme)throw new Error("[ThemeService]: current theme is not set!");return this._currentTheme}setTheme(e){this._currentTheme=e,this._currentTheme$.next(e)}};j(phe,"ThemeService");let Ja=phe;var AJe=Object.defineProperty,wJe=Object.getOwnPropertyDescriptor,DJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?wJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&AJe(e,n,i),i},"__decorateClass$1"),TO=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const xn=er("univer.undo-redo.service"),IJe=20,vhe=class{dispose(){}async dispatchToHandlers(){return!1}};j(vhe,"MultiImplementationCommand");let _he=vhe;const HH="univer.command.redo",jH="univer.command.undo",TC=new class extends _he{constructor(){super(...arguments),Xe(this,"type",Se.COMMAND),Xe(this,"id",jH)}async handler(t){const e=t.get(xn),n=e.pitchTopUndoElement();if(!n)return!1;const r=t.get(me);return ti(n.undoMutations,r)?(e.popUndoToRedo(),!0):!1}},LC=new class extends _he{constructor(){super(...arguments),Xe(this,"type",Se.COMMAND),Xe(this,"id",HH)}async handler(t){const e=t.get(xn),n=e.pitchTopRedoElement();if(!n)return!1;const r=t.get(me);return ti(n.redoMutations,r)?(e.popRedoToUndo(),!0):!1}};var LO;let $H=(LO=class extends et{constructor(t,e,n){super(),Xe(this,"undoRedoStatus$"),Xe(this,"_undoRedoStatus$",new Pn({undos:0,redos:0})),Xe(this,"_undoStacks",new Map),Xe(this,"_redoStacks",new Map),Xe(this,"_batchingStatus",new Map),this._univerInstanceService=t,this._commandService=e,this._contextService=n,this.undoRedoStatus$=this._undoRedoStatus$.asObservable(),this.disposeWithMe(this._commandService.registerCommand(TC)),this.disposeWithMe(this._commandService.registerCommand(LC)),this.disposeWithMe($t(()=>this._undoRedoStatus$.complete())),this.disposeWithMe($t(this._univerInstanceService.focused$.subscribe(()=>this._updateStatus())))}pushUndoRedo(t){const{unitID:e}=t,n=this._getRedoStack(e,!0),r=this._getUndoStack(e,!0);if(n.length=0,this._batchingStatus.has(t.unitID)){const a=this._batchingStatus.get(t.unitID),o=this._pitchUndoElement(t.unitID);a===0||!o?(i(t),this._batchingStatus.set(t.unitID,1)):this._tryBatchingElements(o,t)}else i(t);function i(a){r.push(a),r.length>IJe&&r.splice(0,1)}j(i,"appendNewItem"),this._updateStatus()}clearUndoRedo(t){const e=this._getRedoStack(t);e&&(e.length=0);const n=this._getUndoStack(t);n&&(n.length=0),this._updateStatus()}pitchTopUndoElement(){const t=this._getFocusedUnitId();return this._pitchUndoElement(t)}pitchTopRedoElement(){const t=this._getFocusedUnitId();return this._pitchRedoElement(t)}_pitchUndoElement(t){const e=this._getUndoStack(t);return e!=null&&e.length?e[e.length-1]:null}_pitchRedoElement(t){const e=this._getRedoStack(t);return e!=null&&e.length?e[e.length-1]:null}popUndoToRedo(){const t=this._getUndoStackForFocused().pop();t&&(this._getRedoStackForFocused().push(t),this._updateStatus())}popRedoToUndo(){const t=this._getRedoStackForFocused().pop();t&&(this._getUndoStackForFocused().push(t),this._updateStatus())}__tempBatchingUndoRedo(t){if(this._batchingStatus.has(t))throw new Error("[LocalUndoRedoService]: cannot batching undo redo twice at the same time!");return this._batchingStatus.set(t,0),$t(()=>this._batchingStatus.delete(t))}_updateStatus(){var t,e;const n=this._getFocusedUnitId(),r=n&&((t=this._undoStacks.get(n))==null?void 0:t.length)||0,i=n&&((e=this._redoStacks.get(n))==null?void 0:e.length)||0;this._undoRedoStatus$.next({undos:r,redos:i})}_getUndoStack(t,e=!1){let n=this._undoStacks.get(t);return!n&&e&&(n=[],this._undoStacks.set(t,n)),n||null}_getRedoStack(t,e=!1){let n=this._redoStacks.get(t);return!n&&e&&(n=[],this._redoStacks.set(t,n)),n||null}_getUndoStackForFocused(){const t=this._getFocusedUnitId();if(!t)throw new Error("No focused univer instance!");return this._getUndoStack(t,!0)}_getRedoStackForFocused(){const t=this._getFocusedUnitId();if(!t)throw new Error("No focused univer instance!");return this._getRedoStack(t,!0)}_tryBatchingElements(t,e){t.redoMutations.push(...e.redoMutations),t.undoMutations.push(...e.undoMutations)}_getFocusedUnitId(){var t,e,n,r;let i="";const a=this._contextService.getContextValue(ms),o=this._contextService.getContextValue(of),s=this._contextService.getContextValue(ha);return a?o?i=Ki:s?i=Yo:i=(e=(t=this._univerInstanceService.getFocusedUnit())==null?void 0:t.getUnitId())!=null?e:"":i=(r=(n=this._univerInstanceService.getFocusedUnit())==null?void 0:n.getUnitId())!=null?r:"",i}},j(LO,"LocalUndoRedoService"),LO);$H=DJe([TO(0,Ce),TO(1,me),TO(2,ui)],$H);function Che(t){return!(t.length===0||t.length>31||t.startsWith("'")||t.endsWith("'")||/[:\\\/\?\*\[\]]/.test(t))}j(Che,"nameCharacterCheck");function PJe(t){return new Promise(e=>setTimeout(e,t))}j(PJe,"awaitTime");const MJe=j((t,e)=>e.length===t.length&&!t.some(n=>e.some(r=>!ft.equals(r,n))),"isRangesEqual"),TJe=j((t,e)=>e.length===t.length&&t.every((n,r)=>{const i=e[r];return i.unitId===n.unitId&&i.sheetId===n.sheetId&&ft.equals(n.range,i.range)}),"isUnitRangesEqual"),She=["script","style","meta","comment","link"];var F6=(t=>(t[t.INFO=0]="INFO",t[t.STOP=1]="STOP",t[t.WARNING=2]="WARNING",t))(F6||{}),Wt=(t=>(t.BETWEEN="between",t.EQUAL="equal",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.NOT_BETWEEN="notBetween",t.NOT_EQUAL="notEqual",t))(Wt||{}),kl=(t=>(t[t.TEXT=0]="TEXT",t[t.ARROW=1]="ARROW",t[t.CUSTOM=2]="CUSTOM",t))(kl||{}),q1=(t=>(t.VALID="valid",t.INVALID="invalid",t.VALIDATING="validating",t))(q1||{}),ia=(t=>(t.CUSTOM="custom",t.LIST="list",t.LIST_MULTIPLE="listMultiple",t.NONE="none",t.TEXT_LENGTH="textLength",t.DATE="date",t.TIME="time",t.WHOLE="whole",t.DECIMAL="decimal",t.CHECKBOX="checkbox",t))(ia||{}),LJe=Object.defineProperty,xJe=Object.getOwnPropertyDescriptor,OJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?xJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&LJe(e,n,i),i},"__decorateClass"),Kie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),xO;let WH=(xO=class extends et{constructor(t,e){super(),this._resourceManagerService=t,this._univerInstanceService=e,this._init()}_init(){const t=j(e=>{e.businesses.forEach(n=>{switch(n){case le.UNRECOGNIZED:case le.UNIVER_UNKNOWN:case le.UNIVER_SLIDE:case le.UNIVER_DOC:{this._univerInstanceService.getAllUnitsForType(le.UNIVER_DOC).forEach(r=>{const i=(r.getSnapshot().resources||[]).find(a=>a.name===e.pluginName);if(i)try{const a=e.parseJson(i.data);e.onLoad(r.getUnitId(),a)}catch{console.error(`Load Document{${r.getUnitId()}} Resources{${e.pluginName}} Data Error.`)}});break}case le.UNIVER_SHEET:this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(r=>{const i=(r.getSnapshot().resources||[]).find(a=>a.name===e.pluginName);if(i)try{const a=e.parseJson(i.data);e.onLoad(r.getUnitId(),a)}catch{console.error(`Load Workbook{${r.getUnitId()}} Resources{${e.pluginName}} Data Error.`)}})}})},"handleHookAdd");this._resourceManagerService.getAllResourceHooks().forEach(e=>t(e)),this.disposeWithMe(this._resourceManagerService.register$.subscribe(e=>t(e))),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).subscribe(e=>{this._resourceManagerService.loadResources(e.getUnitId(),e.getSnapshot().resources)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_DOC).subscribe(e=>{const n=e.getUnitId();oh(n)||this._resourceManagerService.loadResources(e.getUnitId(),e.getSnapshot().resources)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(e=>{this._resourceManagerService.unloadResources(e.getUnitId())})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_DOC).subscribe(e=>{this._resourceManagerService.unloadResources(e.getUnitId())}))}saveUnit(t){const e=this._univerInstanceService.getUnit(t);if(!e)return null;const n=this._resourceManagerService.getResources(t,e.type),r=Ie.deepClone(e.getSnapshot());return r.resources=n,r}},j(xO,"ResourceLoaderService"),xO);WH=OJe([Kie(0,se(J0)),Kie(1,se(Ce))],WH);const bhe=class{constructor(e={},n){Xe(this,"_startedTypes",new Set),Xe(this,"_injector");const r=this._injector=yhe(n,e==null?void 0:e.override),{theme:i,locale:a,locales:o,logLevel:s}=e;i&&this._injector.get(Ja).setTheme(i),o&&this._injector.get(sn).load(o),a&&this._injector.get(sn).setLocale(a),s&&this._injector.get(Ra).setLogLevel(s),this._init(r)}get _univerInstanceService(){return this._injector.get(Ce)}get _pluginService(){return this._injector.get(dw)}__getInjector(){return this._injector}dispose(){this._injector.dispose()}setLocale(e){this._injector.get(sn).setLocale(e)}createUnit(e,n){return this._univerInstanceService.createUnit(e,n)}createUniverSheet(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverSheet is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_SHEET,e)}createUniverDoc(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverDoc is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_DOC,e)}createUniverSlide(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverSlide is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_SLIDE,e)}_init(e){this._univerInstanceService.registerCtorForType(le.UNIVER_SHEET,b4),this._univerInstanceService.registerCtorForType(le.UNIVER_DOC,sh),this._univerInstanceService.registerCtorForType(le.UNIVER_SLIDE,EG);const n=e.get(Ce);n.__setCreateHandler((r,i,a,o)=>{if(!this._startedTypes.has(r)){this._pluginService.startPluginForType(r),this._startedTypes.add(r);const l=e.createInstance(a,i);return n.__addUnit(l,o),this._tryProgressToReady(),l}const s=e.createInstance(a,i);return n.__addUnit(s,o),s})}_tryProgressToReady(){this._injector.get(b0).stage<Vt.Ready&&(this._injector.get(b0).stage=Vt.Ready)}registerPlugin(e,n){this._pluginService.registerPlugin(e,n)}};j(bhe,"Univer");let NJe=bhe;function yhe(t,e){const n=Mp([[zf],[sn],[Ja],[b0],[cw],[dw],[vs],[Ce,{useClass:UH}],[Qi,{useClass:_Je}],[Ra,{useClass:FKe,lazy:!0}],[me,{useClass:_H}],[xn,{useClass:$H,lazy:!0}],[Za,{useClass:KZe}],[ui,{useClass:kKe}],[J0,{useClass:RJe,lazy:!0}],[AG,{useClass:WH,lazy:!0}],[D7,{useClass:FH,lazy:!0}]],e);return t?t.createChild(n):new Wn(n)}j(yhe,"createUniverInjector");wce();function Ehe(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ehe(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function hr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ehe(t))&&(r&&(r+=" "),r+=e);return r}var Rhe={exports:{}},Ec={},Ahe={exports:{}},whe={};/** |
|
|
* @license React |
|
|
* scheduler.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/(function(t){function e(z,F){var H=z.length;z.push(F);e:for(;0<H;){var W=H-1>>>1,K=z[W];if(0<i(K,F))z[W]=F,z[H]=K,H=W;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var F=z[0],H=z.pop();if(H!==F){z[0]=H;e:for(var W=0,K=z.length,G=K>>>1;W<G;){var te=2*(W+1)-1,Y=z[te],ae=te+1,ie=z[ae];if(0>i(Y,H))ae<K&&0>i(ie,Y)?(z[W]=ie,z[ae]=H,W=ae):(z[W]=Y,z[te]=H,W=te);else if(ae<K&&0>i(ie,H))z[W]=ie,z[ae]=H,W=ae;else break e}}return F}function i(z,F){var H=z.sortIndex-F.sortIndex;return H!==0?H:z.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,h=3,f=!1,m=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(z){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=z)r(u),F.sortIndex=F.expirationTime,e(l,F);else break;F=n(u)}}function S(z){if(g=!1,C(z),!m)if(n(l)!==null)m=!0,V(b);else{var F=n(u);F!==null&&X(S,F.startTime-z)}}function b(z,F){m=!1,g&&(g=!1,v(w),w=-1),f=!0;var H=h;try{for(C(F),d=n(l);d!==null&&(!(d.expirationTime>F)||z&&!L());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var K=W(d.expirationTime<=F);F=t.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&r(l),C(F)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var te=n(u);te!==null&&X(S,te.startTime-F),G=!1}return G}finally{d=null,h=H,f=!1}}var y=!1,A=null,w=-1,P=5,M=-1;function L(){return!(t.unstable_now()-M<P)}function k(){if(A!==null){var z=t.unstable_now();M=z;var F=!0;try{F=A(!0,z)}finally{F?O():(y=!1,A=null)}}else y=!1}var O;if(typeof _=="function")O=function(){_(k)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,B=$.port2;$.port1.onmessage=k,O=function(){B.postMessage(null)}}else O=function(){p(k,0)};function V(z){A=z,y||(y=!0,O())}function X(z,F){w=p(function(){z(t.unstable_now())},F)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,V(b))},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(z){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var H=h;h=F;try{return z()}finally{h=H}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(z,F){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var H=h;h=z;try{return F()}finally{h=H}},t.unstable_scheduleCallback=function(z,F,H){var W=t.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?W+H:W):H=W,z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=H+K,z={id:c++,callback:F,priorityLevel:z,startTime:H,expirationTime:K,sortIndex:-1},H>W?(z.sortIndex=H,e(u,z),n(l)===null&&z===n(u)&&(g?(v(w),w=-1):g=!0,X(S,H-W))):(z.sortIndex=K,e(l,z),m||f||(m=!0,V(b))),z},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(z){var F=h;return function(){var H=h;h=F;try{return z.apply(this,arguments)}finally{h=H}}}})(whe);Ahe.exports=whe;var kJe=Ahe.exports;/** |
|
|
* @license React |
|
|
* react-dom.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var FJe=E,vc=kJe;function _n(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Dhe=new Set,Av={};function Tp(t,e){y4(t,e),y4(t+"Capture",e)}function y4(t,e){for(Av[t]=e,t=0;t<e.length;t++)Dhe.add(e[t])}var vf=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zH=Object.prototype.hasOwnProperty,VJe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Zie={},Jie={};function BJe(t){return zH.call(Jie,t)?!0:zH.call(Zie,t)?!1:VJe.test(t)?Jie[t]=!0:(Zie[t]=!0,!1)}function UJe(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function HJe(t,e,n,r){if(e===null||typeof e>"u"||UJe(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Gl(t,e,n,r,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Js={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Js[t]=new Gl(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Js[e]=new Gl(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Js[t]=new Gl(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Js[t]=new Gl(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Js[t]=new Gl(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Js[t]=new Gl(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Js[t]=new Gl(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Js[t]=new Gl(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Js[t]=new Gl(t,5,!1,t.toLowerCase(),null,!1,!1)});var wG=/[\-:]([a-z])/g;function DG(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Js[t]=new Gl(t,1,!1,t.toLowerCase(),null,!1,!1)});Js.xlinkHref=new Gl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Js[t]=new Gl(t,1,!1,t.toLowerCase(),null,!0,!0)});function IG(t,e,n,r){var i=Js.hasOwnProperty(e)?Js[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(HJe(e,n,i,r)&&(n=null),r||i===null?BJe(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var qf=FJe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vb=Symbol.for("react.element"),h6=Symbol.for("react.portal"),f6=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),qH=Symbol.for("react.profiler"),Ihe=Symbol.for("react.provider"),Phe=Symbol.for("react.context"),MG=Symbol.for("react.forward_ref"),YH=Symbol.for("react.suspense"),XH=Symbol.for("react.suspense_list"),TG=Symbol.for("react.memo"),xm=Symbol.for("react.lazy"),Mhe=Symbol.for("react.offscreen"),eae=Symbol.iterator;function I9(t){return t===null||typeof t!="object"?null:(t=eae&&t[eae]||t["@@iterator"],typeof t=="function"?t:null)}var Ro=Object.assign,OO;function I5(t){if(OO===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);OO=e&&e[1]||""}return` |
|
|
`+OO+t}var NO=!1;function kO(t,e){if(!t||NO)return"";NO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` |
|
|
`),a=r.stack.split(` |
|
|
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=` |
|
|
`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{NO=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?I5(t):""}function jJe(t){switch(t.tag){case 5:return I5(t.type);case 16:return I5("Lazy");case 13:return I5("Suspense");case 19:return I5("SuspenseList");case 0:case 2:case 15:return t=kO(t.type,!1),t;case 11:return t=kO(t.type.render,!1),t;case 1:return t=kO(t.type,!0),t;default:return""}}function GH(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case f6:return"Fragment";case h6:return"Portal";case qH:return"Profiler";case PG:return"StrictMode";case YH:return"Suspense";case XH:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Phe:return(t.displayName||"Context")+".Consumer";case Ihe:return(t._context.displayName||"Context")+".Provider";case MG:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case TG:return e=t.displayName||null,e!==null?e:GH(t.type)||"Memo";case xm:e=t._payload,t=t._init;try{return GH(t(e))}catch{}}return null}function $Je(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return GH(e);case 8:return e===PG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function y0(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function The(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function WJe(t){var e=The(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Bb(t){t._valueTracker||(t._valueTracker=WJe(t))}function Lhe(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=The(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function fw(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function QH(t,e){var n=e.checked;return Ro({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function tae(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=y0(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function xhe(t,e){e=e.checked,e!=null&&IG(t,"checked",e,!1)}function KH(t,e){xhe(t,e);var n=y0(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ZH(t,e.type,n):e.hasOwnProperty("defaultValue")&&ZH(t,e.type,y0(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function nae(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function ZH(t,e,n){(e!=="number"||fw(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var P5=Array.isArray;function V6(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+y0(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function JH(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(_n(91));return Ro({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function rae(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(_n(92));if(P5(n)){if(1<n.length)throw Error(_n(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:y0(n)}}function Ohe(t,e){var n=y0(e.value),r=y0(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function iae(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Nhe(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ej(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Nhe(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ub,khe=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Ub=Ub||document.createElement("div"),Ub.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ub.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function wv(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var l8={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zJe=["Webkit","ms","Moz","O"];Object.keys(l8).forEach(function(t){zJe.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),l8[e]=l8[t]})});function Fhe(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||l8.hasOwnProperty(t)&&l8[t]?(""+e).trim():e+"px"}function Vhe(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fhe(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var qJe=Ro({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tj(t,e){if(e){if(qJe[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(_n(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(_n(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(_n(61))}if(e.style!=null&&typeof e.style!="object")throw Error(_n(62))}}function nj(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rj=null;function LG(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ij=null,B6=null,U6=null;function aae(t){if(t=NC(t)){if(typeof ij!="function")throw Error(_n(280));var e=t.stateNode;e&&(e=uM(e),ij(t.stateNode,t.type,e))}}function Bhe(t){B6?U6?U6.push(t):U6=[t]:B6=t}function Uhe(){if(B6){var t=B6,e=U6;if(U6=B6=null,aae(t),e)for(t=0;t<e.length;t++)aae(e[t])}}function Hhe(t,e){return t(e)}function jhe(){}var FO=!1;function $he(t,e,n){if(FO)return t(e,n);FO=!0;try{return Hhe(t,e,n)}finally{FO=!1,(B6!==null||U6!==null)&&(jhe(),Uhe())}}function Dv(t,e){var n=t.stateNode;if(n===null)return null;var r=uM(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(_n(231,e,typeof n));return n}var aj=!1;if(vf)try{var P9={};Object.defineProperty(P9,"passive",{get:function(){aj=!0}}),window.addEventListener("test",P9,P9),window.removeEventListener("test",P9,P9)}catch{aj=!1}function YJe(t,e,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var u8=!1,mw=null,gw=!1,oj=null,XJe={onError:function(t){u8=!0,mw=t}};function GJe(t,e,n,r,i,a,o,s,l){u8=!1,mw=null,YJe.apply(XJe,arguments)}function QJe(t,e,n,r,i,a,o,s,l){if(GJe.apply(this,arguments),u8){if(u8){var u=mw;u8=!1,mw=null}else throw Error(_n(198));gw||(gw=!0,oj=u)}}function Lp(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Whe(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function oae(t){if(Lp(t)!==t)throw Error(_n(188))}function KJe(t){var e=t.alternate;if(!e){if(e=Lp(t),e===null)throw Error(_n(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return oae(i),t;if(a===r)return oae(i),e;a=a.sibling}throw Error(_n(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(_n(189))}}if(n.alternate!==r)throw Error(_n(190))}if(n.tag!==3)throw Error(_n(188));return n.stateNode.current===n?t:e}function zhe(t){return t=KJe(t),t!==null?qhe(t):null}function qhe(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=qhe(t);if(e!==null)return e;t=t.sibling}return null}var Yhe=vc.unstable_scheduleCallback,sae=vc.unstable_cancelCallback,ZJe=vc.unstable_shouldYield,JJe=vc.unstable_requestPaint,Bo=vc.unstable_now,eet=vc.unstable_getCurrentPriorityLevel,xG=vc.unstable_ImmediatePriority,Xhe=vc.unstable_UserBlockingPriority,pw=vc.unstable_NormalPriority,tet=vc.unstable_LowPriority,Ghe=vc.unstable_IdlePriority,aM=null,Xd=null;function net(t){if(Xd&&typeof Xd.onCommitFiberRoot=="function")try{Xd.onCommitFiberRoot(aM,t,void 0,(t.current.flags&128)===128)}catch{}}var id=Math.clz32?Math.clz32:aet,ret=Math.log,iet=Math.LN2;function aet(t){return t>>>=0,t===0?32:31-(ret(t)/iet|0)|0}var Hb=64,jb=4194304;function M5(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vw(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,a=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=M5(s):(a&=o,a!==0&&(r=M5(a)))}else o=n&~i,o!==0?r=M5(o):a!==0&&(r=M5(a));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-id(e),i=1<<n,r|=t[n],e&=~i;return r}function oet(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function set(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,a=t.pendingLanes;0<a;){var o=31-id(a),s=1<<o,l=i[o];l===-1?(!(s&n)||s&r)&&(i[o]=oet(s,e)):l<=e&&(t.expiredLanes|=s),a&=~s}}function sj(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Qhe(){var t=Hb;return Hb<<=1,!(Hb&4194240)&&(Hb=64),t}function VO(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function xC(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-id(e),t[e]=n}function uet(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-id(n),a=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~a}}function OG(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-id(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var wa=0;function Khe(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Zhe,NG,Jhe,efe,tfe,lj=!1,$b=[],t0=null,n0=null,r0=null,Iv=new Map,Pv=new Map,Nm=[],cet="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function lae(t,e){switch(t){case"focusin":case"focusout":t0=null;break;case"dragenter":case"dragleave":n0=null;break;case"mouseover":case"mouseout":r0=null;break;case"pointerover":case"pointerout":Iv.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pv.delete(e.pointerId)}}function M9(t,e,n,r,i,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},e!==null&&(e=NC(e),e!==null&&NG(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function det(t,e,n,r,i){switch(e){case"focusin":return t0=M9(t0,t,e,n,r,i),!0;case"dragenter":return n0=M9(n0,t,e,n,r,i),!0;case"mouseover":return r0=M9(r0,t,e,n,r,i),!0;case"pointerover":var a=i.pointerId;return Iv.set(a,M9(Iv.get(a)||null,t,e,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Pv.set(a,M9(Pv.get(a)||null,t,e,n,r,i)),!0}return!1}function nfe(t){var e=_g(t.target);if(e!==null){var n=Lp(e);if(n!==null){if(e=n.tag,e===13){if(e=Whe(n),e!==null){t.blockedOn=e,tfe(t.priority,function(){Jhe(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function CE(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=uj(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);rj=r,n.target.dispatchEvent(r),rj=null}else return e=NC(n),e!==null&&NG(e),t.blockedOn=n,!1;e.shift()}return!0}function uae(t,e,n){CE(t)&&n.delete(e)}function het(){lj=!1,t0!==null&&CE(t0)&&(t0=null),n0!==null&&CE(n0)&&(n0=null),r0!==null&&CE(r0)&&(r0=null),Iv.forEach(uae),Pv.forEach(uae)}function T9(t,e){t.blockedOn===e&&(t.blockedOn=null,lj||(lj=!0,vc.unstable_scheduleCallback(vc.unstable_NormalPriority,het)))}function Mv(t){function e(i){return T9(i,t)}if(0<$b.length){T9($b[0],t);for(var n=1;n<$b.length;n++){var r=$b[n];r.blockedOn===t&&(r.blockedOn=null)}}for(t0!==null&&T9(t0,t),n0!==null&&T9(n0,t),r0!==null&&T9(r0,t),Iv.forEach(e),Pv.forEach(e),n=0;n<Nm.length;n++)r=Nm[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Nm.length&&(n=Nm[0],n.blockedOn===null);)nfe(n),n.blockedOn===null&&Nm.shift()}var H6=qf.ReactCurrentBatchConfig,_w=!0;function fet(t,e,n,r){var i=wa,a=H6.transition;H6.transition=null;try{wa=1,kG(t,e,n,r)}finally{wa=i,H6.transition=a}}function met(t,e,n,r){var i=wa,a=H6.transition;H6.transition=null;try{wa=4,kG(t,e,n,r)}finally{wa=i,H6.transition=a}}function kG(t,e,n,r){if(_w){var i=uj(t,e,n,r);if(i===null)XO(t,e,r,Cw,n),lae(t,r);else if(det(i,t,e,n,r))r.stopPropagation();else if(lae(t,r),e&4&&-1<cet.indexOf(t)){for(;i!==null;){var a=NC(i);if(a!==null&&Zhe(a),a=uj(t,e,n,r),a===null&&XO(t,e,r,Cw,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else XO(t,e,r,null,n)}}var Cw=null;function uj(t,e,n,r){if(Cw=null,t=LG(r),t=_g(t),t!==null)if(e=Lp(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Whe(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Cw=t,null}function rfe(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(eet()){case xG:return 1;case Xhe:return 4;case pw:case tet:return 16;case Ghe:return 536870912;default:return 16}default:return 16}}var Hm=null,FG=null,SE=null;function ife(){if(SE)return SE;var t,e=FG,n=e.length,r,i="value"in Hm?Hm.value:Hm.textContent,a=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[a-r];r++);return SE=i.slice(t,1<r?1-r:void 0)}function bE(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Wb(){return!0}function cae(){return!1}function Rc(t){function e(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Wb:cae,this.isPropagationStopped=cae,this}return Ro(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wb)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wb)},persist:function(){},isPersistent:Wb}),e}var P7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},VG=Rc(P7),OC=Ro({},P7,{view:0,detail:0}),get=Rc(OC),BO,UO,L9,oM=Ro({},OC,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BG,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==L9&&(L9&&t.type==="mousemove"?(BO=t.screenX-L9.screenX,UO=t.screenY-L9.screenY):UO=BO=0,L9=t),BO)},movementY:function(t){return"movementY"in t?t.movementY:UO}}),dae=Rc(oM),pet=Ro({},oM,{dataTransfer:0}),vet=Rc(pet),_et=Ro({},OC,{relatedTarget:0}),HO=Rc(_et),Cet=Ro({},P7,{animationName:0,elapsedTime:0,pseudoElement:0}),bet=Rc(Cet),yet=Ro({},P7,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Eet=Rc(yet),Ret=Ro({},P7,{data:0}),hae=Rc(Ret),Aet={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wet={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Det={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iet(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Det[t])?!!e[t]:!1}function BG(){return Iet}var Pet=Ro({},OC,{key:function(t){if(t.key){var e=Aet[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bE(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wet[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BG,charCode:function(t){return t.type==="keypress"?bE(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bE(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Met=Rc(Pet),Tet=Ro({},oM,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fae=Rc(Tet),Let=Ro({},OC,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BG}),xet=Rc(Let),Oet=Ro({},P7,{propertyName:0,elapsedTime:0,pseudoElement:0}),Net=Rc(Oet),ket=Ro({},oM,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Fet=Rc(ket),Vet=[9,13,27,32],UG=vf&&"CompositionEvent"in window,c8=null;vf&&"documentMode"in document&&(c8=document.documentMode);var Bet=vf&&"TextEvent"in window&&!c8,afe=vf&&(!UG||c8&&8<c8&&11>=c8),mae=" ",gae=!1;function ofe(t,e){switch(t){case"keyup":return Vet.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sfe(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var m6=!1;function Uet(t,e){switch(t){case"compositionend":return sfe(e);case"keypress":return e.which!==32?null:(gae=!0,mae);case"textInput":return t=e.data,t===mae&&gae?null:t;default:return null}}function Het(t,e){if(m6)return t==="compositionend"||!UG&&ofe(t,e)?(t=ife(),SE=FG=Hm=null,m6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return afe&&e.locale!=="ko"?null:e.data;default:return null}}var jet={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pae(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!jet[t.type]:e==="textarea"}function lfe(t,e,n,r){Bhe(r),e=Sw(e,"onChange"),0<e.length&&(n=new VG("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var d8=null,Tv=null;function $et(t){Cfe(t,0)}function sM(t){var e=v6(t);if(Lhe(e))return t}function Wet(t,e){if(t==="change")return e}var ufe=!1;if(vf){var jO;if(vf){var $O="oninput"in document;if(!$O){var vae=document.createElement("div");vae.setAttribute("oninput","return;"),$O=typeof vae.oninput=="function"}jO=$O}else jO=!1;ufe=jO&&(!document.documentMode||9<document.documentMode)}function _ae(){d8&&(d8.detachEvent("onpropertychange",cfe),Tv=d8=null)}function cfe(t){if(t.propertyName==="value"&&sM(Tv)){var e=[];lfe(e,Tv,t,LG(t)),$he($et,e)}}function zet(t,e,n){t==="focusin"?(_ae(),d8=e,Tv=n,d8.attachEvent("onpropertychange",cfe)):t==="focusout"&&_ae()}function qet(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return sM(Tv)}function Yet(t,e){if(t==="click")return sM(e)}function Xet(t,e){if(t==="input"||t==="change")return sM(e)}function Get(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var dd=typeof Object.is=="function"?Object.is:Get;function Lv(t,e){if(dd(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!zH.call(e,i)||!dd(t[i],e[i]))return!1}return!0}function Cae(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sae(t,e){var n=Cae(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cae(n)}}function dfe(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?dfe(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hfe(){for(var t=window,e=fw();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fw(t.document)}return e}function HG(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Qet(t){var e=hfe(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&dfe(n.ownerDocument.documentElement,n)){if(r!==null&&HG(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!t.extend&&a>r&&(i=r,r=a,a=i),i=Sae(n,a);var o=Sae(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Ket=vf&&"documentMode"in document&&11>=document.documentMode,g6=null,cj=null,h8=null,dj=!1;function bae(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dj||g6==null||g6!==fw(r)||(r=g6,"selectionStart"in r&&HG(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),h8&&Lv(h8,r)||(h8=r,r=Sw(cj,"onSelect"),0<r.length&&(e=new VG("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=g6)))}function zb(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var p6={animationend:zb("Animation","AnimationEnd"),animationiteration:zb("Animation","AnimationIteration"),animationstart:zb("Animation","AnimationStart"),transitionend:zb("Transition","TransitionEnd")},WO={},ffe={};vf&&(ffe=document.createElement("div").style,"AnimationEvent"in window||(delete p6.animationend.animation,delete p6.animationiteration.animation,delete p6.animationstart.animation),"TransitionEvent"in window||delete p6.transitionend.transition);function lM(t){if(WO[t])return WO[t];if(!p6[t])return t;var e=p6[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ffe)return WO[t]=e[n];return t}var mfe=lM("animationend"),gfe=lM("animationiteration"),pfe=lM("animationstart"),vfe=lM("transitionend"),_fe=new Map,yae="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function t2(t,e){_fe.set(t,e),Tp(e,[t])}for(var zO=0;zO<yae.length;zO++){var qO=yae[zO],Zet=qO.toLowerCase(),Jet=qO[0].toUpperCase()+qO.slice(1);t2(Zet,"on"+Jet)}t2(mfe,"onAnimationEnd");t2(gfe,"onAnimationIteration");t2(pfe,"onAnimationStart");t2("dblclick","onDoubleClick");t2("focusin","onFocus");t2("focusout","onBlur");t2(vfe,"onTransitionEnd");y4("onMouseEnter",["mouseout","mouseover"]);y4("onMouseLeave",["mouseout","mouseover"]);y4("onPointerEnter",["pointerout","pointerover"]);y4("onPointerLeave",["pointerout","pointerover"]);Tp("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tp("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tp("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tp("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tp("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tp("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var T5="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ett=new Set("cancel close invalid load scroll toggle".split(" ").concat(T5));function Eae(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,QJe(r,e,void 0,t),t.currentTarget=null}function Cfe(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var a=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Eae(i,s,u),a=l}else for(o=0;o<r.length;o++){if(s=r[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Eae(i,s,u),a=l}}}if(gw)throw t=oj,gw=!1,oj=null,t}function to(t,e){var n=e[pj];n===void 0&&(n=e[pj]=new Set);var r=t+"__bubble";n.has(r)||(Sfe(e,t,2,!1),n.add(r))}function YO(t,e,n){var r=0;e&&(r|=4),Sfe(n,t,r,e)}var qb="_reactListening"+Math.random().toString(36).slice(2);function xv(t){if(!t[qb]){t[qb]=!0,Dhe.forEach(function(n){n!=="selectionchange"&&(ett.has(n)||YO(n,!1,t),YO(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qb]||(e[qb]=!0,YO("selectionchange",!1,e))}}function Sfe(t,e,n,r){switch(rfe(e)){case 1:var i=fet;break;case 4:i=met;break;default:i=kG}n=i.bind(null,e,n,t),i=void 0,!aj||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function XO(t,e,n,r,i){var a=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=_g(s),o===null)return;if(l=o.tag,l===5||l===6){r=a=o;continue e}s=s.parentNode}}r=r.return}$he(function(){var u=a,c=LG(n),d=[];e:{var h=_fe.get(t);if(h!==void 0){var f=VG,m=t;switch(t){case"keypress":if(bE(n)===0)break e;case"keydown":case"keyup":f=Met;break;case"focusin":m="focus",f=HO;break;case"focusout":m="blur",f=HO;break;case"beforeblur":case"afterblur":f=HO;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=dae;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=vet;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=xet;break;case mfe:case gfe:case pfe:f=bet;break;case vfe:f=Net;break;case"scroll":f=get;break;case"wheel":f=Fet;break;case"copy":case"cut":case"paste":f=Eet;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=fae}var g=(e&4)!==0,p=!g&&t==="scroll",v=g?h!==null?h+"Capture":null:h;g=[];for(var _=u,C;_!==null;){C=_;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,v!==null&&(S=Dv(_,v),S!=null&&g.push(Ov(_,S,C)))),p)break;_=_.return}0<g.length&&(h=new f(h,m,null,n,c),d.push({event:h,listeners:g}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&n!==rj&&(m=n.relatedTarget||n.fromElement)&&(_g(m)||m[_f]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(m=n.relatedTarget||n.toElement,f=u,m=m?_g(m):null,m!==null&&(p=Lp(m),m!==p||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=u),f!==m)){if(g=dae,S="onMouseLeave",v="onMouseEnter",_="mouse",(t==="pointerout"||t==="pointerover")&&(g=fae,S="onPointerLeave",v="onPointerEnter",_="pointer"),p=f==null?h:v6(f),C=m==null?h:v6(m),h=new g(S,_+"leave",f,n,c),h.target=p,h.relatedTarget=C,S=null,_g(c)===u&&(g=new g(v,_+"enter",m,n,c),g.target=C,g.relatedTarget=p,S=g),p=S,f&&m)t:{for(g=f,v=m,_=0,C=g;C;C=v3(C))_++;for(C=0,S=v;S;S=v3(S))C++;for(;0<_-C;)g=v3(g),_--;for(;0<C-_;)v=v3(v),C--;for(;_--;){if(g===v||v!==null&&g===v.alternate)break t;g=v3(g),v=v3(v)}g=null}else g=null;f!==null&&Rae(d,h,f,g,!1),m!==null&&p!==null&&Rae(d,p,m,g,!0)}}e:{if(h=u?v6(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var b=Wet;else if(pae(h))if(ufe)b=Xet;else{b=qet;var y=zet}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(b=Yet);if(b&&(b=b(t,u))){lfe(d,b,n,c);break e}y&&y(t,h,u),t==="focusout"&&(y=h._wrapperState)&&y.controlled&&h.type==="number"&&ZH(h,"number",h.value)}switch(y=u?v6(u):window,t){case"focusin":(pae(y)||y.contentEditable==="true")&&(g6=y,cj=u,h8=null);break;case"focusout":h8=cj=g6=null;break;case"mousedown":dj=!0;break;case"contextmenu":case"mouseup":case"dragend":dj=!1,bae(d,n,c);break;case"selectionchange":if(Ket)break;case"keydown":case"keyup":bae(d,n,c)}var A;if(UG)e:{switch(t){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else m6?ofe(t,n)&&(w="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(afe&&n.locale!=="ko"&&(m6||w!=="onCompositionStart"?w==="onCompositionEnd"&&m6&&(A=ife()):(Hm=c,FG="value"in Hm?Hm.value:Hm.textContent,m6=!0)),y=Sw(u,w),0<y.length&&(w=new hae(w,t,null,n,c),d.push({event:w,listeners:y}),A?w.data=A:(A=sfe(n),A!==null&&(w.data=A)))),(A=Bet?Uet(t,n):Het(t,n))&&(u=Sw(u,"onBeforeInput"),0<u.length&&(c=new hae("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=A))}Cfe(d,e)})}function Ov(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Sw(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Dv(t,n),a!=null&&r.unshift(Ov(t,a,i)),a=Dv(t,e),a!=null&&r.push(Ov(t,a,i))),t=t.return}return r}function v3(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Rae(t,e,n,r,i){for(var a=e._reactName,o=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=Dv(n,a),l!=null&&o.unshift(Ov(n,l,s))):i||(l=Dv(n,a),l!=null&&o.push(Ov(n,l,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var ttt=/\r\n?/g,ntt=/\u0000|\uFFFD/g;function Aae(t){return(typeof t=="string"?t:""+t).replace(ttt,` |
|
|
`).replace(ntt,"")}function Yb(t,e,n){if(e=Aae(e),Aae(t)!==e&&n)throw Error(_n(425))}function bw(){}var hj=null,fj=null;function mj(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var gj=typeof setTimeout=="function"?setTimeout:void 0,rtt=typeof clearTimeout=="function"?clearTimeout:void 0,wae=typeof Promise=="function"?Promise:void 0,itt=typeof queueMicrotask=="function"?queueMicrotask:typeof wae<"u"?function(t){return wae.resolve(null).then(t).catch(att)}:gj;function att(t){setTimeout(function(){throw t})}function GO(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),Mv(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Mv(e)}function i0(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Dae(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var M7=Math.random().toString(36).slice(2),Hd="__reactFiber$"+M7,Nv="__reactProps$"+M7,_f="__reactContainer$"+M7,pj="__reactEvents$"+M7,ott="__reactListeners$"+M7,stt="__reactHandles$"+M7;function _g(t){var e=t[Hd];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_f]||n[Hd]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Dae(t);t!==null;){if(n=t[Hd])return n;t=Dae(t)}return e}t=n,n=t.parentNode}return null}function NC(t){return t=t[Hd]||t[_f],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function v6(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(_n(33))}function uM(t){return t[Nv]||null}var vj=[],_6=-1;function n2(t){return{current:t}}function ro(t){0>_6||(t.current=vj[_6],vj[_6]=null,_6--)}function Ga(t,e){_6++,vj[_6]=t.current,t.current=e}var E0={},Al=n2(E0),bu=n2(!1),Qg=E0;function E4(t,e){var n=t.type.contextTypes;if(!n)return E0;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=e[a];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function yu(t){return t=t.childContextTypes,t!=null}function yw(){ro(bu),ro(Al)}function Iae(t,e,n){if(Al.current!==E0)throw Error(_n(168));Ga(Al,e),Ga(bu,n)}function bfe(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(_n(108,$Je(t)||"Unknown",i));return Ro({},n,r)}function Ew(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||E0,Qg=Al.current,Ga(Al,t),Ga(bu,bu.current),!0}function Pae(t,e,n){var r=t.stateNode;if(!r)throw Error(_n(169));n?(t=bfe(t,e,Qg),r.__reactInternalMemoizedMergedChildContext=t,ro(bu),ro(Al),Ga(Al,t)):ro(bu),Ga(bu,n)}var Wh=null,cM=!1,QO=!1;function yfe(t){Wh===null?Wh=[t]:Wh.push(t)}function ltt(t){cM=!0,yfe(t)}function r2(){if(!QO&&Wh!==null){QO=!0;var t=0,e=wa;try{var n=Wh;for(wa=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Wh=null,cM=!1}catch(i){throw Wh!==null&&(Wh=Wh.slice(t+1)),Yhe(xG,r2),i}finally{wa=e,QO=!1}}return null}var C6=[],S6=0,Rw=null,Aw=0,Yc=[],Xc=0,Kg=null,Qh=1,Kh="";function Y2(t,e){C6[S6++]=Aw,C6[S6++]=Rw,Rw=t,Aw=e}function Efe(t,e,n){Yc[Xc++]=Qh,Yc[Xc++]=Kh,Yc[Xc++]=Kg,Kg=t;var r=Qh;t=Kh;var i=32-id(r)-1;r&=~(1<<i),n+=1;var a=32-id(e)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Qh=1<<32-id(e)+i|n<<i|r,Kh=a+t}else Qh=1<<a|n<<i|r,Kh=t}function jG(t){t.return!==null&&(Y2(t,1),Efe(t,1,0))}function $G(t){for(;t===Rw;)Rw=C6[--S6],C6[S6]=null,Aw=C6[--S6],C6[S6]=null;for(;t===Kg;)Kg=Yc[--Xc],Yc[Xc]=null,Kh=Yc[--Xc],Yc[Xc]=null,Qh=Yc[--Xc],Yc[Xc]=null}var ac=null,Ju=null,ho=!1,Y1=null;function Rfe(t,e){var n=i1(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Mae(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,ac=t,Ju=i0(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,ac=t,Ju=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Kg!==null?{id:Qh,overflow:Kh}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=i1(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,ac=t,Ju=null,!0):!1;default:return!1}}function _j(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Cj(t){if(ho){var e=Ju;if(e){var n=e;if(!Mae(t,e)){if(_j(t))throw Error(_n(418));e=i0(n.nextSibling);var r=ac;e&&Mae(t,e)?Rfe(r,n):(t.flags=t.flags&-4097|2,ho=!1,ac=t)}}else{if(_j(t))throw Error(_n(418));t.flags=t.flags&-4097|2,ho=!1,ac=t}}}function Tae(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;ac=t}function Xb(t){if(t!==ac)return!1;if(!ho)return Tae(t),ho=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!mj(t.type,t.memoizedProps)),e&&(e=Ju)){if(_j(t))throw Afe(),Error(_n(418));for(;e;)Rfe(t,e),e=i0(e.nextSibling)}if(Tae(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(_n(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Ju=i0(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Ju=null}}else Ju=ac?i0(t.stateNode.nextSibling):null;return!0}function Afe(){for(var t=Ju;t;)t=i0(t.nextSibling)}function R4(){Ju=ac=null,ho=!1}function WG(t){Y1===null?Y1=[t]:Y1.push(t)}var utt=qf.ReactCurrentBatchConfig;function x9(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_n(309));var r=n.stateNode}if(!r)throw Error(_n(147,t));var i=r,a=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===a?e.ref:(e=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},e._stringRef=a,e)}if(typeof t!="string")throw Error(_n(284));if(!n._owner)throw Error(_n(290,t))}return t}function Gb(t,e){throw t=Object.prototype.toString.call(e),Error(_n(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Lae(t){var e=t._init;return e(t._payload)}function wfe(t){function e(v,_){if(t){var C=v.deletions;C===null?(v.deletions=[_],v.flags|=16):C.push(_)}}function n(v,_){if(!t)return null;for(;_!==null;)e(v,_),_=_.sibling;return null}function r(v,_){for(v=new Map;_!==null;)_.key!==null?v.set(_.key,_):v.set(_.index,_),_=_.sibling;return v}function i(v,_){return v=l0(v,_),v.index=0,v.sibling=null,v}function a(v,_,C){return v.index=C,t?(C=v.alternate,C!==null?(C=C.index,C<_?(v.flags|=2,_):C):(v.flags|=2,_)):(v.flags|=1048576,_)}function o(v){return t&&v.alternate===null&&(v.flags|=2),v}function s(v,_,C,S){return _===null||_.tag!==6?(_=rN(C,v.mode,S),_.return=v,_):(_=i(_,C),_.return=v,_)}function l(v,_,C,S){var b=C.type;return b===f6?c(v,_,C.props.children,S,C.key):_!==null&&(_.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===xm&&Lae(b)===_.type)?(S=i(_,C.props),S.ref=x9(v,_,C),S.return=v,S):(S=IE(C.type,C.key,C.props,null,v.mode,S),S.ref=x9(v,_,C),S.return=v,S)}function u(v,_,C,S){return _===null||_.tag!==4||_.stateNode.containerInfo!==C.containerInfo||_.stateNode.implementation!==C.implementation?(_=iN(C,v.mode,S),_.return=v,_):(_=i(_,C.children||[]),_.return=v,_)}function c(v,_,C,S,b){return _===null||_.tag!==7?(_=Pg(C,v.mode,S,b),_.return=v,_):(_=i(_,C),_.return=v,_)}function d(v,_,C){if(typeof _=="string"&&_!==""||typeof _=="number")return _=rN(""+_,v.mode,C),_.return=v,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Vb:return C=IE(_.type,_.key,_.props,null,v.mode,C),C.ref=x9(v,null,_),C.return=v,C;case h6:return _=iN(_,v.mode,C),_.return=v,_;case xm:var S=_._init;return d(v,S(_._payload),C)}if(P5(_)||I9(_))return _=Pg(_,v.mode,C,null),_.return=v,_;Gb(v,_)}return null}function h(v,_,C,S){var b=_!==null?_.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return b!==null?null:s(v,_,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Vb:return C.key===b?l(v,_,C,S):null;case h6:return C.key===b?u(v,_,C,S):null;case xm:return b=C._init,h(v,_,b(C._payload),S)}if(P5(C)||I9(C))return b!==null?null:c(v,_,C,S,null);Gb(v,C)}return null}function f(v,_,C,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(C)||null,s(_,v,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Vb:return v=v.get(S.key===null?C:S.key)||null,l(_,v,S,b);case h6:return v=v.get(S.key===null?C:S.key)||null,u(_,v,S,b);case xm:var y=S._init;return f(v,_,C,y(S._payload),b)}if(P5(S)||I9(S))return v=v.get(C)||null,c(_,v,S,b,null);Gb(_,S)}return null}function m(v,_,C,S){for(var b=null,y=null,A=_,w=_=0,P=null;A!==null&&w<C.length;w++){A.index>w?(P=A,A=null):P=A.sibling;var M=h(v,A,C[w],S);if(M===null){A===null&&(A=P);break}t&&A&&M.alternate===null&&e(v,A),_=a(M,_,w),y===null?b=M:y.sibling=M,y=M,A=P}if(w===C.length)return n(v,A),ho&&Y2(v,w),b;if(A===null){for(;w<C.length;w++)A=d(v,C[w],S),A!==null&&(_=a(A,_,w),y===null?b=A:y.sibling=A,y=A);return ho&&Y2(v,w),b}for(A=r(v,A);w<C.length;w++)P=f(A,v,w,C[w],S),P!==null&&(t&&P.alternate!==null&&A.delete(P.key===null?w:P.key),_=a(P,_,w),y===null?b=P:y.sibling=P,y=P);return t&&A.forEach(function(L){return e(v,L)}),ho&&Y2(v,w),b}function g(v,_,C,S){var b=I9(C);if(typeof b!="function")throw Error(_n(150));if(C=b.call(C),C==null)throw Error(_n(151));for(var y=b=null,A=_,w=_=0,P=null,M=C.next();A!==null&&!M.done;w++,M=C.next()){A.index>w?(P=A,A=null):P=A.sibling;var L=h(v,A,M.value,S);if(L===null){A===null&&(A=P);break}t&&A&&L.alternate===null&&e(v,A),_=a(L,_,w),y===null?b=L:y.sibling=L,y=L,A=P}if(M.done)return n(v,A),ho&&Y2(v,w),b;if(A===null){for(;!M.done;w++,M=C.next())M=d(v,M.value,S),M!==null&&(_=a(M,_,w),y===null?b=M:y.sibling=M,y=M);return ho&&Y2(v,w),b}for(A=r(v,A);!M.done;w++,M=C.next())M=f(A,v,w,M.value,S),M!==null&&(t&&M.alternate!==null&&A.delete(M.key===null?w:M.key),_=a(M,_,w),y===null?b=M:y.sibling=M,y=M);return t&&A.forEach(function(k){return e(v,k)}),ho&&Y2(v,w),b}function p(v,_,C,S){if(typeof C=="object"&&C!==null&&C.type===f6&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Vb:e:{for(var b=C.key,y=_;y!==null;){if(y.key===b){if(b=C.type,b===f6){if(y.tag===7){n(v,y.sibling),_=i(y,C.props.children),_.return=v,v=_;break e}}else if(y.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===xm&&Lae(b)===y.type){n(v,y.sibling),_=i(y,C.props),_.ref=x9(v,y,C),_.return=v,v=_;break e}n(v,y);break}else e(v,y);y=y.sibling}C.type===f6?(_=Pg(C.props.children,v.mode,S,C.key),_.return=v,v=_):(S=IE(C.type,C.key,C.props,null,v.mode,S),S.ref=x9(v,_,C),S.return=v,v=S)}return o(v);case h6:e:{for(y=C.key;_!==null;){if(_.key===y)if(_.tag===4&&_.stateNode.containerInfo===C.containerInfo&&_.stateNode.implementation===C.implementation){n(v,_.sibling),_=i(_,C.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else e(v,_);_=_.sibling}_=iN(C,v.mode,S),_.return=v,v=_}return o(v);case xm:return y=C._init,p(v,_,y(C._payload),S)}if(P5(C))return m(v,_,C,S);if(I9(C))return g(v,_,C,S);Gb(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,C),_.return=v,v=_):(n(v,_),_=rN(C,v.mode,S),_.return=v,v=_),o(v)):n(v,_)}return p}var A4=wfe(!0),Dfe=wfe(!1),ww=n2(null),Dw=null,b6=null,zG=null;function qG(){zG=b6=Dw=null}function YG(t){var e=ww.current;ro(ww),t._currentValue=e}function Sj(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function j6(t,e){Dw=t,zG=b6=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(fu=!0),t.firstContext=null)}function c1(t){var e=t._currentValue;if(zG!==t)if(t={context:t,memoizedValue:e,next:null},b6===null){if(Dw===null)throw Error(_n(308));b6=t,Dw.dependencies={lanes:0,firstContext:t}}else b6=b6.next=t;return e}var Cg=null;function XG(t){Cg===null?Cg=[t]:Cg.push(t)}function Ife(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,XG(e)):(n.next=i.next,i.next=n),e.interleaved=n,Cf(t,r)}function Cf(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Om=!1;function GG(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pfe(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function sf(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function a0(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,ta&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Cf(t,n)}return i=r.interleaved,i===null?(e.next=e,XG(r)):(e.next=i.next,i.next=e),r.interleaved=e,Cf(t,n)}function yE(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OG(t,n)}}function xae(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=e:a=a.next=e}else i=a=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Iw(t,e,n,r){var i=t.updateQueue;Om=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,c=u=l=null,s=a;do{var h=s.lane,f=s.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,g=s;switch(h=e,f=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(f,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break e;d=Ro({},d,h);break e;case 2:Om=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else a===null&&(i.shared.lanes=0);Jg|=o,t.lanes=o,t.memoizedState=d}}function Oae(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_n(191,i));i.call(r)}}}var kC={},Gd=n2(kC),kv=n2(kC),Fv=n2(kC);function Sg(t){if(t===kC)throw Error(_n(174));return t}function QG(t,e){switch(Ga(Fv,e),Ga(kv,t),Ga(Gd,kC),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ej(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=ej(e,t)}ro(Gd),Ga(Gd,e)}function w4(){ro(Gd),ro(kv),ro(Fv)}function Mfe(t){Sg(Fv.current);var e=Sg(Gd.current),n=ej(e,t.type);e!==n&&(Ga(kv,t),Ga(Gd,n))}function KG(t){kv.current===t&&(ro(Gd),ro(kv))}var So=n2(0);function Pw(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var KO=[];function ZG(){for(var t=0;t<KO.length;t++)KO[t]._workInProgressVersionPrimary=null;KO.length=0}var EE=qf.ReactCurrentDispatcher,ZO=qf.ReactCurrentBatchConfig,Zg=0,Eo=null,ds=null,Es=null,Mw=!1,f8=!1,Vv=0,ctt=0;function ul(){throw Error(_n(321))}function JG(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!dd(t[n],e[n]))return!1;return!0}function eQ(t,e,n,r,i,a){if(Zg=a,Eo=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,EE.current=t===null||t.memoizedState===null?mtt:gtt,t=n(r,i),f8){a=0;do{if(f8=!1,Vv=0,25<=a)throw Error(_n(301));a+=1,Es=ds=null,e.updateQueue=null,EE.current=ptt,t=n(r,i)}while(f8)}if(EE.current=Tw,e=ds!==null&&ds.next!==null,Zg=0,Es=ds=Eo=null,Mw=!1,e)throw Error(_n(300));return t}function tQ(){var t=Vv!==0;return Vv=0,t}function Od(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Es===null?Eo.memoizedState=Es=t:Es=Es.next=t,Es}function d1(){if(ds===null){var t=Eo.alternate;t=t!==null?t.memoizedState:null}else t=ds.next;var e=Es===null?Eo.memoizedState:Es.next;if(e!==null)Es=e,ds=t;else{if(t===null)throw Error(_n(310));ds=t,t={memoizedState:ds.memoizedState,baseState:ds.baseState,baseQueue:ds.baseQueue,queue:ds.queue,next:null},Es===null?Eo.memoizedState=Es=t:Es=Es.next=t}return Es}function Bv(t,e){return typeof e=="function"?e(t):e}function JO(t){var e=d1(),n=e.queue;if(n===null)throw Error(_n(311));n.lastRenderedReducer=t;var r=ds,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((Zg&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,o=r):l=l.next=d,Eo.lanes|=c,Jg|=c}u=u.next}while(u!==null&&u!==a);l===null?o=r:l.next=s,dd(r,e.memoizedState)||(fu=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do a=i.lane,Eo.lanes|=a,Jg|=a,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function eN(t){var e=d1(),n=e.queue;if(n===null)throw Error(_n(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=t(a,o.action),o=o.next;while(o!==i);dd(a,e.memoizedState)||(fu=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Tfe(){}function Lfe(t,e){var n=Eo,r=d1(),i=e(),a=!dd(r.memoizedState,i);if(a&&(r.memoizedState=i,fu=!0),r=r.queue,nQ(Nfe.bind(null,n,r,t),[t]),r.getSnapshot!==e||a||Es!==null&&Es.memoizedState.tag&1){if(n.flags|=2048,Uv(9,Ofe.bind(null,n,r,i,e),void 0,null),Ps===null)throw Error(_n(349));Zg&30||xfe(n,e,i)}return i}function xfe(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Eo.updateQueue,e===null?(e={lastEffect:null,stores:null},Eo.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Ofe(t,e,n,r){e.value=n,e.getSnapshot=r,kfe(e)&&Ffe(t)}function Nfe(t,e,n){return n(function(){kfe(e)&&Ffe(t)})}function kfe(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!dd(t,n)}catch{return!0}}function Ffe(t){var e=Cf(t,1);e!==null&&ad(e,t,1,-1)}function Nae(t){var e=Od();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bv,lastRenderedState:t},e.queue=t,t=t.dispatch=ftt.bind(null,Eo,t),[e.memoizedState,t]}function Uv(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Eo.updateQueue,e===null?(e={lastEffect:null,stores:null},Eo.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Vfe(){return d1().memoizedState}function RE(t,e,n,r){var i=Od();Eo.flags|=t,i.memoizedState=Uv(1|e,n,void 0,r===void 0?null:r)}function dM(t,e,n,r){var i=d1();r=r===void 0?null:r;var a=void 0;if(ds!==null){var o=ds.memoizedState;if(a=o.destroy,r!==null&&JG(r,o.deps)){i.memoizedState=Uv(e,n,a,r);return}}Eo.flags|=t,i.memoizedState=Uv(1|e,n,a,r)}function kae(t,e){return RE(8390656,8,t,e)}function nQ(t,e){return dM(2048,8,t,e)}function Bfe(t,e){return dM(4,2,t,e)}function Ufe(t,e){return dM(4,4,t,e)}function Hfe(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function jfe(t,e,n){return n=n!=null?n.concat([t]):null,dM(4,4,Hfe.bind(null,e,t),n)}function rQ(){}function $fe(t,e){var n=d1();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&JG(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Wfe(t,e){var n=d1();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&JG(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function zfe(t,e,n){return Zg&21?(dd(n,e)||(n=Qhe(),Eo.lanes|=n,Jg|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,fu=!0),t.memoizedState=n)}function dtt(t,e){var n=wa;wa=n!==0&&4>n?n:4,t(!0);var r=ZO.transition;ZO.transition={};try{t(!1),e()}finally{wa=n,ZO.transition=r}}function qfe(){return d1().memoizedState}function htt(t,e,n){var r=s0(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yfe(t))Xfe(e,n);else if(n=Ife(t,e,n,r),n!==null){var i=Bl();ad(n,t,r,i),Gfe(n,e,r)}}function ftt(t,e,n){var r=s0(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yfe(t))Xfe(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,dd(s,o)){var l=e.interleaved;l===null?(i.next=i,XG(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=Ife(t,e,i,r),n!==null&&(i=Bl(),ad(n,t,r,i),Gfe(n,e,r))}}function Yfe(t){var e=t.alternate;return t===Eo||e!==null&&e===Eo}function Xfe(t,e){f8=Mw=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Gfe(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OG(t,n)}}var Tw={readContext:c1,useCallback:ul,useContext:ul,useEffect:ul,useImperativeHandle:ul,useInsertionEffect:ul,useLayoutEffect:ul,useMemo:ul,useReducer:ul,useRef:ul,useState:ul,useDebugValue:ul,useDeferredValue:ul,useTransition:ul,useMutableSource:ul,useSyncExternalStore:ul,useId:ul,unstable_isNewReconciler:!1},mtt={readContext:c1,useCallback:function(t,e){return Od().memoizedState=[t,e===void 0?null:e],t},useContext:c1,useEffect:kae,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,RE(4194308,4,Hfe.bind(null,e,t),n)},useLayoutEffect:function(t,e){return RE(4194308,4,t,e)},useInsertionEffect:function(t,e){return RE(4,2,t,e)},useMemo:function(t,e){var n=Od();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Od();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=htt.bind(null,Eo,t),[r.memoizedState,t]},useRef:function(t){var e=Od();return t={current:t},e.memoizedState=t},useState:Nae,useDebugValue:rQ,useDeferredValue:function(t){return Od().memoizedState=t},useTransition:function(){var t=Nae(!1),e=t[0];return t=dtt.bind(null,t[1]),Od().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Eo,i=Od();if(ho){if(n===void 0)throw Error(_n(407));n=n()}else{if(n=e(),Ps===null)throw Error(_n(349));Zg&30||xfe(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,kae(Nfe.bind(null,r,a,t),[t]),r.flags|=2048,Uv(9,Ofe.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Od(),e=Ps.identifierPrefix;if(ho){var n=Kh,r=Qh;n=(r&~(1<<32-id(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Vv++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=ctt++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},gtt={readContext:c1,useCallback:$fe,useContext:c1,useEffect:nQ,useImperativeHandle:jfe,useInsertionEffect:Bfe,useLayoutEffect:Ufe,useMemo:Wfe,useReducer:JO,useRef:Vfe,useState:function(){return JO(Bv)},useDebugValue:rQ,useDeferredValue:function(t){var e=d1();return zfe(e,ds.memoizedState,t)},useTransition:function(){var t=JO(Bv)[0],e=d1().memoizedState;return[t,e]},useMutableSource:Tfe,useSyncExternalStore:Lfe,useId:qfe,unstable_isNewReconciler:!1},ptt={readContext:c1,useCallback:$fe,useContext:c1,useEffect:nQ,useImperativeHandle:jfe,useInsertionEffect:Bfe,useLayoutEffect:Ufe,useMemo:Wfe,useReducer:eN,useRef:Vfe,useState:function(){return eN(Bv)},useDebugValue:rQ,useDeferredValue:function(t){var e=d1();return ds===null?e.memoizedState=t:zfe(e,ds.memoizedState,t)},useTransition:function(){var t=eN(Bv)[0],e=d1().memoizedState;return[t,e]},useMutableSource:Tfe,useSyncExternalStore:Lfe,useId:qfe,unstable_isNewReconciler:!1};function V1(t,e){if(t&&t.defaultProps){e=Ro({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function bj(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Ro({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var hM={isMounted:function(t){return(t=t._reactInternals)?Lp(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Bl(),i=s0(t),a=sf(r,i);a.payload=e,n!=null&&(a.callback=n),e=a0(t,a,i),e!==null&&(ad(e,t,i,r),yE(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Bl(),i=s0(t),a=sf(r,i);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=a0(t,a,i),e!==null&&(ad(e,t,i,r),yE(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Bl(),r=s0(t),i=sf(n,r);i.tag=2,e!=null&&(i.callback=e),e=a0(t,i,r),e!==null&&(ad(e,t,r,n),yE(e,t,r))}};function Fae(t,e,n,r,i,a,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,a,o):e.prototype&&e.prototype.isPureReactComponent?!Lv(n,r)||!Lv(i,a):!0}function Qfe(t,e,n){var r=!1,i=E0,a=e.contextType;return typeof a=="object"&&a!==null?a=c1(a):(i=yu(e)?Qg:Al.current,r=e.contextTypes,a=(r=r!=null)?E4(t,i):E0),e=new e(n,a),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=hM,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=a),e}function Vae(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&hM.enqueueReplaceState(e,e.state,null)}function yj(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},GG(t);var a=e.contextType;typeof a=="object"&&a!==null?i.context=c1(a):(a=yu(e)?Qg:Al.current,i.context=E4(t,a)),i.state=t.memoizedState,a=e.getDerivedStateFromProps,typeof a=="function"&&(bj(t,e,a,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&hM.enqueueReplaceState(i,i.state,null),Iw(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function D4(t,e){try{var n="",r=e;do n+=jJe(r),r=r.return;while(r);var i=n}catch(a){i=` |
|
|
Error generating stack: `+a.message+` |
|
|
`+a.stack}return{value:t,source:e,stack:i,digest:null}}function tN(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ej(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var vtt=typeof WeakMap=="function"?WeakMap:Map;function Kfe(t,e,n){n=sf(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){xw||(xw=!0,xj=r),Ej(t,e)},n}function Zfe(t,e,n){n=sf(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Ej(t,e)}}var a=t.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ej(t,e),typeof r!="function"&&(o0===null?o0=new Set([this]):o0.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Bae(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new vtt;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Ttt.bind(null,t,e,n),e.then(t,t))}function Uae(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Hae(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=sf(-1,1),e.tag=2,a0(n,e,1))),n.lanes|=1),t)}var _tt=qf.ReactCurrentOwner,fu=!1;function Ll(t,e,n,r){e.child=t===null?Dfe(e,null,n,r):A4(e,t.child,n,r)}function jae(t,e,n,r,i){n=n.render;var a=e.ref;return j6(e,i),r=eQ(t,e,n,r,a,i),n=tQ(),t!==null&&!fu?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Sf(t,e,i)):(ho&&n&&jG(e),e.flags|=1,Ll(t,e,r,i),e.child)}function $ae(t,e,n,r,i){if(t===null){var a=n.type;return typeof a=="function"&&!dQ(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=a,Jfe(t,e,a,r,i)):(t=IE(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!(t.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Lv,n(o,r)&&t.ref===e.ref)return Sf(t,e,i)}return e.flags|=1,t=l0(a,r),t.ref=e.ref,t.return=e,e.child=t}function Jfe(t,e,n,r,i){if(t!==null){var a=t.memoizedProps;if(Lv(a,r)&&t.ref===e.ref)if(fu=!1,e.pendingProps=r=a,(t.lanes&i)!==0)t.flags&131072&&(fu=!0);else return e.lanes=t.lanes,Sf(t,e,i)}return Rj(t,e,n,r,i)}function eme(t,e,n){var r=e.pendingProps,i=r.children,a=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ga(E6,Gu),Gu|=n;else{if(!(n&1073741824))return t=a!==null?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ga(E6,Gu),Gu|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ga(E6,Gu),Gu|=r}else a!==null?(r=a.baseLanes|n,e.memoizedState=null):r=n,Ga(E6,Gu),Gu|=r;return Ll(t,e,i,n),e.child}function tme(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Rj(t,e,n,r,i){var a=yu(n)?Qg:Al.current;return a=E4(e,a),j6(e,i),n=eQ(t,e,n,r,a,i),r=tQ(),t!==null&&!fu?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Sf(t,e,i)):(ho&&r&&jG(e),e.flags|=1,Ll(t,e,n,i),e.child)}function Wae(t,e,n,r,i){if(yu(n)){var a=!0;Ew(e)}else a=!1;if(j6(e,i),e.stateNode===null)AE(t,e),Qfe(e,n,r),yj(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=c1(u):(u=yu(n)?Qg:Al.current,u=E4(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==u)&&Vae(e,o,r,u),Om=!1;var h=e.memoizedState;o.state=h,Iw(e,r,o,i),l=e.memoizedState,s!==r||h!==l||bu.current||Om?(typeof c=="function"&&(bj(e,n,c,r),l=e.memoizedState),(s=Om||Fae(e,n,s,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Pfe(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:V1(e.type,s),o.props=u,d=e.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=c1(l):(l=yu(n)?Qg:Al.current,l=E4(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||h!==l)&&Vae(e,o,r,l),Om=!1,h=e.memoizedState,o.state=h,Iw(e,r,o,i);var m=e.memoizedState;s!==d||h!==m||bu.current||Om?(typeof f=="function"&&(bj(e,n,f,r),m=e.memoizedState),(u=Om||Fae(e,n,u,r,h,m,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Aj(t,e,n,r,a,i)}function Aj(t,e,n,r,i,a){tme(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&Pae(e,n,!1),Sf(t,e,a);r=e.stateNode,_tt.current=e;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=A4(e,t.child,null,a),e.child=A4(e,null,s,a)):Ll(t,e,s,a),e.memoizedState=r.state,i&&Pae(e,n,!0),e.child}function nme(t){var e=t.stateNode;e.pendingContext?Iae(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Iae(t,e.context,!1),QG(t,e.containerInfo)}function zae(t,e,n,r,i){return R4(),WG(i),e.flags|=256,Ll(t,e,n,r),e.child}var wj={dehydrated:null,treeContext:null,retryLane:0};function Dj(t){return{baseLanes:t,cachePool:null,transitions:null}}function rme(t,e,n){var r=e.pendingProps,i=So.current,a=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!==0),s?(a=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Ga(So,i&1),t===null)return Cj(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,a?(r=e.mode,a=e.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=gM(o,r,0,null),t=Pg(t,r,n,null),a.return=e,t.return=e,a.sibling=t,e.child=a,e.child.memoizedState=Dj(n),e.memoizedState=wj,t):iQ(e,o));if(i=t.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Ctt(t,e,o,r,s,i,n);if(a){a=r.fallback,o=e.mode,i=t.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=l0(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=l0(s,a):(a=Pg(a,o,n,null),a.flags|=2),a.return=e,r.return=e,r.sibling=a,e.child=r,r=a,a=e.child,o=t.child.memoizedState,o=o===null?Dj(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=t.childLanes&~n,e.memoizedState=wj,r}return a=t.child,t=a.sibling,r=l0(a,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function iQ(t,e){return e=gM({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Qb(t,e,n,r){return r!==null&&WG(r),A4(e,t.child,null,n),t=iQ(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ctt(t,e,n,r,i,a,o){if(n)return e.flags&256?(e.flags&=-257,r=tN(Error(_n(422))),Qb(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=gM({mode:"visible",children:r.children},i,0,null),a=Pg(a,i,o,null),a.flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,e.mode&1&&A4(e,t.child,null,o),e.child.memoizedState=Dj(o),e.memoizedState=wj,a);if(!(e.mode&1))return Qb(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(_n(419)),r=tN(a,r,void 0),Qb(t,e,o,r)}if(s=(o&t.childLanes)!==0,fu||s){if(r=Ps,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Cf(t,i),ad(r,t,i,-1))}return cQ(),r=tN(Error(_n(421))),Qb(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=Ltt.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,Ju=i0(i.nextSibling),ac=e,ho=!0,Y1=null,t!==null&&(Yc[Xc++]=Qh,Yc[Xc++]=Kh,Yc[Xc++]=Kg,Qh=t.id,Kh=t.overflow,Kg=e),e=iQ(e,r.children),e.flags|=4096,e)}function qae(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Sj(t.return,e,n)}function nN(t,e,n,r,i){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ime(t,e,n){var r=e.pendingProps,i=r.revealOrder,a=r.tail;if(Ll(t,e,r.children,n),r=So.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qae(t,n,e);else if(t.tag===19)qae(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ga(So,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Pw(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),nN(e,!1,i,n,a);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Pw(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}nN(e,!0,n,null,a);break;case"together":nN(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function AE(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Sf(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Jg|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(_n(153));if(e.child!==null){for(t=e.child,n=l0(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=l0(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Stt(t,e,n){switch(e.tag){case 3:nme(e),R4();break;case 5:Mfe(e);break;case 1:yu(e.type)&&Ew(e);break;case 4:QG(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Ga(ww,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ga(So,So.current&1),e.flags|=128,null):n&e.child.childLanes?rme(t,e,n):(Ga(So,So.current&1),t=Sf(t,e,n),t!==null?t.sibling:null);Ga(So,So.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return ime(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ga(So,So.current),r)break;return null;case 22:case 23:return e.lanes=0,eme(t,e,n)}return Sf(t,e,n)}var ame,Ij,ome,sme;ame=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ij=function(){};ome=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Sg(Gd.current);var a=null;switch(n){case"input":i=QH(t,i),r=QH(t,r),a=[];break;case"select":i=Ro({},i,{value:void 0}),r=Ro({},r,{value:void 0}),a=[];break;case"textarea":i=JH(t,i),r=JH(t,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=bw)}tj(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Av.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Av.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&to("scroll",t),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(e.updateQueue=u)&&(e.flags|=4)}};sme=function(t,e,n,r){n!==r&&(e.flags|=4)};function O9(t,e){if(!ho)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function cl(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function btt(t,e,n){var r=e.pendingProps;switch($G(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cl(e),null;case 1:return yu(e.type)&&yw(),cl(e),null;case 3:return r=e.stateNode,w4(),ro(bu),ro(Al),ZG(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Xb(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Y1!==null&&(kj(Y1),Y1=null))),Ij(t,e),cl(e),null;case 5:KG(e);var i=Sg(Fv.current);if(n=e.type,t!==null&&e.stateNode!=null)ome(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(_n(166));return cl(e),null}if(t=Sg(Gd.current),Xb(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[Hd]=e,r[Nv]=a,t=(e.mode&1)!==0,n){case"dialog":to("cancel",r),to("close",r);break;case"iframe":case"object":case"embed":to("load",r);break;case"video":case"audio":for(i=0;i<T5.length;i++)to(T5[i],r);break;case"source":to("error",r);break;case"img":case"image":case"link":to("error",r),to("load",r);break;case"details":to("toggle",r);break;case"input":tae(r,a),to("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},to("invalid",r);break;case"textarea":rae(r,a),to("invalid",r)}tj(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&Yb(r.textContent,s,t),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Yb(r.textContent,s,t),i=["children",""+s]):Av.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&to("scroll",r)}switch(n){case"input":Bb(r),nae(r,a,!0);break;case"textarea":Bb(r),iae(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=bw)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Nhe(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Hd]=e,t[Nv]=r,ame(t,e,!1,!1),e.stateNode=t;e:{switch(o=nj(n,r),n){case"dialog":to("cancel",t),to("close",t),i=r;break;case"iframe":case"object":case"embed":to("load",t),i=r;break;case"video":case"audio":for(i=0;i<T5.length;i++)to(T5[i],t);i=r;break;case"source":to("error",t),i=r;break;case"img":case"image":case"link":to("error",t),to("load",t),i=r;break;case"details":to("toggle",t),i=r;break;case"input":tae(t,r),i=QH(t,r),to("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Ro({},r,{value:void 0}),to("invalid",t);break;case"textarea":rae(t,r),i=JH(t,r),to("invalid",t);break;default:i=r}tj(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?Vhe(t,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&khe(t,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wv(t,l):typeof l=="number"&&wv(t,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Av.hasOwnProperty(a)?l!=null&&a==="onScroll"&&to("scroll",t):l!=null&&IG(t,a,l,o))}switch(n){case"input":Bb(t),nae(t,r,!1);break;case"textarea":Bb(t),iae(t);break;case"option":r.value!=null&&t.setAttribute("value",""+y0(r.value));break;case"select":t.multiple=!!r.multiple,a=r.value,a!=null?V6(t,!!r.multiple,a,!1):r.defaultValue!=null&&V6(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=bw)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return cl(e),null;case 6:if(t&&e.stateNode!=null)sme(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(_n(166));if(n=Sg(Fv.current),Sg(Gd.current),Xb(e)){if(r=e.stateNode,n=e.memoizedProps,r[Hd]=e,(a=r.nodeValue!==n)&&(t=ac,t!==null))switch(t.tag){case 3:Yb(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Yb(r.nodeValue,n,(t.mode&1)!==0)}a&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Hd]=e,e.stateNode=r}return cl(e),null;case 13:if(ro(So),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ho&&Ju!==null&&e.mode&1&&!(e.flags&128))Afe(),R4(),e.flags|=98560,a=!1;else if(a=Xb(e),r!==null&&r.dehydrated!==null){if(t===null){if(!a)throw Error(_n(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(_n(317));a[Hd]=e}else R4(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;cl(e),a=!1}else Y1!==null&&(kj(Y1),Y1=null),a=!0;if(!a)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||So.current&1?gs===0&&(gs=3):cQ())),e.updateQueue!==null&&(e.flags|=4),cl(e),null);case 4:return w4(),Ij(t,e),t===null&&xv(e.stateNode.containerInfo),cl(e),null;case 10:return YG(e.type._context),cl(e),null;case 17:return yu(e.type)&&yw(),cl(e),null;case 19:if(ro(So),a=e.memoizedState,a===null)return cl(e),null;if(r=(e.flags&128)!==0,o=a.rendering,o===null)if(r)O9(a,!1);else{if(gs!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Pw(t),o!==null){for(e.flags|=128,O9(a,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)a=n,t=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,t=o.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Ga(So,So.current&1|2),e.child}t=t.sibling}a.tail!==null&&Bo()>I4&&(e.flags|=128,r=!0,O9(a,!1),e.lanes=4194304)}else{if(!r)if(t=Pw(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),O9(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ho)return cl(e),null}else 2*Bo()-a.renderingStartTime>I4&&n!==1073741824&&(e.flags|=128,r=!0,O9(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(n=a.last,n!==null?n.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Bo(),e.sibling=null,n=So.current,Ga(So,r?n&1|2:n&1),e):(cl(e),null);case 22:case 23:return uQ(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Gu&1073741824&&(cl(e),e.subtreeFlags&6&&(e.flags|=8192)):cl(e),null;case 24:return null;case 25:return null}throw Error(_n(156,e.tag))}function ytt(t,e){switch($G(e),e.tag){case 1:return yu(e.type)&&yw(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return w4(),ro(bu),ro(Al),ZG(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return KG(e),null;case 13:if(ro(So),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(_n(340));R4()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ro(So),null;case 4:return w4(),null;case 10:return YG(e.type._context),null;case 22:case 23:return uQ(),null;case 24:return null;default:return null}}var Kb=!1,gl=!1,Ett=typeof WeakSet=="function"?WeakSet:Set,or=null;function y6(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mo(t,e,r)}else n.current=null}function Pj(t,e,n){try{n()}catch(r){Mo(t,e,r)}}var Yae=!1;function Rtt(t,e){if(hj=_w,t=hfe(),HG(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++u===i&&(s=o),h===a&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fj={focusedElem:t,selectionRange:n},_w=!1,or=e;or!==null;)if(e=or,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,or=t;else for(;or!==null;){e=or;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,p=m.memoizedState,v=e.stateNode,_=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:V1(e.type,g),p);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var C=e.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_n(163))}}catch(S){Mo(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,or=t;break}or=e.return}return m=Yae,Yae=!1,m}function m8(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&Pj(e,n,a)}i=i.next}while(i!==r)}}function fM(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Mj(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function lme(t){var e=t.alternate;e!==null&&(t.alternate=null,lme(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Hd],delete e[Nv],delete e[pj],delete e[ott],delete e[stt])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ume(t){return t.tag===5||t.tag===3||t.tag===4}function Xae(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ume(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Tj(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=bw));else if(r!==4&&(t=t.child,t!==null))for(Tj(t,e,n),t=t.sibling;t!==null;)Tj(t,e,n),t=t.sibling}function Lj(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Lj(t,e,n),t=t.sibling;t!==null;)Lj(t,e,n),t=t.sibling}var Us=null,U1=!1;function dm(t,e,n){for(n=n.child;n!==null;)cme(t,e,n),n=n.sibling}function cme(t,e,n){if(Xd&&typeof Xd.onCommitFiberUnmount=="function")try{Xd.onCommitFiberUnmount(aM,n)}catch{}switch(n.tag){case 5:gl||y6(n,e);case 6:var r=Us,i=U1;Us=null,dm(t,e,n),Us=r,U1=i,Us!==null&&(U1?(t=Us,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Us.removeChild(n.stateNode));break;case 18:Us!==null&&(U1?(t=Us,n=n.stateNode,t.nodeType===8?GO(t.parentNode,n):t.nodeType===1&&GO(t,n),Mv(t)):GO(Us,n.stateNode));break;case 4:r=Us,i=U1,Us=n.stateNode.containerInfo,U1=!0,dm(t,e,n),Us=r,U1=i;break;case 0:case 11:case 14:case 15:if(!gl&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Pj(n,e,o),i=i.next}while(i!==r)}dm(t,e,n);break;case 1:if(!gl&&(y6(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Mo(n,e,s)}dm(t,e,n);break;case 21:dm(t,e,n);break;case 22:n.mode&1?(gl=(r=gl)||n.memoizedState!==null,dm(t,e,n),gl=r):dm(t,e,n);break;default:dm(t,e,n)}}function Gae(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Ett),e.forEach(function(r){var i=xtt.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function M1(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:Us=s.stateNode,U1=!1;break e;case 3:Us=s.stateNode.containerInfo,U1=!0;break e;case 4:Us=s.stateNode.containerInfo,U1=!0;break e}s=s.return}if(Us===null)throw Error(_n(160));cme(a,o,i),Us=null,U1=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Mo(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)dme(e,t),e=e.sibling}function dme(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(M1(e,t),wd(t),r&4){try{m8(3,t,t.return),fM(3,t)}catch(g){Mo(t,t.return,g)}try{m8(5,t,t.return)}catch(g){Mo(t,t.return,g)}}break;case 1:M1(e,t),wd(t),r&512&&n!==null&&y6(n,n.return);break;case 5:if(M1(e,t),wd(t),r&512&&n!==null&&y6(n,n.return),t.flags&32){var i=t.stateNode;try{wv(i,"")}catch(g){Mo(t,t.return,g)}}if(r&4&&(i=t.stateNode,i!=null)){var a=t.memoizedProps,o=n!==null?n.memoizedProps:a,s=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&xhe(i,a),nj(s,o);var u=nj(s,a);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Vhe(i,d):c==="dangerouslySetInnerHTML"?khe(i,d):c==="children"?wv(i,d):IG(i,c,d,u)}switch(s){case"input":KH(i,a);break;case"textarea":Ohe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;f!=null?V6(i,!!a.multiple,f,!1):h!==!!a.multiple&&(a.defaultValue!=null?V6(i,!!a.multiple,a.defaultValue,!0):V6(i,!!a.multiple,a.multiple?[]:"",!1))}i[Nv]=a}catch(g){Mo(t,t.return,g)}}break;case 6:if(M1(e,t),wd(t),r&4){if(t.stateNode===null)throw Error(_n(162));i=t.stateNode,a=t.memoizedProps;try{i.nodeValue=a}catch(g){Mo(t,t.return,g)}}break;case 3:if(M1(e,t),wd(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Mv(e.containerInfo)}catch(g){Mo(t,t.return,g)}break;case 4:M1(e,t),wd(t);break;case 13:M1(e,t),wd(t),i=t.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(sQ=Bo())),r&4&&Gae(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(gl=(u=gl)||c,M1(e,t),gl=u):M1(e,t),wd(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(or=t,c=t.child;c!==null;){for(d=or=c;or!==null;){switch(h=or,f=h.child,h.tag){case 0:case 11:case 14:case 15:m8(4,h,h.return);break;case 1:y6(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(g){Mo(r,n,g)}}break;case 5:y6(h,h.return);break;case 22:if(h.memoizedState!==null){Kae(d);continue}}f!==null?(f.return=h,or=f):Kae(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Fhe("display",o))}catch(g){Mo(t,t.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Mo(t,t.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:M1(e,t),wd(t),r&4&&Gae(t);break;case 21:break;default:M1(e,t),wd(t)}}function wd(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(ume(n)){var r=n;break e}n=n.return}throw Error(_n(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wv(i,""),r.flags&=-33);var a=Xae(t);Lj(t,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Xae(t);Tj(t,s,o);break;default:throw Error(_n(161))}}catch(l){Mo(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Att(t,e,n){or=t,hme(t)}function hme(t,e,n){for(var r=(t.mode&1)!==0;or!==null;){var i=or,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Kb;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||gl;s=Kb;var u=gl;if(Kb=o,(gl=l)&&!u)for(or=i;or!==null;)o=or,l=o.child,o.tag===22&&o.memoizedState!==null?Zae(i):l!==null?(l.return=o,or=l):Zae(i);for(;a!==null;)or=a,hme(a),a=a.sibling;or=i,Kb=s,gl=u}Qae(t)}else i.subtreeFlags&8772&&a!==null?(a.return=i,or=a):Qae(t)}}function Qae(t){for(;or!==null;){var e=or;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:gl||fM(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!gl)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:V1(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;a!==null&&Oae(e,a,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Oae(e,o,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Mv(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_n(163))}gl||e.flags&512&&Mj(e)}catch(h){Mo(e,e.return,h)}}if(e===t){or=null;break}if(n=e.sibling,n!==null){n.return=e.return,or=n;break}or=e.return}}function Kae(t){for(;or!==null;){var e=or;if(e===t){or=null;break}var n=e.sibling;if(n!==null){n.return=e.return,or=n;break}or=e.return}}function Zae(t){for(;or!==null;){var e=or;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{fM(4,e)}catch(l){Mo(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){Mo(e,i,l)}}var a=e.return;try{Mj(e)}catch(l){Mo(e,a,l)}break;case 5:var o=e.return;try{Mj(e)}catch(l){Mo(e,o,l)}}}catch(l){Mo(e,e.return,l)}if(e===t){or=null;break}var s=e.sibling;if(s!==null){s.return=e.return,or=s;break}or=e.return}}var wtt=Math.ceil,Lw=qf.ReactCurrentDispatcher,aQ=qf.ReactCurrentOwner,l1=qf.ReactCurrentBatchConfig,ta=0,Ps=null,Xo=null,Gs=0,Gu=0,E6=n2(0),gs=0,Hv=null,Jg=0,mM=0,oQ=0,g8=null,cu=null,sQ=0,I4=1/0,jh=null,xw=!1,xj=null,o0=null,Zb=!1,jm=null,Ow=0,p8=0,Oj=null,wE=-1,DE=0;function Bl(){return ta&6?Bo():wE!==-1?wE:wE=Bo()}function s0(t){return t.mode&1?ta&2&&Gs!==0?Gs&-Gs:utt.transition!==null?(DE===0&&(DE=Qhe()),DE):(t=wa,t!==0||(t=window.event,t=t===void 0?16:rfe(t.type)),t):1}function ad(t,e,n,r){if(50<p8)throw p8=0,Oj=null,Error(_n(185));xC(t,n,r),(!(ta&2)||t!==Ps)&&(t===Ps&&(!(ta&2)&&(mM|=n),gs===4&&km(t,Gs)),Eu(t,r),n===1&&ta===0&&!(e.mode&1)&&(I4=Bo()+500,cM&&r2()))}function Eu(t,e){var n=t.callbackNode;set(t,e);var r=vw(t,t===Ps?Gs:0);if(r===0)n!==null&&sae(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&sae(n),e===1)t.tag===0?ltt(Jae.bind(null,t)):yfe(Jae.bind(null,t)),itt(function(){!(ta&6)&&r2()}),n=null;else{switch(Khe(r)){case 1:n=xG;break;case 4:n=Xhe;break;case 16:n=pw;break;case 536870912:n=Ghe;break;default:n=pw}n=Sme(n,fme.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function fme(t,e){if(wE=-1,DE=0,ta&6)throw Error(_n(327));var n=t.callbackNode;if($6()&&t.callbackNode!==n)return null;var r=vw(t,t===Ps?Gs:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Nw(t,r);else{e=r;var i=ta;ta|=2;var a=gme();(Ps!==t||Gs!==e)&&(jh=null,I4=Bo()+500,Ig(t,e));do try{Ptt();break}catch(s){mme(t,s)}while(!0);qG(),Lw.current=a,ta=i,Xo!==null?e=0:(Ps=null,Gs=0,e=gs)}if(e!==0){if(e===2&&(i=sj(t),i!==0&&(r=i,e=Nj(t,i))),e===1)throw n=Hv,Ig(t,0),km(t,r),Eu(t,Bo()),n;if(e===6)km(t,r);else{if(i=t.current.alternate,!(r&30)&&!Dtt(i)&&(e=Nw(t,r),e===2&&(a=sj(t),a!==0&&(r=a,e=Nj(t,a))),e===1))throw n=Hv,Ig(t,0),km(t,r),Eu(t,Bo()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(_n(345));case 2:X2(t,cu,jh);break;case 3:if(km(t,r),(r&130023424)===r&&(e=sQ+500-Bo(),10<e)){if(vw(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Bl(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=gj(X2.bind(null,t,cu,jh),e);break}X2(t,cu,jh);break;case 4:if(km(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-id(r);a=1<<o,o=e[o],o>i&&(i=o),r&=~a}if(r=i,r=Bo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wtt(r/1960))-r,10<r){t.timeoutHandle=gj(X2.bind(null,t,cu,jh),r);break}X2(t,cu,jh);break;case 5:X2(t,cu,jh);break;default:throw Error(_n(329))}}}return Eu(t,Bo()),t.callbackNode===n?fme.bind(null,t):null}function Nj(t,e){var n=g8;return t.current.memoizedState.isDehydrated&&(Ig(t,e).flags|=256),t=Nw(t,e),t!==2&&(e=cu,cu=n,e!==null&&kj(e)),t}function kj(t){cu===null?cu=t:cu.push.apply(cu,t)}function Dtt(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!dd(a(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function km(t,e){for(e&=~oQ,e&=~mM,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-id(e),r=1<<n;t[n]=-1,e&=~r}}function Jae(t){if(ta&6)throw Error(_n(327));$6();var e=vw(t,0);if(!(e&1))return Eu(t,Bo()),null;var n=Nw(t,e);if(t.tag!==0&&n===2){var r=sj(t);r!==0&&(e=r,n=Nj(t,r))}if(n===1)throw n=Hv,Ig(t,0),km(t,e),Eu(t,Bo()),n;if(n===6)throw Error(_n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,X2(t,cu,jh),Eu(t,Bo()),null}function lQ(t,e){var n=ta;ta|=1;try{return t(e)}finally{ta=n,ta===0&&(I4=Bo()+500,cM&&r2())}}function ep(t){jm!==null&&jm.tag===0&&!(ta&6)&&$6();var e=ta;ta|=1;var n=l1.transition,r=wa;try{if(l1.transition=null,wa=1,t)return t()}finally{wa=r,l1.transition=n,ta=e,!(ta&6)&&r2()}}function uQ(){Gu=E6.current,ro(E6)}function Ig(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,rtt(n)),Xo!==null)for(n=Xo.return;n!==null;){var r=n;switch($G(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yw();break;case 3:w4(),ro(bu),ro(Al),ZG();break;case 5:KG(r);break;case 4:w4();break;case 13:ro(So);break;case 19:ro(So);break;case 10:YG(r.type._context);break;case 22:case 23:uQ()}n=n.return}if(Ps=t,Xo=t=l0(t.current,null),Gs=Gu=e,gs=0,Hv=null,oQ=mM=Jg=0,cu=g8=null,Cg!==null){for(e=0;e<Cg.length;e++)if(n=Cg[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Cg=null}return t}function mme(t,e){do{var n=Xo;try{if(qG(),EE.current=Tw,Mw){for(var r=Eo.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Mw=!1}if(Zg=0,Es=ds=Eo=null,f8=!1,Vv=0,aQ.current=null,n===null||n.return===null){gs=1,Hv=e,Xo=null;break}e:{var a=t,o=n.return,s=n,l=e;if(e=Gs,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=Uae(o);if(f!==null){f.flags&=-257,Hae(f,o,s,a,e),f.mode&1&&Bae(a,u,e),e=f,l=u;var m=e.updateQueue;if(m===null){var g=new Set;g.add(l),e.updateQueue=g}else m.add(l);break e}else{if(!(e&1)){Bae(a,u,e),cQ();break e}l=Error(_n(426))}}else if(ho&&s.mode&1){var p=Uae(o);if(p!==null){!(p.flags&65536)&&(p.flags|=256),Hae(p,o,s,a,e),WG(D4(l,s));break e}}a=l=D4(l,s),gs!==4&&(gs=2),g8===null?g8=[a]:g8.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e;var v=Kfe(a,l,e);xae(a,v);break e;case 1:s=l;var _=a.type,C=a.stateNode;if(!(a.flags&128)&&(typeof _.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(o0===null||!o0.has(C)))){a.flags|=65536,e&=-e,a.lanes|=e;var S=Zfe(a,s,e);xae(a,S);break e}}a=a.return}while(a!==null)}vme(n)}catch(b){e=b,Xo===n&&n!==null&&(Xo=n=n.return);continue}break}while(!0)}function gme(){var t=Lw.current;return Lw.current=Tw,t===null?Tw:t}function cQ(){(gs===0||gs===3||gs===2)&&(gs=4),Ps===null||!(Jg&268435455)&&!(mM&268435455)||km(Ps,Gs)}function Nw(t,e){var n=ta;ta|=2;var r=gme();(Ps!==t||Gs!==e)&&(jh=null,Ig(t,e));do try{Itt();break}catch(i){mme(t,i)}while(!0);if(qG(),ta=n,Lw.current=r,Xo!==null)throw Error(_n(261));return Ps=null,Gs=0,gs}function Itt(){for(;Xo!==null;)pme(Xo)}function Ptt(){for(;Xo!==null&&!ZJe();)pme(Xo)}function pme(t){var e=Cme(t.alternate,t,Gu);t.memoizedProps=t.pendingProps,e===null?vme(t):Xo=e,aQ.current=null}function vme(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=ytt(n,e),n!==null){n.flags&=32767,Xo=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{gs=6,Xo=null;return}}else if(n=btt(n,e,Gu),n!==null){Xo=n;return}if(e=e.sibling,e!==null){Xo=e;return}Xo=e=t}while(e!==null);gs===0&&(gs=5)}function X2(t,e,n){var r=wa,i=l1.transition;try{l1.transition=null,wa=1,Mtt(t,e,n,r)}finally{l1.transition=i,wa=r}return null}function Mtt(t,e,n,r){do $6();while(jm!==null);if(ta&6)throw Error(_n(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(_n(177));t.callbackNode=null,t.callbackPriority=0;var a=n.lanes|n.childLanes;if(uet(t,a),t===Ps&&(Xo=Ps=null,Gs=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zb||(Zb=!0,Sme(pw,function(){return $6(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=l1.transition,l1.transition=null;var o=wa;wa=1;var s=ta;ta|=4,aQ.current=null,Rtt(t,n),dme(n,t),Qet(fj),_w=!!hj,fj=hj=null,t.current=n,Att(n),JJe(),ta=s,wa=o,l1.transition=a}else t.current=n;if(Zb&&(Zb=!1,jm=t,Ow=i),a=t.pendingLanes,a===0&&(o0=null),net(n.stateNode),Eu(t,Bo()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(xw)throw xw=!1,t=xj,xj=null,t;return Ow&1&&t.tag!==0&&$6(),a=t.pendingLanes,a&1?t===Oj?p8++:(p8=0,Oj=t):p8=0,r2(),null}function $6(){if(jm!==null){var t=Khe(Ow),e=l1.transition,n=wa;try{if(l1.transition=null,wa=16>t?16:t,jm===null)var r=!1;else{if(t=jm,jm=null,Ow=0,ta&6)throw Error(_n(331));var i=ta;for(ta|=4,or=t.current;or!==null;){var a=or,o=a.child;if(or.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(or=u;or!==null;){var c=or;switch(c.tag){case 0:case 11:case 15:m8(8,c,a)}var d=c.child;if(d!==null)d.return=c,or=d;else for(;or!==null;){c=or;var h=c.sibling,f=c.return;if(lme(c),c===u){or=null;break}if(h!==null){h.return=f,or=h;break}or=f}}}var m=a.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var p=g.sibling;g.sibling=null,g=p}while(g!==null)}}or=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,or=o;else e:for(;or!==null;){if(a=or,a.flags&2048)switch(a.tag){case 0:case 11:case 15:m8(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,or=v;break e}or=a.return}}var _=t.current;for(or=_;or!==null;){o=or;var C=o.child;if(o.subtreeFlags&2064&&C!==null)C.return=o,or=C;else e:for(o=_;or!==null;){if(s=or,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:fM(9,s)}}catch(b){Mo(s,s.return,b)}if(s===o){or=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,or=S;break e}or=s.return}}if(ta=i,r2(),Xd&&typeof Xd.onPostCommitFiberRoot=="function")try{Xd.onPostCommitFiberRoot(aM,t)}catch{}r=!0}return r}finally{wa=n,l1.transition=e}}return!1}function eoe(t,e,n){e=D4(n,e),e=Kfe(t,e,1),t=a0(t,e,1),e=Bl(),t!==null&&(xC(t,1,e),Eu(t,e))}function Mo(t,e,n){if(t.tag===3)eoe(t,t,n);else for(;e!==null;){if(e.tag===3){eoe(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(o0===null||!o0.has(r))){t=D4(n,t),t=Zfe(e,t,1),e=a0(e,t,1),t=Bl(),e!==null&&(xC(e,1,t),Eu(e,t));break}}e=e.return}}function Ttt(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Bl(),t.pingedLanes|=t.suspendedLanes&n,Ps===t&&(Gs&n)===n&&(gs===4||gs===3&&(Gs&130023424)===Gs&&500>Bo()-sQ?Ig(t,0):oQ|=n),Eu(t,e)}function _me(t,e){e===0&&(t.mode&1?(e=jb,jb<<=1,!(jb&130023424)&&(jb=4194304)):e=1);var n=Bl();t=Cf(t,e),t!==null&&(xC(t,e,n),Eu(t,n))}function Ltt(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),_me(t,n)}function xtt(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(_n(314))}r!==null&&r.delete(e),_me(t,n)}var Cme;Cme=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||bu.current)fu=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return fu=!1,Stt(t,e,n);fu=!!(t.flags&131072)}else fu=!1,ho&&e.flags&1048576&&Efe(e,Aw,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;AE(t,e),t=e.pendingProps;var i=E4(e,Al.current);j6(e,n),i=eQ(null,e,r,t,i,n);var a=tQ();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yu(r)?(a=!0,Ew(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,GG(e),i.updater=hM,e.stateNode=i,i._reactInternals=e,yj(e,r,t,n),e=Aj(null,e,r,!0,a,n)):(e.tag=0,ho&&a&&jG(e),Ll(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(AE(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Ntt(r),t=V1(r,t),i){case 0:e=Rj(null,e,r,t,n);break e;case 1:e=Wae(null,e,r,t,n);break e;case 11:e=jae(null,e,r,t,n);break e;case 14:e=$ae(null,e,r,V1(r.type,t),n);break e}throw Error(_n(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),Rj(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),Wae(t,e,r,i,n);case 3:e:{if(nme(e),t===null)throw Error(_n(387));r=e.pendingProps,a=e.memoizedState,i=a.element,Pfe(t,e),Iw(e,r,null,n);var o=e.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=D4(Error(_n(423)),e),e=zae(t,e,r,n,i);break e}else if(r!==i){i=D4(Error(_n(424)),e),e=zae(t,e,r,n,i);break e}else for(Ju=i0(e.stateNode.containerInfo.firstChild),ac=e,ho=!0,Y1=null,n=Dfe(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(R4(),r===i){e=Sf(t,e,n);break e}Ll(t,e,r,n)}e=e.child}return e;case 5:return Mfe(e),t===null&&Cj(e),r=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,mj(r,i)?o=null:a!==null&&mj(r,a)&&(e.flags|=32),tme(t,e),Ll(t,e,o,n),e.child;case 6:return t===null&&Cj(e),null;case 13:return rme(t,e,n);case 4:return QG(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=A4(e,null,r,n):Ll(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),jae(t,e,r,i,n);case 7:return Ll(t,e,e.pendingProps,n),e.child;case 8:return Ll(t,e,e.pendingProps.children,n),e.child;case 12:return Ll(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,Ga(ww,r._currentValue),r._currentValue=o,a!==null)if(dd(a.value,o)){if(a.children===i.children&&!bu.current){e=Sf(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=sf(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sj(a.return,n,e),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(_n(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Sj(o,n,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ll(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,j6(e,n),i=c1(i),r=r(i),e.flags|=1,Ll(t,e,r,n),e.child;case 14:return r=e.type,i=V1(r,e.pendingProps),i=V1(r.type,i),$ae(t,e,r,i,n);case 15:return Jfe(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),AE(t,e),e.tag=1,yu(r)?(t=!0,Ew(e)):t=!1,j6(e,n),Qfe(e,r,i),yj(e,r,i,n),Aj(null,e,r,!0,t,n);case 19:return ime(t,e,n);case 22:return eme(t,e,n)}throw Error(_n(156,e.tag))};function Sme(t,e){return Yhe(t,e)}function Ott(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function i1(t,e,n,r){return new Ott(t,e,n,r)}function dQ(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ntt(t){if(typeof t=="function")return dQ(t)?1:0;if(t!=null){if(t=t.$$typeof,t===MG)return 11;if(t===TG)return 14}return 2}function l0(t,e){var n=t.alternate;return n===null?(n=i1(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function IE(t,e,n,r,i,a){var o=2;if(r=t,typeof t=="function")dQ(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case f6:return Pg(n.children,i,a,e);case PG:o=8,i|=8;break;case qH:return t=i1(12,n,e,i|2),t.elementType=qH,t.lanes=a,t;case YH:return t=i1(13,n,e,i),t.elementType=YH,t.lanes=a,t;case XH:return t=i1(19,n,e,i),t.elementType=XH,t.lanes=a,t;case Mhe:return gM(n,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ihe:o=10;break e;case Phe:o=9;break e;case MG:o=11;break e;case TG:o=14;break e;case xm:o=16,r=null;break e}throw Error(_n(130,t==null?t:typeof t,""))}return e=i1(o,n,e,i),e.elementType=t,e.type=r,e.lanes=a,e}function Pg(t,e,n,r){return t=i1(7,t,r,e),t.lanes=n,t}function gM(t,e,n,r){return t=i1(22,t,r,e),t.elementType=Mhe,t.lanes=n,t.stateNode={isHidden:!1},t}function rN(t,e,n){return t=i1(6,t,null,e),t.lanes=n,t}function iN(t,e,n){return e=i1(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ktt(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=VO(0),this.expirationTimes=VO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VO(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hQ(t,e,n,r,i,a,o,s,l){return t=new ktt(t,e,n,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=i1(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},GG(a),t}function Ftt(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h6,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function bme(t){if(!t)return E0;t=t._reactInternals;e:{if(Lp(t)!==t||t.tag!==1)throw Error(_n(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(yu(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(_n(171))}if(t.tag===1){var n=t.type;if(yu(n))return bfe(t,n,e)}return e}function yme(t,e,n,r,i,a,o,s,l){return t=hQ(n,r,!0,t,i,a,o,s,l),t.context=bme(null),n=t.current,r=Bl(),i=s0(n),a=sf(r,i),a.callback=e??null,a0(n,a,i),t.current.lanes=i,xC(t,i,r),Eu(t,r),t}function pM(t,e,n,r){var i=e.current,a=Bl(),o=s0(i);return n=bme(n),e.context===null?e.context=n:e.pendingContext=n,e=sf(a,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=a0(i,e,o),t!==null&&(ad(t,i,o,a),yE(t,i,o)),o}function kw(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function toe(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fQ(t,e){toe(t,e),(t=t.alternate)&&toe(t,e)}function Vtt(){return null}var Eme=typeof reportError=="function"?reportError:function(t){console.error(t)};function mQ(t){this._internalRoot=t}vM.prototype.render=mQ.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(_n(409));pM(t,e,null,null)};vM.prototype.unmount=mQ.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;ep(function(){pM(null,t,null,null)}),e[_f]=null}};function vM(t){this._internalRoot=t}vM.prototype.unstable_scheduleHydration=function(t){if(t){var e=efe();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Nm.length&&e!==0&&e<Nm[n].priority;n++);Nm.splice(n,0,t),n===0&&nfe(t)}};function gQ(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function _M(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function noe(){}function Btt(t,e,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=kw(o);a.call(u)}}var o=yme(e,r,t,0,null,!1,!1,"",noe);return t._reactRootContainer=o,t[_f]=o.current,xv(t.nodeType===8?t.parentNode:t),ep(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=kw(l);s.call(u)}}var l=hQ(t,0,!1,null,null,!1,!1,"",noe);return t._reactRootContainer=l,t[_f]=l.current,xv(t.nodeType===8?t.parentNode:t),ep(function(){pM(e,l,n,r)}),l}function CM(t,e,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=kw(o);s.call(l)}}pM(e,o,t,i)}else o=Btt(n,e,t,i,r);return kw(o)}Zhe=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=M5(e.pendingLanes);n!==0&&(OG(e,n|1),Eu(e,Bo()),!(ta&6)&&(I4=Bo()+500,r2()))}break;case 13:ep(function(){var r=Cf(t,1);if(r!==null){var i=Bl();ad(r,t,1,i)}}),fQ(t,1)}};NG=function(t){if(t.tag===13){var e=Cf(t,134217728);if(e!==null){var n=Bl();ad(e,t,134217728,n)}fQ(t,134217728)}};Jhe=function(t){if(t.tag===13){var e=s0(t),n=Cf(t,e);if(n!==null){var r=Bl();ad(n,t,e,r)}fQ(t,e)}};efe=function(){return wa};tfe=function(t,e){var n=wa;try{return wa=t,e()}finally{wa=n}};ij=function(t,e,n){switch(e){case"input":if(KH(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=uM(r);if(!i)throw Error(_n(90));Lhe(r),KH(r,i)}}}break;case"textarea":Ohe(t,n);break;case"select":e=n.value,e!=null&&V6(t,!!n.multiple,e,!1)}};Hhe=lQ;jhe=ep;var Utt={usingClientEntryPoint:!1,Events:[NC,v6,uM,Bhe,Uhe,lQ]},N9={findFiberByHostInstance:_g,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Htt={bundleType:N9.bundleType,version:N9.version,rendererPackageName:N9.rendererPackageName,rendererConfig:N9.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qf.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=zhe(t),t===null?null:t.stateNode},findFiberByHostInstance:N9.findFiberByHostInstance||Vtt,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jb.isDisabled&&Jb.supportsFiber)try{aM=Jb.inject(Htt),Xd=Jb}catch{}}Ec.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Utt;Ec.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gQ(e))throw Error(_n(200));return Ftt(t,e,null,n)};Ec.createRoot=function(t,e){if(!gQ(t))throw Error(_n(299));var n=!1,r="",i=Eme;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=hQ(t,1,!1,null,null,n,!1,r,i),t[_f]=e.current,xv(t.nodeType===8?t.parentNode:t),new mQ(e)};Ec.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(_n(188)):(t=Object.keys(t).join(","),Error(_n(268,t)));return t=zhe(e),t=t===null?null:t.stateNode,t};Ec.flushSync=function(t){return ep(t)};Ec.hydrate=function(t,e,n){if(!_M(e))throw Error(_n(200));return CM(null,t,e,!0,n)};Ec.hydrateRoot=function(t,e,n){if(!gQ(t))throw Error(_n(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=Eme;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=yme(e,null,t,1,n??null,i,!1,a,o),t[_f]=e.current,xv(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new vM(e)};Ec.render=function(t,e,n){if(!_M(e))throw Error(_n(200));return CM(null,t,e,!1,n)};Ec.unmountComponentAtNode=function(t){if(!_M(t))throw Error(_n(40));return t._reactRootContainer?(ep(function(){CM(null,null,t,!1,function(){t._reactRootContainer=null,t[_f]=null})}),!0):!1};Ec.unstable_batchedUpdates=lQ;Ec.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!_M(n))throw Error(_n(200));if(t==null||t._reactInternals===void 0)throw Error(_n(38));return CM(t,e,n,!1,r)};Ec.version="18.3.1-next-f1338f8080-20240426";function Rme(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rme)}catch(t){console.error(t)}}Rme(),Rhe.exports=Ec;var bf=Rhe.exports;const ec=zue(bf);var Ame=Object.defineProperty,jtt=(t,e,n)=>e in t?Ame(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>Ame(t,"name",{value:e,configurable:!0}),jv=(t,e,n)=>jtt(t,typeof e!="symbol"?e+"":e,n),xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}R(xu,"getDefaultExportFromCjs");function wme(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=R(function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a");n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:R(function(){return t[r]},"get")})}),n}R(wme,"getAugmentedNamespace");var Dme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(Dme);var Ime=Dme.exports;const $tt=xu(Ime);var Pme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=R(function(p){return(p=+p)+(p>68?1900:2e3)},"a"),c=R(function(p){return function(v){this[p]=+v}},"f"),d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var _=v.match(/([+-]|\d\d)/g),C=60*_[1]+(+_[2]||0);return C===0?0:_[0]==="+"?-C:C}(p)}],h=R(function(p){var v=l[p];return v&&(v.indexOf?v:v.s.concat(v.f))},"u"),f=R(function(p,v){var _,C=l.meridiem;if(C){for(var S=1;S<=24;S+=1)if(p.indexOf(C(S,0,v))>-1){_=S>12;break}}else _=p===(v?"pm":"PM");return _},"d"),m={A:[s,function(p){this.afternoon=f(p,!1)}],a:[s,function(p){this.afternoon=f(p,!0)}],Q:[i,function(p){this.month=3*(p-1)+1}],S:[i,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[a,c("day")],Do:[s,function(p){var v=l.ordinal,_=p.match(/\d+/);if(this.day=_[0],v)for(var C=1;C<=31;C+=1)v(C).replace(/\[|\]/g,"")===p&&(this.day=C)}],w:[o,c("week")],ww:[a,c("week")],M:[o,c("month")],MM:[a,c("month")],MMM:[s,function(p){var v=h("months"),_=(h("monthsShort")||v.map(function(C){return C.slice(0,3)})).indexOf(p)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[s,function(p){var v=h("months").indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(p){var v,_;v=p,_=l&&l.formats;for(var C=(p=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,L,k){var O=k&&k.toUpperCase();return L||_[k]||n[k]||_[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,B,V){return B||V.slice(1)})})).match(r),S=C.length,b=0;b<S;b+=1){var y=C[b],A=m[y],w=A&&A[0],P=A&&A[1];C[b]=P?{regex:w,parser:P}:y.replace(/^\[|\]$/g,"")}return function(M){for(var L={},k=0,O=0;k<S;k+=1){var $=C[k];if(typeof $=="string")O+=$.length;else{var B=$.regex,V=$.parser,X=M.slice(O),z=B.exec(X)[0];V.call(L,z),M=M.replace(z,"")}}return function(F){var H=F.afternoon;if(H!==void 0){var W=F.hours;H?W<12&&(F.hours+=12):W===12&&(F.hours=0),delete F.afternoon}}(L),L}}return R(g,"l"),function(p,v,_){_.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var C=v.prototype,S=C.parse;C.parse=function(b){var y=b.date,A=b.utc,w=b.args;this.$u=A;var P=w[1];if(typeof P=="string"){var M=w[2]===!0,L=w[3]===!0,k=M||L,O=w[2];L&&(O=w[2]),l=this.$locale(),!M&&O&&(l=_.Ls[O]),this.$d=function(X,z,F,H){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*X);var W=g(z)(X),K=W.year,G=W.month,te=W.day,Y=W.hours,ae=W.minutes,ie=W.seconds,ne=W.milliseconds,de=W.zone,_e=W.week,Pe=new Date,De=te||(K||G?1:Pe.getDate()),Ee=K||Pe.getFullYear(),ye=0;K&&!G||(ye=G>0?G-1:Pe.getMonth());var Ve,ke=Y||0,Ke=ae||0,$e=ie||0,Fe=ne||0;return de?new Date(Date.UTC(Ee,ye,De,ke,Ke,$e,Fe+60*de.offset*1e3)):F?new Date(Date.UTC(Ee,ye,De,ke,Ke,$e,Fe)):(Ve=new Date(Ee,ye,De,ke,Ke,$e,Fe),_e&&(Ve=H(Ve).week(_e).toDate()),Ve)}catch{return new Date("")}}(y,P,A,_),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),k&&y!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var $=P.length,B=1;B<=$;B+=1){w[1]=P[B-1];var V=_.apply(this,w);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}B===$&&(this.$d=new Date(""))}else S.call(this,b)}}})})(Pme);var Mme=Pme.exports;const Wtt=xu(Mme);var Tme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r,i){var a=r.prototype,o=R(function(d){return d&&(d.indexOf?d:d.s)},"o"),s=R(function(d,h,f,m,g){var p=d.name?d:d.$locale(),v=o(p[h]),_=o(p[f]),C=v||_.map(function(b){return b.slice(0,m)});if(!g)return C;var S=p.weekStart;return C.map(function(b,y){return C[(y+(S||0))%7]})},"u"),l=R(function(){return i.Ls[i.locale()]},"i"),u=R(function(d,h){return d.formats[h]||function(f){return f.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,p){return g||p.slice(1)})}(d.formats[h.toUpperCase()])},"a"),c=R(function(){var d=this;return{months:R(function(h){return h?h.format("MMMM"):s(d,"months")},"months"),monthsShort:R(function(h){return h?h.format("MMM"):s(d,"monthsShort","months",3)},"monthsShort"),firstDayOfWeek:R(function(){return d.$locale().weekStart||0},"firstDayOfWeek"),weekdays:R(function(h){return h?h.format("dddd"):s(d,"weekdays")},"weekdays"),weekdaysMin:R(function(h){return h?h.format("dd"):s(d,"weekdaysMin","weekdays",2)},"weekdaysMin"),weekdaysShort:R(function(h){return h?h.format("ddd"):s(d,"weekdaysShort","weekdays",3)},"weekdaysShort"),longDateFormat:R(function(h){return u(d.$locale(),h)},"longDateFormat"),meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}},"s");a.localeData=function(){return c.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:R(function(){return d.weekStart||0},"firstDayOfWeek"),weekdays:R(function(){return i.weekdays()},"weekdays"),weekdaysShort:R(function(){return i.weekdaysShort()},"weekdaysShort"),weekdaysMin:R(function(){return i.weekdaysMin()},"weekdaysMin"),months:R(function(){return i.months()},"months"),monthsShort:R(function(){return i.monthsShort()},"monthsShort"),longDateFormat:R(function(h){return u(d,h)},"longDateFormat"),meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(Tme);var Lme=Tme.exports;const ztt=xu(Lme);var xme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){r.prototype.weekday=function(i){var a=this.$locale().weekStart||0,o=this.$W,s=(o<a?o+7:o)-a;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(xme);var Ome=xme.exports;const qtt=xu(Ome);var Nme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){var n="week",r="year";return function(i,a,o){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),d=o(this).endOf(n);if(c.isBefore(d))return 1}var h=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?o(this).startOf("week").week():Math.ceil(f)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Nme);var kme=Nme.exports;const Ytt=xu(kme);var Fme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(Fme);var Vme=Fme.exports;const Xtt=xu(Vme),Gtt="univer-avatar",Qtt="univer-avatar-square",Ktt="univer-avatar-circle",Ztt="univer-avatar-middle",Jtt="univer-avatar-small",ent="univer-avatar-image",_3={avatar:Gtt,avatarSquare:Qtt,avatarCircle:Ktt,avatarMiddle:Ztt,avatarSmall:Jtt,avatarImage:ent};function SM(t){const{children:e,style:n,title:r,alt:i,shape:a="circle",size:o="middle",src:s,fit:l="fill",onError:u,onLoad:c}=t,d=typeof o=="number"?{width:`${o}px`,height:`${o}px`,lineHeight:`${o}px`}:{},h=hr(_3.avatar,{[_3.avatarCircle]:a==="circle",[_3.avatarSquare]:a==="square",[_3.avatarImage]:s,[_3.avatarMiddle]:o==="middle",[_3.avatarSmall]:o==="small"}),f={objectFit:l};return s?Re.createElement("span",{className:h,style:{...d,...n,...f}},Re.createElement("img",{src:s,title:r,alt:i,onError:u,onLoad:c}),e):Re.createElement("span",{className:h,style:{...d,...n}},e)}R(SM,"Avatar");const tnt="univer-button",nnt="univer-button-default",rnt="univer-button-primary",int="univer-button-text",ant="univer-button-link",ont="univer-button-small",snt="univer-button-middle",lnt="univer-button-large",unt="univer-button-block",wh={button:tnt,buttonDefault:nnt,buttonPrimary:rnt,buttonText:int,buttonLink:ant,buttonSmall:ont,buttonMiddle:snt,buttonLarge:lnt,buttonBlock:unt};function fa(t){const{children:e,className:n,style:r,type:i="default",size:a="middle",block:o,htmlType:s,disabled:l=!1,onClick:u,...c}=t,d=hr(wh.button,{[wh.buttonPrimary]:i==="primary",[wh.buttonDefault]:i==="default",[wh.buttonText]:i==="text",[wh.buttonLink]:i==="link",[wh.buttonSmall]:a==="small",[wh.buttonMiddle]:a==="middle",[wh.buttonLarge]:a==="large",[wh.buttonBlock]:o},n);return Re.createElement("button",{className:d,style:r,type:s,onClick:u,disabled:l,...c},e)}R(fa,"Button");var Gc=function(){return Gc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Gc.apply(this,arguments)},cnt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Ou=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=cnt(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(Hme()));return pQ(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},Gc({ref:e,className:s},o),a)});function pQ(t,e,n,r,i){return E.createElement(t.tag,Gc(Gc({key:e},Bme(t,n,i)),r),(Ume(t,n).children||[]).map(function(a,o){return pQ(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}R(pQ,"render$2");function Bme(t,e,n){var r=Gc({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}R(Bme,"replaceRuntimeIdsAndExtInAttrs");function Ume(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?Gc(Gc({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?Gc(Gc({},i),{attrs:Gc(Gc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}R(Ume,"replaceRuntimeIdsInDefs");function Hme(){return Math.random().toString(36).substring(2,8)}R(Hme,"generateShortUuid");Ou.displayName="UniverIcon";var dnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.87598 11.8327C8.87598 11.5013 9.14461 11.2327 9.47598 11.2327H11.476C11.8073 11.2327 12.076 11.5013 12.076 11.8327 12.076 12.164 11.8073 12.4327 11.476 12.4327H9.47598C9.14461 12.4327 8.87598 12.164 8.87598 11.8327zM4.80898 11.2327C4.47761 11.2327 4.20898 11.5013 4.20898 11.8327 4.20898 12.164 4.47761 12.4327 4.80898 12.4327H6.80898C7.14036 12.4327 7.40898 12.164 7.40898 11.8327 7.40898 11.5013 7.14036 11.2327 6.80898 11.2327H4.80898zM8.87598 9.16592C8.87598 8.83455 9.14461 8.56592 9.47598 8.56592H11.476C11.8073 8.56592 12.076 8.83455 12.076 9.16592 12.076 9.49729 11.8073 9.76592 11.476 9.76592H9.47598C9.14461 9.76592 8.87598 9.49729 8.87598 9.16592zM4.80898 8.56592C4.47761 8.56592 4.20898 8.83455 4.20898 9.16592 4.20898 9.49729 4.47761 9.76592 4.80898 9.76592H6.80898C7.14036 9.76592 7.40898 9.49729 7.40898 9.16592 7.40898 8.83455 7.14036 8.56592 6.80898 8.56592H4.80898z"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.00615 1.69985C6.00615 1.36848 5.73752 1.09985 5.40615 1.09985C5.07478 1.09985 4.80615 1.36848 4.80615 1.69985V2.34009H3.64248C2.20654 2.34009 1.04248 3.50415 1.04248 4.94009V12.3C1.04248 13.7359 2.20654 14.9 3.64248 14.9H12.6425C14.0784 14.9 15.2425 13.7359 15.2425 12.3V4.94009C15.2425 3.50415 14.0784 2.34009 12.6425 2.34009H11.4798V1.69985C11.4798 1.36848 11.2112 1.09985 10.8798 1.09985C10.5484 1.09985 10.2798 1.36848 10.2798 1.69985V2.34009H6.00615V1.69985ZM14.0425 5.97021V4.94009C14.0425 4.16689 13.4157 3.54009 12.6425 3.54009H11.4798V4.09985C11.4798 4.43122 11.2112 4.69985 10.8798 4.69985C10.5484 4.69985 10.2798 4.43122 10.2798 4.09985V3.54009H6.00615V4.09985C6.00615 4.43122 5.73752 4.69985 5.40615 4.69985C5.07478 4.69985 4.80615 4.43122 4.80615 4.09985V3.54009H3.64248C2.86928 3.54009 2.24248 4.16689 2.24248 4.94009V5.97021H14.0425ZM2.24248 7.17021H14.0425V12.3C14.0425 13.0731 13.4157 13.7 12.6425 13.7H3.64248C2.86928 13.7 2.24248 13.0732 2.24248 12.3V7.17021Z",fillRule:"evenodd",clipRule:"evenodd"}}]},jme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"calendar-single",ref:e,icon:dnt}))});jme.displayName="CalendarSingle";var hnt={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"}}]},bM=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"check-mark-single",ref:e,icon:hnt}))});bM.displayName="CheckMarkSingle";var fnt={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"}}]},vQ=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"close-single",ref:e,icon:fnt}))});vQ.displayName="CloseSingle";var mnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_371_77",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_371_77)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z"}}]}]},$me=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"dropdown-single",ref:e,icon:mnt}))});$me.displayName="DropdownSingle";var gnt={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"}}]},Wme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"error-single",ref:e,icon:gnt}))});Wme.displayName="ErrorSingle";var pnt={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"}}]},zme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"increase-single",ref:e,icon:pnt}))});zme.displayName="IncreaseSingle";var vnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M8.00695 14.9998C8.00461 14.9999 8.00227 14.9999 7.99993 14.9999C4.13397 14.9999 1 11.8659 1 7.99995C1 4.13624 4.13035 1.00365 7.99321 1.00003C7.9955 1.00001 7.99779 1 8.00008 1C11.866 1 15 4.13397 15 7.99993C15 11.8636 11.8697 14.9961 8.00695 14.9998ZM13.3569 8.01503C13.3568 8.01001 13.3568 8.00499 13.3568 7.99995C13.3568 5.04144 10.9584 2.64309 7.99993 2.64309C5.04645 2.64309 2.65123 5.03327 2.64308 7.98484C2.64317 7.98986 2.64322 7.99489 2.64322 7.99993C2.64322 10.9584 5.04157 13.3568 8.00008 13.3568C10.9536 13.3568 13.3488 10.9666 13.3569 8.01503Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.17852 1.82153C7.17852 1.36781 7.54633 1 8.00005 1C11.866 1 15 4.13397 15 7.99993C15 11.8659 11.866 14.9999 8.00005 14.9999C4.1341 14.9999 1.00012 11.8659 1.00012 7.99993C1.00012 7.54621 1.36793 7.1784 1.82165 7.1784C2.27537 7.1784 2.64318 7.54621 2.64318 7.99993C2.64318 10.9584 5.04153 13.3568 8.00005 13.3568C10.9586 13.3568 13.3569 10.9584 13.3569 7.99993C13.3569 5.04141 10.9586 2.64306 8.00005 2.64306C7.54633 2.64306 7.17852 2.27525 7.17852 1.82153Z",fillRule:"evenodd",clipRule:"evenodd"}}]},qme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"loading",ref:e,icon:vnt}))});qme.displayName="Loading";var _nt={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"}}]},Yme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-down-single",ref:e,icon:_nt}))});Yme.displayName="MoreDownSingle";var Cnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.3536 12.3536C10.1583 12.5488 9.84171 12.5488 9.64645 12.3536L6.64645 9.35355C6.45118 9.15829 6.45118 8.84171 6.64645 8.64645L9.64645 5.64645C9.84171 5.45118 10.1583 5.45118 10.3536 5.64645C10.5488 5.84171 10.5488 6.15829 10.3536 6.35355L7.70711 9L10.3536 11.6464C10.5488 11.8417 10.5488 12.1583 10.3536 12.3536Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Xme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-left-single",ref:e,icon:Cnt}))});Xme.displayName="MoreLeftSingle";var Snt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.14645 4.64645C6.34171 4.45118 6.65829 4.45118 6.85355 4.64645L9.85355 7.64645C10.0488 7.84171 10.0488 8.15829 9.85355 8.35355L6.85355 11.3536C6.65829 11.5488 6.34171 11.5488 6.14645 11.3536C5.95118 11.1583 5.95118 10.8417 6.14645 10.6464L8.79289 8L6.14645 5.35355C5.95118 5.15829 5.95118 4.84171 6.14645 4.64645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Gme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-right-single",ref:e,icon:Snt}))});Gme.displayName="MoreRightSingle";var bnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 7.9999C1.3999 7.66853 1.66853 7.3999 1.9999 7.3999H13.9999C14.3313 7.3999 14.5999 7.66853 14.5999 7.9999C14.5999 8.33127 14.3313 8.5999 13.9999 8.5999H1.9999C1.66853 8.5999 1.3999 8.33127 1.3999 7.9999Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Qme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"reduce-single",ref:e,icon:bnt}))});Qme.displayName="ReduceSingle";var ynt={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"}}]},Kme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"success-single",ref:e,icon:ynt}))});Kme.displayName="SuccessSingle";var Ent={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"}}]},Fj=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"warning-single",ref:e,icon:Ent}))});Fj.displayName="WarningSingle";var Zme={};Object.defineProperty(Zme,"__esModule",{value:!0});var yM=Zme.default=Jme;function Jme(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}R(Jme,"canUseDom$1");const Nu=E.createContext({mountContainer:yM()?document.body:null});function _Q(t){const{children:e,locale:n,mountContainer:r}=t,i=E.useMemo(()=>({locale:n,mountContainer:r}),[n,r]);return Re.createElement(Nu.Provider,{value:i},e)}R(_Q,"ConfigProvider");const Rnt="univer-cascader-list",Ant="univer-cascader-list-board",wnt="univer-cascader-list-item-active",Dnt="univer-cascader-list-option",Int="univer-cascader-list-check-mark",Pnt="univer-cascader-list-item",Mnt="univer-cascader-list-empty",hm={cascaderList:Rnt,cascaderListBoard:Ant,cascaderListItemActive:wnt,cascaderListOption:Dnt,cascaderListCheckMark:Int,cascaderListItem:Pnt,cascaderListEmpty:Mnt};function Tnt(t){const{value:e,options:n=[],onChange:r}=t,{locale:i}=E.useContext(Nu),a=E.useMemo(()=>{const s=[n];return e.forEach((l,u)=>{const c=s[u].find(d=>d.value===l);c!=null&&c.children&&s.push(c.children)}),s},[e]);function o(s,l){if(l===e[s])return;if(e[s+1]){const c=e.slice(0,s+1);c[s]=l,r(c);return}const u=[...e];u[s]=l,r(u)}return R(o,"handleChange"),Re.createElement("section",{className:hm.cascaderList},a.map((s,l)=>s.length?Re.createElement("ul",{key:l,className:hm.cascaderListBoard},s.map(u=>Re.createElement("li",{key:u.value,className:hr(hm.cascaderListItem,{[hm.cascaderListItemActive]:u.value===e[l]})},Re.createElement("a",{className:hm.cascaderListOption,onClick:R(()=>o(l,u.value),"onClick")},Re.createElement("span",{className:hm.cascaderListCheckMark},u.value===e[l]&&Re.createElement(bM,null)),Re.createElement("span",null,u.label))))):Re.createElement("section",{key:l,className:hm.cascaderListEmpty},i==null?void 0:i.CascaderList.empty)),e.length<=0&&Re.createElement("section",{className:hm.cascaderListEmpty},i==null?void 0:i.CascaderList.empty))}R(Tnt,"CascaderList");const Lnt="univer-checkbox",xnt="univer-checkbox-target-input",Ont="univer-checkbox-target-inner",Nnt="univer-checkbox-disabled",knt="univer-checkbox-indeterminate",Fnt="univer-checkbox-target",C3={checkbox:Lnt,checkboxTargetInput:xnt,checkboxTargetInner:Ont,checkboxDisabled:Nnt,checkboxIndeterminate:knt,checkboxTarget:Fnt};function tp(t){const{children:e,className:n,style:r,checked:i=!1,indeterminate:a=!1,value:o,disabled:s=!1,onChange:l,contentClassName:u}=t,c=E.useRef(null);function d(f){var m,g;if(f.stopPropagation(),!(!l||s))if(typeof o<"u")l==null||l(o);else{const p=(g=(m=c==null?void 0:c.current)==null?void 0:m.checked)!=null?g:!1;l==null||l(p)}}R(d,"handleChange");const h=hr(n,C3.checkbox,{[C3.checkboxDisabled]:s,[C3.checkboxIndeterminate]:a&&!i});return Re.createElement("label",{className:h,style:r},Re.createElement("span",{className:C3.checkboxTarget},Re.createElement("input",{ref:c,className:C3.checkboxTargetInput,type:"checkbox",checked:i,disabled:s,onChange:d}),Re.createElement("span",{className:C3.checkboxTargetInner})),Re.createElement("span",{className:u},e))}R(tp,"Checkbox");const Vnt="univer-checkbox-group",Bnt="univer-checkbox-group-direction-vertical",roe={checkboxGroup:Vnt,checkboxGroupDirectionVertical:Bnt};function Unt(t){const{children:e,className:n,style:r,value:i,disabled:a,direction:o="horizontal",onChange:s}=t,l=R(c=>{i.includes(c)?s(i.filter(d=>d!==c)):s([...i,c])},"handleChange"),u=hr(n,roe.checkboxGroup,{[roe.checkboxGroupDirectionVertical]:o==="vertical"});return Re.createElement("div",{className:u,style:r},Re.Children.map(e,(c,d)=>Re.isValidElement(c)?Re.cloneElement(c,{key:d,children:c.props.children,checked:c.props.value?i.includes(c.props.value):!1,disabled:a??c.props.disabled,onChange:l}):c))}R(Unt,"CheckboxGroup");function lf(){return lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lf.apply(null,arguments)}R(lf,"_extends$7");function lh(t){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lh(t)}R(lh,"_typeof$4");function e0e(t,e){if(lh(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(e0e,"toPrimitive$3");function CQ(t){var e=e0e(t,"string");return lh(e)=="symbol"?e:e+""}R(CQ,"toPropertyKey$3");function Va(t,e,n){return(e=CQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(Va,"_defineProperty$d");function t0e(t){if(Array.isArray(t))return t}R(t0e,"_arrayWithHoles$3");function n0e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}R(n0e,"_iterableToArrayLimit$3");function Fw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}R(Fw,"_arrayLikeToArray$2");function SQ(t,e){if(t){if(typeof t=="string")return Fw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fw(t,e):void 0}}R(SQ,"_unsupportedIterableToArray$2");function r0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(r0e,"_nonIterableRest$3");function Qd(t,e){return t0e(t)||n0e(t,e)||SQ(t,e)||r0e()}R(Qd,"_slicedToArray$3");function Vj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(Vj,"ownKeys$a");function Ys(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vj(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(Ys,"_objectSpread2$3");function i0e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}R(i0e,"_classCallCheck$3");function a0e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,CQ(r.key),r)}}R(a0e,"_defineProperties$3");function o0e(t,e,n){return e&&a0e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}R(o0e,"_createClass$3");function Vw(t,e){return Vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vw(t,e)}R(Vw,"_setPrototypeOf$5");function s0e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vw(t,e)}R(s0e,"_inherits$3");function $v(t){return $v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(t)}R($v,"_getPrototypeOf$3");function bQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bQ=R(function(){return!!t},"_isNativeReflectConstruct"))()}R(bQ,"_isNativeReflectConstruct$3");function l0e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}R(l0e,"_assertThisInitialized$3");function u0e(t,e){if(e&&(lh(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l0e(t)}R(u0e,"_possibleConstructorReturn$3");function c0e(t){var e=bQ();return function(){var n,r=$v(t);if(e){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u0e(this,n)}}R(c0e,"_createSuper$3");function d0e(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}R(d0e,"_objectWithoutPropertiesLoose$5");function FC(t,e){if(t==null)return{};var n,r,i=d0e(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}R(FC,"_objectWithoutProperties$3");const ys=Math.round;function PE(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}R(PE,"splitColorStr");const ioe=R((t,e,n)=>n===0?t:t/100,"parseHSVorHSL");function G3(t,e){const n=e||255;return t>n?n:t<0?0:t}R(G3,"limitRange");const h0e=class f0e{constructor(e){Va(this,"isValid",!0),Va(this,"r",0),Va(this,"g",0),Va(this,"b",0),Va(this,"a",1),Va(this,"_h",void 0),Va(this,"_s",void 0),Va(this,"_l",void 0),Va(this,"_v",void 0),Va(this,"_max",void 0),Va(this,"_min",void 0),Va(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(R(n,"matchFormat"),e)if(typeof e=="string"){let r=function(a){return i.startsWith(a)};R(r,"matchPrefix");const i=e.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):r("rgb")?this.fromRgbString(i):r("hsl")?this.fromHslString(i):(r("hsv")||r("hsb"))&&this.fromHsvString(i)}else if(e instanceof f0e)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=G3(e.r),this.g=G3(e.g),this.b=G3(e.b),this.a=typeof e.a=="number"?G3(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}R(e,"adjustGamma");const n=e(this.r),r=e(this.g),i=e(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ys(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(e,n=50){const r=this._c(e),i=n/100,a=R(s=>(r[s]-this[s])*i+this[s],"calc"),o={r:ys(a("r")),g:ys(a("g")),b:ys(a("b")),a:ys(a("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),i=R(a=>ys((this[a]*this.a+n[a]*n.a*(1-this.a))/r),"calc");return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=ys(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=ys(this.getSaturation()*100),r=ys(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const i=this.clone();return i[e]=G3(n,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}R(r,"connectNum"),n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:i}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=ys(r*255);this.r=h,this.g=h,this.b=h}let a=0,o=0,s=0;const l=e/60,u=(1-Math.abs(2*r-1))*n,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(a=u,o=c):l>=1&&l<2?(a=c,o=u):l>=2&&l<3?(o=u,s=c):l>=3&&l<4?(o=c,s=u):l>=4&&l<5?(a=c,s=u):l>=5&&l<6&&(a=u,s=c);const d=r-u/2;this.r=ys((a+d)*255),this.g=ys((o+d)*255),this.b=ys((s+d)*255)}fromHsv({h:e,s:n,v:r,a:i}){this._h=e%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=ys(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=e/60,s=Math.floor(o),l=o-s,u=ys(r*(1-n)*255),c=ys(r*(1-n*l)*255),d=ys(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=c;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const n=PE(e,ioe);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=PE(e,ioe);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=PE(e,(r,i)=>i.includes("%")?ys(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};R(h0e,"FastColor");let m0e=h0e;var Hnt=["b"],jnt=["v"],aN=R(function(t){return Math.round(Number(t||0))},"getRoundNumber"),$nt=R(function(t){if(t instanceof m0e)return t;if(t&&lh(t)==="object"&&"h"in t&&"b"in t){var e=t,n=e.b,r=FC(e,Hnt);return Ys(Ys({},r),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},"convertHsb2Hsv"),P4=function(t){s0e(n,t);var e=c0e(n);function n(r){return i0e(this,n),e.call(this,$nt(r))}return R(n,"Color"),o0e(n,[{key:"toHsbString",value:R(function(){var r=this.toHsb(),i=aN(r.s*100),a=aN(r.b*100),o=aN(r.h),s=r.a,l="hsb(".concat(o,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:u},"toHsbString")},{key:"toHsb",value:R(function(){var r=this.toHsv(),i=r.v,a=FC(r,jnt);return Ys(Ys({},a),{},{b:i,a:this.a})},"toHsb")}]),n}(m0e),Wnt="rc-color-picker",W6=R(function(t){return t instanceof P4?t:new P4(t)},"generateColor"),znt=W6("#1677ff"),g0e=R(function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.color,a=t.type,o=r.current.getBoundingClientRect(),s=o.width,l=o.height,u=n.current.getBoundingClientRect(),c=u.width,d=u.height,h=c/2,f=d/2,m=(e.x+h)/s,g=1-(e.y+f)/l,p=i.toHsb(),v=m,_=(e.x+h)/s*360;if(a)switch(a){case"hue":return W6(Ys(Ys({},p),{},{h:_<=0?0:_}));case"alpha":return W6(Ys(Ys({},p),{},{a:v<=0?0:v}))}return W6({h:p.h,s:m<=0?0:m,b:g>=1?1:g,a:p.a})},"calculateColor"),p0e=R(function(t,e){var n=t.toHsb();switch(e){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},"calcOffset"),v0e={exports:{}};/*! |
|
|
Copyright (c) 2018 Jed Watson. |
|
|
Licensed under the MIT License (MIT), see |
|
|
http://jedwatson.github.io/classnames |
|
|
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}R(n,"classNames");function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)e.call(a,s)&&a[s]&&(o=i(o,s));return o}R(r,"parseValue");function i(a,o){return o?a?a+" "+o:a+o:a}R(i,"appendClass"),t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(v0e);var qnt=v0e.exports;const wn=xu(qnt);var _0e=R(function(t){var e=t.color,n=t.prefixCls,r=t.className,i=t.style,a=t.onClick,o="".concat(n,"-color-block");return Re.createElement("div",{className:wn(o,r),style:i,onClick:a},Re.createElement("div",{className:"".concat(o,"-inner"),style:{background:e}}))},"ColorBlock");function C0e(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}R(C0e,"getPosition");function yQ(t){var e=t.targetRef,n=t.containerRef,r=t.direction,i=t.onDragChange,a=t.onDragChangeComplete,o=t.calculate,s=t.color,l=t.disabledDrag,u=E.useState({x:0,y:0}),c=Qd(u,2),d=c[0],h=c[1],f=E.useRef(null),m=E.useRef(null);E.useEffect(function(){h(o())},[s]),E.useEffect(function(){return function(){document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",m.current),f.current=null,m.current=null}},[]);var g=R(function(C){var S=C0e(C),b=S.pageX,y=S.pageY,A=n.current.getBoundingClientRect(),w=A.x,P=A.y,M=A.width,L=A.height,k=e.current.getBoundingClientRect(),O=k.width,$=k.height,B=O/2,V=$/2,X=Math.max(0,Math.min(b-w,M))-B,z=Math.max(0,Math.min(y-P,L))-V,F={x:X,y:r==="x"?d.y:z};if(O===0&&$===0||O!==$)return!1;i==null||i(F)},"updateOffset"),p=R(function(C){C.preventDefault(),g(C)},"onDragMove"),v=R(function(C){C.preventDefault(),document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",m.current),f.current=null,m.current=null,a==null||a()},"onDragStop"),_=R(function(C){document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),!l&&(g(C),document.addEventListener("mousemove",p),document.addEventListener("mouseup",v),document.addEventListener("touchmove",p),document.addEventListener("touchend",v),f.current=p,m.current=v)},"onDragStart");return[d,_]}R(yQ,"useColorDrag");function Ji(t){var e=E.useRef();e.current=t;var n=E.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(a))},[]);return n}R(Ji,"useEvent");function S0e(t){if(Array.isArray(t))return t}R(S0e,"_arrayWithHoles$2");function b0e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}R(b0e,"_iterableToArrayLimit$2");function Bw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}R(Bw,"_arrayLikeToArray$1");function EQ(t,e){if(t){if(typeof t=="string")return Bw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bw(t,e):void 0}}R(EQ,"_unsupportedIterableToArray$1");function y0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(y0e,"_nonIterableRest$2");function Ur(t,e){return S0e(t)||b0e(t,e)||EQ(t,e)||y0e()}R(Ur,"_slicedToArray$2");function hd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}R(hd,"canUseDom");var aoe=hd()?E.useLayoutEffect:E.useEffect,da=R(function(t,e){var n=E.useRef(!0);aoe(function(){return t(n.current)},e),aoe(function(){return n.current=!1,function(){n.current=!0}},[])},"useLayoutEffect2"),z6=R(function(t,e){da(function(n){if(!n)return t()},e)},"useLayoutUpdateEffect2");function M4(t){var e=E.useRef(!1),n=E.useState(t),r=Ur(n,2),i=r[0],a=r[1];E.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function o(s,l){l&&e.current||a(s)}return R(o,"safeSetState"),[i,o]}R(M4,"useSafeState");function ME(t){return t!==void 0}R(ME,"hasValue$1");function Ho(t,e){var n=e||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=M4(function(){return ME(i)?i:ME(r)?typeof r=="function"?r():r:typeof t=="function"?t():t}),l=Ur(s,2),u=l[0],c=l[1],d=i!==void 0?i:u,h=o?o(d):d,f=Ji(a),m=M4([d]),g=Ur(m,2),p=g[0],v=g[1];z6(function(){var C=p[0];u!==C&&f(u,C)},[p]),z6(function(){ME(i)||c(i)},[i]);var _=Ji(function(C,S){c(C,S),v([d],S)});return[h,_]}R(Ho,"useMergedState");function el(t){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},el(t)}R(el,"_typeof$3");var E0e={exports:{}},Ia={};/** |
|
|
* @license React |
|
|
* react-is.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var RQ=Symbol.for("react.element"),AQ=Symbol.for("react.portal"),EM=Symbol.for("react.fragment"),RM=Symbol.for("react.strict_mode"),AM=Symbol.for("react.profiler"),wM=Symbol.for("react.provider"),DM=Symbol.for("react.context"),Ynt=Symbol.for("react.server_context"),IM=Symbol.for("react.forward_ref"),PM=Symbol.for("react.suspense"),MM=Symbol.for("react.suspense_list"),TM=Symbol.for("react.memo"),LM=Symbol.for("react.lazy"),Xnt=Symbol.for("react.offscreen"),R0e;R0e=Symbol.for("react.module.reference");function Ac(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case RQ:switch(t=t.type,t){case EM:case AM:case RM:case PM:case MM:return t;default:switch(t=t&&t.$$typeof,t){case Ynt:case DM:case IM:case LM:case TM:case wM:return t;default:return e}}case AQ:return e}}}R(Ac,"v");Ia.ContextConsumer=DM;Ia.ContextProvider=wM;Ia.Element=RQ;Ia.ForwardRef=IM;Ia.Fragment=EM;Ia.Lazy=LM;Ia.Memo=TM;Ia.Portal=AQ;Ia.Profiler=AM;Ia.StrictMode=RM;Ia.Suspense=PM;Ia.SuspenseList=MM;Ia.isAsyncMode=function(){return!1};Ia.isConcurrentMode=function(){return!1};Ia.isContextConsumer=function(t){return Ac(t)===DM};Ia.isContextProvider=function(t){return Ac(t)===wM};Ia.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===RQ};Ia.isForwardRef=function(t){return Ac(t)===IM};Ia.isFragment=function(t){return Ac(t)===EM};Ia.isLazy=function(t){return Ac(t)===LM};Ia.isMemo=function(t){return Ac(t)===TM};Ia.isPortal=function(t){return Ac(t)===AQ};Ia.isProfiler=function(t){return Ac(t)===AM};Ia.isStrictMode=function(t){return Ac(t)===RM};Ia.isSuspense=function(t){return Ac(t)===PM};Ia.isSuspenseList=function(t){return Ac(t)===MM};Ia.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===EM||t===AM||t===RM||t===PM||t===MM||t===Xnt||typeof t=="object"&&t!==null&&(t.$$typeof===LM||t.$$typeof===TM||t.$$typeof===wM||t.$$typeof===DM||t.$$typeof===IM||t.$$typeof===R0e||t.getModuleId!==void 0)};Ia.typeOf=Ac;E0e.exports=Ia;var v8=E0e.exports;function xM(t,e,n){var r=E.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}R(xM,"useMemo");var wQ=R(function(t,e){typeof t=="function"?t(e):el(t)==="object"&&t&&"current"in t&&(t.current=e)},"fillRef"),i2=R(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(Boolean);return r.length<=1?r[0]:function(i){e.forEach(function(a){wQ(a,i)})}},"composeRef"),T7=R(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return xM(function(){return i2.apply(void 0,e)},e,function(r,i){return r.length!==i.length||r.every(function(a,o){return a!==i[o]})})},"useComposeRef"),L7=R(function(t){var e,n,r=v8.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!((e=r.prototype)!==null&&e!==void 0&&e.render)&&r.$$typeof!==v8.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==v8.ForwardRef)},"supportRef");function Gnt(t){return E.isValidElement(t)&&!v8.isFragment(t)}R(Gnt,"isReactElement");Number(E.version.split(".")[0])>=19;function A0e(t,e){if(el(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(A0e,"toPrimitive$2");function DQ(t){var e=A0e(t,"string");return el(e)=="symbol"?e:e+""}R(DQ,"toPropertyKey$2");function ki(t,e,n){return(e=DQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(ki,"_defineProperty$c");function Bj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(Bj,"ownKeys$9");function Ui(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bj(Object(n),!0).forEach(function(r){ki(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(Ui,"_objectSpread2$2");function w0e(t){if(Array.isArray(t))return Bw(t)}R(w0e,"_arrayWithoutHoles$4");function D0e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}R(D0e,"_iterableToArray$4");function I0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(I0e,"_nonIterableSpread$4");function OM(t){return w0e(t)||D0e(t)||EQ(t)||I0e()}R(OM,"_toConsumableArray$5");var Uj={},Qnt=R(function(t){},"preMessage2");function P0e(t,e){}R(P0e,"warning$2");function M0e(t,e){}R(M0e,"note$1");function T0e(){Uj={}}R(T0e,"resetWarned$1");function IQ(t,e,n){!e&&!Uj[n]&&(t(!1,n),Uj[n]=!0)}R(IQ,"call$1");function Yf(t,e){IQ(P0e,t,e)}R(Yf,"warningOnce$1");function L0e(t,e){IQ(M0e,t,e)}R(L0e,"noteOnce$1");Yf.preMessage=Qnt;Yf.resetWarned=T0e;Yf.noteOnce=L0e;var x0e=R(function(t){var e=t.size,n=e===void 0?"default":e,r=t.color,i=t.prefixCls;return Re.createElement("div",{className:wn("".concat(i,"-handler"),Va({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:r}})},"Handler"),O0e=R(function(t){var e=t.children,n=t.style,r=t.prefixCls;return Re.createElement("div",{className:"".concat(r,"-palette"),style:Ys({position:"relative"},n)},e)},"Palette"),N0e=E.forwardRef(function(t,e){var n=t.children,r=t.x,i=t.y;return Re.createElement("div",{ref:e,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Knt=R(function(t){var e=t.color,n=t.onChange,r=t.prefixCls,i=t.onChangeComplete,a=t.disabled,o=E.useRef(),s=E.useRef(),l=E.useRef(e),u=Ji(function(m){var g=g0e({offset:m,targetRef:s,containerRef:o,color:e});l.current=g,n(g)}),c=yQ({color:e,containerRef:o,targetRef:s,calculate:R(function(){return p0e(e)},"calculate"),onDragChange:u,onDragChangeComplete:R(function(){return i==null?void 0:i(l.current)},"onDragChangeComplete"),disabledDrag:a}),d=Qd(c,2),h=d[0],f=d[1];return Re.createElement("div",{ref:o,className:"".concat(r,"-select"),onMouseDown:f,onTouchStart:f},Re.createElement(O0e,{prefixCls:r},Re.createElement(N0e,{x:h.x,y:h.y,ref:s},Re.createElement(x0e,{color:e.toRgbString(),prefixCls:r})),Re.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(e.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},"Picker"),Znt=R(function(t,e){var n=Ho(t,{value:e}),r=Qd(n,2),i=r[0],a=r[1],o=E.useMemo(function(){return W6(i)},[i]);return[o,a]},"useColorState"),Jnt=R(function(t){var e=t.colors,n=t.children,r=t.direction,i=r===void 0?"to right":r,a=t.type,o=t.prefixCls,s=E.useMemo(function(){return e.map(function(l,u){var c=W6(l);return a==="alpha"&&u===e.length-1&&(c=new P4(c.setA(1))),c.toRgbString()}).join(",")},[e,a]);return Re.createElement("div",{className:"".concat(o,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(s,")")}},n)},"Gradient"),ert=R(function(t){var e=t.prefixCls,n=t.colors,r=t.disabled,i=t.onChange,a=t.onChangeComplete,o=t.color,s=t.type,l=E.useRef(),u=E.useRef(),c=E.useRef(o),d=R(function(C){return s==="hue"?C.getHue():C.a*100},"getValue"),h=Ji(function(C){var S=g0e({offset:C,targetRef:u,containerRef:l,color:o,type:s});c.current=S,i(d(S))}),f=yQ({color:o,targetRef:u,containerRef:l,calculate:R(function(){return p0e(o,s)},"calculate"),onDragChange:h,onDragChangeComplete:R(function(){a(d(c.current))},"onDragChangeComplete"),direction:"x",disabledDrag:r}),m=Qd(f,2),g=m[0],p=m[1],v=Re.useMemo(function(){if(s==="hue"){var C=o.toHsb();C.s=1,C.b=1,C.a=1;var S=new P4(C);return S}return o},[o,s]),_=Re.useMemo(function(){return n.map(function(C){return"".concat(C.color," ").concat(C.percent,"%")})},[n]);return Re.createElement("div",{ref:l,className:wn("".concat(e,"-slider"),"".concat(e,"-slider-").concat(s)),onMouseDown:p,onTouchStart:p},Re.createElement(O0e,{prefixCls:e},Re.createElement(N0e,{x:g.x,y:g.y,ref:u},Re.createElement(x0e,{size:"small",color:v.toHexString(),prefixCls:e})),Re.createElement(Jnt,{colors:_,type:s,prefixCls:e})))},"Slider");function k0e(t){return E.useMemo(function(){var e=t||{},n=e.slider;return[n||ert]},[t])}R(k0e,"useComponent");var trt=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],nrt=E.forwardRef(function(t,e){var n=t.value,r=t.defaultValue,i=t.prefixCls,a=i===void 0?Wnt:i,o=t.onChange,s=t.onChangeComplete,l=t.className,u=t.style,c=t.panelRender,d=t.disabledAlpha,h=d===void 0?!1:d,f=t.disabled,m=f===void 0?!1:f,g=t.components,p=k0e(g),v=Qd(p,1),_=v[0],C=Znt(r||znt,n),S=Qd(C,2),b=S[0],y=S[1],A=E.useMemo(function(){return b.setA(1).toRgbString()},[b]),w=R(function(z,F){n||y(z),o==null||o(z,F)},"handleChange2"),P=R(function(z){return new P4(b.setHue(z))},"getHueColor2"),M=R(function(z){return new P4(b.setA(z/100))},"getAlphaColor2"),L=R(function(z){w(P(z),{type:"hue",value:z})},"onHueChange2"),k=R(function(z){w(M(z),{type:"alpha",value:z})},"onAlphaChange2"),O=R(function(z){s&&s(P(z))},"onHueChangeComplete2"),$=R(function(z){s&&s(M(z))},"onAlphaChangeComplete2"),B=wn("".concat(a,"-panel"),l,Va({},"".concat(a,"-panel-disabled"),m)),V={prefixCls:a,disabled:m,color:b},X=Re.createElement(Re.Fragment,null,Re.createElement(Knt,lf({onChange:w},V,{onChangeComplete:s})),Re.createElement("div",{className:"".concat(a,"-slider-container")},Re.createElement("div",{className:wn("".concat(a,"-slider-group"),Va({},"".concat(a,"-slider-group-disabled-alpha"),h))},Re.createElement(_,lf({},V,{type:"hue",colors:trt,min:0,max:359,value:b.getHue(),onChange:L,onChangeComplete:O})),!h&&Re.createElement(_,lf({},V,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:A}],min:0,max:100,value:b.a*100,onChange:k,onChangeComplete:$}))),Re.createElement(_0e,{color:b.toRgbString(),prefixCls:a})));return Re.createElement("div",{className:B,style:u,ref:e},typeof c=="function"?c(X):X)});const rrt="univer-color-picker",irt="univer-color-picker-color-blocks",oN={colorPicker:rrt,colorPickerColorBlocks:irt},art=["#35322B","#505050","#606060","#6F6F6F","#8B8B8B","#B2B2B2","#CCCCCC","#E5E5E5","#F5F5F5","#FFFFFF","#9D0000","#B20000","#CD0F0F","#E30909","#F30B0B","#FE4B4B","#FA7979","#FB9D9D","#FDCECE","#FEE7E7","#B24000","#CC4F10","#DF5D00","#F96800","#FB8937","#FF8C51","#FCA669","#FDC49B","#FEE1CD","#FEF0E6","#B19401","#C5A300","#D8B300","#EBC301","#F9D700","#FBE137","#FCE869","#FDF09B","#FEF7CD","#FEFBE6","#58770A","#688C0D","#7AA017","#8BBB11","#A4DC16","#BEEE44","#CEF273","#DEF6A2","#EFFBD0","#F7FDE8","#007676","#008A8A","#009E9E","#00BBBB","#1CD8D8","#2AEAEA","#76EFEF","#A3F5F5","#D1FAFA","#E8FCFC","#001F9C","#0025B7","#012BD2","#133DE3","#2F55EB","#4567ED","#738DF2","#A2B3F6","#D0D9FB","#E8ECFD","#3F0198","#510EB0","#6721CB","#7735D4","#894EDE","#9E6DE3","#AA82E3","#C7ABED","#E3D5F6","#F1EAFA","#8F0550","#A1095C","#C1026B","#D4157E","#E7258F","#F248A6","#F273B9","#F6A2D0","#FBD0E8","#FDE8F3"];function VC(t){const{onChange:e}=t;function n(i){i.stopPropagation()}R(n,"handleStopPropagation");function r(i){var a;const o=(a=typeof i=="string"?i:i.toHexString())!=null?a:"";e==null||e(o)}return R(r,"handleChange"),Re.createElement("section",null,Re.createElement("div",null,Re.createElement("div",{className:oN.colorPickerColorBlocks},art.map(i=>Re.createElement(_0e,{key:i,prefixCls:oN.colorPicker,color:i,onClick:R(()=>r(i),"onClick")})))),Re.createElement("section",{onClick:n},Re.createElement(nrt,{prefixCls:oN.colorPicker,disabledAlpha:!0,onChangeComplete:r})))}R(VC,"ColorPicker");function fr(){return fr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fr.apply(null,arguments)}R(fr,"_extends$6");function PQ(t){if(Array.isArray(t))return t}R(PQ,"_arrayWithHoles$1");function F0e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}R(F0e,"_iterableToArrayLimit$1");function Uw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}R(Uw,"_arrayLikeToArray");function NM(t,e){if(t){if(typeof t=="string")return Uw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uw(t,e):void 0}}R(NM,"_unsupportedIterableToArray");function MQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(MQ,"_nonIterableRest$1");function Pt(t,e){return PQ(t)||F0e(t,e)||NM(t,e)||MQ()}R(Pt,"_slicedToArray$1");var V0e=E.createContext(null),ooe=[];function B0e(t,e){var n=E.useState(function(){if(!hd())return null;var m=document.createElement("div");return m}),r=Ur(n,1),i=r[0],a=E.useRef(!1),o=E.useContext(V0e),s=E.useState(ooe),l=Ur(s,2),u=l[0],c=l[1],d=o||(a.current?void 0:function(m){c(function(g){var p=[m].concat(OM(g));return p})});function h(){i.parentElement||document.body.appendChild(i),a.current=!0}R(h,"append");function f(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return R(f,"cleanup"),da(function(){return t?o?o(h):h():f(),f},[t]),da(function(){u.length&&(u.forEach(function(m){return m()}),c(ooe))},[u]),[i,d]}R(B0e,"useDom");function Hw(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}R(Hw,"contains");var soe="data-rc-order",loe="data-rc-priority",ort="rc-util-key",Hj=new Map;function TQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):ort}R(TQ,"getMark");function BC(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}R(BC,"getContainer");function U0e(t){return t==="queue"?"prependQueue":t?"prepend":"append"}R(U0e,"getOrder");function kM(t){return Array.from((Hj.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}R(kM,"findStyles");function LQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hd())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,o=U0e(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(soe,o),s&&a&&l.setAttribute(loe,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=t;var u=BC(e),c=u.firstChild;if(r){if(s){var d=(e.styles||kM(u)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(soe)))return!1;var f=Number(h.getAttribute(loe)||0);return a>=f});if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}R(LQ,"injectCSS");function xQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=BC(e);return(e.styles||kM(n)).find(function(r){return r.getAttribute(TQ(e))===t})}R(xQ,"findExistNode");function jw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xQ(t,e);if(n){var r=BC(e);r.removeChild(n)}}R(jw,"removeCSS");function H0e(t,e){var n=Hj.get(t);if(!n||!Hw(document,n)){var r=LQ("",e),i=r.parentNode;Hj.set(t,i),t.removeChild(r)}}R(H0e,"syncRealContainer");function OQ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=BC(n),i=kM(r),a=Ui(Ui({},n),{},{styles:i});H0e(r,a);var o=xQ(e,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var c=LQ(t,a);return c.setAttribute(TQ(a),e),c}R(OQ,"updateCSS");function j0e(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(t){var o=getComputedStyle(t);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",d=u?"height: ".concat(s.height,";"):"";OQ(` |
|
|
#`.concat(e,`::-webkit-scrollbar { |
|
|
`).concat(c,` |
|
|
`).concat(d,` |
|
|
}`),e)}catch(m){console.error(m),i=l,a=u}}document.body.appendChild(n);var h=t&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,f=t&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),jw(e),{width:h,height:f}}R(j0e,"measureScrollbarSize");function $0e(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:j0e(t)}R($0e,"getTargetScrollBarSize");function W0e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}R(W0e,"isBodyOverflowing");var srt="rc-util-locker-".concat(Date.now()),uoe=0;function z0e(t){var e=!!t,n=E.useState(function(){return uoe+=1,"".concat(srt,"_").concat(uoe)}),r=Ur(n,1),i=r[0];da(function(){if(e){var a=$0e(document.body).width,o=W0e();OQ(` |
|
|
html body { |
|
|
overflow-y: hidden; |
|
|
`.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` |
|
|
}`),i)}else jw(i);return function(){jw(i)}},[e,i])}R(z0e,"useScrollLocker");var lrt=!1;function q0e(t){return lrt}R(q0e,"inlineMock");var coe=R(function(t){return t===!1?!1:!hd()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},"getPortalContainer2"),NQ=E.forwardRef(function(t,e){var n=t.open,r=t.autoLock,i=t.getContainer;t.debug;var a=t.autoDestroy,o=a===void 0?!0:a,s=t.children,l=E.useState(n),u=Ur(l,2),c=u[0],d=u[1],h=c||n;E.useEffect(function(){(o||n)&&d(n)},[n,o]);var f=E.useState(function(){return coe(i)}),m=Ur(f,2),g=m[0],p=m[1];E.useEffect(function(){var L=coe(i);p(L??null)});var v=B0e(h&&!g),_=Ur(v,2),C=_[0],S=_[1],b=g??C;z0e(r&&n&&hd()&&(b===C||b===document.body));var y=null;if(s&&L7(s)&&e){var A=s;y=A.ref}var w=T7(y,e);if(!h||!hd()||g===void 0)return null;var P=b===!1||q0e(),M=s;return e&&(M=E.cloneElement(s,{ref:w})),E.createElement(V0e.Provider,{value:S},P?M:bf.createPortal(M,b))}),Y0e=E.createContext({});function Ao(t){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(t)}R(Ao,"_typeof$2");function X0e(t,e){if(Ao(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(X0e,"toPrimitive$1");function kQ(t){var e=X0e(t,"string");return Ao(e)=="symbol"?e:e+""}R(kQ,"toPropertyKey$1");function pn(t,e,n){return(e=kQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(pn,"_defineProperty$b");function jj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(jj,"ownKeys$8");function Dt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jj(Object(n),!0).forEach(function(r){pn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(Dt,"_objectSpread2$1");function G0e(){var t=Ui({},HGe);return t.useId}R(G0e,"getUseId");var doe=0,hoe=G0e();const Q0e=hoe?R(function(t){var e=hoe();return t||e},"useId"):R(function(t){var e=E.useState("ssr-id"),n=Ur(e,2),r=n[0],i=n[1];return E.useEffect(function(){var a=doe;doe+=1,i("rc_unique_".concat(a))},[]),t||r},"useCompatId");var Fr={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},urt=`accept acceptCharset accessKey action allowFullScreen allowTransparency |
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge |
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu |
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable |
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder |
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity |
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media |
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open |
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required |
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected |
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style |
|
|
summary tabIndex target title type useMap value width wmode wrap`,crt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown |
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick |
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown |
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel |
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough |
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata |
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,drt="".concat(urt," ").concat(crt).split(/[\s\n]+/),hrt="aria-",frt="data-";function $j(t,e){return t.indexOf(e)===0}R($j,"match");function yf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=Ui({},e);var r={};return Object.keys(t).forEach(function(i){(n.aria&&(i==="role"||$j(i,hrt))||n.data&&$j(i,frt)||n.attr&&drt.includes(i))&&(r[i]=t[i])}),r}R(yf,"pickAttrs");function Wj(t,e,n){var r=e;return!r&&n&&(r="".concat(t,"-").concat(n)),r}R(Wj,"getMotionName");function zj(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}R(zj,"getScroll");function K0e(t){var e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=zj(i),n.top+=zj(i,!0),n}R(K0e,"offset");function T4(t){return t instanceof HTMLElement||t instanceof SVGElement}R(T4,"isDOM");function Z0e(t){return t&&el(t)==="object"&&T4(t.nativeElement)?t.nativeElement:T4(t)?t:null}R(Z0e,"getDOM");function q6(t){var e=Z0e(t);if(e)return e;if(t instanceof Re.Component){var n;return(n=ec.findDOMNode)===null||n===void 0?void 0:n.call(ec,t)}return null}R(q6,"findDOMNode$1");function J0e(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}R(J0e,"_objectWithoutPropertiesLoose$4");function Ka(t,e){if(t==null)return{};var n,r,i=J0e(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}R(Ka,"_objectWithoutProperties$2");var mrt=E.createContext({});function UC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}R(UC,"_classCallCheck$2");function qj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kQ(r.key),r)}}R(qj,"_defineProperties$2");function HC(t,e,n){return e&&qj(t.prototype,e),n&&qj(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}R(HC,"_createClass$2");function $w(t,e){return $w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$w(t,e)}R($w,"_setPrototypeOf$4");function FM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$w(t,e)}R(FM,"_inherits$2");function Wv(t){return Wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wv(t)}R(Wv,"_getPrototypeOf$2");function FQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FQ=R(function(){return!!t},"_isNativeReflectConstruct"))()}R(FQ,"_isNativeReflectConstruct$2");function Ww(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}R(Ww,"_assertThisInitialized$2");function e2e(t,e){if(e&&(Ao(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ww(t)}R(e2e,"_possibleConstructorReturn$2");function VM(t){var e=FQ();return function(){var n,r=Wv(t);if(e){var i=Wv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return e2e(this,n)}}R(VM,"_createSuper$2");var grt=function(t){FM(n,t);var e=VM(n);function n(){return UC(this,n),e.apply(this,arguments)}return R(n,"DomWrapper"),HC(n,[{key:"render",value:R(function(){return this.props.children},"render")}]),n}(E.Component);function t2e(t){var e=E.useReducer(function(s){return s+1},0),n=Ur(e,2),r=n[1],i=E.useRef(t),a=Ji(function(){return i.current}),o=Ji(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}R(t2e,"useSyncState$1");var Dm="none",ey="appear",ty="enter",ny="leave",foe="none",H1="prepare",R6="start",A6="active",VQ="end",n2e="prepared";function Yj(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}R(Yj,"makePrefixMap");function r2e(t,e){var n={animationend:Yj("Animation","AnimationEnd"),transitionend:Yj("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}R(r2e,"getVendorPrefixes");var prt=r2e(hd(),typeof window<"u"?window:{}),i2e={};if(hd()){var vrt=document.createElement("div");i2e=vrt.style}var ry={};function BQ(t){if(ry[t])return ry[t];var e=prt[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(e,a)&&a in i2e)return ry[t]=e[a],ry[t]}return""}R(BQ,"getVendorPrefixedEventName");var a2e=BQ("animationend"),o2e=BQ("transitionend"),s2e=!!(a2e&&o2e),moe=a2e||"animationend",goe=o2e||"transitionend";function Xj(t,e){if(!t)return null;if(Ao(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}R(Xj,"getTransitionName");const _rt=R(function(t){var e=E.useRef();function n(i){i&&(i.removeEventListener(goe,t),i.removeEventListener(moe,t))}R(n,"removeMotionEvents");function r(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(goe,t),i.addEventListener(moe,t),e.current=i)}return R(r,"patchMotionEvents"),E.useEffect(function(){return function(){n(e.current)}},[]),[r,n]},"useDomMotionEvents");var l2e=hd()?E.useLayoutEffect:E.useEffect,u2e=R(function(t){return+setTimeout(t,16)},"raf2"),c2e=R(function(t){return clearTimeout(t)},"caf2");typeof window<"u"&&"requestAnimationFrame"in window&&(u2e=R(function(t){return window.requestAnimationFrame(t)},"raf3"),c2e=R(function(t){return window.cancelAnimationFrame(t)},"caf3"));var poe=0,UQ=new Map;function HQ(t){UQ.delete(t)}R(HQ,"cleanup");var Wi=R(function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;poe+=1;var n=poe;function r(i){if(i===0)HQ(n),t();else{var a=u2e(function(){r(i-1)});UQ.set(n,a)}}return R(r,"callRef"),r(e),n},"wrapperRaf2");Wi.cancel=function(t){var e=UQ.get(t);return HQ(t),c2e(e)};const Crt=R(function(){var t=E.useRef(null);function e(){Wi.cancel(t.current)}R(e,"cancelNextFrame");function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var a=Wi(function(){i<=1?r({isCanceled:R(function(){return a!==t.current},"isCanceled")}):n(r,i-1)});t.current=a}return R(n,"nextFrame"),E.useEffect(function(){return function(){e()}},[]),[n,e]},"useNextFrame");var Srt=[H1,R6,A6,VQ],brt=[H1,n2e],d2e=!1,yrt=!0;function jQ(t){return t===A6||t===VQ}R(jQ,"isActive");const Ert=R(function(t,e,n){var r=M4(foe),i=Pt(r,2),a=i[0],o=i[1],s=Crt(),l=Pt(s,2),u=l[0],c=l[1];function d(){o(H1,!0)}R(d,"startQueue");var h=e?brt:Srt;return l2e(function(){if(a!==foe&&a!==VQ){var f=h.indexOf(a),m=h[f+1],g=n(a);g===d2e?o(m,!0):m&&u(function(p){function v(){p.isCanceled()||o(m,!0)}R(v,"doNext"),g===!0?v():Promise.resolve(g).then(v)})}},[t,a]),E.useEffect(function(){return function(){c()}},[]),[d,a]},"useStepQueue");function h2e(t,e,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,u=l===void 0?!0:l,c=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,f=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,v=r.onLeaveStart,_=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,b=r.onAppearEnd,y=r.onEnterEnd,A=r.onLeaveEnd,w=r.onVisibleChanged,P=M4(),M=Pt(P,2),L=M[0],k=M[1],O=t2e(Dm),$=Pt(O,2),B=$[0],V=$[1],X=M4(null),z=Pt(X,2),F=z[0],H=z[1],W=B(),K=E.useRef(!1),G=E.useRef(null);function te(){return n()}R(te,"getDomElement");var Y=E.useRef(!1);function ae(){V(Dm),H(null,!0)}R(ae,"updateMotionEndStatus");var ie=Ji(function(He){var ct=B();if(ct!==Dm){var _t=te();if(!(He&&!He.deadline&&He.target!==_t)){var Ye=Y.current,Ot;ct===ey&&Ye?Ot=b==null?void 0:b(_t,He):ct===ty&&Ye?Ot=y==null?void 0:y(_t,He):ct===ny&&Ye&&(Ot=A==null?void 0:A(_t,He)),Ye&&Ot!==!1&&ae()}}}),ne=_rt(ie),de=Pt(ne,1),_e=de[0],Pe=R(function(He){switch(He){case ey:return pn(pn(pn({},H1,h),R6,g),A6,_);case ty:return pn(pn(pn({},H1,f),R6,p),A6,C);case ny:return pn(pn(pn({},H1,m),R6,v),A6,S);default:return{}}},"getEventHandlers"),De=E.useMemo(function(){return Pe(W)},[W]),Ee=Ert(W,!t,function(He){if(He===H1){var ct=De[H1];return ct?ct(te()):d2e}if(ke in De){var _t;H(((_t=De[ke])===null||_t===void 0?void 0:_t.call(De,te(),null))||null)}return ke===A6&&W!==Dm&&(_e(te()),c>0&&(clearTimeout(G.current),G.current=setTimeout(function(){ie({deadline:!0})},c))),ke===n2e&&ae(),yrt}),ye=Pt(Ee,2),Ve=ye[0],ke=ye[1],Ke=jQ(ke);Y.current=Ke,l2e(function(){k(e);var He=K.current;K.current=!0;var ct;!He&&e&&s&&(ct=ey),He&&e&&a&&(ct=ty),(He&&!e&&u||!He&&d&&!e&&u)&&(ct=ny);var _t=Pe(ct);ct&&(t||_t[H1])?(V(ct),Ve()):V(Dm)},[e]),E.useEffect(function(){(W===ey&&!s||W===ty&&!a||W===ny&&!u)&&V(Dm)},[s,a,u]),E.useEffect(function(){return function(){K.current=!1,clearTimeout(G.current)}},[]);var $e=E.useRef(!1);E.useEffect(function(){L&&($e.current=!0),L!==void 0&&W===Dm&&(($e.current||L)&&(w==null||w(L)),$e.current=!0)},[L,W]);var Fe=F;return De[H1]&&ke===R6&&(Fe=Dt({transition:"none"},Fe)),[W,ke,Fe,L??e]}R(h2e,"useStatus");function f2e(t){var e=t;Ao(t)==="object"&&(e=t.transitionSupport);function n(i,a){return!!(i.motionName&&e&&a!==!1)}R(n,"isSupportTransition");var r=E.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,u=l===void 0?!0:l,c=i.forceRender,d=i.children,h=i.motionName,f=i.leavedClassName,m=i.eventProps,g=E.useContext(mrt),p=g.motion,v=n(i,p),_=E.useRef(),C=E.useRef();function S(){try{return _.current instanceof HTMLElement?_.current:q6(C.current)}catch{return null}}R(S,"getDomElement");var b=h2e(v,s,S,i),y=Pt(b,4),A=y[0],w=y[1],P=y[2],M=y[3],L=E.useRef(M);M&&(L.current=!0);var k=E.useCallback(function(F){_.current=F,wQ(a,F)},[a]),O,$=Dt(Dt({},m),{},{visible:s});if(!d)O=null;else if(A===Dm)M?O=d(Dt({},$),k):!u&&L.current&&f?O=d(Dt(Dt({},$),{},{className:f}),k):c||!u&&!f?O=d(Dt(Dt({},$),{},{style:{display:"none"}}),k):O=null;else{var B;w===H1?B="prepare":jQ(w)?B="active":w===R6&&(B="start");var V=Xj(h,"".concat(A,"-").concat(B));O=d(Dt(Dt({},$),{},{className:wn(Xj(h,A),pn(pn({},V,V&&B),h,typeof h=="string")),style:P}),k)}if(E.isValidElement(O)&&L7(O)){var X=O,z=X.ref;z||(O=E.cloneElement(O,{ref:k}))}return E.createElement(grt,{ref:C},O)});return r.displayName="CSSMotion",r}R(f2e,"genCSSMotion");const Op=f2e(s2e);var Gj="add",Qj="keep",Kj="remove",sN="removed";function m2e(t){var e;return t&&Ao(t)==="object"&&"key"in t?e=t:e={key:t},Dt(Dt({},e),{},{key:String(e.key)})}R(m2e,"wrapKeyToObject");function zw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(m2e)}R(zw,"parseKeys");function g2e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,a=zw(t),o=zw(e);a.forEach(function(u){for(var c=!1,d=r;d<i;d+=1){var h=o[d];if(h.key===u.key){r<d&&(n=n.concat(o.slice(r,d).map(function(f){return Dt(Dt({},f),{},{status:Gj})})),r=d),n.push(Dt(Dt({},h),{},{status:Qj})),r+=1,c=!0;break}}c||n.push(Dt(Dt({},u),{},{status:Kj}))}),r<i&&(n=n.concat(o.slice(r).map(function(u){return Dt(Dt({},u),{},{status:Gj})})));var s={};n.forEach(function(u){var c=u.key;s[c]=(s[c]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){n=n.filter(function(c){var d=c.key,h=c.status;return d!==u||h!==Kj}),n.forEach(function(c){c.key===u&&(c.status=Qj)})}),n}R(g2e,"diffKeys");var Rrt=["component","children","onVisibleChanged","onAllRemoved"],Art=["status"],wrt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function p2e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Op,n=function(r){FM(a,r);var i=VM(a);function a(){var o;UC(this,a);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o=i.call.apply(i,[this].concat(l)),pn(Ww(o),"state",{keyEntities:[]}),pn(Ww(o),"removeKey",function(c){var d=o.state.keyEntities,h=d.map(function(f){return f.key!==c?f:Dt(Dt({},f),{},{status:sN})});return o.setState({keyEntities:h}),h.filter(function(f){var m=f.status;return m!==sN}).length}),o}return R(a,"CSSMotionList"),HC(a,[{key:"render",value:R(function(){var o=this,s=this.state.keyEntities,l=this.props,u=l.component,c=l.children,d=l.onVisibleChanged,h=l.onAllRemoved,f=Ka(l,Rrt),m=u||E.Fragment,g={};return wrt.forEach(function(p){g[p]=f[p],delete f[p]}),delete f.keys,E.createElement(m,f,s.map(function(p,v){var _=p.status,C=Ka(p,Art),S=_===Gj||_===Qj;return E.createElement(e,fr({},g,{key:C.key,visible:S,eventProps:C,onVisibleChanged:R(function(b){if(d==null||d(b,{key:C.key}),!b){var y=o.removeKey(C.key);y===0&&h&&h()}},"onVisibleChanged")}),function(b,y){return c(Dt(Dt({},b),{},{index:v}),y)})}))},"render")}],[{key:"getDerivedStateFromProps",value:R(function(o,s){var l=o.keys,u=s.keyEntities,c=zw(l),d=g2e(u,c);return{keyEntities:d.filter(function(h){var f=u.find(function(m){var g=m.key;return h.key===g});return!(f&&f.status===sN&&h.status===Kj)})}},"getDerivedStateFromProps")}]),a}(E.Component);return pn(n,"defaultProps",{component:"div"}),n}R(p2e,"genCSSMotionList");p2e(s2e);const Drt=E.memo(function(t){var e=t.children;return e},function(t,e){var n=e.shouldUpdate;return!n});var Irt={width:0,height:0,overflow:"hidden",outline:"none"},Prt={outline:"none"},Mrt=Re.forwardRef(function(t,e){var n=t.prefixCls,r=t.className,i=t.style,a=t.title,o=t.ariaId,s=t.footer,l=t.closable,u=t.closeIcon,c=t.onClose,d=t.children,h=t.bodyStyle,f=t.bodyProps,m=t.modalRender,g=t.onMouseDown,p=t.onMouseUp,v=t.holderRef,_=t.visible,C=t.forceRender,S=t.width,b=t.height,y=t.classNames,A=t.styles,w=Re.useContext(Y0e),P=w.panel,M=T7(v,P),L=E.useRef(),k=E.useRef();Re.useImperativeHandle(e,function(){return{focus:R(function(){var W;(W=L.current)===null||W===void 0||W.focus({preventScroll:!0})},"focus"),changeActive:R(function(W){var K=document,G=K.activeElement;W&&G===k.current?L.current.focus({preventScroll:!0}):!W&&G===L.current&&k.current.focus({preventScroll:!0})},"changeActive")}});var O={};S!==void 0&&(O.width=S),b!==void 0&&(O.height=b);var $=s?Re.createElement("div",{className:wn("".concat(n,"-footer"),y==null?void 0:y.footer),style:Dt({},A==null?void 0:A.footer)},s):null,B=a?Re.createElement("div",{className:wn("".concat(n,"-header"),y==null?void 0:y.header),style:Dt({},A==null?void 0:A.header)},Re.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,V=E.useMemo(function(){return Ao(l)==="object"&&l!==null?l:l?{closeIcon:u??Re.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,u,n]),X=yf(V,!0),z=Ao(l)==="object"&&l.disabled,F=l?Re.createElement("button",fr({type:"button",onClick:c,"aria-label":"Close"},X,{className:"".concat(n,"-close"),disabled:z}),V.closeIcon):null,H=Re.createElement("div",{className:wn("".concat(n,"-content"),y==null?void 0:y.content),style:A==null?void 0:A.content},F,B,Re.createElement("div",fr({className:wn("".concat(n,"-body"),y==null?void 0:y.body),style:Dt(Dt({},h),A==null?void 0:A.body)},f),d),$);return Re.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:M,style:Dt(Dt({},i),O),className:wn(n,r),onMouseDown:g,onMouseUp:p},Re.createElement("div",{ref:L,tabIndex:0,style:Prt},Re.createElement(Drt,{shouldUpdate:_||C},m?m(H):H)),Re.createElement("div",{tabIndex:0,ref:k,style:Irt}))}),v2e=E.forwardRef(function(t,e){var n=t.prefixCls,r=t.title,i=t.style,a=t.className,o=t.visible,s=t.forceRender,l=t.destroyOnClose,u=t.motionName,c=t.ariaId,d=t.onVisibleChanged,h=t.mousePosition,f=E.useRef(),m=E.useState(),g=Pt(m,2),p=g[0],v=g[1],_={};p&&(_.transformOrigin=p);function C(){var S=K0e(f.current);v(h&&(h.x||h.y)?"".concat(h.x-S.left,"px ").concat(h.y-S.top,"px"):"")}return R(C,"onPrepare"),E.createElement(Op,{visible:o,onVisibleChanged:d,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:l,ref:f},function(S,b){var y=S.className,A=S.style;return E.createElement(Mrt,fr({},t,{ref:e,title:r,ariaId:c,prefixCls:n,holderRef:b,style:Dt(Dt(Dt({},A),i),_),className:wn(a,y)}))})});v2e.displayName="Content";var Trt=R(function(t){var e=t.prefixCls,n=t.style,r=t.visible,i=t.maskProps,a=t.motionName,o=t.className;return E.createElement(Op,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(e,"-mask-hidden")},function(s,l){var u=s.className,c=s.style;return E.createElement("div",fr({ref:l,style:Dt(Dt({},c),n),className:wn("".concat(e,"-mask"),u,o)},i))})},"Mask"),Lrt=R(function(t){var e=t.prefixCls,n=e===void 0?"rc-dialog":e,r=t.zIndex,i=t.visible,a=i===void 0?!1:i,o=t.keyboard,s=o===void 0?!0:o,l=t.focusTriggerAfterClose,u=l===void 0?!0:l,c=t.wrapStyle,d=t.wrapClassName,h=t.wrapProps,f=t.onClose,m=t.afterOpenChange,g=t.afterClose,p=t.transitionName,v=t.animation,_=t.closable,C=_===void 0?!0:_,S=t.mask,b=S===void 0?!0:S,y=t.maskTransitionName,A=t.maskAnimation,w=t.maskClosable,P=w===void 0?!0:w,M=t.maskStyle,L=t.maskProps,k=t.rootClassName,O=t.classNames,$=t.styles,B=E.useRef(),V=E.useRef(),X=E.useRef(),z=E.useState(a),F=Pt(z,2),H=F[0],W=F[1],K=Q0e();function G(){Hw(V.current,document.activeElement)||(B.current=document.activeElement)}R(G,"saveLastOutSideActiveElementRef");function te(){if(!Hw(V.current,document.activeElement)){var ye;(ye=X.current)===null||ye===void 0||ye.focus()}}R(te,"focusDialogContent");function Y(ye){if(ye)te();else{if(W(!1),b&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch{}B.current=null}H&&(g==null||g())}m==null||m(ye)}R(Y,"onDialogVisibleChanged");function ae(ye){f==null||f(ye)}R(ae,"onInternalClose");var ie=E.useRef(!1),ne=E.useRef(),de=R(function(){clearTimeout(ne.current),ie.current=!0},"onContentMouseDown2"),_e=R(function(){ne.current=setTimeout(function(){ie.current=!1})},"onContentMouseUp2"),Pe=null;P&&(Pe=R(function(ye){ie.current?ie.current=!1:V.current===ye.target&&ae(ye)},"onWrapperClick2"));function De(ye){if(s&&ye.keyCode===Fr.ESC){ye.stopPropagation(),ae(ye);return}a&&ye.keyCode===Fr.TAB&&X.current.changeActive(!ye.shiftKey)}R(De,"onWrapperKeyDown"),E.useEffect(function(){a&&(W(!0),G())},[a]),E.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var Ee=Dt(Dt(Dt({zIndex:r},c),$==null?void 0:$.wrapper),{},{display:H?null:"none"});return E.createElement("div",fr({className:wn("".concat(n,"-root"),k)},yf(t,{data:!0})),E.createElement(Trt,{prefixCls:n,visible:b&&a,motionName:Wj(n,y,A),style:Dt(Dt({zIndex:r},M),$==null?void 0:$.mask),maskProps:L,className:O==null?void 0:O.mask}),E.createElement("div",fr({tabIndex:-1,onKeyDown:De,className:wn("".concat(n,"-wrap"),d,O==null?void 0:O.wrapper),ref:V,onClick:Pe,style:Ee},h),E.createElement(v2e,fr({},t,{onMouseDown:de,onMouseUp:_e,ref:X,closable:C,ariaId:K,prefixCls:n,visible:a&&H,onClose:ae,onVisibleChanged:Y,motionName:Wj(n,p,v)}))))},"Dialog2"),_2e=R(function(t){var e=t.visible,n=t.getContainer,r=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,o=t.afterClose,s=t.panelRef,l=E.useState(e),u=Pt(l,2),c=u[0],d=u[1],h=E.useMemo(function(){return{panel:s}},[s]);return E.useEffect(function(){e&&d(!0)},[e]),!r&&a&&!c?null:E.createElement(Y0e.Provider,{value:h},E.createElement(NQ,{open:e||r||c,autoDestroy:!1,getContainer:n,autoLock:e||c},E.createElement(Lrt,fr({},t,{destroyOnClose:a,afterClose:R(function(){o==null||o(),d(!1)},"afterClose")}))))},"DialogWrap");_2e.displayName="Dialog";var BM={exports:{}},C2e={},S2e={exports:{}},xrt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ort=xrt,Nrt=Ort;function $Q(){}R($Q,"emptyFunction");function WQ(){}R(WQ,"emptyFunctionWithReset");WQ.resetWarningCache=$Q;var krt=R(function(){function t(r,i,a,o,s,l){if(l!==Nrt){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}R(t,"shim"),t.isRequired=t;function e(){return t}R(e,"getShim");var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:WQ,resetWarningCache:$Q};return n.PropTypes=n,n},"factoryWithThrowingShims");S2e.exports=krt();var Xf=S2e.exports;const Vn=xu(Xf);var ko={},gh={};Object.defineProperty(gh,"__esModule",{value:!0});gh.dontSetMe=A2e;gh.findInArray=b2e;gh.int=R2e;gh.isFunction=y2e;gh.isNum=E2e;function b2e(t,e){for(let n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]}R(b2e,"findInArray");function y2e(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Function]"}R(y2e,"isFunction");function E2e(t){return typeof t=="number"&&!isNaN(t)}R(E2e,"isNum");function R2e(t){return parseInt(t,10)}R(R2e,"int");function A2e(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))}R(A2e,"dontSetMe");var Np={};Object.defineProperty(Np,"__esModule",{value:!0});Np.browserPrefixToKey=qQ;Np.browserPrefixToStyle=w2e;Np.default=void 0;Np.getPrefix=zQ;const lN=["Moz","Webkit","O","ms"];function zQ(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(t=window.document)===null||t===void 0||(t=t.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(let r=0;r<lN.length;r++)if(qQ(e,lN[r])in n)return lN[r];return""}R(zQ,"getPrefix");function qQ(t,e){return e?"".concat(e).concat(D2e(t)):t}R(qQ,"browserPrefixToKey");function w2e(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t}R(w2e,"browserPrefixToStyle");function D2e(t){let e="",n=!0;for(let r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):t[r]==="-"?n=!0:e+=t[r];return e}R(D2e,"kebabToTitleCase");Np.default=zQ();Object.defineProperty(ko,"__esModule",{value:!0});ko.addClassName=GQ;ko.addEvent=M2e;ko.addUserSelectStyles=H2e;ko.createCSSTransform=F2e;ko.createSVGTransform=V2e;ko.getTouch=B2e;ko.getTouchIdentifier=U2e;ko.getTranslation=UM;ko.innerHeight=O2e;ko.innerWidth=N2e;ko.matchesSelector=XQ;ko.matchesSelectorAndParentsTo=P2e;ko.offsetXYFromParent=k2e;ko.outerHeight=L2e;ko.outerWidth=x2e;ko.removeClassName=QQ;ko.removeEvent=T2e;ko.removeUserSelectStyles=j2e;var oc=gh,voe=I2e(Np);function YQ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(YQ=R(function(r){return r?n:e},"_getRequireWildcardCache$6"))(t)}R(YQ,"_getRequireWildcardCache$6");function I2e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=YQ(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(I2e,"_interopRequireWildcard$7");let iy="";function XQ(t,e){return iy||(iy=(0,oc.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,oc.isFunction)(t[n])})),(0,oc.isFunction)(t[iy])?t[iy](e):!1}R(XQ,"matchesSelector");function P2e(t,e,n){let r=t;do{if(XQ(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}R(P2e,"matchesSelectorAndParentsTo");function M2e(t,e,n,r){if(!t)return;const i={capture:!0,...r};t.addEventListener?t.addEventListener(e,n,i):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}R(M2e,"addEvent");function T2e(t,e,n,r){if(!t)return;const i={capture:!0,...r};t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}R(T2e,"removeEvent");function L2e(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,oc.int)(n.borderTopWidth),e+=(0,oc.int)(n.borderBottomWidth),e}R(L2e,"outerHeight");function x2e(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,oc.int)(n.borderLeftWidth),e+=(0,oc.int)(n.borderRightWidth),e}R(x2e,"outerWidth");function O2e(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,oc.int)(n.paddingTop),e-=(0,oc.int)(n.paddingBottom),e}R(O2e,"innerHeight");function N2e(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,oc.int)(n.paddingLeft),e-=(0,oc.int)(n.paddingRight),e}R(N2e,"innerWidth");function k2e(t,e,n){const r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),i=(t.clientX+e.scrollLeft-r.left)/n,a=(t.clientY+e.scrollTop-r.top)/n;return{x:i,y:a}}R(k2e,"offsetXYFromParent");function F2e(t,e){const n=UM(t,e,"px");return{[(0,voe.browserPrefixToKey)("transform",voe.default)]:n}}R(F2e,"createCSSTransform");function V2e(t,e){return UM(t,e,"")}R(V2e,"createSVGTransform");function UM(t,e,n){let{x:r,y:i}=t,a="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(e){const o="".concat(typeof e.x=="string"?e.x:e.x+n),s="".concat(typeof e.y=="string"?e.y:e.y+n);a="translate(".concat(o,", ").concat(s,")")+a}return a}R(UM,"getTranslation");function B2e(t,e){return t.targetTouches&&(0,oc.findInArray)(t.targetTouches,n=>e===n.identifier)||t.changedTouches&&(0,oc.findInArray)(t.changedTouches,n=>e===n.identifier)}R(B2e,"getTouch");function U2e(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}R(U2e,"getTouchIdentifier");function H2e(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} |
|
|
`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} |
|
|
`,t.getElementsByTagName("head")[0].appendChild(e)),t.body&&GQ(t.body,"react-draggable-transparent-selection")}R(H2e,"addUserSelectStyles");function j2e(t){if(t)try{if(t.body&&QQ(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}R(j2e,"removeUserSelectStyles");function GQ(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}R(GQ,"addClassName");function QQ(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}R(QQ,"removeClassName");var ph={};Object.defineProperty(ph,"__esModule",{value:!0});ph.canDragX=z2e;ph.canDragY=q2e;ph.createCoreData=X2e;ph.createDraggableData=G2e;ph.getBoundPosition=$2e;ph.getControlPosition=Y2e;ph.snapToGrid=W2e;var qu=gh,w6=ko;function $2e(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:r}=t.props;r=typeof r=="string"?r:Q2e(r);const i=HM(t);if(typeof r=="string"){const{ownerDocument:a}=i,o=a.defaultView;let s;if(r==="parent"?s=i.parentNode:s=a.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(i),c=o.getComputedStyle(l);r={left:-i.offsetLeft+(0,qu.int)(c.paddingLeft)+(0,qu.int)(u.marginLeft),top:-i.offsetTop+(0,qu.int)(c.paddingTop)+(0,qu.int)(u.marginTop),right:(0,w6.innerWidth)(l)-(0,w6.outerWidth)(i)-i.offsetLeft+(0,qu.int)(c.paddingRight)-(0,qu.int)(u.marginRight),bottom:(0,w6.innerHeight)(l)-(0,w6.outerHeight)(i)-i.offsetTop+(0,qu.int)(c.paddingBottom)-(0,qu.int)(u.marginBottom)}}return(0,qu.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,qu.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,qu.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,qu.isNum)(r.top)&&(n=Math.max(n,r.top)),[e,n]}R($2e,"getBoundPosition");function W2e(t,e,n){const r=Math.round(e/t[0])*t[0],i=Math.round(n/t[1])*t[1];return[r,i]}R(W2e,"snapToGrid");function z2e(t){return t.props.axis==="both"||t.props.axis==="x"}R(z2e,"canDragX");function q2e(t){return t.props.axis==="both"||t.props.axis==="y"}R(q2e,"canDragY");function Y2e(t,e,n){const r=typeof e=="number"?(0,w6.getTouch)(t,e):null;if(typeof e=="number"&&!r)return null;const i=HM(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,w6.offsetXYFromParent)(r||t,a,n.props.scale)}R(Y2e,"getControlPosition");function X2e(t,e,n){const r=!(0,qu.isNum)(t.lastX),i=HM(t);return r?{node:i,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:i,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}}R(X2e,"createCoreData");function G2e(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}R(G2e,"createDraggableData");function Q2e(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}R(Q2e,"cloneBounds");function HM(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}R(HM,"findDOMNode");var jM={},$M={};Object.defineProperty($M,"__esModule",{value:!0});$M.default=K2e;function K2e(){}R(K2e,"log$1");Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;var uN=Z2e(Re),tu=WM(Xf),Frt=WM(ec),dl=ko,fm=ph,cN=gh,k9=WM($M);function WM(t){return t&&t.__esModule?t:{default:t}}R(WM,"_interopRequireDefault$b");function KQ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(KQ=R(function(r){return r?n:e},"_getRequireWildcardCache$5"))(t)}R(KQ,"_getRequireWildcardCache$5");function Z2e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=KQ(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(Z2e,"_interopRequireWildcard$6");function hl(t,e,n){return e=J2e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(hl,"_defineProperty$a");function J2e(t){var e=ege(t,"string");return typeof e=="symbol"?e:String(e)}R(J2e,"_toPropertyKey$7");function ege(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(ege,"_toPrimitive$7");const N1={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let mm=N1.mouse;var dN;let zM=(dN=class extends uN.Component{constructor(){super(...arguments),hl(this,"dragging",!1),hl(this,"lastX",NaN),hl(this,"lastY",NaN),hl(this,"touchIdentifier",null),hl(this,"mounted",!1),hl(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=e;if(this.props.disabled||!(t.target instanceof n.defaultView.Node)||this.props.handle&&!(0,dl.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,dl.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;t.type==="touchstart"&&t.preventDefault();const r=(0,dl.getTouchIdentifier)(t);this.touchIdentifier=r;const i=(0,fm.getControlPosition)(t,r,this);if(i==null)return;const{x:a,y:o}=i,s=(0,fm.createCoreData)(this,a,o);(0,k9.default)("DraggableCore: handleDragStart: %j",s),(0,k9.default)("calling",this.props.onStart),!(this.props.onStart(t,s)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,dl.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=o,(0,dl.addEvent)(n,mm.move,this.handleDrag),(0,dl.addEvent)(n,mm.stop,this.handleDragStop))}),hl(this,"handleDrag",t=>{const e=(0,fm.getControlPosition)(t,this.touchIdentifier,this);if(e==null)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let a=n-this.lastX,o=r-this.lastY;if([a,o]=(0,fm.snapToGrid)(this.props.grid,a,o),!a&&!o)return;n=this.lastX+a,r=this.lastY+o}const i=(0,fm.createCoreData)(this,n,r);if((0,k9.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(t,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=n,this.lastY=r}),hl(this,"handleDragStop",t=>{if(!this.dragging)return;const e=(0,fm.getControlPosition)(t,this.touchIdentifier,this);if(e==null)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,s=r-this.lastY||0;[o,s]=(0,fm.snapToGrid)(this.props.grid,o,s),n=this.lastX+o,r=this.lastY+s}const i=(0,fm.createCoreData)(this,n,r);if(this.props.onStop(t,i)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,dl.removeUserSelectStyles)(a.ownerDocument),(0,k9.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,k9.default)("DraggableCore: Removing handlers"),(0,dl.removeEvent)(a.ownerDocument,mm.move,this.handleDrag),(0,dl.removeEvent)(a.ownerDocument,mm.stop,this.handleDragStop))}),hl(this,"onMouseDown",t=>(mm=N1.mouse,this.handleDragStart(t))),hl(this,"onMouseUp",t=>(mm=N1.mouse,this.handleDragStop(t))),hl(this,"onTouchStart",t=>(mm=N1.touch,this.handleDragStart(t))),hl(this,"onTouchEnd",t=>(mm=N1.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,dl.addEvent)(t,N1.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:e}=t;(0,dl.removeEvent)(e,N1.mouse.move,this.handleDrag),(0,dl.removeEvent)(e,N1.touch.move,this.handleDrag),(0,dl.removeEvent)(e,N1.mouse.stop,this.handleDragStop),(0,dl.removeEvent)(e,N1.touch.stop,this.handleDragStop),(0,dl.removeEvent)(t,N1.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,dl.removeUserSelectStyles)(e)}}findDOMNode(){var t,e;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(e=this.props)===null||e===void 0||(e=e.nodeRef)===null||e===void 0?void 0:e.current:Frt.default.findDOMNode(this)}render(){return uN.cloneElement(uN.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}},R(dN,"DraggableCore"),dN);jM.default=zM;hl(zM,"displayName","DraggableCore");hl(zM,"propTypes",{allowAnyClick:tu.default.bool,children:tu.default.node.isRequired,disabled:tu.default.bool,enableUserSelectHack:tu.default.bool,offsetParent:R(function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},"offsetParent"),grid:tu.default.arrayOf(tu.default.number),handle:tu.default.string,cancel:tu.default.string,nodeRef:tu.default.object,onStart:tu.default.func,onDrag:tu.default.func,onStop:tu.default.func,onMouseDown:tu.default.func,scale:tu.default.number,className:cN.dontSetMe,style:cN.dontSetMe,transform:cN.dontSetMe});hl(zM,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:R(function(){},"onStart"),onDrag:R(function(){},"onDrag"),onStop:R(function(){},"onStop"),onMouseDown:R(function(){},"onMouseDown"),scale:1});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:R(function(){return l.default},"get")}),t.default=void 0;var e=h(Re),n=c(Xf),r=c(ec),i=c(hr),a=ko,o=ph,s=gh,l=c(jM),u=c($M);function c(C){return C&&C.__esModule?C:{default:C}}R(c,"_interopRequireDefault");function d(C){if(typeof WeakMap!="function")return null;var S=new WeakMap,b=new WeakMap;return(d=R(function(y){return y?b:S},"_getRequireWildcardCache"))(C)}R(d,"_getRequireWildcardCache");function h(C,S){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var b=d(S);if(b&&b.has(C))return b.get(C);var y={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in C)if(w!=="default"&&Object.prototype.hasOwnProperty.call(C,w)){var P=A?Object.getOwnPropertyDescriptor(C,w):null;P&&(P.get||P.set)?Object.defineProperty(y,w,P):y[w]=C[w]}return y.default=C,b&&b.set(C,y),y}R(h,"_interopRequireWildcard");function f(){return f=Object.assign?Object.assign.bind():function(C){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(C[y]=b[y])}return C},f.apply(this,arguments)}R(f,"_extends");function m(C,S,b){return S=g(S),S in C?Object.defineProperty(C,S,{value:b,enumerable:!0,configurable:!0,writable:!0}):C[S]=b,C}R(m,"_defineProperty");function g(C){var S=p(C,"string");return typeof S=="symbol"?S:String(S)}R(g,"_toPropertyKey");function p(C,S){if(typeof C!="object"||C===null)return C;var b=C[Symbol.toPrimitive];if(b!==void 0){var y=b.call(C,S||"default");if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(C)}R(p,"_toPrimitive");const v=class extends e.Component{static getDerivedStateFromProps(S,b){let{position:y}=S,{prevPropsPosition:A}=b;return y&&(!A||y.x!==A.x||y.y!==A.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:y,prevPropsPosition:A}),{x:y.x,y:y.y,prevPropsPosition:{...y}}):null}constructor(S){super(S),m(this,"onDragStart",(b,y)=>{if((0,u.default)("Draggable: onDragStart: %j",y),this.props.onStart(b,(0,o.createDraggableData)(this,y))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(b,y)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",y);const A=(0,o.createDraggableData)(this,y),w={x:A.x,y:A.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:M}=w;w.x+=this.state.slackX,w.y+=this.state.slackY;const[L,k]=(0,o.getBoundPosition)(this,w.x,w.y);w.x=L,w.y=k,w.slackX=this.state.slackX+(P-w.x),w.slackY=this.state.slackY+(M-w.y),A.x=w.x,A.y=w.y,A.deltaX=w.x-this.state.x,A.deltaY=w.y-this.state.y}if(this.props.onDrag(b,A)===!1)return!1;this.setState(w)}),m(this,"onDragStop",(b,y)=>{if(!this.state.dragging||this.props.onStop(b,(0,o.createDraggableData)(this,y))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",y);const A={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:w,y:P}=this.props.position;A.x=w,A.y=P}this.setState(A)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,b;return(S=(b=this.props)===null||b===void 0||(b=b.nodeRef)===null||b===void 0?void 0:b.current)!==null&&S!==void 0?S:r.default.findDOMNode(this)}render(){const{axis:S,bounds:b,children:y,defaultPosition:A,defaultClassName:w,defaultClassNameDragging:P,defaultClassNameDragged:M,position:L,positionOffset:k,scale:O,...$}=this.props;let B={},V=null;const X=!L||this.state.dragging,z=L||A,F={x:(0,o.canDragX)(this)&&X?this.state.x:z.x,y:(0,o.canDragY)(this)&&X?this.state.y:z.y};this.state.isElementSVG?V=(0,a.createSVGTransform)(F,k):B=(0,a.createCSSTransform)(F,k);const H=(0,i.default)(y.props.className||"",w,{[P]:this.state.dragging,[M]:this.state.dragged});return e.createElement(l.default,f({},$,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(y),{className:H,style:{...y.props.style,...B},transform:V}))}};R(v,"Draggable");let _=v;t.default=_,m(_,"displayName","Draggable"),m(_,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),m(_,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(C2e);const{default:tge,DraggableCore:Vrt}=C2e;BM.exports=tge;BM.exports.default=tge;BM.exports.DraggableCore=Vrt;var ZQ=BM.exports;const Brt=xu(ZQ),Urt="univer-dialog",Hrt="univer-dialog-title-content",jrt="univer-dialog-root-draggable",F9={dialog:Urt,dialogTitleContent:Hrt,dialogRootDraggable:jrt};function qM(t){const{className:e,children:n,style:r,visible:i=!1,title:a,width:o,draggable:s=!1,closeIcon:l=Re.createElement(vQ,null),defaultPosition:u,destroyOnClose:c=!1,preservePositionOnDestroy:d=!1,footer:h,onClose:f,mask:m,dialogStyles:g,closable:p,maskClosable:v}=t,[_,C]=E.useState(!1),[S,b]=E.useState(null),{mountContainer:y}=E.useContext(Nu),A=s?Re.createElement("div",{className:F9.dialogTitleContent,style:{width:"100%",cursor:"pointer",...g==null?void 0:g.header},onMouseOver:R(()=>{_&&C(!1)},"onMouseOver"),onMouseOut:R(()=>{C(!0)},"onMouseOut"),onFocus:R(()=>{},"onFocus"),onBlur:R(()=>{},"onBlur")},a):Re.createElement("div",{className:F9.dialogTitleContent},a),w=R(M=>{const[L,k]=E.useState({left:0,top:0,bottom:0,right:0}),O=E.useRef(null);function $(X,z){d&&b({x:z.x,y:z.y})}R($,"handleStop");const B=S||u||{x:0,y:0},V=R((X,z)=>{var F;const{clientWidth:H,clientHeight:W}=window.document.documentElement,K=(F=O.current)==null?void 0:F.getBoundingClientRect();K&&k({left:-K.left+z.x,right:H-(K.right-z.x),top:-K.top+z.y,bottom:W-(K.bottom-z.y)})},"onStart");return s?Re.createElement(Brt,{disabled:_,defaultPosition:B,bounds:L,nodeRef:O,onStart:R((X,z)=>V(X,z),"onStart"),onStop:$},Re.createElement("div",{ref:O},M)):M},"modalRender"),P=m??!s;return y&&Re.createElement(_2e,{className:e,width:o,prefixCls:F9.dialog,rootClassName:P?F9.dialogRoot:F9.dialogRootDraggable,getContainer:R(()=>y,"getContainer"),visible:i,title:A,modalRender:w,closeIcon:l,destroyOnClose:c,footer:h,mask:P,style:r,onClose:f,styles:g,closable:p,maskClosable:v},n)}R(qM,"Dialog");const $rt="univer-confirm-footer",Wrt={confirmFooter:$rt};function nge(t){const{locale:e,cancelText:n,confirmText:r,onClose:i,onConfirm:a}=t;return Re.createElement("footer",{className:Wrt.confirmFooter},Re.createElement(fa,{onClick:i},n??(e==null?void 0:e.Confirm.cancel)),Re.createElement(fa,{type:"primary",onClick:a},r??(e==null?void 0:e.Confirm.confirm)))}R(nge,"Footer$1");function JQ(t){const{children:e,visible:n=!1,title:r,cancelText:i,confirmText:a,width:o,onClose:s,onConfirm:l}=t,{locale:u}=E.useContext(Nu);return Re.createElement(qM,{visible:n,title:r,footer:Re.createElement(nge,{locale:u,cancelText:i,confirmText:a,onClose:s,onConfirm:l}),onClose:s,width:o},e)}R(JQ,"Confirm");function rge(t){if(Array.isArray(t))return Uw(t)}R(rge,"_arrayWithoutHoles$3");function eK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}R(eK,"_iterableToArray$3");function ige(){throw new TypeError(`Invalid attempt to spread non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(ige,"_nonIterableSpread$3");function Zi(t){return rge(t)||eK(t)||NM(t)||ige()}R(Zi,"_toConsumableArray$4");function kp(t,e){var n=Object.assign({},t);return Array.isArray(e)&&e.forEach(function(r){delete n[r]}),n}R(kp,"omit$2");function bo(){return bo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bo.apply(null,arguments)}R(bo,"_extends$5");function L4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Re.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(L4(r)):v8.isFragment(r)&&r.props?n=n.concat(L4(r.props.children,e)):n.push(r))}),n}R(L4,"toArray$3");var Zj=E.createContext(null);function age(t){var e=t.children,n=t.onBatchResize,r=E.useRef(0),i=E.useRef([]),a=E.useContext(Zj),o=E.useCallback(function(s,l,u){r.current+=1;var c=r.current;i.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){c===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,u)},[n,a]);return E.createElement(Zj.Provider,{value:o},e)}R(age,"Collection");var oge=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return R(t,"getIndex"),function(){function e(){this.__entries__=[]}return R(e,"class_1"),Object.defineProperty(e.prototype,"size",{get:R(function(){return this.__entries__.length},"get"),enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},e}()}(),Jj=typeof window<"u"&&typeof document<"u"&&window.document===document,qw=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),zrt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qw):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),qrt=2;function sge(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&s()}R(a,"resolvePending");function o(){zrt(a)}R(o,"timeoutCallback");function s(){var l=Date.now();if(n){if(l-i<qrt)return;r=!0}else n=!0,r=!1,setTimeout(o,e);i=l}return R(s,"proxy"),s}R(sge,"throttle");var Yrt=20,Xrt=["top","right","bottom","left","width","height","size","weight"],Grt=typeof MutationObserver<"u",Qrt=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=sge(this.refresh.bind(this),Yrt)}return R(t,"ResizeObserverController"),t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Jj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Grt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Jj||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=Xrt.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),lge=R(function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},"defineConfigurable"),x4=R(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||qw},"getWindowOf"),uge=jC(0,0,0,0);function zv(t){return parseFloat(t)||0}R(zv,"toFloat");function e$(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+zv(a)},0)}R(e$,"getBordersSize");function cge(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],o=t["padding-"+a];n[a]=zv(o)}return n}R(cge,"getPaddings");function dge(t){var e=t.getBBox();return jC(0,0,e.width,e.height)}R(dge,"getSVGContentRect");function hge(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return uge;var r=x4(t).getComputedStyle(t),i=cge(r),a=i.left+i.right,o=i.top+i.bottom,s=zv(r.width),l=zv(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=e$(r,"left","right")+a),Math.round(l+o)!==n&&(l-=e$(r,"top","bottom")+o)),!fge(t)){var u=Math.round(s+a)-e,c=Math.round(l+o)-n;Math.abs(u)!==1&&(s-=u),Math.abs(c)!==1&&(l-=c)}return jC(i.left,i.top,s,l)}R(hge,"getHTMLElementContentRect");var Krt=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof x4(t).SVGGraphicsElement}:function(t){return t instanceof x4(t).SVGElement&&typeof t.getBBox=="function"}}();function fge(t){return t===x4(t).document.documentElement}R(fge,"isDocumentElement");function mge(t){return Jj?Krt(t)?dge(t):hge(t):uge}R(mge,"getContentRect");function gge(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return lge(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}R(gge,"createReadOnlyRect");function jC(t,e,n,r){return{x:t,y:e,width:n,height:r}}R(jC,"createRectInit");var Zrt=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=jC(0,0,0,0),this.target=e}return R(t,"ResizeObservation"),t.prototype.isActive=function(){var e=mge(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),Jrt=function(){function t(e,n){var r=gge(n);lge(this,{target:e,contentRect:r})}return R(t,"ResizeObserverEntry"),t}(),eit=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new oge,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return R(t,"ResizeObserverSPI"),t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof x4(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new Zrt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof x4(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Jrt(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),pge=typeof WeakMap<"u"?new WeakMap:new oge,vge=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Qrt.getInstance(),r=new eit(e,n,this);pge.set(this,r)}return R(t,"ResizeObserver"),t}();["observe","unobserve","disconnect"].forEach(function(t){vge.prototype[t]=function(){var e;return(e=pge.get(this))[t].apply(e,arguments)}});var _ge=function(){return typeof qw.ResizeObserver<"u"?qw.ResizeObserver:vge}();const tit=Object.freeze(Object.defineProperty({__proto__:null,default:_ge},Symbol.toStringTag,{value:"Module"}));var $m=new Map;function Cge(t){t.forEach(function(e){var n,r=e.target;(n=$m.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}R(Cge,"onResize");var Sge=new _ge(Cge);function bge(t,e){$m.has(t)||($m.set(t,new Set),Sge.observe(t)),$m.get(t).add(e)}R(bge,"observe");function yge(t,e){$m.has(t)&&($m.get(t).delete(e),$m.get(t).size||(Sge.unobserve(t),$m.delete(t)))}R(yge,"unobserve");function $C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}R($C,"_classCallCheck$1");function Ege(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,DQ(r.key),r)}}R(Ege,"_defineProperties$1");function WC(t,e,n){return e&&Ege(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}R(WC,"_createClass$1");function qv(t,e){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qv(t,e)}R(qv,"_setPrototypeOf$3");function Rge(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qv(t,e)}R(Rge,"_inherits$1");function Yv(t){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yv(t)}R(Yv,"_getPrototypeOf$1");function tK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tK=R(function(){return!!t},"_isNativeReflectConstruct"))()}R(tK,"_isNativeReflectConstruct$1");function nK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}R(nK,"_assertThisInitialized$1");function Age(t,e){if(e&&(el(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nK(t)}R(Age,"_possibleConstructorReturn$1");function wge(t){var e=tK();return function(){var n,r=Yv(t);if(e){var i=Yv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Age(this,n)}}R(wge,"_createSuper$1");var nit=function(t){Rge(n,t);var e=wge(n);function n(){return $C(this,n),e.apply(this,arguments)}return R(n,"DomWrapper"),WC(n,[{key:"render",value:R(function(){return this.props.children},"render")}]),n}(E.Component);function Dge(t,e){var n=t.children,r=t.disabled,i=E.useRef(null),a=E.useRef(null),o=E.useContext(Zj),s=typeof n=="function",l=s?n(i):n,u=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&E.isValidElement(l)&&L7(l),d=c?l.ref:null,h=T7(d,i),f=R(function(){var p;return q6(i.current)||(i.current&&el(i.current)==="object"?q6((p=i.current)===null||p===void 0?void 0:p.nativeElement):null)||q6(a.current)},"getDom2");E.useImperativeHandle(e,function(){return f()});var m=E.useRef(t);m.current=t;var g=E.useCallback(function(p){var v=m.current,_=v.onResize,C=v.data,S=p.getBoundingClientRect(),b=S.width,y=S.height,A=p.offsetWidth,w=p.offsetHeight,P=Math.floor(b),M=Math.floor(y);if(u.current.width!==P||u.current.height!==M||u.current.offsetWidth!==A||u.current.offsetHeight!==w){var L={width:P,height:M,offsetWidth:A,offsetHeight:w};u.current=L;var k=A===Math.round(b)?b:A,O=w===Math.round(y)?y:w,$=Ui(Ui({},L),{},{offsetWidth:k,offsetHeight:O});o==null||o($,p,C),_&&Promise.resolve().then(function(){_($,p)})}},[]);return E.useEffect(function(){var p=f();return p&&!r&&bge(p,g),function(){return yge(p,g)}},[i.current,r]),E.createElement(nit,{ref:a},c?E.cloneElement(l,{ref:h}):l)}R(Dge,"SingleObserver");var rit=E.forwardRef(Dge),iit="rc-observer-key";function Ige(t,e){var n=t.children,r=typeof n=="function"?[n]:L4(n);return r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(iit,"-").concat(a);return E.createElement(rit,bo({},t,{key:o,ref:a===0?e:void 0}),i)})}R(Ige,"ResizeObserver$1");var Gf=E.forwardRef(Ige);Gf.Collection=age;function rK(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}R(rK,"getRoot");function Pge(t){return rK(t)instanceof ShadowRoot}R(Pge,"inShadow");function Yw(t){return Pge(t)?rK(t):null}R(Yw,"getShadowRoot");const iK=R(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))},"isMobile");function Mge(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,u=l===void 0?0:l,c=i.y,d=c===void 0?0:c,h=E.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],p=m[0],v=m[1],_=g[0],C=g[1];p===_||!["t","b"].includes(p)?f.top=d:p==="t"?f.top=0:f.bottom=0,v===C||!["l","r"].includes(v)?f.left=u:v==="l"?f.left=0:f.right=0}return E.createElement("div",{ref:h,className:wn("".concat(e,"-arrow"),o),style:f},s)}R(Mge,"Arrow");function Tge(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?E.createElement(Op,fr({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return E.createElement("div",{style:{zIndex:r},className:wn("".concat(e,"-mask"),s)})}):null}R(Tge,"Mask");var ait=E.memo(function(t){var e=t.children;return e},function(t,e){return e.cache}),oit=E.forwardRef(function(t,e){var n=t.popup,r=t.className,i=t.prefixCls,a=t.style,o=t.target,s=t.onVisibleChanged,l=t.open,u=t.keepDom,c=t.fresh,d=t.onClick,h=t.mask,f=t.arrow,m=t.arrowPos,g=t.align,p=t.motion,v=t.maskMotion,_=t.forceRender,C=t.getPopupContainer,S=t.autoDestroy,b=t.portal,y=t.zIndex,A=t.onMouseEnter,w=t.onMouseLeave,P=t.onPointerEnter,M=t.ready,L=t.offsetX,k=t.offsetY,O=t.offsetR,$=t.offsetB,B=t.onAlign,V=t.onPrepare,X=t.stretch,z=t.targetWidth,F=t.targetHeight,H=typeof n=="function"?n():n,W=l||u,K=(C==null?void 0:C.length)>0,G=E.useState(!C||!K),te=Pt(G,2),Y=te[0],ae=te[1];if(da(function(){!Y&&K&&o&&ae(!0)},[Y,K,o]),!Y)return null;var ie="auto",ne={left:"-1000vw",top:"-1000vh",right:ie,bottom:ie};if(M||!l){var de,_e=g.points,Pe=g.dynamicInset||((de=g._experimental)===null||de===void 0?void 0:de.dynamicInset),De=Pe&&_e[0][1]==="r",Ee=Pe&&_e[0][0]==="b";De?(ne.right=O,ne.left=ie):(ne.left=L,ne.right=ie),Ee?(ne.bottom=$,ne.top=ie):(ne.top=k,ne.bottom=ie)}var ye={};return X&&(X.includes("height")&&F?ye.height=F:X.includes("minHeight")&&F&&(ye.minHeight=F),X.includes("width")&&z?ye.width=z:X.includes("minWidth")&&z&&(ye.minWidth=z)),l||(ye.pointerEvents="none"),E.createElement(b,{open:_||W,getContainer:C&&function(){return C(o)},autoDestroy:S},E.createElement(Tge,{prefixCls:i,open:l,zIndex:y,mask:h,motion:v}),E.createElement(Gf,{onResize:B,disabled:!l},function(Ve){return E.createElement(Op,fr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:V,onEnterPrepare:V,visible:l,onVisibleChanged:R(function(ke){var Ke;p==null||(Ke=p.onVisibleChanged)===null||Ke===void 0||Ke.call(p,ke),s(ke)},"onVisibleChanged")}),function(ke,Ke){var $e=ke.className,Fe=ke.style,He=wn(i,$e,r);return E.createElement("div",{ref:i2(Ve,e,Ke),className:He,style:Dt(Dt(Dt(Dt({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ne),ye),Fe),{},{boxSizing:"border-box",zIndex:y},a),onMouseEnter:A,onMouseLeave:w,onPointerEnter:P,onClick:d},f&&E.createElement(Mge,{prefixCls:i,arrow:f,arrowPos:m,align:g}),E.createElement(ait,{cache:!l&&!c},H))})}))}),sit=E.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=L7(n),a=E.useCallback(function(s){wQ(e,r?r(s):s)},[r]),o=T7(a,n.ref);return i?E.cloneElement(n,{ref:o}):n}),_oe=E.createContext(null);function t$(t){return t?Array.isArray(t)?t:[t]:[]}R(t$,"toArray$2");function Lge(t,e,n,r){return E.useMemo(function(){var i=t$(n??e),a=t$(r??e),o=new Set(i),s=new Set(a);return t&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[t,e,n,r])}R(Lge,"useAction");const aK=R(function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},"isVisible");function xge(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}R(xge,"isPointsEq");function Oge(t,e,n,r){for(var i=n.points,a=Object.keys(t),o=0;o<a.length;o+=1){var s,l=a[o];if(xge((s=t[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(e,"-placement-").concat(l)}return""}R(Oge,"getAlignPopupClassName");function n$(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}R(n$,"getMotion$1");function x7(t){return t.ownerDocument.defaultView}R(x7,"getWin");function Xw(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=x7(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,s=i.overflow;[a,o,s].some(function(l){return r.includes(l)})&&e.push(n),n=n.parentElement}return e}R(Xw,"collectScroller");function O4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}R(O4,"toNum");function Q3(t){return O4(parseFloat(t),0)}R(Q3,"getPxValue");function r$(t,e){var n=Dt({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=x7(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,u=i.borderLeftWidth,c=i.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,f=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,p=Q3(s),v=Q3(l),_=Q3(u),C=Q3(c),S=O4(Math.round(d.width/m*1e3)/1e3),b=O4(Math.round(d.height/h*1e3)/1e3),y=(m-g-_-C)*S,A=(h-f-p-v)*b,w=p*b,P=v*b,M=_*S,L=C*S,k=0,O=0;if(a==="clip"){var $=Q3(o);k=$*S,O=$*b}var B=d.x+M-k,V=d.y+w-O,X=B+d.width+2*k-M-L-y,z=V+d.height+2*O-w-P-A;n.left=Math.max(n.left,B),n.top=Math.max(n.top,V),n.right=Math.min(n.right,X),n.bottom=Math.min(n.bottom,z)}}),n}R(r$,"getVisibleArea");function i$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}R(i$,"getUnitOffset");function a$(t,e){var n=e||[],r=Pt(n,2),i=r[0],a=r[1];return[i$(t.width,i),i$(t.height,a)]}R(a$,"getNumberOffset");function o$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}R(o$,"splitPoints");function G2(t,e){var n=e[0],r=e[1],i,a;return n==="t"?a=t.y:n==="b"?a=t.y+t.height:a=t.y+t.height/2,r==="l"?i=t.x:r==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:a}}R(G2,"getAlignPoint");function kh(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,i){return i===e?n[r]||"c":r}).join("")}R(kh,"reversePoints");function Nge(t,e,n,r,i,a,o){var s=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Pt(s,2),u=l[0],c=l[1],d=E.useRef(0),h=E.useMemo(function(){return e?Xw(e):[]},[e]),f=E.useRef({}),m=R(function(){f.current={}},"resetFlipCache");t||m();var g=Ji(function(){if(e&&n&&t){let bs=function(eu,Rh){var I1=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ot,Ah=te.x+eu,f2=te.y+Rh,f3=Ah+Ee,um=f2+De,$n=Math.max(Ah,I1.left),Zr=Math.max(f2,I1.top),eo=Math.min(f3,I1.right),Io=Math.min(um,I1.bottom);return Math.max(0,(eo-$n)*(Io-Zr))},Hu=function(){En=te.y+Be,Ft=En+De,$r=te.x+st,br=$r+Ee};R(bs,"getIntersectionVisibleArea"),R(Hu,"syncNextPopupPosition");var _,C,S,b,y=e,A=y.ownerDocument,w=x7(y),P=w.getComputedStyle(y),M=P.width,L=P.height,k=P.position,O=y.style.left,$=y.style.top,B=y.style.right,V=y.style.bottom,X=y.style.overflow,z=Dt(Dt({},i[r]),a),F=A.createElement("div");(_=y.parentElement)===null||_===void 0||_.appendChild(F),F.style.left="".concat(y.offsetLeft,"px"),F.style.top="".concat(y.offsetTop,"px"),F.style.position=k,F.style.height="".concat(y.offsetHeight,"px"),F.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";var H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else{var W,K,G=n.getBoundingClientRect();G.x=(W=G.x)!==null&&W!==void 0?W:G.left,G.y=(K=G.y)!==null&&K!==void 0?K:G.top,H={x:G.x,y:G.y,width:G.width,height:G.height}}var te=y.getBoundingClientRect();te.x=(C=te.x)!==null&&C!==void 0?C:te.left,te.y=(S=te.y)!==null&&S!==void 0?S:te.top;var Y=A.documentElement,ae=Y.clientWidth,ie=Y.clientHeight,ne=Y.scrollWidth,de=Y.scrollHeight,_e=Y.scrollTop,Pe=Y.scrollLeft,De=te.height,Ee=te.width,ye=H.height,Ve=H.width,ke={left:0,top:0,right:ae,bottom:ie},Ke={left:-Pe,top:-_e,right:ne-Pe,bottom:de-_e},$e=z.htmlRegion,Fe="visible",He="visibleFirst";$e!=="scroll"&&$e!==He&&($e=Fe);var ct=$e===He,_t=r$(Ke,h),Ye=r$(ke,h),Ot=$e===Fe?Ye:_t,An=ct?Ye:Ot;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var Ut=y.getBoundingClientRect();y.style.left=O,y.style.top=$,y.style.right=B,y.style.bottom=V,y.style.overflow=X,(b=y.parentElement)===null||b===void 0||b.removeChild(F);var Jt=O4(Math.round(Ee/parseFloat(M)*1e3)/1e3),dn=O4(Math.round(De/parseFloat(L)*1e3)/1e3);if(Jt===0||dn===0||T4(n)&&!aK(n))return;var Sn=z.offset,hn=z.targetOffset,tr=a$(te,Sn),en=Pt(tr,2),bt=en[0],ue=en[1],ce=a$(H,hn),pe=Pt(ce,2),Ae=pe[0],je=pe[1];H.x-=Ae,H.y-=je;var tt=z.points||[],Qe=Pt(tt,2),nt=Qe[0],we=Qe[1],Ze=o$(we),ht=o$(nt),pt=G2(H,Ze),Mt=G2(te,ht),xt=Dt({},z),st=pt.x-Mt.x+bt,Be=pt.y-Mt.y+ue,vt=bs(st,Be),qt=bs(st,Be,Ye),Lt=G2(H,["t","l"]),zt=G2(te,["t","l"]),Yt=G2(H,["b","r"]),un=G2(te,["b","r"]),ir=z.overflow||{},jr=ir.adjustX,ln=ir.adjustY,Nr=ir.shiftX,mn=ir.shiftY,rn=R(function(eu){return typeof eu=="boolean"?eu:eu>=0},"supportAdjust"),En,Ft,$r,br;Hu();var Rn=rn(ln),Qn=ht[0]===Ze[0];if(Rn&&ht[0]==="t"&&(Ft>An.bottom||f.current.bt)){var vr=Be;Qn?vr-=De-ye:vr=Lt.y-un.y-ue;var gi=bs(st,vr),pi=bs(st,vr,Ye);gi>vt||gi===vt&&(!ct||pi>=qt)?(f.current.bt=!0,Be=vr,ue=-ue,xt.points=[kh(ht,0),kh(Ze,0)]):f.current.bt=!1}if(Rn&&ht[0]==="b"&&(En<An.top||f.current.tb)){var vi=Be;Qn?vi+=De-ye:vi=Yt.y-zt.y-ue;var qi=bs(st,vi),Yi=bs(st,vi,Ye);qi>vt||qi===vt&&(!ct||Yi>=qt)?(f.current.tb=!0,Be=vi,ue=-ue,xt.points=[kh(ht,0),kh(Ze,0)]):f.current.tb=!1}var is=rn(jr),Do=ht[1]===Ze[1];if(is&&ht[1]==="l"&&(br>An.right||f.current.rl)){var oo=st;Do?oo-=Ee-Ve:oo=Lt.x-un.x-bt;var Ss=bs(oo,Be),po=bs(oo,Be,Ye);Ss>vt||Ss===vt&&(!ct||po>=qt)?(f.current.rl=!0,st=oo,bt=-bt,xt.points=[kh(ht,1),kh(Ze,1)]):f.current.rl=!1}if(is&&ht[1]==="r"&&($r<An.left||f.current.lr)){var vo=st;Do?vo+=Ee-Ve:vo=Yt.x-zt.x-bt;var ll=bs(vo,Be),Jl=bs(vo,Be,Ye);ll>vt||ll===vt&&(!ct||Jl>=qt)?(f.current.lr=!0,st=vo,bt=-bt,xt.points=[kh(ht,1),kh(Ze,1)]):f.current.lr=!1}Hu();var ve=Nr===!0?0:Nr;typeof ve=="number"&&($r<Ye.left&&(st-=$r-Ye.left-bt,H.x+Ve<Ye.left+ve&&(st+=H.x-Ye.left+Ve-ve)),br>Ye.right&&(st-=br-Ye.right-bt,H.x>Ye.right-ve&&(st+=H.x-Ye.right+ve)));var Me=mn===!0?0:mn;typeof Me=="number"&&(En<Ye.top&&(Be-=En-Ye.top-ue,H.y+ye<Ye.top+Me&&(Be+=H.y-Ye.top+ye-Me)),Ft>Ye.bottom&&(Be-=Ft-Ye.bottom-ue,H.y>Ye.bottom-Me&&(Be+=H.y-Ye.bottom+Me)));var Te=te.x+st,ot=Te+Ee,Ge=te.y+Be,Ue=Ge+De,rt=H.x,yt=rt+Ve,Rt=H.y,Nt=Rt+ye,dt=Math.max(Te,rt),fn=Math.min(ot,yt),sr=(dt+fn)/2,Wr=sr-Te,qr=Math.max(Ge,Rt),Ri=Math.min(Ue,Nt),Ai=(qr+Ri)/2,Vo=Ai-Ge;o==null||o(e,xt);var Lc=Ut.right-te.x-(st+te.width),$o=Ut.bottom-te.y-(Be+te.height);Jt===1&&(st=Math.round(st),Lc=Math.round(Lc)),dn===1&&(Be=Math.round(Be),$o=Math.round($o));var h2={ready:!0,offsetX:st/Jt,offsetY:Be/dn,offsetR:Lc/Jt,offsetB:$o/dn,arrowX:Wr/Jt,arrowY:Vo/dn,scaleX:Jt,scaleY:dn,align:xt};c(h2)}}),p=R(function(){d.current+=1;var _=d.current;Promise.resolve().then(function(){d.current===_&&g()})},"triggerAlign"),v=R(function(){c(function(_){return Dt(Dt({},_),{},{ready:!1})})},"resetReady");return da(v,[r]),da(function(){t||v()},[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}R(Nge,"useAlign");function kge(t,e,n,r,i){da(function(){if(t&&e&&n){let d=function(){r(),i()};R(d,"notifyScroll");var a=e,o=n,s=Xw(a),l=Xw(o),u=x7(o),c=new Set([u].concat(Zi(s),Zi(l)));return c.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(h){h.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[t,e,n])}R(kge,"useWatch");function Fge(t,e,n,r,i,a,o,s){var l=E.useRef(t);l.current=t,E.useEffect(function(){if(e&&r&&(!i||a)){var u=R(function(h){var f;l.current&&!o(((f=h.composedPath)===null||f===void 0||(f=f.call(h))===null||f===void 0?void 0:f[0])||h.target)&&s(!1)},"onTriggerClose2"),c=x7(r);c.addEventListener("mousedown",u,!0),c.addEventListener("contextmenu",u,!0);var d=Yw(n);return d&&(d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0)),function(){c.removeEventListener("mousedown",u,!0),c.removeEventListener("contextmenu",u,!0),d&&(d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0))}}},[e,n,r,i,a])}R(Fge,"useWinClick");var lit=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Vge(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NQ,e=E.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,u=n.showAction,c=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,f=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,p=n.mouseLeaveDelay,v=p===void 0?.1:p,_=n.focusDelay,C=n.blurDelay,S=n.mask,b=n.maskClosable,y=b===void 0?!0:b,A=n.getPopupContainer,w=n.forceRender,P=n.autoDestroy,M=n.destroyPopupOnHide,L=n.popup,k=n.popupClassName,O=n.popupStyle,$=n.popupPlacement,B=n.builtinPlacements,V=B===void 0?{}:B,X=n.popupAlign,z=n.zIndex,F=n.stretch,H=n.getPopupClassNameFromAlign,W=n.fresh,K=n.alignPoint,G=n.onPopupClick,te=n.onPopupAlign,Y=n.arrow,ae=n.popupMotion,ie=n.maskMotion,ne=n.popupTransitionName,de=n.popupAnimation,_e=n.maskTransitionName,Pe=n.maskAnimation,De=n.className,Ee=n.getTriggerDOMNode,ye=Ka(n,lit),Ve=P||M||!1,ke=E.useState(!1),Ke=Pt(ke,2),$e=Ke[0],Fe=Ke[1];da(function(){Fe(iK())},[]);var He=E.useRef({}),ct=E.useContext(_oe),_t=E.useMemo(function(){return{registerSubPopup:R(function($n,Zr){He.current[$n]=Zr,ct==null||ct.registerSubPopup($n,Zr)},"registerSubPopup")}},[ct]),Ye=Q0e(),Ot=E.useState(null),An=Pt(Ot,2),Ut=An[0],Jt=An[1],dn=E.useRef(null),Sn=Ji(function($n){dn.current=$n,T4($n)&&Ut!==$n&&Jt($n),ct==null||ct.registerSubPopup(Ye,$n)}),hn=E.useState(null),tr=Pt(hn,2),en=tr[0],bt=tr[1],ue=E.useRef(null),ce=Ji(function($n){T4($n)&&en!==$n&&(bt($n),ue.current=$n)}),pe=E.Children.only(o),Ae=(pe==null?void 0:pe.props)||{},je={},tt=Ji(function($n){var Zr,eo,Io=en;return(Io==null?void 0:Io.contains($n))||((Zr=Yw(Io))===null||Zr===void 0?void 0:Zr.host)===$n||$n===Io||(Ut==null?void 0:Ut.contains($n))||((eo=Yw(Ut))===null||eo===void 0?void 0:eo.host)===$n||$n===Ut||Object.values(He.current).some(function(so){return(so==null?void 0:so.contains($n))||$n===so})}),Qe=n$(a,ae,de,ne),nt=n$(a,ie,Pe,_e),we=E.useState(h||!1),Ze=Pt(we,2),ht=Ze[0],pt=Ze[1],Mt=d??ht,xt=Ji(function($n){d===void 0&&pt($n)});da(function(){pt(d||!1)},[d]);var st=E.useRef(Mt);st.current=Mt;var Be=E.useRef([]);Be.current=[];var vt=Ji(function($n){var Zr;xt($n),((Zr=Be.current[Be.current.length-1])!==null&&Zr!==void 0?Zr:Mt)!==$n&&(Be.current.push($n),f==null||f($n))}),qt=E.useRef(),Lt=R(function(){clearTimeout(qt.current)},"clearDelay2"),zt=R(function($n){var Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Lt(),Zr===0?vt($n):qt.current=setTimeout(function(){vt($n)},Zr*1e3)},"triggerOpen2");E.useEffect(function(){return Lt},[]);var Yt=E.useState(!1),un=Pt(Yt,2),ir=un[0],jr=un[1];da(function($n){(!$n||Mt)&&jr(!0)},[Mt]);var ln=E.useState(null),Nr=Pt(ln,2),mn=Nr[0],rn=Nr[1],En=E.useState(null),Ft=Pt(En,2),$r=Ft[0],br=Ft[1],Rn=R(function($n){br([$n.clientX,$n.clientY])},"setMousePosByEvent2"),Qn=Nge(Mt,Ut,K&&$r!==null?$r:en,$,V,X,te),vr=Pt(Qn,11),gi=vr[0],pi=vr[1],vi=vr[2],qi=vr[3],Yi=vr[4],is=vr[5],Do=vr[6],oo=vr[7],Ss=vr[8],po=vr[9],vo=vr[10],ll=Lge($e,l,u,c),Jl=Pt(ll,2),ve=Jl[0],Me=Jl[1],Te=ve.has("click"),ot=Me.has("click")||Me.has("contextMenu"),Ge=Ji(function(){ir||vo()}),Ue=R(function(){st.current&&K&&ot&&zt(!1)},"onScroll2");kge(Mt,en,Ut,Ge,Ue),da(function(){Ge()},[$r,$]),da(function(){Mt&&!(V!=null&&V[$])&&Ge()},[JSON.stringify(X)]);var rt=E.useMemo(function(){var $n=Oge(V,a,po,K);return wn($n,H==null?void 0:H(po))},[po,H,V,a,K]);E.useImperativeHandle(r,function(){return{nativeElement:ue.current,popupElement:dn.current,forceAlign:Ge}});var yt=E.useState(0),Rt=Pt(yt,2),Nt=Rt[0],dt=Rt[1],fn=E.useState(0),sr=Pt(fn,2),Wr=sr[0],qr=sr[1],Ri=R(function(){if(F&&en){var $n=en.getBoundingClientRect();dt($n.width),qr($n.height)}},"syncTargetSize2"),Ai=R(function(){Ri(),Ge()},"onTargetResize2"),Vo=R(function($n){jr(!1),vo(),m==null||m($n)},"onVisibleChanged2"),Lc=R(function(){return new Promise(function($n){Ri(),rn(function(){return $n})})},"onPrepare2");da(function(){mn&&(vo(),mn(),rn(null))},[mn]);function $o($n,Zr,eo,Io){je[$n]=function(so){var m2;Io==null||Io(so),zt(Zr,eo);for(var g2=arguments.length,Db=new Array(g2>1?g2-1:0),p2=1;p2<g2;p2++)Db[p2-1]=arguments[p2];(m2=Ae[$n])===null||m2===void 0||m2.call.apply(m2,[Ae,so].concat(Db))}}R($o,"wrapperAction"),(Te||ot)&&(je.onClick=function($n){var Zr;st.current&&ot?zt(!1):!st.current&&Te&&(Rn($n),zt(!0));for(var eo=arguments.length,Io=new Array(eo>1?eo-1:0),so=1;so<eo;so++)Io[so-1]=arguments[so];(Zr=Ae.onClick)===null||Zr===void 0||Zr.call.apply(Zr,[Ae,$n].concat(Io))}),Fge(Mt,ot,en,Ut,S,y,tt,zt);var h2=ve.has("hover"),bs=Me.has("hover"),Hu,eu;h2&&($o("onMouseEnter",!0,g,function($n){Rn($n)}),$o("onPointerEnter",!0,g,function($n){Rn($n)}),Hu=R(function($n){(Mt||ir)&&Ut!==null&&Ut!==void 0&&Ut.contains($n.target)&&zt(!0,g)},"onPopupMouseEnter2"),K&&(je.onMouseMove=function($n){var Zr;(Zr=Ae.onMouseMove)===null||Zr===void 0||Zr.call(Ae,$n)})),bs&&($o("onMouseLeave",!1,v),$o("onPointerLeave",!1,v),eu=R(function(){zt(!1,v)},"onPopupMouseLeave2")),ve.has("focus")&&$o("onFocus",!0,_),Me.has("focus")&&$o("onBlur",!1,C),ve.has("contextMenu")&&(je.onContextMenu=function($n){var Zr;st.current&&Me.has("contextMenu")?zt(!1):(Rn($n),zt(!0)),$n.preventDefault();for(var eo=arguments.length,Io=new Array(eo>1?eo-1:0),so=1;so<eo;so++)Io[so-1]=arguments[so];(Zr=Ae.onContextMenu)===null||Zr===void 0||Zr.call.apply(Zr,[Ae,$n].concat(Io))}),De&&(je.className=wn(Ae.className,De));var Rh=Dt(Dt({},Ae),je),I1={},Ah=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ah.forEach(function($n){ye[$n]&&(I1[$n]=function(){for(var Zr,eo=arguments.length,Io=new Array(eo),so=0;so<eo;so++)Io[so]=arguments[so];(Zr=Rh[$n])===null||Zr===void 0||Zr.call.apply(Zr,[Rh].concat(Io)),ye[$n].apply(ye,Io)})});var f2=E.cloneElement(pe,Dt(Dt({},Rh),I1)),f3={x:is,y:Do},um=Y?Dt({},Y!==!0?Y:{}):null;return E.createElement(E.Fragment,null,E.createElement(Gf,{disabled:!Mt,ref:ce,onResize:Ai},E.createElement(sit,{getTriggerDOMNode:Ee},f2)),E.createElement(_oe.Provider,{value:_t},E.createElement(oit,{portal:t,ref:Sn,prefixCls:a,popup:L,className:wn(k,rt),style:O,target:en,onMouseEnter:Hu,onMouseLeave:eu,onPointerEnter:Hu,zIndex:z,open:Mt,keepDom:ir,fresh:W,onClick:G,mask:S,motion:Qe,maskMotion:nt,onVisibleChanged:Vo,onPrepare:Lc,forceRender:w,autoDestroy:Ve,getPopupContainer:A,align:po,arrow:um,arrowPos:f3,ready:gi,offsetX:pi,offsetY:vi,offsetR:qi,offsetB:Yi,onAlign:Ge,stretch:F,targetWidth:Nt/oo,targetHeight:Wr/Ss})))});return e}R(Vge,"generateTrigger");const zC=Vge(NQ);function YM(t,e){return t!==void 0?t:e?"bottomRight":"bottomLeft"}R(YM,"getRealPlacement");function Bge(t,e){var n=YM(t,e),r=n==null?void 0:n.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return e&&(i=["insetInlineStart","insetInlineEnd"].find(function(a){return a!==i})),i}R(Bge,"getoffsetUnit");var Qf=E.createContext(null),uit={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Uge(t){var e=t.popupElement,n=t.popupStyle,r=t.popupClassName,i=t.popupAlign,a=t.transitionName,o=t.getPopupContainer,s=t.children,l=t.range,u=t.placement,c=t.builtinPlacements,d=c===void 0?uit:c,h=t.direction,f=t.visible,m=t.onClose,g=E.useContext(Qf),p=g.prefixCls,v="".concat(p,"-dropdown"),_=YM(u,h==="rtl");return E.createElement(zC,{showAction:[],hideAction:["click"],popupPlacement:_,builtinPlacements:d,prefixCls:v,popupTransitionName:a,popup:e,popupAlign:i,popupVisible:f,popupClassName:wn(r,pn(pn({},"".concat(v,"-range"),l),"".concat(v,"-rtl"),h==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:o,onPopupVisibleChange:R(function(C){C||m()},"onPopupVisibleChange")},s)}R(Uge,"PickerTrigger");function XM(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(t);r.length<e;)r="".concat(n).concat(r);return r}R(XM,"leftPad");function Fp(t){return t==null?[]:Array.isArray(t)?t:[t]}R(Fp,"toArray$1");function oK(t,e,n){var r=Zi(t);return r[e]=n,r}R(oK,"fillIndex");function qC(t,e){var n={},r=e||Object.keys(t);return r.forEach(function(i){t[i]!==void 0&&(n[i]=t[i])}),n}R(qC,"pickProps");function sK(t,e,n){if(n)return n;switch(t){case"time":return e.fieldTimeFormat;case"datetime":return e.fieldDateTimeFormat;case"month":return e.fieldMonthFormat;case"year":return e.fieldYearFormat;case"quarter":return e.fieldQuarterFormat;case"week":return e.fieldWeekFormat;default:return e.fieldDateFormat}}R(sK,"getRowFormat");function Hge(t){return qC(t,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}R(Hge,"pickTriggerProps");function lK(t,e,n,r){var i=E.useMemo(function(){return t||function(o,s){var l=o;return e&&s.type==="date"?e(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[t,n,e]),a=E.useCallback(function(o,s){return i(o,Dt(Dt({},s),{},{range:r}))},[i,r]);return a}R(lK,"useCellRender");function jge(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=E.useState([!1,!1]),i=Pt(r,2),a=i[0],o=i[1],s=R(function(u,c){o(function(d){return oK(d,c,u)})},"onSelectorInvalid"),l=E.useMemo(function(){return a.map(function(u,c){if(u)return!0;var d=t[c];return d?!!(!n[c]&&!d||d&&e(d,{activeIndex:c})):!1})},[t,a,e,n]);return[l,s]}R(jge,"useFieldsInvalidate");function uK(t,e,n,r,i){var a="",o=[];return t&&o.push(i?"hh":"HH"),e&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}R(uK,"fillTimeFormat");function $ge(t,e,n,r,i,a){var o=t.fieldDateTimeFormat,s=t.fieldDateFormat,l=t.fieldTimeFormat,u=t.fieldMonthFormat,c=t.fieldYearFormat,d=t.fieldWeekFormat,h=t.fieldQuarterFormat,f=t.yearFormat,m=t.cellYearFormat,g=t.cellQuarterFormat,p=t.dayFormat,v=t.cellDateFormat,_=uK(e,n,r,i,a);return Dt(Dt({},t),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(_),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||_,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:c||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:f||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||p||"D"})}R($ge,"fillLocale");function cK(t,e){var n=e.showHour,r=e.showMinute,i=e.showSecond,a=e.showMillisecond,o=e.use12Hours;return Re.useMemo(function(){return $ge(t,n,r,i,a,o)},[t,n,r,i,a,o])}R(cK,"useLocale");function K3(t,e,n){return n??e.some(function(r){return t.includes(r)})}R(K3,"checkShow");var cit=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Wge(t){var e=qC(t,cit),n=t.format,r=t.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Ao(i)==="object"?i.format:i),r==="time"&&(e.format=i),[e,i]}R(Wge,"pickTimeProps");function zge(t){return t&&typeof t=="string"}R(zge,"isStringFormat");function dK(t,e,n,r){return[t,e,n,r].some(function(i){return i!==void 0})}R(dK,"existShowConfig");function hK(t,e,n,r,i){var a=e,o=n,s=r;if(!t&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(t){var l,u,c,d=[a,o,s].some(function(m){return m===!1}),h=[a,o,s].some(function(m){return m===!0}),f=d?!0:!h;a=(l=a)!==null&&l!==void 0?l:f,o=(u=o)!==null&&u!==void 0?u:f,s=(c=s)!==null&&c!==void 0?c:f}return[a,o,s,i]}R(hK,"fillShowConfig");function fK(t){var e=t.showTime,n=Wge(t),r=Pt(n,2),i=r[0],a=r[1],o=e&&Ao(e)==="object"?e:{},s=Dt(Dt({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,u=s.showHour,c=s.showMinute,d=s.showSecond,h=dK(u,c,d,l),f=hK(h,u,c,d,l),m=Pt(f,3);return u=m[0],c=m[1],d=m[2],[s,Dt(Dt({},s),{},{showHour:u,showMinute:c,showSecond:d,showMillisecond:l}),s.format,a]}R(fK,"getTimeProps");function mK(t,e,n,r,i){var a=t==="time";if(t==="datetime"||a){for(var o=r,s=sK(t,i,null),l=s,u=[e,n],c=0;c<u.length;c+=1){var d=Fp(u[c])[0];if(zge(d)){l=d;break}}var h=o.showHour,f=o.showMinute,m=o.showSecond,g=o.showMillisecond,p=o.use12Hours,v=K3(l,["a","A","LT","LLL","LTS"],p),_=dK(h,f,m,g);_||(h=K3(l,["H","h","k","LT","LLL"]),f=K3(l,["m","LT","LLL"]),m=K3(l,["s","LTS"]),g=K3(l,["SSS"]));var C=hK(_,h,f,m,g),S=Pt(C,3);h=S[0],f=S[1],m=S[2];var b=e||uK(h,f,m,g,v);return Dt(Dt({},o),{},{format:b,showHour:h,showMinute:f,showSecond:m,showMillisecond:g,use12Hours:v})}return null}R(mK,"fillShowTimeConfig");function qge(t,e,n){if(e===!1)return null;var r=e&&Ao(e)==="object"?e:{};return r.clearIcon||n||E.createElement("span",{className:"".concat(t,"-clear-btn")})}R(qge,"fillClearIcon");var hN=7;function Kf(t,e,n){return!t&&!e||t===e?!0:!t||!e?!1:n()}R(Kf,"nullableCompare");function Gw(t,e,n){return Kf(e,n,function(){var r=Math.floor(t.getYear(e)/10),i=Math.floor(t.getYear(n)/10);return r===i})}R(Gw,"isSameDecade");function R0(t,e,n){return Kf(e,n,function(){return t.getYear(e)===t.getYear(n)})}R(R0,"isSameYear");function s$(t,e){var n=Math.floor(t.getMonth(e)/3);return n+1}R(s$,"getQuarter");function Yge(t,e,n){return Kf(e,n,function(){return R0(t,e,n)&&s$(t,e)===s$(t,n)})}R(Yge,"isSameQuarter");function GM(t,e,n){return Kf(e,n,function(){return R0(t,e,n)&&t.getMonth(e)===t.getMonth(n)})}R(GM,"isSameMonth");function QM(t,e,n){return Kf(e,n,function(){return R0(t,e,n)&&GM(t,e,n)&&t.getDate(e)===t.getDate(n)})}R(QM,"isSameDate");function gK(t,e,n){return Kf(e,n,function(){return t.getHour(e)===t.getHour(n)&&t.getMinute(e)===t.getMinute(n)&&t.getSecond(e)===t.getSecond(n)})}R(gK,"isSameTime");function pK(t,e,n){return Kf(e,n,function(){return QM(t,e,n)&&gK(t,e,n)&&t.getMillisecond(e)===t.getMillisecond(n)})}R(pK,"isSameTimestamp");function D6(t,e,n,r){return Kf(n,r,function(){var i=t.locale.getWeekFirstDate(e,n),a=t.locale.getWeekFirstDate(e,r);return R0(t,i,a)&&t.locale.getWeek(e,n)===t.locale.getWeek(e,r)})}R(D6,"isSameWeek");function mu(t,e,n,r,i){switch(i){case"date":return QM(t,n,r);case"week":return D6(t,e.locale,n,r);case"month":return GM(t,n,r);case"quarter":return Yge(t,n,r);case"year":return R0(t,n,r);case"decade":return Gw(t,n,r);case"time":return gK(t,n,r);default:return pK(t,n,r)}}R(mu,"isSame");function YC(t,e,n,r){return!e||!n||!r?!1:t.isAfter(r,e)&&t.isAfter(n,r)}R(YC,"isInRange");function L5(t,e,n,r,i){return mu(t,e,n,r,i)?!0:t.isAfter(n,r)}R(L5,"isSameOrAfter");function Xge(t,e,n){var r=e.locale.getWeekFirstDay(t),i=e.setDate(n,1),a=e.getWeekDay(i),o=e.addDate(i,r-a);return e.getMonth(o)===e.getMonth(n)&&e.getDate(o)>1&&(o=e.addDate(o,-7)),o}R(Xge,"getWeekStartDate");function Qo(t,e){var n=e.generateConfig,r=e.locale,i=e.format;return t?typeof i=="function"?i(t):n.locale.format(r.locale,t,i):""}R(Qo,"formatValue");function Xv(t,e,n){var r=e,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=t[o](r,t[i[s]](n)):r=t[o](r,0)}),r}R(Xv,"fillTime");function Gge(t,e,n,r,i){var a=Ji(function(o,s){return!!(n&&n(o,s)||r&&t.isAfter(r,o)&&!mu(t,e,r,o,s.type)||i&&t.isAfter(o,i)&&!mu(t,e,i,o,s.type))});return a}R(Gge,"useDisabledBoundary");function Qge(t,e,n){return E.useMemo(function(){var r=sK(t,e,n),i=Fp(r),a=i[0],o=Ao(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[t,e,n])}R(Qge,"useFieldFormat");function Kge(t,e,n){return typeof t[0]=="function"||n?!0:e}R(Kge,"useInputReadOnly");function Zge(t,e,n,r){var i=Ji(function(a,o){var s=Dt({type:e},o);if(delete s.activeIndex,!t.isValidate(a)||n&&n(a,s))return!0;if((e==="date"||e==="time")&&r){var l,u=o&&o.activeIndex===1?"end":"start",c=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,u,{from:s.from}))||{},d=c.disabledHours,h=c.disabledMinutes,f=c.disabledSeconds,m=c.disabledMilliseconds,g=r.disabledHours,p=r.disabledMinutes,v=r.disabledSeconds,_=d||g,C=h||p,S=f||v,b=t.getHour(a),y=t.getMinute(a),A=t.getSecond(a),w=t.getMillisecond(a);if(_&&_().includes(b)||C&&C(b).includes(y)||S&&S(b,y).includes(A)||m&&m(b,y,A).includes(w))return!0}return!1});return i}R(Zge,"useInvalidate");function x5(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=E.useMemo(function(){var r=t&&Fp(t);return e&&r&&(r[1]=r[1]||r[0]),r},[t,e]);return n}R(x5,"useList");function Jge(t,e){var n=t.generateConfig,r=t.locale,i=t.picker,a=i===void 0?"date":i,o=t.prefixCls,s=o===void 0?"rc-picker":o,l=t.styles,u=l===void 0?{}:l,c=t.classNames,d=c===void 0?{}:c,h=t.order,f=h===void 0?!0:h,m=t.components,g=m===void 0?{}:m,p=t.inputRender,v=t.allowClear,_=t.clearIcon,C=t.needConfirm,S=t.multiple,b=t.format,y=t.inputReadOnly,A=t.disabledDate,w=t.minDate,P=t.maxDate,M=t.showTime,L=t.value,k=t.defaultValue,O=t.pickerValue,$=t.defaultPickerValue,B=x5(L),V=x5(k),X=x5(O),z=x5($),F=a==="date"&&M?"datetime":a,H=F==="time"||F==="datetime",W=H||S,K=C??H,G=fK(t),te=Pt(G,4),Y=te[0],ae=te[1],ie=te[2],ne=te[3],de=cK(r,ae),_e=E.useMemo(function(){return mK(F,ie,ne,Y,de)},[F,ie,ne,Y,de]),Pe=E.useMemo(function(){return Dt(Dt({},t),{},{prefixCls:s,locale:de,picker:a,styles:u,classNames:d,order:f,components:Dt({input:p},g),clearIcon:qge(s,v,_),showTime:_e,value:B,defaultValue:V,pickerValue:X,defaultPickerValue:z},void 0)},[t]),De=Qge(F,de,b),Ee=Pt(De,2),ye=Ee[0],Ve=Ee[1],ke=Kge(ye,y,S),Ke=Gge(n,r,A,w,P),$e=Zge(n,a,Ke,_e),Fe=E.useMemo(function(){return Dt(Dt({},Pe),{},{needConfirm:K,inputReadOnly:ke,disabledDate:Ke})},[Pe,K,ke,Ke]);return[Fe,F,W,ye,Ve,$e]}R(Jge,"useFilledProps");function epe(t,e,n){var r=Ho(e,{value:t}),i=Pt(r,2),a=i[0],o=i[1],s=Re.useRef(t),l=Re.useRef(),u=R(function(){Wi.cancel(l.current)},"cancelRaf"),c=Ji(function(){o(s.current),n&&a!==s.current&&n(s.current)}),d=Ji(function(h,f){u(),s.current=h,h||f?c():l.current=Wi(c)});return Re.useEffect(function(){return u},[]),[a,d]}R(epe,"useDelayState");function tpe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(c){return c})?!1:t,a=epe(i,e||!1,r),o=Pt(a,2),s=o[0],l=o[1];function u(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(c,d.force)}return R(u,"setOpen"),[s,u]}R(tpe,"useOpen");function npe(t){var e=E.useRef();return E.useImperativeHandle(t,function(){var n;return{nativeElement:(n=e.current)===null||n===void 0?void 0:n.nativeElement,focus:R(function(r){var i;(i=e.current)===null||i===void 0||i.focus(r)},"focus"),blur:R(function(){var r;(r=e.current)===null||r===void 0||r.blur()},"blur")}}),e}R(npe,"usePickerRef");function rpe(t,e){return E.useMemo(function(){return t||[]},[t,e])}R(rpe,"usePresets");function KM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=E.useRef(e);r.current=e,z6(function(){if(t)r.current(t);else{var i=Wi(function(){r.current(t)},n);return function(){Wi.cancel(i)}}},[t])}R(KM,"useLockEffect");function ipe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=E.useState(0),i=Pt(r,2),a=i[0],o=i[1],s=E.useState(!1),l=Pt(s,2),u=l[0],c=l[1],d=E.useRef([]),h=E.useRef(null),f=R(function(p){c(p)},"triggerFocus"),m=R(function(p){return p&&(h.current=p),h.current},"lastOperation"),g=R(function(p){var v=d.current,_=new Set(v.filter(function(S){return p[S]||e[S]})),C=v[v.length-1]===0?1:0;return _.size>=2||t[C]?null:C},"nextActiveIndex");return KM(u||n,function(){u||(d.current=[])}),E.useEffect(function(){u&&d.current.push(a)},[u,a]),[u,f,m,a,o,g,d.current]}R(ipe,"useRangeActive");function ape(t,e,n,r){switch(e){case"date":case"week":return t.addMonth(n,r);case"month":case"quarter":return t.addYear(n,r);case"year":return t.addYear(n,r*10);case"decade":return t.addYear(n,r*100);default:return n}}R(ape,"offsetPanelDate");var fN=[];function ope(t,e,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:fN,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:fN,c=arguments.length>10&&arguments[10]!==void 0?arguments[10]:fN,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,f=arguments.length>13?arguments[13]:void 0,m=o==="time",g=a||0,p=R(function(V){var X=t.getNow();return m&&(X=Xv(t,X)),l[V]||n[V]||X},"getDefaultPickerValue"),v=Pt(u,2),_=v[0],C=v[1],S=Ho(function(){return p(0)},{value:_}),b=Pt(S,2),y=b[0],A=b[1],w=Ho(function(){return p(1)},{value:C}),P=Pt(w,2),M=P[0],L=P[1],k=E.useMemo(function(){var V=[y,M][g];return m?V:Xv(t,V,c[g])},[m,y,M,g,t,c]),O=R(function(V){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[A,L][g];z(V);var F=[y,M];F[g]=V,d&&(!mu(t,e,y,F[0],o)||!mu(t,e,M,F[1],o))&&d(F,{source:X,range:g===1?"end":"start",mode:r})},"setCurrentPickerValue"),$=R(function(V,X){return X},"getEndDatePickerValue"),B=E.useRef(null);return da(function(){if(i&&!l[g]){var V=m?null:t.getNow();if(B.current!==null&&B.current!==g?V=[y,M][g^1]:n[g]?V=g===0?n[0]:$(n[0],n[1]):n[g^1]&&(V=n[g^1]),V){h&&t.isAfter(h,V)&&(V=h);var X=V;f&&t.isAfter(X,f)&&(V=f),O(V,"reset")}}},[i,g,n[g]]),E.useEffect(function(){i?B.current=g:B.current=null},[i,g]),da(function(){i&&l&&l[g]&&O(l[g],"reset")},[i,g]),[k,O]}R(ope,"useRangePickerValue");function vK(t,e){var n=E.useRef(t),r=E.useState({}),i=Pt(r,2),a=i[1],o=R(function(l){return l&&e!==void 0?e:n.current},"getter"),s=R(function(l){n.current=l,a({})},"setter");return[o,s,o(!0)]}R(vK,"useSyncState");var dit=[];function _K(t,e,n){var r=R(function(a){return a.map(function(o){return Qo(o,{generateConfig:t,locale:e,format:n[0]})})},"getDateTexts"),i=R(function(a,o){for(var s=Math.max(a.length,o.length),l=-1,u=0;u<s;u+=1){var c=a[u]||null,d=o[u]||null;if(c!==d&&!pK(t,c,d)){l=u;break}}return[l<0,l!==0]},"isSameDates");return[r,i]}R(_K,"useUtil");function CK(t,e){return Zi(t).sort(function(n,r){return e.isAfter(n,r)?1:-1})}R(CK,"orderDates");function spe(t){var e=vK(t),n=Pt(e,2),r=n[0],i=n[1],a=Ji(function(){i(t)});return E.useEffect(function(){a()},[t]),[r,i]}R(spe,"useCalendarValue");function lpe(t,e,n,r,i,a,o,s,l){var u=Ho(a,{value:o}),c=Pt(u,2),d=c[0],h=c[1],f=d||dit,m=spe(f),g=Pt(m,2),p=g[0],v=g[1],_=_K(t,e,n),C=Pt(_,2),S=C[0],b=C[1],y=Ji(function(w){var P=Zi(w);i&&(P=CK(P.filter(function(B){return B}),t));var M=b(p(),P),L=Pt(M,2),k=L[0],O=L[1];if(!k&&(v(P),s)){var $=S(P);s(P,$,{range:O?"end":"start"})}}),A=R(function(){l&&l(p())},"triggerOk");return[f,h,p,y,A]}R(lpe,"useInnerValue");function upe(t,e,n,r,i,a,o,s,l,u){var c=t.generateConfig,d=t.locale,h=t.picker,f=t.onChange,m=t.allowEmpty,g=t.order,p=a.some(function(O){return O})?!1:g,v=_K(c,d,o),_=Pt(v,2),C=_[0],S=_[1],b=vK(e),y=Pt(b,2),A=y[0],w=y[1],P=Ji(function(){w(e)});E.useEffect(function(){P()},[e]);var M=Ji(function(O){var $=O===null,B=Zi(O||A());if($)for(var V=Math.max(a.length,B.length),X=0;X<V;X+=1)a[X]||(B[X]=null);p&&B[0]&&B[1]&&(B=CK(B,c)),i(B);var z=B,F=Pt(z,2),H=F[0],W=F[1],K=!H,G=!W,te=m?(!K||m[0])&&(!G||m[1]):!0,Y=!g||K||G||mu(c,d,H,W,h)||c.isAfter(W,H),ae=(!H||!u(H,{activeIndex:0}))&&(!W||!u(W,{from:H,activeIndex:1})),ie=$||te&&Y&&ae;if(ie){n(B);var ne=S(B,e),de=Pt(ne,1),_e=de[0];f&&!_e&&f($&&B.every(function(Pe){return!Pe})?null:B,C(B))}return ie}),L=Ji(function(O,$){var B=oK(A(),O,r()[O]);w(B),$&&M()}),k=!s&&!l;return KM(!k,function(){k&&(M(),i(e),P())},2),[L,M]}R(upe,"useRangeValue");function cpe(t,e,n,r,i){return e!=="date"&&e!=="time"?!1:n!==void 0?n:r!==void 0?r:t==="date"||t==="time"}R(cpe,"useShowNow");function dpe(t,e,n,r,i,a){var o=t;function s(d,h,f){var m=a[d](o),g=f.find(function(C){return C.value===m});if(!g||g.disabled){var p=f.filter(function(C){return!C.disabled}),v=Zi(p).reverse(),_=v.find(function(C){return C.value<=m})||p[0];_&&(m=_.value,o=a[h](o,m))}return m}R(s,"alignValidate");var l=s("getHour","setHour",e()),u=s("getMinute","setMinute",n(l)),c=s("getSecond","setSecond",r(l,u));return s("getMillisecond","setMillisecond",i(l,u,c)),o}R(dpe,"findValidateTime");function O5(){return[]}R(O5,"emptyDisabled");function N5(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=t;l<=e;l+=s){var u=i.includes(l);(!u||!r)&&o.push({label:XM(l,a),value:l,disabled:u})}return o}R(N5,"generateUnits");function ZM(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,u=r.secondStep,c=u===void 0?1:u,d=r.millisecondStep,h=d===void 0?100:d,f=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,p=r.disabledMinutes,v=r.disabledSeconds,_=E.useMemo(function(){return n||t.getNow()},[n,t]),C=E.useCallback(function(z){var F=(m==null?void 0:m(z))||{};return[F.disabledHours||g||O5,F.disabledMinutes||p||O5,F.disabledSeconds||v||O5,F.disabledMilliseconds||O5]},[m,g,p,v]),S=E.useMemo(function(){return C(_)},[_,C]),b=Pt(S,4),y=b[0],A=b[1],w=b[2],P=b[3],M=E.useCallback(function(z,F,H,W){var K=N5(0,23,o,f,z()),G=i?K.map(function(ie){return Dt(Dt({},ie),{},{label:XM(ie.value%12||12,2)})}):K,te=R(function(ie){return N5(0,59,l,f,F(ie))},"getMinuteUnits3"),Y=R(function(ie,ne){return N5(0,59,c,f,H(ie,ne))},"getSecondUnits3"),ae=R(function(ie,ne,de){return N5(0,999,h,f,W(ie,ne,de),3)},"getMillisecondUnits3");return[G,te,Y,ae]},[f,o,i,h,l,c]),L=E.useMemo(function(){return M(y,A,w,P)},[M,y,A,w,P]),k=Pt(L,4),O=k[0],$=k[1],B=k[2],V=k[3],X=R(function(z,F){var H=R(function(){return O},"getCheckHourUnits2"),W=$,K=B,G=V;if(F){var te=C(F),Y=Pt(te,4),ae=Y[0],ie=Y[1],ne=Y[2],de=Y[3],_e=M(ae,ie,ne,de),Pe=Pt(_e,4),De=Pe[0],Ee=Pe[1],ye=Pe[2],Ve=Pe[3];H=R(function(){return De},"getCheckHourUnits2"),W=Ee,K=ye,G=Ve}var ke=dpe(z,H,W,K,G,t);return ke},"getValidTime2");return[X,O,$,B,V]}R(ZM,"useTimeInfo");function hpe(t){var e=t.mode,n=t.internalMode,r=t.renderExtraFooter,i=t.showNow,a=t.showTime,o=t.onSubmit,s=t.onNow,l=t.invalid,u=t.needConfirm,c=t.generateConfig,d=t.disabledDate,h=E.useContext(Qf),f=h.prefixCls,m=h.locale,g=h.button,p=g===void 0?"button":g,v=c.getNow(),_=ZM(c,a,v),C=Pt(_,1),S=C[0],b=r==null?void 0:r(e),y=d(v,{type:e}),A=R(function(){if(!y){var O=S(v);s(O)}},"onInternalNow"),w="".concat(f,"-now"),P="".concat(w,"-btn"),M=i&&E.createElement("li",{className:w},E.createElement("a",{className:wn(P,y&&"".concat(P,"-disabled")),"aria-disabled":y,onClick:A},n==="date"?m.today:m.now)),L=u&&E.createElement("li",{className:"".concat(f,"-ok")},E.createElement(p,{disabled:l,onClick:o},m.ok)),k=(M||L)&&E.createElement("ul",{className:"".concat(f,"-ranges")},M,L);return!b&&!k?null:E.createElement("div",{className:"".concat(f,"-footer")},b&&E.createElement("div",{className:"".concat(f,"-footer-extra")},b),k)}R(hpe,"Footer");function SK(t,e,n){function r(i,a){var o=i.findIndex(function(l){return mu(t,e,l,a,n)});if(o===-1)return[].concat(Zi(i),[a]);var s=Zi(i);return s.splice(o,1),s}return R(r,"toggleDates"),r}R(SK,"useToggleDates");var Vp=E.createContext(null);function XC(){return E.useContext(Vp)}R(XC,"usePanelContext");function Bp(t,e){var n=t.prefixCls,r=t.generateConfig,i=t.locale,a=t.disabledDate,o=t.minDate,s=t.maxDate,l=t.cellRender,u=t.hoverValue,c=t.hoverRangeValue,d=t.onHover,h=t.values,f=t.pickerValue,m=t.onSelect,g=t.prevIcon,p=t.nextIcon,v=t.superPrevIcon,_=t.superNextIcon,C=r.getNow(),S={now:C,values:h,pickerValue:f,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:u,hoverRangeValue:c,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:e,prevIcon:g,nextIcon:p,superPrevIcon:v,superNextIcon:_};return[S,C]}R(Bp,"useInfo");var u0=E.createContext({});function O7(t){for(var e=t.rowNum,n=t.colNum,r=t.baseDate,i=t.getCellDate,a=t.prefixColumn,o=t.rowClassName,s=t.titleFormat,l=t.getCellText,u=t.getCellClassName,c=t.headerCells,d=t.cellSelection,h=d===void 0?!0:d,f=t.disabledDate,m=XC(),g=m.prefixCls,p=m.panelType,v=m.now,_=m.disabledDate,C=m.cellRender,S=m.onHover,b=m.hoverValue,y=m.hoverRangeValue,A=m.generateConfig,w=m.values,P=m.locale,M=m.onSelect,L=f||_,k="".concat(g,"-cell"),O=E.useContext(u0),$=O.onCellDblClick,B=R(function(K){return w.some(function(G){return G&&mu(A,P,K,G,p)})},"matchValues"),V=[],X=0;X<e;X+=1){for(var z=[],F=void 0,H=R(function(){var K=X*n+W,G=i(r,K),te=L==null?void 0:L(G,{type:p});W===0&&(F=G,a&&z.push(a(F)));var Y=!1,ae=!1,ie=!1;if(h&&y){var ne=Pt(y,2),de=ne[0],_e=ne[1];Y=YC(A,de,_e,G),ae=mu(A,P,G,de,p),ie=mu(A,P,G,_e,p)}var Pe=s?Qo(G,{locale:P,format:s,generateConfig:A}):void 0,De=E.createElement("div",{className:"".concat(k,"-inner")},l(G));z.push(E.createElement("td",{key:W,title:Pe,className:wn(k,Dt(pn(pn(pn(pn(pn(pn({},"".concat(k,"-disabled"),te),"".concat(k,"-hover"),(b||[]).some(function(Ee){return mu(A,P,G,Ee,p)})),"".concat(k,"-in-range"),Y&&!ae&&!ie),"".concat(k,"-range-start"),ae),"".concat(k,"-range-end"),ie),"".concat(g,"-cell-selected"),!y&&p!=="week"&&B(G)),u(G))),onClick:R(function(){te||M(G)},"onClick"),onDoubleClick:R(function(){!te&&$&&$()},"onDoubleClick"),onMouseEnter:R(function(){te||S==null||S(G)},"onMouseEnter"),onMouseLeave:R(function(){te||S==null||S(null)},"onMouseLeave")},C?C(G,{prefixCls:g,originNode:De,today:v,type:p,locale:P}):De))},"_loop"),W=0;W<n;W+=1)H();V.push(E.createElement("tr",{key:X,className:o==null?void 0:o(F)},z))}return E.createElement("div",{className:"".concat(g,"-body")},E.createElement("table",{className:"".concat(g,"-content")},c&&E.createElement("thead",null,E.createElement("tr",null,c)),E.createElement("tbody",null,V)))}R(O7,"PanelBody");var ay={visibility:"hidden"};function Up(t){var e=t.offset,n=t.superOffset,r=t.onChange,i=t.getStart,a=t.getEnd,o=t.children,s=XC(),l=s.prefixCls,u=s.prevIcon,c=u===void 0?"‹":u,d=s.nextIcon,h=d===void 0?"›":d,f=s.superPrevIcon,m=f===void 0?"«":f,g=s.superNextIcon,p=g===void 0?"»":g,v=s.minDate,_=s.maxDate,C=s.generateConfig,S=s.locale,b=s.pickerValue,y=s.panelType,A="".concat(l,"-header"),w=E.useContext(u0),P=w.hidePrev,M=w.hideNext,L=w.hideHeader,k=E.useMemo(function(){if(!v||!e||!a)return!1;var K=a(e(-1,b));return!L5(C,S,K,v,y)},[v,e,b,a,C,S,y]),O=E.useMemo(function(){if(!v||!n||!a)return!1;var K=a(n(-1,b));return!L5(C,S,K,v,y)},[v,n,b,a,C,S,y]),$=E.useMemo(function(){if(!_||!e||!i)return!1;var K=i(e(1,b));return!L5(C,S,_,K,y)},[_,e,b,i,C,S,y]),B=E.useMemo(function(){if(!_||!n||!i)return!1;var K=i(n(1,b));return!L5(C,S,_,K,y)},[_,n,b,i,C,S,y]),V=R(function(K){e&&r(e(K,b))},"onOffset"),X=R(function(K){n&&r(n(K,b))},"onSuperOffset");if(L)return null;var z="".concat(A,"-prev-btn"),F="".concat(A,"-next-btn"),H="".concat(A,"-super-prev-btn"),W="".concat(A,"-super-next-btn");return E.createElement("div",{className:A},n&&E.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:R(function(){return X(-1)},"onClick"),tabIndex:-1,className:wn(H,O&&"".concat(H,"-disabled")),disabled:O,style:P?ay:{}},m),e&&E.createElement("button",{type:"button","aria-label":"prev-year",onClick:R(function(){return V(-1)},"onClick"),tabIndex:-1,className:wn(z,k&&"".concat(z,"-disabled")),disabled:k,style:P?ay:{}},c),E.createElement("div",{className:"".concat(A,"-view")},o),e&&E.createElement("button",{type:"button","aria-label":"next-year",onClick:R(function(){return V(1)},"onClick"),tabIndex:-1,className:wn(F,$&&"".concat(F,"-disabled")),disabled:$,style:M?ay:{}},h),n&&E.createElement("button",{type:"button","aria-label":"super-next-year",onClick:R(function(){return X(1)},"onClick"),tabIndex:-1,className:wn(W,B&&"".concat(W,"-disabled")),disabled:B,style:M?ay:{}},p))}R(Up,"PanelHeader");function GC(t){var e=t.prefixCls,n=t.panelName,r=n===void 0?"date":n,i=t.locale,a=t.generateConfig,o=t.pickerValue,s=t.onPickerValueChange,l=t.onModeChange,u=t.mode,c=u===void 0?"date":u,d=t.disabledDate,h=t.onSelect,f=t.onHover,m=t.showWeek,g="".concat(e,"-").concat(r,"-panel"),p="".concat(e,"-cell"),v=c==="week",_=Bp(t,c),C=Pt(_,2),S=C[0],b=C[1],y=a.locale.getWeekFirstDay(i.locale),A=a.setDate(o,1),w=Xge(i.locale,a,A),P=a.getMonth(o),M=m===void 0?v:m,L=M?function(K){var G=d==null?void 0:d(K,{type:"week"});return E.createElement("td",{key:"week",className:wn(p,"".concat(p,"-week"),pn({},"".concat(p,"-disabled"),G)),onClick:R(function(){G||h(K)},"onClick"),onMouseEnter:R(function(){G||f==null||f(K)},"onMouseEnter"),onMouseLeave:R(function(){G||f==null||f(null)},"onMouseLeave")},E.createElement("div",{className:"".concat(p,"-inner")},a.locale.getWeek(i.locale,K)))}:null,k=[],O=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);L&&k.push(E.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var $=0;$<hN;$+=1)k.push(E.createElement("th",{key:$},O[($+y)%hN]));var B=R(function(K,G){return a.addDate(K,G)},"getCellDate"),V=R(function(K){return Qo(K,{locale:i,format:i.cellDateFormat,generateConfig:a})},"getCellText"),X=R(function(K){var G=pn(pn({},"".concat(e,"-cell-in-view"),GM(a,K,o)),"".concat(e,"-cell-today"),QM(a,K,b));return G},"getCellClassName"),z=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),F=E.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:R(function(){l("year",o)},"onClick"),tabIndex:-1,className:"".concat(e,"-year-btn")},Qo(o,{locale:i,format:i.yearFormat,generateConfig:a})),H=E.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:R(function(){l("month",o)},"onClick"),tabIndex:-1,className:"".concat(e,"-month-btn")},i.monthFormat?Qo(o,{locale:i,format:i.monthFormat,generateConfig:a}):z[P]),W=i.monthBeforeYear?[H,F]:[F,H];return E.createElement(Vp.Provider,{value:S},E.createElement("div",{className:wn(g,m&&"".concat(g,"-show-week"))},E.createElement(Up,{offset:R(function(K){return a.addMonth(o,K)},"offset"),superOffset:R(function(K){return a.addYear(o,K)},"superOffset"),onChange:s,getStart:R(function(K){return a.setDate(K,1)},"getStart"),getEnd:R(function(K){var G=a.setDate(K,1);return G=a.addMonth(G,1),a.addDate(G,-1)},"getEnd")},W),E.createElement(O7,fr({titleFormat:i.fieldDateFormat},t,{colNum:hN,rowNum:6,baseDate:w,headerCells:k,getCellDate:B,getCellText:V,getCellClassName:X,prefixColumn:L,cellSelection:!v}))))}R(GC,"DatePanel$1");var hit=1/3;function fpe(t,e){var n=E.useRef(!1),r=E.useRef(null),i=E.useRef(null),a=R(function(){return n.current},"isScrolling"),o=R(function(){Wi.cancel(r.current),n.current=!1},"stopScroll"),s=E.useRef(),l=R(function(){var c=t.current;if(i.current=null,s.current=0,c){var d=c.querySelector('[data-value="'.concat(e,'"]')),h=c.querySelector("li"),f=R(function m(){o(),n.current=!0,s.current+=1;var g=c.scrollTop,p=h.offsetTop,v=d.offsetTop,_=v-p;if(v===0&&d!==h||!aK(c)){s.current<=5&&(r.current=Wi(m));return}var C=g+(_-g)*hit,S=Math.abs(_-C);if(i.current!==null&&i.current<S){o();return}if(i.current=S,S<=1){c.scrollTop=_,o();return}c.scrollTop=C,r.current=Wi(m)},"doScroll");d&&h&&f()}},"startScroll"),u=Ji(l);return[u,o,a]}R(fpe,"useScrollTo$1");var fit=300;function Z3(t){var e=t.units,n=t.value,r=t.optionalValue,i=t.type,a=t.onChange,o=t.onHover,s=t.onDblClick,l=t.changeOnScroll,u=XC(),c=u.prefixCls,d=u.cellRender,h=u.now,f=u.locale,m="".concat(c,"-time-panel"),g="".concat(c,"-time-panel-cell"),p=E.useRef(null),v=E.useRef(),_=R(function(){clearTimeout(v.current)},"clearDelayCheck"),C=fpe(p,n??r),S=Pt(C,3),b=S[0],y=S[1],A=S[2];da(function(){return b(),_(),function(){y(),_()}},[n,r,e]);var w=R(function(M){_();var L=M.target;!A()&&l&&(v.current=setTimeout(function(){var k=p.current,O=k.querySelector("li").offsetTop,$=Array.from(k.querySelectorAll("li")),B=$.map(function(H){return H.offsetTop-O}),V=B.map(function(H,W){return e[W].disabled?Number.MAX_SAFE_INTEGER:Math.abs(H-L.scrollTop)}),X=Math.min.apply(Math,Zi(V)),z=V.findIndex(function(H){return H===X}),F=e[z];F&&!F.disabled&&a(F.value)},fit))},"onInternalScroll"),P="".concat(m,"-column");return E.createElement("ul",{className:P,ref:p,"data-type":i,onScroll:w},e.map(function(M){var L=M.label,k=M.value,O=M.disabled,$=E.createElement("div",{className:"".concat(g,"-inner")},L);return E.createElement("li",{key:k,className:wn(g,pn(pn({},"".concat(g,"-selected"),n===k),"".concat(g,"-disabled"),O)),onClick:R(function(){O||a(k)},"onClick"),onDoubleClick:R(function(){!O&&s&&s()},"onDoubleClick"),onMouseEnter:R(function(){o(k)},"onMouseEnter"),onMouseLeave:R(function(){o(null)},"onMouseLeave"),"data-value":k},d?d(k,{prefixCls:c,originNode:$,today:h,type:"time",subType:i,locale:f}):$)}))}R(Z3,"TimeColumn");function Fh(t){return t<12}R(Fh,"isAM");function mpe(t){var e=t.showHour,n=t.showMinute,r=t.showSecond,i=t.showMillisecond,a=t.use12Hours,o=t.changeOnScroll,s=XC(),l=s.prefixCls,u=s.values,c=s.generateConfig,d=s.locale,h=s.onSelect,f=s.onHover,m=f===void 0?function(){}:f,g=s.pickerValue,p=(u==null?void 0:u[0])||null,v=E.useContext(u0),_=v.onCellDblClick,C=ZM(c,t,p),S=Pt(C,5),b=S[0],y=S[1],A=S[2],w=S[3],P=S[4],M=R(function(Ae){var je=p&&c[Ae](p),tt=g&&c[Ae](g);return[je,tt]},"getUnitValue"),L=M("getHour"),k=Pt(L,2),O=k[0],$=k[1],B=M("getMinute"),V=Pt(B,2),X=V[0],z=V[1],F=M("getSecond"),H=Pt(F,2),W=H[0],K=H[1],G=M("getMillisecond"),te=Pt(G,2),Y=te[0],ae=te[1],ie=O===null?null:Fh(O)?"am":"pm",ne=E.useMemo(function(){return a?Fh(O)?y.filter(function(Ae){return Fh(Ae.value)}):y.filter(function(Ae){return!Fh(Ae.value)}):y},[O,y,a]),de=R(function(Ae,je){var tt,Qe=Ae.filter(function(nt){return!nt.disabled});return je??(Qe==null||(tt=Qe[0])===null||tt===void 0?void 0:tt.value)},"getEnabled"),_e=de(y,O),Pe=E.useMemo(function(){return A(_e)},[A,_e]),De=de(Pe,X),Ee=E.useMemo(function(){return w(_e,De)},[w,_e,De]),ye=de(Ee,W),Ve=E.useMemo(function(){return P(_e,De,ye)},[P,_e,De,ye]),ke=de(Ve,Y),Ke=E.useMemo(function(){if(!a)return[];var Ae=c.getNow(),je=c.setHour(Ae,6),tt=c.setHour(Ae,18),Qe=R(function(nt,we){var Ze=d.cellMeridiemFormat;return Ze?Qo(nt,{generateConfig:c,locale:d,format:Ze}):we},"formatMeridiem");return[{label:Qe(je,"AM"),value:"am",disabled:y.every(function(nt){return nt.disabled||!Fh(nt.value)})},{label:Qe(tt,"PM"),value:"pm",disabled:y.every(function(nt){return nt.disabled||Fh(nt.value)})}]},[y,a,c,d]),$e=R(function(Ae){var je=b(Ae);h(je)},"triggerChange"),Fe=E.useMemo(function(){var Ae=p||g||c.getNow(),je=R(function(tt){return tt!=null},"isNotNull");return je(O)?(Ae=c.setHour(Ae,O),Ae=c.setMinute(Ae,X),Ae=c.setSecond(Ae,W),Ae=c.setMillisecond(Ae,Y)):je($)?(Ae=c.setHour(Ae,$),Ae=c.setMinute(Ae,z),Ae=c.setSecond(Ae,K),Ae=c.setMillisecond(Ae,ae)):je(_e)&&(Ae=c.setHour(Ae,_e),Ae=c.setMinute(Ae,De),Ae=c.setSecond(Ae,ye),Ae=c.setMillisecond(Ae,ke)),Ae},[p,g,O,X,W,Y,_e,De,ye,ke,$,z,K,ae,c]),He=R(function(Ae,je){return Ae===null?null:c[je](Fe,Ae)},"fillColumnValue"),ct=R(function(Ae){return He(Ae,"setHour")},"getNextHourTime"),_t=R(function(Ae){return He(Ae,"setMinute")},"getNextMinuteTime"),Ye=R(function(Ae){return He(Ae,"setSecond")},"getNextSecondTime"),Ot=R(function(Ae){return He(Ae,"setMillisecond")},"getNextMillisecondTime"),An=R(function(Ae){return Ae===null?null:Ae==="am"&&!Fh(O)?c.setHour(Fe,O-12):Ae==="pm"&&Fh(O)?c.setHour(Fe,O+12):Fe},"getMeridiemTime"),Ut=R(function(Ae){$e(ct(Ae))},"onHourChange"),Jt=R(function(Ae){$e(_t(Ae))},"onMinuteChange"),dn=R(function(Ae){$e(Ye(Ae))},"onSecondChange"),Sn=R(function(Ae){$e(Ot(Ae))},"onMillisecondChange"),hn=R(function(Ae){$e(An(Ae))},"onMeridiemChange"),tr=R(function(Ae){m(ct(Ae))},"onHourHover"),en=R(function(Ae){m(_t(Ae))},"onMinuteHover"),bt=R(function(Ae){m(Ye(Ae))},"onSecondHover"),ue=R(function(Ae){m(Ot(Ae))},"onMillisecondHover"),ce=R(function(Ae){m(An(Ae))},"onMeridiemHover"),pe={onDblClick:_,changeOnScroll:o};return E.createElement("div",{className:"".concat(l,"-content")},e&&E.createElement(Z3,fr({units:ne,value:O,optionalValue:$,type:"hour",onChange:Ut,onHover:tr},pe)),n&&E.createElement(Z3,fr({units:Pe,value:X,optionalValue:z,type:"minute",onChange:Jt,onHover:en},pe)),r&&E.createElement(Z3,fr({units:Ee,value:W,optionalValue:K,type:"second",onChange:dn,onHover:bt},pe)),i&&E.createElement(Z3,fr({units:Ve,value:Y,optionalValue:ae,type:"millisecond",onChange:Sn,onHover:ue},pe)),a&&E.createElement(Z3,fr({units:Ke,value:ie,type:"meridiem",onChange:hn,onHover:ce},pe)))}R(mpe,"TimePanelBody");function bK(t){var e=t.prefixCls,n=t.value,r=t.locale,i=t.generateConfig,a=t.showTime,o=a||{},s=o.format,l="".concat(e,"-time-panel"),u=Bp(t,"time"),c=Pt(u,1),d=c[0];return E.createElement(Vp.Provider,{value:d},E.createElement("div",{className:wn(l)},E.createElement(Up,null,n?Qo(n,{locale:r,format:s,generateConfig:i}):" "),E.createElement(mpe,a)))}R(bK,"TimePanel");function gpe(t){var e=t.prefixCls,n=t.generateConfig,r=t.showTime,i=t.onSelect,a=t.value,o=t.pickerValue,s=t.onHover,l="".concat(e,"-datetime-panel"),u=ZM(n,r),c=Pt(u,1),d=c[0],h=R(function(g){return a?Xv(n,g,a):Xv(n,g,o)},"mergeTime"),f=R(function(g){s==null||s(g&&h(g))},"onDateHover"),m=R(function(g){var p=h(g);i(d(p,p))},"onDateSelect");return E.createElement("div",{className:l},E.createElement(GC,fr({},t,{onSelect:m,onHover:f})),E.createElement(bK,t))}R(gpe,"DateTimePanel");function ppe(t){var e=t.prefixCls,n=t.locale,r=t.generateConfig,i=t.pickerValue,a=t.disabledDate,o=t.onPickerValueChange,s="".concat(e,"-decade-panel"),l=Bp(t,"decade"),u=Pt(l,1),c=u[0],d=R(function(b){var y=Math.floor(r.getYear(i)/100)*100;return r.setYear(b,y)},"getStartYear"),h=R(function(b){var y=d(b);return r.addYear(y,99)},"getEndYear"),f=d(i),m=h(i),g=r.addYear(f,-10),p=R(function(b,y){return r.addYear(b,y*10)},"getCellDate"),v=R(function(b){var y=n.cellYearFormat,A=Qo(b,{locale:n,format:y,generateConfig:r}),w=Qo(r.addYear(b,9),{locale:n,format:y,generateConfig:r});return"".concat(A,"-").concat(w)},"getCellText"),_=R(function(b){return pn({},"".concat(e,"-cell-in-view"),Gw(r,b,f)||Gw(r,b,m)||YC(r,f,m,b))},"getCellClassName"),C=a?function(b,y){var A=r.setDate(b,1),w=r.setMonth(A,0),P=r.setYear(w,Math.floor(r.getYear(w)/10)*10),M=r.addYear(P,10),L=r.addDate(M,-1);return a(P,y)&&a(L,y)}:null,S="".concat(Qo(f,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Qo(m,{locale:n,format:n.yearFormat,generateConfig:r}));return E.createElement(Vp.Provider,{value:c},E.createElement("div",{className:s},E.createElement(Up,{superOffset:R(function(b){return r.addYear(i,b*100)},"superOffset"),onChange:o,getStart:d,getEnd:h},S),E.createElement(O7,fr({},t,{disabledDate:C,colNum:3,rowNum:4,baseDate:g,getCellDate:p,getCellText:v,getCellClassName:_}))))}R(ppe,"DecadePanel");function vpe(t){var e=t.prefixCls,n=t.locale,r=t.generateConfig,i=t.pickerValue,a=t.disabledDate,o=t.onPickerValueChange,s=t.onModeChange,l="".concat(e,"-month-panel"),u=Bp(t,"month"),c=Pt(u,1),d=c[0],h=r.setMonth(i,0),f=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=R(function(C,S){return r.addMonth(C,S)},"getCellDate"),g=R(function(C){var S=r.getMonth(C);return n.monthFormat?Qo(C,{locale:n,format:n.monthFormat,generateConfig:r}):f[S]},"getCellText"),p=R(function(){return pn({},"".concat(e,"-cell-in-view"),!0)},"getCellClassName"),v=a?function(C,S){var b=r.setDate(C,1),y=r.setMonth(b,r.getMonth(b)+1),A=r.addDate(y,-1);return a(b,S)&&a(A,S)}:null,_=E.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:R(function(){s("year")},"onClick"),tabIndex:-1,className:"".concat(e,"-year-btn")},Qo(i,{locale:n,format:n.yearFormat,generateConfig:r}));return E.createElement(Vp.Provider,{value:d},E.createElement("div",{className:l},E.createElement(Up,{superOffset:R(function(C){return r.addYear(i,C)},"superOffset"),onChange:o,getStart:R(function(C){return r.setMonth(C,0)},"getStart"),getEnd:R(function(C){return r.setMonth(C,11)},"getEnd")},_),E.createElement(O7,fr({},t,{disabledDate:v,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:m,getCellText:g,getCellClassName:p}))))}R(vpe,"MonthPanel");function _pe(t){var e=t.prefixCls,n=t.locale,r=t.generateConfig,i=t.pickerValue,a=t.onPickerValueChange,o=t.onModeChange,s="".concat(e,"-quarter-panel"),l=Bp(t,"quarter"),u=Pt(l,1),c=u[0],d=r.setMonth(i,0),h=R(function(p,v){return r.addMonth(p,v*3)},"getCellDate"),f=R(function(p){return Qo(p,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},"getCellText"),m=R(function(){return pn({},"".concat(e,"-cell-in-view"),!0)},"getCellClassName"),g=E.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:R(function(){o("year")},"onClick"),tabIndex:-1,className:"".concat(e,"-year-btn")},Qo(i,{locale:n,format:n.yearFormat,generateConfig:r}));return E.createElement(Vp.Provider,{value:c},E.createElement("div",{className:s},E.createElement(Up,{superOffset:R(function(p){return r.addYear(i,p)},"superOffset"),onChange:a,getStart:R(function(p){return r.setMonth(p,0)},"getStart"),getEnd:R(function(p){return r.setMonth(p,11)},"getEnd")},g),E.createElement(O7,fr({},t,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:h,getCellText:f,getCellClassName:m}))))}R(_pe,"QuarterPanel");function Cpe(t){var e=t.prefixCls,n=t.generateConfig,r=t.locale,i=t.value,a=t.hoverValue,o=t.hoverRangeValue,s=r.locale,l="".concat(e,"-week-panel-row"),u=R(function(c){var d={};if(o){var h=Pt(o,2),f=h[0],m=h[1],g=D6(n,s,f,c),p=D6(n,s,m,c);d["".concat(l,"-range-start")]=g,d["".concat(l,"-range-end")]=p,d["".concat(l,"-range-hover")]=!g&&!p&&YC(n,f,m,c)}return a&&(d["".concat(l,"-hover")]=a.some(function(v){return D6(n,s,c,v)})),wn(l,pn({},"".concat(l,"-selected"),!o&&D6(n,s,i,c)),d)},"rowClassName");return E.createElement(GC,fr({},t,{mode:"week",panelName:"week",rowClassName:u}))}R(Cpe,"WeekPanel");function Spe(t){var e=t.prefixCls,n=t.locale,r=t.generateConfig,i=t.pickerValue,a=t.disabledDate,o=t.onPickerValueChange,s=t.onModeChange,l="".concat(e,"-year-panel"),u=Bp(t,"year"),c=Pt(u,1),d=c[0],h=R(function(y){var A=Math.floor(r.getYear(i)/10)*10;return r.setYear(y,A)},"getStartYear"),f=R(function(y){var A=h(y);return r.addYear(A,9)},"getEndYear"),m=h(i),g=f(i),p=r.addYear(m,-1),v=R(function(y,A){return r.addYear(y,A)},"getCellDate"),_=R(function(y){return Qo(y,{locale:n,format:n.cellYearFormat,generateConfig:r})},"getCellText"),C=R(function(y){return pn({},"".concat(e,"-cell-in-view"),R0(r,y,m)||R0(r,y,g)||YC(r,m,g,y))},"getCellClassName"),S=a?function(y,A){var w=r.setMonth(y,0),P=r.setDate(w,1),M=r.addYear(P,1),L=r.addDate(M,-1);return a(P,A)&&a(L,A)}:null,b=E.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:R(function(){s("decade")},"onClick"),tabIndex:-1,className:"".concat(e,"-decade-btn")},Qo(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Qo(g,{locale:n,format:n.yearFormat,generateConfig:r}));return E.createElement(Vp.Provider,{value:d},E.createElement("div",{className:l},E.createElement(Up,{superOffset:R(function(y){return r.addYear(i,y*10)},"superOffset"),onChange:o,getStart:h,getEnd:f},b),E.createElement(O7,fr({},t,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:v,getCellText:_,getCellClassName:C}))))}R(Spe,"YearPanel");var mit={date:GC,datetime:gpe,week:Cpe,month:vpe,quarter:_pe,year:Spe,decade:ppe,time:bK};function bpe(t,e){var n,r=t.locale,i=t.generateConfig,a=t.direction,o=t.prefixCls,s=t.tabIndex,l=s===void 0?0:s,u=t.multiple,c=t.defaultValue,d=t.value,h=t.onChange,f=t.onSelect,m=t.defaultPickerValue,g=t.pickerValue,p=t.onPickerValueChange,v=t.mode,_=t.onPanelChange,C=t.picker,S=C===void 0?"date":C,b=t.showTime,y=t.hoverValue,A=t.hoverRangeValue,w=t.cellRender,P=t.dateRender,M=t.monthCellRender,L=t.components,k=L===void 0?{}:L,O=t.hideHeader,$=((n=E.useContext(Qf))===null||n===void 0?void 0:n.prefixCls)||o||"rc-picker",B=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:B.current}});var V=fK(t),X=Pt(V,4),z=X[0],F=X[1],H=X[2],W=X[3],K=cK(r,F),G=S==="date"&&b?"datetime":S,te=E.useMemo(function(){return mK(G,H,W,z,K)},[G,H,W,z,K]),Y=i.getNow(),ae=Ho(S,{value:v,postState:R(function(ue){return ue||"date"},"postState")}),ie=Pt(ae,2),ne=ie[0],de=ie[1],_e=ne==="date"&&te?"datetime":ne,Pe=SK(i,r,G),De=Ho(c,{value:d}),Ee=Pt(De,2),ye=Ee[0],Ve=Ee[1],ke=E.useMemo(function(){var ue=Fp(ye).filter(function(ce){return ce});return u?ue:ue.slice(0,1)},[ye,u]),Ke=Ji(function(ue){Ve(ue),h&&(ue===null||ke.length!==ue.length||ke.some(function(ce,pe){return!mu(i,r,ce,ue[pe],G)}))&&(h==null||h(u?ue:ue[0]))}),$e=Ji(function(ue){if(f==null||f(ue),ne===S){var ce=u?Pe(ke,ue):[ue];Ke(ce)}}),Fe=Ho(m||ke[0]||Y,{value:g}),He=Pt(Fe,2),ct=He[0],_t=He[1];E.useEffect(function(){ke[0]&&!g&&_t(ke[0])},[ke[0]]);var Ye=R(function(ue,ce){_==null||_(ue||g,ce||ne)},"triggerPanelChange2"),Ot=R(function(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_t(ue),p==null||p(ue),ce&&Ye(ue)},"setPickerValue2"),An=R(function(ue,ce){de(ue),ce&&Ot(ce),Ye(ce,ue)},"triggerModeChange2"),Ut=R(function(ue){if($e(ue),Ot(ue),ne!==S){var ce=["decade","year"],pe=[].concat(ce,["month"]),Ae={quarter:[].concat(ce,["quarter"]),week:[].concat(Zi(pe),["week"]),date:[].concat(Zi(pe),["date"])},je=Ae[S]||pe,tt=je.indexOf(ne),Qe=je[tt+1];Qe&&An(Qe,ue)}},"onPanelValueSelect2"),Jt=E.useMemo(function(){var ue,ce;if(Array.isArray(A)){var pe=Pt(A,2);ue=pe[0],ce=pe[1]}else ue=A;return!ue&&!ce?null:(ue=ue||ce,ce=ce||ue,i.isAfter(ue,ce)?[ce,ue]:[ue,ce])},[A,i]),dn=lK(w,P,M),Sn=k[_e]||mit[_e]||GC,hn=E.useContext(u0),tr=E.useMemo(function(){return Dt(Dt({},hn),{},{hideHeader:O})},[hn,O]),en="".concat($,"-panel"),bt=qC(t,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return E.createElement(u0.Provider,{value:tr},E.createElement("div",{ref:B,tabIndex:l,className:wn(en,pn({},"".concat(en,"-rtl"),a==="rtl"))},E.createElement(Sn,fr({},bt,{showTime:te,prefixCls:$,locale:K,generateConfig:i,onModeChange:An,pickerValue:ct,onPickerValueChange:R(function(ue){Ot(ue,!0)},"onPickerValueChange2"),value:ke[0],onSelect:Ut,values:ke,cellRender:dn,hoverRangeValue:Jt,hoverValue:y}))))}R(bpe,"PickerPanel");var TE=E.memo(E.forwardRef(bpe));function ype(t){var e=t.picker,n=t.multiplePanel,r=t.pickerValue,i=t.onPickerValueChange,a=t.needConfirm,o=t.onSubmit,s=t.range,l=t.hoverValue,u=E.useContext(Qf),c=u.prefixCls,d=u.generateConfig,h=E.useCallback(function(_,C){return ape(d,e,_,C)},[d,e]),f=E.useMemo(function(){return h(r,1)},[r,h]),m=R(function(_){i(h(_,-1))},"onSecondPickerValueChange"),g={onCellDblClick:R(function(){a&&o()},"onCellDblClick")},p=e==="time",v=Dt(Dt({},t),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return s?v.hoverRangeValue=l:v.hoverValue=l,n?E.createElement("div",{className:"".concat(c,"-panels")},E.createElement(u0.Provider,{value:Dt(Dt({},g),{},{hideNext:!0})},E.createElement(TE,v)),E.createElement(u0.Provider,{value:Dt(Dt({},g),{},{hidePrev:!0})},E.createElement(TE,fr({},v,{pickerValue:f,onPickerValueChange:m})))):E.createElement(u0.Provider,{value:Dt({},g)},E.createElement(TE,v))}R(ype,"PopupPanel");function l$(t){return typeof t=="function"?t():t}R(l$,"executeValue");function Epe(t){var e=t.prefixCls,n=t.presets,r=t.onClick,i=t.onHover;return n.length?E.createElement("div",{className:"".concat(e,"-presets")},E.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return E.createElement("li",{key:o,onClick:R(function(){r(l$(l))},"onClick"),onMouseEnter:R(function(){i(l$(l))},"onMouseEnter"),onMouseLeave:R(function(){i(null)},"onMouseLeave")},s)}))):null}R(Epe,"PresetPanel");function Rpe(t){var e=t.panelRender,n=t.internalMode,r=t.picker,i=t.showNow,a=t.range,o=t.multiple,s=t.activeOffset,l=s===void 0?0:s,u=t.placement,c=t.presets,d=t.onPresetHover,h=t.onPresetSubmit,f=t.onFocus,m=t.onBlur,g=t.onPanelMouseDown,p=t.direction,v=t.value,_=t.onSelect,C=t.isInvalid,S=t.defaultOpenValue,b=t.onOk,y=t.onSubmit,A=E.useContext(Qf),w=A.prefixCls,P="".concat(w,"-panel"),M=p==="rtl",L=E.useRef(null),k=E.useRef(null),O=E.useState(0),$=Pt(O,2),B=$[0],V=$[1],X=E.useState(0),z=Pt(X,2),F=z[0],H=z[1],W=R(function(ke){ke.offsetWidth&&V(ke.offsetWidth)},"onResize");E.useEffect(function(){if(a){var ke,Ke=((ke=L.current)===null||ke===void 0?void 0:ke.offsetWidth)||0,$e=B-Ke;l<=$e?H(0):H(l+Ke-B)}},[B,l,a]);function K(ke){return ke.filter(function(Ke){return Ke})}R(K,"filterEmpty");var G=E.useMemo(function(){return K(Fp(v))},[v]),te=r==="time"&&!G.length,Y=E.useMemo(function(){return te?K([S]):G},[te,G,S]),ae=te?S:G,ie=E.useMemo(function(){return Y.length?Y.some(function(ke){return C(ke)}):!0},[Y,C]),ne=R(function(){te&&_(S),b(),y()},"onFooterSubmit"),de=E.createElement("div",{className:"".concat(w,"-panel-layout")},E.createElement(Epe,{prefixCls:w,presets:c,onClick:h,onHover:d}),E.createElement("div",null,E.createElement(ype,fr({},t,{value:ae})),E.createElement(hpe,fr({},t,{showNow:o?!1:i,invalid:ie,onSubmit:ne}))));e&&(de=e(de));var _e="".concat(P,"-container"),Pe="marginLeft",De="marginRight",Ee=E.createElement("div",{onMouseDown:g,tabIndex:-1,className:wn(_e,"".concat(w,"-").concat(n,"-panel-container")),style:pn(pn({},M?De:Pe,F),M?Pe:De,"auto"),onFocus:f,onBlur:m},de);if(a){var ye=YM(u,M),Ve=Bge(ye,M);Ee=E.createElement("div",{onMouseDown:g,ref:k,className:wn("".concat(w,"-range-wrapper"),"".concat(w,"-").concat(r,"-range-wrapper"))},E.createElement("div",{ref:L,className:"".concat(w,"-range-arrow"),style:pn({},Ve,l)}),E.createElement(Gf,{onResize:W},Ee))}return Ee}R(Rpe,"Popup$2");function Ape(t,e){var n=t.format,r=t.maskFormat,i=t.generateConfig,a=t.locale,o=t.preserveInvalidOnBlur,s=t.inputReadOnly,l=t.required,u=t["aria-required"],c=t.onSubmit,d=t.onFocus,h=t.onBlur,f=t.onInputChange,m=t.onInvalid,g=t.open,p=t.onOpenChange,v=t.onKeyDown,_=t.onChange,C=t.activeHelp,S=t.name,b=t.autoComplete,y=t.id,A=t.value,w=t.invalid,P=t.placeholder,M=t.disabled,L=t.activeIndex,k=t.allHelp,O=t.picker,$=R(function(W,K){var G=i.locale.parse(a.locale,W,[K]);return G&&i.isValidate(G)?G:null},"parseDate2"),B=n[0],V=E.useCallback(function(W){return Qo(W,{locale:a,format:B,generateConfig:i})},[a,i,B]),X=E.useMemo(function(){return A.map(V)},[A,V]),z=E.useMemo(function(){var W=O==="time"?8:10,K=typeof B=="function"?B(i.getNow()).length:B.length;return Math.max(W,K)+2},[B,O,i]),F=R(function(W){for(var K=0;K<n.length;K+=1){var G=n[K];if(typeof G=="string"){var te=$(W,G);if(te)return te}}return!1},"validateFormat"),H=R(function(W){function K(Y){return W!==void 0?Y[W]:Y}R(K,"getProp");var G=yf(t,{aria:!0,data:!0}),te=Dt(Dt({},G),{},{format:r,validateFormat:R(function(Y){return!!F(Y)},"validateFormat"),preserveInvalidOnBlur:o,readOnly:s,required:l,"aria-required":u,name:S,autoComplete:b,size:z,id:K(y),value:K(X)||"",invalid:K(w),placeholder:K(P),active:L===W,helped:k||C&&L===W,disabled:K(M),onFocus:R(function(Y){d(Y,W)},"onFocus"),onBlur:R(function(Y){h(Y,W)},"onBlur"),onSubmit:c,onChange:R(function(Y){f();var ae=F(Y);if(ae){m(!1,W),_(ae,W);return}m(!!Y,W)},"onChange"),onHelp:R(function(){p(!0,{index:W})},"onHelp"),onKeyDown:R(function(Y){var ae=!1;if(v==null||v(Y,function(){ae=!0}),!Y.defaultPrevented&&!ae)switch(Y.key){case"Escape":p(!1,{index:W});break;case"Enter":g||p(!0);break}},"onKeyDown")},e==null?void 0:e({valueTexts:X}));return Object.keys(te).forEach(function(Y){te[Y]===void 0&&delete te[Y]}),te},"getInputProps2");return[H,V]}R(Ape,"useInputProps");var git=["onMouseEnter","onMouseLeave"];function wpe(t){return E.useMemo(function(){return qC(t,git)},[t])}R(wpe,"useRootProps");var pit=["icon","type"],vit=["onClear"];function JM(t){var e=t.icon,n=t.type,r=Ka(t,pit),i=E.useContext(Qf),a=i.prefixCls;return e?E.createElement("span",fr({className:"".concat(a,"-").concat(n)},r),e):null}R(JM,"Icon$1");function u$(t){var e=t.onClear,n=Ka(t,vit);return E.createElement(JM,fr({},n,{type:"clear",role:"button",onMouseDown:R(function(r){r.preventDefault()},"onMouseDown"),onClick:R(function(r){r.stopPropagation(),e()},"onClick")}))}R(u$,"ClearIcon");var mN=["YYYY","MM","DD","HH","mm","ss","SSS"],Coe="顧",_it=function(){function t(e){UC(this,t),pn(this,"format",void 0),pn(this,"maskFormat",void 0),pn(this,"cells",void 0),pn(this,"maskCells",void 0),this.format=e;var n=mN.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=e.replace(r,function(s){return Coe.repeat(s.length)});var i=new RegExp("(".concat(mN.join("|"),")")),a=(e.split(i)||[]).filter(function(s){return s}),o=0;this.cells=a.map(function(s){var l=mN.includes(s),u=o,c=o+s.length;return o=c,{text:s,mask:l,start:u,end:c}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return R(t,"MaskFormat"),HC(t,[{key:"getSelection",value:R(function(e){var n=this.maskCells[e]||{},r=n.start,i=n.end;return[r||0,i||0]},"getSelection")},{key:"match",value:R(function(e){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],i=e[n];if(!i||r!==Coe&&r!==i)return!1}return!0},"match")},{key:"size",value:R(function(){return this.maskCells.length},"size")},{key:"getMaskCellIndex",value:R(function(e){for(var n=Number.MAX_SAFE_INTEGER,r=0,i=0;i<this.maskCells.length;i+=1){var a=this.maskCells[i],o=a.start,s=a.end;if(e>=o&&e<=s)return i;var l=Math.min(Math.abs(e-o),Math.abs(e-s));l<n&&(n=l,r=i)}return r},"getMaskCellIndex")}]),t}();function Dpe(t){var e={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return e[t]}R(Dpe,"getMaskRange");var Cit=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Sit=E.forwardRef(function(t,e){var n=t.active,r=t.showActiveCls,i=r===void 0?!0:r,a=t.suffixIcon,o=t.format,s=t.validateFormat,l=t.onChange;t.onInput;var u=t.helped,c=t.onHelp,d=t.onSubmit,h=t.onKeyDown,f=t.preserveInvalidOnBlur,m=f===void 0?!1:f,g=t.invalid,p=t.clearIcon,v=Ka(t,Cit),_=t.value,C=t.onFocus,S=t.onBlur,b=t.onMouseUp,y=E.useContext(Qf),A=y.prefixCls,w=y.input,P=w===void 0?"input":w,M="".concat(A,"-input"),L=E.useState(!1),k=Pt(L,2),O=k[0],$=k[1],B=E.useState(_),V=Pt(B,2),X=V[0],z=V[1],F=E.useState(""),H=Pt(F,2),W=H[0],K=H[1],G=E.useState(null),te=Pt(G,2),Y=te[0],ae=te[1],ie=E.useState(null),ne=Pt(ie,2),de=ne[0],_e=ne[1],Pe=X||"";E.useEffect(function(){z(_)},[_]);var De=E.useRef(),Ee=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:De.current,inputElement:Ee.current,focus:R(function(bt){Ee.current.focus(bt)},"focus"),blur:R(function(){Ee.current.blur()},"blur")}});var ye=E.useMemo(function(){return new _it(o||"")},[o]),Ve=E.useMemo(function(){return u?[0,0]:ye.getSelection(Y)},[ye,Y,u]),ke=Pt(Ve,2),Ke=ke[0],$e=ke[1],Fe=R(function(bt){bt&&bt!==o&&bt!==_&&c()},"onModify2"),He=Ji(function(bt){s(bt)&&l(bt),z(bt),Fe(bt)}),ct=R(function(bt){if(!o){var ue=bt.target.value;Fe(ue),z(ue),l(ue)}},"onInternalChange2"),_t=R(function(bt){var ue=bt.clipboardData.getData("text");s(ue)&&He(ue)},"onFormatPaste2"),Ye=E.useRef(!1),Ot=R(function(){Ye.current=!0},"onFormatMouseDown2"),An=R(function(bt){var ue=bt.target,ce=ue.selectionStart,pe=ye.getMaskCellIndex(ce);ae(pe),_e({}),b==null||b(bt),Ye.current=!1},"onFormatMouseUp2"),Ut=R(function(bt){$(!0),ae(0),K(""),C(bt)},"onFormatFocus2"),Jt=R(function(bt){S(bt)},"onSharedBlur2"),dn=R(function(bt){$(!1),Jt(bt)},"onFormatBlur2");KM(n,function(){!n&&!m&&z(_)});var Sn=R(function(bt){bt.key==="Enter"&&s(Pe)&&d(),h==null||h(bt)},"onSharedKeyDown2"),hn=R(function(bt){Sn(bt);var ue=bt.key,ce=null,pe=null,Ae=$e-Ke,je=o.slice(Ke,$e),tt=R(function(we){ae(function(Ze){var ht=Ze+we;return ht=Math.max(ht,0),ht=Math.min(ht,ye.size()-1),ht})},"offsetCellIndex2"),Qe=R(function(we){var Ze=Dpe(je),ht=Pt(Ze,3),pt=ht[0],Mt=ht[1],xt=ht[2],st=Pe.slice(Ke,$e),Be=Number(st);if(isNaN(Be))return String(xt||(we>0?pt:Mt));var vt=Be+we,qt=Mt-pt+1;return String(pt+(qt+vt-pt)%qt)},"offsetCellValue2");switch(ue){case"Backspace":case"Delete":ce="",pe=je;break;case"ArrowLeft":ce="",tt(-1);break;case"ArrowRight":ce="",tt(1);break;case"ArrowUp":ce="",pe=Qe(1);break;case"ArrowDown":ce="",pe=Qe(-1);break;default:isNaN(Number(ue))||(ce=W+ue,pe=ce);break}if(ce!==null&&(K(ce),ce.length>=Ae&&(tt(1),K(""))),pe!==null){var nt=Pe.slice(0,Ke)+XM(pe,Ae)+Pe.slice($e);He(nt.slice(0,o.length))}_e({})},"onFormatKeyDown2"),tr=E.useRef();da(function(){if(!(!O||!o||Ye.current)){if(!ye.match(Pe)){He(o);return}return Ee.current.setSelectionRange(Ke,$e),tr.current=Wi(function(){Ee.current.setSelectionRange(Ke,$e)}),function(){Wi.cancel(tr.current)}}},[ye,o,O,Pe,Y,Ke,$e,de,He]);var en=o?{onFocus:Ut,onBlur:dn,onKeyDown:hn,onMouseDown:Ot,onMouseUp:An,onPaste:_t}:{};return E.createElement("div",{ref:De,className:wn(M,pn(pn({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),u))},E.createElement(P,fr({ref:Ee,"aria-invalid":g,autoComplete:"off"},v,{onKeyDown:Sn,onBlur:Jt},en,{value:Pe,onChange:ct})),E.createElement(JM,{type:"suffix",icon:a}),p)});function QC(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}R(QC,"_objectWithoutPropertiesLoose$3");function sc(t,e){if(t==null)return{};var n,r,i=QC(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}R(sc,"_objectWithoutProperties$1");var bit=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],S3=void 0;function Ipe(t,e){var n=t.prefixCls,r=t.invalidate,i=t.item,a=t.renderItem,o=t.responsive,s=t.responsiveDisabled,l=t.registerSize,u=t.itemKey,c=t.className,d=t.style,h=t.children,f=t.display,m=t.order,g=t.component,p=g===void 0?"div":g,v=sc(t,bit),_=o&&!f;function C(w){l(u,w)}R(C,"internalRegisterSize"),E.useEffect(function(){return function(){C(null)}},[]);var S=a&&i!==S3?a(i):h,b;r||(b={opacity:_?0:1,height:_?0:S3,overflowY:_?"hidden":S3,order:o?m:S3,pointerEvents:_?"none":S3,position:_?"absolute":S3});var y={};_&&(y["aria-hidden"]=!0);var A=E.createElement(p,bo({className:wn(!r&&n,c),style:Ui(Ui({},b),d)},y,v,{ref:e}),S);return o&&(A=E.createElement(Gf,{onResize:R(function(w){var P=w.offsetWidth;C(P)},"onResize"),disabled:s},A)),A}R(Ipe,"InternalItem");var _8=E.forwardRef(Ipe);_8.displayName="Item";function Ppe(t){if(typeof MessageChannel>"u")Wi(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}R(Ppe,"channelUpdate");function Mpe(){var t=E.useRef(null),e=R(function(n){t.current||(t.current=[],Ppe(function(){bf.unstable_batchedUpdates(function(){t.current.forEach(function(r){r()}),t.current=null})})),t.current.push(n)},"notifyEffectUpdate");return e}R(Mpe,"useBatcher");function J3(t,e){var n=E.useState(e),r=Ur(n,2),i=r[0],a=r[1],o=Ji(function(s){t(function(){a(s)})});return[i,o]}R(J3,"useEffectState");var Qw=Re.createContext(null),yit=["component"],Eit=["className"],Rit=["className"],Ait=R(function(t,e){var n=E.useContext(Qw);if(!n){var r=t.component,i=r===void 0?"div":r,a=sc(t,yit);return E.createElement(i,bo({},a,{ref:e}))}var o=n.className,s=sc(n,Eit),l=t.className,u=sc(t,Rit);return E.createElement(Qw.Provider,{value:null},E.createElement(_8,bo({ref:e,className:wn(o,l)},s,u)))},"InternalRawItem"),Tpe=E.forwardRef(Ait);Tpe.displayName="RawItem";var wit=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Lpe="responsive",xpe="invalidate";function Ope(t){return"+ ".concat(t.length," ...")}R(Ope,"defaultRenderRest");function Npe(t,e){var n=t.prefixCls,r=n===void 0?"rc-overflow":n,i=t.data,a=i===void 0?[]:i,o=t.renderItem,s=t.renderRawItem,l=t.itemKey,u=t.itemWidth,c=u===void 0?10:u,d=t.ssr,h=t.style,f=t.className,m=t.maxCount,g=t.renderRest,p=t.renderRawRest,v=t.suffix,_=t.component,C=_===void 0?"div":_,S=t.itemComponent,b=t.onVisibleChange,y=sc(t,wit),A=d==="full",w=Mpe(),P=J3(w,null),M=Ur(P,2),L=M[0],k=M[1],O=L||0,$=J3(w,new Map),B=Ur($,2),V=B[0],X=B[1],z=J3(w,0),F=Ur(z,2),H=F[0],W=F[1],K=J3(w,0),G=Ur(K,2),te=G[0],Y=G[1],ae=J3(w,0),ie=Ur(ae,2),ne=ie[0],de=ie[1],_e=E.useState(null),Pe=Ur(_e,2),De=Pe[0],Ee=Pe[1],ye=E.useState(null),Ve=Ur(ye,2),ke=Ve[0],Ke=Ve[1],$e=E.useMemo(function(){return ke===null&&A?Number.MAX_SAFE_INTEGER:ke||0},[ke,L]),Fe=E.useState(!1),He=Ur(Fe,2),ct=He[0],_t=He[1],Ye="".concat(r,"-item"),Ot=Math.max(H,te),An=m===Lpe,Ut=a.length&&An,Jt=m===xpe,dn=Ut||typeof m=="number"&&a.length>m,Sn=E.useMemo(function(){var xt=a;return Ut?L===null&&A?xt=a:xt=a.slice(0,Math.min(a.length,O/c)):typeof m=="number"&&(xt=a.slice(0,m)),xt},[a,c,L,m,Ut]),hn=E.useMemo(function(){return Ut?a.slice($e+1):a.slice(Sn.length)},[a,Sn,Ut,$e]),tr=E.useCallback(function(xt,st){var Be;return typeof l=="function"?l(xt):(Be=l&&(xt==null?void 0:xt[l]))!==null&&Be!==void 0?Be:st},[l]),en=E.useCallback(o||function(xt){return xt},[o]);function bt(xt,st,Be){ke===xt&&(st===void 0||st===De)||(Ke(xt),Be||(_t(xt<a.length-1),b==null||b(xt)),st!==void 0&&Ee(st))}R(bt,"updateDisplayCount");function ue(xt,st){k(st.clientWidth)}R(ue,"onOverflowResize");function ce(xt,st){X(function(Be){var vt=new Map(Be);return st===null?vt.delete(xt):vt.set(xt,st),vt})}R(ce,"registerSize");function pe(xt,st){Y(st),W(te)}R(pe,"registerOverflowSize");function Ae(xt,st){de(st)}R(Ae,"registerSuffixSize");function je(xt){return V.get(tr(Sn[xt],xt))}R(je,"getItemWidth"),da(function(){if(O&&typeof Ot=="number"&&Sn){var xt=ne,st=Sn.length,Be=st-1;if(!st){bt(0,null);return}for(var vt=0;vt<st;vt+=1){var qt=je(vt);if(A&&(qt=qt||0),qt===void 0){bt(vt-1,void 0,!0);break}if(xt+=qt,Be===0&&xt<=O||vt===Be-1&&xt+je(Be)<=O){bt(Be,null);break}else if(xt+Ot>O){bt(vt-1,xt-qt-ne+te);break}}v&&je(0)+ne>O&&Ee(null)}},[O,V,te,ne,tr,Sn]);var tt=ct&&!!hn.length,Qe={};De!==null&&Ut&&(Qe={position:"absolute",left:De,top:0});var nt={prefixCls:Ye,responsive:Ut,component:S,invalidate:Jt},we=s?function(xt,st){var Be=tr(xt,st);return E.createElement(Qw.Provider,{key:Be,value:Ui(Ui({},nt),{},{order:st,item:xt,itemKey:Be,registerSize:ce,display:st<=$e})},s(xt,st))}:function(xt,st){var Be=tr(xt,st);return E.createElement(_8,bo({},nt,{order:st,key:Be,item:xt,renderItem:en,itemKey:Be,registerSize:ce,display:st<=$e}))},Ze,ht={order:tt?$e:Number.MAX_SAFE_INTEGER,className:"".concat(Ye,"-rest"),registerSize:pe,display:tt};if(p)p&&(Ze=E.createElement(Qw.Provider,{value:Ui(Ui({},nt),ht)},p(hn)));else{var pt=g||Ope;Ze=E.createElement(_8,bo({},nt,ht),typeof pt=="function"?pt(hn):pt)}var Mt=E.createElement(C,bo({className:wn(!Jt&&r,f),style:h,ref:e},y),Sn.map(we),dn?Ze:null,v&&E.createElement(_8,bo({},nt,{responsive:An,responsiveDisabled:!Ut,order:$e,className:"".concat(Ye,"-suffix"),registerSize:Ae,display:!0,style:Qe}),v));return An&&(Mt=E.createElement(Gf,{onResize:ue,disabled:!Ut},Mt)),Mt}R(Npe,"Overflow");var od=E.forwardRef(Npe);od.displayName="Overflow";od.Item=Tpe;od.RESPONSIVE=Lpe;od.INVALIDATE=xpe;function kpe(t){var e=t.prefixCls,n=t.value,r=t.onRemove,i=t.removeIcon,a=i===void 0?"×":i,o=t.formatDate,s=t.disabled,l=t.maxTagCount,u=t.placeholder,c="".concat(e,"-selector"),d="".concat(e,"-selection"),h="".concat(d,"-overflow");function f(p,v){return E.createElement("span",{className:wn("".concat(d,"-item")),title:typeof p=="string"?p:null},E.createElement("span",{className:"".concat(d,"-item-content")},p),!s&&v&&E.createElement("span",{onMouseDown:R(function(_){_.preventDefault()},"onMouseDown"),onClick:v,className:"".concat(d,"-item-remove")},a))}R(f,"renderSelector");function m(p){var v=o(p),_=R(function(C){C&&C.stopPropagation(),r(p)},"onClose");return f(v,_)}R(m,"renderItem");function g(p){var v="+ ".concat(p.length," ...");return f(v)}return R(g,"renderRest"),E.createElement("div",{className:c},E.createElement(od,{prefixCls:h,data:n,renderItem:m,renderRest:g,itemKey:R(function(p){return o(p)},"itemKey"),maxCount:l}),!n.length&&E.createElement("span",{className:"".concat(e,"-selection-placeholder")},u))}R(kpe,"MultipleDates");var Dit=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Fpe(t,e){t.id;var n=t.open,r=t.clearIcon,i=t.suffixIcon;t.activeHelp,t.allHelp;var a=t.focused;t.onFocus,t.onBlur,t.onKeyDown;var o=t.locale,s=t.generateConfig,l=t.placeholder,u=t.className,c=t.style,d=t.onClick,h=t.onClear,f=t.internalPicker,m=t.value,g=t.onChange,p=t.onSubmit;t.onInputChange;var v=t.multiple,_=t.maxTagCount;t.format,t.maskFormat,t.preserveInvalidOnBlur,t.onInvalid;var C=t.disabled,S=t.invalid;t.inputReadOnly;var b=t.direction;t.onOpenChange;var y=t.onMouseDown;t.required,t["aria-required"];var A=t.autoFocus,w=t.removeIcon,P=Ka(t,Dit),M=b==="rtl",L=E.useContext(Qf),k=L.prefixCls,O=E.useRef(),$=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:O.current,focus:R(function(te){var Y;(Y=$.current)===null||Y===void 0||Y.focus(te)},"focus"),blur:R(function(){var te;(te=$.current)===null||te===void 0||te.blur()},"blur")}});var B=wpe(P),V=R(function(te){g([te])},"onSingleChange2"),X=R(function(te){var Y=m.filter(function(ae){return ae&&!mu(s,o,ae,te,f)});g(Y),n||p()},"onMultipleRemove2"),z=Ape(Dt(Dt({},t),{},{onChange:V}),function(te){var Y=te.valueTexts;return{value:Y[0]||"",active:a}}),F=Pt(z,2),H=F[0],W=F[1],K=!!(r&&m.length&&!C),G=v?E.createElement(E.Fragment,null,E.createElement(kpe,{prefixCls:k,value:m,onRemove:X,formatDate:W,maxTagCount:_,disabled:C,removeIcon:w,placeholder:l}),E.createElement("input",{className:"".concat(k,"-multiple-input"),value:m.map(W).join(","),ref:$,readOnly:!0,autoFocus:A}),E.createElement(JM,{type:"suffix",icon:i}),K&&E.createElement(u$,{icon:r,onClear:h})):E.createElement(Sit,fr({ref:$},H(),{autoFocus:A,suffixIcon:i,clearIcon:K&&E.createElement(u$,{icon:r,onClear:h}),showActiveCls:!1}));return E.createElement("div",fr({},B,{className:wn(k,pn(pn(pn(pn(pn({},"".concat(k,"-multiple"),v),"".concat(k,"-focused"),a),"".concat(k,"-disabled"),C),"".concat(k,"-invalid"),S),"".concat(k,"-rtl"),M),u),style:c,ref:O,onClick:d,onMouseDown:R(function(te){var Y,ae=te.target;ae!==((Y=$.current)===null||Y===void 0?void 0:Y.inputElement)&&te.preventDefault(),y==null||y(te)},"onMouseDown")}),G)}R(Fpe,"SingleSelector$1");var Iit=E.forwardRef(Fpe);function Vpe(t,e){var n=Jge(t),r=Pt(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],u=r[5],c=i,d=c.prefixCls,h=c.styles,f=c.classNames,m=c.order,g=c.defaultValue,p=c.value,v=c.needConfirm,_=c.onChange,C=c.onKeyDown,S=c.disabled,b=c.disabledDate,y=c.minDate,A=c.maxDate,w=c.defaultOpen,P=c.open,M=c.onOpenChange,L=c.locale,k=c.generateConfig,O=c.picker,$=c.showNow,B=c.showToday,V=c.showTime,X=c.mode,z=c.onPanelChange,F=c.onCalendarChange,H=c.onOk,W=c.multiple,K=c.defaultPickerValue,G=c.pickerValue,te=c.onPickerValueChange,Y=c.inputReadOnly,ae=c.suffixIcon,ie=c.removeIcon,ne=c.onFocus,de=c.onBlur,_e=c.presets,Pe=c.components,De=c.cellRender,Ee=c.dateRender,ye=c.monthCellRender,Ve=c.onClick,ke=npe(e);function Ke(dt){return dt===null?null:W?dt:dt[0]}R(Ke,"pickerParam");var $e=SK(k,L,a),Fe=tpe(P,w,[S],M),He=Pt(Fe,2),ct=He[0],_t=He[1],Ye=R(function(dt,fn,sr){if(F){var Wr=Dt({},sr);delete Wr.range,F(Ke(dt),Ke(fn),Wr)}},"onInternalCalendarChange2"),Ot=R(function(dt){H==null||H(Ke(dt))},"onInternalOk2"),An=lpe(k,L,s,!1,m,g,p,Ye,Ot),Ut=Pt(An,5),Jt=Ut[0],dn=Ut[1],Sn=Ut[2],hn=Ut[3],tr=Ut[4],en=Sn(),bt=ipe([S]),ue=Pt(bt,4),ce=ue[0],pe=ue[1],Ae=ue[2],je=ue[3],tt=R(function(dt){pe(!0),ne==null||ne(dt,{})},"onSharedFocus2"),Qe=R(function(dt){pe(!1),de==null||de(dt,{})},"onSharedBlur2"),nt=Ho(O,{value:X}),we=Pt(nt,2),Ze=we[0],ht=we[1],pt=Ze==="date"&&V?"datetime":Ze,Mt=cpe(O,Ze,$,B),xt=_&&function(dt,fn){_(Ke(dt),Ke(fn))},st=upe(Dt(Dt({},i),{},{onChange:xt}),Jt,dn,Sn,hn,[],s,ce,ct,u),Be=Pt(st,2),vt=Be[1],qt=jge(en,u),Lt=Pt(qt,2),zt=Lt[0],Yt=Lt[1],un=E.useMemo(function(){return zt.some(function(dt){return dt})},[zt]),ir=R(function(dt,fn){if(te){var sr=Dt(Dt({},fn),{},{mode:fn.mode[0]});delete sr.range,te(dt[0],sr)}},"onInternalPickerValueChange2"),jr=ope(k,L,en,[Ze],ct,je,a,!1,K,G,Fp(V==null?void 0:V.defaultOpenValue),ir,y,A),ln=Pt(jr,2),Nr=ln[0],mn=ln[1],rn=Ji(function(dt,fn,sr){if(ht(fn),z&&sr!==!1){var Wr=dt||en[en.length-1];z(Wr,fn)}}),En=R(function(){vt(Sn()),_t(!1,{force:!0})},"triggerConfirm2"),Ft=R(function(dt){!S&&!ke.current.nativeElement.contains(document.activeElement)&&ke.current.focus(),_t(!0),Ve==null||Ve(dt)},"onSelectorClick2"),$r=R(function(){vt(null),_t(!1,{force:!0})},"onSelectorClear2"),br=E.useState(null),Rn=Pt(br,2),Qn=Rn[0],vr=Rn[1],gi=E.useState(null),pi=Pt(gi,2),vi=pi[0],qi=pi[1],Yi=E.useMemo(function(){var dt=[vi].concat(Zi(en)).filter(function(fn){return fn});return W?dt:dt.slice(0,1)},[en,vi,W]),is=E.useMemo(function(){return!W&&vi?[vi]:en.filter(function(dt){return dt})},[en,vi,W]);E.useEffect(function(){ct||qi(null)},[ct]);var Do=rpe(_e),oo=R(function(dt){qi(dt),vr("preset")},"onPresetHover2"),Ss=R(function(dt){var fn=W?$e(Sn(),dt):[dt],sr=vt(fn);sr&&!W&&_t(!1,{force:!0})},"onPresetSubmit2"),po=R(function(dt){Ss(dt)},"onNow2"),vo=R(function(dt){qi(dt),vr("cell")},"onPanelHover2"),ll=R(function(dt){_t(!0),tt(dt)},"onPanelFocus2"),Jl=R(function(dt){Ae("panel");var fn=W?$e(Sn(),dt):[dt];hn(fn),!v&&!o&&a===pt&&En()},"onPanelSelect2"),ve=R(function(){_t(!1)},"onPopupClose2"),Me=lK(De,Ee,ye),Te=E.useMemo(function(){var dt=yf(i,!1),fn=kp(i,[].concat(Zi(Object.keys(dt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Dt(Dt({},fn),{},{multiple:i.multiple})},[i]),ot=E.createElement(Rpe,fr({},Te,{showNow:Mt,showTime:V,disabledDate:b,onFocus:ll,onBlur:Qe,picker:O,mode:Ze,internalMode:pt,onPanelChange:rn,format:l,value:en,isInvalid:u,onChange:null,onSelect:Jl,pickerValue:Nr,defaultOpenValue:V==null?void 0:V.defaultOpenValue,onPickerValueChange:mn,hoverValue:Yi,onHover:vo,needConfirm:v,onSubmit:En,onOk:tr,presets:Do,onPresetHover:oo,onPresetSubmit:Ss,onNow:po,cellRender:Me})),Ge=R(function(dt){hn(dt)},"onSelectorChange2"),Ue=R(function(){Ae("input")},"onSelectorInputChange2"),rt=R(function(dt){Ae("input"),_t(!0,{inherit:!0}),tt(dt)},"onSelectorFocus2"),yt=R(function(dt){_t(!1),Qe(dt)},"onSelectorBlur2"),Rt=R(function(dt,fn){dt.key==="Tab"&&En(),C==null||C(dt,fn)},"onSelectorKeyDown2"),Nt=E.useMemo(function(){return{prefixCls:d,locale:L,generateConfig:k,button:Pe.button,input:Pe.input}},[d,L,k,Pe.button,Pe.input]);return da(function(){ct&&je!==void 0&&rn(null,O,!1)},[ct,je,O]),da(function(){var dt=Ae();!ct&&dt==="input"&&(_t(!1),En()),!ct&&o&&!v&&dt==="panel"&&(_t(!0),En())},[ct]),E.createElement(Qf.Provider,{value:Nt},E.createElement(Uge,fr({},Hge(i),{popupElement:ot,popupStyle:h.popup,popupClassName:f.popup,visible:ct,onClose:ve}),E.createElement(Iit,fr({},i,{ref:ke,suffixIcon:ae,removeIcon:ie,activeHelp:!!vi,allHelp:!!vi&&Qn==="preset",focused:ce,onFocus:rt,onBlur:yt,onKeyDown:Rt,onSubmit:En,value:is,maskFormat:l,onChange:Ge,onInputChange:Ue,internalPicker:a,format:s,inputReadOnly:Y,disabled:S,open:ct,onOpenChange:_t,onClick:Ft,onClear:$r,invalid:un,onInvalid:R(function(dt){Yt(dt,0)},"onInvalid")}))))}R(Vpe,"Picker");var Pit=E.forwardRef(Vpe),yK={},Bpe={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}R(e,"_interopRequireDefault"),t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Bpe);var Mit=Bpe.exports,C1={};Object.defineProperty(C1,"__esModule",{value:!0});C1.call=eT;C1.default=void 0;C1.note=RK;C1.noteOnce=wK;C1.preMessage=void 0;C1.resetWarned=AK;C1.warning=EK;C1.warningOnce=N7;var c$={},Tit=C1.preMessage=R(function(t){},"preMessage2");function EK(t,e){}R(EK,"warning");function RK(t,e){}R(RK,"note");function AK(){c$={}}R(AK,"resetWarned");function eT(t,e,n){!e&&!c$[n]&&(t(!1,n),c$[n]=!0)}R(eT,"call");function N7(t,e){eT(EK,t,e)}R(N7,"warningOnce");function wK(t,e){eT(RK,t,e)}R(wK,"noteOnce");N7.preMessage=Tit;N7.resetWarned=AK;N7.noteOnce=wK;C1.default=N7;var Hp=Mit.default;Object.defineProperty(yK,"__esModule",{value:!0});var DK=yK.default=void 0,uu=Hp(gc),Lit=C1,xit=Hp(Ome),Oit=Hp(Lme),Nit=Hp(kme),kit=Hp(Vme),Fit=Hp(Ime),Vit=Hp(Mme);uu.default.extend(Vit.default);uu.default.extend(Fit.default);uu.default.extend(xit.default);uu.default.extend(Oit.default);uu.default.extend(Nit.default);uu.default.extend(kit.default);uu.default.extend(function(t,e){var n=e.prototype,r=n.format;n.format=R(function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)},"f")});var Bit={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},_2=R(function(t){var e=Bit[t];return e||t.split("_")[0]},"parseLocale"),Soe=R(function(){(0,Lit.noteOnce)(!1,"Not match any format. Please help to fire a issue about this.")},"parseNoMatchNotice"),Uit={getNow:R(function(){return(0,uu.default)()},"getNow"),getFixedDate:R(function(t){return(0,uu.default)(t,["YYYY-M-DD","YYYY-MM-DD"])},"getFixedDate"),getEndDate:R(function(t){return t.endOf("month")},"getEndDate"),getWeekDay:R(function(t){var e=t.locale("en");return e.weekday()+e.localeData().firstDayOfWeek()},"getWeekDay"),getYear:R(function(t){return t.year()},"getYear"),getMonth:R(function(t){return t.month()},"getMonth"),getDate:R(function(t){return t.date()},"getDate"),getHour:R(function(t){return t.hour()},"getHour"),getMinute:R(function(t){return t.minute()},"getMinute"),getSecond:R(function(t){return t.second()},"getSecond"),getMillisecond:R(function(t){return t.millisecond()},"getMillisecond"),addYear:R(function(t,e){return t.add(e,"year")},"addYear"),addMonth:R(function(t,e){return t.add(e,"month")},"addMonth"),addDate:R(function(t,e){return t.add(e,"day")},"addDate"),setYear:R(function(t,e){return t.year(e)},"setYear"),setMonth:R(function(t,e){return t.month(e)},"setMonth"),setDate:R(function(t,e){return t.date(e)},"setDate"),setHour:R(function(t,e){return t.hour(e)},"setHour"),setMinute:R(function(t,e){return t.minute(e)},"setMinute"),setSecond:R(function(t,e){return t.second(e)},"setSecond"),setMillisecond:R(function(t,e){return t.millisecond(e)},"setMillisecond"),isAfter:R(function(t,e){return t.isAfter(e)},"isAfter"),isValidate:R(function(t){return t.isValid()},"isValidate"),locale:{getWeekFirstDay:R(function(t){return(0,uu.default)().locale(_2(t)).localeData().firstDayOfWeek()},"getWeekFirstDay"),getWeekFirstDate:R(function(t,e){return e.locale(_2(t)).weekday(0)},"getWeekFirstDate"),getWeek:R(function(t,e){return e.locale(_2(t)).week()},"getWeek"),getShortWeekDays:R(function(t){return(0,uu.default)().locale(_2(t)).localeData().weekdaysMin()},"getShortWeekDays"),getShortMonths:R(function(t){return(0,uu.default)().locale(_2(t)).localeData().monthsShort()},"getShortMonths"),format:R(function(t,e,n){return e.locale(_2(t)).format(n)},"format"),parse:R(function(t,e,n){for(var r=_2(t),i=0;i<n.length;i+=1){var a=n[i],o=e;if(a.includes("wo")||a.includes("Wo")){for(var s=o.split("-")[0],l=o.split("-")[1],u=(0,uu.default)(s,"YYYY").startOf("year").locale(r),c=0;c<=52;c+=1){var d=u.add(c,"week");if(d.format("Wo")===l)return d}return Soe(),null}var h=(0,uu.default)(o,a,!0).locale(r);if(h.isValid())return h}return e&&Soe(),null},"parse")}};DK=yK.default=Uit;const Hit="univer-date-picker",jit="univer-date-picker-suffix-icon",d$={datePicker:Hit,datePickerSuffixIcon:jit};function $it(t){const{value:e,onChange:n,...r}=t,{locale:i}=E.useContext(Nu);function a(o,s){!Array.isArray(o)&&!Array.isArray(s)&&n(o,s)}return R(a,"handleChange"),Re.createElement(Pit,{...r,value:e,prefixCls:d$.datePicker,generateConfig:DK,locale:i==null?void 0:i.Picker,suffixIcon:Re.createElement(jme,{className:d$.datePickerSuffixIcon}),onChange:a})}R($it,"DatePicker");const Wit=R(t=>{const{locale:e}=E.useContext(Nu);return Re.createElement(TE,{...t,generateConfig:DK,prefixCls:d$.datePicker,locale:e==null?void 0:e.Picker})},"DatePanel");var zit=Fr.ESC,qit=Fr.TAB;function Upe(t){var e=t.visible,n=t.triggerRef,r=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,o=E.useRef(!1),s=R(function(){if(e){var c,d;(c=n.current)===null||c===void 0||(d=c.focus)===null||d===void 0||d.call(c),r==null||r(!1)}},"handleCloseMenuAndReturnFocus"),l=R(function(){var c;return(c=a.current)!==null&&c!==void 0&&c.focus?(a.current.focus(),o.current=!0,!0):!1},"focusMenu"),u=R(function(c){switch(c.keyCode){case zit:s();break;case qit:{var d=!1;o.current||(d=l()),d?c.preventDefault():s();break}}},"handleKeyDown");E.useEffect(function(){return e?(window.addEventListener("keydown",u),i&&Wi(l,3),function(){window.removeEventListener("keydown",u),o.current=!1}):function(){o.current=!1}},[e])}R(Upe,"useAccessibility$1");var Yit=E.forwardRef(function(t,e){var n=t.overlay,r=t.arrow,i=t.prefixCls,a=E.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=i2(e,a==null?void 0:a.ref);return Re.createElement(Re.Fragment,null,r&&Re.createElement("div",{className:"".concat(i,"-arrow")}),Re.cloneElement(a,{ref:L7(a)?o:void 0}))}),b3={adjustX:1,adjustY:1},y3=[0,0],Xit={topLeft:{points:["bl","tl"],overflow:b3,offset:[0,-4],targetOffset:y3},top:{points:["bc","tc"],overflow:b3,offset:[0,-4],targetOffset:y3},topRight:{points:["br","tr"],overflow:b3,offset:[0,-4],targetOffset:y3},bottomLeft:{points:["tl","bl"],overflow:b3,offset:[0,4],targetOffset:y3},bottom:{points:["tc","bc"],overflow:b3,offset:[0,4],targetOffset:y3},bottomRight:{points:["tr","br"],overflow:b3,offset:[0,4],targetOffset:y3}},Git=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Hpe(t,e){var n,r=t.arrow,i=r===void 0?!1:r,a=t.prefixCls,o=a===void 0?"rc-dropdown":a,s=t.transitionName,l=t.animation,u=t.align,c=t.placement,d=c===void 0?"bottomLeft":c,h=t.placements,f=h===void 0?Xit:h,m=t.getPopupContainer,g=t.showAction,p=t.hideAction,v=t.overlayClassName,_=t.overlayStyle,C=t.visible,S=t.trigger,b=S===void 0?["hover"]:S,y=t.autoFocus,A=t.overlay,w=t.children,P=t.onVisibleChange,M=sc(t,Git),L=Re.useState(),k=Ur(L,2),O=k[0],$=k[1],B="visible"in t?C:O,V=Re.useRef(null),X=Re.useRef(null),z=Re.useRef(null);Re.useImperativeHandle(e,function(){return V.current});var F=R(function(ie){$(ie),P==null||P(ie)},"handleVisibleChange");Upe({visible:B,triggerRef:z,onVisibleChange:F,autoFocus:y,overlayRef:X});var H=R(function(ie){var ne=t.onOverlayClick;$(!1),ne&&ne(ie)},"onClick"),W=R(function(){return Re.createElement(Yit,{ref:X,overlay:A,prefixCls:o,arrow:i})},"getMenuElement"),K=R(function(){return typeof A=="function"?W:W()},"getMenuElementOrLambda"),G=R(function(){var ie=t.minOverlayWidthMatchTrigger,ne=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?ie:!ne},"getMinOverlayWidthMatchTrigger"),te=R(function(){var ie=t.openClassName;return ie!==void 0?ie:"".concat(o,"-open")},"getOpenClassName"),Y=Re.cloneElement(w,{className:wn((n=w.props)===null||n===void 0?void 0:n.className,B&&te()),ref:L7(w)?i2(z,w.ref):void 0}),ae=p;return!ae&&b.indexOf("contextMenu")!==-1&&(ae=["click"]),Re.createElement(zC,bo({builtinPlacements:f},M,{prefixCls:o,ref:V,popupClassName:wn(v,ki({},"".concat(o,"-show-arrow"),i)),popupStyle:_,action:b,showAction:g,hideAction:ae,popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:B,stretch:G()?"minWidth":"",popup:K(),onPopupVisibleChange:F,onPopupClick:H,getPopupContainer:m}),Y)}R(Hpe,"Dropdown$1");const Qit=Re.forwardRef(Hpe),Kit="univer-dropdown",Zit={dropdown:Kit};function Ef(t){const{className:e,placement:n,children:r,overlay:i,alignPoint:a=!1,align:o,disabled:s,onVisibleChange:l}=t,u=s?[]:t.trigger||["click"],{mountContainer:c}=E.useContext(Nu);return c&&Re.createElement(Qit,{...t,overlayClassName:e,prefixCls:Zit.dropdown,getPopupContainer:R(()=>c,"getPopupContainer"),trigger:u,animation:"slide-up",placement:n,overlay:i,alignPoint:a,align:o,onVisibleChange:l},r)}R(Ef,"Dropdown");const Jit="univer-form-layout",eat="univer-form-layout-label",tat="univer-form-layout-desc",nat="univer-form-layout-content",rat="univer-form-layout-content-error",iat="univer-form-layout-error",E3={formLayout:Jit,formLayoutLabel:eat,formLayoutDesc:tat,formLayoutContent:nat,formLayoutContentError:rat,formLayoutError:iat},yo=R(t=>{const{label:e,desc:n,children:r,style:i,className:a,error:o,contentStyle:s}=t;return Re.createElement("div",{className:hr(E3.formLayout,a),style:i},e&&Re.createElement("div",{className:E3.formLayoutLabel},e),n&&Re.createElement("div",{className:E3.formLayoutDesc},n),Re.createElement("div",{style:s,className:hr(E3.formLayoutContent,o?E3.formLayoutContentError:"")},r,o?Re.createElement("div",{className:E3.formLayoutError},o):null))},"FormLayout");function jpe(t){return!!(t.addonBefore||t.addonAfter)}R(jpe,"hasAddon");function $pe(t){return!!(t.prefix||t.suffix||t.allowClear)}R($pe,"hasPrefixSuffix");function h$(t,e,n){var r=e.cloneNode(!0),i=Object.create(t,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof e.selectionStart=="number"&&typeof e.selectionEnd=="number"&&(r.selectionStart=e.selectionStart,r.selectionEnd=e.selectionEnd),r.setSelectionRange=function(){e.setSelectionRange.apply(e,arguments)},i}R(h$,"cloneEvent");function Gv(t,e,n,r){if(n){var i=e;if(e.type==="click"){i=h$(e,t,""),n(i);return}if(t.type!=="file"&&r!==void 0){i=h$(e,t,r),n(i);return}n(i)}}R(Gv,"resolveOnChange");function IK(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var i=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(i,i);break;default:t.setSelectionRange(0,i)}}}}R(IK,"triggerFocus");var PK=Re.forwardRef(function(t,e){var n,r,i=t.inputElement,a=t.children,o=t.prefixCls,s=t.prefix,l=t.suffix,u=t.addonBefore,c=t.addonAfter,d=t.className,h=t.style,f=t.disabled,m=t.readOnly,g=t.focused,p=t.triggerFocus,v=t.allowClear,_=t.value,C=t.handleReset,S=t.hidden,b=t.classes,y=t.classNames,A=t.dataAttrs,w=t.styles,P=t.components,M=t.onClear,L=a??i,k=(P==null?void 0:P.affixWrapper)||"span",O=(P==null?void 0:P.groupWrapper)||"span",$=(P==null?void 0:P.wrapper)||"span",B=(P==null?void 0:P.groupAddon)||"span",V=E.useRef(null),X=R(function(Ee){var ye;(ye=V.current)!==null&&ye!==void 0&&ye.contains(Ee.target)&&(p==null||p())},"onInputClick"),z=$pe(t),F=E.cloneElement(L,{value:_,className:wn(L.props.className,!z&&(y==null?void 0:y.variant))||null}),H=E.useRef(null);if(Re.useImperativeHandle(e,function(){return{nativeElement:H.current||V.current}}),z){var W=null;if(v){var K=!f&&!m&&_,G="".concat(o,"-clear-icon"),te=lh(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";W=Re.createElement("span",{onClick:R(function(Ee){C==null||C(Ee),M==null||M()},"onClick"),onMouseDown:R(function(Ee){return Ee.preventDefault()},"onMouseDown"),className:wn(G,Va(Va({},"".concat(G,"-hidden"),!K),"".concat(G,"-has-suffix"),!!l)),role:"button",tabIndex:-1},te)}var Y="".concat(o,"-affix-wrapper"),ae=wn(Y,Va(Va(Va(Va(Va({},"".concat(o,"-disabled"),f),"".concat(Y,"-disabled"),f),"".concat(Y,"-focused"),g),"".concat(Y,"-readonly"),m),"".concat(Y,"-input-with-clear-btn"),l&&v&&_),b==null?void 0:b.affixWrapper,y==null?void 0:y.affixWrapper,y==null?void 0:y.variant),ie=(l||v)&&Re.createElement("span",{className:wn("".concat(o,"-suffix"),y==null?void 0:y.suffix),style:w==null?void 0:w.suffix},W,l);F=Re.createElement(k,lf({className:ae,style:w==null?void 0:w.affixWrapper,onClick:X},A==null?void 0:A.affixWrapper,{ref:V}),s&&Re.createElement("span",{className:wn("".concat(o,"-prefix"),y==null?void 0:y.prefix),style:w==null?void 0:w.prefix},s),F,ie)}if(jpe(t)){var ne="".concat(o,"-group"),de="".concat(ne,"-addon"),_e="".concat(ne,"-wrapper"),Pe=wn("".concat(o,"-wrapper"),ne,b==null?void 0:b.wrapper,y==null?void 0:y.wrapper),De=wn(_e,Va({},"".concat(_e,"-disabled"),f),b==null?void 0:b.group,y==null?void 0:y.groupWrapper);F=Re.createElement(O,{className:De,ref:H},Re.createElement($,{className:Pe},u&&Re.createElement(B,{className:de},u),F,c&&Re.createElement(B,{className:de},c)))}return Re.cloneElement(F,{className:wn((n=F.props)===null||n===void 0?void 0:n.className,d)||null,style:Ys(Ys({},(r=F.props)===null||r===void 0?void 0:r.style),h),hidden:S})});function Wpe(t){if(Array.isArray(t))return Fw(t)}R(Wpe,"_arrayWithoutHoles$2");function zpe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}R(zpe,"_iterableToArray$2");function qpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}R(qpe,"_nonIterableSpread$2");function Ype(t){return Wpe(t)||zpe(t)||SQ(t)||qpe()}R(Ype,"_toConsumableArray$3");var aat=["show"];function MK(t,e){return E.useMemo(function(){var n={};e&&(n.show=lh(e)==="object"&&e.formatter?e.formatter:!!e),n=Ys(Ys({},n),t);var r=n,i=r.show,a=FC(r,aat);return Ys(Ys({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[t,e])}R(MK,"useCount");var oat=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],sat=E.forwardRef(function(t,e){var n=t.autoComplete,r=t.onChange,i=t.onFocus,a=t.onBlur,o=t.onPressEnter,s=t.onKeyDown,l=t.onKeyUp,u=t.prefixCls,c=u===void 0?"rc-input":u,d=t.disabled,h=t.htmlSize,f=t.className,m=t.maxLength,g=t.suffix,p=t.showCount,v=t.count,_=t.type,C=_===void 0?"text":_,S=t.classes,b=t.classNames,y=t.styles,A=t.onCompositionStart,w=t.onCompositionEnd,P=FC(t,oat),M=E.useState(!1),L=Qd(M,2),k=L[0],O=L[1],$=E.useRef(!1),B=E.useRef(!1),V=E.useRef(null),X=E.useRef(null),z=R(function(Ye){V.current&&IK(V.current,Ye)},"focus"),F=Ho(t.defaultValue,{value:t.value}),H=Qd(F,2),W=H[0],K=H[1],G=W==null?"":String(W),te=E.useState(null),Y=Qd(te,2),ae=Y[0],ie=Y[1],ne=MK(v,p),de=ne.max||m,_e=ne.strategy(G),Pe=!!de&&_e>de;E.useImperativeHandle(e,function(){var Ye;return{focus:z,blur:R(function(){var Ot;(Ot=V.current)===null||Ot===void 0||Ot.blur()},"blur"),setSelectionRange:R(function(Ot,An,Ut){var Jt;(Jt=V.current)===null||Jt===void 0||Jt.setSelectionRange(Ot,An,Ut)},"setSelectionRange"),select:R(function(){var Ot;(Ot=V.current)===null||Ot===void 0||Ot.select()},"select"),input:V.current,nativeElement:((Ye=X.current)===null||Ye===void 0?void 0:Ye.nativeElement)||V.current}}),E.useEffect(function(){O(function(Ye){return Ye&&d?!1:Ye})},[d]);var De=R(function(Ye,Ot,An){var Ut=Ot;if(!$.current&&ne.exceedFormatter&&ne.max&&ne.strategy(Ot)>ne.max){if(Ut=ne.exceedFormatter(Ot,{max:ne.max}),Ot!==Ut){var Jt,dn;ie([((Jt=V.current)===null||Jt===void 0?void 0:Jt.selectionStart)||0,((dn=V.current)===null||dn===void 0?void 0:dn.selectionEnd)||0])}}else if(An.source==="compositionEnd")return;K(Ut),V.current&&Gv(V.current,Ye,r,Ut)},"triggerChange");E.useEffect(function(){if(ae){var Ye;(Ye=V.current)===null||Ye===void 0||Ye.setSelectionRange.apply(Ye,Ype(ae))}},[ae]);var Ee=R(function(Ye){De(Ye,Ye.target.value,{source:"change"})},"onInternalChange"),ye=R(function(Ye){$.current=!1,De(Ye,Ye.currentTarget.value,{source:"compositionEnd"}),w==null||w(Ye)},"onInternalCompositionEnd"),Ve=R(function(Ye){o&&Ye.key==="Enter"&&!B.current&&(B.current=!0,o(Ye)),s==null||s(Ye)},"handleKeyDown"),ke=R(function(Ye){Ye.key==="Enter"&&(B.current=!1),l==null||l(Ye)},"handleKeyUp"),Ke=R(function(Ye){O(!0),i==null||i(Ye)},"handleFocus"),$e=R(function(Ye){O(!1),a==null||a(Ye)},"handleBlur"),Fe=R(function(Ye){K(""),z(),V.current&&Gv(V.current,Ye,r)},"handleReset"),He=Pe&&"".concat(c,"-out-of-range"),ct=R(function(){var Ye=kp(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Re.createElement("input",lf({autoComplete:n},Ye,{onChange:Ee,onFocus:Ke,onBlur:$e,onKeyDown:Ve,onKeyUp:ke,className:wn(c,Va({},"".concat(c,"-disabled"),d),b==null?void 0:b.input),style:y==null?void 0:y.input,ref:V,size:h,type:C,onCompositionStart:R(function(Ot){$.current=!0,A==null||A(Ot)},"onCompositionStart"),onCompositionEnd:ye}))},"getInputElement"),_t=R(function(){var Ye=Number(de)>0;if(g||ne.show){var Ot=ne.showFormatter?ne.showFormatter({value:G,count:_e,maxLength:de}):"".concat(_e).concat(Ye?" / ".concat(de):"");return Re.createElement(Re.Fragment,null,ne.show&&Re.createElement("span",{className:wn("".concat(c,"-show-count-suffix"),Va({},"".concat(c,"-show-count-has-suffix"),!!g),b==null?void 0:b.count),style:Ys({},y==null?void 0:y.count)},Ot),g)}return null},"getSuffix");return Re.createElement(PK,lf({},P,{prefixCls:c,className:wn(f,He),handleReset:Fe,value:G,focused:k,triggerFocus:z,suffix:_t(),disabled:d,classes:S,classNames:b,styles:y}),ct())});const lat="univer-input",uat="univer-input-affix-wrapper-small",cat="univer-input-affix-wrapper-middle",dat="univer-input-affix-wrapper-large",hat="univer-input-not-allow-clear",fat="univer-input-slot-container",mat="univer-input-slot",hg={input:lat,inputAffixWrapperSmall:uat,inputAffixWrapperMiddle:cat,inputAffixWrapperLarge:dat,inputNotAllowClear:hat,inputSlotContainer:fat,inputSlot:mat};function Qs(t){const{affixWrapperStyle:e,autoFocus:n=!1,type:r="text",className:i,placeholder:a,value:o,size:s="middle",allowClear:l,disabled:u=!1,onClick:c,onKeyDown:d,onChange:h,...f}=t;function m(p){const{value:v}=p.target;h==null||h(v)}R(m,"handleChange");const g=hr(i,{[hg.inputAffixWrapperSmall]:s==="small",[hg.inputAffixWrapperMiddle]:s==="middle",[hg.inputAffixWrapperLarge]:s==="large",[hg.inputNotAllowClear]:!l},i);return Re.createElement(sat,{prefixCls:hg.input,classNames:{affixWrapper:g},styles:{affixWrapper:e},autoFocus:n,type:r,placeholder:a,value:o,disabled:u,onClick:c,onKeyDown:d,onChange:m,allowClear:{clearIcon:l?Re.createElement(vQ,null):Re.createElement(Re.Fragment,null)},...f})}R(Qs,"Input$1");function f$(t){switch(t){case"small":return 6;case"middle":return 6;case"large":return 8;default:return 6}}R(f$,"getPaddingRightBySize");function gat(t){const{slot:e,...n}=t,r=E.useRef(null),[i,a]=Re.useState(f$(t.size));return E.useEffect(()=>{let o;return r.current&&(o=new ResizeObserver(()=>{const s=f$(t.size)*2+r.current.offsetWidth;a(s)}),o.observe(r.current)),()=>{o==null||o.disconnect()}},[e,r.current,t.size]),Re.createElement("div",{className:hg.inputSlotContainer},Re.createElement(Qs,{...n,affixWrapperStyle:{paddingRight:i}}),Re.createElement("div",{ref:r,className:hg.inputSlot,tabIndex:-1,onPointerDown:R(o=>o.preventDefault(),"onPointerDown")},e))}R(gat,"InputWithSlot");function Kw(){return typeof BigInt=="function"}R(Kw,"supportBigInt");function TK(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}R(TK,"isEmpty");function c0(t){var e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var r=e||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}R(c0,"trimNumber");function tT(t){var e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}R(tT,"isE");function Wm(t){var e=String(t);if(tT(t)){var n=Number(e.slice(e.indexOf("e-")+2)),r=e.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return e.includes(".")&&nT(e)?e.length-e.indexOf(".")-1:0}R(Wm,"getNumberPrecision");function KC(t){var e=String(t);if(tT(t)){if(t>Number.MAX_SAFE_INTEGER)return String(Kw()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(Kw()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(Wm(e))}return c0(e).fullStr}R(KC,"num2str");function nT(t){return typeof t=="number"?!Number.isNaN(t):t?/^\s*-?\d+(\.\d+)?\s*$/.test(t)||/^\s*-?\d+\.\s*$/.test(t)||/^\s*-?\.\d+\s*$/.test(t):!1}R(nT,"validateNumber");var pat=function(){function t(e){if($C(this,t),ki(this,"origin",""),ki(this,"negative",void 0),ki(this,"integer",void 0),ki(this,"decimal",void 0),ki(this,"decimalLen",void 0),ki(this,"empty",void 0),ki(this,"nan",void 0),TK(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var n=e;if(tT(n)&&(n=Number(n)),n=typeof n=="string"?n:KC(n),nT(n)){var r=c0(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var a=i[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return R(t,"BigIntDecimal"),WC(t,[{key:"getMark",value:R(function(){return this.negative?"-":""},"getMark")},{key:"getIntegerStr",value:R(function(){return this.integer.toString()},"getIntegerStr")},{key:"getDecimalStr",value:R(function(){return this.decimal.toString().padStart(this.decimalLen,"0")},"getDecimalStr")},{key:"alignDecimal",value:R(function(e){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(n)},"alignDecimal")},{key:"negate",value:R(function(){var e=new t(this.toString());return e.negative=!e.negative,e},"negate")},{key:"cal",value:R(function(e,n,r){var i=Math.max(this.getDecimalStr().length,e.getDecimalStr().length),a=this.alignDecimal(i),o=e.alignDecimal(i),s=n(a,o).toString(),l=r(i),u=c0(s),c=u.negativeStr,d=u.trimStr,h="".concat(c).concat(d.padStart(l+1,"0"));return new t("".concat(h.slice(0,-l),".").concat(h.slice(-l)))},"cal")},{key:"add",value:R(function(e){if(this.isInvalidate())return new t(e);var n=new t(e);return n.isInvalidate()?this:this.cal(n,function(r,i){return r+i},function(r){return r})},"add")},{key:"multi",value:R(function(e){var n=new t(e);return this.isInvalidate()||n.isInvalidate()?new t(NaN):this.cal(n,function(r,i){return r*i},function(r){return r*2})},"multi")},{key:"isEmpty",value:R(function(){return this.empty},"isEmpty")},{key:"isNaN",value:R(function(){return this.nan},"isNaN")},{key:"isInvalidate",value:R(function(){return this.isEmpty()||this.isNaN()},"isInvalidate")},{key:"equals",value:R(function(e){return this.toString()===(e==null?void 0:e.toString())},"equals")},{key:"lessEquals",value:R(function(e){return this.add(e.negate().toString()).toNumber()<=0},"lessEquals")},{key:"toNumber",value:R(function(){return this.isNaN()?NaN:Number(this.toString())},"toNumber")},{key:"toString",value:R(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e?this.isInvalidate()?"":c0("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin},"toString")}]),t}(),vat=function(){function t(e){if($C(this,t),ki(this,"origin",""),ki(this,"number",void 0),ki(this,"empty",void 0),TK(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}return R(t,"NumberDecimal"),WC(t,[{key:"negate",value:R(function(){return new t(-this.toNumber())},"negate")},{key:"add",value:R(function(e){if(this.isInvalidate())return new t(e);var n=Number(e);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new t(Number.MIN_SAFE_INTEGER);var i=Math.max(Wm(this.number),Wm(n));return new t(r.toFixed(i))},"add")},{key:"multi",value:R(function(e){var n=Number(e);if(this.isInvalidate()||Number.isNaN(n))return new t(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new t(Number.MIN_SAFE_INTEGER);var i=Math.max(Wm(this.number),Wm(n));return new t(r.toFixed(i))},"multi")},{key:"isEmpty",value:R(function(){return this.empty},"isEmpty")},{key:"isNaN",value:R(function(){return Number.isNaN(this.number)},"isNaN")},{key:"isInvalidate",value:R(function(){return this.isEmpty()||this.isNaN()},"isInvalidate")},{key:"equals",value:R(function(e){return this.toNumber()===(e==null?void 0:e.toNumber())},"equals")},{key:"lessEquals",value:R(function(e){return this.add(e.negate().toString()).toNumber()<=0},"lessEquals")},{key:"toNumber",value:R(function(){return this.number},"toNumber")},{key:"toString",value:R(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e?this.isInvalidate()?"":KC(this.number):this.origin},"toString")}]),t}();function Hc(t){return Kw()?new pat(t):new vat(t)}R(Hc,"getMiniDecimal");function C8(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";var i=c0(t),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(e).concat(s),u="".concat(a).concat(o);if(n>=0){var c=Number(s[n]);if(c>=5&&!r){var d=Hc(t).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-c));return C8(d.toString(),e,n,r)}return n===0?u:"".concat(u).concat(e).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?u:"".concat(u).concat(l)}R(C8,"toFixed");function Xpe(t,e){return typeof Proxy<"u"&&t?new Proxy(t,{get:R(function(n,r){if(e[r])return e[r];var i=n[r];return typeof i=="function"?i.bind(n):i},"get")}):t}R(Xpe,"proxyObject");function Gpe(t,e){var n=E.useRef(null);function r(){try{var a=t.selectionStart,o=t.selectionEnd,s=t.value,l=s.substring(0,a),u=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:u}}catch{}}R(r,"recordCursor");function i(){if(t&&n.current&&e)try{var a=t.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,u=o.start,c=a.length;if(a.startsWith(s))c=s.length;else if(a.endsWith(l))c=a.length-n.current.afterTxt.length;else{var d=s[u-1],h=a.indexOf(d,u-1);h!==-1&&(c=h+1)}t.setSelectionRange(c,c)}catch(f){Yf(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}return R(i,"restoreCursor"),[r,i]}R(Gpe,"useCursor");var _at=R(function(){var t=E.useState(!1),e=Ur(t,2),n=e[0],r=e[1];return da(function(){r(iK())},[]),n},"useMobile"),Cat=200,Sat=600;function Qpe(t){var e=t.prefixCls,n=t.upNode,r=t.downNode,i=t.upDisabled,a=t.downDisabled,o=t.onStep,s=E.useRef(),l=E.useRef([]),u=E.useRef();u.current=o;var c=R(function(){clearTimeout(s.current)},"onStopStep"),d=R(function(_,C){_.preventDefault(),c(),u.current(C);function S(){u.current(C),s.current=setTimeout(S,Cat)}R(S,"loopStep"),s.current=setTimeout(S,Sat)},"onStepMouseDown");E.useEffect(function(){return function(){c(),l.current.forEach(function(_){return Wi.cancel(_)})}},[]);var h=_at();if(h)return null;var f="".concat(e,"-handler"),m=wn(f,"".concat(f,"-up"),ki({},"".concat(f,"-up-disabled"),i)),g=wn(f,"".concat(f,"-down"),ki({},"".concat(f,"-down-disabled"),a)),p=R(function(){return l.current.push(Wi(c))},"safeOnStopStep"),v={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return E.createElement("div",{className:"".concat(f,"-wrap")},E.createElement("span",bo({},v,{onMouseDown:R(function(_){d(_,!0)},"onMouseDown"),"aria-label":"Increase Value","aria-disabled":i,className:m}),n||E.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-up-inner")})),E.createElement("span",bo({},v,{onMouseDown:R(function(_){d(_,!1)},"onMouseDown"),"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||E.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}R(Qpe,"StepHandler");function m$(t){var e=typeof t=="number"?KC(t):c0(t).fullStr,n=e.includes(".");return n?c0(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:t+"0"}R(m$,"getDecupleSteps");const bat=R(function(){var t=E.useRef(0),e=R(function(){Wi.cancel(t.current)},"cleanUp");return E.useEffect(function(){return e},[]),function(n){e(),t.current=Wi(function(){n()})}},"useFrame");var yat=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Eat=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],boe=R(function(t,e){return t||e.isEmpty()?e.toString():e.toNumber()},"getDecimalValue2"),yoe=R(function(t){var e=Hc(t);return e.isInvalidate()?null:e},"getDecimalIfValidate2"),Rat=E.forwardRef(function(t,e){var n=t.prefixCls,r=t.className,i=t.style,a=t.min,o=t.max,s=t.step,l=s===void 0?1:s,u=t.defaultValue,c=t.value,d=t.disabled,h=t.readOnly,f=t.upHandler,m=t.downHandler,g=t.keyboard,p=t.changeOnWheel,v=p===void 0?!1:p,_=t.controls,C=_===void 0?!0:_;t.classNames;var S=t.stringMode,b=t.parser,y=t.formatter,A=t.precision,w=t.decimalSeparator,P=t.onChange,M=t.onInput,L=t.onPressEnter,k=t.onStep,O=t.changeOnBlur,$=O===void 0?!0:O,B=t.domRef,V=sc(t,yat),X="".concat(n,"-input"),z=E.useRef(null),F=E.useState(!1),H=Ur(F,2),W=H[0],K=H[1],G=E.useRef(!1),te=E.useRef(!1),Y=E.useRef(!1),ae=E.useState(function(){return Hc(c??u)}),ie=Ur(ae,2),ne=ie[0],de=ie[1];function _e(we){c===void 0&&de(we)}R(_e,"setUncontrolledDecimalValue");var Pe=E.useCallback(function(we,Ze){if(!Ze)return A>=0?A:Math.max(Wm(we),Wm(l))},[A,l]),De=E.useCallback(function(we){var Ze=String(we);if(b)return b(Ze);var ht=Ze;return w&&(ht=ht.replace(w,".")),ht.replace(/[^\w.-]+/g,"")},[b,w]),Ee=E.useRef(""),ye=E.useCallback(function(we,Ze){if(y)return y(we,{userTyping:Ze,input:String(Ee.current)});var ht=typeof we=="number"?KC(we):we;if(!Ze){var pt=Pe(ht,Ze);if(nT(ht)&&(w||pt>=0)){var Mt=w||".";ht=C8(ht,Mt,pt)}}return ht},[y,Pe,w]),Ve=E.useState(function(){var we=u??c;return ne.isInvalidate()&&["string","number"].includes(el(we))?Number.isNaN(we)?"":we:ye(ne.toString(),!1)}),ke=Ur(Ve,2),Ke=ke[0],$e=ke[1];Ee.current=Ke;function Fe(we,Ze){$e(ye(we.isInvalidate()?we.toString(!1):we.toString(!Ze),Ze))}R(Fe,"setInputValue");var He=E.useMemo(function(){return yoe(o)},[o,A]),ct=E.useMemo(function(){return yoe(a)},[a,A]),_t=E.useMemo(function(){return!He||!ne||ne.isInvalidate()?!1:He.lessEquals(ne)},[He,ne]),Ye=E.useMemo(function(){return!ct||!ne||ne.isInvalidate()?!1:ne.lessEquals(ct)},[ct,ne]),Ot=Gpe(z.current,W),An=Ur(Ot,2),Ut=An[0],Jt=An[1],dn=R(function(we){return He&&!we.lessEquals(He)?He:ct&&!ct.lessEquals(we)?ct:null},"getRangeValue2"),Sn=R(function(we){return!dn(we)},"isInRange2"),hn=R(function(we,Ze){var ht=we,pt=Sn(ht)||ht.isEmpty();if(!ht.isEmpty()&&!Ze&&(ht=dn(ht)||ht,pt=!0),!h&&!d&&pt){var Mt=ht.toString(),xt=Pe(Mt,Ze);return xt>=0&&(ht=Hc(C8(Mt,".",xt)),Sn(ht)||(ht=Hc(C8(Mt,".",xt,!0)))),ht.equals(ne)||(_e(ht),P==null||P(ht.isEmpty()?null:boe(S,ht)),c===void 0&&Fe(ht,Ze)),ht}return ne},"triggerValueUpdate2"),tr=bat(),en=R(function we(Ze){if(Ut(),Ee.current=Ze,$e(Ze),!te.current){var ht=De(Ze),pt=Hc(ht);pt.isNaN()||hn(pt,!0)}M==null||M(Ze),tr(function(){var Mt=Ze;b||(Mt=Ze.replace(/。/g,".")),Mt!==Ze&&we(Mt)})},"collectInputValue2"),bt=R(function(){te.current=!0},"onCompositionStart2"),ue=R(function(){te.current=!1,en(z.current.value)},"onCompositionEnd2"),ce=R(function(we){en(we.target.value)},"onInternalInput2"),pe=R(function(we){var Ze;if(!(we&&_t||!we&&Ye)){G.current=!1;var ht=Hc(Y.current?m$(l):l);we||(ht=ht.negate());var pt=(ne||Hc(0)).add(ht.toString()),Mt=hn(pt,!1);k==null||k(boe(S,Mt),{offset:Y.current?m$(l):l,type:we?"up":"down"}),(Ze=z.current)===null||Ze===void 0||Ze.focus()}},"onInternalStep2"),Ae=R(function(we){var Ze=Hc(De(Ke)),ht;Ze.isNaN()?ht=hn(ne,we):ht=hn(Ze,we),c!==void 0?Fe(ne,!1):ht.isNaN()||Fe(ht,!1)},"flushInputValue2"),je=R(function(){G.current=!0},"onBeforeInput2"),tt=R(function(we){var Ze=we.key,ht=we.shiftKey;G.current=!0,Y.current=ht,Ze==="Enter"&&(te.current||(G.current=!1),Ae(!1),L==null||L(we)),g!==!1&&!te.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(pe(Ze==="Up"||Ze==="ArrowUp"),we.preventDefault())},"onKeyDown2"),Qe=R(function(){G.current=!1,Y.current=!1},"onKeyUp2");E.useEffect(function(){if(v&&W){var we=R(function(ht){pe(ht.deltaY<0),ht.preventDefault()},"onWheel2"),Ze=z.current;if(Ze)return Ze.addEventListener("wheel",we,{passive:!1}),function(){return Ze.removeEventListener("wheel",we)}}});var nt=R(function(){$&&Ae(!1),K(!1),G.current=!1},"onBlur2");return z6(function(){ne.isInvalidate()||Fe(ne,!1)},[A,y]),z6(function(){var we=Hc(c);de(we);var Ze=Hc(De(Ke));(!we.equals(Ze)||!G.current||y)&&Fe(we,G.current)},[c]),z6(function(){y&&Jt()},[Ke]),E.createElement("div",{ref:B,className:wn(n,r,ki(ki(ki(ki(ki({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),ne.isNaN()),"".concat(n,"-out-of-range"),!ne.isInvalidate()&&!Sn(ne))),style:i,onFocus:R(function(){K(!0)},"onFocus"),onBlur:nt,onKeyDown:tt,onKeyUp:Qe,onCompositionStart:bt,onCompositionEnd:ue,onBeforeInput:je},C&&E.createElement(Qpe,{prefixCls:n,upNode:f,downNode:m,upDisabled:_t,downDisabled:Ye,onStep:pe}),E.createElement("div",{className:"".concat(X,"-wrap")},E.createElement("input",bo({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:l},V,{ref:i2(z,e),className:X,value:Ke,onChange:ce,disabled:d,readOnly:h}))))}),Aat=E.forwardRef(function(t,e){var n=t.disabled,r=t.style,i=t.prefixCls,a=i===void 0?"rc-input-number":i,o=t.value,s=t.prefix,l=t.suffix,u=t.addonBefore,c=t.addonAfter,d=t.className,h=t.classNames,f=sc(t,Eat),m=E.useRef(null),g=E.useRef(null),p=E.useRef(null),v=R(function(_){p.current&&IK(p.current,_)},"focus2");return E.useImperativeHandle(e,function(){return Xpe(p.current,{nativeElement:m.current.nativeElement||g.current})}),E.createElement(PK,{className:d,triggerFocus:v,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:c,addonBefore:u,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},E.createElement(Rat,bo({prefixCls:a,disabled:n,ref:p,domRef:g,className:h==null?void 0:h.input},f)))});const wat="univer-input-number",Dat={inputNumber:wat},uh=E.forwardRef((t,e)=>{const{className:n,value:r,max:i,min:a,step:o=1,precision:s,disabled:l=!1,controls:u=!0,onClick:c,onKeyDown:d,onChange:h,onPressEnter:f}=t;function m(g){g!==null&&(h==null||h(g))}return R(m,"handleChange"),Re.createElement(Aat,{prefixCls:Dat.inputNumber,className:n,value:r,max:i,min:a,step:o,precision:s,disabled:l,controls:u,onClick:c,onKeyDown:d,onChange:m,onPressEnter:f,ref:e})});function LK(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Yf(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var c=0;c<a.length;c++)if(!i(a[c],o[c],u))return!1;return!0}if(a&&o&&el(a)==="object"&&el(o)==="object"){var d=Object.keys(a);return d.length!==Object.keys(o).length?!1:d.every(function(h){return i(a[h],o[h],u)})}return!1}return R(i,"deepEqual"),i(t,e)}R(LK,"isEqual");var Kpe=E.createContext(null);function xK(t,e){return t===void 0?null:"".concat(t,"-").concat(e)}R(xK,"getMenuId");function OK(t){var e=E.useContext(Kpe);return xK(e,t)}R(OK,"useMenuId");var Iat=["children","locked"],fd=E.createContext(null);function Zpe(t,e){var n=Dt({},t);return Object.keys(e).forEach(function(r){var i=e[r];i!==void 0&&(n[r]=i)}),n}R(Zpe,"mergeProps");function N4(t){var e=t.children,n=t.locked,r=Ka(t,Iat),i=E.useContext(fd),a=xM(function(){return Zpe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!LK(o[1],s[1],!0))});return E.createElement(fd.Provider,{value:a},e)}R(N4,"InheritableContextProvider");var Pat=[],Jpe=E.createContext(null);function ZC(){return E.useContext(Jpe)}R(ZC,"useMeasure");var e3e=E.createContext(Pat);function k7(t){var e=E.useContext(e3e);return E.useMemo(function(){return t!==void 0?[].concat(Zi(e),[t]):e},[e,t])}R(k7,"useFullPath");var t3e=E.createContext(null),NK=E.createContext({});function g$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(aK(t)){var n=t.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||t.isContentEditable||n==="a"&&!!t.getAttribute("href"),i=t.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&t.disabled&&(o=null),o!==null&&(o>=0||e&&o<0)}return!1}R(g$,"focusable");function n3e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=OM(t.querySelectorAll("*")).filter(function(r){return g$(r,e)});return g$(t,e)&&n.unshift(t),n}R(n3e,"getFocusNodeList");var p$=Fr.LEFT,v$=Fr.RIGHT,_$=Fr.UP,LE=Fr.DOWN,xE=Fr.ENTER,r3e=Fr.ESC,V9=Fr.HOME,B9=Fr.END,Eoe=[_$,LE,p$,v$];function i3e(t,e,n,r){var i,a="prev",o="next",s="children",l="parent";if(t==="inline"&&r===xE)return{inlineTrigger:!0};var u=pn(pn({},_$,a),LE,o),c=pn(pn(pn(pn({},p$,n?o:a),v$,n?a:o),LE,s),xE,s),d=pn(pn(pn(pn(pn(pn({},_$,a),LE,o),xE,s),r3e,l),p$,n?s:l),v$,n?l:s),h={inline:u,horizontal:c,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d},f=(i=h["".concat(t).concat(e?"":"Sub")])===null||i===void 0?void 0:i[r];switch(f){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}R(i3e,"getOffset");function a3e(t){for(var e=t;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}R(a3e,"findContainerUL");function o3e(t,e){for(var n=t||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}R(o3e,"getFocusElement");function rT(t,e){var n=n3e(t,!0);return n.filter(function(r){return e.has(r)})}R(rT,"getFocusableElements");function C$(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!t)return null;var i=rT(t,e),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}R(C$,"getNextFocusElement");var S$=R(function(t,e){var n=new Set,r=new Map,i=new Map;return t.forEach(function(a){var o=document.querySelector("[data-menu-id='".concat(xK(e,a),"']"));o&&(n.add(o),i.set(o,a),r.set(a,o))}),{elements:n,key2element:r,element2key:i}},"refreshElements");function s3e(t,e,n,r,i,a,o,s,l,u){var c=E.useRef(),d=E.useRef();d.current=e;var h=R(function(){Wi.cancel(c.current)},"cleanRaf");return E.useEffect(function(){return function(){h()}},[]),function(f){var m=f.which;if([].concat(Eoe,[xE,r3e,V9,B9]).includes(m)){var g=a(),p=S$(g,r),v=p,_=v.elements,C=v.key2element,S=v.element2key,b=C.get(e),y=o3e(b,_),A=S.get(y),w=i3e(t,o(A,!0).length===1,n,m);if(!w&&m!==V9&&m!==B9)return;(Eoe.includes(m)||[V9,B9].includes(m))&&f.preventDefault();var P=R(function(V){if(V){var X=V,z=V.querySelector("a");z!=null&&z.getAttribute("href")&&(X=z);var F=S.get(V);s(F),h(),c.current=Wi(function(){d.current===F&&X.focus()})}},"tryFocus");if([V9,B9].includes(m)||w.sibling||!y){var M;!y||t==="inline"?M=i.current:M=a3e(y);var L,k=rT(M,_);m===V9?L=k[0]:m===B9?L=k[k.length-1]:L=C$(M,_,y,w.offset),P(L)}else if(w.inlineTrigger)l(A);else if(w.offset>0)l(A,!0),h(),c.current=Wi(function(){p=S$(g,r);var V=y.getAttribute("aria-controls"),X=document.getElementById(V),z=C$(X,p.elements);P(z)},5);else if(w.offset<0){var O=o(A,!0),$=O[O.length-2],B=C.get($);l($,!1),P(B)}}u==null||u(f)}}R(s3e,"useAccessibility");function l3e(t){Promise.resolve().then(t)}R(l3e,"nextSlice");var kK="__RC_UTIL_PATH_SPLIT__",Roe=R(function(t){return t.join(kK)},"getPathStr2"),Mat=R(function(t){return t.split(kK)},"getPathKeys2"),b$="rc-menu-more";function u3e(){var t=E.useState({}),e=Pt(t,2),n=e[1],r=E.useRef(new Map),i=E.useRef(new Map),a=E.useState([]),o=Pt(a,2),s=o[0],l=o[1],u=E.useRef(0),c=E.useRef(!1),d=R(function(){c.current||n({})},"forceUpdate2"),h=E.useCallback(function(C,S){var b=Roe(S);i.current.set(b,C),r.current.set(C,b),u.current+=1;var y=u.current;l3e(function(){y===u.current&&d()})},[]),f=E.useCallback(function(C,S){var b=Roe(S);i.current.delete(b),r.current.delete(C)},[]),m=E.useCallback(function(C){l(C)},[]),g=E.useCallback(function(C,S){var b=r.current.get(C)||"",y=Mat(b);return S&&s.includes(y[0])&&y.unshift(b$),y},[s]),p=E.useCallback(function(C,S){return C.filter(function(b){return b!==void 0}).some(function(b){var y=g(b,!0);return y.includes(S)})},[g]),v=R(function(){var C=Zi(r.current.keys());return s.length&&C.push(b$),C},"getKeys2"),_=E.useCallback(function(C){var S="".concat(r.current.get(C)).concat(kK),b=new Set;return Zi(i.current.keys()).forEach(function(y){y.startsWith(S)&&b.add(i.current.get(y))}),b},[]);return E.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:h,unregisterPath:f,refreshOverflowKeys:m,isSubPathKey:p,getKeyPath:g,getKeys:v,getSubPathKeys:_}}R(u3e,"useKeyRecords");function I6(t){var e=E.useRef(t);e.current=t;var n=E.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(a))},[]);return t?n:void 0}R(I6,"useMemoCallback");var Tat=Math.random().toFixed(5).toString().slice(2),Aoe=0;function c3e(t){var e=Ho(t,{value:t}),n=Pt(e,2),r=n[0],i=n[1];return E.useEffect(function(){Aoe+=1;var a="".concat(Tat,"-").concat(Aoe);i("rc-menu-uuid-".concat(a))},[]),r}R(c3e,"useUUID");function FK(t,e,n,r){var i=E.useContext(fd),a=i.activeKey,o=i.onActive,s=i.onInactive,l={active:a===t};return e||(l.onMouseEnter=function(u){n==null||n({key:t,domEvent:u}),o(t)},l.onMouseLeave=function(u){r==null||r({key:t,domEvent:u}),s(t)}),l}R(FK,"useActive");function VK(t){var e=E.useContext(fd),n=e.mode,r=e.rtl,i=e.inlineIndent;if(n!=="inline")return null;var a=t;return r?{paddingRight:a*i}:{paddingLeft:a*i}}R(VK,"useDirectionStyle");function BK(t){var e=t.icon,n=t.props,r=t.children,i;return e===null||e===!1?null:(typeof e=="function"?i=E.createElement(e,Dt({},n)):typeof e!="boolean"&&(i=e),i||r||null)}R(BK,"Icon");var Lat=["item"];function Qv(t){var e=t.item,n=Ka(t,Lat);return Object.defineProperty(n,"item",{get:R(function(){return Yf(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e},"get")}),n}R(Qv,"warnItemProp");var xat=["title","attribute","elementRef"],Oat=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Nat=["active"],kat=function(t){FM(n,t);var e=VM(n);function n(){return UC(this,n),e.apply(this,arguments)}return R(n,"LegacyMenuItem2"),HC(n,[{key:"render",value:R(function(){var r=this.props,i=r.title,a=r.attribute,o=r.elementRef,s=Ka(r,xat),l=kp(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yf(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),E.createElement(od.Item,fr({},a,{title:typeof i=="string"?i:void 0},l,{ref:o}))},"render")}]),n}(E.Component),Fat=E.forwardRef(function(t,e){var n=t.style,r=t.className,i=t.eventKey;t.warnKey;var a=t.disabled,o=t.itemIcon,s=t.children,l=t.role,u=t.onMouseEnter,c=t.onMouseLeave,d=t.onClick,h=t.onKeyDown,f=t.onFocus,m=Ka(t,Oat),g=OK(i),p=E.useContext(fd),v=p.prefixCls,_=p.onItemClick,C=p.disabled,S=p.overflowDisabled,b=p.itemIcon,y=p.selectedKeys,A=p.onActive,w=E.useContext(NK),P=w._internalRenderMenuItem,M="".concat(v,"-item"),L=E.useRef(),k=E.useRef(),O=C||a,$=T7(e,k),B=k7(i),V=R(function(ne){return{key:i,keyPath:Zi(B).reverse(),item:L.current,domEvent:ne}},"getEventInfo2"),X=o||b,z=FK(i,O,u,c),F=z.active,H=Ka(z,Nat),W=y.includes(i),K=VK(B.length),G=R(function(ne){if(!O){var de=V(ne);d==null||d(Qv(de)),_(de)}},"onInternalClick2"),te=R(function(ne){if(h==null||h(ne),ne.which===Fr.ENTER){var de=V(ne);d==null||d(Qv(de)),_(de)}},"onInternalKeyDown2"),Y=R(function(ne){A(i),f==null||f(ne)},"onInternalFocus2"),ae={};t.role==="option"&&(ae["aria-selected"]=W);var ie=E.createElement(kat,fr({ref:L,elementRef:$,role:l===null?"none":l||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&g?null:g},m,H,ae,{component:"li","aria-disabled":a,style:Dt(Dt({},K),n),className:wn(M,pn(pn(pn({},"".concat(M,"-active"),F),"".concat(M,"-selected"),W),"".concat(M,"-disabled"),O),r),onClick:G,onKeyDown:te,onFocus:Y}),s,E.createElement(BK,{props:Dt(Dt({},t),{},{isSelected:W}),icon:X}));return P&&(ie=P(ie,t,{selected:W})),ie});function d3e(t,e){var n=t.eventKey,r=ZC(),i=k7(n);return E.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:E.createElement(Fat,fr({},t,{ref:e}))}R(d3e,"MenuItem$1");const iT=E.forwardRef(d3e);var Vat=["className","children"],Bat=R(function(t,e){var n=t.className,r=t.children,i=Ka(t,Vat),a=E.useContext(fd),o=a.prefixCls,s=a.mode,l=a.rtl;return E.createElement("ul",fr({className:wn(o,l&&"".concat(o,"-rtl"),"".concat(o,"-sub"),"".concat(o,"-").concat(s==="inline"?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:e}),r)},"InternalSubMenuList"),UK=E.forwardRef(Bat);UK.displayName="SubMenuList";function aT(t,e){return L4(t).map(function(n,r){if(E.isValidElement(n)){var i,a,o=n.key,s=(i=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&i!==void 0?i:o,l=s==null;l&&(s="tmp_key-".concat([].concat(Zi(e),[r]).join("-")));var u={key:s,eventKey:s};return E.cloneElement(n,u)}return n})}R(aT,"parseChildren");var ml={adjustX:1,adjustY:1},Uat={topLeft:{points:["bl","tl"],overflow:ml},topRight:{points:["br","tr"],overflow:ml},bottomLeft:{points:["tl","bl"],overflow:ml},bottomRight:{points:["tr","br"],overflow:ml},leftTop:{points:["tr","tl"],overflow:ml},leftBottom:{points:["br","bl"],overflow:ml},rightTop:{points:["tl","tr"],overflow:ml},rightBottom:{points:["bl","br"],overflow:ml}},Hat={topLeft:{points:["bl","tl"],overflow:ml},topRight:{points:["br","tr"],overflow:ml},bottomLeft:{points:["tl","bl"],overflow:ml},bottomRight:{points:["tr","br"],overflow:ml},rightTop:{points:["tr","tl"],overflow:ml},rightBottom:{points:["br","bl"],overflow:ml},leftTop:{points:["tl","tr"],overflow:ml},leftBottom:{points:["bl","br"],overflow:ml}};function HK(t,e,n){if(e)return e;if(n)return n[t]||n.other}R(HK,"getMotion");var jat={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function h3e(t){var e=t.prefixCls,n=t.visible,r=t.children,i=t.popup,a=t.popupStyle,o=t.popupClassName,s=t.popupOffset,l=t.disabled,u=t.mode,c=t.onVisibleChange,d=E.useContext(fd),h=d.getPopupContainer,f=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,p=d.builtinPlacements,v=d.triggerSubMenuAction,_=d.forceSubMenuRender,C=d.rootClassName,S=d.motion,b=d.defaultMotions,y=E.useState(!1),A=Pt(y,2),w=A[0],P=A[1],M=Dt(f?Dt({},Hat):Dt({},Uat),p),L=jat[u],k=HK(u,S,b),O=E.useRef(k);u!=="inline"&&(O.current=k);var $=Dt(Dt({},O.current),{},{leavedClassName:"".concat(e,"-hidden"),removeOnLeave:!1,motionAppear:!0}),B=E.useRef();return E.useEffect(function(){return B.current=Wi(function(){P(n)}),function(){Wi.cancel(B.current)}},[n]),E.createElement(zC,{prefixCls:e,popupClassName:wn("".concat(e,"-popup"),pn({},"".concat(e,"-rtl"),f),o,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:M,popupPlacement:L,popupVisible:w,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:c,forceRender:_,popupMotion:$,fresh:!0},r)}R(h3e,"PopupTrigger");function f3e(t){var e=t.id,n=t.open,r=t.keyPath,i=t.children,a="inline",o=E.useContext(fd),s=o.prefixCls,l=o.forceSubMenuRender,u=o.motion,c=o.defaultMotions,d=o.mode,h=E.useRef(!1);h.current=d===a;var f=E.useState(!h.current),m=Pt(f,2),g=m[0],p=m[1],v=h.current?n:!1;E.useEffect(function(){h.current&&p(!1)},[d]);var _=Dt({},HK(a,u,c));r.length>1&&(_.motionAppear=!1);var C=_.onVisibleChanged;return _.onVisibleChanged=function(S){return!h.current&&!S&&p(!0),C==null?void 0:C(S)},g?null:E.createElement(N4,{mode:a,locked:!h.current},E.createElement(Op,fr({visible:v},_,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var b=S.className,y=S.style;return E.createElement(UK,{id:e,className:b,style:y},i)}))}R(f3e,"InlineSubMenuList");var $at=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Wat=["active"],zat=E.forwardRef(function(t,e){var n=t.style,r=t.className,i=t.title,a=t.eventKey;t.warnKey;var o=t.disabled,s=t.internalPopupClose,l=t.children,u=t.itemIcon,c=t.expandIcon,d=t.popupClassName,h=t.popupOffset,f=t.popupStyle,m=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,v=t.onTitleClick,_=t.onTitleMouseEnter,C=t.onTitleMouseLeave,S=Ka(t,$at),b=OK(a),y=E.useContext(fd),A=y.prefixCls,w=y.mode,P=y.openKeys,M=y.disabled,L=y.overflowDisabled,k=y.activeKey,O=y.selectedKeys,$=y.itemIcon,B=y.expandIcon,V=y.onItemClick,X=y.onOpenChange,z=y.onActive,F=E.useContext(NK),H=F._internalRenderSubMenuItem,W=E.useContext(t3e),K=W.isSubPathKey,G=k7(),te="".concat(A,"-submenu"),Y=M||o,ae=E.useRef(),ie=E.useRef(),ne=u??$,de=c??B,_e=P.includes(a),Pe=!L&&_e,De=K(O,a),Ee=FK(a,Y,_,C),ye=Ee.active,Ve=Ka(Ee,Wat),ke=E.useState(!1),Ke=Pt(ke,2),$e=Ke[0],Fe=Ke[1],He=R(function(ue){Y||Fe(ue)},"triggerChildrenActive2"),ct=R(function(ue){He(!0),g==null||g({key:a,domEvent:ue})},"onInternalMouseEnter2"),_t=R(function(ue){He(!1),p==null||p({key:a,domEvent:ue})},"onInternalMouseLeave2"),Ye=E.useMemo(function(){return ye||(w!=="inline"?$e||K([k],a):!1)},[w,ye,k,$e,a,K]),Ot=VK(G.length),An=R(function(ue){Y||(v==null||v({key:a,domEvent:ue}),w==="inline"&&X(a,!_e))},"onInternalTitleClick2"),Ut=I6(function(ue){m==null||m(Qv(ue)),V(ue)}),Jt=R(function(ue){w!=="inline"&&X(a,ue)},"onPopupVisibleChange2"),dn=R(function(){z(a)},"onInternalFocus2"),Sn=b&&"".concat(b,"-popup"),hn=E.createElement("div",fr({role:"menuitem",style:Ot,className:"".concat(te,"-title"),tabIndex:Y?null:-1,ref:ae,title:typeof i=="string"?i:null,"data-menu-id":L&&b?null:b,"aria-expanded":Pe,"aria-haspopup":!0,"aria-controls":Sn,"aria-disabled":Y,onClick:An,onFocus:dn},Ve),i,E.createElement(BK,{icon:w!=="horizontal"?de:void 0,props:Dt(Dt({},t),{},{isOpen:Pe,isSubMenu:!0})},E.createElement("i",{className:"".concat(te,"-arrow")}))),tr=E.useRef(w);if(w!=="inline"&&G.length>1?tr.current="vertical":tr.current=w,!L){var en=tr.current;hn=E.createElement(h3e,{mode:en,prefixCls:te,visible:!s&&Pe&&w!=="inline",popupClassName:d,popupOffset:h,popupStyle:f,popup:E.createElement(N4,{mode:en==="horizontal"?"vertical":en},E.createElement(UK,{id:Sn,ref:ie},l)),disabled:Y,onVisibleChange:Jt},hn)}var bt=E.createElement(od.Item,fr({ref:e,role:"none"},S,{component:"li",style:n,className:wn(te,"".concat(te,"-").concat(w),r,pn(pn(pn(pn({},"".concat(te,"-open"),Pe),"".concat(te,"-active"),Ye),"".concat(te,"-selected"),De),"".concat(te,"-disabled"),Y)),onMouseEnter:ct,onMouseLeave:_t}),hn,!L&&E.createElement(f3e,{id:Sn,open:Pe,keyPath:G},l));return H&&(bt=H(bt,t,{selected:De,active:Ye,open:Pe,disabled:Y})),E.createElement(N4,{onItemClick:Ut,mode:w==="horizontal"?"vertical":w,itemIcon:ne,expandIcon:de},bt)}),oT=E.forwardRef(function(t,e){var n=t.eventKey,r=t.children,i=k7(n),a=aT(r,i),o=ZC();E.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=E.createElement(zat,fr({ref:e},t),a),E.createElement(e3e.Provider,{value:i},s)});function jK(t){var e=t.className,n=t.style,r=E.useContext(fd),i=r.prefixCls,a=ZC();return a?null:E.createElement("li",{role:"separator",className:wn("".concat(i,"-item-divider"),e),style:n})}R(jK,"Divider");var qat=["className","title","eventKey","children"],Yat=E.forwardRef(function(t,e){var n=t.className,r=t.title;t.eventKey;var i=t.children,a=Ka(t,qat),o=E.useContext(fd),s=o.prefixCls,l="".concat(s,"-item-group");return E.createElement("li",fr({ref:e,role:"presentation"},a,{onClick:R(function(u){return u.stopPropagation()},"onClick"),className:wn(l,n)}),E.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),E.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),$K=E.forwardRef(function(t,e){var n=t.eventKey,r=t.children,i=k7(n),a=aT(r,i),o=ZC();return o?a:E.createElement(Yat,fr({ref:e},kp(t,["warnKey"])),a)}),Xat=["label","children","key","type","extra"];function Zw(t,e,n){var r=e.item,i=e.group,a=e.submenu,o=e.divider;return(t||[]).map(function(s,l){if(s&&Ao(s)==="object"){var u=s,c=u.label,d=u.children,h=u.key,f=u.type,m=u.extra,g=Ka(u,Xat),p=h??"tmp-".concat(l);return d||f==="group"?f==="group"?E.createElement(i,fr({key:p},g,{title:c}),Zw(d,e,n)):E.createElement(a,fr({key:p},g,{title:c}),Zw(d,e,n)):f==="divider"?E.createElement(o,fr({key:p},g)):E.createElement(r,fr({key:p},g),c,(!!m||m===0)&&E.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}R(Zw,"convertItemsToNodes");function y$(t,e,n,r,i){var a=t,o=Dt({divider:jK,item:iT,group:$K,submenu:oT},r);return e&&(a=Zw(e,o,i)),aT(a,n)}R(y$,"parseItems");var Gat=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],C2=[],Qat=E.forwardRef(function(t,e){var n,r=t,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,u=r.tabIndex,c=u===void 0?0:u,d=r.items,h=r.children,f=r.direction,m=r.id,g=r.mode,p=g===void 0?"vertical":g,v=r.inlineCollapsed,_=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,b=S===void 0?.1:S,y=r.subMenuCloseDelay,A=y===void 0?.1:y,w=r.forceSubMenuRender,P=r.defaultOpenKeys,M=r.openKeys,L=r.activeKey,k=r.defaultActiveFirst,O=r.selectable,$=O===void 0?!0:O,B=r.multiple,V=B===void 0?!1:B,X=r.defaultSelectedKeys,z=r.selectedKeys,F=r.onSelect,H=r.onDeselect,W=r.inlineIndent,K=W===void 0?24:W,G=r.motion,te=r.defaultMotions,Y=r.triggerSubMenuAction,ae=Y===void 0?"hover":Y,ie=r.builtinPlacements,ne=r.itemIcon,de=r.expandIcon,_e=r.overflowedIndicator,Pe=_e===void 0?"...":_e,De=r.overflowedIndicatorPopupClassName,Ee=r.getPopupContainer,ye=r.onClick,Ve=r.onOpenChange,ke=r.onKeyDown;r.openAnimation,r.openTransitionName;var Ke=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,Fe=r._internalComponents,He=Ka(r,Gat),ct=E.useMemo(function(){return[y$(h,d,C2,Fe,a),y$(h,d,C2,{},a)]},[h,d,Fe]),_t=Pt(ct,2),Ye=_t[0],Ot=_t[1],An=E.useState(!1),Ut=Pt(An,2),Jt=Ut[0],dn=Ut[1],Sn=E.useRef(),hn=c3e(m),tr=f==="rtl",en=Ho(P,{value:M,postState:R(function(rt){return rt||C2},"postState")}),bt=Pt(en,2),ue=bt[0],ce=bt[1],pe=R(function(rt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Rt(){ce(rt),Ve==null||Ve(rt)}R(Rt,"doUpdate"),yt?bf.flushSync(Rt):Rt()},"triggerOpenKeys2"),Ae=E.useState(ue),je=Pt(Ae,2),tt=je[0],Qe=je[1],nt=E.useRef(!1),we=E.useMemo(function(){return(p==="inline"||p==="vertical")&&v?["vertical",v]:[p,!1]},[p,v]),Ze=Pt(we,2),ht=Ze[0],pt=Ze[1],Mt=ht==="inline",xt=E.useState(ht),st=Pt(xt,2),Be=st[0],vt=st[1],qt=E.useState(pt),Lt=Pt(qt,2),zt=Lt[0],Yt=Lt[1];E.useEffect(function(){vt(ht),Yt(pt),nt.current&&(Mt?ce(tt):pe(C2))},[ht,pt]);var un=E.useState(0),ir=Pt(un,2),jr=ir[0],ln=ir[1],Nr=jr>=Ye.length-1||Be!=="horizontal"||C;E.useEffect(function(){Mt&&Qe(ue)},[ue]),E.useEffect(function(){return nt.current=!0,function(){nt.current=!1}},[]);var mn=u3e(),rn=mn.registerPath,En=mn.unregisterPath,Ft=mn.refreshOverflowKeys,$r=mn.isSubPathKey,br=mn.getKeyPath,Rn=mn.getKeys,Qn=mn.getSubPathKeys,vr=E.useMemo(function(){return{registerPath:rn,unregisterPath:En}},[rn,En]),gi=E.useMemo(function(){return{isSubPathKey:$r}},[$r]);E.useEffect(function(){Ft(Nr?C2:Ye.slice(jr+1).map(function(rt){return rt.key}))},[jr,Nr]);var pi=Ho(L||k&&((n=Ye[0])===null||n===void 0?void 0:n.key),{value:L}),vi=Pt(pi,2),qi=vi[0],Yi=vi[1],is=I6(function(rt){Yi(rt)}),Do=I6(function(){Yi(void 0)});E.useImperativeHandle(e,function(){return{list:Sn.current,focus:R(function(rt){var yt,Rt=Rn(),Nt=S$(Rt,hn),dt=Nt.elements,fn=Nt.key2element,sr=Nt.element2key,Wr=rT(Sn.current,dt),qr=qi??(Wr[0]?sr.get(Wr[0]):(yt=Ye.find(function(Vo){return!Vo.props.disabled}))===null||yt===void 0?void 0:yt.key),Ri=fn.get(qr);if(qr&&Ri){var Ai;Ri==null||(Ai=Ri.focus)===null||Ai===void 0||Ai.call(Ri,rt)}},"focus")}});var oo=Ho(X||[],{value:z,postState:R(function(rt){return Array.isArray(rt)?rt:rt==null?C2:[rt]},"postState")}),Ss=Pt(oo,2),po=Ss[0],vo=Ss[1],ll=R(function(rt){if($){var yt=rt.key,Rt=po.includes(yt),Nt;V?Rt?Nt=po.filter(function(fn){return fn!==yt}):Nt=[].concat(Zi(po),[yt]):Nt=[yt],vo(Nt);var dt=Dt(Dt({},rt),{},{selectedKeys:Nt});Rt?H==null||H(dt):F==null||F(dt)}!V&&ue.length&&Be!=="inline"&&pe(C2)},"triggerSelection2"),Jl=I6(function(rt){ye==null||ye(Qv(rt)),ll(rt)}),ve=I6(function(rt,yt){var Rt=ue.filter(function(dt){return dt!==rt});if(yt)Rt.push(rt);else if(Be!=="inline"){var Nt=Qn(rt);Rt=Rt.filter(function(dt){return!Nt.has(dt)})}LK(ue,Rt,!0)||pe(Rt,!0)}),Me=R(function(rt,yt){var Rt=yt??!ue.includes(rt);ve(rt,Rt)},"triggerAccessibilityOpen2"),Te=s3e(Be,qi,tr,hn,Sn,Rn,br,Yi,Me,ke);E.useEffect(function(){dn(!0)},[]);var ot=E.useMemo(function(){return{_internalRenderMenuItem:Ke,_internalRenderSubMenuItem:$e}},[Ke,$e]),Ge=Be!=="horizontal"||C?Ye:Ye.map(function(rt,yt){return E.createElement(N4,{key:rt.key,overflowDisabled:yt>jr},rt)}),Ue=E.createElement(od,fr({id:m,ref:Sn,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:iT,className:wn(a,"".concat(a,"-root"),"".concat(a,"-").concat(Be),l,pn(pn({},"".concat(a,"-inline-collapsed"),zt),"".concat(a,"-rtl"),tr),o),dir:f,style:s,role:"menu",tabIndex:c,data:Ge,renderRawItem:R(function(rt){return rt},"renderRawItem"),renderRawRest:R(function(rt){var yt=rt.length,Rt=yt?Ye.slice(-yt):null;return E.createElement(oT,{eventKey:b$,title:Pe,disabled:Nr,internalPopupClose:yt===0,popupClassName:De},Rt)},"renderRawRest"),maxCount:Be!=="horizontal"||C?od.INVALIDATE:od.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:R(function(rt){ln(rt)},"onVisibleChange"),onKeyDown:Te},He));return E.createElement(NK.Provider,{value:ot},E.createElement(Kpe.Provider,{value:hn},E.createElement(N4,{prefixCls:a,rootClassName:o,mode:Be,openKeys:ue,rtl:tr,disabled:_,motion:Jt?G:null,defaultMotions:Jt?te:null,activeKey:qi,onActive:is,onInactive:Do,selectedKeys:po,inlineIndent:K,subMenuOpenDelay:b,subMenuCloseDelay:A,forceSubMenuRender:w,builtinPlacements:ie,triggerSubMenuAction:ae,getPopupContainer:Ee,itemIcon:ne,expandIcon:de,onItemClick:Jl,onOpenChange:ve},E.createElement(t3e.Provider,{value:gi},Ue),E.createElement("div",{style:{display:"none"},"aria-hidden":!0},E.createElement(Jpe.Provider,{value:vr},Ot)))))}),JC=Qat;JC.Item=iT;JC.SubMenu=oT;JC.ItemGroup=$K;JC.Divider=jK;const Kat="univer-menu",Zat={menu:Kat},m3e=Re.forwardRef((t,e)=>{const{mountContainer:n}=E.useContext(Nu);return n&&Re.cloneElement(Re.createElement(JC,{ref:e,prefixCls:Zat.menu,getPopupContainer:R(()=>n,"getPopupContainer")}),{...t})});function Kv(t){return Re.cloneElement(Re.createElement(iT,null),{...t})}R(Kv,"MenuItem");function E$(t){return Re.cloneElement(Re.createElement(oT,null),{...t})}R(E$,"SubMenu");function g3e(t){return Re.cloneElement(Re.createElement($K,null),{...t})}R(g3e,"MenuItemGroup");var eS={},p3e={exports:{}},v3e={exports:{}};(function(t){function e(n){"@babel/helpers - typeof";return t.exports=e=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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}R(e,"_typeof"),t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(v3e);var tS=v3e.exports;(function(t){var e=tS.default;function n(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,o=new WeakMap;return(n=R(function(s){return s?o:a},"_getRequireWildcardCache"))(i)}R(n,"_getRequireWildcardCache");function r(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||e(i)!="object"&&typeof i!="function")return{default:i};var o=n(a);if(o&&o.has(i))return o.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in i)if(u!=="default"&&{}.hasOwnProperty.call(i,u)){var c=l?Object.getOwnPropertyDescriptor(i,u):null;c&&(c.get||c.set)?Object.defineProperty(s,u,c):s[u]=i[u]}return s.default=i,o&&o.set(i,s),s}R(r,"_interopRequireWildcard"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(p3e);var Jat=p3e.exports,_3e={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}R(e,"_interopRequireDefault"),t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(_3e);var eot=_3e.exports,C3e={exports:{}};(function(t){var e=tS.default;function n(){t.exports=n=R(function(){return i},"_regeneratorRuntime"),t.exports.__esModule=!0,t.exports.default=t.exports;var r,i={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(F,H,W){F[H]=W.value},l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(F,H,W){return Object.defineProperty(F,H,{value:W,enumerable:!0,configurable:!0,writable:!0}),F[H]}R(h,"define");try{h({},"")}catch{h=R(function(F,H,W){return F[H]=W},"define")}function f(F,H,W,K){var G=H&&H.prototype instanceof S?H:S,te=Object.create(G.prototype),Y=new X(K||[]);return s(te,"_invoke",{value:O(F,W,Y)}),te}R(f,"wrap");function m(F,H,W){try{return{type:"normal",arg:F.call(H,W)}}catch(K){return{type:"throw",arg:K}}}R(m,"tryCatch"),i.wrap=f;var g="suspendedStart",p="suspendedYield",v="executing",_="completed",C={};function S(){}R(S,"Generator");function b(){}R(b,"GeneratorFunction");function y(){}R(y,"GeneratorFunctionPrototype");var A={};h(A,u,function(){return this});var w=Object.getPrototypeOf,P=w&&w(w(z([])));P&&P!==a&&o.call(P,u)&&(A=P);var M=y.prototype=S.prototype=Object.create(A);function L(F){["next","throw","return"].forEach(function(H){h(F,H,function(W){return this._invoke(H,W)})})}R(L,"defineIteratorMethods");function k(F,H){function W(G,te,Y,ae){var ie=m(F[G],F,te);if(ie.type!=="throw"){var ne=ie.arg,de=ne.value;return de&&e(de)=="object"&&o.call(de,"__await")?H.resolve(de.__await).then(function(_e){W("next",_e,Y,ae)},function(_e){W("throw",_e,Y,ae)}):H.resolve(de).then(function(_e){ne.value=_e,Y(ne)},function(_e){return W("throw",_e,Y,ae)})}ae(ie.arg)}R(W,"invoke");var K;s(this,"_invoke",{value:R(function(G,te){function Y(){return new H(function(ae,ie){W(G,te,ae,ie)})}return R(Y,"callInvokeWithMethodAndArg"),K=K?K.then(Y,Y):Y()},"value")})}R(k,"AsyncIterator");function O(F,H,W){var K=g;return function(G,te){if(K===v)throw Error("Generator is already running");if(K===_){if(G==="throw")throw te;return{value:r,done:!0}}for(W.method=G,W.arg=te;;){var Y=W.delegate;if(Y){var ae=$(Y,W);if(ae){if(ae===C)continue;return ae}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(K===g)throw K=_,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);K=v;var ie=m(F,H,W);if(ie.type==="normal"){if(K=W.done?_:p,ie.arg===C)continue;return{value:ie.arg,done:W.done}}ie.type==="throw"&&(K=_,W.method="throw",W.arg=ie.arg)}}}R(O,"makeInvokeMethod");function $(F,H){var W=H.method,K=F.iterator[W];if(K===r)return H.delegate=null,W==="throw"&&F.iterator.return&&(H.method="return",H.arg=r,$(F,H),H.method==="throw")||W!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+W+"' method")),C;var G=m(K,F.iterator,H.arg);if(G.type==="throw")return H.method="throw",H.arg=G.arg,H.delegate=null,C;var te=G.arg;return te?te.done?(H[F.resultName]=te.value,H.next=F.nextLoc,H.method!=="return"&&(H.method="next",H.arg=r),H.delegate=null,C):te:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,C)}R($,"maybeInvokeDelegate");function B(F){var H={tryLoc:F[0]};1 in F&&(H.catchLoc=F[1]),2 in F&&(H.finallyLoc=F[2],H.afterLoc=F[3]),this.tryEntries.push(H)}R(B,"pushTryEntry");function V(F){var H=F.completion||{};H.type="normal",delete H.arg,F.completion=H}R(V,"resetTryEntry");function X(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(B,this),this.reset(!0)}R(X,"Context");function z(F){if(F||F===""){var H=F[u];if(H)return H.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var W=-1,K=R(function G(){for(;++W<F.length;)if(o.call(F,W))return G.value=F[W],G.done=!1,G;return G.value=r,G.done=!0,G},"next");return K.next=K}}throw new TypeError(e(F)+" is not iterable")}return R(z,"values"),b.prototype=y,s(M,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:b,configurable:!0}),b.displayName=h(y,d,"GeneratorFunction"),i.isGeneratorFunction=function(F){var H=typeof F=="function"&&F.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},i.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,y):(F.__proto__=y,h(F,d,"GeneratorFunction")),F.prototype=Object.create(M),F},i.awrap=function(F){return{__await:F}},L(k.prototype),h(k.prototype,c,function(){return this}),i.AsyncIterator=k,i.async=function(F,H,W,K,G){G===void 0&&(G=Promise);var te=new k(f(F,H,W,K),G);return i.isGeneratorFunction(H)?te:te.next().then(function(Y){return Y.done?Y.value:te.next()})},L(M),h(M,d,"Generator"),h(M,u,function(){return this}),h(M,"toString",function(){return"[object Generator]"}),i.keys=function(F){var H=Object(F),W=[];for(var K in H)W.push(K);return W.reverse(),R(function G(){for(;W.length;){var te=W.pop();if(te in H)return G.value=te,G.done=!1,G}return G.done=!0,G},"next")},i.values=z,X.prototype={constructor:X,reset:R(function(F){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(V),!F)for(var H in this)H.charAt(0)==="t"&&o.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=r)},"reset"),stop:R(function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},"stop"),dispatchException:R(function(F){if(this.done)throw F;var H=this;function W(ie,ne){return te.type="throw",te.arg=F,H.next=ie,ne&&(H.method="next",H.arg=r),!!ne}R(W,"handle");for(var K=this.tryEntries.length-1;K>=0;--K){var G=this.tryEntries[K],te=G.completion;if(G.tryLoc==="root")return W("end");if(G.tryLoc<=this.prev){var Y=o.call(G,"catchLoc"),ae=o.call(G,"finallyLoc");if(Y&&ae){if(this.prev<G.catchLoc)return W(G.catchLoc,!0);if(this.prev<G.finallyLoc)return W(G.finallyLoc)}else if(Y){if(this.prev<G.catchLoc)return W(G.catchLoc,!0)}else{if(!ae)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return W(G.finallyLoc)}}}},"dispatchException"),abrupt:R(function(F,H){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc<=this.prev&&o.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var G=K;break}}G&&(F==="break"||F==="continue")&&G.tryLoc<=H&&H<=G.finallyLoc&&(G=null);var te=G?G.completion:{};return te.type=F,te.arg=H,G?(this.method="next",this.next=G.finallyLoc,C):this.complete(te)},"abrupt"),complete:R(function(F,H){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&H&&(this.next=H),C},"complete"),finish:R(function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var W=this.tryEntries[H];if(W.finallyLoc===F)return this.complete(W.completion,W.afterLoc),V(W),C}},"finish"),catch:R(function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var W=this.tryEntries[H];if(W.tryLoc===F){var K=W.completion;if(K.type==="throw"){var G=K.arg;V(W)}return G}}throw Error("illegal catch attempt")},"_catch"),delegateYield:R(function(F,H,W){return this.delegate={iterator:z(F),resultName:H,nextLoc:W},this.method==="next"&&(this.arg=r),C},"delegateYield")},i}R(n,"_regeneratorRuntime"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(C3e);var tot=C3e.exports,S3e={exports:{}};(function(t){function e(r,i,a,o,s,l,u){try{var c=r[l](u),d=c.value}catch(h){return void a(h)}c.done?i(d):Promise.resolve(d).then(o,s)}R(e,"asyncGeneratorStep");function n(r){return function(){var i=this,a=arguments;return new Promise(function(o,s){var l=r.apply(i,a);function u(d){e(l,o,s,u,c,"next",d)}R(u,"_next");function c(d){e(l,o,s,u,c,"throw",d)}R(c,"_throw"),u(void 0)})}}R(n,"_asyncToGenerator"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(S3e);var not=S3e.exports,b3e={exports:{}},y3e={exports:{}},E3e={exports:{}},R3e={exports:{}};(function(t){var e=tS.default;function n(r,i){if(e(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(e(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}R(n,"toPrimitive"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(R3e);var rot=R3e.exports;(function(t){var e=tS.default,n=rot;function r(i){var a=n(i,"string");return e(a)=="symbol"?a:a+""}R(r,"toPropertyKey"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(E3e);var iot=E3e.exports;(function(t){var e=iot;function n(r,i,a){return(i=e(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}R(n,"_defineProperty"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(y3e);var aot=y3e.exports;(function(t){var e=aot;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}R(n,"ownKeys");function r(i){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?n(Object(o),!0).forEach(function(s){e(i,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(o,s))})}return i}R(r,"_objectSpread2"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(b3e);var oot=b3e.exports,sot=Jat.default,sT=eot.default;Object.defineProperty(eS,"__esModule",{value:!0});eS._r=I3e;eS._u=L3e;var lot=eS.render=P3e,uot=eS.unmount=x3e,Jw=sT(tot),A3e=sT(not),cot=sT(tS),dot=sT(oot),hot=sot(ec),nS=(0,dot.default)({},hot),fot=nS.version,mot=nS.render,got=nS.unmountComponentAtNode,lT;try{var pot=Number((fot||"").split(".")[0]);pot>=18&&(lT=nS.createRoot)}catch{}function R$(t){var e=nS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&(0,cot.default)(e)==="object"&&(e.usingClientEntryPoint=t)}R(R$,"toggleWarning");var eD="__rc_react_root__";function w3e(t,e){R$(!0);var n=e[eD]||lT(e);R$(!1),n.render(t),e[eD]=n}R(w3e,"modernRender");function D3e(t,e){mot(t,e)}R(D3e,"legacyRender");function I3e(t,e){}R(I3e,"_r");function P3e(t,e){if(lT){w3e(t,e);return}D3e(t,e)}R(P3e,"render");function M3e(t){return tD.apply(this,arguments)}R(M3e,"modernUnmount");function tD(){return tD=(0,A3e.default)((0,Jw.default)().mark(R(function t(e){return(0,Jw.default)().wrap(R(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=e[eD])===null||r===void 0||r.unmount(),delete e[eD]}));case 1:case"end":return n.stop()}},"_callee$"),t)},"_callee"))),tD.apply(this,arguments)}R(tD,"_modernUnmount");function T3e(t){got(t)}R(T3e,"legacyUnmount");function L3e(t){}R(L3e,"_u");function x3e(t){return nD.apply(this,arguments)}R(x3e,"unmount");function nD(){return nD=(0,A3e.default)((0,Jw.default)().mark(R(function t(e){return(0,Jw.default)().wrap(R(function(n){for(;;)switch(n.prev=n.next){case 0:if(lT===void 0){n.next=2;break}return n.abrupt("return",M3e(e));case 2:T3e(e);case 3:case"end":return n.stop()}},"_callee2$"),t)},"_callee2"))),nD.apply(this,arguments)}R(nD,"_unmount");function uT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qv(t,e)}R(uT,"_inheritsLoose$2");function O3e(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}R(O3e,"hasClass");function N3e(t,e){t.classList?t.classList.add(e):O3e(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}R(N3e,"addClass");function A$(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}R(A$,"replaceClassName");function k3e(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=A$(t.className,e):t.setAttribute("class",A$(t.className&&t.className.baseVal||"",e))}R(k3e,"removeClass$1");const woe={disabled:!1},rD=Re.createContext(null);var F3e=R(function(t){return t.scrollTop},"forceReflow"),k5="unmounted",Q2="exited",K2="entering",e6="entered",w$="exiting",Zf=function(t){uT(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Q2,a.appearStatus=K2):l=e6:r.unmountOnExit||r.mountOnEnter?l=k5:l=Q2,a.state={status:l},a.nextCallback=null,a}R(e,"Transition2"),e.getDerivedStateFromProps=R(function(r,i){var a=r.in;return a&&i.status===k5?{status:Q2}:null},"getDerivedStateFromProps");var n=e.prototype;return n.componentDidMount=R(function(){this.updateStatus(!0,this.appearStatus)},"componentDidMount"),n.componentDidUpdate=R(function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==K2&&a!==e6&&(i=K2):(a===K2||a===e6)&&(i=w$)}this.updateStatus(!1,i)},"componentDidUpdate"),n.componentWillUnmount=R(function(){this.cancelNextCallback()},"componentWillUnmount"),n.getTimeouts=R(function(){var r=this.props.timeout,i,a,o;return i=a=o=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,o=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:o}},"getTimeouts"),n.updateStatus=R(function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===K2){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ec.findDOMNode(this);a&&F3e(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Q2&&this.setState({status:k5})},"updateStatus"),n.performEnter=R(function(r){var i=this,a=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[ec.findDOMNode(this),o],l=s[0],u=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!r&&!a||woe.disabled){this.safeSetState({status:e6},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:K2},function(){i.props.onEntering(l,u),i.onTransitionEnd(d,function(){i.safeSetState({status:e6},function(){i.props.onEntered(l,u)})})})},"performEnter"),n.performExit=R(function(){var r=this,i=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:ec.findDOMNode(this);if(!i||woe.disabled){this.safeSetState({status:Q2},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:w$},function(){r.props.onExiting(o),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Q2},function(){r.props.onExited(o)})})})},"performExit"),n.cancelNextCallback=R(function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},"cancelNextCallback"),n.safeSetState=R(function(r,i){i=this.setNextCallback(i),this.setState(r,i)},"safeSetState"),n.setNextCallback=R(function(r){var i=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,i.nextCallback=null,r(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},"setNextCallback"),n.onTransitionEnd=R(function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ec.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],u=s[1];this.props.addEndListener(l,u)}r!=null&&setTimeout(this.nextCallback,r)},"onTransitionEnd"),n.render=R(function(){var r=this.state.status;if(r===k5)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=QC(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(rD.Provider,{value:null},typeof a=="function"?a(r,o):Re.cloneElement(Re.Children.only(a),o))},"render"),e}(Re.Component);Zf.contextType=rD;Zf.propTypes={};function Z2(){}R(Z2,"noop$1");Zf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Z2,onEntering:Z2,onEntered:Z2,onExit:Z2,onExiting:Z2,onExited:Z2};Zf.UNMOUNTED=k5;Zf.EXITED=Q2;Zf.ENTERING=K2;Zf.ENTERED=e6;Zf.EXITING=w$;var vot=R(function(t,e){return t&&e&&e.split(" ").forEach(function(n){return N3e(t,n)})},"addClass$1"),gN=R(function(t,e){return t&&e&&e.split(" ").forEach(function(n){return k3e(t,n)})},"removeClass2"),cT=function(t){uT(e,t);function e(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var u=r.resolveArguments(s,l),c=u[0],d=u[1];r.removeClasses(c,"exit"),r.addClass(c,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var u=r.resolveArguments(s,l),c=u[0],d=u[1],h=d?"appear":"enter";r.addClass(c,h,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var u=r.resolveArguments(s,l),c=u[0],d=u[1],h=d?"appear":"enter";r.removeClasses(c,h),r.addClass(c,h,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",d=u?""+c+s:l[s],h=u?d+"-active":l[s+"Active"],f=u?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:f}},r}R(e,"CSSTransition2");var n=e.prototype;return n.addClass=R(function(r,i,a){var o=this.getClassNames(i)[a+"ClassName"],s=this.getClassNames("enter"),l=s.doneClassName;i==="appear"&&a==="done"&&l&&(o+=" "+l),a==="active"&&r&&F3e(r),o&&(this.appliedClasses[i][a]=o,vot(r,o))},"addClass2"),n.removeClasses=R(function(r,i){var a=this.appliedClasses[i],o=a.base,s=a.active,l=a.done;this.appliedClasses[i]={},o&&gN(r,o),s&&gN(r,s),l&&gN(r,l)},"removeClasses"),n.render=R(function(){var r=this.props;r.classNames;var i=QC(r,["classNames"]);return Re.createElement(Zf,bo({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},"render"),e}(Re.Component);cT.defaultProps={classNames:""};cT.propTypes={};function dT(t,e){var n=R(function(i){return e&&E.isValidElement(i)?e(i):i},"mapper"),r=Object.create(null);return t&&E.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}R(dT,"getChildMapping");function V3e(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}R(n,"getValueForKey");var r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var l in e){if(r[l])for(o=0;o<r[l].length;o++){var u=r[l][o];s[r[l][o]]=n(u)}s[l]=n(l)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}R(V3e,"mergeChildMappings");function zm(t,e,n){return n[e]!=null?n[e]:t.props[e]}R(zm,"getProp");function B3e(t,e){return dT(t.children,function(n){return E.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:zm(n,"appear",t),enter:zm(n,"enter",t),exit:zm(n,"exit",t)})})}R(B3e,"getInitialChildMapping");function U3e(t,e,n){var r=dT(t.children),i=V3e(e,r);return Object.keys(i).forEach(function(a){var o=i[a];if(E.isValidElement(o)){var s=a in e,l=a in r,u=e[a],c=E.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=E.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:zm(o,"exit",t),enter:zm(o,"enter",t)}):!l&&s&&!c?i[a]=E.cloneElement(o,{in:!1}):l&&s&&E.isValidElement(u)&&(i[a]=E.cloneElement(o,{onExited:n.bind(null,o),in:u.props.in,exit:zm(o,"exit",t),enter:zm(o,"enter",t)}))}}),i}R(U3e,"getNextChildMapping");var _ot=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},Cot={component:"div",childFactory:R(function(t){return t},"childFactory")},WK=function(t){uT(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var o=a.handleExited.bind(nK(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}R(e,"TransitionGroup2");var n=e.prototype;return n.componentDidMount=R(function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},"componentDidMount"),n.componentWillUnmount=R(function(){this.mounted=!1},"componentWillUnmount"),e.getDerivedStateFromProps=R(function(r,i){var a=i.children,o=i.handleExited,s=i.firstRender;return{children:s?B3e(r,o):U3e(r,a,o),firstRender:!1}},"getDerivedStateFromProps"),n.handleExited=R(function(r,i){var a=dT(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(o){var s=bo({},o.children);return delete s[r.key],{children:s}}))},"handleExited"),n.render=R(function(){var r=this.props,i=r.component,a=r.childFactory,o=QC(r,["component","childFactory"]),s=this.state.contextValue,l=_ot(this.state.children).map(a);return delete o.appear,delete o.enter,delete o.exit,i===null?Re.createElement(rD.Provider,{value:s},l):Re.createElement(rD.Provider,{value:s},Re.createElement(i,o,l))},"render"),e}(Re.Component);WK.propTypes={};WK.defaultProps=Cot;const Sot="univer-message",bot="univer-message-item",yot="univer-enter-active",Eot="univer-enter-done",Rot="univer-exit",Aot="univer-exit-active",wot="univer-message-icon",Dot="univer-message-icon-success",Iot="univer-message-icon-info",Pot="univer-message-icon-warning",Mot="univer-message-icon-error",Tot="univer-message-content",Ku={message:Sot,messageItem:bot,enterActive:yot,enterDone:Eot,exit:Rot,exitActive:Aot,messageIcon:wot,messageIconSuccess:Dot,messageIconInfo:Iot,messageIconWarning:Pot,messageIconError:Mot,messageContent:Tot};var hT=(t=>(t.Success="success",t.Info="info",t.Warning="warning",t.Error="error",t.Loading="loading",t))(hT||{});const Lot={success:Re.createElement(Kme,{className:Ku.messageIconSuccess}),info:Re.createElement(Fj,{className:Ku.messageIconInfo}),warning:Re.createElement(Fj,{className:Ku.messageIconWarning}),error:Re.createElement(Wme,{className:Ku.messageIconError}),loading:Re.createElement(qme,{className:Ku.messageIconError})},xot=R(t=>{const{type:e,content:n,icon:r,style:i}=t;return Re.createElement("div",{className:Ku.messageItem,style:i},Re.createElement("div",{className:Ku.messageContent},Re.createElement("span",{className:Ku.messageIcon},r||Lot[e]),Re.createElement("span",null,n)))},"MessageItem"),Oot=R(t=>{const{messages:e}=t;return Re.createElement(WK,{className:Ku.message},e.map(n=>Re.createElement(cT,{key:n.key,timeout:200,classNames:{enterActive:Ku.enterActive,enterDone:Ku.enterDone,exitActive:Ku.exit,exitDone:Ku.exitActive}},Re.createElement(xot,{...n}))))},"MessageContainer"),H3e=class{constructor(e){jv(this,"_container"),jv(this,"_messages",[]),yM()?(this._container=document.createElement("div"),e.appendChild(this._container)):this._container=e,this.render()}dispose(){uot(this._container),this._container.remove()}append(e,n){const{content:r,duration:i=3e3}=n,a=`${Date.now()}`;return this._messages.push({key:a,type:e,content:r}),this.render(),i!==0&&setTimeout(()=>this.teardown(a),i),{dispose:R(()=>this.teardown(a),"dispose")}}teardown(e){this._messages=this._messages.filter(n=>n.key!==e),this.render()}render(){lot(Re.createElement(Oot,{messages:this._messages}),this._container)}success(e){return this.append("success",e)}info(e){return this.append("info",e)}warning(e){return this.append("warning",e)}error(e){return this.append("error",e)}loading(e){return this.append("loading",e)}};R(H3e,"Message");let Not=H3e;const kot="univer-pager",Fot="univer-pager-left-arrow",Vot="univer-pager-right-arrow",Bot="univer-pager-number",U9={pager:kot,pagerLeftArrow:Fot,pagerRightArrow:Vot,pagerNumber:Bot};function Uot(t){const{value:e=0,total:n=0,loop:r,text:i}=t,a=E.useMemo(()=>i??`${e}/${n}`,[e,n,i]),o=n>0,s=R(()=>{var u,c;e===1?r&&((u=t.onChange)==null||u.call(t,n)):(c=t.onChange)==null||c.call(t,e-1)},"onClickLeftArrow"),l=R(()=>{var u,c;e===n?r&&((u=t.onChange)==null||u.call(t,1)):(c=t.onChange)==null||c.call(t,e+1)},"onClickRightArrow");return Re.createElement("div",{className:U9.pager},o?Re.createElement(E.Fragment,null,Re.createElement("div",{role:"button",className:U9.pagerLeftArrow,onClick:s},Re.createElement(Xme,null)),Re.createElement("div",{className:U9.pagerNumber},a),Re.createElement("div",{role:"button",className:U9.pagerRightArrow,onClick:l},Re.createElement(Gme,null))):Re.createElement("div",{className:U9.pagerNumber},a))}R(Uot,"Pager");const Hot="univer-popup-fixed",jot="univer-popup",$ot="univer-popup-enter",Wot="univer-popup-enter-active",zot="univer-popup-exit",qot="univer-popup-exit-active",J2={popupFixed:Hot,popup:jot,popupEnter:$ot,popupEnterActive:Wot,popupExit:zot,popupExitActive:qot};function rS(t){const{children:e,visible:n=!1,offset:r=[0,0]}=t,i=E.useRef(null),[a,o]=E.useState(r),{mountContainer:s}=E.useContext(Nu);E.useEffect(()=>{if(!n){o([-9999,-9999]);return}const[u,c]=r,{clientWidth:d,clientHeight:h}=i.current,{innerWidth:f,innerHeight:m}=window,g=u+d>f?f-d:u,p=c+h>m?m-h:c;o([g,p])},[r,n]);function l(u){u.preventDefault()}return R(l,"preventDefault"),bf.createPortal(Re.createElement(cT,{in:n,nodeRef:i,timeout:500,classNames:{enter:J2.popupEnter,enterActive:J2.popupEnterActive,enterDone:J2.popupEnterDone,exitActive:J2.popupExit,exitDone:J2.popupExitActive}},Re.createElement("section",{ref:i,className:J2.popup,style:{left:a[0]+2,top:a[1]+2},onContextMenu:l},e)),s)}R(rS,"Popup$1");const j3e=E.createContext({top:0,bottom:0,left:0,right:0}),gm=8;function zK(t){const{position:e,width:n,height:r,containerHeight:i,containerWidth:a,direction:o="vertical"}=t;if(o==="vertical"||o.includes("top")||o.includes("bottom")){const{left:h,top:f,right:m,bottom:g}=e,p=o.indexOf("top")>-1?{top:Math.max(f-r,gm)}:{top:Math.min(g,i-r-gm)};let v;if(o.includes("center")){const _=(m-h-n)/2;v={left:h+_}}else v=h+n>a?{left:Math.max(m-n,gm)}:{left:Math.min(h,a-n-gm)};return{...p,...v}}const{left:s,top:l,right:u,bottom:c}=e,d=o==="left"?{left:Math.max(s-n,gm)}:{left:Math.min(u,a-n-gm)};return{...l+r>i?{top:Math.max(c-r,gm)}:{top:Math.min(l,i-r-gm)},...d}}R(zK,"calcPopupPosition");function iS(t){const{children:e,anchorRect:n,direction:r="vertical",onClickOutside:i,excludeOutside:a,excludeRects:o,onPinterEnter:s,onPointerLeave:l,onClick:u,hidden:c}=t,d=E.useRef(null),h=Ji(i??(()=>{})),[f,m]=E.useState({top:-9999,left:-9999}),g=E.useRef(o);g.current=o;const p=E.useMemo(()=>({...f}),[f]);return E.useEffect(()=>{requestAnimationFrame(()=>{if(!d.current)return;const{clientWidth:v,clientHeight:_}=d.current,C=window.innerWidth,S=window.innerHeight;m(zK({position:n,width:v,height:_,containerWidth:C,containerHeight:S,direction:r}))})},[n.left,n.top,n.bottom,n.right,r]),E.useEffect(()=>{const v=R(_=>{var C;if(a&&(a.indexOf(_.target)>-1||a.some(A=>A.contains(_.target))))return;const S=_.clientX,b=_.clientY,y=[n,...(C=g.current)!=null?C:[]];for(const A of y)if(S<=A.right&&S>=A.left&&b<=A.bottom&&b>=A.top)return;h(_)},"handleClickOther");return window.addEventListener("pointerdown",v),()=>window.removeEventListener("pointerdown",v)},[n,n.bottom,n.left,n.right,n.top,h,a]),Re.createElement("section",{onPointerEnter:s,onPointerLeave:l,ref:d,style:{...p,...c?{display:"none"}:null},className:J2.popupFixed,onPointerDown:R(v=>v.stopPropagation(),"onPointerDown"),onClick:u},Re.createElement(j3e.Provider,{value:n},e))}R(iS,"RectPopup");iS.calcPopupPosition=zK;iS.useContext=()=>E.useContext(j3e);const Yot="univer-radio",Xot="univer-radio-target-input",Got="univer-radio-target-inner",Qot="univer-radio-disabled",Kot="univer-radio-target",H9={radio:Yot,radioTargetInput:Xot,radioTargetInner:Got,radioDisabled:Qot,radioTarget:Kot};function gu(t){const{children:e,checked:n,value:r,disabled:i=!1,onChange:a}=t,o=E.useRef(null);function s(u){var c;if(u.stopPropagation(),!(!a||i))if(typeof r<"u")a&&a(r);else{const d=(c=o==null?void 0:o.current)==null?void 0:c.checked;a&&a(d)}}R(s,"handleChange");const l=hr(H9.radio,{[H9.radioDisabled]:i});return Re.createElement("label",{className:l},Re.createElement("span",{className:H9.radioTarget},Re.createElement("input",{ref:o,className:H9.radioTargetInput,type:"radio",checked:n,disabled:i,onChange:s}),Re.createElement("span",{className:H9.radioTargetInner})),Re.createElement("span",null,e))}R(gu,"Radio");const Zot="univer-radio-group",Jot="univer-radio-group-direction-vertical",pN={radioGroup:Zot,radioGroupDirectionVertical:Jot};function np(t){const{children:e,className:n,style:r,value:i,disabled:a=!1,direction:o="horizontal",onChange:s}=t,l=R(c=>{s(c)},"handleChange"),u=hr(n,pN.radioGroup,{[pN.radioGroupDirectionVertical]:o==="vertical"});return Re.createElement("div",{className:hr(pN.radioGroup,u),style:r},Re.Children.map(e,(c,d)=>Re.isValidElement(c)?Re.cloneElement(c,{key:d,children:c.props.children,value:c.props.value,checked:i===c.props.value,disabled:a??c.props.disabled,onChange:l}):c))}R(np,"RadioGroup");const est="univer-scrollbar-container",tst="univer-scrollbar-bar",nst="univer-scrollbar-bar-thumb",rst="univer-scrollbar-content",oy={scrollbarContainer:est,scrollbarBar:tst,scrollbarBarThumb:nst,scrollbarContent:rst};function $3e(t){const{children:e}=t,[n,r]=E.useState(!1),[i,a]=E.useState(0),[o,s]=E.useState(0),l=E.useCallback(_=>{_.preventDefault(),_.stopPropagation(),r(!0),s(_.clientY),a(h.current.scrollTop)},[]),u=E.useCallback(_=>{_.preventDefault(),_.stopPropagation(),n&&r(!1)},[n]),c=E.useCallback(_=>{if(_.preventDefault(),_.stopPropagation(),n){const{scrollHeight:C,offsetHeight:S}=h.current,b=S*(S/C),y=(_.clientY-o)*(S/b),A=Math.min(i+y,C-S);h.current.scrollTop=A}},[n]);E.useEffect(()=>(document.addEventListener("mousemove",c),document.addEventListener("mouseup",u),document.addEventListener("mouseleave",u),()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),document.removeEventListener("mouseleave",u)}),[c,u]);const d=E.useRef(null),h=E.useRef(null),[f,m]=E.useState(0),[g,p]=E.useState(0);E.useEffect(()=>{function _(){if(!d.current)return;const{height:S}=d.current.parentElement.getBoundingClientRect(),{scrollHeight:b}=h.current;m(S/b*100),d.current.style.height=`${Math.floor(S)}px`}R(_,"resize");function C(S){const{scrollTop:b,scrollHeight:y}=S.target,A=b/y*100;p(A)}return R(C,"handleScroll"),_(),new ResizeObserver(_).observe(d.current.parentElement),h.current.addEventListener("scroll",C),()=>{var S;(S=h.current)==null||S.removeEventListener("scroll",C)}},[]);function v(_){const{scrollHeight:C,offsetHeight:S}=h.current,b=S*(S/C),y=(_.clientY-o)*(S/b),A=Math.min(i+y,C-S);h.current.scrollTo({top:A,behavior:"smooth"})}return R(v,"handleJumpPosition"),Re.createElement("div",{ref:d,className:oy.scrollbarContainer},Re.createElement("div",{className:oy.scrollbarContent,ref:h,...t},e),f<100&&f>0&&Re.createElement("div",{className:oy.scrollbarBar,role:"scrollbar",onClick:v},Re.createElement("div",{className:oy.scrollbarBarThumb,style:{height:`${f}%`,top:`${g}%`},onMouseDown:l})))}R($3e,"Scrollbar");var fT=R(function(t){var e=t.className,n=t.customizeIcon,r=t.customizeIconProps,i=t.children,a=t.onMouseDown,o=t.onClick,s=typeof n=="function"?n(r):n;return E.createElement("span",{className:e,onMouseDown:R(function(l){l.preventDefault(),a==null||a(l)},"onMouseDown"),style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:o,"aria-hidden":!0},s!==void 0?s:E.createElement("span",{className:wn(e.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},i))},"TransBtn"),ist=R(function(t,e,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=Re.useMemo(function(){if(Ao(r)==="object")return r.clearIcon;if(i)return i},[r,i]),u=Re.useMemo(function(){return!!(!a&&r&&(n.length||o)&&!(s==="combobox"&&o===""))},[r,a,n.length,o,s]);return{allowClear:u,clearIcon:Re.createElement(fT,{className:"".concat(t,"-clear"),onMouseDown:e,customizeIcon:l},"×")}},"useAllowClear"),W3e=E.createContext(null);function z3e(){return E.useContext(W3e)}R(z3e,"useBaseProps");function q3e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=E.useState(!1),n=Pt(e,2),r=n[0],i=n[1],a=E.useRef(null),o=R(function(){window.clearTimeout(a.current)},"cancelLatest");E.useEffect(function(){return o},[]);var s=R(function(l,u){o(),a.current=window.setTimeout(function(){i(l),u&&u()},t)},"delaySetBool");return[r,s,o]}R(q3e,"useDelayReset");function qK(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=E.useRef(null),n=E.useRef(null);E.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||e.current===null)&&(e.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){e.current=null},t)}return R(r,"doLock"),[function(){return e.current},r]}R(qK,"useLock");function Y3e(t,e,n,r){var i=E.useRef(null);i.current={open:e,triggerOpen:n,customizedTrigger:r},E.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&t().filter(function(u){return u}).every(function(u){return!u.contains(l)&&u!==l})&&i.current.triggerOpen(!1)}}return R(a,"onGlobalMouseDown"),window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}R(Y3e,"useSelectTriggerControl");function X3e(t){return![Fr.ESC,Fr.SHIFT,Fr.BACKSPACE,Fr.TAB,Fr.WIN_KEY,Fr.ALT,Fr.META,Fr.WIN_KEY_RIGHT,Fr.CTRL,Fr.SEMICOLON,Fr.EQUALS,Fr.CAPS_LOCK,Fr.CONTEXT_MENU,Fr.F1,Fr.F2,Fr.F3,Fr.F4,Fr.F5,Fr.F6,Fr.F7,Fr.F8,Fr.F9,Fr.F10,Fr.F11,Fr.F12].includes(t)}R(X3e,"isValidateOpenKey");var ast=R(function(t,e){var n,r=t.prefixCls,i=t.id,a=t.inputElement,o=t.disabled,s=t.tabIndex,l=t.autoFocus,u=t.autoComplete,c=t.editable,d=t.activeDescendantId,h=t.value,f=t.maxLength,m=t.onKeyDown,g=t.onMouseDown,p=t.onChange,v=t.onPaste,_=t.onCompositionStart,C=t.onCompositionEnd,S=t.open,b=t.attrs,y=a||E.createElement("input",null),A=y,w=A.ref,P=A.props,M=P.onKeyDown,L=P.onChange,k=P.onMouseDown,O=P.onCompositionStart,$=P.onCompositionEnd,B=P.style;return"maxLength"in y.props,y=E.cloneElement(y,Dt(Dt(Dt({type:"search"},P),{},{id:i,ref:i2(e,w),disabled:o,tabIndex:s,autoComplete:u||"off",autoFocus:l,className:wn("".concat(r,"-selection-search-input"),(n=y)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":S?d:void 0},b),{},{value:c?h:"",maxLength:f,readOnly:!c,unselectable:c?null:"on",style:Dt(Dt({},B),{},{opacity:c?null:0}),onKeyDown:R(function(V){m(V),M&&M(V)},"onKeyDown"),onMouseDown:R(function(V){g(V),k&&k(V)},"onMouseDown"),onChange:R(function(V){p(V),L&&L(V)},"onChange"),onCompositionStart:R(function(V){_(V),O&&O(V)},"onCompositionStart"),onCompositionEnd:R(function(V){C(V),$&&$(V)},"onCompositionEnd"),onPaste:v})),y},"Input2"),G3e=E.forwardRef(ast);function YK(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}R(YK,"toArray");var ost=typeof window<"u"&&window.document&&window.document.documentElement,sst=ost;function Q3e(t){return t!=null}R(Q3e,"hasValue");function K3e(t){return!t&&t!==0}R(K3e,"isComboNoValue");function D$(t){return["string","number"].includes(Ao(t))}R(D$,"isTitleType$1");function XK(t){var e=void 0;return t&&(D$(t.title)?e=t.title.toString():D$(t.label)&&(e=t.label.toString())),e}R(XK,"getTitle");function Z3e(t,e){sst?E.useLayoutEffect(t,e):E.useEffect(t,e)}R(Z3e,"useLayoutEffect");function J3e(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}R(J3e,"itemKey");var Doe=R(function(t){t.preventDefault(),t.stopPropagation()},"onPreventMouseDown"),lst=R(function(t){var e=t.id,n=t.prefixCls,r=t.values,i=t.open,a=t.searchValue,o=t.autoClearSearchValue,s=t.inputRef,l=t.placeholder,u=t.disabled,c=t.mode,d=t.showSearch,h=t.autoFocus,f=t.autoComplete,m=t.activeDescendantId,g=t.tabIndex,p=t.removeIcon,v=t.maxTagCount,_=t.maxTagTextLength,C=t.maxTagPlaceholder,S=C===void 0?function(De){return"+ ".concat(De.length," ...")}:C,b=t.tagRender,y=t.onToggleOpen,A=t.onRemove,w=t.onInputChange,P=t.onInputPaste,M=t.onInputKeyDown,L=t.onInputMouseDown,k=t.onInputCompositionStart,O=t.onInputCompositionEnd,$=E.useRef(null),B=E.useState(0),V=Pt(B,2),X=V[0],z=V[1],F=E.useState(!1),H=Pt(F,2),W=H[0],K=H[1],G="".concat(n,"-selection"),te=i||c==="multiple"&&o===!1||c==="tags"?a:"",Y=c==="tags"||c==="multiple"&&o===!1||d&&(i||W);Z3e(function(){z($.current.scrollWidth)},[te]);var ae=R(function(De,Ee,ye,Ve,ke){return E.createElement("span",{title:XK(De),className:wn("".concat(G,"-item"),pn({},"".concat(G,"-item-disabled"),ye))},E.createElement("span",{className:"".concat(G,"-item-content")},Ee),Ve&&E.createElement(fT,{className:"".concat(G,"-item-remove"),onMouseDown:Doe,onClick:ke,customizeIcon:p},"×"))},"defaultRenderSelector"),ie=R(function(De,Ee,ye,Ve,ke,Ke){var $e=R(function(Fe){Doe(Fe),y(!i)},"onMouseDown");return E.createElement("span",{onMouseDown:$e},b({label:Ee,value:De,disabled:ye,closable:Ve,onClose:ke,isMaxTag:!!Ke}))},"customizeRenderSelector"),ne=R(function(De){var Ee=De.disabled,ye=De.label,Ve=De.value,ke=!u&&!Ee,Ke=ye;if(typeof _=="number"&&(typeof ye=="string"||typeof ye=="number")){var $e=String(Ke);$e.length>_&&(Ke="".concat($e.slice(0,_),"..."))}var Fe=R(function(He){He&&He.stopPropagation(),A(De)},"onClose");return typeof b=="function"?ie(Ve,Ke,Ee,ke,Fe):ae(De,Ke,Ee,ke,Fe)},"renderItem"),de=R(function(De){var Ee=typeof S=="function"?S(De):S;return typeof b=="function"?ie(void 0,Ee,!1,!1,void 0,!0):ae({title:Ee},Ee,!1)},"renderRest"),_e=E.createElement("div",{className:"".concat(G,"-search"),style:{width:X},onFocus:R(function(){K(!0)},"onFocus"),onBlur:R(function(){K(!1)},"onBlur")},E.createElement(G3e,{ref:s,open:i,prefixCls:n,id:e,inputElement:null,disabled:u,autoFocus:h,autoComplete:f,editable:Y,activeDescendantId:m,value:te,onKeyDown:M,onMouseDown:L,onChange:w,onPaste:P,onCompositionStart:k,onCompositionEnd:O,tabIndex:g,attrs:yf(t,!0)}),E.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},te," ")),Pe=E.createElement(od,{prefixCls:"".concat(G,"-overflow"),data:r,renderItem:ne,renderRest:de,suffix:_e,itemKey:J3e,maxCount:v});return E.createElement(E.Fragment,null,Pe,!r.length&&!te&&E.createElement("span",{className:"".concat(G,"-placeholder")},l))},"SelectSelector"),ust=R(function(t){var e=t.inputElement,n=t.prefixCls,r=t.id,i=t.inputRef,a=t.disabled,o=t.autoFocus,s=t.autoComplete,l=t.activeDescendantId,u=t.mode,c=t.open,d=t.values,h=t.placeholder,f=t.tabIndex,m=t.showSearch,g=t.searchValue,p=t.activeValue,v=t.maxLength,_=t.onInputKeyDown,C=t.onInputMouseDown,S=t.onInputChange,b=t.onInputPaste,y=t.onInputCompositionStart,A=t.onInputCompositionEnd,w=t.title,P=E.useState(!1),M=Pt(P,2),L=M[0],k=M[1],O=u==="combobox",$=O||m,B=d[0],V=g||"";O&&p&&!L&&(V=p),E.useEffect(function(){O&&k(!1)},[O,p]);var X=u!=="combobox"&&!c&&!m?!1:!!V,z=w===void 0?XK(B):w,F=E.useMemo(function(){return B?null:E.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:X?{visibility:"hidden"}:void 0},h)},[B,X,h,n]);return E.createElement(E.Fragment,null,E.createElement("span",{className:"".concat(n,"-selection-search")},E.createElement(G3e,{ref:i,prefixCls:n,id:r,open:c,inputElement:e,disabled:a,autoFocus:o,autoComplete:s,editable:$,activeDescendantId:l,value:V,onKeyDown:_,onMouseDown:C,onChange:R(function(H){k(!0),S(H)},"onChange"),onPaste:b,onCompositionStart:y,onCompositionEnd:A,tabIndex:f,attrs:yf(t,!0),maxLength:O?v:void 0})),!O&&B?E.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:X?{visibility:"hidden"}:void 0},B.label):null,F)},"SingleSelector"),cst=R(function(t,e){var n=E.useRef(null),r=E.useRef(!1),i=t.prefixCls,a=t.open,o=t.mode,s=t.showSearch,l=t.tokenWithEnter,u=t.disabled,c=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,f=t.onToggleOpen,m=t.onInputKeyDown,g=t.domRef;E.useImperativeHandle(e,function(){return{focus:R(function(V){n.current.focus(V)},"focus"),blur:R(function(){n.current.blur()},"blur")}});var p=qK(0),v=Pt(p,2),_=v[0],C=v[1],S=R(function(V){var X=V.which;(X===Fr.UP||X===Fr.DOWN)&&V.preventDefault(),m&&m(V),X===Fr.ENTER&&o==="tags"&&!r.current&&!a&&(h==null||h(V.target.value)),X3e(X)&&f(!0)},"onInternalInputKeyDown2"),b=R(function(){C(!0)},"onInternalInputMouseDown2"),y=E.useRef(null),A=R(function(V){d(V,!0,r.current)!==!1&&f(!0)},"triggerOnSearch2"),w=R(function(){r.current=!0},"onInputCompositionStart2"),P=R(function(V){r.current=!1,o!=="combobox"&&A(V.target.value)},"onInputCompositionEnd2"),M=R(function(V){var X=V.target.value;if(l&&y.current&&/[\r\n]/.test(y.current)){var z=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");X=X.replace(z,y.current)}y.current=null,A(X)},"onInputChange2"),L=R(function(V){var X=V.clipboardData,z=X==null?void 0:X.getData("text");y.current=z||""},"onInputPaste2"),k=R(function(V){var X=V.target;if(X!==n.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){n.current.focus()}):n.current.focus()}},"onClick2"),O=R(function(V){var X=_();V.target!==n.current&&!X&&!(o==="combobox"&&u)&&V.preventDefault(),(o!=="combobox"&&(!s||!X)||!a)&&(a&&c!==!1&&d("",!0,!1),f())},"onMouseDown2"),$={inputRef:n,onInputKeyDown:S,onInputMouseDown:b,onInputChange:M,onInputPaste:L,onInputCompositionStart:w,onInputCompositionEnd:P},B=o==="multiple"||o==="tags"?E.createElement(lst,fr({},t,$)):E.createElement(ust,fr({},t,$));return E.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:k,onMouseDown:O},B)},"Selector2"),dst=E.forwardRef(cst),hst=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fst=R(function(t){var e=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"}}},"getBuiltInPlacements2"),mst=R(function(t,e){var n=t.prefixCls;t.disabled;var r=t.visible,i=t.children,a=t.popupElement,o=t.animation,s=t.transitionName,l=t.dropdownStyle,u=t.dropdownClassName,c=t.direction,d=c===void 0?"ltr":c,h=t.placement,f=t.builtinPlacements,m=t.dropdownMatchSelectWidth,g=t.dropdownRender,p=t.dropdownAlign,v=t.getPopupContainer,_=t.empty,C=t.getTriggerDOMNode,S=t.onPopupVisibleChange,b=t.onPopupMouseEnter,y=Ka(t,hst),A="".concat(n,"-dropdown"),w=a;g&&(w=g(a));var P=E.useMemo(function(){return f||fst(m)},[f,m]),M=o?"".concat(A,"-").concat(o):s,L=typeof m=="number",k=E.useMemo(function(){return L?null:m===!1?"minWidth":"width"},[m,L]),O=l;L&&(O=Dt(Dt({},O),{},{width:m}));var $=E.useRef(null);return E.useImperativeHandle(e,function(){return{getPopupElement:R(function(){var B;return(B=$.current)===null||B===void 0?void 0:B.popupElement},"getPopupElement")}}),E.createElement(zC,fr({},y,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:h||(d==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:A,popupTransitionName:M,popup:E.createElement("div",{onMouseEnter:b},w),ref:$,stretch:k,popupAlign:p,popupVisible:r,getPopupContainer:v,popupClassName:wn(u,pn({},"".concat(A,"-empty"),_)),popupStyle:O,getTriggerDOMNode:C,onPopupVisibleChange:S}),i)},"SelectTrigger2"),gst=E.forwardRef(mst);function e6e(t){return PQ(t)||eK(t)||NM(t)||MQ()}R(e6e,"_toArray");function I$(t,e){var n=t.key,r;return"value"in t&&(r=t.value),n??(r!==void 0?r:"rc-index-key-".concat(e))}R(I$,"getKey");function iD(t){return typeof t<"u"&&!Number.isNaN(t)}R(iD,"isValidCount");function GK(t,e){var n=t||{},r=n.label,i=n.value,a=n.options,o=n.groupLabel,s=r||(e?"children":"label");return{label:s,value:i||"value",options:a||"options",groupLabel:o||s}}R(GK,"fillFieldNames");function t6e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,i=[],a=GK(n,!1),o=a.label,s=a.value,l=a.options,u=a.groupLabel;function c(d,h){Array.isArray(d)&&d.forEach(function(f){if(h||!(l in f)){var m=f[s];i.push({key:I$(f,i.length),groupOption:h,data:f,label:f[o],value:m})}else{var g=f[u];g===void 0&&r&&(g=f.label),i.push({key:I$(f,i.length),group:!0,data:f,label:g}),c(f[l],!0)}})}return R(c,"dig"),c(t,!1),i}R(t6e,"flattenOptions");function aD(t){var e=Dt({},t);return"props"in e||Object.defineProperty(e,"props",{get:R(function(){return Yf(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e},"get")}),e}R(aD,"injectPropsWithOption");var pst=R(function(t,e,n){if(!e||!e.length)return null;var r=!1,i=R(function o(s,l){var u=e6e(l),c=u[0],d=u.slice(1);if(!c)return[s];var h=s.split(c);return r=r||h.length>1,h.reduce(function(f,m){return[].concat(Zi(f),Zi(o(m,d)))},[]).filter(Boolean)},"separate"),a=i(t,e);return r?typeof n<"u"?a.slice(0,n):a:null},"getSeparatedContent"),QK=E.createContext(null);function n6e(t){var e=t.visible,n=t.values;if(!e)return null;var r=50;return E.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Ao(a))?a:o}).join(", ")),n.length>r?", ...":null)}R(n6e,"Polite");var vst=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_st=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],P$=R(function(t){return t==="tags"||t==="multiple"},"isMultiple2"),Cst=E.forwardRef(function(t,e){var n,r=t.id,i=t.prefixCls,a=t.className,o=t.showSearch,s=t.tagRender,l=t.direction,u=t.omitDomProps,c=t.displayValues,d=t.onDisplayValuesChange,h=t.emptyOptions,f=t.notFoundContent,m=f===void 0?"Not Found":f,g=t.onClear,p=t.mode,v=t.disabled,_=t.loading,C=t.getInputElement,S=t.getRawInputElement,b=t.open,y=t.defaultOpen,A=t.onDropdownVisibleChange,w=t.activeValue,P=t.onActiveValueChange,M=t.activeDescendantId,L=t.searchValue,k=t.autoClearSearchValue,O=t.onSearch,$=t.onSearchSplit,B=t.tokenSeparators,V=t.allowClear,X=t.suffixIcon,z=t.clearIcon,F=t.OptionList,H=t.animation,W=t.transitionName,K=t.dropdownStyle,G=t.dropdownClassName,te=t.dropdownMatchSelectWidth,Y=t.dropdownRender,ae=t.dropdownAlign,ie=t.placement,ne=t.builtinPlacements,de=t.getPopupContainer,_e=t.showAction,Pe=_e===void 0?[]:_e,De=t.onFocus,Ee=t.onBlur,ye=t.onKeyUp,Ve=t.onKeyDown,ke=t.onMouseDown,Ke=Ka(t,vst),$e=P$(p),Fe=(o!==void 0?o:$e)||p==="combobox",He=Dt({},Ke);_st.forEach(function(Ue){delete He[Ue]}),u==null||u.forEach(function(Ue){delete He[Ue]});var ct=E.useState(!1),_t=Pt(ct,2),Ye=_t[0],Ot=_t[1];E.useEffect(function(){Ot(iK())},[]);var An=E.useRef(null),Ut=E.useRef(null),Jt=E.useRef(null),dn=E.useRef(null),Sn=E.useRef(null),hn=E.useRef(!1),tr=q3e(),en=Pt(tr,3),bt=en[0],ue=en[1],ce=en[2];E.useImperativeHandle(e,function(){var Ue,rt;return{focus:(Ue=dn.current)===null||Ue===void 0?void 0:Ue.focus,blur:(rt=dn.current)===null||rt===void 0?void 0:rt.blur,scrollTo:R(function(yt){var Rt;return(Rt=Sn.current)===null||Rt===void 0?void 0:Rt.scrollTo(yt)},"scrollTo"),nativeElement:An.current||Ut.current}});var pe=E.useMemo(function(){var Ue;if(p!=="combobox")return L;var rt=(Ue=c[0])===null||Ue===void 0?void 0:Ue.value;return typeof rt=="string"||typeof rt=="number"?String(rt):""},[L,p,c]),Ae=p==="combobox"&&typeof C=="function"&&C()||null,je=typeof S=="function"&&S(),tt=T7(Ut,je==null||(n=je.props)===null||n===void 0?void 0:n.ref),Qe=E.useState(!1),nt=Pt(Qe,2),we=nt[0],Ze=nt[1];da(function(){Ze(!0)},[]);var ht=Ho(!1,{defaultValue:y,value:b}),pt=Pt(ht,2),Mt=pt[0],xt=pt[1],st=we?Mt:!1,Be=!m&&h;(v||Be&&st&&p==="combobox")&&(st=!1);var vt=Be?!1:st,qt=E.useCallback(function(Ue){var rt=Ue!==void 0?Ue:!st;v||(xt(rt),st!==rt&&(A==null||A(rt)))},[v,st,xt,A]),Lt=E.useMemo(function(){return(B||[]).some(function(Ue){return[` |
|
|
`,`\r |
|
|
`].includes(Ue)})},[B]),zt=E.useContext(QK)||{},Yt=zt.maxCount,un=zt.rawValues,ir=R(function(Ue,rt,yt){if(!($e&&iD(Yt)&&(un==null?void 0:un.size)>=Yt)){var Rt=!0,Nt=Ue;P==null||P(null);var dt=pst(Ue,B,iD(Yt)?Yt-un.size:void 0),fn=yt?null:dt;return p!=="combobox"&&fn&&(Nt="",$==null||$(fn),qt(!1),Rt=!1),O&&pe!==Nt&&O(Nt,{source:rt?"typing":"effect"}),Rt}},"onInternalSearch2"),jr=R(function(Ue){!Ue||!Ue.trim()||O(Ue,{source:"submit"})},"onInternalSearchSubmit2");E.useEffect(function(){!st&&!$e&&p!=="combobox"&&ir("",!1,!1)},[st]),E.useEffect(function(){Mt&&v&&xt(!1),v&&!hn.current&&ue(!1)},[v]);var ln=qK(),Nr=Pt(ln,2),mn=Nr[0],rn=Nr[1],En=E.useRef(!1),Ft=R(function(Ue){var rt=mn(),yt=Ue.key,Rt=yt==="Enter";if(Rt&&(p!=="combobox"&&Ue.preventDefault(),st||qt(!0)),rn(!!pe),yt==="Backspace"&&!rt&&$e&&!pe&&c.length){for(var Nt=Zi(c),dt=null,fn=Nt.length-1;fn>=0;fn-=1){var sr=Nt[fn];if(!sr.disabled){Nt.splice(fn,1),dt=sr;break}}dt&&d(Nt,{type:"remove",values:[dt]})}for(var Wr=arguments.length,qr=new Array(Wr>1?Wr-1:0),Ri=1;Ri<Wr;Ri++)qr[Ri-1]=arguments[Ri];if(st&&(!Rt||!En.current)){var Ai;(Ai=Sn.current)===null||Ai===void 0||Ai.onKeyDown.apply(Ai,[Ue].concat(qr))}Rt&&(En.current=!0),Ve==null||Ve.apply(void 0,[Ue].concat(qr))},"onInternalKeyDown2"),$r=R(function(Ue){for(var rt=arguments.length,yt=new Array(rt>1?rt-1:0),Rt=1;Rt<rt;Rt++)yt[Rt-1]=arguments[Rt];if(st){var Nt;(Nt=Sn.current)===null||Nt===void 0||Nt.onKeyUp.apply(Nt,[Ue].concat(yt))}Ue.key==="Enter"&&(En.current=!1),ye==null||ye.apply(void 0,[Ue].concat(yt))},"onInternalKeyUp2"),br=R(function(Ue){var rt=c.filter(function(yt){return yt!==Ue});d(rt,{type:"remove",values:[Ue]})},"onSelectorRemove2"),Rn=E.useRef(!1),Qn=R(function(){ue(!0),v||(De&&!Rn.current&&De.apply(void 0,arguments),Pe.includes("focus")&&qt(!0)),Rn.current=!0},"onContainerFocus2"),vr=R(function(){hn.current=!0,ue(!1,function(){Rn.current=!1,hn.current=!1,qt(!1)}),!v&&(pe&&(p==="tags"?O(pe,{source:"submit"}):p==="multiple"&&O("",{source:"blur"})),Ee&&Ee.apply(void 0,arguments))},"onContainerBlur2"),gi=[];E.useEffect(function(){return function(){gi.forEach(function(Ue){return clearTimeout(Ue)}),gi.splice(0,gi.length)}},[]);var pi=R(function(Ue){var rt,yt=Ue.target,Rt=(rt=Jt.current)===null||rt===void 0?void 0:rt.getPopupElement();if(Rt&&Rt.contains(yt)){var Nt=setTimeout(function(){var Wr=gi.indexOf(Nt);if(Wr!==-1&&gi.splice(Wr,1),ce(),!Ye&&!Rt.contains(document.activeElement)){var qr;(qr=dn.current)===null||qr===void 0||qr.focus()}});gi.push(Nt)}for(var dt=arguments.length,fn=new Array(dt>1?dt-1:0),sr=1;sr<dt;sr++)fn[sr-1]=arguments[sr];ke==null||ke.apply(void 0,[Ue].concat(fn))},"onInternalMouseDown2"),vi=E.useState({}),qi=Pt(vi,2),Yi=qi[1];function is(){Yi({})}R(is,"onPopupMouseEnter");var Do;je&&(Do=R(function(Ue){qt(Ue)},"onTriggerVisibleChange2")),Y3e(function(){var Ue;return[An.current,(Ue=Jt.current)===null||Ue===void 0?void 0:Ue.getPopupElement()]},vt,qt,!!je);var oo=E.useMemo(function(){return Dt(Dt({},t),{},{notFoundContent:m,open:st,triggerOpen:vt,id:r,showSearch:Fe,multiple:$e,toggleOpen:qt})},[t,m,vt,st,r,Fe,$e,qt]),Ss=!!X||_,po;Ss&&(po=E.createElement(fT,{className:wn("".concat(i,"-arrow"),pn({},"".concat(i,"-arrow-loading"),_)),customizeIcon:X,customizeIconProps:{loading:_,searchValue:pe,open:st,focused:bt,showSearch:Fe}}));var vo=R(function(){var Ue;g==null||g(),(Ue=dn.current)===null||Ue===void 0||Ue.focus(),d([],{type:"clear",values:c}),ir("",!1,!1)},"onClearMouseDown2"),ll=ist(i,vo,c,V,z,v,pe,p),Jl=ll.allowClear,ve=ll.clearIcon,Me=E.createElement(F,{ref:Sn}),Te=wn(i,a,pn(pn(pn(pn(pn(pn(pn(pn(pn(pn({},"".concat(i,"-focused"),bt),"".concat(i,"-multiple"),$e),"".concat(i,"-single"),!$e),"".concat(i,"-allow-clear"),V),"".concat(i,"-show-arrow"),Ss),"".concat(i,"-disabled"),v),"".concat(i,"-loading"),_),"".concat(i,"-open"),st),"".concat(i,"-customize-input"),Ae),"".concat(i,"-show-search"),Fe)),ot=E.createElement(gst,{ref:Jt,disabled:v,prefixCls:i,visible:vt,popupElement:Me,animation:H,transitionName:W,dropdownStyle:K,dropdownClassName:G,direction:l,dropdownMatchSelectWidth:te,dropdownRender:Y,dropdownAlign:ae,placement:ie,builtinPlacements:ne,getPopupContainer:de,empty:h,getTriggerDOMNode:R(function(Ue){return Ut.current||Ue},"getTriggerDOMNode"),onPopupVisibleChange:Do,onPopupMouseEnter:is},je?E.cloneElement(je,{ref:tt}):E.createElement(dst,fr({},t,{domRef:Ut,prefixCls:i,inputElement:Ae,ref:dn,id:r,showSearch:Fe,autoClearSearchValue:k,mode:p,activeDescendantId:M,tagRender:s,values:c,open:st,onToggleOpen:qt,activeValue:w,searchValue:pe,onSearch:ir,onSearchSubmit:jr,onRemove:br,tokenWithEnter:Lt}))),Ge;return je?Ge=ot:Ge=E.createElement("div",fr({className:Te},He,{ref:An,onMouseDown:pi,onKeyDown:Ft,onKeyUp:$r,onFocus:Qn,onBlur:vr}),E.createElement(n6e,{visible:bt&&!st,values:c}),ot,po,Jl&&ve),E.createElement(W3e.Provider,{value:oo},Ge)}),r6e=R(function(){return null},"OptGroup");r6e.isSelectOptGroup=!0;var i6e=R(function(){return null},"Option");i6e.isSelectOption=!0;var a6e=E.forwardRef(function(t,e){var n=t.height,r=t.offsetY,i=t.offsetX,a=t.children,o=t.prefixCls,s=t.onInnerResize,l=t.innerProps,u=t.rtl,c=t.extra,d={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},h=Ui(Ui({},h),{},ki(ki(ki(ki(ki({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:d},E.createElement(Gf,{onResize:R(function(f){var m=f.offsetHeight;m&&s&&s()},"onResize")},E.createElement("div",bo({style:h,className:wn(ki({},"".concat(o,"-holder-inner"),o)),ref:e},l),a,c)))});a6e.displayName="Filler";function o6e(t){var e=t.children,n=t.setRef,r=E.useCallback(function(i){n(i)},[]);return E.cloneElement(e,{ref:r})}R(o6e,"Item");function s6e(t,e,n,r,i,a,o,s){var l=s.getKey;return t.slice(e,n+1).map(function(u,c){var d=e+c,h=o(u,d,{style:{width:r},offsetX:i}),f=l(u);return E.createElement(o6e,{key:f,setRef:R(function(m){return a(u,m)},"setRef")},h)})}R(s6e,"useChildren");function l6e(t,e,n){var r=t.length,i=e.length,a,o;if(r===0&&i===0)return null;r<i?(a=t,o=e):(a=e,o=t);var s={__EMPTY_ITEM__:!0};function l(m){return m!==void 0?n(m):s}R(l,"getItemKey");for(var u=null,c=Math.abs(r-i)!==1,d=0;d<o.length;d+=1){var h=l(a[d]),f=l(o[d]);if(h!==f){u=d,c=c||h!==l(o[d+1]);break}}return u===null?null:{index:u,multiple:c}}R(l6e,"findListDiffIndex");function u6e(t,e,n){var r=E.useState(t),i=Ur(r,2),a=i[0],o=i[1],s=E.useState(null),l=Ur(s,2),u=l[0],c=l[1];return E.useEffect(function(){var d=l6e(a||[],t||[],e);(d==null?void 0:d.index)!==void 0&&c(t[d.index]),o(t)},[t]),[u]}R(u6e,"useDiffItem");var Ioe=(typeof navigator>"u"?"undefined":el(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const c6e=R(function(t,e,n,r){var i=E.useRef(!1),a=E.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}R(o,"lockScroll");var s=E.useRef({top:t,bottom:e,left:n,right:r});return s.current.top=t,s.current.bottom=e,s.current.left=n,s.current.right=r,function(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return c&&d?(clearTimeout(a.current),i.current=!1):(!d||i.current)&&o(),!i.current&&d}},"useOriginScroll");function d6e(t,e,n,r,i,a,o){var s=E.useRef(0),l=E.useRef(null),u=E.useRef(null),c=E.useRef(!1),d=c6e(e,n,r,i);function h(_,C){Wi.cancel(l.current),s.current+=C,u.current=C,!d(!1,C)&&(Ioe||_.preventDefault(),l.current=Wi(function(){var S=c.current?10:1;o(s.current*S),s.current=0}))}R(h,"onWheelY");function f(_,C){o(C,!0),Ioe||_.preventDefault()}R(f,"onWheelX");var m=E.useRef(null),g=E.useRef(null);function p(_){if(t){Wi.cancel(g.current),g.current=Wi(function(){m.current=null},2);var C=_.deltaX,S=_.deltaY,b=_.shiftKey,y=C,A=S;(m.current==="sx"||!m.current&&b&&S&&!C)&&(y=S,A=0,m.current="sx");var w=Math.abs(y),P=Math.abs(A);m.current===null&&(m.current=a&&w>P?"x":"y"),m.current==="y"?h(_,A):f(_,y)}}R(p,"onWheel");function v(_){t&&(c.current=_.detail===u.current)}return R(v,"onFireFoxScroll"),[p,v]}R(d6e,"useFrameWheel");function h6e(t,e,n,r){var i=E.useMemo(function(){return[new Map,[]]},[t,n.id,r]),a=Ur(i,2),o=a[0],s=a[1],l=R(function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=o.get(u),h=o.get(c);if(d===void 0||h===void 0)for(var f=t.length,m=s.length;m<f;m+=1){var g,p=t[m],v=e(p);o.set(v,m);var _=(g=n.get(v))!==null&&g!==void 0?g:r;if(s[m]=(s[m-1]||0)+_,v===u&&(d=m),v===c&&(h=m),d!==void 0&&h!==void 0)break}return{top:s[d-1]||0,bottom:s[h]}},"getSize");return l}R(h6e,"useGetSize");var Sst=function(){function t(){$C(this,t),ki(this,"maps",void 0),ki(this,"id",0),this.maps=Object.create(null)}return R(t,"CacheMap"),WC(t,[{key:"set",value:R(function(e,n){this.maps[e]=n,this.id+=1},"set")},{key:"get",value:R(function(e){return this.maps[e]},"get")}]),t}();function f6e(t,e,n){var r=E.useState(0),i=Ur(r,2),a=i[0],o=i[1],s=E.useRef(new Map),l=E.useRef(new Sst),u=E.useRef();function c(){Wi.cancel(u.current)}R(c,"cancelRaf");function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var m=R(function(){s.current.forEach(function(g,p){if(g&&g.offsetParent){var v=q6(g),_=v.offsetHeight;l.current.get(p)!==_&&l.current.set(p,v.offsetHeight)}}),o(function(g){return g+1})},"doCollect");f?m():u.current=Wi(m)}R(d,"collectHeight");function h(f,m){var g=t(f);s.current.get(g),m?(s.current.set(g,m),d()):s.current.delete(g)}return R(h,"setInstanceRef"),E.useEffect(function(){return c},[]),[h,d,l.current,a]}R(f6e,"useHeights");var Poe=14/15;function m6e(t,e,n){var r=E.useRef(!1),i=E.useRef(0),a=E.useRef(0),o=E.useRef(null),s=E.useRef(null),l,u=R(function(h){if(r.current){var f=Math.ceil(h.touches[0].pageX),m=Math.ceil(h.touches[0].pageY),g=i.current-f,p=a.current-m,v=Math.abs(g)>Math.abs(p);v?i.current=f:a.current=m,n(v,v?g:p)&&h.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){v?g*=Poe:p*=Poe;var _=Math.floor(v?g:p);(!n(v,_,!0)||Math.abs(_)<=.1)&&clearInterval(s.current)},16)}},"onTouchMove"),c=R(function(){r.current=!1,l()},"onTouchEnd"),d=R(function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",u,{passive:!1}),o.current.addEventListener("touchend",c,{passive:!0}))},"onTouchStart");l=R(function(){o.current&&(o.current.removeEventListener("touchmove",u),o.current.removeEventListener("touchend",c))},"cleanUpEvents"),da(function(){return t&&e.current.addEventListener("touchstart",d,{passive:!0}),function(){var h;(h=e.current)===null||h===void 0||h.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[t])}R(m6e,"useMobileTouchMove");var bst=10;function g6e(t,e,n,r,i,a,o,s){var l=E.useRef(),u=E.useState(null),c=Ur(u,2),d=c[0],h=c[1];return da(function(){if(d&&d.times<bst){if(!t.current){h(function(F){return Ui({},F)});return}a();var f=d.targetAlign,m=d.originAlign,g=d.index,p=d.offset,v=t.current.clientHeight,_=!1,C=f,S=null;if(v){for(var b=f||m,y=0,A=0,w=0,P=Math.min(e.length-1,g),M=0;M<=P;M+=1){var L=i(e[M]);A=y;var k=n.get(L);w=A+(k===void 0?r:k),y=w}for(var O=b==="top"?p:v-p,$=P;$>=0;$-=1){var B=i(e[$]),V=n.get(B);if(V===void 0){_=!0;break}if(O-=V,O<=0)break}switch(b){case"top":S=A-p;break;case"bottom":S=w-v+p;break;default:{var X=t.current.scrollTop,z=X+v;A<X?C="top":w>z&&(C="bottom")}}S!==null&&o(S),S!==d.lastTop&&(_=!0)}_&&h(Ui(Ui({},d),{},{times:d.times+1,targetAlign:C,lastTop:S}))}},[d,t.current]),function(f){if(f==null){s();return}if(Wi.cancel(l.current),typeof f=="number")o(f);else if(f&&el(f)==="object"){var m,g=f.align;"index"in f?m=f.index:m=e.findIndex(function(_){return i(_)===f.key});var p=f.offset,v=p===void 0?0:p;h({times:0,index:m,offset:v,originAlign:g})}}}R(g6e,"useScrollTo");function M$(t,e){var n="touches"in t?t.touches[0]:t;return n[e?"pageX":"pageY"]}R(M$,"getPageXY");var Moe=E.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,i=t.scrollOffset,a=t.scrollRange,o=t.onStartMove,s=t.onStopMove,l=t.onScroll,u=t.horizontal,c=t.spinSize,d=t.containerSize,h=t.style,f=t.thumbStyle,m=E.useState(!1),g=Ur(m,2),p=g[0],v=g[1],_=E.useState(null),C=Ur(_,2),S=C[0],b=C[1],y=E.useState(null),A=Ur(y,2),w=A[0],P=A[1],M=!r,L=E.useRef(),k=E.useRef(),O=E.useState(!1),$=Ur(O,2),B=$[0],V=$[1],X=E.useRef(),z=R(function(){clearTimeout(X.current),V(!0),X.current=setTimeout(function(){V(!1)},3e3)},"delayHidden2"),F=a-d||0,H=d-c||0,W=E.useMemo(function(){if(i===0||F===0)return 0;var _e=i/F;return _e*H},[i,F,H]),K=R(function(_e){_e.stopPropagation(),_e.preventDefault()},"onContainerMouseDown2"),G=E.useRef({top:W,dragging:p,pageY:S,startTop:w});G.current={top:W,dragging:p,pageY:S,startTop:w};var te=R(function(_e){v(!0),b(M$(_e,u)),P(G.current.top),o(),_e.stopPropagation(),_e.preventDefault()},"onThumbMouseDown2");E.useEffect(function(){var _e=R(function(Ee){Ee.preventDefault()},"onScrollbarTouchStart2"),Pe=L.current,De=k.current;return Pe.addEventListener("touchstart",_e,{passive:!1}),De.addEventListener("touchstart",te,{passive:!1}),function(){Pe.removeEventListener("touchstart",_e),De.removeEventListener("touchstart",te)}},[]);var Y=E.useRef();Y.current=F;var ae=E.useRef();ae.current=H,E.useEffect(function(){if(p){var _e,Pe=R(function(Ee){var ye=G.current,Ve=ye.dragging,ke=ye.pageY,Ke=ye.startTop;Wi.cancel(_e);var $e=L.current.getBoundingClientRect(),Fe=d/(u?$e.width:$e.height);if(Ve){var He=(M$(Ee,u)-ke)*Fe,ct=Ke;!M&&u?ct-=He:ct+=He;var _t=Y.current,Ye=ae.current,Ot=Ye?ct/Ye:0,An=Math.ceil(Ot*_t);An=Math.max(An,0),An=Math.min(An,_t),_e=Wi(function(){l(An,u)})}},"onMouseMove2"),De=R(function(){v(!1),s()},"onMouseUp2");return window.addEventListener("mousemove",Pe,{passive:!0}),window.addEventListener("touchmove",Pe,{passive:!0}),window.addEventListener("mouseup",De,{passive:!0}),window.addEventListener("touchend",De,{passive:!0}),function(){window.removeEventListener("mousemove",Pe),window.removeEventListener("touchmove",Pe),window.removeEventListener("mouseup",De),window.removeEventListener("touchend",De),Wi.cancel(_e)}}},[p]),E.useEffect(function(){return z(),function(){clearTimeout(X.current)}},[i]),E.useImperativeHandle(e,function(){return{delayHidden:z}});var ie="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:B?null:"hidden"},de={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(ne.height=8,ne.left=0,ne.right=0,ne.bottom=0,de.height="100%",de.width=c,M?de.left=W:de.right=W):(ne.width=8,ne.top=0,ne.bottom=0,M?ne.right=0:ne.left=0,de.width="100%",de.height=c,de.top=W),E.createElement("div",{ref:L,className:wn(ie,ki(ki(ki({},"".concat(ie,"-horizontal"),u),"".concat(ie,"-vertical"),!u),"".concat(ie,"-visible"),B)),style:Ui(Ui({},ne),h),onMouseDown:K,onMouseMove:z},E.createElement("div",{ref:k,className:wn("".concat(ie,"-thumb"),ki({},"".concat(ie,"-thumb-moving"),p)),style:Ui(Ui({},de),f),onMouseDown:te}))}),yst=20;function T$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,yst),Math.floor(n)}R(T$,"getSpinSize");var Est=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Rst=[],Ast={overflowY:"auto",overflowAnchor:"none"};function p6e(t,e){var n=t.prefixCls,r=n===void 0?"rc-virtual-list":n,i=t.className,a=t.height,o=t.itemHeight,s=t.fullHeight,l=s===void 0?!0:s,u=t.style,c=t.data,d=t.children,h=t.itemKey,f=t.virtual,m=t.direction,g=t.scrollWidth,p=t.component,v=p===void 0?"div":p,_=t.onScroll,C=t.onVirtualScroll,S=t.onVisibleChange,b=t.innerProps,y=t.extraRender,A=t.styles,w=sc(t,Est),P=E.useCallback(function(Rn){return typeof h=="function"?h(Rn):Rn==null?void 0:Rn[h]},[h]),M=f6e(P),L=Ur(M,4),k=L[0],O=L[1],$=L[2],B=L[3],V=!!(f!==!1&&a&&o),X=E.useMemo(function(){return Object.values($.maps).reduce(function(Rn,Qn){return Rn+Qn},0)},[$.id,$.maps]),z=V&&c&&(Math.max(o*c.length,X)>a||!!g),F=m==="rtl",H=wn(r,ki({},"".concat(r,"-rtl"),F),i),W=c||Rst,K=E.useRef(),G=E.useRef(),te=E.useRef(),Y=E.useState(0),ae=Ur(Y,2),ie=ae[0],ne=ae[1],de=E.useState(0),_e=Ur(de,2),Pe=_e[0],De=_e[1],Ee=E.useState(!1),ye=Ur(Ee,2),Ve=ye[0],ke=ye[1],Ke=R(function(){ke(!0)},"onScrollbarStartMove"),$e=R(function(){ke(!1)},"onScrollbarStopMove"),Fe={getKey:P};function He(Rn){ne(function(Qn){var vr;typeof Rn=="function"?vr=Rn(Qn):vr=Rn;var gi=we(vr);return K.current.scrollTop=gi,gi})}R(He,"syncScrollTop");var ct=E.useRef({start:0,end:W.length}),_t=E.useRef(),Ye=u6e(W,P),Ot=Ur(Ye,1),An=Ot[0];_t.current=An;var Ut=E.useMemo(function(){if(!V)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!z){var Rn;return{scrollHeight:((Rn=G.current)===null||Rn===void 0?void 0:Rn.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Qn=0,vr,gi,pi,vi=W.length,qi=0;qi<vi;qi+=1){var Yi=W[qi],is=P(Yi),Do=$.get(is),oo=Qn+(Do===void 0?o:Do);oo>=ie&&vr===void 0&&(vr=qi,gi=Qn),oo>ie+a&&pi===void 0&&(pi=qi),Qn=oo}return vr===void 0&&(vr=0,gi=0,pi=Math.ceil(a/o)),pi===void 0&&(pi=W.length-1),pi=Math.min(pi+1,W.length-1),{scrollHeight:Qn,start:vr,end:pi,offset:gi}},[z,V,ie,W,B,a]),Jt=Ut.scrollHeight,dn=Ut.start,Sn=Ut.end,hn=Ut.offset;ct.current.start=dn,ct.current.end=Sn;var tr=E.useState({width:0,height:a}),en=Ur(tr,2),bt=en[0],ue=en[1],ce=R(function(Rn){ue({width:Rn.offsetWidth,height:Rn.offsetHeight})},"onHolderResize"),pe=E.useRef(),Ae=E.useRef(),je=E.useMemo(function(){return T$(bt.width,g)},[bt.width,g]),tt=E.useMemo(function(){return T$(bt.height,Jt)},[bt.height,Jt]),Qe=Jt-a,nt=E.useRef(Qe);nt.current=Qe;function we(Rn){var Qn=Rn;return Number.isNaN(nt.current)||(Qn=Math.min(Qn,nt.current)),Qn=Math.max(Qn,0),Qn}R(we,"keepInRange");var Ze=ie<=0,ht=ie>=Qe,pt=Pe<=0,Mt=Pe>=g,xt=c6e(Ze,ht,pt,Mt),st=R(function(){return{x:F?-Pe:Pe,y:ie}},"getVirtualScrollInfo"),Be=E.useRef(st()),vt=Ji(function(Rn){if(C){var Qn=Ui(Ui({},st()),Rn);(Be.current.x!==Qn.x||Be.current.y!==Qn.y)&&(C(Qn),Be.current=Qn)}});function qt(Rn,Qn){var vr=Rn;Qn?(bf.flushSync(function(){De(vr)}),vt()):He(vr)}R(qt,"onScrollBar");function Lt(Rn){var Qn=Rn.currentTarget.scrollTop;Qn!==ie&&He(Qn),_==null||_(Rn),vt()}R(Lt,"onFallbackScroll");var zt=R(function(Rn){var Qn=Rn,vr=g?g-bt.width:0;return Qn=Math.max(Qn,0),Qn=Math.min(Qn,vr),Qn},"keepInHorizontalRange"),Yt=Ji(function(Rn,Qn){Qn?(bf.flushSync(function(){De(function(vr){var gi=vr+(F?-Rn:Rn);return zt(gi)})}),vt()):He(function(vr){var gi=vr+Rn;return gi})}),un=d6e(V,Ze,ht,pt,Mt,!!g,Yt),ir=Ur(un,2),jr=ir[0],ln=ir[1];m6e(V,K,function(Rn,Qn,vr){return xt(Rn,Qn,vr)?!1:(jr({preventDefault:R(function(){},"preventDefault"),deltaX:Rn?Qn:0,deltaY:Rn?0:Qn}),!0)}),da(function(){function Rn(vr){V&&vr.preventDefault()}R(Rn,"onMozMousePixelScroll");var Qn=K.current;return Qn.addEventListener("wheel",jr,{passive:!1}),Qn.addEventListener("DOMMouseScroll",ln,{passive:!0}),Qn.addEventListener("MozMousePixelScroll",Rn,{passive:!1}),function(){Qn.removeEventListener("wheel",jr),Qn.removeEventListener("DOMMouseScroll",ln),Qn.removeEventListener("MozMousePixelScroll",Rn)}},[V]),da(function(){if(g){var Rn=zt(Pe);De(Rn),vt({x:Rn})}},[bt.width,g]);var Nr=R(function(){var Rn,Qn;(Rn=pe.current)===null||Rn===void 0||Rn.delayHidden(),(Qn=Ae.current)===null||Qn===void 0||Qn.delayHidden()},"delayHideScrollBar"),mn=g6e(K,W,$,o,P,function(){return O(!0)},He,Nr);E.useImperativeHandle(e,function(){return{nativeElement:te.current,getScrollInfo:st,scrollTo:R(function(Rn){function Qn(vr){return vr&&el(vr)==="object"&&("left"in vr||"top"in vr)}R(Qn,"isPosScroll"),Qn(Rn)?(Rn.left!==void 0&&De(zt(Rn.left)),mn(Rn.top)):mn(Rn)},"scrollTo")}}),da(function(){if(S){var Rn=W.slice(dn,Sn+1);S(Rn,W)}},[dn,Sn,W]);var rn=h6e(W,P,$,o),En=y==null?void 0:y({start:dn,end:Sn,virtual:z,offsetX:Pe,offsetY:hn,rtl:F,getSize:rn}),Ft=s6e(W,dn,Sn,g,Pe,k,d,Fe),$r=null;a&&($r=Ui(ki({},l?"height":"maxHeight",a),Ast),V&&($r.overflowY="hidden",g&&($r.overflowX="hidden"),Ve&&($r.pointerEvents="none")));var br={};return F&&(br.dir="rtl"),E.createElement("div",bo({ref:te,style:Ui(Ui({},u),{},{position:"relative"}),className:H},br,w),E.createElement(Gf,{onResize:ce},E.createElement(v,{className:"".concat(r,"-holder"),style:$r,ref:K,onScroll:Lt,onMouseEnter:Nr},E.createElement(a6e,{prefixCls:r,height:Jt,offsetX:Pe,offsetY:hn,scrollWidth:g,onInnerResize:O,ref:G,innerProps:b,rtl:F,extra:En},Ft))),z&&Jt>a&&E.createElement(Moe,{ref:pe,prefixCls:r,scrollOffset:ie,scrollRange:Jt,rtl:F,onScroll:qt,onStartMove:Ke,onStopMove:$e,spinSize:tt,containerSize:bt.height,style:A==null?void 0:A.verticalScrollBar,thumbStyle:A==null?void 0:A.verticalScrollBarThumb}),z&&g>bt.width&&E.createElement(Moe,{ref:Ae,prefixCls:r,scrollOffset:Pe,scrollRange:g,rtl:F,onScroll:qt,onStartMove:Ke,onStopMove:$e,spinSize:je,containerSize:bt.width,horizontal:!0,style:A==null?void 0:A.horizontalScrollBar,thumbStyle:A==null?void 0:A.horizontalScrollBarThumb}))}R(p6e,"RawList");var v6e=E.forwardRef(p6e);v6e.displayName="List";function _6e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}R(_6e,"isPlatformMac");var wst=["disabled","title","children","style","className"];function L$(t){return typeof t=="string"||typeof t=="number"}R(L$,"isTitleType");var Dst=R(function(t,e){var n=z3e(),r=n.prefixCls,i=n.id,a=n.open,o=n.multiple,s=n.mode,l=n.searchValue,u=n.toggleOpen,c=n.notFoundContent,d=n.onPopupScroll,h=E.useContext(QK),f=h.maxCount,m=h.flattenOptions,g=h.onActiveValue,p=h.defaultActiveFirstOption,v=h.onSelect,_=h.menuItemSelectedIcon,C=h.rawValues,S=h.fieldNames,b=h.virtual,y=h.direction,A=h.listHeight,w=h.listItemHeight,P=h.optionRender,M="".concat(r,"-item"),L=xM(function(){return m},[a,m],function(de,_e){return _e[0]&&de[1]!==_e[1]}),k=E.useRef(null),O=E.useMemo(function(){return o&&iD(f)&&(C==null?void 0:C.size)>=f},[o,f,C==null?void 0:C.size]),$=R(function(de){de.preventDefault()},"onListMouseDown2"),B=R(function(de){var _e;(_e=k.current)===null||_e===void 0||_e.scrollTo(typeof de=="number"?{index:de}:de)},"scrollIntoView2"),V=R(function(de){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=L.length,De=0;De<Pe;De+=1){var Ee=(de+De*_e+Pe)%Pe,ye=L[Ee]||{},Ve=ye.group,ke=ye.data;if(!Ve&&!(ke!=null&&ke.disabled)&&!O)return Ee}return-1},"getEnabledActiveIndex2"),X=E.useState(function(){return V(0)}),z=Pt(X,2),F=z[0],H=z[1],W=R(function(de){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(de);var Pe={source:_e?"keyboard":"mouse"},De=L[de];if(!De){g(null,-1,Pe);return}g(De.value,de,Pe)},"setActive2");E.useEffect(function(){W(p!==!1?V(0):-1)},[L.length,l]);var K=E.useCallback(function(de){return C.has(de)&&s!=="combobox"},[s,Zi(C).toString(),C.size]);E.useEffect(function(){var de=setTimeout(function(){if(!o&&a&&C.size===1){var Pe=Array.from(C)[0],De=L.findIndex(function(Ee){var ye=Ee.data;return ye.value===Pe});De!==-1&&(W(De),B(De))}});if(a){var _e;(_e=k.current)===null||_e===void 0||_e.scrollTo(void 0)}return function(){return clearTimeout(de)}},[a,l]);var G=R(function(de){de!==void 0&&v(de,{selected:!C.has(de)}),o||u(!1)},"onSelectValue2");if(E.useImperativeHandle(e,function(){return{onKeyDown:R(function(de){var _e=de.which,Pe=de.ctrlKey;switch(_e){case Fr.N:case Fr.P:case Fr.UP:case Fr.DOWN:{var De=0;if(_e===Fr.UP?De=-1:_e===Fr.DOWN?De=1:_6e()&&Pe&&(_e===Fr.N?De=1:_e===Fr.P&&(De=-1)),De!==0){var Ee=V(F+De,De);B(Ee),W(Ee,!0)}break}case Fr.ENTER:{var ye,Ve=L[F];Ve&&!(Ve!=null&&(ye=Ve.data)!==null&&ye!==void 0&&ye.disabled)&&!O?G(Ve.value):G(void 0),a&&de.preventDefault();break}case Fr.ESC:u(!1),a&&de.stopPropagation()}},"onKeyDown"),onKeyUp:R(function(){},"onKeyUp"),scrollTo:R(function(de){B(de)},"scrollTo")}}),L.length===0)return E.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:$},c);var te=Object.keys(S).map(function(de){return S[de]}),Y=R(function(de){return de.label},"getLabel2");function ae(de,_e){var Pe=de.group;return{role:Pe?"presentation":"option",id:"".concat(i,"_list_").concat(_e)}}R(ae,"getItemAriaProps");var ie=R(function(de){var _e=L[de];if(!_e)return null;var Pe=_e.data||{},De=Pe.value,Ee=_e.group,ye=yf(Pe,!0),Ve=Y(_e);return _e?E.createElement("div",fr({"aria-label":typeof Ve=="string"&&!Ee?Ve:null},ye,{key:de},ae(_e,de),{"aria-selected":K(De)}),De):null},"renderItem2"),ne={role:"listbox",id:"".concat(i,"_list")};return E.createElement(E.Fragment,null,b&&E.createElement("div",fr({},ne,{style:{height:0,width:0,overflow:"hidden"}}),ie(F-1),ie(F),ie(F+1)),E.createElement(v6e,{itemKey:"key",ref:k,data:L,height:A,itemHeight:w,fullHeight:!1,onMouseDown:$,onScroll:d,virtual:b,direction:y,innerProps:b?null:ne},function(de,_e){var Pe=de.group,De=de.groupOption,Ee=de.data,ye=de.label,Ve=de.value,ke=Ee.key;if(Pe){var Ke,$e=(Ke=Ee.title)!==null&&Ke!==void 0?Ke:L$(ye)?ye.toString():void 0;return E.createElement("div",{className:wn(M,"".concat(M,"-group"),Ee.className),title:$e},ye!==void 0?ye:ke)}var Fe=Ee.disabled,He=Ee.title;Ee.children;var ct=Ee.style,_t=Ee.className,Ye=Ka(Ee,wst),Ot=kp(Ye,te),An=K(Ve),Ut=Fe||!An&&O,Jt="".concat(M,"-option"),dn=wn(M,Jt,_t,pn(pn(pn(pn({},"".concat(Jt,"-grouped"),De),"".concat(Jt,"-active"),F===_e&&!Ut),"".concat(Jt,"-disabled"),Ut),"".concat(Jt,"-selected"),An)),Sn=Y(de),hn=!_||typeof _=="function"||An,tr=typeof Sn=="number"?Sn:Sn||Ve,en=L$(tr)?tr.toString():void 0;return He!==void 0&&(en=He),E.createElement("div",fr({},yf(Ot),b?{}:ae(de,_e),{"aria-selected":An,className:dn,title:en,onMouseMove:R(function(){F===_e||Ut||W(_e)},"onMouseMove"),onClick:R(function(){Ut||G(Ve)},"onClick"),style:ct}),E.createElement("div",{className:"".concat(Jt,"-content")},typeof P=="function"?P(de,{index:_e}):tr),E.isValidElement(_)||An,hn&&E.createElement(fT,{className:"".concat(M,"-option-state"),customizeIcon:_,customizeIconProps:{value:Ve,disabled:Ut,isSelected:An}},An?"✓":null))}))},"OptionList2"),Ist=E.forwardRef(Dst);const Pst=R(function(t,e){var n=E.useRef({values:new Map,options:new Map}),r=E.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=t.map(function(d){if(d.label===void 0){var h;return Dt(Dt({},d),{},{label:(h=o.get(d.value))===null||h===void 0?void 0:h.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.get(d.value)||s.get(d.value))}),n.current.values=u,n.current.options=c,l},[t,e]),i=E.useCallback(function(a){return e.get(a)||n.current.options.get(a)},[e]);return[r,i]},"useCache");function OE(t,e){return YK(t).join("").toUpperCase().includes(e)}R(OE,"includes");const Mst=R(function(t,e,n,r,i){return E.useMemo(function(){if(!n||r===!1)return t;var a=e.options,o=e.label,s=e.value,l=[],u=typeof r=="function",c=n.toUpperCase(),d=u?r:function(f,m){return i?OE(m[i],c):m[a]?OE(m[o!=="children"?o:"label"],c):OE(m[s],c)},h=u?function(f){return aD(f)}:function(f){return f};return t.forEach(function(f){if(f[a]){var m=d(n,h(f));if(m)l.push(f);else{var g=f[a].filter(function(p){return d(n,h(p))});g.length&&l.push(Dt(Dt({},f),{},pn({},a,g)))}return}d(n,h(f))&&l.push(f)}),l},[t,r,i,n,e])},"useFilterOptions");var Toe=0,Tst=hd();function C6e(){var t;return Tst?(t=Toe,Toe+=1):t="TEST_OR_SSR",t}R(C6e,"getUUID");function S6e(t){var e=E.useState(),n=Pt(e,2),r=n[0],i=n[1];return E.useEffect(function(){i("rc_select_".concat(C6e()))},[]),t||r}R(S6e,"useId");var Lst=["children","value"],xst=["children"];function b6e(t){var e=t,n=e.key,r=e.props,i=r.children,a=r.value,o=Ka(r,Lst);return Dt({key:n,value:a!==void 0?a:n,children:i},o)}R(b6e,"convertNodeToOption");function KK(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return L4(t).map(function(n,r){if(!E.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,u=Ka(s,xst);return e||!a?b6e(n):Dt(Dt({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},u),{},{options:KK(l)})}).filter(function(n){return n})}R(KK,"convertChildrenToData");var Ost=R(function(t,e,n,r,i){return E.useMemo(function(){var a=t,o=!t;o&&(a=KK(e));var s=new Map,l=new Map,u=R(function(d,h,f){f&&typeof f=="string"&&d.set(h[f],h)},"setLabelOptions"),c=R(function d(h){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<h.length;m+=1){var g=h[m];!g[n.options]||f?(s.set(g[n.value],g),u(l,g,n.label),u(l,g,r),u(l,g,i)):d(g[n.options],!0)}},"dig");return c(a),{options:a,valueOptions:s,labelOptions:l}},[t,e,n,r,i])},"useOptions");function x$(t){var e=E.useRef();e.current=t;var n=E.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}R(x$,"useRefFunc");var Nst=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],kst=["inputValue"];function y6e(t){return!t||Ao(t)!=="object"}R(y6e,"isRawValue");var Fst=E.forwardRef(function(t,e){var n=t.id,r=t.mode,i=t.prefixCls,a=i===void 0?"rc-select":i,o=t.backfill,s=t.fieldNames,l=t.inputValue,u=t.searchValue,c=t.onSearch,d=t.autoClearSearchValue,h=d===void 0?!0:d,f=t.onSelect,m=t.onDeselect,g=t.dropdownMatchSelectWidth,p=g===void 0?!0:g,v=t.filterOption,_=t.filterSort,C=t.optionFilterProp,S=t.optionLabelProp,b=t.options,y=t.optionRender,A=t.children,w=t.defaultActiveFirstOption,P=t.menuItemSelectedIcon,M=t.virtual,L=t.direction,k=t.listHeight,O=k===void 0?200:k,$=t.listItemHeight,B=$===void 0?20:$,V=t.labelRender,X=t.value,z=t.defaultValue,F=t.labelInValue,H=t.onChange,W=t.maxCount,K=Ka(t,Nst),G=S6e(n),te=P$(r),Y=!!(!b&&A),ae=E.useMemo(function(){return v===void 0&&r==="combobox"?!1:v},[v,r]),ie=E.useMemo(function(){return GK(s,Y)},[JSON.stringify(s),Y]),ne=Ho("",{value:u!==void 0?u:l,postState:R(function(Lt){return Lt||""},"postState")}),de=Pt(ne,2),_e=de[0],Pe=de[1],De=Ost(b,A,ie,C,S),Ee=De.valueOptions,ye=De.labelOptions,Ve=De.options,ke=E.useCallback(function(Lt){var zt=YK(Lt);return zt.map(function(Yt){var un,ir,jr,ln,Nr;if(y6e(Yt))un=Yt;else{var mn;jr=Yt.key,ir=Yt.label,un=(mn=Yt.value)!==null&&mn!==void 0?mn:jr}var rn=Ee.get(un);if(rn){var En;ir===void 0&&(ir=rn==null?void 0:rn[S||ie.label]),jr===void 0&&(jr=(En=rn==null?void 0:rn.key)!==null&&En!==void 0?En:un),ln=rn==null?void 0:rn.disabled,Nr=rn==null?void 0:rn.title}return{label:ir,value:un,key:jr,disabled:ln,title:Nr}})},[ie,S,Ee]),Ke=Ho(z,{value:X}),$e=Pt(Ke,2),Fe=$e[0],He=$e[1],ct=E.useMemo(function(){var Lt,zt=te&&Fe===null?[]:Fe,Yt=ke(zt);return r==="combobox"&&K3e((Lt=Yt[0])===null||Lt===void 0?void 0:Lt.value)?[]:Yt},[Fe,ke,r,te]),_t=Pst(ct,Ee),Ye=Pt(_t,2),Ot=Ye[0],An=Ye[1],Ut=E.useMemo(function(){if(!r&&Ot.length===1){var Lt=Ot[0];if(Lt.value===null&&(Lt.label===null||Lt.label===void 0))return[]}return Ot.map(function(zt){var Yt;return Dt(Dt({},zt),{},{label:(Yt=typeof V=="function"?V(zt):zt.label)!==null&&Yt!==void 0?Yt:zt.value})})},[r,Ot,V]),Jt=E.useMemo(function(){return new Set(Ot.map(function(Lt){return Lt.value}))},[Ot]);E.useEffect(function(){if(r==="combobox"){var Lt,zt=(Lt=Ot[0])===null||Lt===void 0?void 0:Lt.value;Pe(Q3e(zt)?String(zt):"")}},[Ot]);var dn=x$(function(Lt,zt){var Yt=zt??Lt;return pn(pn({},ie.value,Lt),ie.label,Yt)}),Sn=E.useMemo(function(){if(r!=="tags")return Ve;var Lt=Zi(Ve),zt=R(function(Yt){return Ee.has(Yt)},"existOptions2");return Zi(Ot).sort(function(Yt,un){return Yt.value<un.value?-1:1}).forEach(function(Yt){var un=Yt.value;zt(un)||Lt.push(dn(un,Yt.label))}),Lt},[dn,Ve,Ee,Ot,r]),hn=Mst(Sn,ie,_e,ae,C),tr=E.useMemo(function(){return r!=="tags"||!_e||hn.some(function(Lt){return Lt[C||"value"]===_e})||hn.some(function(Lt){return Lt[ie.value]===_e})?hn:[dn(_e)].concat(Zi(hn))},[dn,C,r,hn,_e,ie]),en=R(function Lt(zt){var Yt=Zi(zt).sort(function(un,ir){return _(un,ir,{searchValue:_e})});return Yt.map(function(un){return Array.isArray(un.options)?Dt(Dt({},un),{},{options:un.options.length>0?Lt(un.options):un.options}):un})},"sorter2"),bt=E.useMemo(function(){return _?en(tr):tr},[tr,_,_e]),ue=E.useMemo(function(){return t6e(bt,{fieldNames:ie,childrenAsData:Y})},[bt,ie,Y]),ce=R(function(Lt){var zt=ke(Lt);if(He(zt),H&&(zt.length!==Ot.length||zt.some(function(ir,jr){var ln;return((ln=Ot[jr])===null||ln===void 0?void 0:ln.value)!==(ir==null?void 0:ir.value)}))){var Yt=F?zt:zt.map(function(ir){return ir.value}),un=zt.map(function(ir){return aD(An(ir.value))});H(te?Yt:Yt[0],te?un:un[0])}},"triggerChange2"),pe=E.useState(null),Ae=Pt(pe,2),je=Ae[0],tt=Ae[1],Qe=E.useState(0),nt=Pt(Qe,2),we=nt[0],Ze=nt[1],ht=w!==void 0?w:r!=="combobox",pt=E.useCallback(function(Lt,zt){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},un=Yt.source,ir=un===void 0?"keyboard":un;Ze(zt),o&&r==="combobox"&&Lt!==null&&ir==="keyboard"&&tt(String(Lt))},[o,r]),Mt=R(function(Lt,zt,Yt){var un=R(function(){var $r,br=An(Lt);return[F?{label:br==null?void 0:br[ie.label],value:Lt,key:($r=br==null?void 0:br.key)!==null&&$r!==void 0?$r:Lt}:Lt,aD(br)]},"getSelectEnt2");if(zt&&f){var ir=un(),jr=Pt(ir,2),ln=jr[0],Nr=jr[1];f(ln,Nr)}else if(!zt&&m&&Yt!=="clear"){var mn=un(),rn=Pt(mn,2),En=rn[0],Ft=rn[1];m(En,Ft)}},"triggerSelect2"),xt=x$(function(Lt,zt){var Yt,un=te?zt.selected:!0;un?Yt=te?[].concat(Zi(Ot),[Lt]):[Lt]:Yt=Ot.filter(function(ir){return ir.value!==Lt}),ce(Yt),Mt(Lt,un),r==="combobox"?tt(""):(!P$||h)&&(Pe(""),tt(""))}),st=R(function(Lt,zt){ce(Lt);var Yt=zt.type,un=zt.values;(Yt==="remove"||Yt==="clear")&&un.forEach(function(ir){Mt(ir.value,!1,Yt)})},"onDisplayValuesChange2"),Be=R(function(Lt,zt){if(Pe(Lt),tt(null),zt.source==="submit"){var Yt=(Lt||"").trim();if(Yt){var un=Array.from(new Set([].concat(Zi(Jt),[Yt])));ce(un),Mt(Yt,!0),Pe("")}return}zt.source!=="blur"&&(r==="combobox"&&ce(Lt),c==null||c(Lt))},"onInternalSearch2"),vt=R(function(Lt){var zt=Lt;r!=="tags"&&(zt=Lt.map(function(un){var ir=ye.get(un);return ir==null?void 0:ir.value}).filter(function(un){return un!==void 0}));var Yt=Array.from(new Set([].concat(Zi(Jt),Zi(zt))));ce(Yt),Yt.forEach(function(un){Mt(un,!0)})},"onInternalSearchSplit2"),qt=E.useMemo(function(){var Lt=M!==!1&&p!==!1;return Dt(Dt({},De),{},{flattenOptions:ue,onActiveValue:pt,defaultActiveFirstOption:ht,onSelect:xt,menuItemSelectedIcon:P,rawValues:Jt,fieldNames:ie,virtual:Lt,direction:L,listHeight:O,listItemHeight:B,childrenAsData:Y,maxCount:W,optionRender:y})},[W,De,ue,pt,ht,xt,P,Jt,ie,M,p,L,O,B,Y,y]);return E.createElement(QK.Provider,{value:qt},E.createElement(Cst,fr({},K,{id:G,prefixCls:a,ref:e,omitDomProps:kst,mode:r,displayValues:Ut,onDisplayValuesChange:st,direction:L,searchValue:_e,onSearch:Be,autoClearSearchValue:h,onSearchSplit:vt,dropdownMatchSelectWidth:p,OptionList:Ist,emptyOptions:!ue.length,activeValue:je,activeDescendantId:"".concat(G,"_list_").concat(we)})))}),ZK=Fst;ZK.Option=i6e;ZK.OptGroup=r6e;const Vst="univer-select",Bst="univer-select-borderless",Loe={select:Vst,selectBorderless:Bst};function md(t){const{value:e,options:n=[],onChange:r,style:i,className:a,mode:o,borderless:s=!1,dropdownRender:l,labelRender:u,open:c,dropdownStyle:d,onDropdownVisibleChange:h,disabled:f}=t,{mountContainer:m}=E.useContext(Nu),g=hr(a,{[Loe.selectBorderless]:s});return m&&Re.createElement(ZK,{mode:o,prefixCls:Loe.select,getPopupContainer:R(()=>m,"getPopupContainer"),options:n,value:e,menuItemSelectedIcon:null,suffixIcon:Re.createElement(Yme,null),onChange:r,style:i,className:g,dropdownRender:l,labelRender:u,open:c,dropdownStyle:d,onDropdownVisibleChange:h,disabled:f})}R(md,"Select");const Ust="univer-select-list",Hst="univer-select-list-item",jst="univer-select-list-item-icon",$st="univer-select-list-item-select",sy={selectList:Ust,selectListItem:Hst,selectListItemIcon:jst,selectListItemSelect:$st};function mT(t){const{value:e,options:n=[],hideCheckMark:r=!1,onChange:i,multiple:a,className:o,optionClassName:s}=t,l=Array.isArray(e)?e:[e];function u(c){const d=l.indexOf(c);a?d>-1?i(l.filter(h=>h===c)):i([...l,c]):d>-1?i(void 0):i(c)}return R(u,"handleSelect"),Re.createElement("ul",{className:hr(sy.selectList,o)},n.map((c,d)=>{const h=l.indexOf(c.value)>-1;return Re.createElement("li",{key:d,className:hr(sy.selectListItem,s,{[sy.selectListItemSelect]:h})},Re.createElement("a",{onClick:R(()=>u(c.value),"onClick")},!r&&Re.createElement("span",{className:sy.selectListItemIcon},h&&Re.createElement(bM,null)),Re.createElement("span",{style:{color:c.color}},c.label)))}))}R(mT,"SelectList");var xoe=R(function(t,e){if(!t)return null;var n={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return e?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},"calcThumbStyle2"),pm=R(function(t){return t!==void 0?"".concat(t,"px"):void 0},"toPX2");function E6e(t){var e=t.prefixCls,n=t.containerRef,r=t.value,i=t.getValueIndex,a=t.motionName,o=t.onMotionStart,s=t.onMotionEnd,l=t.direction,u=t.vertical,c=u===void 0?!1:u,d=E.useRef(null),h=E.useState(r),f=Pt(h,2),m=f[0],g=f[1],p=R(function($){var B,V=i($),X=(B=n.current)===null||B===void 0?void 0:B.querySelectorAll(".".concat(e,"-item"))[V];return(X==null?void 0:X.offsetParent)&&X},"findValueElement2"),v=E.useState(null),_=Pt(v,2),C=_[0],S=_[1],b=E.useState(null),y=Pt(b,2),A=y[0],w=y[1];da(function(){if(m!==r){var $=p(m),B=p(r),V=xoe($,c),X=xoe(B,c);g(r),S(V),w(X),$&&B?o():s()}},[r]);var P=E.useMemo(function(){if(c){var $;return pm(($=C==null?void 0:C.top)!==null&&$!==void 0?$:0)}return pm(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[c,l,C]),M=E.useMemo(function(){if(c){var $;return pm(($=A==null?void 0:A.top)!==null&&$!==void 0?$:0)}return pm(l==="rtl"?-(A==null?void 0:A.right):A==null?void 0:A.left)},[c,l,A]),L=R(function(){return c?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},"onAppearStart2"),k=R(function(){return c?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},"onAppearActive2"),O=R(function(){S(null),w(null),s()},"onVisibleChanged2");return!C||!A?null:E.createElement(Op,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:L,onAppearActive:k,onVisibleChanged:O},function($,B){var V=$.className,X=$.style,z=Dt(Dt({},X),{},{"--thumb-start-left":P,"--thumb-start-width":pm(C==null?void 0:C.width),"--thumb-active-left":M,"--thumb-active-width":pm(A==null?void 0:A.width),"--thumb-start-top":P,"--thumb-start-height":pm(C==null?void 0:C.height),"--thumb-active-top":M,"--thumb-active-height":pm(A==null?void 0:A.height)}),F={ref:i2(d,B),style:z,className:wn("".concat(e,"-thumb"),V)};return E.createElement("div",F)})}R(E6e,"MotionThumb");var Wst=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"];function R6e(t){if(typeof t.title<"u")return t.title;if(Ao(t.label)!=="object"){var e;return(e=t.label)===null||e===void 0?void 0:e.toString()}}R(R6e,"getValidTitle");function A6e(t){return t.map(function(e){if(Ao(e)==="object"&&e!==null){var n=R6e(e);return Dt(Dt({},e),{},{title:n})}return{label:e==null?void 0:e.toString(),title:e==null?void 0:e.toString(),value:e}})}R(A6e,"normalizeOptions");var zst=R(function(t){var e=t.prefixCls,n=t.className,r=t.disabled,i=t.checked,a=t.label,o=t.title,s=t.value,l=t.onChange,u=R(function(c){r||l(c,s)},"handleChange2");return E.createElement("label",{className:wn(n,pn({},"".concat(e,"-item-disabled"),r))},E.createElement("input",{className:"".concat(e,"-item-input"),type:"radio",disabled:r,checked:i,onChange:u}),E.createElement("div",{className:"".concat(e,"-item-label"),title:o,role:"option","aria-selected":i},a))},"InternalSegmentedOption2"),qst=E.forwardRef(function(t,e){var n,r,i=t.prefixCls,a=i===void 0?"rc-segmented":i,o=t.direction,s=t.vertical,l=t.options,u=l===void 0?[]:l,c=t.disabled,d=t.defaultValue,h=t.value,f=t.onChange,m=t.className,g=m===void 0?"":m,p=t.motionName,v=p===void 0?"thumb-motion":p,_=Ka(t,Wst),C=E.useRef(null),S=E.useMemo(function(){return i2(C,e)},[C,e]),b=E.useMemo(function(){return A6e(u)},[u]),y=Ho((n=b[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:d}),A=Pt(y,2),w=A[0],P=A[1],M=E.useState(!1),L=Pt(M,2),k=L[0],O=L[1],$=R(function(V,X){c||(P(X),f==null||f(X))},"handleChange2"),B=kp(_,["children"]);return E.createElement("div",fr({role:"listbox","aria-label":"segmented control"},B,{className:wn(a,(r={},pn(r,"".concat(a,"-rtl"),o==="rtl"),pn(r,"".concat(a,"-disabled"),c),pn(r,"".concat(a,"-vertical"),s),r),g),ref:S}),E.createElement("div",{className:"".concat(a,"-group")},E.createElement(E6e,{vertical:s,prefixCls:a,value:w,containerRef:C,motionName:"".concat(a,"-").concat(v),direction:o,getValueIndex:R(function(V){return b.findIndex(function(X){return X.value===V})},"getValueIndex"),onMotionStart:R(function(){O(!0)},"onMotionStart"),onMotionEnd:R(function(){O(!1)},"onMotionEnd")}),b.map(function(V){return E.createElement(zst,fr({},V,{key:V.value,prefixCls:a,className:wn(V.className,"".concat(a,"-item"),pn({},"".concat(a,"-item-selected"),V.value===w&&!k)),checked:V.value===w,onChange:$,disabled:!!c||!!V.disabled}))})))}),Yst=qst;const Xst="univer-segmented",Gst={segmented:Xst};E.forwardRef(R(function(t,e){return Re.createElement(Yst,{prefixCls:Gst.segmented,...t,ref:e})},"InnerSegmented"));function w6e(t){var e=t.children,n=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.className,o=t.style;return E.createElement("div",{className:wn("".concat(n,"-content"),a),style:o},E.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof e=="function"?e():e))}R(w6e,"Popup");var R3={shiftX:64,adjustY:1},A3={adjustX:1,shiftY:!0},xc=[0,0],Qst={left:{points:["cr","cl"],overflow:A3,offset:[-4,0],targetOffset:xc},right:{points:["cl","cr"],overflow:A3,offset:[4,0],targetOffset:xc},top:{points:["bc","tc"],overflow:R3,offset:[0,-4],targetOffset:xc},bottom:{points:["tc","bc"],overflow:R3,offset:[0,4],targetOffset:xc},topLeft:{points:["bl","tl"],overflow:R3,offset:[0,-4],targetOffset:xc},leftTop:{points:["tr","tl"],overflow:A3,offset:[-4,0],targetOffset:xc},topRight:{points:["br","tr"],overflow:R3,offset:[0,-4],targetOffset:xc},rightTop:{points:["tl","tr"],overflow:A3,offset:[4,0],targetOffset:xc},bottomRight:{points:["tr","br"],overflow:R3,offset:[0,4],targetOffset:xc},rightBottom:{points:["bl","br"],overflow:A3,offset:[4,0],targetOffset:xc},bottomLeft:{points:["tl","bl"],overflow:R3,offset:[0,4],targetOffset:xc},leftBottom:{points:["br","bl"],overflow:A3,offset:[-4,0],targetOffset:xc}},Kst=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Zst=R(function(t,e){var n=t.overlayClassName,r=t.trigger,i=r===void 0?["hover"]:r,a=t.mouseEnterDelay,o=a===void 0?0:a,s=t.mouseLeaveDelay,l=s===void 0?.1:s,u=t.overlayStyle,c=t.prefixCls,d=c===void 0?"rc-tooltip":c,h=t.children,f=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,p=t.animation,v=t.motion,_=t.placement,C=_===void 0?"right":_,S=t.align,b=S===void 0?{}:S,y=t.destroyTooltipOnHide,A=y===void 0?!1:y,w=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,k=t.id,O=t.showArrow,$=O===void 0?!0:O,B=sc(t,Kst),V=E.useRef(null);E.useImperativeHandle(e,function(){return V.current});var X=Ui({},B);"visible"in t&&(X.popupVisible=t.visible);var z=R(function(){return E.createElement(w6e,{key:"content",prefixCls:d,id:k,overlayInnerStyle:M},L)},"getPopupElement");return E.createElement(zC,bo({popupClassName:n,prefixCls:d,popup:z,action:i,builtinPlacements:Qst,popupPlacement:C,ref:V,popupAlign:b,getPopupContainer:P,onPopupVisibleChange:f,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:p,popupMotion:v,defaultPopupVisible:w,autoDestroy:A,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:o,arrow:$},X),h)},"Tooltip");const Jst=E.forwardRef(Zst),elt="univer-tooltip",Ooe={tooltip:elt},Noe={shiftX:0,adjustY:1},koe={adjustX:1,shiftY:!0},ly=[0,0],tlt={left:{points:["cr","cl"],overflow:koe,offset:[-4,0],targetOffset:ly},right:{points:["cl","cr"],overflow:koe,offset:[4,0],targetOffset:ly},top:{points:["bc","tc"],overflow:Noe,offset:[0,-4],targetOffset:ly},bottom:{points:["tc","bc"],overflow:Noe,offset:[0,4],targetOffset:ly}},vN=new Set;let uy;function JK(t){return uy||(uy=new ResizeObserver((...e)=>{vN.forEach(n=>n(...e))})),{observe(e,n){vN.add(t),uy.observe(e,n)},unobserve(e){vN.delete(t),uy.unobserve(e)}}}R(JK,"resizeObserverCtor");function D6e(t){const[e,n]=E.useState(!1);return E.useEffect(()=>{if(!yM()||!t)return;const r=JK(()=>{t&&n(t.scrollWidth>t.offsetWidth)});return n(t.scrollWidth>t.offsetWidth),r.observe(t),()=>{r.unobserve(t)}},[t]),e}R(D6e,"useIsEllipsis");const n1=E.forwardRef((t,e)=>{const{children:n,visible:r,placement:i="top",title:a,onVisibleChange:o,style:s,showIfEllipsis:l=!1}=t,{mountContainer:u}=E.useContext(Nu),[c,d]=E.useState(),h=E.useRef(null),f=E.useCallback(g=>{g!=null&&g.nativeElement&&d(g.nativeElement),h.current=g},[]);E.useImperativeHandle(e,()=>h.current);const m=D6e(l?c:null);return u&&Re.createElement(Jst,{visible:l&&!m?!1:r,ref:f,prefixCls:Ooe.tooltip,getTooltipContainer:R(()=>u,"getTooltipContainer"),overlay:Re.createElement("div",{className:Ooe.tooltipContent},typeof a=="function"?a():a),builtinPlacements:tlt,placement:i,mouseEnterDelay:.2,showArrow:!0,destroyTooltipOnHide:!1,onVisibleChange:o,overlayStyle:s},n)}),nlt="univer-slider",rlt="univer-slider-disabled",ilt="univer-slider-rail",alt="univer-slider-handle",olt="univer-slider-reset-point",slt="univer-slider-value",llt="univer-slider-inner-rail",ult="univer-slider-shortcuts",clt="univer-slider-shortcut",dlt="univer-slider-shortcut-icon",hlt="univer-slider-shortcut-active",T1={slider:nlt,sliderDisabled:rlt,sliderRail:ilt,sliderHandle:alt,sliderResetPoint:olt,sliderValue:slt,sliderInnerRail:llt,sliderShortcuts:ult,sliderShortcut:clt,sliderShortcutIcon:dlt,sliderShortcutActive:hlt};function eZ(t){const{value:e,min:n=0,max:r=400,disabled:i=!1,resetPoint:a=100,shortcuts:o,onChange:s}=t,l=E.useRef(null),{locale:u}=E.useContext(Nu);function c(){i||s&&s(a)}R(c,"handleReset");function d(m){if(i)return;let g=e+m;e+m<=n?g=n:e+m>=r&&(g=r),s&&s(g)}R(d,"handleStep");const h=E.useMemo(()=>{if(e<=a){const m=50/(a-n);return(e-n)*m}if(e<=r)return a*.5+(e-a)/(r-a)*50},[n,r,a,e]);function f(m){if(i)return;m.preventDefault();const g=l.current;let p=!0;function v(S){if(p){let b=S.clientX-g.getBoundingClientRect().x;b<=0?b=0:b>=116&&(b=116);const y=b/116;let A=0;y<=.5?A=n+y*(a-n)*2:A=a+(y-.5)*(r-a)*2,s&&s(Math.ceil(A))}}R(v,"onMouseMove");function _(){p=!1,document.removeEventListener("pointermove",v),window.removeEventListener("pointerup",_)}R(_,"onMouseUp");function C(S){S.relatedTarget===null&&_()}R(C,"onMouseOut"),window.addEventListener("pointermove",v),window.addEventListener("pointerup",_),window.addEventListener("pointerout",C)}return R(f,"handleMouseDown"),Re.createElement("div",{className:hr(T1.slider,{[T1.sliderDisabled]:i})},Re.createElement(fa,{type:"text",size:"small",disabled:e<=n||i,onClick:R(()=>d(-10),"onClick")},Re.createElement(Qme,null)),Re.createElement("div",{className:T1.sliderRail},Re.createElement("div",{ref:l,role:"track",className:T1.sliderInnerRail},Re.createElement(n1,{title:`${u==null?void 0:u.Slider.resetTo} ${a}%`},Re.createElement("a",{className:T1.sliderResetPoint,role:"reset button",onClick:c})),Re.createElement("div",{className:T1.sliderHandle,role:"handle",style:{left:`${h}%`},onPointerDown:f}))),Re.createElement(fa,{type:"text",size:"small",disabled:e>=r||i,onClick:R(()=>d(10),"onClick")},Re.createElement(zme,null)),Re.createElement(Ef,{placement:"topLeft",overlay:Re.createElement("div",{className:T1.sliderShortcuts},o==null?void 0:o.map(m=>Re.createElement("a",{key:m,className:hr(T1.sliderShortcut,m===e?T1.sliderShortcutActive:""),onClick:R(()=>s&&s(m),"onClick")},m===e&&Re.createElement("span",{className:T1.sliderShortcutIcon},Re.createElement(bM,null)),Re.createElement("span",null,m,"%"))))},Re.createElement("a",{className:T1.sliderValue},e,"%")))}R(eZ,"Slider");const flt="univer-tree",mlt="univer-tree-icon",glt="univer-tree-icon-expand",plt="univer-tree-list",vlt="univer-tree-list-expand",_lt="univer-tree-list-item",Clt="univer-tree-list-item-content",Slt="univer-tree-list-item-content-selected",Dh={tree:flt,treeIcon:mlt,treeIconExpand:glt,treeList:plt,treeListExpand:vlt,treeListItem:_lt,treeListItemContent:Clt,treeListItemContentSelected:Slt},blt=R((t,e)=>{const n=[],r=R(i=>{var a;if(n.push(i.key),e===i.key||(a=i.children)!=null&&a.length&&i.children.some(r))return!0;n.pop()},"recursive");return t.some(r),n},"findNodePathFromTree"),I6e=R(t=>{const e=new Map;let n=t;return{findNodePathFromTreeWithCache:R(r=>{const i=e.get(r);if(i)return i;const a=blt(n,r);return a.map((o,s,l)=>{const u=[];for(let c=0;c<=s;c++)u.push(l[c]);return u}).reverse().forEach(o=>{const s=o[o.length-1];e.set(s,o)}),a},"findNodePathFromTreeWithCache"),reset:R(r=>{e.clear(),r&&(n=r)},"reset")}},"createCacheWithFindNodePathFromTree"),O$=R((t,e)=>e.length?e.reduce((n,r)=>{const i=n.find(a=>a.key===r);return(i==null?void 0:i.children)||[]},t):t,"findSubTreeFromPath"),ylt=R((t,e)=>{const n=e.slice(0),r=n.pop();return O$(t,n).find(i=>i.key===r)},"findNodeFromPath"),Elt=R((t,e,n)=>{const r=new Set(e),i=n[n.length-1],a=O$(t,n);if(r.has(i)){if(a.length){const o=R(s=>{r.delete(s.key),s.children&&s.children.forEach(l=>o(l))},"deleteRecursive");a.forEach(o)}n.map((o,s,l)=>{const u=[];for(let c=0;c<=s;c++)u.push(l[c]);return u}).reverse().some(o=>{const s=O$(t,o),l=o[o.length-1];if(s.every(u=>!r.has(u.key)))r.delete(l);else return!0;return!1})}else{const o=R(s=>{r.add(s.key),s.children&&s.children.forEach(l=>o(l))},"addRecursive");n.forEach(s=>r.add(s)),a.length&&a.forEach(o)}return[...r]},"mergeTreeSelected"),Rlt=R((t,e)=>{const n=e.children||[],r=R(i=>{var a;return(a=i.children)!=null&&a.length?!!i.children.every(r):t.has(i.key)},"checkIsSelected");return n.length?n.some(i=>!r(i)):!1},"isIntermediated"),Alt=R((t,e)=>{const n=[],r=I6e(t);return e.forEach(i=>{var a;const o=r.findNodePathFromTreeWithCache(i),s=ylt(t,o);s&&((a=s.children)!=null&&a.length||n.push(s))}),n},"filterLeafNode");function wlt(t){const{data:e=[],defaultExpandAll:n=!1,selectionMode:r=1,valueGroup:i=[],onChange:a,onExpend:o}=t,[s,l]=E.useState({}),u=E.useMemo(()=>new Set,[e]),c=E.useMemo(()=>I6e(e),[e]),d=E.useMemo(()=>{const p=new Set;return i.forEach(v=>{c.findNodePathFromTreeWithCache(v).forEach(_=>p.add(_))}),p},[i,c]);E.useEffect(()=>{function p(v){var _;u.add(v.key),(_=v.children)==null||_.forEach(p)}R(p,"walkData"),n&&e.forEach(p),l({})},[n,e]);const h=E.useMemo(()=>e.map(p=>{function v(_){const{title:C,key:S,children:b}=_,y=u.has(S),A=d.has(S),w=Rlt(d,_);return{title:C,key:S,children:b&&b.map(P=>v(P)),_selected:A,_expand:y,_intermediated:w}}return R(v,"walkData"),v(p)}),[d,u,s]);function f(p){const v=c.findNodePathFromTreeWithCache(p.key),_=Elt(e,[...d],v);a==null||a(p,Alt(e,_))}R(f,"handleChange");function m(p){var v;(v=p.children)!=null&&v.length&&(u.has(p.key)?u.delete(p.key):u.add(p.key),l({})),!(r===0&&p.children)&&(o==null||o(p.key))}R(m,"handleExpendItem");function g(p){const{title:v,key:_,children:C,_selected:S,_expand:b,_intermediated:y}=p;return Re.createElement("li",{key:_,className:Dh.treeListItem},Re.createElement("a",{className:hr(Dh.treeListItemContent,{[Dh.treeListItemContentSelected]:S})},C&&C.length>0&&Re.createElement("span",{className:hr(Dh.treeIcon,{[Dh.treeIconExpand]:b}),onClick:R(A=>{A.stopPropagation(),m(p)},"onClick")},Re.createElement($me,null)),Re.createElement(tp,{checked:S&&!y,indeterminate:S&&y,onChange:R(()=>{f(p)},"onChange")}),Re.createElement("span",{onClick:R(A=>{A.stopPropagation(),m(p)},"onClick")},v)),C&&Re.createElement("ul",{className:hr(Dh.treeList,{[Dh.treeListExpand]:b})},C.map(A=>g(A))))}return R(g,"walkTree"),Re.createElement("section",{className:Dh.tree},Re.createElement("ul",{className:Dh.treeList},h.map(p=>g(p))))}R(wlt,"Tree");const Dlt="univer-switch-wrapper",Ilt="univer-slider",_N={switchWrapper:Dlt,switch:"univer-switch",slider:Ilt},Plt=R(t=>{const{defaultChecked:e=!1,onChange:n}=t,[r,i]=E.useState(e),a=R(()=>{i(!r),n==null||n(!r)},"handleChange");return E.useEffect(()=>{i(e)},[e]),Re.createElement("div",{className:_N.switchWrapper},Re.createElement("label",{className:_N.switch},Re.createElement("input",{type:"checkbox",checked:r,onChange:a}),Re.createElement("span",{className:_N.slider})))},"Switch"),Mlt="#fee7e7",Tlt="#fdcece",Llt="#fb9d9d",xlt="#fa7979",Olt="#fe4b4b",Nlt="#f30b0b",klt="#e30909",Flt="#cd0f0f",Vlt="#b20000",Blt="#9d0000",Ult="#fef0e6",Hlt="#fee1cd",jlt="#fdc49b",$lt="#fca669",Wlt="#ff8c51",zlt="#fb8937",qlt="#f96800",Ylt="#df5d00",Xlt="#cc4f10",Glt="#b24000",Qlt="#fef6e6",Klt="#feeecd",Zlt="#fddc9b",Jlt="#fccb69",eut="#ffbd37",tut="#faad14",nut="#e59b07",rut="#c68400",iut="#a97100",aut="#8f5f00",out="#fefbe6",sut="#fef7cd",lut="#fdf09b",uut="#fce869",cut="#fbe137",dut="#f9d700",hut="#ebc301",fut="#d8b300",mut="#c5a300",gut="#b19401",put="#f7fde8",vut="#effbd0",_ut="#def6a2",Cut="#cef273",Sut="#beee44",but="#a4dc16",yut="#8bbb11",Eut="#7aa017",Rut="#688c0d",Aut="#58770a",wut="#effce8",Dut="#dff9d2",Iut="#bff3a5",Put="#9fed78",Mut="#7fe74b",Tut="#59d01e",Lut="#49b811",xut="#409f11",Out="#398712",Nut="#317310",kut="#e5fffb",Fut="#ccfff7",Vut="#a9fff2",But="#78fce8",Uut="#2afede",Hut="#10e8c7",jut="#00d2b2",$ut="#00b298",Wut="#009e87",zut="#008b76",qut="#e4f4fe",Yut="#d0edff",Xut="#9fdaff",Gut="#62c2ff",Qut="#2daeff",Kut="#0b9efb",Zut="#0493ee",Jut="#0080d2",ect="#006cae",tct="#005f9a",nct="#e8ecfd",rct="#d0d9fb",ict="#a2b3f6",act="#738df2",oct="#3a60f7",sct="#274fee",lct="#143ee3",uct="#012bd2",cct="#0025b7",dct="#001f9c",hct="#f1eafa",fct="#e3d5f6",mct="#c7abed",gct="#aa82e3",pct="#9e6de3",vct="#894ede",_ct="#7735d4",Cct="#6721cb",Sct="#510eb0",bct="#3f0198",yct="#fde8f3",Ect="#fbd0e8",Rct="#f6a2d0",Act="#f273b9",wct="#f248a6",Dct="#e7258f",Ict="#d4157e",Pct="#c1026b",Mct="#a1095c",Tct="#8f0550",Lct="#f5f5f5",xct="#ececec",Oct="#e5e5e5",Nct="#d8d8d8",kct="#bcbcbc",Fct="#999999",Vct="#7a7a7a",Bct="#656565",Uct="#565656",Hct="#4b4b4b",jct="#1e222b",$ct="#ffffff",Wct="0 4px 12px rgba(30, 34, 43, 0.08)",zct="0 4px 24px 0 rgba(30, 34, 43, 0.08)",qct="#ececec",Yct="#d8d8d8",Xct="#ffffff",Gct="#ffffff",Qct="#1e222b",Kct="#7a7a7a",Zct="#4b4b4b",Jct="#bcbcbc",e1t="#e5e5e5",t1t="#bcbcbc",n1t="#999999",r1t="#7a7a7a",i1t="4px",a1t="8px",o1t="12px",s1t="24px",l1t="20px",u1t="16px",c1t="12px",d1t="8px",h1t="4px",f1t="20px",m1t="16px",g1t="12px",p1t="8px",v1t="4px",_1t="20px",C1t="18px",S1t="16px",b1t="15px",y1t="14px",E1t="13px",R1t="12px",A1t="768px",w1t="1024px",D1t="1280px",I1t="1536px",P1t="#2daeff",M1t="#59d01e",T1t="#ffbd37",L1t="#fe4b4b",x1t="#274fee",O1t="#3a60f7",N1t="#0b9efb",k1t="#9e6de3",F1t="#49b811",V1t="#0b9efb",B1t="#ffbd37",U1t="#f273b9",H1t="#00d2b2",j1t="#ff8c51",$1t="#565656",W1t="#274fee",z1t="#fa7979",q1t="#8bbb11",Y1t="#d8b300",tZ={red50:Mlt,red100:Tlt,red200:Llt,red300:xlt,red400:Olt,red500:Nlt,red600:klt,red700:Flt,red800:Vlt,red900:Blt,orange50:Ult,orange100:Hlt,orange200:jlt,orange300:$lt,orange400:Wlt,orange500:zlt,orange600:qlt,orange700:Ylt,orange800:Xlt,orange900:Glt,gold50:Qlt,gold100:Klt,gold200:Zlt,gold300:Jlt,gold400:eut,gold500:tut,gold600:nut,gold700:rut,gold800:iut,gold900:aut,yellow50:out,yellow100:sut,yellow200:lut,yellow300:uut,yellow400:cut,yellow500:dut,yellow600:hut,yellow700:fut,yellow800:mut,yellow900:gut,verdancy50:put,verdancy100:vut,verdancy200:_ut,verdancy300:Cut,verdancy400:Sut,verdancy500:but,verdancy600:yut,verdancy700:Eut,verdancy800:Rut,verdancy900:Aut,green50:wut,green100:Dut,green200:Iut,green300:Put,green400:Mut,green500:Tut,green600:Lut,green700:xut,green800:Out,green900:Nut,jiqing50:kut,jiqing100:Fut,jiqing200:Vut,jiqing300:But,jiqing400:Uut,jiqing500:Hut,jiqing600:jut,jiqing700:$ut,jiqing800:Wut,jiqing900:zut,blue50:qut,blue100:Yut,blue200:Xut,blue300:Gut,blue400:Qut,blue500:Kut,blue600:Zut,blue700:Jut,blue800:ect,blue900:tct,hyacinth50:nct,hyacinth100:rct,hyacinth200:ict,hyacinth300:act,hyacinth400:oct,hyacinth500:sct,hyacinth600:lct,hyacinth700:uct,hyacinth800:cct,hyacinth900:dct,purple50:hct,purple100:fct,purple200:mct,purple300:gct,purple400:pct,purple500:vct,purple600:_ct,purple700:Cct,purple800:Sct,purple900:bct,magenta50:yct,magenta100:Ect,magenta200:Rct,magenta300:Act,magenta400:wct,magenta500:Dct,magenta600:Ict,magenta700:Pct,magenta800:Mct,magenta900:Tct,grey50:Lct,grey100:xct,grey200:Oct,grey300:Nct,grey400:kct,grey500:Fct,grey600:Vct,grey700:Bct,grey800:Uct,grey900:Hct,colorBlack:jct,colorWhite:$ct,boxShadowBase:Wct,boxShadowLg:zct,bgColor:qct,bgColorHover:Yct,bgColorSecondary:Xct,bgColorOverlay:Gct,textColor:Qct,textColorSecondary:Kct,textColorSecondaryDarker:Zct,textColorTertiary:Jct,borderColor:e1t,scrollbarColor:t1t,scrollbarColorHover:n1t,scrollbarColorActive:r1t,borderRadiusBase:i1t,borderRadiusLg:a1t,borderRadiusXl:o1t,marginXl:s1t,marginLg:l1t,marginBase:u1t,marginSm:c1t,marginXs:d1t,marginXxs:h1t,paddingXl:f1t,paddingLg:m1t,paddingBase:g1t,paddingSm:p1t,paddingXs:v1t,fontSizeXxl:_1t,fontSizeXl:C1t,fontSizeLg:S1t,fontSizeBase:b1t,fontSizeSm:y1t,fontSizeXs:E1t,fontSizeXxs:R1t,breakpointXs:A1t,breakpointSm:w1t,breakpointBase:D1t,breakpointLg:I1t,infoColor:P1t,successColor:M1t,warningColor:T1t,errorColor:L1t,primaryColor:x1t,primaryColorHover:O1t,linkColor:N1t,loopColor1:k1t,loopColor2:F1t,loopColor3:V1t,loopColor4:B1t,loopColor5:U1t,loopColor6:H1t,loopColor7:j1t,loopColor8:$1t,loopColor9:W1t,loopColor10:z1t,loopColor11:q1t,loopColor12:Y1t},X1t="univer-theme",G1t={theme:X1t};function P6e(t){return`--${t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`).replace(/(\d+)/g,"-$1")}`}R(P6e,"convertToDashCase");function M6e(t){if(t.startsWith("#")){const e=t.replace("#",""),n=Number.parseInt(e.substring(0,2),16),r=Number.parseInt(e.substring(2,4),16),i=Number.parseInt(e.substring(4,6),16);return`${n}, ${r}, ${i}`}return t}R(M6e,"convertHexToRgb");const N$=class F5{constructor(){if(jv(this,"_styleSheet",null),jv(this,"_themeRootName",G1t.theme),!yM())return;const e=document.createElement("style");e.id=this._themeRootName;let n=null;const r=document.getRootNode();r===document?n=document.head:r instanceof ShadowRoot?n=r:n=r.head,n&&(n.appendChild(e),this._styleSheet=e)}static getInstance(){return F5._instance||(F5._instance=new F5),F5._instance}setTheme(e,n){this._styleSheet&&(e.classList.remove(this._themeRootName),e.classList.add(this._themeRootName),this._styleSheet.innerHTML="",this._styleSheet.innerHTML=`.${this._themeRootName} {${Object.keys(n).map(r=>`${P6e(r)}: ${M6e(n[r])};`).join("")}}`)}};R(N$,"Theme"),jv(N$,"_instance",null);let Q1t=N$;const oD=Q1t.getInstance();var T6e={exports:{}},aS={},k$={exports:{}};(function(t,e){(function(n,r){r(e)})(xp,function(n){function r(ne){return R(function(de,_e,Pe,De,Ee,ye,Ve){return ne(de,_e,Ve)},"isEqual")}R(r,"createDefaultIsNestedEqual");function i(ne){return R(function(de,_e,Pe,De){if(!de||!_e||typeof de!="object"||typeof _e!="object")return ne(de,_e,Pe,De);var Ee=De.get(de),ye=De.get(_e);if(Ee&&ye)return Ee===_e&&ye===de;De.set(de,_e),De.set(_e,de);var Ve=ne(de,_e,Pe,De);return De.delete(de),De.delete(_e),Ve},"isCircular")}R(i,"createIsCircular");function a(ne,de){var _e={};for(var Pe in ne)_e[Pe]=ne[Pe];for(var Pe in de)_e[Pe]=de[Pe];return _e}R(a,"merge");function o(ne){return ne.constructor===Object||ne.constructor==null}R(o,"isPlainObject");function s(ne){return typeof ne.then=="function"}R(s,"isPromiseLike");function l(ne,de){return ne===de||ne!==ne&&de!==de}R(l,"sameValueZeroEqual");var u="[object Arguments]",c="[object Boolean]",d="[object Date]",h="[object RegExp]",f="[object Map]",m="[object Number]",g="[object Object]",p="[object Set]",v="[object String]",_=Object.prototype.toString;function C(ne){var de=ne.areArraysEqual,_e=ne.areDatesEqual,Pe=ne.areMapsEqual,De=ne.areObjectsEqual,Ee=ne.areRegExpsEqual,ye=ne.areSetsEqual,Ve=ne.createIsNestedEqual,ke=Ve(Ke);function Ke($e,Fe,He){if($e===Fe)return!0;if(!$e||!Fe||typeof $e!="object"||typeof Fe!="object")return $e!==$e&&Fe!==Fe;if(o($e)&&o(Fe))return De($e,Fe,ke,He);var ct=Array.isArray($e),_t=Array.isArray(Fe);if(ct||_t)return ct===_t&&de($e,Fe,ke,He);var Ye=_.call($e);return Ye!==_.call(Fe)?!1:Ye===d?_e($e,Fe,ke,He):Ye===h?Ee($e,Fe,ke,He):Ye===f?Pe($e,Fe,ke,He):Ye===p?ye($e,Fe,ke,He):Ye===g||Ye===u?s($e)||s(Fe)?!1:De($e,Fe,ke,He):Ye===c||Ye===m||Ye===v?l($e.valueOf(),Fe.valueOf()):!1}return R(Ke,"comparator"),Ke}R(C,"createComparator");function S(ne,de,_e,Pe){var De=ne.length;if(de.length!==De)return!1;for(;De-- >0;)if(!_e(ne[De],de[De],De,De,ne,de,Pe))return!1;return!0}R(S,"areArraysEqual");var b=i(S);function y(ne,de){return l(ne.valueOf(),de.valueOf())}R(y,"areDatesEqual");function A(ne,de,_e,Pe){var De=ne.size===de.size;if(!De)return!1;if(!ne.size)return!0;var Ee={},ye=0;return ne.forEach(function(Ve,ke){if(De){var Ke=!1,$e=0;de.forEach(function(Fe,He){!Ke&&!Ee[$e]&&(Ke=_e(ke,He,ye,$e,ne,de,Pe)&&_e(Ve,Fe,ke,He,ne,de,Pe))&&(Ee[$e]=!0),$e++}),ye++,De=Ke}}),De}R(A,"areMapsEqual");var w=i(A),P="_owner",M=Object.prototype.hasOwnProperty;function L(ne,de,_e,Pe){var De=Object.keys(ne),Ee=De.length;if(Object.keys(de).length!==Ee)return!1;for(var ye;Ee-- >0;){if(ye=De[Ee],ye===P){var Ve=!!ne.$$typeof,ke=!!de.$$typeof;if((Ve||ke)&&Ve!==ke)return!1}if(!M.call(de,ye)||!_e(ne[ye],de[ye],ye,ye,ne,de,Pe))return!1}return!0}R(L,"areObjectsEqual");var k=i(L);function O(ne,de){return ne.source===de.source&&ne.flags===de.flags}R(O,"areRegExpsEqual");function $(ne,de,_e,Pe){var De=ne.size===de.size;if(!De)return!1;if(!ne.size)return!0;var Ee={};return ne.forEach(function(ye,Ve){if(De){var ke=!1,Ke=0;de.forEach(function($e,Fe){!ke&&!Ee[Ke]&&(ke=_e(ye,$e,Ve,Fe,ne,de,Pe))&&(Ee[Ke]=!0),Ke++}),De=ke}}),De}R($,"areSetsEqual");var B=i($),V=Object.freeze({areArraysEqual:S,areDatesEqual:y,areMapsEqual:A,areObjectsEqual:L,areRegExpsEqual:O,areSetsEqual:$,createIsNestedEqual:r}),X=Object.freeze({areArraysEqual:b,areDatesEqual:y,areMapsEqual:w,areObjectsEqual:k,areRegExpsEqual:O,areSetsEqual:B,createIsNestedEqual:r}),z=C(V);function F(ne,de){return z(ne,de,void 0)}R(F,"deepEqual");var H=C(a(V,{createIsNestedEqual:R(function(){return l},"createIsNestedEqual")}));function W(ne,de){return H(ne,de,void 0)}R(W,"shallowEqual");var K=C(X);function G(ne,de){return K(ne,de,new WeakMap)}R(G,"circularDeepEqual");var te=C(a(X,{createIsNestedEqual:R(function(){return l},"createIsNestedEqual")}));function Y(ne,de){return te(ne,de,new WeakMap)}R(Y,"circularShallowEqual");function ae(ne){return C(a(V,ne(V)))}R(ae,"createCustomEqual");function ie(ne){var de=C(a(X,ne(X)));return function(_e,Pe,De){return De===void 0&&(De=new WeakMap),de(_e,Pe,De)}}R(ie,"createCustomCircularEqual"),n.circularDeepEqual=G,n.circularShallowEqual=Y,n.createCustomCircularEqual=ie,n.createCustomEqual=ae,n.deepEqual=F,n.sameValueZeroEqual=l,n.shallowEqual=W,Object.defineProperty(n,"__esModule",{value:!0})})})(k$,k$.exports);var nZ=k$.exports,xi={},K1t=R(function(t,e,n){return t===e?!0:t.className===e.className&&n(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&n(t.verticalCompact,e.verticalCompact)&&n(t.compactType,e.compactType)&&n(t.layout,e.layout)&&n(t.margin,e.margin)&&n(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.allowOverlap===e.allowOverlap&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&n(t.resizeHandles,e.resizeHandles)&&n(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&n(t.droppingItem,e.droppingItem)&&n(t.innerRef,e.innerRef)},"fastRGLPropsEqual");Object.defineProperty(xi,"__esModule",{value:!0});xi.bottom=gT;xi.childrenEqual=O6e;xi.cloneLayout=rZ;xi.cloneLayoutItem=d0;xi.collides=oS;xi.compact=aZ;xi.compactItem=oZ;xi.compactType=z6e;xi.correctBounds=sZ;xi.fastPositionEqual=N6e;xi.fastRGLPropsEqual=void 0;xi.getAllCollisions=lZ;xi.getFirstCollision=qm;xi.getLayoutItem=pT;xi.getStatics=vT;xi.modifyLayout=iZ;xi.moveElement=P6;xi.moveElementAwayFromCollision=lD;xi.noop=void 0;xi.perc=k6e;xi.resizeItemInDirection=U6e;xi.setTopLeft=j6e;xi.setTransform=H6e;xi.sortLayoutItems=_T;xi.sortLayoutItemsByColRow=gZ;xi.sortLayoutItemsByRowCol=mZ;xi.synchronizeLayoutWithChildren=$6e;xi.validateLayout=W6e;xi.withLayoutItem=x6e;var Foe=nZ,V5=L6e(Re);function L6e(t){return t&&t.__esModule?t:{default:t}}R(L6e,"_interopRequireDefault$8");function gT(t){let e=0,n;for(let r=0,i=t.length;r<i;r++)n=t[r].y+t[r].h,n>e&&(e=n);return e}R(gT,"bottom");function rZ(t){const e=Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=d0(t[n]);return e}R(rZ,"cloneLayout");function iZ(t,e){const n=Array(t.length);for(let r=0,i=t.length;r<i;r++)e.i===t[r].i?n[r]=e:n[r]=t[r];return n}R(iZ,"modifyLayout");function x6e(t,e,n){let r=pT(t,e);return r?(r=n(d0(r)),t=iZ(t,r),[t,r]):[t,null]}R(x6e,"withLayoutItem");function d0(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:!!t.moved,static:!!t.static,isDraggable:t.isDraggable,isResizable:t.isResizable,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}R(d0,"cloneLayoutItem");function O6e(t,e){return(0,Foe.deepEqual)(V5.default.Children.map(t,n=>n==null?void 0:n.key),V5.default.Children.map(e,n=>n==null?void 0:n.key))&&(0,Foe.deepEqual)(V5.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]),V5.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]))}R(O6e,"childrenEqual");xi.fastRGLPropsEqual=K1t;function N6e(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height}R(N6e,"fastPositionEqual");function oS(t,e){return!(t.i===e.i||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}R(oS,"collides");function aZ(t,e,n,r){const i=vT(t),a=_T(t,e),o=Array(t.length);for(let s=0,l=a.length;s<l;s++){let u=d0(a[s]);u.static||(u=oZ(i,u,e,n,a,r),i.push(u)),o[t.indexOf(a[s])]=u,u.moved=!1}return o}R(aZ,"compact$1");const Z1t={x:"w",y:"h"};function sD(t,e,n,r){const i=Z1t[r];e[r]+=1;const a=t.map(o=>o.i).indexOf(e.i);for(let o=a+1;o<t.length;o++){const s=t[o];if(!s.static){if(s.y>e.y+e.h)break;oS(e,s)&&sD(t,s,n+e[i],r)}}e[r]=n}R(sD,"resolveCompactionCollision");function oZ(t,e,n,r,i,a){const o=n==="vertical",s=n==="horizontal";if(o)for(e.y=Math.min(gT(t),e.y);e.y>0&&!qm(t,e);)e.y--;else if(s)for(;e.x>0&&!qm(t,e);)e.x--;let l;for(;(l=qm(t,e))&&!(n===null&&a);)if(s?sD(i,e,l.x+l.w,"x"):sD(i,e,l.y+l.h,"y"),s&&e.x+e.w>r)for(e.x=r-e.w,e.y++;e.x>0&&!qm(t,e);)e.x--;return e.y=Math.max(e.y,0),e.x=Math.max(e.x,0),e}R(oZ,"compactItem");function sZ(t,e){const n=vT(t);for(let r=0,i=t.length;r<i;r++){const a=t[r];if(a.x+a.w>e.cols&&(a.x=e.cols-a.w),a.x<0&&(a.x=0,a.w=e.cols),!a.static)n.push(a);else for(;qm(n,a);)a.y++}return t}R(sZ,"correctBounds");function pT(t,e){for(let n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}R(pT,"getLayoutItem");function qm(t,e){for(let n=0,r=t.length;n<r;n++)if(oS(t[n],e))return t[n]}R(qm,"getFirstCollision");function lZ(t,e){return t.filter(n=>oS(n,e))}R(lZ,"getAllCollisions");function vT(t){return t.filter(e=>e.static)}R(vT,"getStatics");function P6(t,e,n,r,i,a,o,s,l){if(e.static&&e.isDraggable!==!0||e.y===r&&e.x===n)return t;`${e.i}${String(n)}${String(r)}${e.x}${e.y}`;const u=e.x,c=e.y;typeof n=="number"&&(e.x=n),typeof r=="number"&&(e.y=r),e.moved=!0;let d=_T(t,o);(o==="vertical"&&typeof r=="number"?c>=r:o==="horizontal"&&typeof n=="number"&&u>=n)&&(d=d.reverse());const h=lZ(d,e),f=h.length>0;if(f&&l)return rZ(t);if(f&&a)return`${e.i}`,e.x=u,e.y=c,e.moved=!1,t;for(let m=0,g=h.length;m<g;m++){const p=h[m];`${e.i}${e.x}${e.y}${p.i}${p.x}${p.y}`,!p.moved&&(p.static?t=lD(t,p,e,i,o):t=lD(t,e,p,i,o))}return t}R(P6,"moveElement");function lD(t,e,n,r,i,a){const o=i==="horizontal",s=i==="vertical",l=e.static;if(r){r=!1;const d={x:o?Math.max(e.x-n.w,0):n.x,y:s?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},h=qm(t,d),f=h&&h.y+h.h>e.y,m=h&&e.x+e.w>h.x;if(h){if(f&&s)return P6(t,n,void 0,e.y+1,r,l,i);if(f&&i==null)return e.y=n.y,n.y=n.y+n.h,t;if(m&&o)return P6(t,e,n.x,void 0,r,l,i)}else return`${n.i}${d.x}${d.y}`,P6(t,n,o?d.x:void 0,s?d.y:void 0,r,l,i)}const u=o?n.x+1:void 0,c=s?n.y+1:void 0;return u==null&&c==null?t:P6(t,n,o?n.x+1:void 0,s?n.y+1:void 0,r,l,i)}R(lD,"moveElementAwayFromCollision");function k6e(t){return t*100+"%"}R(k6e,"perc");const F6e=R((t,e,n,r)=>t+n>r?e:n,"constrainWidth"),V6e=R((t,e,n)=>t<0?e:n,"constrainHeight"),B6e=R(t=>Math.max(0,t),"constrainLeft"),uZ=R(t=>Math.max(0,t),"constrainTop"),cZ=R((t,e,n)=>{let{left:r,height:i,width:a}=e;const o=t.top-(i-t.height);return{left:r,width:a,height:V6e(o,t.height,i),top:uZ(o)}},"resizeNorth"),dZ=R((t,e,n)=>{let{top:r,left:i,height:a,width:o}=e;return{top:r,height:a,width:F6e(t.left,t.width,o,n),left:B6e(i)}},"resizeEast"),hZ=R((t,e,n)=>{let{top:r,height:i,width:a}=e;const o=t.left-(a-t.width);return{height:i,width:o<0?t.width:F6e(t.left,t.width,a,n),top:uZ(r),left:B6e(o)}},"resizeWest"),fZ=R((t,e,n)=>{let{top:r,left:i,height:a,width:o}=e;return{width:o,left:i,height:V6e(r,t.height,a),top:uZ(r)}},"resizeSouth"),J1t=R(function(){return cZ(arguments.length<=0?void 0:arguments[0],dZ(...arguments))},"resizeNorthEast"),edt=R(function(){return cZ(arguments.length<=0?void 0:arguments[0],hZ(...arguments))},"resizeNorthWest"),tdt=R(function(){return fZ(arguments.length<=0?void 0:arguments[0],dZ(...arguments))},"resizeSouthEast"),ndt=R(function(){return fZ(arguments.length<=0?void 0:arguments[0],hZ(...arguments))},"resizeSouthWest"),rdt={n:cZ,ne:J1t,e:dZ,se:tdt,s:fZ,sw:ndt,w:hZ,nw:edt};function U6e(t,e,n,r){const i=rdt[t];return i?i(e,{...e,...n},r):n}R(U6e,"resizeItemInDirection");function H6e(t){let{top:e,left:n,width:r,height:i}=t;const a=`translate(${n}px,${e}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${r}px`,height:`${i}px`,position:"absolute"}}R(H6e,"setTransform");function j6e(t){let{top:e,left:n,width:r,height:i}=t;return{top:`${e}px`,left:`${n}px`,width:`${r}px`,height:`${i}px`,position:"absolute"}}R(j6e,"setTopLeft");function _T(t,e){return e==="horizontal"?gZ(t):e==="vertical"?mZ(t):t}R(_T,"sortLayoutItems");function mZ(t){return t.slice(0).sort(function(e,n){return e.y>n.y||e.y===n.y&&e.x>n.x?1:e.y===n.y&&e.x===n.x?0:-1})}R(mZ,"sortLayoutItemsByRowCol");function gZ(t){return t.slice(0).sort(function(e,n){return e.x>n.x||e.x===n.x&&e.y>n.y?1:-1})}R(gZ,"sortLayoutItemsByColRow");function $6e(t,e,n,r,i){t=t||[];const a=[];V5.default.Children.forEach(e,s=>{if((s==null?void 0:s.key)==null)return;const l=pT(t,String(s.key)),u=s.props["data-grid"];l&&u==null?a.push(d0(l)):u?a.push(d0({...u,i:s.key})):a.push(d0({w:1,h:1,x:0,y:gT(a),i:String(s.key)}))});const o=sZ(a,{cols:n});return i?o:aZ(o,r,n)}R($6e,"synchronizeLayoutWithChildren");function W6e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let r=0,i=t.length;r<i;r++){const a=t[r];for(let o=0;o<n.length;o++)if(typeof a[n[o]]!="number")throw new Error("ReactGridLayout: "+e+"["+r+"]."+n[o]+" must be a number!")}}R(W6e,"validateLayout");function z6e(t){const{verticalCompact:e,compactType:n}=t||{};return e===!1?null:n}R(z6e,"compactType");const idt=R(()=>{},"noop");xi.noop=idt;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});vh.calcGridColWidth=sS;vh.calcGridItemPosition=q6e;vh.calcGridItemWHPx=uD;vh.calcWH=X6e;vh.calcXY=Y6e;vh.clamp=Ym;function sS(t){const{margin:e,containerPadding:n,containerWidth:r,cols:i}=t;return(r-e[0]*(i-1)-n[0]*2)/i}R(sS,"calcGridColWidth");function uD(t,e,n){return Number.isFinite(t)?Math.round(e*t+Math.max(0,t-1)*n):t}R(uD,"calcGridItemWHPx");function q6e(t,e,n,r,i,a){const{margin:o,containerPadding:s,rowHeight:l}=t,u=sS(t),c={};return a&&a.resizing?(c.width=Math.round(a.resizing.width),c.height=Math.round(a.resizing.height)):(c.width=uD(r,u,o[0]),c.height=uD(i,l,o[1])),a&&a.dragging?(c.top=Math.round(a.dragging.top),c.left=Math.round(a.dragging.left)):a&&a.resizing&&typeof a.resizing.top=="number"&&typeof a.resizing.left=="number"?(c.top=Math.round(a.resizing.top),c.left=Math.round(a.resizing.left)):(c.top=Math.round((l+o[1])*n+s[1]),c.left=Math.round((u+o[0])*e+s[0])),c}R(q6e,"calcGridItemPosition");function Y6e(t,e,n,r,i){const{margin:a,cols:o,rowHeight:s,maxRows:l}=t,u=sS(t);let c=Math.round((n-a[0])/(u+a[0])),d=Math.round((e-a[1])/(s+a[1]));return c=Ym(c,0,o-r),d=Ym(d,0,l-i),{x:c,y:d}}R(Y6e,"calcXY");function X6e(t,e,n,r,i,a){const{margin:o,maxRows:s,cols:l,rowHeight:u}=t,c=sS(t);let d=Math.round((e+o[0])/(c+o[0])),h=Math.round((n+o[1])/(u+o[1])),f=Ym(d,0,l-r),m=Ym(h,0,s-i);return["sw","w","nw"].indexOf(a)!==-1&&(f=Ym(d,0,l)),["nw","n","ne"].indexOf(a)!==-1&&(m=Ym(h,0,s)),{w:f,h:m}}R(X6e,"calcWH");function Ym(t,e,n){return Math.max(Math.min(t,n),e)}R(Ym,"clamp");var CT={},ST={exports:{}},lS={},pZ={};pZ.__esModule=!0;pZ.cloneElement=J6e;var adt=G6e(Re);function G6e(t){return t&&t.__esModule?t:{default:t}}R(G6e,"_interopRequireDefault$7");function F$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(F$,"ownKeys$7");function V$(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F$(Object(n),!0).forEach(function(r){Q6e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(V$,"_objectSpread$7");function Q6e(t,e,n){return e=K6e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(Q6e,"_defineProperty$9");function K6e(t){var e=Z6e(t,"string");return typeof e=="symbol"?e:String(e)}R(K6e,"_toPropertyKey$6");function Z6e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(Z6e,"_toPrimitive$6");function J6e(t,e){return e.style&&t.props.style&&(e.style=V$(V$({},t.props.style),e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),adt.default.cloneElement(t,e)}R(J6e,"cloneElement");var uS={};uS.__esModule=!0;uS.resizableProps=void 0;var hi=e4e(Xf);function e4e(t){return t&&t.__esModule?t:{default:t}}R(e4e,"_interopRequireDefault$6");var odt={axis:hi.default.oneOf(["both","x","y","none"]),className:hi.default.string,children:hi.default.element.isRequired,draggableOpts:hi.default.shape({allowAnyClick:hi.default.bool,cancel:hi.default.string,children:hi.default.node,disabled:hi.default.bool,enableUserSelectHack:hi.default.bool,offsetParent:hi.default.node,grid:hi.default.arrayOf(hi.default.number),handle:hi.default.string,nodeRef:hi.default.object,onStart:hi.default.func,onDrag:hi.default.func,onStop:hi.default.func,onMouseDown:hi.default.func,scale:hi.default.number}),height:R(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(r.axis==="both"||r.axis==="y"){var i;return(i=hi.default.number).isRequired.apply(i,e)}return hi.default.number.apply(hi.default,e)},"height"),handle:hi.default.oneOfType([hi.default.node,hi.default.func]),handleSize:hi.default.arrayOf(hi.default.number),lockAspectRatio:hi.default.bool,maxConstraints:hi.default.arrayOf(hi.default.number),minConstraints:hi.default.arrayOf(hi.default.number),onResizeStop:hi.default.func,onResizeStart:hi.default.func,onResize:hi.default.func,resizeHandles:hi.default.arrayOf(hi.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:hi.default.number,width:R(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(r.axis==="both"||r.axis==="x"){var i;return(i=hi.default.number).isRequired.apply(i,e)}return hi.default.number.apply(hi.default,e)},"width")};uS.resizableProps=odt;lS.__esModule=!0;lS.default=void 0;var j9=t4e(Re),sdt=ZQ,ldt=pZ,udt=uS,cdt=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function vZ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(vZ=R(function(r){return r?n:e},"_getRequireWildcardCache"))(t)}R(vZ,"_getRequireWildcardCache$4");function t4e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=vZ(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(t4e,"_interopRequireWildcard$4");function cD(){return cD=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cD.apply(this,arguments)}R(cD,"_extends$4");function n4e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}R(n4e,"_objectWithoutPropertiesLoose$2");function B$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(B$,"ownKeys$6");function NE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B$(Object(n),!0).forEach(function(r){r4e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(NE,"_objectSpread$6");function r4e(t,e,n){return e=i4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(r4e,"_defineProperty$8");function i4e(t){var e=a4e(t,"string");return typeof e=="symbol"?e:String(e)}R(i4e,"_toPropertyKey$5");function a4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(a4e,"_toPrimitive$5");function o4e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,dD(t,e)}R(o4e,"_inheritsLoose$1");function dD(t,e){return dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():R(function(n,r){return n.__proto__=r,n},"_setPrototypeOf"),dD(t,e)}R(dD,"_setPrototypeOf$2");var _Z=function(t){o4e(e,t);function e(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}R(e,"Resizable");var n=e.prototype;return n.componentWillUnmount=R(function(){this.resetData()},"componentWillUnmount"),n.resetData=R(function(){this.lastHandleRect=this.slack=null},"resetData"),n.runConstraints=R(function(r,i){var a=this.props,o=a.minConstraints,s=a.maxConstraints,l=a.lockAspectRatio;if(!o&&!s&&!l)return[r,i];if(l){var u=this.props.width/this.props.height,c=r-this.props.width,d=i-this.props.height;Math.abs(c)>Math.abs(d*u)?i=r/u:r=i*u}var h=r,f=i,m=this.slack||[0,0],g=m[0],p=m[1];return r+=g,i+=p,o&&(r=Math.max(o[0],r),i=Math.max(o[1],i)),s&&(r=Math.min(s[0],r),i=Math.min(s[1],i)),this.slack=[g+(h-r),p+(f-i)],[r,i]},"runConstraints"),n.resizeHandler=R(function(r,i){var a=this;return function(o,s){var l=s.node,u=s.deltaX,c=s.deltaY;r==="onResizeStart"&&a.resetData();var d=(a.props.axis==="both"||a.props.axis==="x")&&i!=="n"&&i!=="s",h=(a.props.axis==="both"||a.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!d&&!h)){var f=i[0],m=i[i.length-1],g=l.getBoundingClientRect();if(a.lastHandleRect!=null){if(m==="w"){var p=g.left-a.lastHandleRect.left;u+=p}if(f==="n"){var v=g.top-a.lastHandleRect.top;c+=v}}a.lastHandleRect=g,m==="w"&&(u=-u),f==="n"&&(c=-c);var _=a.props.width+(d?u/a.props.transformScale:0),C=a.props.height+(h?c/a.props.transformScale:0),S=a.runConstraints(_,C);_=S[0],C=S[1];var b=_!==a.props.width||C!==a.props.height,y=typeof a.props[r]=="function"?a.props[r]:null,A=r==="onResize"&&!b;y&&!A&&(o.persist==null||o.persist(),y(o,{node:l,size:{width:_,height:C},handle:i})),r==="onResizeStop"&&a.resetData()}}},"resizeHandler"),n.renderResizeHandle=R(function(r,i){var a=this.props.handle;if(!a)return j9.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+r,ref:i});if(typeof a=="function")return a(r,i);var o=typeof a.type=="string",s=NE({ref:i},o?{}:{handleAxis:r});return j9.cloneElement(a,s)},"renderResizeHandle"),n.render=R(function(){var r=this,i=this.props,a=i.children,o=i.className,s=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var l=i.resizeHandles;i.transformScale;var u=n4e(i,cdt);return(0,ldt.cloneElement)(a,NE(NE({},u),{},{className:(o?o+" ":"")+"react-resizable",children:[].concat(a.props.children,l.map(function(c){var d,h=(d=r.handleRefs[c])!=null?d:r.handleRefs[c]=j9.createRef();return j9.createElement(sdt.DraggableCore,cD({},s,{nodeRef:h,key:"resizableHandle-"+c,onStop:r.resizeHandler("onResizeStop",c),onStart:r.resizeHandler("onResizeStart",c),onDrag:r.resizeHandler("onResize",c)}),r.renderResizeHandle(c,h))}))}))},"render"),e}(j9.Component);lS.default=_Z;_Z.propTypes=udt.resizableProps;_Z.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var bT={};bT.__esModule=!0;bT.default=void 0;var CN=s4e(Re),ddt=CZ(Xf),hdt=CZ(lS),fdt=uS,mdt=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function CZ(t){return t&&t.__esModule?t:{default:t}}R(CZ,"_interopRequireDefault$5");function SZ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(SZ=R(function(r){return r?n:e},"_getRequireWildcardCache"))(t)}R(SZ,"_getRequireWildcardCache$3");function s4e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=SZ(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(s4e,"_interopRequireWildcard$3");function hD(){return hD=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hD.apply(this,arguments)}R(hD,"_extends$3");function U$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(U$,"ownKeys$5");function Zv(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U$(Object(n),!0).forEach(function(r){l4e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(Zv,"_objectSpread$5");function l4e(t,e,n){return e=u4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(l4e,"_defineProperty$7");function u4e(t){var e=c4e(t,"string");return typeof e=="symbol"?e:String(e)}R(u4e,"_toPropertyKey$4");function c4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(c4e,"_toPrimitive$4");function d4e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}R(d4e,"_objectWithoutPropertiesLoose$1");function h4e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,fD(t,e)}R(h4e,"_inheritsLoose");function fD(t,e){return fD=Object.setPrototypeOf?Object.setPrototypeOf.bind():R(function(n,r){return n.__proto__=r,n},"_setPrototypeOf"),fD(t,e)}R(fD,"_setPrototypeOf$1");var f4e=function(t){h4e(e,t);function e(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(s,l){var u=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(u,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(u)},r}R(e,"ResizableBox"),e.getDerivedStateFromProps=R(function(r,i){return i.propsWidth!==r.width||i.propsHeight!==r.height?{width:r.width,height:r.height,propsWidth:r.width,propsHeight:r.height}:null},"getDerivedStateFromProps");var n=e.prototype;return n.render=R(function(){var r=this.props,i=r.handle,a=r.handleSize;r.onResize;var o=r.onResizeStart,s=r.onResizeStop,l=r.draggableOpts,u=r.minConstraints,c=r.maxConstraints,d=r.lockAspectRatio,h=r.axis;r.width,r.height;var f=r.resizeHandles,m=r.style,g=r.transformScale,p=d4e(r,mdt);return CN.createElement(hdt.default,{axis:h,draggableOpts:l,handle:i,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:s,resizeHandles:f,transformScale:g,width:this.state.width},CN.createElement("div",hD({},p,{style:Zv(Zv({},m),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},"render"),e}(CN.Component);bT.default=f4e;f4e.propTypes=Zv(Zv({},fdt.resizableProps),{},{children:ddt.default.element});ST.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};ST.exports.Resizable=lS.default;ST.exports.ResizableBox=bT.default;var gdt=ST.exports,uf={};Object.defineProperty(uf,"__esModule",{value:!0});uf.resizeHandleType=uf.resizeHandleAxesType=uf.default=void 0;var Ci=bZ(Xf),pdt=bZ(Re);function bZ(t){return t&&t.__esModule?t:{default:t}}R(bZ,"_interopRequireDefault$4");const vdt=uf.resizeHandleAxesType=Ci.default.arrayOf(Ci.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),_dt=uf.resizeHandleType=Ci.default.oneOfType([Ci.default.node,Ci.default.func]);uf.default={className:Ci.default.string,style:Ci.default.object,width:Ci.default.number,autoSize:Ci.default.bool,cols:Ci.default.number,draggableCancel:Ci.default.string,draggableHandle:Ci.default.string,verticalCompact:R(function(t){t.verticalCompact},"verticalCompact"),compactType:Ci.default.oneOf(["vertical","horizontal"]),layout:R(function(t){var e=t.layout;e!==void 0&&xi.validateLayout(e,"layout")},"layout"),margin:Ci.default.arrayOf(Ci.default.number),containerPadding:Ci.default.arrayOf(Ci.default.number),rowHeight:Ci.default.number,maxRows:Ci.default.number,isBounded:Ci.default.bool,isDraggable:Ci.default.bool,isResizable:Ci.default.bool,allowOverlap:Ci.default.bool,preventCollision:Ci.default.bool,useCSSTransforms:Ci.default.bool,transformScale:Ci.default.number,isDroppable:Ci.default.bool,resizeHandles:vdt,resizeHandle:_dt,onLayoutChange:Ci.default.func,onDragStart:Ci.default.func,onDrag:Ci.default.func,onDragStop:Ci.default.func,onResizeStart:Ci.default.func,onResize:Ci.default.func,onResizeStop:Ci.default.func,onDrop:Ci.default.func,droppingItem:Ci.default.shape({i:Ci.default.string.isRequired,w:Ci.default.number.isRequired,h:Ci.default.number.isRequired}),children:R(function(t,e){const n=t[e],r={};pdt.default.Children.forEach(n,function(i){if((i==null?void 0:i.key)!=null){if(r[i.key])throw new Error('Duplicate child key "'+i.key+'" found! This will cause problems in ReactGridLayout.');r[i.key]=!0}})},"children"),innerRef:Ci.default.any};Object.defineProperty(CT,"__esModule",{value:!0});CT.default=void 0;var w3=yT(Re),la=yT(Xf),Cdt=ZQ,Sdt=gdt,D3=xi,Fs=vh,Voe=uf,bdt=yT(hr);function yT(t){return t&&t.__esModule?t:{default:t}}R(yT,"_interopRequireDefault$3");function B1(t,e,n){return e=m4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(B1,"_defineProperty$6");function m4e(t){var e=g4e(t,"string");return typeof e=="symbol"?e:String(e)}R(m4e,"_toPropertyKey$3");function g4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(g4e,"_toPrimitive$3");const p4e=class extends w3.default.Component{constructor(){super(...arguments),B1(this,"state",{resizing:null,dragging:null,className:""}),B1(this,"elementRef",w3.default.createRef()),B1(this,"onDragStart",(e,n)=>{let{node:r}=n;const{onDragStart:i,transformScale:a}=this.props;if(!i)return;const o={top:0,left:0},{offsetParent:s}=r;if(!s)return;const l=s.getBoundingClientRect(),u=r.getBoundingClientRect(),c=u.left/a,d=l.left/a,h=u.top/a,f=l.top/a;o.left=c-d+s.scrollLeft,o.top=h-f+s.scrollTop,this.setState({dragging:o});const{x:m,y:g}=(0,Fs.calcXY)(this.getPositionParams(),o.top,o.left,this.props.w,this.props.h);return i.call(this,this.props.i,m,g,{e,node:r,newPosition:o})}),B1(this,"onDrag",(e,n)=>{let{node:r,deltaX:i,deltaY:a}=n;const{onDrag:o}=this.props;if(!o)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let s=this.state.dragging.top+a,l=this.state.dragging.left+i;const{isBounded:u,i:c,w:d,h,containerWidth:f}=this.props,m=this.getPositionParams();if(u){const{offsetParent:C}=r;if(C){const{margin:S,rowHeight:b,containerPadding:y}=this.props,A=C.clientHeight-(0,Fs.calcGridItemWHPx)(h,b,S[1]);s=(0,Fs.clamp)(s-y[1],0,A);const w=(0,Fs.calcGridColWidth)(m),P=f-(0,Fs.calcGridItemWHPx)(d,w,S[0]);l=(0,Fs.clamp)(l-y[0],0,P)}}const g={top:s,left:l};this.setState({dragging:g});const{containerPadding:p}=this.props,{x:v,y:_}=(0,Fs.calcXY)(m,s-p[1],l-p[0],d,h);return o.call(this,c,v,_,{e,node:r,newPosition:g})}),B1(this,"onDragStop",(e,n)=>{let{node:r}=n;const{onDragStop:i}=this.props;if(!i)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:o,i:s,containerPadding:l}=this.props,{left:u,top:c}=this.state.dragging,d={top:c,left:u};this.setState({dragging:null});const{x:h,y:f}=(0,Fs.calcXY)(this.getPositionParams(),c-l[1],u-l[0],a,o);return i.call(this,s,h,f,{e,node:r,newPosition:d})}),B1(this,"onResizeStop",(e,n,r)=>this.onResizeHandler(e,n,r,"onResizeStop")),B1(this,"onResizeStart",(e,n,r)=>this.onResizeHandler(e,n,r,"onResizeStart")),B1(this,"onResize",(e,n,r)=>this.onResizeHandler(e,n,r,"onResize"))}shouldComponentUpdate(e,n){if(this.props.children!==e.children||this.props.droppingPosition!==e.droppingPosition)return!0;const r=(0,Fs.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),i=(0,Fs.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,n);return!(0,D3.fastPositionEqual)(r,i)||this.props.useCSSTransforms!==e.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(e){this.moveDroppingItem(e)}moveDroppingItem(e){const{droppingPosition:n}=this.props;if(!n)return;const r=this.elementRef.current;if(!r)return;const i=e.droppingPosition||{left:0,top:0},{dragging:a}=this.state,o=a&&n.left!==i.left||n.top!==i.top;if(!a)this.onDragStart(n.e,{node:r,deltaX:n.left,deltaY:n.top});else if(o){const s=n.left-a.left,l=n.top-a.top;this.onDrag(n.e,{node:r,deltaX:s,deltaY:l})}}getPositionParams(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}createStyle(e){const{usePercentages:n,containerWidth:r,useCSSTransforms:i}=this.props;let a;return i?a=(0,D3.setTransform)(e):(a=(0,D3.setTopLeft)(e),n&&(a.left=(0,D3.perc)(e.left/r),a.width=(0,D3.perc)(e.width/r))),a}mixinDraggable(e,n){return w3.default.createElement(Cdt.DraggableCore,{disabled:!n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}curryResizeHandler(e,n){return(r,i)=>n(r,i,e)}mixinResizable(e,n,r){const{cols:i,minW:a,minH:o,maxW:s,maxH:l,transformScale:u,resizeHandles:c,resizeHandle:d}=this.props,h=this.getPositionParams(),f=(0,Fs.calcGridItemPosition)(h,0,0,i,0).width,m=(0,Fs.calcGridItemPosition)(h,0,0,a,o),g=(0,Fs.calcGridItemPosition)(h,0,0,s,l),p=[m.width,m.height],v=[Math.min(g.width,f),Math.min(g.height,1/0)];return w3.default.createElement(Sdt.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:p,maxConstraints:v,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:u,resizeHandles:c,handle:d},e)}onResizeHandler(e,n,r,i){let{node:a,size:o,handle:s}=n;const l=this.props[i];if(!l)return;const{x:u,y:c,i:d,maxH:h,minH:f,containerWidth:m}=this.props,{minW:g,maxW:p}=this.props;let v=o;a&&(v=(0,D3.resizeItemInDirection)(s,r,o,m),this.setState({resizing:i==="onResizeStop"?null:v}));let{w:_,h:C}=(0,Fs.calcWH)(this.getPositionParams(),v.width,v.height,u,c,s);_=(0,Fs.clamp)(_,Math.max(g,1),p),C=(0,Fs.clamp)(C,f,h),l.call(this,d,_,C,{e,node:a,size:v,handle:s})}render(){const{x:e,y:n,w:r,h:i,isDraggable:a,isResizable:o,droppingPosition:s,useCSSTransforms:l}=this.props,u=(0,Fs.calcGridItemPosition)(this.getPositionParams(),e,n,r,i,this.state),c=w3.default.Children.only(this.props.children);let d=w3.default.cloneElement(c,{ref:this.elementRef,className:(0,bdt.default)("react-grid-item",c.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!s,cssTransforms:l}),style:{...this.props.style,...c.props.style,...this.createStyle(u)}});return d=this.mixinResizable(d,u,o),d=this.mixinDraggable(d,a),d}};R(p4e,"GridItem");let yZ=p4e;CT.default=yZ;B1(yZ,"propTypes",{children:la.default.element,cols:la.default.number.isRequired,containerWidth:la.default.number.isRequired,rowHeight:la.default.number.isRequired,margin:la.default.array.isRequired,maxRows:la.default.number.isRequired,containerPadding:la.default.array.isRequired,x:la.default.number.isRequired,y:la.default.number.isRequired,w:la.default.number.isRequired,h:la.default.number.isRequired,minW:R(function(t,e){const n=t[e];if(typeof n!="number")return new Error("minWidth not Number");if(n>t.w||n>t.maxW)return new Error("minWidth larger than item width/maxWidth")},"minW"),maxW:R(function(t,e){const n=t[e];if(typeof n!="number")return new Error("maxWidth not Number");if(n<t.w||n<t.minW)return new Error("maxWidth smaller than item width/minWidth")},"maxW"),minH:R(function(t,e){const n=t[e];if(typeof n!="number")return new Error("minHeight not Number");if(n>t.h||n>t.maxH)return new Error("minHeight larger than item height/maxHeight")},"minH"),maxH:R(function(t,e){const n=t[e];if(typeof n!="number")return new Error("maxHeight not Number");if(n<t.h||n<t.minH)return new Error("maxHeight smaller than item height/minHeight")},"maxH"),i:la.default.string.isRequired,resizeHandles:Voe.resizeHandleAxesType,resizeHandle:Voe.resizeHandleType,onDragStop:la.default.func,onDragStart:la.default.func,onDrag:la.default.func,onResizeStop:la.default.func,onResizeStart:la.default.func,onResize:la.default.func,isDraggable:la.default.bool.isRequired,isResizable:la.default.bool.isRequired,isBounded:la.default.bool.isRequired,static:la.default.bool,useCSSTransforms:la.default.bool.isRequired,transformScale:la.default.number,className:la.default.string,handle:la.default.string,cancel:la.default.string,droppingPosition:la.default.shape({e:la.default.object.isRequired,left:la.default.number.isRequired,top:la.default.number.isRequired})});B1(yZ,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1});Object.defineProperty(aS,"__esModule",{value:!0});aS.default=void 0;var S2=v4e(Re),SN=nZ,ydt=ET(hr),Xr=xi,Edt=vh,Boe=ET(CT),Rdt=ET(uf);function ET(t){return t&&t.__esModule?t:{default:t}}R(ET,"_interopRequireDefault$2");function EZ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(EZ=R(function(r){return r?n:e},"_getRequireWildcardCache$2"))(t)}R(EZ,"_getRequireWildcardCache$2");function v4e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=EZ(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(v4e,"_interopRequireWildcard$2");function Bs(t,e,n){return e=_4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(Bs,"_defineProperty$5");function _4e(t){var e=C4e(t,"string");return typeof e=="symbol"?e:String(e)}R(_4e,"_toPropertyKey$2");function C4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(C4e,"_toPrimitive$2");const Uoe="react-grid-layout";let S4e=!1;try{S4e=/firefox/i.test(navigator.userAgent)}catch{}var bN;let RT=(bN=class extends S2.Component{constructor(){super(...arguments),Bs(this,"state",{activeDrag:null,layout:(0,Xr.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,Xr.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),Bs(this,"dragEnterCounter",0),Bs(this,"onDragStart",(t,e,n,r)=>{let{e:i,node:a}=r;const{layout:o}=this.state,s=(0,Xr.getLayoutItem)(o,t);if(!s)return;const l={w:s.w,h:s.h,x:s.x,y:s.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,Xr.cloneLayoutItem)(s),oldLayout:o,activeDrag:l}),this.props.onDragStart(o,s,s,null,i,a)}),Bs(this,"onDrag",(t,e,n,r)=>{let{e:i,node:a}=r;const{oldDragItem:o}=this.state;let{layout:s}=this.state;const{cols:l,allowOverlap:u,preventCollision:c}=this.props,d=(0,Xr.getLayoutItem)(s,t);if(!d)return;const h={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};s=(0,Xr.moveElement)(s,d,e,n,!0,c,(0,Xr.compactType)(this.props),l,u),this.props.onDrag(s,o,d,h,i,a),this.setState({layout:u?s:(0,Xr.compact)(s,(0,Xr.compactType)(this.props),l),activeDrag:h})}),Bs(this,"onDragStop",(t,e,n,r)=>{let{e:i,node:a}=r;if(!this.state.activeDrag)return;const{oldDragItem:o}=this.state;let{layout:s}=this.state;const{cols:l,preventCollision:u,allowOverlap:c}=this.props,d=(0,Xr.getLayoutItem)(s,t);if(!d)return;s=(0,Xr.moveElement)(s,d,e,n,!0,u,(0,Xr.compactType)(this.props),l,c);const h=c?s:(0,Xr.compact)(s,(0,Xr.compactType)(this.props),l);this.props.onDragStop(h,o,d,null,i,a);const{oldLayout:f}=this.state;this.setState({activeDrag:null,layout:h,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(h,f)}),Bs(this,"onResizeStart",(t,e,n,r)=>{let{e:i,node:a}=r;const{layout:o}=this.state,s=(0,Xr.getLayoutItem)(o,t);s&&(this.setState({oldResizeItem:(0,Xr.cloneLayoutItem)(s),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(o,s,s,null,i,a))}),Bs(this,"onResize",(t,e,n,r)=>{let{e:i,node:a,size:o,handle:s}=r;const{oldResizeItem:l}=this.state,{layout:u}=this.state,{cols:c,preventCollision:d,allowOverlap:h}=this.props;let f=!1,m,g,p;const[v,_]=(0,Xr.withLayoutItem)(u,t,S=>{let b;return g=S.x,p=S.y,["sw","w","nw","n","ne"].indexOf(s)!==-1&&(["sw","nw","w"].indexOf(s)!==-1&&(g=S.x+(S.w-e),e=S.x!==g&&g<0?S.w:e,g=g<0?0:g),["ne","n","nw"].indexOf(s)!==-1&&(p=S.y+(S.h-n),n=S.y!==p&&p<0?S.h:n,p=p<0?0:p),f=!0),d&&!h&&(b=(0,Xr.getAllCollisions)(u,{...S,w:e,h:n,x:g,y:p}).filter(y=>y.i!==S.i).length>0,b&&(p=S.y,n=S.h,g=S.x,e=S.w,f=!1)),S.w=e,S.h=n,S});if(!_)return;m=v,f&&(m=(0,Xr.moveElement)(v,_,g,p,!0,this.props.preventCollision,(0,Xr.compactType)(this.props),c,h));const C={w:_.w,h:_.h,x:_.x,y:_.y,static:!0,i:t};this.props.onResize(m,l,_,C,i,a),this.setState({layout:h?m:(0,Xr.compact)(m,(0,Xr.compactType)(this.props),c),activeDrag:C})}),Bs(this,"onResizeStop",(t,e,n,r)=>{let{e:i,node:a}=r;const{layout:o,oldResizeItem:s}=this.state,{cols:l,allowOverlap:u}=this.props,c=(0,Xr.getLayoutItem)(o,t),d=u?o:(0,Xr.compact)(o,(0,Xr.compactType)(this.props),l);this.props.onResizeStop(d,s,c,null,i,a);const{oldLayout:h}=this.state;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(d,h)}),Bs(this,"onDragOver",t=>{var e;if(t.preventDefault(),t.stopPropagation(),S4e&&!((e=t.nativeEvent.target)!=null&&e.classList.contains(Uoe)))return!1;const{droppingItem:n,onDropDragOver:r,margin:i,cols:a,rowHeight:o,maxRows:s,width:l,containerPadding:u,transformScale:c}=this.props,d=r==null?void 0:r(t);if(d===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const h={...n,...d},{layout:f}=this.state,m=t.currentTarget.getBoundingClientRect(),g=t.clientX-m.left,p=t.clientY-m.top,v={left:g/c,top:p/c,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:_,top:C}=this.state.droppingPosition;(_!=g||C!=p)&&this.setState({droppingPosition:v})}}else{const _={cols:a,margin:i,maxRows:s,rowHeight:o,containerWidth:l,containerPadding:u||i},C=(0,Edt.calcXY)(_,p,g,h.w,h.h);this.setState({droppingDOMNode:S2.createElement("div",{key:h.i}),droppingPosition:v,layout:[...f,{...h,x:C.x,y:C.y,static:!1,isDraggable:!0}]})}}),Bs(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:e}=this.props,{layout:n}=this.state,r=(0,Xr.compact)(n.filter(i=>i.i!==t.i),(0,Xr.compactType)(this.props),e,this.props.allowOverlap);this.setState({layout:r,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),Bs(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),Bs(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),Bs(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:e}=this.props,{layout:n}=this.state,r=n.find(i=>i.i===e.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(n,r,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,e){let n;return e.activeDrag?null:(!(0,SN.deepEqual)(t.layout,e.propsLayout)||t.compactType!==e.compactType?n=t.layout:(0,Xr.childrenEqual)(t.children,e.children)||(n=e.layout),n?{layout:(0,Xr.synchronizeLayoutWithChildren)(n,t.children,t.cols,(0,Xr.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,e){return this.props.children!==t.children||!(0,Xr.fastRGLPropsEqual)(this.props,t,SN.deepEqual)||this.state.activeDrag!==e.activeDrag||this.state.mounted!==e.mounted||this.state.droppingPosition!==e.droppingPosition}componentDidUpdate(t,e){if(!this.state.activeDrag){const n=this.state.layout,r=e.layout;this.onLayoutMaybeChanged(n,r)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,Xr.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+e*2+"px"}onLayoutMaybeChanged(t,e){e||(e=this.state.layout),(0,SN.deepEqual)(e,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:e,cols:n,margin:r,containerPadding:i,rowHeight:a,maxRows:o,useCSSTransforms:s,transformScale:l}=this.props;return S2.createElement(Boe.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:e,cols:n,margin:r,containerPadding:i||r,maxRows:o,rowHeight:a,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:s,transformScale:l},S2.createElement("div",null))}processGridItem(t,e){if(!t||!t.key)return;const n=(0,Xr.getLayoutItem)(this.state.layout,String(t.key));if(!n)return null;const{width:r,cols:i,margin:a,containerPadding:o,rowHeight:s,maxRows:l,isDraggable:u,isResizable:c,isBounded:d,useCSSTransforms:h,transformScale:f,draggableCancel:m,draggableHandle:g,resizeHandles:p,resizeHandle:v}=this.props,{mounted:_,droppingPosition:C}=this.state,S=typeof n.isDraggable=="boolean"?n.isDraggable:!n.static&&u,b=typeof n.isResizable=="boolean"?n.isResizable:!n.static&&c,y=n.resizeHandles||p,A=S&&d&&n.isBounded!==!1;return S2.createElement(Boe.default,{containerWidth:r,cols:i,margin:a,containerPadding:o||a,maxRows:l,rowHeight:s,cancel:m,handle:g,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:S,isResizable:b,isBounded:A,useCSSTransforms:h&&_,usePercentages:!_,transformScale:f,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:e?C:void 0,resizeHandles:y,resizeHandle:v},t)}render(){const{className:t,style:e,isDroppable:n,innerRef:r}=this.props,i=(0,ydt.default)(Uoe,t),a={height:this.containerHeight(),...e};return S2.createElement("div",{ref:r,className:i,style:a,onDrop:n?this.onDrop:Xr.noop,onDragLeave:n?this.onDragLeave:Xr.noop,onDragEnter:n?this.onDragEnter:Xr.noop,onDragOver:n?this.onDragOver:Xr.noop},S2.Children.map(this.props.children,o=>this.processGridItem(o)),n&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}},R(bN,"ReactGridLayout"),bN);aS.default=RT;Bs(RT,"displayName","ReactGridLayout");Bs(RT,"propTypes",Rdt.default);Bs(RT,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:Xr.noop,onDragStart:Xr.noop,onDrag:Xr.noop,onDragStop:Xr.noop,onResizeStart:Xr.noop,onResize:Xr.noop,onResizeStop:Xr.noop,onDrop:Xr.noop,onDropDragOver:Xr.noop});var AT={},jp={};Object.defineProperty(jp,"__esModule",{value:!0});jp.findOrGenerateResponsiveLayout=E4e;jp.getBreakpointFromWidth=b4e;jp.getColsFromBreakpoint=y4e;jp.sortBreakpoints=wT;var cy=xi;function b4e(t,e){const n=wT(t);let r=n[0];for(let i=1,a=n.length;i<a;i++){const o=n[i];e>t[o]&&(r=o)}return r}R(b4e,"getBreakpointFromWidth");function y4e(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}R(y4e,"getColsFromBreakpoint");function E4e(t,e,n,r,i,a){if(t[n])return(0,cy.cloneLayout)(t[n]);let o=t[r];const s=wT(e),l=s.slice(s.indexOf(n));for(let u=0,c=l.length;u<c;u++){const d=l[u];if(t[d]){o=t[d];break}}return o=(0,cy.cloneLayout)(o||[]),(0,cy.compact)((0,cy.correctBounds)(o,{cols:i}),a,i)}R(E4e,"findOrGenerateResponsiveLayout");function wT(t){return Object.keys(t).sort(function(e,n){return t[e]-t[n]})}R(wT,"sortBreakpoints");Object.defineProperty(AT,"__esModule",{value:!0});AT.default=void 0;var Hoe=R4e(Re),nu=RZ(Xf),yN=nZ,Y6=xi,b2=jp,Adt=RZ(aS);function RZ(t){return t&&t.__esModule?t:{default:t}}R(RZ,"_interopRequireDefault$1");function AZ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(AZ=R(function(r){return r?n:e},"_getRequireWildcardCache$1"))(t)}R(AZ,"_getRequireWildcardCache$1");function R4e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=AZ(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(R4e,"_interopRequireWildcard$1");function mD(){return mD=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mD.apply(this,arguments)}R(mD,"_extends$2");function Jv(t,e,n){return e=A4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(Jv,"_defineProperty$4");function A4e(t){var e=w4e(t,"string");return typeof e=="symbol"?e:String(e)}R(A4e,"_toPropertyKey$1");function w4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(w4e,"_toPrimitive$1");const joe=R(t=>Object.prototype.toString.call(t),"type");function B5(t,e){return t==null?null:Array.isArray(t)?t:t[e]}R(B5,"getIndentationValue");const D4e=class extends Hoe.Component{constructor(){super(...arguments),Jv(this,"state",this.generateInitialState()),Jv(this,"onLayoutChange",e=>{this.props.onLayoutChange(e,{...this.props.layouts,[this.state.breakpoint]:e})})}generateInitialState(){const{width:e,breakpoints:n,layouts:r,cols:i}=this.props,a=(0,b2.getBreakpointFromWidth)(n,e),o=(0,b2.getColsFromBreakpoint)(a,i),s=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,b2.findOrGenerateResponsiveLayout)(r,n,a,a,o,s),breakpoint:a,cols:o}}static getDerivedStateFromProps(e,n){if(!(0,yN.deepEqual)(e.layouts,n.layouts)){const{breakpoint:r,cols:i}=n;return{layout:(0,b2.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,r,r,i,e.compactType),layouts:e.layouts}}return null}componentDidUpdate(e){(this.props.width!=e.width||this.props.breakpoint!==e.breakpoint||!(0,yN.deepEqual)(this.props.breakpoints,e.breakpoints)||!(0,yN.deepEqual)(this.props.cols,e.cols))&&this.onWidthChange(e)}onWidthChange(e){const{breakpoints:n,cols:r,layouts:i,compactType:a}=this.props,o=this.props.breakpoint||(0,b2.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),s=this.state.breakpoint,l=(0,b2.getColsFromBreakpoint)(o,r),u={...i};if(s!==o||e.breakpoints!==n||e.cols!==r){s in u||(u[s]=(0,Y6.cloneLayout)(this.state.layout));let h=(0,b2.findOrGenerateResponsiveLayout)(u,n,o,s,l,a);h=(0,Y6.synchronizeLayoutWithChildren)(h,this.props.children,l,a,this.props.allowOverlap),u[o]=h,this.props.onLayoutChange(h,u),this.props.onBreakpointChange(o,l),this.setState({breakpoint:o,layout:h,cols:l})}const c=B5(this.props.margin,o),d=B5(this.props.containerPadding,o);this.props.onWidthChange(this.props.width,c,l,d)}render(){const{breakpoint:e,breakpoints:n,cols:r,layouts:i,margin:a,containerPadding:o,onBreakpointChange:s,onLayoutChange:l,onWidthChange:u,...c}=this.props;return Hoe.createElement(Adt.default,mD({},c,{margin:B5(a,this.state.breakpoint),containerPadding:B5(o,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};R(D4e,"ResponsiveReactGridLayout");let wZ=D4e;AT.default=wZ;Jv(wZ,"propTypes",{breakpoint:nu.default.string,breakpoints:nu.default.object,allowOverlap:nu.default.bool,cols:nu.default.object,margin:nu.default.oneOfType([nu.default.array,nu.default.object]),containerPadding:nu.default.oneOfType([nu.default.array,nu.default.object]),layouts(t,e){if(joe(t[e])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+joe(t[e]));Object.keys(t[e]).forEach(n=>{if(!(n in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,Y6.validateLayout)(t.layouts[n],"layouts."+n)})},width:nu.default.number.isRequired,onBreakpointChange:nu.default.func,onLayoutChange:nu.default.func,onWidthChange:nu.default.func});Jv(wZ,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:Y6.noop,onLayoutChange:Y6.noop,onWidthChange:Y6.noop});var DZ={};const wdt=wme(tit);Object.defineProperty(DZ,"__esModule",{value:!0});DZ.default=T4e;var dy=I4e(Re),Ddt=DT(Xf),Idt=DT(wdt),Pdt=DT(hr);function DT(t){return t&&t.__esModule?t:{default:t}}R(DT,"_interopRequireDefault");function IZ(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(IZ=R(function(r){return r?n:e},"_getRequireWildcardCache"))(t)}R(IZ,"_getRequireWildcardCache");function I4e(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=IZ(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}R(I4e,"_interopRequireWildcard");function gD(){return gD=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gD.apply(this,arguments)}R(gD,"_extends$1");function eg(t,e,n){return e=P4e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(eg,"_defineProperty$3");function P4e(t){var e=M4e(t,"string");return typeof e=="symbol"?e:String(e)}R(P4e,"_toPropertyKey");function M4e(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(M4e,"_toPrimitive");const Mdt="react-grid-layout";function T4e(t){var e,n;return n=(e=class extends dy.Component{constructor(){super(...arguments),eg(this,"state",{width:1280}),eg(this,"elementRef",dy.createRef()),eg(this,"mounted",!1),eg(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new Idt.default(i=>{if(this.elementRef.current instanceof HTMLElement){const a=i[0].contentRect.width;this.setState({width:a})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:r,...i}=this.props;return r&&!this.mounted?dy.createElement("div",{className:(0,Pdt.default)(this.props.className,Mdt),style:this.props.style,ref:this.elementRef}):dy.createElement(t,gD({innerRef:this.elementRef},i,this.state))}},R(e,"WidthProvider"),e),eg(n,"defaultProps",{measureBeforeMount:!1}),eg(n,"propTypes",{measureBeforeMount:Ddt.default.bool}),n}R(T4e,"WidthProvideRGL");(function(t){t.exports=aS.default,t.exports.utils=xi,t.exports.calculateUtils=vh,t.exports.Responsive=AT.default,t.exports.Responsive.utils=jp,t.exports.WidthProvider=DZ.default})(T6e);var L4e=T6e.exports;const Tdt=xu(L4e),Ldt=L4e.WidthProvider(Tdt);function x4e(t){const{list:e,onListChange:n,idKey:r,itemRender:i,...a}=t,o=E.useMemo(()=>{const l=new Map;return e.forEach(u=>{const c=u[r];l.set(c,u)}),l},[r,e]),s=E.useMemo(()=>e.map((l,u)=>({i:l[r],w:12,h:1,x:0,y:u,col:12})),[r,e]);return Re.createElement(Ldt,{...a,cols:12,preventCollision:!1,isResizable:!1,isDraggable:!0,onLayoutChange:R(l=>{const u=l.sort((c,d)=>c.y-d.y).map(c=>o.get(c.i));n(u)},"onLayoutChange")},s.map((l,u)=>Re.createElement("div",{key:l.i,"data-grid":l},i(o.get(l.i),u))))}R(x4e,"DraggableList");var xdt=` |
|
|
min-height:0 !important; |
|
|
max-height:none !important; |
|
|
height:0 !important; |
|
|
visibility:hidden !important; |
|
|
overflow:hidden !important; |
|
|
position:absolute !important; |
|
|
z-index:-1000 !important; |
|
|
top:0 !important; |
|
|
right:0 !important; |
|
|
pointer-events: none !important; |
|
|
`,Odt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],EN={},Oc;function O4e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&EN[n])return EN[n];var r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Odt.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return e&&n&&(EN[n]=l),l}R(O4e,"calculateNodeStyling");function N4e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Oc||(Oc=document.createElement("textarea"),Oc.setAttribute("tab-index","-1"),Oc.setAttribute("aria-hidden","true"),document.body.appendChild(Oc)),t.getAttribute("wrap")?Oc.setAttribute("wrap",t.getAttribute("wrap")):Oc.removeAttribute("wrap");var i=O4e(t,e),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Oc.setAttribute("style","".concat(l,";").concat(xdt)),Oc.value=t.value||t.placeholder||"";var u=void 0,c=void 0,d,h=Oc.scrollHeight;if(s==="border-box"?h+=o:s==="content-box"&&(h-=a),n!==null||r!==null){Oc.value=" ";var f=Oc.scrollHeight-a;n!==null&&(u=f*n,s==="border-box"&&(u=u+a+o),h=Math.max(u,h)),r!==null&&(c=f*r,s==="border-box"&&(c=c+a+o),d=h>c?"":"hidden",h=Math.min(c,h))}var m={height:h,overflowY:d,resize:"none"};return u&&(m.minHeight=u),c&&(m.maxHeight=c),m}R(N4e,"calculateAutoSizeStyle");var Ndt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RN=0,AN=1,wN=2,kdt=E.forwardRef(function(t,e){var n=t,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,u=n.style,c=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=sc(n,Ndt),f=Ho(i,{value:a,postState:R(function(G){return G??""},"postState")}),m=Ur(f,2),g=m[0],p=m[1],v=R(function(G){p(G.target.value),d==null||d(G)},"onInternalChange2"),_=E.useRef();E.useImperativeHandle(e,function(){return{textArea:_.current}});var C=E.useMemo(function(){return o&&el(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=Ur(C,2),b=S[0],y=S[1],A=!!o,w=R(function(){try{if(document.activeElement===_.current){var G=_.current,te=G.selectionStart,Y=G.selectionEnd,ae=G.scrollTop;_.current.setSelectionRange(te,Y),_.current.scrollTop=ae}}catch{}},"fixFirefoxAutoScroll2"),P=E.useState(wN),M=Ur(P,2),L=M[0],k=M[1],O=E.useState(),$=Ur(O,2),B=$[0],V=$[1],X=R(function(){k(RN)},"startResize2");da(function(){A&&X()},[a,b,y,A]),da(function(){if(L===RN)k(AN);else if(L===AN){var G=N4e(_.current,!1,b,y);k(wN),V(G)}else w()},[L]);var z=E.useRef(),F=R(function(){Wi.cancel(z.current)},"cleanRaf2"),H=R(function(G){L===wN&&(s==null||s(G),o&&(F(),z.current=Wi(function(){X()})))},"onInternalResize2");E.useEffect(function(){return F},[]);var W=A?B:null,K=Ui(Ui({},u),W);return(L===RN||L===AN)&&(K.overflowY="hidden",K.overflowX="hidden"),E.createElement(Gf,{onResize:H,disabled:!(o||s)},E.createElement("textarea",bo({},h,{ref:_,style:K,className:wn(r,l,ki({},"".concat(r,"-disabled"),c)),disabled:c,value:g,onChange:v})))}),Fdt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Vdt=Re.forwardRef(function(t,e){var n,r=t.defaultValue,i=t.value,a=t.onFocus,o=t.onBlur,s=t.onChange,l=t.allowClear,u=t.maxLength,c=t.onCompositionStart,d=t.onCompositionEnd,h=t.suffix,f=t.prefixCls,m=f===void 0?"rc-textarea":f,g=t.showCount,p=t.count,v=t.className,_=t.style,C=t.disabled,S=t.hidden,b=t.classNames,y=t.styles,A=t.onResize,w=t.onClear,P=t.onPressEnter,M=t.readOnly,L=t.autoSize,k=t.onKeyDown,O=sc(t,Fdt),$=Ho(r,{value:i,defaultValue:r}),B=Ur($,2),V=B[0],X=B[1],z=V==null?"":String(V),F=Re.useState(!1),H=Ur(F,2),W=H[0],K=H[1],G=Re.useRef(!1),te=Re.useState(null),Y=Ur(te,2),ae=Y[0],ie=Y[1],ne=E.useRef(null),de=E.useRef(null),_e=R(function(){var bt;return(bt=de.current)===null||bt===void 0?void 0:bt.textArea},"getTextArea"),Pe=R(function(){_e().focus()},"focus");E.useImperativeHandle(e,function(){var bt;return{resizableTextArea:de.current,focus:Pe,blur:R(function(){_e().blur()},"blur"),nativeElement:((bt=ne.current)===null||bt===void 0?void 0:bt.nativeElement)||_e()}}),E.useEffect(function(){K(function(bt){return!C&&bt})},[C]);var De=Re.useState(null),Ee=Ur(De,2),ye=Ee[0],Ve=Ee[1];Re.useEffect(function(){if(ye){var bt;(bt=_e()).setSelectionRange.apply(bt,OM(ye))}},[ye]);var ke=MK(p,g),Ke=(n=ke.max)!==null&&n!==void 0?n:u,$e=Number(Ke)>0,Fe=ke.strategy(z),He=!!Ke&&Fe>Ke,ct=R(function(bt,ue){var ce=ue;!G.current&&ke.exceedFormatter&&ke.max&&ke.strategy(ue)>ke.max&&(ce=ke.exceedFormatter(ue,{max:ke.max}),ue!==ce&&Ve([_e().selectionStart||0,_e().selectionEnd||0])),X(ce),Gv(bt.currentTarget,bt,s,ce)},"triggerChange"),_t=R(function(bt){G.current=!0,c==null||c(bt)},"onInternalCompositionStart"),Ye=R(function(bt){G.current=!1,ct(bt,bt.currentTarget.value),d==null||d(bt)},"onInternalCompositionEnd"),Ot=R(function(bt){ct(bt,bt.target.value)},"onInternalChange"),An=R(function(bt){bt.key==="Enter"&&P&&P(bt),k==null||k(bt)},"handleKeyDown"),Ut=R(function(bt){K(!0),a==null||a(bt)},"handleFocus"),Jt=R(function(bt){K(!1),o==null||o(bt)},"handleBlur"),dn=R(function(bt){X(""),Pe(),Gv(_e(),bt,s)},"handleReset"),Sn=h,hn;ke.show&&(ke.showFormatter?hn=ke.showFormatter({value:z,count:Fe,maxLength:Ke}):hn="".concat(Fe).concat($e?" / ".concat(Ke):""),Sn=Re.createElement(Re.Fragment,null,Sn,Re.createElement("span",{className:wn("".concat(m,"-data-count"),b==null?void 0:b.count),style:y==null?void 0:y.count},hn)));var tr=R(function(bt){var ue;A==null||A(bt),(ue=_e())!==null&&ue!==void 0&&ue.style.height&&ie(!0)},"handleResize"),en=!L&&!g&&!l;return Re.createElement(PK,{ref:ne,value:z,allowClear:l,handleReset:dn,suffix:Sn,prefixCls:m,classNames:Ui(Ui({},b),{},{affixWrapper:wn(b==null?void 0:b.affixWrapper,ki(ki({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:C,focused:W,className:wn(v,He&&"".concat(m,"-out-of-range")),style:Ui(Ui({},_),ae&&!en?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hn=="string"?hn:void 0}},hidden:S,readOnly:M,onClear:w},Re.createElement(kdt,bo({},O,{autoSize:L,maxLength:u,onKeyDown:An,onChange:Ot,onFocus:Ut,onBlur:Jt,onCompositionStart:_t,onCompositionEnd:Ye,className:wn(b==null?void 0:b.textarea),style:Ui(Ui({},y==null?void 0:y.textarea),{},{resize:_==null?void 0:_.resize}),disabled:C,prefixCls:m,onResize:tr,ref:de,readOnly:M})))});const Bdt="univer-textarea",Udt={textarea:Bdt};function Hdt(t){const{autoFocus:e=!1,autoSize:n=!1,className:r,placeholder:i,value:a,disabled:o=!1,onKeyDown:s,onChange:l,...u}=t;function c(h){const{value:f}=h.target;l==null||l(f)}R(c,"handleChange");const d=hr(r,{},r);return Re.createElement(Vdt,{prefixCls:Udt.textarea,classNames:{affixWrapper:d},autoFocus:e,autoSize:n,placeholder:i,value:a,disabled:o,onKeyDown:s,onChange:c,...u})}R(Hdt,"Textarea");function k4e(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}R(k4e,"_arrayWithoutHoles$1");function F4e(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}R(F4e,"_iterableToArray$1");function V4e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}R(V4e,"_nonIterableSpread$1");function e_(t){return k4e(t)||F4e(t)||V4e()}R(e_,"_toConsumableArray$2");function lc(){return lc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}R(lc,"_extends");function B4e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}R(B4e,"_classCallCheck");function U4e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}R(U4e,"_defineProperties");function H4e(t,e,n){return e&&U4e(t.prototype,e),t}R(H4e,"_createClass");function wi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}R(wi,"_assertThisInitialized");function pD(t,e){return pD=Object.setPrototypeOf||R(function(n,r){return n.__proto__=r,n},"_setPrototypeOf"),pD(t,e)}R(pD,"_setPrototypeOf");function j4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pD(t,e)}R(j4e,"_inherits");function Mg(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mg=R(function(e){return typeof e},"_typeof2"):Mg=R(function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},"_typeof2"),Mg(t)}R(Mg,"_typeof2");function S8(t){return typeof Symbol=="function"&&Mg(Symbol.iterator)==="symbol"?S8=R(function(e){return Mg(e)},"_typeof"):S8=R(function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Mg(e)},"_typeof"),S8(t)}R(S8,"_typeof");function $4e(t,e){return e&&(S8(e)==="object"||typeof e=="function")?e:wi(t)}R($4e,"_possibleConstructorReturn");function t_(t){return t_=Object.setPrototypeOf?Object.getPrototypeOf:R(function(e){return e.__proto__||Object.getPrototypeOf(e)},"_getPrototypeOf"),t_(t)}R(t_,"_getPrototypeOf");function Si(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(Si,"_defineProperty$2");var jdt=R(function(t,e,n,r,i,a,o,s){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,o,s],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},"invariant"),$dt=jdt;const k4=xu($dt);function W4e(t){if(Array.isArray(t))return t}R(W4e,"_arrayWithHoles");function z4e(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(e&&n.length===e));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}R(z4e,"_iterableToArrayLimit");function q4e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}R(q4e,"_nonIterableRest");function n_(t,e){return W4e(t)||z4e(t,e)||q4e()}R(n_,"_slicedToArray");function Y4e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}R(Y4e,"_objectWithoutPropertiesLoose");function X4e(t,e){if(t==null)return{};var n=Y4e(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}R(X4e,"_objectWithoutProperties");function G4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(G4e,"_defineProperty");var Wdt=G4e;const r_=xu(Wdt);function Q4e(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}R(Q4e,"_arrayWithoutHoles");var zdt=Q4e;function K4e(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}R(K4e,"_iterableToArray");var qdt=K4e;function Z4e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}R(Z4e,"_nonIterableSpread");var Ydt=Z4e,Xdt=zdt,Gdt=qdt,Qdt=Ydt;function J4e(t){return Xdt(t)||Gdt(t)||Qdt()}R(J4e,"_toConsumableArray");var Kdt=J4e;const Yh=xu(Kdt);var F7=R(function(t){return t===Object(t)?Object.keys(t):[]},"keys"),e7e=R(function(t){return t===Object(t)?Object.values(t):[]},"values");function PZ(t,e){var n=Object.assign({},t);return kE(t)&&kE(e)&&F7(e).forEach(function(r){kE(e[r])?r in t?n[r]=PZ(t[r],e[r]):Object.assign(n,r_({},r,e[r])):Object.assign(n,r_({},r,e[r]))}),n}R(PZ,"mergeDeep");var H$=R(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(i,a){return PZ(i,a)},t)},"merge"),Zdt=R(function(t,e){var n=Object.assign({},t);if(e)for(var r=0;r<e.length;r++)delete n[e[r]];return n},"omit"),kE=R(function(t){return t===Object(t)&&!(t instanceof Date)&&!Array.isArray(t)},"isPlainObject"),Jdt=R(function(t){return(t||[]).filter(Boolean)},"compact"),MZ=R(function(t){return t[0]==="&"},"isModifier"),eht=R(function(t){return!MZ(t)},"isElement"),$oe=R(function(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})},"camelize"),tht=R(function(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=F7(t),r={},i=0,a=n.length;i<a;i+=1){var o=n[i],s=Object.prototype.toString.call(t[o])!=="[object Object]"||o[0]===":"||o[0]==="@"||e.indexOf(o)>=0;s&&(r[o]=t[o])}return r},"pickDirectStyles"),t7e=R(function(t,e){for(var n=e.map($oe),r=F7(t),i={},a=0,o=r.length;a<o;a+=1){var s=r[a];(e.indexOf(s)>=0||n.indexOf($oe(s))>=0)&&(i[s]=t[s])}return i},"pickNestedStyles"),nht=R(function t(e,n){for(var r=H$.apply(void 0,[{},Zdt(e,n)].concat(Yh(e7e(t7e(e,n))))),i=F7(r).filter(MZ),a=0,o=i.length;a<o;a+=1){var s=i[a],l=t(r[s],n);n.indexOf(s)>=0?(delete r[s],r=H$({},r,l)):r[s]=l}return r},"hoistModifierStylesRecursive");function j$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(j$,"ownKeys$4");function $$(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j$(Object(n),!0).forEach(function(r){r_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R($$,"_objectSpread$4");var rht=["animationName"],n7e=R(function(t){var e=t.style,n=t.className;return $$($$({},e?{style:tht(e,rht)}:{}),n?{className:n}:{})},"defaultPropsDecorator"),r7e=E.createContext(n7e);r7e.Provider;var i7e=R(function(t){if(t){if(typeof t=="string")return[t];if(!Array.isArray(t)){var e=t;return F7(t).reduce(function(n,r){return n.concat(e[r]?[r]:[])},[])}}else return[];return t},"coerceSelection"),iht={},aht=R(function(t){return function(e,n){var r=n||iht;t.memoize=t.memoize||new WeakMap;var i;t.memoize.has(r)?i=t.memoize.get(r):(i={},t.memoize.set(r,i));var a=i7e(e).join(" ");return a in i?i[a]:i[a]=t(e||[],n)}},"memoize");function W$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(W$,"ownKeys$3");function tg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W$(Object(n),!0).forEach(function(r){r_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(tg,"_objectSpread$3");var oht=R(function(t){var e=t&&F7(t)[0];return e&&e.split("__")[0].split("--")[0]},"guessBaseClassName"),sht=R(function(t,e,n){if(t){var r=t.split(" ")[0],i=[].concat(Yh(e.length===0?n.map(function(a){return"".concat(r,"--").concat(a.substring(1))}):[]),Yh(e.map(function(a){return"".concat(r,"__").concat(a)})));return e.length===0?[t].concat(Yh(i)):i}},"deriveClassNames");function TZ(t){var e=t.style,n=t.className,r=t.classNames,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n7e,a=n||oht(r)||(e==null?void 0:e.className),o=typeof e=="function"?e:aht(function(d,h){var f=i7e(d);k4(Array.isArray(f),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),k4(!h||kE(h),"Optional second parameter must be a plain object.");var m=f.filter(MZ),g=f.filter(eht),p=g.length>0?function(C){return e7e(t7e(C,g))}:function(C){return[C]},v=R(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return p(nht(C,m))},"collectSelectedStyles"),_=sht(a,g,m);return TZ(tg(tg(tg({},(e||h)&&{style:H$.apply(void 0,[{}].concat(Yh(v(h)),Yh(v(e))))}),_&&{className:_.join(" ")}),r&&{classNames:r}),i)}),s=tg({},typeof e=="function"?e:{style:e}),l=Yh(new Set([].concat(Yh(s.className?s.className.split(" "):[]),Yh(a?a.split(" "):[])))),u=r?Jdt(l.map(function(d){return r[d]})):l,c=i(tg(tg({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(o,c),o}R(TZ,"createSubstyle");function z$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(z$,"ownKeys$2");function t6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z$(Object(n),!0).forEach(function(r){r_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(t6,"_objectSpread$2");var lht=R(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(r,i){return t6(t6(t6({},r),typeof i=="function"?i:{}),{},{style:t6(t6({},r.style),typeof i=="function"?i.style:i)})},{})},"inline"),LZ=R(function(t,e,n){var r=e.style,i=e.className,a=e.classNames,o=E.useContext(r7e),s=E.useMemo(function(){return TZ({style:r,className:i,classNames:a},o)},[r,i,a,o]);return s(n,t)},"useStyles"),FE=R(function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},"escapeRegex"),Vd={id:"__id__",display:"__display__"},Woe=R(function(t,e){k4(e==="id"||e==="display",'Second arg must be either "id" or "display", got: "'.concat(e,'"'));var n=t.indexOf(Vd.display),r=t.indexOf(Vd.id);return n<0&&(n=null),r<0&&(r=null),k4(n!==null||r!==null,"The markup '".concat(t,"' does not contain either of the placeholders '__id__' or '__display__'")),n!==null&&r!==null?e==="id"&&r<=n||e==="display"&&n<=r?0:1:0},"findPositionOfCapturingGroup"),uht=R(function(t){var e=/^\/(.+)\/(\w+)?$/;return new RegExp(t.map(function(n){var r=e.exec(n.toString()),i=n_(r,3),a=i[1],o=i[2];return k4(!o,"RegExp flags are not supported. Change /".concat(a,"/").concat(o," into /").concat(a,"/")),"(".concat(a,")")}).join("|"),"g")},"combineRegExps"),a7e=R(function(t){var e=0;return t.indexOf("__id__")>=0&&e++,t.indexOf("__display__")>=0&&e++,e},"countPlaceholders"),cht=R(function(){},"emptyFn"),cS=R(function(t,e,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cht,i=uht(e.map(function(S){return S.regex})),a=2,o=e.map(function(S){var b=S.markup,y=a;return a+=a7e(b)+1,y}),s,l=0,u=0;(s=i.exec(t))!==null;){var c=o.find(function(S){return!!s[S]}),d=o.indexOf(c),h=e[d],f=h.markup,m=h.displayTransform,g=c+Woe(f,"id"),p=c+Woe(f,"display"),v=s[g],_=m(v,s[p]),C=t.substring(l,s.index);r(C,l,u),u+=C.length,n(s[0],s.index,u,v,_,d,l),u+=_.length,l=i.lastIndex}l<t.length&&r(t.substring(l),l,u)},"iterateMentionsMarkup"),fg=R(function(t,e){var n="";return cS(t,e,function(r,i,a,o,s){n+=s},function(r){n+=r}),n},"getPlainText"),xl=R(function(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"START";if(typeof n!="number")return n;var i,a=R(function(s,l,u){i===void 0&&u+s.length>=n&&(i=l+n-u)},"textIteratee"),o=R(function(s,l,u,c,d,h,f){i===void 0&&u+d.length>n&&(r==="NULL"?i=null:i=l+(r==="END"?s.length:0))},"markupIteratee");return cS(t,e,o,a),i===void 0?t.length:i},"mapPlainTextIndex"),b8=R(function(t,e,n,r){return t.substring(0,e)+r+t.substring(n)},"spliceString"),dht=R(function(t,e,n,r){var i=n.selectionStartBefore,a=n.selectionEndBefore,o=n.selectionEndAfter,s=fg(t,r),l=s.length-e.length;i==="undefined"&&(i=o+l),a==="undefined"&&(a=i),i===a&&a===o&&s.length===e.length&&(i=i-1);var u=e.slice(i,o),c=Math.min(i,o),d=a;i===o&&(d=Math.max(a,i+l));var h=xl(t,r,c,"START"),f=xl(t,r,d,"END"),m=xl(t,r,c,"NULL"),g=xl(t,r,d,"NULL"),p=m===null||g===null,v=b8(t,h,f,u);if(!p){var _=fg(v,r);if(_!==e){for(c=0;e[c]===_[c];)c++;u=e.slice(c,o),d=s.lastIndexOf(e.substring(o)),h=xl(t,r,c,"START"),f=xl(t,r,d,"END"),v=b8(t,h,f,u)}}return v},"applyChangeToValue"),zoe=R(function(t,e,n){var r=n,i=!1,a=R(function(o,s,l,u,c,d,h){l<=n&&l+c.length>n&&(r=l,i=!0)},"markupIteratee");if(cS(t,e,a),i)return r},"findStartOfMentionInPlainText"),U5=R(function(t,e){var n=[];return cS(t,e,function(r,i,a,o,s,l,u){n.push({id:o,display:s,childIndex:l,index:i,plainTextIndex:a})}),n},"getMentions"),o7e=R(function(t,e){return"".concat(t,"-").concat(e)},"getSuggestionHtmlId"),hy=R(function(t){return Object.values(t).reduce(function(e,n){var r=n.results;return e+r.length},0)},"countSuggestions"),hht=R(function(t,e){var n=U5(t,e),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0},"getEndOfLastMention"),fht=R(function(t){var e=FE(t),n=t[t.indexOf(Vd.display)+Vd.display.length],r=t[t.indexOf(Vd.id)+Vd.id.length];return new RegExp(e.replace(Vd.display,"([^".concat(FE(n||""),"]+?)")).replace(Vd.id,"([^".concat(FE(r||""),"]+?)")))},"markupToRegex"),Im=R(function(t){return E.Children.toArray(t).map(function(e){var n=e.props,r=n.markup,i=n.regex,a=n.displayTransform;return{markup:r,regex:i?mht(i,r):fht(r),displayTransform:a||function(o,s){return s||o}}})},"readConfigFromChildren"),mht=R(function(t,e){var n=new RegExp(t.toString()+"|").exec("").length-1,r=a7e(e);return k4(n===r,"Number of capturing groups in RegExp ".concat(t.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(e,"' (").concat(r,")")),t},"coerceCapturingGroups"),ght=R(function(t,e,n){return t.replace(Vd.id,e).replace(Vd.display,n)},"makeMentionsMarkup"),pht=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],vht=R(function(t){var e=t;return pht.forEach(function(n){e=e.replace(n.letters,n.base)}),e},"removeAccents"),qoe=R(function(t){return vht(t).toLowerCase()},"normalizeString"),s7e=R(function(t,e,n){return n?qoe(t).indexOf(qoe(e)):t.toLowerCase().indexOf(e.toLowerCase())},"getSubstringIndex"),_ht=R(function(){return!!document.documentMode},"isIE"),q$=R(function(t){return typeof t=="number"},"isNumber"),Cht=R(function(t){return t===Object(t)?Object.keys(t):[]},"keys"),Sht=R(function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=(e=[]).concat.apply(e,r);return Object.keys(t).reduce(function(o,s){return t.hasOwnProperty(s)&&!a.includes(s)&&t[s]!==void 0&&(o[s]=t[s]),o},{})},"omit"),bht=["style","className","classNames"];function Y$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(Y$,"ownKeys");function X$(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y$(Object(n),!0).forEach(function(r){Si(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(X$,"_objectSpread");function dS(t,e){var n=R(function(r){var i=R(function(o){var s=o.style,l=o.className,u=o.classNames,c=X4e(o,bht),d=e?e(c):void 0,h=LZ(t,{style:s,className:l,classNames:u},d);return Re.createElement(r,lc({},c,{style:h}))},"DefaultStyleEnhancer"),a=r.displayName||r.name||"Component";return i.displayName="defaultStyle(".concat(a,")"),Re.forwardRef(function(o,s){return i(X$(X$({},o),{},{ref:s}))})},"enhance");return n}R(dS,"createDefaultStyle");var yht=R(function(t,e){return t.hasOwnProperty(e)?t[e]++:t[e]=0,e+"_"+t[e]},"_generateComponentKey");function xZ(t){var e=t.selectionStart,n=t.selectionEnd,r=t.value,i=r===void 0?"":r,a=t.onCaretPositionChange,o=t.containerRef,s=t.children;t.singleLine;var l=t.style,u=E.useState({left:void 0,top:void 0}),c=n_(u,2),d=c[0],h=c[1],f=E.useState(),m=n_(f,2),g=m[0],p=m[1];E.useEffect(function(){v()});var v=R(function(){if(g){var O=g.offsetLeft,$=g.offsetTop;if(!(d.left===O&&d.top===$)){var B={left:O,top:$};h(B),a(B)}}},"notifyCaretPosition"),_=Im(s),C;n===e&&(C=xl(i,_,e,"START"));var S=[],b={},y=S,A=0,w=R(function(O,$,B){if(q$(C)&&C>=$&&C<=$+O.length){var V=C-$;y.push(M(O.substring(0,V),A)),y=[M(O.substring(V),A)]}else y.push(M(O,A));A++},"textIteratee"),P=R(function(O,$,B,V,X,z,F){var H=yht(b,V);y.push(L(V,X,z,H))},"mentionIteratee"),M=R(function(O,$){return Re.createElement("span",lc({},l("substring"),{key:$}),O)},"renderSubstring"),L=R(function(O,$,B,V){var X={id:O,display:$,key:V},z=E.Children.toArray(s)[B];return Re.cloneElement(z,X)},"getMentionComponentForMatch"),k=R(function(O){return Re.createElement("span",lc({},l("caret"),{ref:p,key:"caret"}),O)},"renderHighlighterCaret");return cS(i,_,P,w),y.push(" "),y!==S&&S.push(k(y)),Re.createElement("div",lc({},l,{ref:o}),S)}R(xZ,"Highlighter");xZ.propTypes={selectionStart:Vn.number,selectionEnd:Vn.number,value:Vn.string.isRequired,onCaretPositionChange:Vn.func.isRequired,containerRef:Vn.oneOfType([Vn.func,Vn.shape({current:typeof Element>"u"?Vn.any:Vn.instanceOf(Element)})]),children:Vn.oneOfType([Vn.element,Vn.arrayOf(Vn.element)]).isRequired};var Eht=dS({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},function(t){return{"&singleLine":t.singleLine}}),Rht=Eht(xZ);function OZ(t){var e=t.id,n=t.focused,r=t.ignoreAccents,i=t.index,a=t.onClick,o=t.onMouseEnter,s=t.query,l=t.renderSuggestion,u=t.suggestion,c=t.style;t.className,t.classNames;var d={onClick:a,onMouseEnter:o},h=R(function(){var g=f(),p=m(g);return l?l(u,s,p,i,n):p},"renderContent"),f=R(function(){if(typeof u=="string")return u;var g=u.id,p=u.display;return g===void 0||!p?g:p},"getDisplay"),m=R(function(g){var p=s7e(g,s,r);return p===-1?Re.createElement("span",c("display"),g):Re.createElement("span",c("display"),g.substring(0,p),Re.createElement("b",c("highlight"),g.substring(p,p+s.length)),g.substring(p+s.length))},"renderHighlightedDisplay");return Re.createElement("li",lc({id:e,role:"option","aria-selected":n},d,c),h())}R(OZ,"Suggestion");OZ.propTypes={id:Vn.string.isRequired,query:Vn.string.isRequired,index:Vn.number.isRequired,ignoreAccents:Vn.bool,suggestion:Vn.oneOfType([Vn.string,Vn.shape({id:Vn.oneOfType([Vn.string,Vn.number]).isRequired,display:Vn.string})]).isRequired,renderSuggestion:Vn.func,focused:Vn.bool};var Aht=dS({cursor:"pointer"},function(t){return{"&focused":t.focused}}),wht=Aht(OZ);function l7e(t){var e=t.style,n=t.className,r=t.classNames,i=LZ(Dht,{style:e,className:n,classNames:r}),a=i("spinner");return Re.createElement("div",i,Re.createElement("div",a,Re.createElement("div",a(["element","element1"])),Re.createElement("div",a(["element","element2"])),Re.createElement("div",a(["element","element3"])),Re.createElement("div",a(["element","element4"])),Re.createElement("div",a(["element","element5"]))))}R(l7e,"LoadingIndicator");var Dht={};function NZ(t){var e=t.id,n=t.suggestions,r=n===void 0?{}:n,i=t.a11ySuggestionsListLabel,a=t.focusIndex,o=t.position,s=t.left,l=t.right,u=t.top,c=t.scrollFocusedIntoView,d=t.isLoading,h=t.isOpened,f=t.onSelect,m=f===void 0?function(){return null}:f,g=t.ignoreAccents,p=t.containerRef,v=t.children,_=t.style,C=t.customSuggestionsContainer,S=t.onMouseDown,b=t.onMouseEnter,y=E.useState(void 0),A=n_(y,2),w=A[0],P=A[1];E.useEffect(function(){if(!(!w||w.offsetHeight>=w.scrollHeight||!c)){var V=w.scrollTop,X=w.children[a].getBoundingClientRect(),z=X.top,F=X.bottom,H=w.getBoundingClientRect(),W=H.top;z=z-W+V,F=F-W+V,z<V?w.scrollTop=z:F>w.offsetHeight&&(w.scrollTop=F-w.offsetHeight)}},[a,c,w]);var M=R(function(){var V=Re.createElement("ul",lc({ref:P,id:e,role:"listbox","aria-label":i},_("list")),Object.values(r).reduce(function(X,z){var F=z.results,H=z.queryInfo;return[].concat(e_(X),e_(F.map(function(W,K){return L(W,H,X.length+K)})))},[]));return C?C(V):V},"renderSuggestions"),L=R(function(V,X,z){var F=z===a,H=X.childIndex,W=X.query,K=E.Children.toArray(v)[H].props.renderSuggestion;return Re.createElement(wht,{style:_("item"),key:"".concat(H,"-").concat(B(V)),id:o7e(e,z),query:W,index:z,ignoreAccents:g,renderSuggestion:K,suggestion:V,focused:F,onClick:R(function(){return $(V,X)},"onClick"),onMouseEnter:R(function(){return O(z)},"onMouseEnter")})},"renderSuggestion"),k=R(function(){if(d)return Re.createElement(l7e,{style:_("loadingIndicator")})},"renderLoadingIndicator"),O=R(function(V,X){b&&b(V)},"handleMouseEnter"),$=R(function(V,X){m(V,X)},"select"),B=R(function(V){return typeof V=="string"?V:V.id},"getID");return h?Re.createElement("div",lc({},lht({position:o||"absolute",left:s,right:l,top:u},_),{onMouseDown:S,ref:p}),M(),k()):null}R(NZ,"SuggestionsOverlay");NZ.propTypes={id:Vn.string.isRequired,suggestions:Vn.object.isRequired,a11ySuggestionsListLabel:Vn.string,focusIndex:Vn.number,position:Vn.string,left:Vn.number,right:Vn.number,top:Vn.number,scrollFocusedIntoView:Vn.bool,isLoading:Vn.bool,isOpened:Vn.bool.isRequired,onSelect:Vn.func,ignoreAccents:Vn.bool,customSuggestionsContainer:Vn.func,containerRef:Vn.oneOfType([Vn.func,Vn.shape({current:typeof Element>"u"?Vn.any:Vn.instanceOf(Element)})])};var Iht=dS({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}}),Pht=Iht(NZ);function G$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(G$,"ownKeys$1");function Uc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G$(Object(n),!0).forEach(function(r){Si(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}R(Uc,"_objectSpread$1");function u7e(t){var e=c7e();return R(function(){var n=t_(t),r;if(e){var i=t_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $4e(this,r)},"_createSuperInternal")}R(u7e,"_createSuper");function c7e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}R(c7e,"_isNativeReflectConstruct");var Mht=R(function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t instanceof RegExp)return t;var n=e.allowSpaceInQuery,r=FE(t);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))},"makeTriggerRegex"),Tht=R(function(t,e){return t instanceof Array?function(n,r){for(var i=[],a=0,o=t.length;a<o;++a){var s=t[a].display||t[a].id;s7e(s,n,e)>=0&&i.push(t[a])}return i}:t},"getDataProvider"),I3={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},fy=!1,d7e={singleLine:Vn.bool,allowSpaceInQuery:Vn.bool,allowSuggestionsAboveCursor:Vn.bool,forceSuggestionsAboveCursor:Vn.bool,ignoreAccents:Vn.bool,a11ySuggestionsListLabel:Vn.string,value:Vn.string,onKeyDown:Vn.func,customSuggestionsContainer:Vn.func,onSelect:Vn.func,onBlur:Vn.func,onChange:Vn.func,suggestionsPortalHost:typeof Element>"u"?Vn.any:Vn.PropTypes.instanceOf(Element),inputRef:Vn.oneOfType([Vn.func,Vn.shape({current:typeof Element>"u"?Vn.any:Vn.instanceOf(Element)})]),children:Vn.oneOfType([Vn.element,Vn.arrayOf(Vn.element)]).isRequired},kZ=function(t){j4e(n,t);var e=u7e(n);function n(r){var i;return B4e(this,n),i=e.call(this,r),Si(wi(i),"setContainerElement",function(a){i.containerElement=a}),Si(wi(i),"getInputProps",function(){var a=i.props,o=a.readOnly,s=a.disabled,l=a.style,u=Sht(i.props,["style","classNames","className"],Cht(d7e));return Uc(Uc(Uc(Uc({},u),l("input")),{},{value:i.getPlainText(),onScroll:i.updateHighlighterScroll},!o&&!s&&{onChange:i.handleChange,onSelect:i.handleSelect,onKeyDown:i.handleKeyDown,onBlur:i.handleBlur,onCompositionStart:i.handleCompositionStart,onCompositionEnd:i.handleCompositionEnd}),i.isOpened()&&{role:"combobox","aria-controls":i.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":o7e(i.uuidSuggestionsOverlay,i.state.focusIndex)})}),Si(wi(i),"renderControl",function(){var a=i.props,o=a.singleLine,s=a.style,l=i.getInputProps();return Re.createElement("div",s("control"),i.renderHighlighter(),o?i.renderInput(l):i.renderTextarea(l))}),Si(wi(i),"renderInput",function(a){return Re.createElement("input",lc({type:"text",ref:i.setInputRef},a))}),Si(wi(i),"renderTextarea",function(a){return Re.createElement("textarea",lc({ref:i.setInputRef},a))}),Si(wi(i),"setInputRef",function(a){i.inputElement=a;var o=i.props.inputRef;typeof o=="function"?o(a):o&&(o.current=a)}),Si(wi(i),"setSuggestionsElement",function(a){i.suggestionsElement=a}),Si(wi(i),"renderSuggestionsOverlay",function(){if(!q$(i.state.selectionStart))return null;var a=i.state.suggestionsPosition,o=a.position,s=a.left,l=a.top,u=a.right,c=Re.createElement(Pht,{id:i.uuidSuggestionsOverlay,style:i.props.style("suggestions"),position:o,left:s,top:l,right:u,focusIndex:i.state.focusIndex,scrollFocusedIntoView:i.state.scrollFocusedIntoView,containerRef:i.setSuggestionsElement,suggestions:i.state.suggestions,customSuggestionsContainer:i.props.customSuggestionsContainer,onSelect:i.addMention,onMouseDown:i.handleSuggestionsMouseDown,onMouseEnter:i.handleSuggestionsMouseEnter,isLoading:i.isLoading(),isOpened:i.isOpened(),ignoreAccents:i.props.ignoreAccents,a11ySuggestionsListLabel:i.props.a11ySuggestionsListLabel},i.props.children);return i.props.suggestionsPortalHost?ec.createPortal(c,i.props.suggestionsPortalHost):c}),Si(wi(i),"renderHighlighter",function(){var a=i.state,o=a.selectionStart,s=a.selectionEnd,l=i.props,u=l.singleLine,c=l.children,d=l.value,h=l.style;return Re.createElement(Rht,{containerRef:i.setHighlighterElement,style:h("highlighter"),value:d,singleLine:u,selectionStart:o,selectionEnd:s,onCaretPositionChange:i.handleCaretPositionChange},c)}),Si(wi(i),"setHighlighterElement",function(a){i.highlighterElement=a}),Si(wi(i),"handleCaretPositionChange",function(a){i.setState({caretPosition:a})}),Si(wi(i),"getPlainText",function(){return fg(i.props.value||"",Im(i.props.children))}),Si(wi(i),"executeOnChange",function(a){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];if(i.props.onChange){var u;return(u=i.props).onChange.apply(u,[a].concat(s))}if(i.props.valueLink){var c;return(c=i.props.valueLink).requestChange.apply(c,[a.target.value].concat(s))}}),Si(wi(i),"handleChange",function(a){if(fy=!1,_ht()){var o=document.activeElement&&document.activeElement.contentDocument||document;if(o.activeElement!==a.target)return}var s=i.props.value||"",l=Im(i.props.children),u=a.target.value,c=i.state.selectionStart;c==null&&(c=a.target.selectionStart);var d=i.state.selectionEnd;d==null&&(d=a.target.selectionEnd);var h=dht(s,u,{selectionStartBefore:c,selectionEndBefore:d,selectionEndAfter:a.target.selectionEnd},l);u=fg(h,l);var f=a.target.selectionStart,m=a.target.selectionEnd,g=!1,p=zoe(s,l,f);p!==void 0&&i.state.selectionEnd>p&&(f=p+(a.nativeEvent.data?a.nativeEvent.data.length:0),m=f,g=!0),i.setState({selectionStart:f,selectionEnd:m,setSelectionAfterMentionChange:g});var v=U5(h,l);a.nativeEvent.isComposing&&f===m&&i.updateMentionsQueries(i.inputElement.value,f);var _={target:{value:h}};i.executeOnChange(_,h,u,v)}),Si(wi(i),"handleSelect",function(a){if(i.setState({selectionStart:a.target.selectionStart,selectionEnd:a.target.selectionEnd}),!fy){var o=i.inputElement;a.target.selectionStart===a.target.selectionEnd?i.updateMentionsQueries(o.value,a.target.selectionStart):i.clearSuggestions(),i.updateHighlighterScroll(),i.props.onSelect(a)}}),Si(wi(i),"handleKeyDown",function(a){var o=hy(i.state.suggestions);if(o===0||!i.suggestionsElement){i.props.onKeyDown(a);return}switch(Object.values(I3).indexOf(a.keyCode)>=0&&(a.preventDefault(),a.stopPropagation()),a.keyCode){case I3.ESC:{i.clearSuggestions();return}case I3.DOWN:{i.shiftFocus(1);return}case I3.UP:{i.shiftFocus(-1);return}case I3.RETURN:{i.selectFocused();return}case I3.TAB:{i.selectFocused();return}default:return}}),Si(wi(i),"shiftFocus",function(a){var o=hy(i.state.suggestions);i.setState({focusIndex:(o+i.state.focusIndex+a)%o,scrollFocusedIntoView:!0})}),Si(wi(i),"selectFocused",function(){var a=i.state,o=a.suggestions,s=a.focusIndex,l=Object.values(o).reduce(function(d,h){var f=h.results,m=h.queryInfo;return[].concat(e_(d),e_(f.map(function(g){return{result:g,queryInfo:m}})))},[])[s],u=l.result,c=l.queryInfo;i.addMention(u,c),i.setState({focusIndex:0})}),Si(wi(i),"handleBlur",function(a){var o=i._suggestionsMouseDown;i._suggestionsMouseDown=!1,o||i.setState({selectionStart:null,selectionEnd:null}),window.setTimeout(function(){i.updateHighlighterScroll()},1),i.props.onBlur(a,o)}),Si(wi(i),"handleSuggestionsMouseDown",function(a){i._suggestionsMouseDown=!0}),Si(wi(i),"handleSuggestionsMouseEnter",function(a){i.setState({focusIndex:a,scrollFocusedIntoView:!1})}),Si(wi(i),"updateSuggestionsPosition",function(){var a=i.state.caretPosition,o=i.props,s=o.suggestionsPortalHost,l=o.allowSuggestionsAboveCursor,u=o.forceSuggestionsAboveCursor;if(!(!a||!i.suggestionsElement)){var c=i.suggestionsElement,d=i.highlighterElement,h=d.getBoundingClientRect(),f=DN(d,"font-size"),m={left:h.left+a.left,top:h.top+a.top+f},g=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(c){var p={};if(s){p.position="fixed";var v=m.left,_=m.top;v-=DN(c,"margin-left"),_-=DN(c,"margin-top"),v-=d.scrollLeft,_-=d.scrollTop;var C=Math.max(document.documentElement.clientWidth,window.innerWidth||0);v+c.offsetWidth>C?p.left=Math.max(0,C-c.offsetWidth):p.left=v,l&&_+c.offsetHeight>g&&c.offsetHeight<_-f||u?p.top=Math.max(0,_-c.offsetHeight-f):p.top=_}else{var S=a.left-d.scrollLeft,b=a.top-d.scrollTop;S+c.offsetWidth>i.containerElement.offsetWidth?p.right=0:p.left=S,l&&m.top-d.scrollTop+c.offsetHeight>g&&c.offsetHeight<h.top-f-d.scrollTop||u?p.top=b-c.offsetHeight-f:p.top=b}p.left===i.state.suggestionsPosition.left&&p.top===i.state.suggestionsPosition.top&&p.position===i.state.suggestionsPosition.position||i.setState({suggestionsPosition:p})}}}),Si(wi(i),"updateHighlighterScroll",function(){var a=i.inputElement,o=i.highlighterElement;!a||!o||(o.scrollLeft=a.scrollLeft,o.scrollTop=a.scrollTop,o.height=a.height)}),Si(wi(i),"handleCompositionStart",function(){fy=!0}),Si(wi(i),"handleCompositionEnd",function(){fy=!1}),Si(wi(i),"setSelection",function(a,o){if(!(a===null||o===null)){var s=i.inputElement;if(s.setSelectionRange)s.setSelectionRange(a,o);else if(s.createTextRange){var l=s.createTextRange();l.collapse(!0),l.moveEnd("character",o),l.moveStart("character",a),l.select()}}}),Si(wi(i),"updateMentionsQueries",function(a,o){i._queryId++,i.suggestions={},i.setState({suggestions:{}});var s=i.props.value||"",l=i.props.children,u=Im(l),c=xl(s,u,o,"NULL");if(c!==null){var d=hht(s.substring(0,c),u),h=a.substring(d,o);Re.Children.forEach(l,function(f,m){if(f){var g=Mht(f.props.trigger,i.props),p=h.match(g);if(p){var v=d+h.indexOf(p[1],p.index);i.queryData(p[2],m,v,v+p[1].length,a)}}})}}),Si(wi(i),"clearSuggestions",function(){i._queryId++,i.suggestions={},i.setState({suggestions:{},focusIndex:0})}),Si(wi(i),"queryData",function(a,o,s,l,u){var c=i.props,d=c.children,h=c.ignoreAccents,f=E.Children.toArray(d)[o],m=Tht(f.props.data,h),g=m(a,i.updateSuggestions.bind(null,i._queryId,o,a,s,l,u));g instanceof Array&&i.updateSuggestions(i._queryId,o,a,s,l,u,g)}),Si(wi(i),"updateSuggestions",function(a,o,s,l,u,c,d){if(a===i._queryId){i.suggestions=Uc(Uc({},i.suggestions),{},Si({},o,{queryInfo:{childIndex:o,query:s,querySequenceStart:l,querySequenceEnd:u,plainTextValue:c},results:d}));var h=i.state.focusIndex,f=hy(i.suggestions);i.setState({suggestions:i.suggestions,focusIndex:h>=f?Math.max(f-1,0):h})}}),Si(wi(i),"addMention",function(a,o){var s=a.id,l=a.display,u=o.childIndex,c=o.querySequenceStart,d=o.querySequenceEnd,h=o.plainTextValue,f=i.props.value||"",m=Im(i.props.children),g=E.Children.toArray(i.props.children)[u],p=g.props,v=p.markup,_=p.displayTransform,C=p.appendSpaceOnAdd,S=p.onAdd,b=xl(f,m,c,"START"),y=b+d-c,A=ght(v,s,l);C&&(A+=" ");var w=b8(f,b,y,A);i.inputElement.focus();var P=_(s,l);C&&(P+=" ");var M=c+P.length;i.setState({selectionStart:M,selectionEnd:M,setSelectionAfterMentionChange:!0});var L={target:{value:w}},k=U5(w,m),O=b8(h,c,d,P);i.executeOnChange(L,w,O,k),S&&S(s,l,b,y),i.clearSuggestions()}),Si(wi(i),"isLoading",function(){var a=!1;return Re.Children.forEach(i.props.children,function(o){a=a||o&&o.props.isLoading}),a}),Si(wi(i),"isOpened",function(){return q$(i.state.selectionStart)&&(hy(i.state.suggestions)!==0||i.isLoading())}),Si(wi(i),"_queryId",0),i.suggestions={},i.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),i.handleCopy=i.handleCopy.bind(wi(i)),i.handleCut=i.handleCut.bind(wi(i)),i.handlePaste=i.handlePaste.bind(wi(i)),i.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{},setSelectionAfterHandlePaste:!1},i}return R(n,"MentionsInput"),H4e(n,[{key:"componentDidMount",value:R(function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()},"componentDidMount")},{key:"componentDidUpdate",value:R(function(r,i){i.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd)),this.state.setSelectionAfterHandlePaste&&(this.setState({setSelectionAfterHandlePaste:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))},"componentDidUpdate")},{key:"componentWillUnmount",value:R(function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)},"componentWillUnmount")},{key:"render",value:R(function(){return Re.createElement("div",lc({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())},"render")},{key:"handlePaste",value:R(function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault();var i=this.state,a=i.selectionStart,o=i.selectionEnd,s=this.props,l=s.value,u=s.children,c=Im(u),d=xl(l,c,a,"START"),h=xl(l,c,o,"END"),f=r.clipboardData.getData("text/react-mentions"),m=r.clipboardData.getData("text/plain"),g=b8(l,d,h,f||m).replace(/\r/g,""),p=fg(g,c),v={target:Uc(Uc({},r.target),{},{value:g})};this.executeOnChange(v,g,p,U5(g,c));var _=zoe(l,c,a),C=(_||a)+fg(f||m,c).length;this.setState({selectionStart:C,selectionEnd:C,setSelectionAfterHandlePaste:!0})}},"handlePaste")},{key:"saveSelectionToClipboard",value:R(function(r){var i=this.inputElement.selectionStart,a=this.inputElement.selectionEnd,o=this.props,s=o.children,l=o.value,u=Im(s),c=xl(l,u,i,"START"),d=xl(l,u,a,"END");r.clipboardData.setData("text/plain",r.target.value.slice(i,a)),r.clipboardData.setData("text/react-mentions",l.slice(c,d))},"saveSelectionToClipboard")},{key:"supportsClipboardActions",value:R(function(r){return!!r.clipboardData},"supportsClipboardActions")},{key:"handleCopy",value:R(function(r){r.target===this.inputElement&&this.supportsClipboardActions(r)&&(r.preventDefault(),this.saveSelectionToClipboard(r))},"handleCopy")},{key:"handleCut",value:R(function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault(),this.saveSelectionToClipboard(r);var i=this.state,a=i.selectionStart,o=i.selectionEnd,s=this.props,l=s.children,u=s.value,c=Im(l),d=xl(u,c,a,"START"),h=xl(u,c,o,"END"),f=[u.slice(0,d),u.slice(h)].join(""),m=fg(f,c),g={target:Uc(Uc({},r.target),{},{value:m})};this.executeOnChange(g,f,m,U5(u,c))}},"handleCut")}]),n}(Re.Component);Si(kZ,"propTypes",d7e);Si(kZ,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:R(function(){return null},"onKeyDown"),onSelect:R(function(){return null},"onSelect"),onBlur:R(function(){return null},"onBlur")});var DN=R(function(t,e){var n=parseFloat(window.getComputedStyle(t,null).getPropertyValue(e));return isFinite(n)?n:0},"getComputedStyleLengthProp"),Lht=typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent),xht=dS({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:Uc({height:"100%",bottom:0,overflow:"hidden",resize:"none"},Lht?{marginTop:1,marginLeft:-3}:null)}},function(t){var e=t.singleLine;return{"&singleLine":e,"&multiLine":!e}}),Oht=xht(kZ),Nht={fontWeight:"inherit"},h7e=R(function(t){var e=t.display,n=t.style,r=t.className,i=t.classNames,a=LZ(Nht,{style:n,className:r,classNames:i});return Re.createElement("strong",a,e)},"Mention");h7e.propTypes={onAdd:Vn.func,onRemove:Vn.func,renderSuggestion:Vn.func,trigger:Vn.oneOfType([Vn.string,Vn.instanceOf(RegExp)]),markup:Vn.string,displayTransform:Vn.func,allowSpaceInQuery:Vn.bool,isLoading:Vn.bool};h7e.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:R(function(t,e){return e||t},"displayTransform"),onAdd:R(function(){return null},"onAdd"),onRemove:R(function(){return null},"onRemove"),renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const kht="univer-mentions",Fht={mentions:kht};E.forwardRef((t,e)=>Re.createElement(Oht,{ref:e,...t,className:Fht.mentions}));gc.extend(Wtt);gc.extend($tt);gc.extend(qtt);gc.extend(ztt);gc.extend(Ytt);gc.extend(Xtt);var f7e=Object.defineProperty,Vht=(t,e,n)=>e in t?f7e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e)=>f7e(t,"name",{value:e,configurable:!0}),q=(t,e,n)=>Vht(t,typeof e!="symbol"?e+"":e,n),m7e=(t=>(t.RECT="rect",t.CIRCLE="circle",t.PATH="path",t))(m7e||{});const X6=1,V7='"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif',Bht=14;var Yn=(t=>(t.DEFAULT="default",t.AUTO="auto",t.CROSSHAIR="crosshair",t.POINTER="pointer",t.MOVE="move",t.EAST_RESIZE="e-resize",t.NORTH_EAST_RESIZE="ne-resize",t.NORTH_WEST_RESIZE="nw-resize",t.NORTH_RESIZE="n-resize",t.SOUTH_EAST_RESIZE="se-resize",t.SOUTH_WEST_RESIZE="sw-resize",t.SOUTH_RESIZE="s-resize",t.WEST_RESIZE="w-resize",t.TEXT="text",t.WAIT="wait",t.HELP="help",t.CELL="cell",t.NONE="none",t.VERTICAL_TEXT="vertical-text",t.NO_DROP="no-drop",t.GRAB="grab",t.GRABBING="grabbing",t.ALL_SCROLL="all-scroll",t.COLUMN_RESIZE="col-resize",t.ROW_RESIZE="row-resize",t.PROGRESS="progress",t.NOT_ALLOWED="not-allowed",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t))(Yn||{});const F4="rgb(0,0,0)";var wr=(t=>(t.TOP="t",t.BOTTOM="b",t.LEFT="l",t.RIGHT="r",t.TL_BR="tl_br",t.TL_BC="tl_bc",t.TL_MR="tl_mr",t.BL_TR="bl_tr",t.ML_TR="ml_tr",t.BC_TR="bc_tr",t))(wr||{}),vD=(t=>(t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t))(vD||{}),ar=(t=>(t.ENGINE="Engine",t.SCENE="Scene",t.BASE_OBJECT="BaseObject",t.SCENE_VIEWER="SceneViewer",t.CANVAS="Canvas",t.VIEWPORT="Viewport",t.LAYER="Layer",t.GROUP="Group",t.IMAGE="Image",t.SHAPE="Shape",t.TEXT="Text",t))(ar||{});const Uht=2e3,Lo=.5;var fo=(t=>(t[t.translate=0]="translate",t[t.resize=1]="resize",t[t.scale=2]="scale",t[t.skew=3]="skew",t[t.flip=4]="flip",t[t.all=5]="all",t))(fo||{});const g7e=class{isEmpty(){return this._isEmpty()}toString(e){if(this.isEmpty())throw new Error("Output is empty.");return this._toString(e)}toRegExp(e){return new RegExp(this.toString(e),e)}};T(g7e,"Base");let Hht=g7e;const p7e=class H5 extends Hht{constructor(...e){super(),this.data=[];for(const n of e)n instanceof H5?this.data.push(...n.data):this.data.push(_7e(n));this._unique()}union(...e){return new H5(this,...e)}subtract(...e){const n=this.data.slice(),r=[];let i=0;const{data:a}=new H5(...e);for(;n.length!==0;){const o=n.shift(),[s,l]=o;let u;do{u=!0;const c=a[i];if(c===void 0){r.push(o);break}const[d,h]=c;h<s?(u=!1,i++):l<d?r.push(o):d<=s&&h<l?(i++,n.unshift([h+1,l])):s<d&&h<l?(i++,r.push([s,d-1]),n.unshift([h+1,l])):s<d&&l<=h&&r.push([s,d-1])}while(!u)}return new H5(...r)}intersect(...e){return this.subtract(this.subtract(...e))}_isEmpty(){return this.data.length===0}_toString(e){return S7e(this.data,e)}_unique(){this.data.sort(C7e);const e=[];let n=null;for(const r of this.data)n===null||n[1]+1<r[0]?(e.push(r),n=r):(e.splice(-1,1,[Math.min(r[0],n[0]),Math.max(r[1],n[1])]),n=e[e.length-1]);this.data=e}};T(p7e,"Charset");let i_=p7e;const IT=T((...t)=>new i_(...t),"charset");function v7e(t){if(t.length!==1){const e=`${t.length} (${JSON.stringify(t)})`;throw new Error(`Expected length = 1, but received ${e}.`)}return t.charCodeAt(0)}T(v7e,"charCode");function _7e(t){if(typeof t=="number"&&(t<0||t>1114111))throw new Error(`Invalid unicode code point detected: ${t<0?t:`0x${t.toString(16)}`}`);const[e]=[t].map(n=>typeof n!="object"?[n,n]:n).map(n=>n.map(r=>typeof r=="string"?v7e(r):r));return e}T(_7e,"normalize$1");function C7e(t,e){return t[0]-e[0]}T(C7e,"compare");function S7e(t,e=""){if(e.includes("u"))return Q$(t,!0);const{normal:n,surrogate:r}=y7e(t),i=[];return n.length!==0&&i.push(Q$(n,!1)),i.push(...b7e(r)),i.join("|")}T(S7e,"rangesToString");function Q$(t,e){return`[${t.map(([n,r])=>n===r?G6(n,e):`${G6(n,e)}-${G6(r,e)}`).join("")}]`}T(Q$,"normalToPattern");function b7e(t){const e=[];if(t.entire.data.length!==0){const n=t.entire.toString(),r=`[${[56320,57343].map(i=>G6(i,!1)).join("-")}]`;e.push(`${n}${r}`)}for(const{h:n,l:r}of t.partial){const i=G6(n,!1),a=r.toString();e.push(`${i}${a}`)}return e}T(b7e,"surrogateToPatterns");function y7e(t){const e=[],n=[];for(let r=0;r<t.length;r++){const i=t[r],[a,o]=i;if(a>=65536){n.push(...t.slice(r));break}if(o>=65536){e.push([a,65535]),n.push([65536,o],...t.slice(r+1));break}e.push(i)}return{normal:e,surrogate:E7e(n)}}T(y7e,"splitRanges");function E7e(t){const e=[],n=[];for(const[a,o]of t){const s=K$(a),l=K$(o);if(s.h===l.h){i(s.h,s.l,l.l);continue}s.l===56320?r(s.h):i(s.h,s.l,57343);for(let u=s.h+1;u<l.h;u++)r(u);l.l===57343?r(l.h):i(l.h,56320,l.l)}return{entire:new i_(...e),partial:n.map(({h:a,l:o})=>({h:a,l:new i_(...o)}))};function r(a){e.push(a)}function i(a,o,s){const l=n[n.length-1];l!==void 0&&l.h===a?l.l.push([o,s]):n.push({h:a,l:[[o,s]]})}}T(E7e,"splitSurrogateRanges");function K$(t){return{h:Math.floor((t-65536)/1024)+55296,l:(t-65536)%1024+56320}}T(K$,"surrogatePair");function G6(t,e){const n=t.toString(16);return e?`\\u{${n}}`:`\\u${"0".repeat(4-n.length)}${n}`}T(G6,"unicode$1");const jht=[[0,127]],$ht=[[48,57],[65,70],[97,102]],Wht=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,837,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1456,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1623],[1625,1631],[1646,1747],[1749,1756],[1761,1768],[1773,1775],[1786,1788],1791,[1808,1855],[1869,1969],[1994,2026],[2036,2037],2042,[2048,2071],[2074,2092],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2260,2271],[2275,2281],[2288,2363],[2365,2380],[2382,2384],[2389,2403],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2500],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2531],[2544,2545],2556,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2626],[2631,2632],[2635,2636],2641,[2649,2652],2654,[2672,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2757],[2759,2761],[2763,2764],2768,[2784,2787],[2809,2812],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2884],[2887,2888],[2891,2892],[2902,2903],[2908,2909],[2911,2915],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3020],3024,3031,[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3133,3140],[3142,3144],[3146,3148],[3157,3158],[3160,3162],3165,[3168,3171],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3276],[3285,3286],[3293,3294],[3296,3299],[3313,3315],[3328,3340],[3342,3344],[3346,3386],[3389,3396],[3398,3400],[3402,3404],3406,[3412,3415],[3423,3427],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3540],3542,[3544,3551],[3570,3571],[3585,3642],[3648,3654],3661,[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3769],[3771,3773],[3776,3780],3782,3789,[3804,3807],3840,[3904,3911],[3913,3948],[3953,3971],[3976,3991],[3993,4028],[4096,4150],4152,[4155,4159],[4176,4239],[4250,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5907],[5919,5939],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6067],[6070,6088],6103,6108,[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6456],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6683],[6688,6750],[6753,6772],6823,[6847,6848],[6860,6862],[6912,6963],[6965,6979],[6981,6988],[7040,7081],[7084,7087],[7098,7141],[7143,7153],[7168,7222],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7655,7668],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],11823,[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42612,42619],[42623,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43013],[43015,43047],[43072,43123],[43136,43203],43205,[43250,43255],43259,[43261,43263],[43274,43306],[43312,43346],[43360,43388],[43392,43442],[43444,43455],43471,[43488,43503],[43514,43518],[43520,43574],[43584,43597],[43616,43638],[43642,43710],43712,43714,[43739,43741],[43744,43759],[43762,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[69248,69289],[69291,69292],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69632,69701],[69745,69749],[69760,69816],69826,[69840,69864],[69888,69938],[69956,69959],[69968,70002],70006,[70016,70079],[70081,70084],[70094,70095],70106,70108,[70144,70161],[70163,70196],70199,[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70376],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70468],[70471,70472],[70475,70476],70480,70487,[70493,70499],[70656,70721],[70723,70725],[70727,70730],[70751,70753],[70784,70849],[70852,70853],70855,[71040,71093],[71096,71102],[71128,71133],[71168,71230],71232,71236,[71296,71349],71352,[71424,71450],[71453,71466],[71488,71494],[71680,71736],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,71996],[71999,72002],[72096,72103],[72106,72151],[72154,72159],72161,[72163,72164],[72192,72242],[72245,72254],[72272,72343],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72766],72768,[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73025],73027,[73030,73031],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73110],73112,[73440,73462],[73472,73488],[73490,73530],[73534,73536],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113822,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125255,125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],zht=[[0,1114111]],qht=[[0,887],[890,895],[900,906],908,[910,929],[931,1327],[1329,1366],[1369,1418],[1421,1423],[1425,1479],[1488,1514],[1519,1524],[1536,1805],[1807,1866],[1869,1969],[1984,2042],[2045,2093],[2096,2110],[2112,2139],2142,[2144,2154],[2160,2190],[2192,2193],[2200,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[3585,3642],[3647,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4058],[4096,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5909],[5919,5942],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6109],[6112,6121],[6128,6137],[6144,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6683],[6686,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829],[6832,6862],[6912,6988],[6992,7038],[7040,7155],[7164,7223],[7227,7241],[7245,7304],[7312,7354],[7357,7367],[7376,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8292],[8294,8305],[8308,8334],[8336,8348],[8352,8384],[8400,8432],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12351],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43052],[43056,43065],[43072,43127],[43136,43205],[43214,43225],[43232,43347],[43359,43388],[43392,43469],[43471,43481],[43486,43518],[43520,43574],[43584,43597],[43600,43609],[43612,43714],[43739,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65049],[65056,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65529,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66045],[66176,66204],[66208,66256],[66272,66299],[66304,66339],[66349,66378],[66384,66426],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184],[68192,68255],[68288,68326],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68903],[68912,68921],[69216,69246],[69248,69289],[69291,69293],[69296,69297],[69373,69415],[69424,69465],[69488,69513],[69552,69579],[69600,69622],[69632,69709],[69714,69749],[69759,69826],69837,[69840,69864],[69872,69881],[69888,69940],[69942,69959],[69968,70006],[70016,70111],[70113,70132],[70144,70161],[70163,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70747],[70749,70753],[70784,70855],[70864,70873],[71040,71093],[71096,71133],[71168,71236],[71248,71257],[71264,71276],[71296,71353],[71360,71369],[71424,71450],[71453,71467],[71472,71494],[71680,71739],[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025],[72096,72103],[72106,72151],[72154,72164],[72192,72263],[72272,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72758],[72760,72773],[72784,72812],[72816,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73464],[73472,73488],[73490,73530],[73534,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],[92912,92917],[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94031,94087],[94095,94111],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827],[118528,118573],[118576,118598],[118608,118723],[118784,119029],[119040,119078],[119081,119274],[119296,119365],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121483],[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],[123214,123215],[123536,123566],[123584,123641],123647,[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125142],[125184,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],917505,[917536,917631],[917760,917999],[983040,1048573],[1048576,1114109]],Yht=[1564,[8206,8207],[8234,8238],[8294,8297]],Xht=[[40,41],60,62,91,93,123,125,171,187,[3898,3901],[5787,5788],[8249,8250],[8261,8262],[8317,8318],[8333,8334],8512,[8705,8708],[8712,8717],8721,[8725,8726],[8730,8733],[8735,8738],8740,8742,[8747,8755],8761,[8763,8780],[8786,8789],[8799,8800],8802,[8804,8811],[8814,8844],[8847,8850],8856,[8866,8867],[8870,8888],[8894,8895],[8905,8909],[8912,8913],[8918,8941],[8944,8959],[8968,8971],[8992,8993],[9001,9002],[10088,10101],10176,[10179,10182],[10184,10185],[10187,10189],[10195,10198],[10204,10206],[10210,10223],[10627,10648],[10651,10656],[10658,10671],10680,[10688,10693],10697,[10702,10706],[10708,10709],[10712,10716],10721,[10723,10725],[10728,10729],[10740,10745],[10748,10749],[10762,10780],[10782,10785],10788,10790,10793,[10795,10798],[10804,10805],[10812,10814],[10839,10840],[10852,10853],[10858,10861],[10863,10864],[10867,10868],[10873,10915],[10918,10925],[10927,10966],10972,10974,[10978,10982],[10988,10990],10995,[10999,11003],11005,11262,[11778,11781],[11785,11786],[11788,11789],[11804,11805],[11808,11817],[11861,11868],[12296,12305],[12308,12315],[65113,65118],[65124,65125],[65288,65289],65308,65310,65339,65341,65371,65373,[65375,65376],[65378,65379],120539,120597,120655,120713,120771],Ght=[39,46,58,94,96,168,173,175,180,[183,184],[688,879],[884,885],890,[900,901],903,[1155,1161],1369,1375,[1425,1469],1471,[1473,1474],[1476,1477],1479,1524,[1536,1541],[1552,1562],1564,1600,[1611,1631],1648,[1750,1757],[1759,1768],[1770,1773],1807,1809,[1840,1866],[1958,1968],[2027,2037],2042,2045,[2070,2093],[2137,2139],2184,[2192,2193],[2200,2207],[2249,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2417,2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3654,3662],3761,[3764,3772],3782,[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,4348,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6103,6109,[6155,6159],6211,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,6823,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7288,7293],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7468,7530],7544,[7579,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8203,8207],[8216,8217],8228,8231,[8234,8238],[8288,8292],[8294,8303],8305,8319,[8336,8348],[8400,8432],[11388,11389],[11503,11505],11631,11647,[11744,11775],11823,12293,[12330,12333],[12337,12341],12347,[12441,12446],[12540,12542],40981,[42232,42237],42508,[42607,42610],[42612,42621],42623,[42652,42655],[42736,42737],[42752,42785],42864,[42888,42890],[42994,42996],[43e3,43001],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43471,[43493,43494],[43561,43566],[43569,43570],[43573,43574],43587,43596,43632,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,43741,[43756,43757],[43763,43764],43766,[43867,43871],[43881,43883],44005,44008,44013,64286,[64434,64450],[65024,65039],65043,[65056,65071],65106,65109,65279,65287,65294,65306,65342,65344,65392,[65438,65439],65507,[65529,65531],66045,66272,[66422,66426],[67456,67461],[67463,67504],[67506,67514],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69821,69826,69837,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,[78896,78912],[78919,78933],[92912,92916],[92976,92982],[92992,92995],94031,[94095,94111],[94176,94177],[94179,94180],[110576,110579],[110581,110587],[110589,110590],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123184,123197],123566,[123628,123631],[124139,124143],[125136,125142],[125252,125259],[127995,127999],917505,[917536,917631],[917760,917999]],Qht=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,442],[444,447],[452,659],[661,696],[704,705],[736,740],837,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4348,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8544,8575],[8579,8580],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42653],[42786,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42994,42998],[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125184,125251],[127280,127305],[127312,127337],[127344,127369]],Kht=[[65,90],181,[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,837,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],962,[975,977],[981,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1009],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,[4256,4293],4295,4301,[5112,5117],[7296,7304],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8064,8111],[8114,8116],[8119,8124],[8130,8132],[8135,8140],[8152,8155],[8168,8172],[8178,8180],[8183,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],Zht=[[65,90],[97,122],181,[192,214],[216,246],[248,311],[313,396],[398,410],[412,425],[428,441],[444,445],447,[452,544],[546,563],[570,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,977],[981,1013],[1015,1019],[1021,1153],[1162,1327],[1329,1366],[1377,1415],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],7545,7549,7566,[7680,7835],7838,[7840,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8486,[8490,8491],8498,8526,[8544,8575],[8579,8580],[9398,9449],[11264,11376],[11378,11379],[11381,11382],[11390,11491],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42799],[42802,42863],[42873,42887],[42891,42893],[42896,42900],[42902,42926],[42928,42954],[42960,42961],[42966,42969],[42997,42998],43859,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[125184,125251]],Jht=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8072,8079],[8088,8095],[8104,8111],[8120,8124],[8136,8140],[8152,8155],[8168,8172],[8184,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],eft=[[65,90],160,168,170,173,175,[178,181],[184,186],[188,190],[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,[306,308],310,313,315,317,[319,321],323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,461],463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,500],[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,[688,696],[728,733],[736,740],[832,833],[835,837],847,880,882,884,886,890,[894,895],[900,906],908,[910,911],[913,929],[931,939],962,[975,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1010],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,1564,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3852,3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,[4256,4293],4295,4301,4348,[4447,4448],[5112,5117],[6068,6069],[6155,6159],[7296,7304],[7312,7354],[7357,7359],[7468,7470],[7472,7482],[7484,7501],[7503,7530],7544,[7579,7615],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],8049,8051,8053,8055,8057,8059,8061,[8064,8111],[8114,8116],[8119,8132],[8135,8143],8147,[8152,8155],[8157,8159],8163,[8168,8175],[8178,8180],[8183,8190],[8192,8207],8209,8215,[8228,8230],[8234,8239],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,[8287,8305],[8308,8334],[8336,8348],8360,[8448,8451],[8453,8455],[8457,8467],[8469,8470],[8473,8477],[8480,8482],8484,8486,8488,[8490,8493],[8495,8505],[8507,8512],[8517,8521],[8528,8575],8579,8585,[8748,8749],[8751,8752],[9001,9002],[9312,9450],10764,[10868,10870],10972,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11388,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,11631,11935,12019,[12032,12245],12288,12342,[12344,12346],[12443,12444],12447,12543,[12593,12686],[12690,12703],[12800,12830],[12832,12871],[12880,12926],[12928,13311],42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,[42652,42653],42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42864,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,[42994,42997],[43e3,43001],[43868,43871],43881,[43888,43967],[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65024,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],[65136,65138],65140,[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65520,65528],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[67457,67461],[67463,67504],[67506,67514],[68736,68786],[71840,71871],[93760,93791],[113824,113827],[119134,119140],[119155,119162],[119227,119232],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[122928,122989],[125184,125217],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127232,127242],[127248,127278],[127280,127311],[127338,127340],127376,[127488,127490],[127504,127547],[127552,127560],[127568,127569],[130032,130041],[194560,195101],[917504,921599]],tft=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,452,[454,455],[457,458],460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,497],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],nft=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,[453,454],[456,457],[459,460],462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],[498,499],501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[4304,4346],[4349,4351],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8116],[8118,8119],8124,8126,[8130,8132],[8134,8135],8140,[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8188,8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],rft=[[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3958,3960,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],ift=[45,1418,1470,5120,6150,[8208,8213],8275,8315,8331,8722,11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],aft=[173,847,1564,[4447,4448],[6068,6069],[6155,6159],[8203,8207],[8234,8238],[8288,8303],12644,[65024,65039],65279,65440,[65520,65528],[113824,113827],[119155,119162],[917504,921599]],oft=[329,1651,3959,3961,[6051,6052],[8298,8303],[9001,9002],917505],sft=[94,96,168,175,180,[183,184],[688,846],[848,855],[861,866],[884,885],890,[900,901],[1155,1159],1369,[1425,1441],[1443,1469],1471,[1473,1474],1476,[1611,1618],[1623,1624],[1759,1760],[1765,1766],[1770,1772],[1840,1866],[1958,1968],[2027,2037],[2072,2073],[2200,2207],[2249,2258],[2275,2302],2364,2381,[2385,2388],2417,2492,2509,2620,2637,2748,2765,[2813,2815],2876,2893,2901,3021,3132,3149,3260,3277,[3387,3388],3405,3530,[3655,3660],3662,3770,[3784,3788],[3864,3865],3893,3895,3897,[3902,3903],[3970,3972],[3974,3975],4038,4151,[4153,4154],[4195,4196],[4201,4205],[4231,4237],4239,[4250,4251],[4957,4959],[5908,5909],[6089,6099],6109,[6457,6459],[6773,6780],6783,[6832,6846],[6849,6859],6964,6980,[7019,7027],[7082,7083],[7222,7223],[7288,7293],[7376,7400],7405,7412,[7415,7417],[7468,7530],[7620,7631],[7669,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[11503,11505],11823,[12330,12335],[12441,12444],12540,42607,[42620,42621],42623,[42652,42653],[42736,42737],[42752,42785],[42888,42890],[43e3,43001],43204,[43232,43249],[43307,43310],43347,43443,43456,43493,[43643,43645],[43711,43714],43766,[43867,43871],[43881,43883],[44012,44013],64286,[65056,65071],65342,65344,65392,[65438,65439],65507,66272,[67456,67461],[67463,67504],[67506,67514],[68325,68326],[68898,68903],[69373,69375],[69446,69456],[69506,69509],69702,69744,[69817,69818],[69939,69940],70003,70080,[70090,70092],[70197,70198],[70377,70378],70460,70477,[70502,70508],[70512,70516],70722,70726,[70850,70851],[71103,71104],71231,[71350,71351],71467,[71737,71738],[71997,71998],72003,72160,72244,72263,72345,72767,73026,[73028,73029],73111,[78919,78933],[92912,92916],[92976,92982],[94095,94111],[94192,94193],[110576,110579],[110581,110587],[110589,110590],[118528,118573],[118576,118598],[119143,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[122928,122989],[123184,123190],123566,[123628,123631],[125136,125142],[125252,125254],[125256,125258]],lft=[35,42,[48,57],169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9732],9742,9745,[9748,9749],9752,9757,9760,[9762,9763],9766,9770,[9774,9775],[9784,9786],9792,9794,[9800,9811],[9823,9824],9827,[9829,9830],9832,9851,[9854,9855],[9874,9879],9881,[9883,9884],[9888,9889],9895,[9898,9899],[9904,9905],[9917,9918],[9924,9925],9928,[9934,9935],9937,[9939,9940],[9961,9962],[9968,9973],[9975,9978],9981,9986,9989,[9992,9997],9999,10002,10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10084],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,126980,127183,[127344,127345],[127358,127359],127374,[127377,127386],[127462,127487],[127489,127490],127514,127535,[127538,127546],[127568,127569],[127744,127777],[127780,127891],[127894,127895],[127897,127899],[127902,127984],[127987,127989],[127991,128253],[128255,128317],[128329,128334],[128336,128359],[128367,128368],[128371,128378],128391,[128394,128397],128400,[128405,128406],[128420,128421],128424,[128433,128434],128444,[128450,128452],[128465,128467],[128476,128478],128481,128483,128488,128495,128499,[128506,128591],[128640,128709],[128715,128722],[128725,128727],[128732,128741],128745,[128747,128748],128752,[128755,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],uft=[35,42,[48,57],8205,8419,65039,[127462,127487],[127995,127999],[129456,129459],[917536,917631]],cft=[[127995,127999]],dft=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],hft=[[8986,8987],[9193,9196],9200,9203,[9725,9726],[9748,9749],[9800,9811],9855,9875,9889,[9898,9899],[9917,9918],[9924,9925],9934,9940,9962,[9970,9971],9973,9978,9981,9989,[9994,9995],10024,10060,10062,[10067,10069],10071,[10133,10135],10160,10175,[11035,11036],11088,11093,126980,127183,127374,[127377,127386],[127462,127487],127489,127514,127535,[127538,127542],[127544,127546],[127568,127569],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],127988,[127992,128062],128064,[128066,128252],[128255,128317],[128331,128334],[128336,128359],128378,[128405,128406],128420,[128507,128591],[128640,128709],128716,[128720,128722],[128725,128727],[128732,128735],[128747,128748],[128756,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],fft=[836,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],mft=[[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[308,311],[313,318],[323,328],[332,337],[340,357],[360,382],[416,417],[431,432],[461,476],[478,483],[486,496],[500,501],[504,539],[542,543],[550,563],836,[901,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],[1570,1574],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7833],7835,[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],[8129,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8188],8491,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,12446,12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],12542,[44032,55203],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232]],gft=[168,175,180,184,[188,190],[306,307],[319,320],329,[452,460],[497,499],[728,733],836,890,[900,901],1415,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,7834,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8174],[8189,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8748,8749],[8751,8752],[9321,9397],10764,[10868,10870],10972,[12443,12444],12447,12543,[12800,12830],[12832,12867],[12880,12895],[12924,12925],[12977,13007],[13055,13311],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65269,65276],65507,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],[127552,127560]],pft=[168,175,180,184,[188,190],[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[306,311],[313,320],[323,329],[332,337],[340,357],[360,382],[416,417],[431,432],[452,476],[478,483],[486,501],[504,539],[542,543],[550,563],[728,733],836,890,[900,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],1415,[1570,1574],[1653,1656],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7835],[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8125],[8127,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8491,8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,[8748,8749],[8751,8752],8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],[9321,9397],10764,[10868,10870],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,[12443,12444],[12446,12447],12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],[12542,12543],[12800,12830],[12832,12867],[12880,12895],[12910,12926],[12977,13007],[13055,13311],[44032,55203],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[64420,64421],[64432,64433],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65153,65164],[65269,65276],65507,69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],127507,[127552,127560]],vft=[169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9096,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9733],[9735,9746],[9748,9861],[9872,9989],[9992,10002],10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10087],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,[126976,127231],[127245,127247],127279,[127340,127345],[127358,127359],127374,[127377,127386],[127405,127461],[127489,127503],127514,127535,[127538,127546],[127548,127551],[127561,127994],[128e3,128317],[128326,128591],[128640,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129292,129338],[129340,129349],[129351,129791],[130048,131069]],_ft=[183,[720,721],1600,2042,2901,3654,3782,6154,6211,6823,7222,7291,12293,[12337,12341],[12445,12446],[12540,12542],40981,42508,43471,43494,43632,43741,[43763,43764],65392,[67457,67458],70493,[71110,71112],72344,[92994,92995],[94176,94177],94179,[123196,123197],[125252,125254]],Cft=[[832,833],[835,836],884,894,903,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,8049,8051,8053,8055,8057,8059,8061,8123,8126,8137,8139,8147,8155,8163,8171,[8174,8175],8185,8187,8189,[8192,8193],8486,[8490,8491],[9001,9002],10972,[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232],[194560,195101]],Sft=[[32,126],[160,172],[174,767],[880,887],[890,895],[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1418],[1421,1423],1470,1472,1475,1478,[1488,1514],[1519,1524],[1542,1551],1563,[1565,1610],[1632,1647],[1649,1749],1758,[1765,1766],1769,[1774,1805],1808,[1810,1839],[1869,1957],1969,[1984,2026],[2036,2042],[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2208,2249],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,[2495,2496],[2503,2504],[2507,2508],2510,[2524,2525],[2527,2529],[2534,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2801],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,2880,[2887,2888],[2891,2892],[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3007,[3009,3010],[3014,3016],[3018,3020],3024,[3046,3066],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],[3191,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3262],[3264,3265],[3267,3268],[3271,3272],[3274,3275],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],3389,[3391,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3414],[3416,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3536,3537],[3544,3550],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3647,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3898,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6108],[6112,6121],[6128,6137],[6144,6154],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8202],[8208,8231],[8239,8287],[8304,8305],[8308,8334],[8336,8348],[8352,8384],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11502],[11506,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12336,12351],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42606],42611,[42622,42653],[42656,42735],[42738,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],[43047,43051],[43056,43065],[43072,43127],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],[65281,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65532,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[68912,68921],[69216,69246],[69248,69289],69293,[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],69632,[69634,69687],[69703,69709],[69714,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69820],[69822,69825],[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70463,[70465,70468],[70471,70472],[70475,70477],70480,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70831],[70833,70834],70841,[70843,70844],70846,70849,[70852,70855],[70864,70873],[71040,71086],[71088,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71264,71276],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],[71985,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],72766,[72768,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94179],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119140],119142,[119146,119149],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],123647,[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],bft=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,2494,[2497,2500],2509,2519,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,[2878,2879],[2881,2884],2893,[2901,2903],[2914,2915],2946,3006,3008,3021,3031,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3266,3270,[3276,3277],[3285,3286],[3298,3299],[3328,3329],[3387,3388],3390,[3393,3396],3405,3415,[3426,3427],3457,3530,3535,[3538,3540],3542,3551,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],[6964,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70462,70464,70487,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,70832,[70835,70840],70842,70845,[70847,70848],[70850,70851],71087,[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],71984,[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],119141,[119143,119145],[119150,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917536,917631],[917760,917999]],yft=[2381,2509,2637,2765,2893,3021,3149,3277,[3387,3388],3405,3530,3642,3770,3972,[4153,4154],[5908,5909],5940,6098,6752,6980,[7082,7083],[7154,7155],11647,43014,43052,43204,43347,43456,43766,44013,68159,69702,69744,69759,69817,[69939,69940],70080,70197,70378,70477,70722,70850,71103,71231,71350,71467,71737,[71997,71998],72160,72244,72263,72345,72767,[73028,73029],73111,[73537,73538]],Eft=[[48,57],[65,70],[97,102],[65296,65305],[65313,65318],[65345,65350]],Rft=[45,173,1418,6150,[8208,8209],11799,12539,65123,65293,65381],Aft=[[12272,12273],[12276,12283]],wft=[[12274,12275]],Dft=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[890,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65024,65039],[65056,65071],[65075,65076],[65101,65103],[65136,65140],[65142,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],Ift=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12443,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Pft=[[12294,12295],[12321,12329],[12344,12346],[13312,19903],[19968,40959],[63744,64109],[64112,64217],94180,[94208,100343],[100352,101589],[101632,101640],[110960,111355],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Mft=[[8204,8205]],Tft=[[3648,3652],[3776,3780],[6581,6583],6586,[43701,43702],43705,[43707,43708]],Lft=[[97,122],170,181,186,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,696],[704,705],[736,740],837,881,883,887,[890,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4348,4351],[5112,5117],[7296,7304],[7424,7615],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8305,8319,[8336,8348],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11389],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,[42651,42653],42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,[42863,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,[42994,42996],42998,[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125218,125251]],xft=[43,[60,62],94,124,126,172,177,215,247,[976,978],981,[1008,1009],[1012,1014],[1542,1544],8214,[8242,8244],8256,8260,8274,[8289,8292],[8314,8318],[8330,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8472,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8521],8523,[8592,8615],[8617,8622],[8624,8625],[8630,8631],[8636,8667],8669,[8676,8677],[8692,8959],[8968,8971],[8992,8993],9084,[9115,9141],9143,9168,[9180,9186],[9632,9633],[9646,9655],[9660,9665],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9720,9727],[9733,9734],9792,9794,[9824,9827],[9837,9839],[10176,10239],[10496,11007],[11056,11076],[11079,11084],64297,[65121,65126],65128,65291,[65308,65310],65340,65342,65372,65374,65506,[65513,65516],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],Oft=[[64976,65007],[65534,65535],[131070,131071],[196606,196607],[262142,262143],[327678,327679],[393214,393215],[458750,458751],[524286,524287],[589822,589823],[655358,655359],[720894,720895],[786430,786431],[851966,851967],[917502,917503],[983038,983039],[1048574,1048575],[1114110,1114111]],Nft=[837,[1456,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1623],[1625,1631],1648,[1750,1756],[1761,1764],[1767,1768],1773,1809,[1840,1855],[1958,1968],[2070,2071],[2075,2083],[2085,2087],[2089,2092],[2260,2271],[2275,2281],[2288,2307],[2362,2363],[2366,2380],[2382,2383],[2389,2391],[2402,2403],[2433,2435],[2494,2500],[2503,2504],[2507,2508],2519,[2530,2531],[2561,2563],[2622,2626],[2631,2632],[2635,2636],2641,[2672,2673],2677,[2689,2691],[2750,2757],[2759,2761],[2763,2764],[2786,2787],[2810,2812],[2817,2819],[2878,2884],[2887,2888],[2891,2892],[2902,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3020],3031,[3072,3076],[3134,3140],[3142,3144],[3146,3148],[3157,3158],[3170,3171],[3201,3203],[3262,3268],[3270,3272],[3274,3276],[3285,3286],[3298,3299],3315,[3328,3331],[3390,3396],[3398,3400],[3402,3404],3415,[3426,3427],[3457,3459],[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],3661,3761,[3764,3769],[3771,3772],3789,[3953,3971],[3981,3991],[3993,4028],[4139,4150],4152,[4155,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[5906,5907],[5938,5939],[5970,5971],[6002,6003],[6070,6088],[6277,6278],6313,[6432,6443],[6448,6456],[6679,6683],[6741,6750],[6753,6772],[6847,6848],[6860,6862],[6912,6916],[6965,6979],[7040,7042],[7073,7081],[7084,7085],[7143,7153],[7204,7222],[7655,7668],[9398,9449],[11744,11775],[42612,42619],[42654,42655],43010,43019,[43043,43047],[43136,43137],[43188,43203],43205,43263,[43302,43306],[43335,43346],[43392,43395],[43444,43455],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],43710,[43755,43759],43765,[44003,44010],64286,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68900,68903],[69291,69292],[69632,69634],[69688,69701],[69747,69748],[69760,69762],[69808,69816],69826,[69888,69890],[69927,69938],[69957,69958],[70016,70018],[70067,70079],[70094,70095],[70188,70196],70199,70206,70209,[70367,70376],[70400,70403],[70462,70468],[70471,70472],[70475,70476],70487,[70498,70499],[70709,70721],[70723,70725],[70832,70849],[71087,71093],[71096,71102],[71132,71133],[71216,71230],71232,[71339,71349],[71453,71466],[71724,71736],[71984,71989],[71991,71992],[71995,71996],72e3,72002,[72145,72151],[72154,72159],72164,[72193,72202],[72245,72249],[72251,72254],[72273,72283],[72330,72343],[72751,72758],[72760,72766],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73025],73027,73031,[73098,73102],[73104,73105],[73107,73110],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73536],94031,[94033,94087],[94095,94098],[94192,94193],113822,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,125255,[127280,127305],[127312,127337],[127344,127369]],kft=[847,[4447,4448],[6068,6069],8293,12644,65440,[65520,65528],917504,[917506,917535],[917632,917759],[918e3,921599]],Fft=[2494,2519,2878,2903,3006,3031,3266,[3285,3286],3390,3415,3535,3551,6965,8204,[12334,12335],[65438,65439],70462,70487,70832,70845,71087,71984,119141,[119150,119154],[917536,917631]],Vft=[183,903,[4969,4977],6618],Bft=[[6277,6278],8472,8494,[12443,12444]],Uft=[170,186,[688,696],[704,705],[736,740],837,890,4348,[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[8560,8575],[9424,9449],[11388,11389],[42652,42653],42864,[42994,42996],[43e3,43001],[43868,43871],43881,67456,[67459,67461],[67463,67504],[67506,67514],[122928,122989]],Hft=[94,[976,978],981,[1008,1009],[1012,1013],8214,[8242,8244],8256,[8289,8292],[8317,8318],[8333,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8473,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8511],[8517,8521],[8597,8601],[8604,8607],[8609,8610],[8612,8613],8615,[8617,8621],[8624,8625],[8630,8631],[8636,8653],[8656,8657],8659,[8661,8667],8669,[8676,8677],[8968,8971],[9140,9141],9143,9168,9186,[9632,9633],[9646,9654],[9660,9664],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9733,9734],9792,9794,[9824,9827],[9837,9838],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],65121,65123,65128,65340,65342,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],jft=[[8544,8559],[9398,9423],[127280,127305],[127312,127337],[127344,127369]],$ft=[[33,47],[58,64],[91,94],96,[123,126],[161,167],169,[171,172],174,[176,177],182,187,191,215,247,[8208,8231],[8240,8254],[8257,8275],[8277,8286],[8592,9311],[9472,10101],[10132,11263],[11776,11903],[12289,12291],[12296,12320],12336,[64830,64831],[65093,65094]],Wft=[[9,13],32,133,[8206,8207],[8232,8233]],zft=[[1536,1541],1757,1807,[2192,2193],2274,69821,69837],qft=[34,39,171,187,[8216,8223],[8249,8250],11842,[12300,12303],[12317,12319],[65089,65092],65282,65287,[65378,65379]],Yft=[[11904,11929],[11931,12019],[12032,12245]],Xft=[[127462,127487]],Gft=[33,46,63,1417,[1565,1567],1748,[1792,1794],2041,2103,2105,[2109,2110],[2404,2405],[4170,4171],4962,[4967,4968],5742,[5941,5942],6147,6153,[6468,6469],[6824,6827],[7002,7003],[7006,7007],[7037,7038],[7227,7228],[7294,7295],[8252,8253],[8263,8265],11822,11836,[11859,11860],12290,42239,[42510,42511],42739,42743,[43126,43127],[43214,43215],43311,[43464,43465],[43613,43615],[43760,43761],44011,65106,[65110,65111],65281,65294,65311,65377,[68182,68183],[69461,69465],[69510,69513],[69703,69704],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70201],[70203,70204],70313,[70731,70732],[71106,71107],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72769,72770],[73463,73464],[73539,73540],[92782,92783],92917,[92983,92984],92996,93848,113823,121480],Qft=[[105,106],303,585,616,669,690,1011,1110,1112,7522,7574,7588,7592,7725,7883,8305,[8520,8521],11388,[119842,119843],[119894,119895],[119946,119947],[119998,119999],[120050,120051],[120102,120103],[120154,120155],[120206,120207],[120258,120259],[120310,120311],[120362,120363],[120414,120415],[120466,120467],122650,[122956,122957],122984],Kft=[33,44,46,[58,59],63,894,903,1417,1475,1548,1563,[1565,1567],1748,[1792,1802],1804,[2040,2041],[2096,2110],2142,[2404,2405],[3674,3675],3848,[3853,3858],[4170,4171],[4961,4968],5742,[5867,5869],[5941,5942],[6100,6102],6106,[6146,6149],[6152,6153],[6468,6469],[6824,6827],[7002,7003],[7005,7007],[7037,7038],[7227,7231],[7294,7295],[8252,8253],[8263,8265],11822,11836,11841,11852,[11854,11855],[11859,11860],[12289,12290],[42238,42239],[42509,42511],[42739,42743],[43126,43127],[43214,43215],43311,[43463,43465],[43613,43615],43743,[43760,43761],44011,[65104,65106],[65108,65111],65281,65292,65294,[65306,65307],65311,65377,65380,66463,66512,67671,67871,[68182,68183],[68336,68341],[68410,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70204],70313,[70731,70733],[70746,70747],[71106,71109],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72353,72354],[72769,72771],72817,[73463,73464],[73539,73540],[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],Zft=[[13312,19903],[19968,40959],[64014,64015],64017,[64019,64020],64031,64033,[64035,64036],[64039,64041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[196608,201546],[201552,205743]],Jft=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217],[127280,127305],[127312,127337],[127344,127369]],emt=[[6155,6157],6159,[65024,65039],[917760,917999]],tmt=[[9,13],32,133,160,5760,[8192,8202],[8232,8233],8239,8287,12288],nmt=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[891,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12442],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],[65024,65039],[65056,65071],[65075,65076],[65101,65103],65137,65139,65143,65145,65147,65149,[65151,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],rmt=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],3634,[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],3762,3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],65137,65139,65143,65145,65147,65149,[65151,65276],[65313,65338],[65345,65370],[65382,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],imt=Object.freeze(Object.defineProperty({__proto__:null,ASCII:jht,ASCII_Hex_Digit:$ht,Alphabetic:Wht,Any:zht,Assigned:qht,Bidi_Control:Yht,Bidi_Mirrored:Xht,Case_Ignorable:Ght,Cased:Qht,Changes_When_Casefolded:Kht,Changes_When_Casemapped:Zht,Changes_When_Lowercased:Jht,Changes_When_NFKC_Casefolded:eft,Changes_When_Titlecased:tft,Changes_When_Uppercased:nft,Composition_Exclusion:rft,Dash:ift,Default_Ignorable_Code_Point:aft,Deprecated:oft,Diacritic:sft,Emoji:lft,Emoji_Component:uft,Emoji_Modifier:cft,Emoji_Modifier_Base:dft,Emoji_Presentation:hft,Expands_On_NFC:fft,Expands_On_NFD:mft,Expands_On_NFKC:gft,Expands_On_NFKD:pft,Extended_Pictographic:vft,Extender:_ft,Full_Composition_Exclusion:Cft,Grapheme_Base:Sft,Grapheme_Extend:bft,Grapheme_Link:yft,Hex_Digit:Eft,Hyphen:Rft,IDS_Binary_Operator:Aft,IDS_Trinary_Operator:wft,ID_Continue:Dft,ID_Start:Ift,Ideographic:Pft,Join_Control:Mft,Logical_Order_Exception:Tft,Lowercase:Lft,Math:xft,Noncharacter_Code_Point:Oft,Other_Alphabetic:Nft,Other_Default_Ignorable_Code_Point:kft,Other_Grapheme_Extend:Fft,Other_ID_Continue:Vft,Other_ID_Start:Bft,Other_Lowercase:Uft,Other_Math:Hft,Other_Uppercase:jft,Pattern_Syntax:$ft,Pattern_White_Space:Wft,Prepended_Concatenation_Mark:zft,Quotation_Mark:qft,Radical:Yft,Regional_Indicator:Xft,Sentence_Terminal:Gft,Soft_Dotted:Qft,Terminal_Punctuation:Kft,Unified_Ideograph:Zft,Uppercase:Jft,Variation_Selector:emt,White_Space:tmt,XID_Continue:nmt,XID_Start:rmt},Symbol.toStringTag,{value:"Module"})),amt=[[65,90],[97,122],181,[192,214],[216,246],[248,442],[444,447],[452,659],[661,687],[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7467],[7531,7543],[7545,7578],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8579,8580],[11264,11387],[11390,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42863],[42865,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42997,42998],43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[125184,125251]],omt=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65114,65116,65118,65289,65341,65373,65376,65379],smt=[95,[8255,8256],8276,[65075,65076],[65101,65103],65343],lmt=[[0,31],[127,159]],umt=[36,[162,165],1423,1547,[2046,2047],[2546,2547],2555,2801,3065,3647,6107,[8352,8384],43064,65020,65129,65284,[65504,65505],[65509,65510],[73693,73696],123647,126128],cmt=[45,1418,1470,5120,6150,[8208,8213],11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],dmt=[[48,57],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],hmt=[[1160,1161],6846,[8413,8416],[8418,8420],[42608,42610]],fmt=[187,8217,8221,8250,11779,11781,11786,11789,11805,11809],mmt=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8203,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505,[917536,917631]],gmt=[171,8216,[8219,8220],8223,8249,11778,11780,11785,11788,11804,11808],pmt=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8579,8580],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,[12293,12294],[12337,12341],[12347,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42725],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],vmt=[[5870,5872],[8544,8578],[8581,8584],12295,[12321,12329],[12344,12346],[42726,42735],[65856,65908],66369,66378,[66513,66517],[74752,74862]],_mt=[8232],Cmt=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,687],881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4349,4351],[5112,5117],[7296,7304],[7424,7467],[7531,7543],[7545,7578],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,8580,[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11387],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,[42865,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,42998,43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[125218,125251]],Smt=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],94180,[94192,94193],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],bmt=[43,[60,62],124,126,172,177,215,247,1014,[1542,1544],8260,8274,[8314,8316],[8330,8332],8472,[8512,8516],8523,[8592,8596],[8602,8603],8608,8611,8614,8622,[8654,8655],8658,8660,[8692,8959],[8992,8993],9084,[9115,9139],[9180,9185],9655,9665,[9720,9727],9839,[10176,10180],[10183,10213],[10224,10239],[10496,10626],[10649,10711],[10716,10747],[10750,11007],[11056,11076],[11079,11084],64297,65122,[65124,65126],65291,[65308,65310],65372,65374,65506,[65513,65516],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[126704,126705]],ymt=[[688,705],[710,721],[736,740],748,750,884,890,1369,1600,[1765,1766],[2036,2037],2042,2074,2084,2088,2249,2417,3654,3782,4348,6103,6211,6823,[7288,7293],[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[11388,11389],11631,11823,12293,[12337,12341],12347,[12445,12446],[12540,12542],40981,[42232,42237],42508,42623,[42652,42653],[42775,42783],42864,42888,[42994,42996],[43e3,43001],43471,43494,43632,43741,[43763,43764],[43868,43871],43881,65392,[65438,65439],[67456,67461],[67463,67504],[67506,67514],[92992,92995],[94099,94111],[94176,94177],94179,[110576,110579],[110581,110587],[110589,110590],[122928,122989],[123191,123197],124139,125259],Emt=[94,96,168,175,180,184,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],2184,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[12443,12444],[42752,42774],[42784,42785],[42889,42890],43867,[43882,43883],[64434,64450],65342,65344,65507,[127995,127999]],Rmt=[[768,879],[1155,1159],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6845],[6847,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8412],8417,[8421,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],42607,[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],Amt=[[48,57],[178,179],185,[188,190],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2548,2553],[2662,2671],[2790,2799],[2918,2927],[2930,2935],[3046,3058],[3174,3183],[3192,3198],[3302,3311],[3416,3422],[3430,3448],[3558,3567],[3664,3673],[3792,3801],[3872,3891],[4160,4169],[4240,4249],[4969,4988],[5870,5872],[6112,6121],[6128,6137],[6160,6169],[6470,6479],[6608,6618],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],8304,[8308,8313],[8320,8329],[8528,8578],[8581,8585],[9312,9371],[9450,9471],[10102,10131],11517,12295,[12321,12329],[12344,12346],[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[42528,42537],[42726,42735],[43056,43061],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[65799,65843],[65856,65912],[65930,65931],[66273,66299],[66336,66339],66369,66378,[66513,66517],[66720,66729],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[68912,68921],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69743],[69872,69881],[69942,69951],[70096,70105],[70113,70132],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71483],[71904,71922],[72016,72025],[72784,72812],[73040,73049],[73120,73129],[73552,73561],[73664,73684],[74752,74862],[92768,92777],[92864,92873],[93008,93017],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125127,125135],[125264,125273],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244],[130032,130041]],wmt=[40,91,123,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378],Dmt=[[0,31],[127,159],173,[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1541],1564,1757,[1806,1807],[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],[2191,2199],2274,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],6158,[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,[8203,8207],[8234,8238],[8288,8303],[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,63743],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65280],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65531],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],69821,[69827,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78896,78911],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113824,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119155,119162],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917759],[918e3,1114111]],Imt=[170,186,443,[448,451],660,[1488,1514],[1519,1522],[1568,1599],[1601,1610],[1646,1647],[1649,1747],1749,[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2048,2069],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2248],[2308,2361],2365,2384,[2392,2401],[2418,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3653],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4352,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6108,[6176,6210],[6212,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7287],[7401,7404],[7406,7411],[7413,7414],7418,[8501,8504],[11568,11623],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],12294,12348,[12353,12438],12447,[12449,12538],12543,[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,40980],[40982,42124],[42192,42231],[42240,42507],[42512,42527],[42538,42539],42606,[42656,42725],42895,42999,[43003,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],[43488,43492],[43495,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43631],[43633,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43740],[43744,43754],43762,[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43968,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65382,65391],[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66640,66717],[66816,66855],[66864,66915],[67072,67382],[67392,67413],[67424,67431],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[93027,93047],[93053,93071],[93952,94026],94032,[94208,100343],[100352,101589],[101632,101640],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],122634,[123136,123180],123214,[123536,123565],[123584,123627],[124112,124138],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Pmt=[[178,179],185,[188,190],[2548,2553],[2930,2935],[3056,3058],[3192,3198],[3416,3422],[3440,3448],[3882,3891],[4969,4988],[6128,6137],6618,8304,[8308,8313],[8320,8329],[8528,8543],8585,[9312,9371],[9450,9471],[10102,10131],11517,[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[43056,43061],[65799,65843],[65909,65912],[65930,65931],[66273,66299],[66336,66339],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69733],[70113,70132],[71482,71483],[71914,71922],[72794,72812],[73664,73684],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[125127,125135],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244]],Mmt=[[33,35],[37,39],42,44,[46,47],[58,59],[63,64],92,161,167,[182,183],191,894,903,[1370,1375],1417,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5742,[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6149],[6151,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8214,8215],[8224,8231],[8240,8248],[8251,8254],[8257,8259],[8263,8273],8275,[8277,8286],[11513,11516],[11518,11519],11632,[11776,11777],[11782,11784],11787,[11790,11798],[11800,11801],11803,[11806,11807],[11818,11822],[11824,11833],[11836,11839],11841,[11843,11855],[11858,11860],[12289,12291],12349,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[65040,65046],65049,65072,[65093,65094],[65097,65100],[65104,65106],[65108,65111],[65119,65121],65128,[65130,65131],[65281,65283],[65285,65287],65290,65292,[65294,65295],[65306,65307],[65311,65312],65340,65377,[65380,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],Tmt=[166,169,174,176,1154,[1421,1422],[1550,1551],1758,1769,[1789,1790],2038,2554,2928,[3059,3064],3066,3199,3407,3449,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6464,[6622,6655],[7009,7018],[7028,7036],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8471],[8478,8483],8485,8487,8489,8494,[8506,8507],8522,[8524,8525],8527,[8586,8587],[8597,8601],[8604,8607],[8609,8610],[8612,8613],[8615,8621],[8623,8653],[8656,8657],8659,[8661,8691],[8960,8967],[8972,8991],[8994,9e3],[9003,9083],[9085,9114],[9140,9179],[9186,9254],[9280,9290],[9372,9449],[9472,9654],[9656,9664],[9666,9719],[9728,9838],[9840,10087],[10132,10175],[10240,10495],[11008,11055],[11077,11078],[11085,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[43048,43051],[43062,43063],43065,[43639,43641],[64832,64847],64975,[65021,65023],65508,65512,[65517,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73692],[73697,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,126124,126254,[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127994],[128e3,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],Lmt=[8233],xmt=[[57344,63743],[983040,1048573],[1048576,1114109]],Omt=[[33,35],[37,42],[44,47],[58,59],[63,64],[91,93],95,123,125,161,167,171,[182,183],187,191,894,903,[1370,1375],[1417,1418],1470,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,[3898,3901],3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5120,5742,[5787,5788],[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8208,8231],[8240,8259],[8261,8273],[8275,8286],[8317,8318],[8333,8334],[8968,8971],[9001,9002],[10088,10101],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],[11513,11516],[11518,11519],11632,[11776,11822],[11824,11855],[11858,11869],[12289,12291],[12296,12305],[12308,12319],12336,12349,12448,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[64830,64831],[65040,65049],[65072,65106],[65108,65121],65123,65128,[65130,65131],[65281,65283],[65285,65290],[65292,65295],[65306,65307],[65311,65312],[65339,65341],65343,65371,65373,[65375,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],69293,[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],Nmt=[32,160,5760,[8192,8202],[8232,8233],8239,8287,12288],kmt=[32,160,5760,[8192,8202],8239,8287,12288],Fmt=[2307,2363,[2366,2368],[2377,2380],[2382,2383],[2434,2435],[2494,2496],[2503,2504],[2507,2508],2519,2563,[2622,2624],2691,[2750,2752],2761,[2763,2764],[2818,2819],2878,2880,[2887,2888],[2891,2892],2903,[3006,3007],[3009,3010],[3014,3016],[3018,3020],3031,[3073,3075],[3137,3140],[3202,3203],3262,[3264,3268],[3271,3272],[3274,3275],[3285,3286],3315,[3330,3331],[3390,3392],[3398,3400],[3402,3404],3415,[3458,3459],[3535,3537],[3544,3551],[3570,3571],[3902,3903],3967,[4139,4140],4145,4152,[4155,4156],[4182,4183],[4194,4196],[4199,4205],[4227,4228],[4231,4236],4239,[4250,4252],5909,5940,6070,[6078,6085],[6087,6088],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6681,6682],6741,6743,6753,[6755,6756],[6765,6770],6916,6965,6971,[6973,6977],[6979,6980],7042,7073,[7078,7079],7082,7143,[7146,7148],7150,[7154,7155],[7204,7211],[7220,7221],7393,7415,[12334,12335],[43043,43044],43047,[43136,43137],[43188,43203],[43346,43347],43395,[43444,43445],[43450,43451],[43454,43456],[43567,43568],[43571,43572],43597,43643,43645,43755,[43758,43759],43765,[44003,44004],[44006,44007],[44009,44010],44012,69632,69634,69762,[69808,69810],[69815,69816],69932,[69957,69958],70018,[70067,70069],[70079,70080],70094,[70188,70190],[70194,70195],70197,[70368,70370],[70402,70403],[70462,70463],[70465,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70709,70711],[70720,70721],70725,[70832,70834],70841,[70843,70846],70849,[71087,71089],[71096,71099],71102,[71216,71218],[71227,71228],71230,71340,[71342,71343],71350,[71456,71457],71462,[71724,71726],71736,[71984,71989],[71991,71992],71997,72e3,72002,[72145,72147],[72156,72159],72164,72249,[72279,72280],72343,72751,72766,72873,72881,72884,[73098,73102],[73107,73108],73110,[73461,73462],73475,[73524,73525],[73534,73535],73537,[94033,94087],[94192,94193],[119141,119142],[119149,119154]],Vmt=[[55296,57343]],Bmt=[36,43,[60,62],94,96,124,126,[162,166],[168,169],172,[174,177],180,184,215,247,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],1014,1154,[1421,1423],[1542,1544],1547,[1550,1551],1758,1769,[1789,1790],2038,[2046,2047],2184,[2546,2547],[2554,2555],2801,2928,[3059,3066],3199,3407,3449,3647,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6107,6464,[6622,6655],[7009,7018],[7028,7036],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],8260,8274,[8314,8316],[8330,8332],[8352,8384],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],8527,[8586,8587],[8592,8967],[8972,9e3],[9003,9254],[9280,9290],[9372,9449],[9472,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12443,12444],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[42752,42774],[42784,42785],[42889,42890],[43048,43051],[43062,43065],[43639,43641],43867,[43882,43883],64297,[64434,64450],[64832,64847],64975,[65020,65023],65122,[65124,65126],65129,65284,65291,[65308,65310],65342,65344,65372,65374,[65504,65510],[65512,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,123647,126124,126128,126254,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],Umt=[453,456,459,498,[8072,8079],[8088,8095],[8104,8111],8124,8140,8188],Hmt=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917504],[917506,917535],[917632,917759],[918e3,983039],[1048574,1048575],[1114110,1114111]],jmt=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,8579,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217]],$mt=Object.freeze(Object.defineProperty({__proto__:null,Cased_Letter:amt,Close_Punctuation:omt,Connector_Punctuation:smt,Control:lmt,Currency_Symbol:umt,Dash_Punctuation:cmt,Decimal_Number:dmt,Enclosing_Mark:hmt,Final_Punctuation:fmt,Format:mmt,Initial_Punctuation:gmt,Letter:pmt,Letter_Number:vmt,Line_Separator:_mt,Lowercase_Letter:Cmt,Mark:Smt,Math_Symbol:bmt,Modifier_Letter:ymt,Modifier_Symbol:Emt,Nonspacing_Mark:Rmt,Number:Amt,Open_Punctuation:wmt,Other:Dmt,Other_Letter:Imt,Other_Number:Pmt,Other_Punctuation:Mmt,Other_Symbol:Tmt,Paragraph_Separator:Lmt,Private_Use:xmt,Punctuation:Omt,Separator:Nmt,Space_Separator:kmt,Spacing_Mark:Fmt,Surrogate:Vmt,Symbol:Bmt,Titlecase_Letter:Umt,Unassigned:Hmt,Uppercase_Letter:jmt},Symbol.toStringTag,{value:"Module"})),Wmt=[1544,1547,1549,[1563,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[2144,2154],[2160,2190],[2208,2249],[64336,64450],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[68864,68899],[69424,69445],[69457,69465],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],zmt=[[1536,1541],[1632,1641],[1643,1644],1757,[2192,2193],2274,[68912,68921],[69216,69246]],qmt=[[0,8],[14,27],[127,132],[134,159],173,6158,[8203,8205],[8288,8292],[8298,8303],65279,[113824,113827],[119155,119162],917505,[917536,917631]],Ymt=[44,[46,47],58,160,1548,8239,8260,65104,65106,65109,65292,[65294,65295],65306],Xmt=[[48,57],[178,179],185,[1776,1785],8304,[8308,8313],[8320,8329],[9352,9371],[65296,65305],[66273,66299],[120782,120831],[127232,127242],[130032,130041]],Gmt=[43,45,[8314,8315],[8330,8331],8722,64297,[65122,65123],65291,65293],Qmt=[[35,37],[162,165],[176,177],1423,[1545,1546],1642,[2546,2547],2555,2801,3065,3647,6107,[8240,8244],[8352,8384],8494,8723,[43064,43065],65119,[65129,65130],[65283,65285],[65504,65505],[65509,65510],[73693,73696],123647],Kmt=[8296],Zmt=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,696],[699,705],[720,721],[736,740],750,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1154],[1162,1327],[1329,1366],[1369,1417],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2496],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2529],[2534,2545],[2548,2554],[2556,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2800],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2878],2880,[2887,2888],[2891,2892],2903,[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3007],[3009,3010],[3014,3016],[3018,3020],3024,3031,[3046,3058],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],3191,[3199,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3275],[3285,3286],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],[3389,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3537],[3544,3551],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3648,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3902,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5007],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6106],6108,[6112,6121],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6965,6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8206,8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],[8526,8527],[8544,8584],[9014,9082],9109,[9372,9449],9900,[10240,10495],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12334,12335],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12688,12735],[12784,12828],[12832,12879],[12896,12923],[12927,12976],[12992,13003],[13008,13174],[13179,13277],[13280,13310],[13312,19903],[19968,42124],[42192,42508],[42512,42539],[42560,42606],[42624,42653],[42656,42735],[42738,42743],[42786,42887],[42889,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],43047,[43056,43063],[43072,43123],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],65792,65794,[65799,65843],[65847,65855],[65933,65934],[66e3,66044],[66176,66204],[66208,66256],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],69632,[69634,69687],[69703,69709],[69734,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69825],69837,[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70463],[70465,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70834],70841,[70843,70846],70849,[70852,70855],[70864,70873],[71040,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72199,72200],[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],[72766,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73684],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78911],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119154],[119171,119172],[119180,119209],[119214,119272],[119488,119507],[119520,119539],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120538],[120540,120596],[120598,120654],[120656,120712],[120714,120770],[120772,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[127248,127278],[127280,127337],[127344,127404],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[983040,1048573],[1048576,1114109]],Jmt=[8234],e0t=[8294],t0t=[8237],n0t=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72198],[72201,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],r0t=[[33,34],[38,42],[59,64],[91,96],[123,126],161,[166,169],[171,172],[174,175],180,[182,184],[187,191],215,247,[697,698],[706,719],[722,735],[741,749],[751,767],[884,885],894,[900,901],903,1014,1418,[1421,1422],[1542,1543],[1550,1551],1758,1769,[2038,2041],[3059,3064],3066,[3192,3198],[3898,3901],[5008,5017],5120,[5787,5788],[6128,6137],[6144,6154],6464,[6468,6469],[6622,6655],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8208,8231],[8245,8259],[8261,8286],[8316,8318],[8332,8334],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,[8506,8507],[8512,8516],[8522,8525],[8528,8543],[8585,8587],[8592,8721],[8724,9013],[9083,9108],[9110,9254],[9280,9290],[9312,9351],[9450,9899],[9901,10239],[10496,11123],[11126,11157],[11159,11263],[11493,11498],[11513,11519],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12289,12292],[12296,12320],12336,[12342,12343],[12349,12351],[12443,12444],12448,12539,[12736,12771],[12829,12830],[12880,12895],[12924,12926],[12977,12991],[13004,13007],[13175,13178],[13278,13279],13311,[19904,19967],[42128,42182],[42509,42511],42611,[42622,42623],[42752,42785],42888,[43048,43051],[43124,43127],[43882,43883],[64830,64847],64975,[65021,65023],[65040,65049],[65072,65103],65105,65108,[65110,65118],[65120,65121],[65124,65126],65128,65131,[65281,65282],[65286,65290],[65307,65312],[65339,65344],[65371,65381],[65506,65508],[65512,65518],[65529,65533],65793,[65856,65932],[65936,65948],65952,67871,[68409,68415],[69714,69733],[71264,71276],[73685,73692],[73697,73713],94178,[119273,119274],[119296,119361],119365,[119552,119638],120539,120597,120655,120713,120771,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127243,127247],127279,[127338,127343],127405,[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],i0t=[10,13,[28,30],133,8233],a0t=[8236],o0t=[8297],s0t=[1470,1472,1475,1478,[1488,1514],[1519,1524],[1984,2026],[2036,2037],2042,[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,8207,64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68863],[69248,69289],69293,[69296,69297],[69376,69415],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279]],l0t=[8235],u0t=[8295],c0t=[8238],d0t=[9,11,31],h0t=[12,32,5760,[8192,8202],8232,8287,12288],f0t=Object.freeze(Object.defineProperty({__proto__:null,Arabic_Letter:Wmt,Arabic_Number:zmt,Boundary_Neutral:qmt,Common_Separator:Ymt,European_Number:Xmt,European_Separator:Gmt,European_Terminator:Qmt,First_Strong_Isolate:Kmt,Left_To_Right:Zmt,Left_To_Right_Embedding:Jmt,Left_To_Right_Isolate:e0t,Left_To_Right_Override:t0t,Nonspacing_Mark:n0t,Other_Neutral:r0t,Paragraph_Separator:i0t,Pop_Directional_Format:a0t,Pop_Directional_Isolate:o0t,Right_To_Left:s0t,Right_To_Left_Embedding:l0t,Right_To_Left_Isolate:u0t,Right_To_Left_Override:c0t,Segment_Separator:d0t,White_Space:h0t},Symbol.toStringTag,{value:"Module"})),m0t=[[125184,125259],[125264,125273],[125278,125279]],g0t=[[71424,71450],[71453,71467],[71472,71494]],p0t=[[82944,83526]],v0t=[[1536,1540],[1542,1547],[1549,1562],[1564,1566],[1568,1599],[1601,1610],[1622,1647],[1649,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],_0t=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],C0t=[[68352,68405],[68409,68415]],S0t=[[6912,6988],[6992,7038]],b0t=[[42656,42743],[92160,92728]],y0t=[[92880,92909],[92912,92917]],E0t=[[7104,7155],[7164,7167]],R0t=[[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558]],A0t=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],w0t=[[746,747],[12549,12591],[12704,12735]],D0t=[[69632,69709],[69714,69749],69759],I0t=[[10240,10495]],P0t=[[6656,6683],[6686,6687]],M0t=[[5952,5971]],T0t=[[5120,5759],[6320,6389],[72368,72383]],L0t=[[66208,66256]],x0t=[[66864,66915],66927],O0t=[[69888,69940],[69942,69959]],N0t=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],k0t=[[5024,5109],[5112,5117],[43888,43967]],F0t=[[69552,69579]],V0t=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1548,1563,1567,1600,1757,2274,[2404,2405],3647,[4053,4056],4347,[5867,5869],[5941,5942],[6146,6147],6149,7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[8192,8203],[8206,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11869],[12272,12283],[12288,12292],12294,[12296,12320],[12336,12343],[12348,12351],[12443,12444],12448,[12539,12540],[12688,12703],[12736,12771],[12832,12895],[12927,13007],13055,[13144,13311],[19904,19967],[42752,42785],[42888,42890],[43056,43065],43310,43471,43867,[43882,43883],[64830,64831],[65040,65049],[65072,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65381],65392,[65438,65439],[65504,65510],[65512,65518],[65529,65533],[65792,65794],[65799,65843],[65847,65855],[65936,65948],[66e3,66044],[66273,66299],[113824,113827],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],B0t=[[994,1007],[11392,11507],[11513,11519]],U0t=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],H0t=[[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],j0t=[[77712,77810]],$0t=[[1024,1156],[1159,1327],[7296,7304],7467,7544,[11744,11775],[42560,42655],[65070,65071],[122928,122989],123023],W0t=[[66560,66639]],z0t=[[2304,2384],[2389,2403],[2406,2431],[43232,43263],[72448,72457]],q0t=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],Y0t=[[71680,71739]],X0t=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113823]],G0t=[[77824,78933]],Q0t=[[66816,66855]],K0t=[[69600,69622]],Z0t=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],J0t=[[4256,4293],4295,4301,[4304,4346],[4348,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],e2t=[[11264,11359],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],t2t=[[66352,66378]],n2t=[[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70460,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516]],r2t=[[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],7615,[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],i2t=[[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815]],a2t=[[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],o2t=[[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678]],s2t=[[11904,11929],[11931,12019],[12032,12245],12293,12295,[12321,12329],[12344,12347],[13312,19903],[19968,40959],[63744,64109],[64112,64217],[94178,94179],[94192,94193],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],l2t=[[4352,4607],[12334,12335],[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],u2t=[[68864,68903],[68912,68921]],c2t=[[5920,5940]],d2t=[[67808,67826],[67828,67829],[67835,67839]],h2t=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],f2t=[[12353,12438],[12445,12447],[110593,110879],110898,[110928,110930],127488],m2t=[[67648,67669],[67671,67679]],g2t=[[768,879],[1157,1158],[1611,1621],1648,[2385,2388],[6832,6862],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8204,8205],[8400,8432],[12330,12333],[12441,12442],[65024,65039],[65056,65069],66045,66272,70459,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],p2t=[[68448,68466],[68472,68479]],v2t=[[68416,68437],[68440,68447]],_2t=[[43392,43469],[43472,43481],[43486,43487]],C2t=[[69760,69826],69837],S2t=[[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315]],b2t=[[12449,12538],[12541,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65391],[65393,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],y2t=[[73472,73488],[73490,73530],[73534,73561]],E2t=[[43264,43309],43311],R2t=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],A2t=[94180,[101120,101589]],w2t=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],D2t=[[70144,70161],[70163,70209]],I2t=[[70320,70378],[70384,70393]],P2t=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],M2t=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8305,8319,[8336,8348],[8490,8491],8498,8526,[8544,8584],[11360,11391],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],T2t=[[7168,7223],[7227,7241],[7245,7247]],L2t=[[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],x2t=[[67072,67382],[67392,67413],[67424,67431]],O2t=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786]],N2t=[[42192,42239],73648],k2t=[[66176,66204]],F2t=[[67872,67897],67903],V2t=[[69968,70006]],B2t=[[73440,73464]],U2t=[[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455]],H2t=[[2112,2139],2142],j2t=[[68288,68326],[68331,68342]],$2t=[[72816,72847],[72850,72871],[72873,72886]],W2t=[[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],z2t=[[93760,93850]],q2t=[[43744,43766],[43968,44013],[44016,44025]],Y2t=[[124928,125124],[125127,125142]],X2t=[[68e3,68023],[68028,68047],[68050,68095]],G2t=[[67968,67999]],Q2t=[[93952,94026],[94031,94087],[94095,94111]],K2t=[[71168,71236],[71248,71257]],Z2t=[[6144,6145],6148,[6150,6169],[6176,6264],[6272,6314],[71264,71276]],J2t=[[92736,92766],[92768,92777],[92782,92783]],egt=[[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],tgt=[[4096,4255],[43488,43518],[43616,43647]],ngt=[[67712,67742],[67751,67759]],rgt=[[124112,124153]],igt=[[72096,72103],[72106,72151],[72154,72164]],agt=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],ogt=[[70656,70747],[70749,70753]],sgt=[[1984,2042],[2045,2047]],lgt=[94177,[110960,111355]],ugt=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],cgt=[[5760,5788]],dgt=[[7248,7295]],hgt=[[68736,68786],[68800,68850],[68858,68863]],fgt=[[66304,66339],[66349,66351]],mgt=[[68224,68255]],ggt=[[66384,66426]],pgt=[[66464,66499],[66504,66517]],vgt=[[69376,69415]],_gt=[[68192,68223]],Cgt=[[68608,68680]],Sgt=[[69488,69513]],bgt=[[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935]],ygt=[[66736,66771],[66776,66811]],Egt=[[66688,66717],[66720,66729]],Rgt=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],Agt=[[67680,67711]],wgt=[[72384,72440]],Dgt=[[43072,43127]],Igt=[[67840,67867],67871],Pgt=[[68480,68497],[68505,68508],[68521,68527]],Mgt=[[43312,43347],43359],Tgt=[[5792,5866],[5870,5880]],Lgt=[[2048,2093],[2096,2110]],xgt=[[43136,43205],[43214,43225]],Ogt=[[70016,70111]],Ngt=[[66640,66687]],kgt=[[71040,71093],[71096,71133]],Fgt=[[120832,121483],[121499,121503],[121505,121519]],Vgt=[[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],Bgt=[[69424,69465]],Ugt=[[69840,69864],[69872,69881]],Hgt=[[72272,72354]],jgt=[[7040,7103],[7360,7367]],$gt=[[43008,43052]],Wgt=[[1792,1805],[1807,1866],[1869,1871],[2144,2154]],zgt=[[5888,5909],5919],qgt=[[5984,5996],[5998,6e3],[6002,6003]],Ygt=[[6480,6509],[6512,6516]],Xgt=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],Ggt=[[43648,43714],[43739,43743]],Qgt=[[71296,71353],[71360,71369]],Kgt=[[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[73664,73713],73727],Zgt=[[92784,92862],[92864,92873]],Jgt=[94176,[94208,100343],[100352,101119],[101632,101640]],ept=[[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199]],tpt=[[1920,1969]],npt=[[3585,3642],[3648,3675]],rpt=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],ipt=[[11568,11623],[11631,11632],11647],apt=[[70784,70855],[70864,70873]],opt=[[123536,123566]],spt=[[66432,66461],66463],lpt=[[42240,42539]],upt=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],cpt=[[123584,123641],123647],dpt=[[71840,71922],71935],hpt=[[69248,69289],[69291,69293],[69296,69297]],fpt=[[40960,42124],[42128,42182]],mpt=[[72192,72263]],gpt=Object.freeze(Object.defineProperty({__proto__:null,Adlam:m0t,Ahom:g0t,Anatolian_Hieroglyphs:p0t,Arabic:v0t,Armenian:_0t,Avestan:C0t,Balinese:S0t,Bamum:b0t,Bassa_Vah:y0t,Batak:E0t,Bengali:R0t,Bhaiksuki:A0t,Bopomofo:w0t,Brahmi:D0t,Braille:I0t,Buginese:P0t,Buhid:M0t,Canadian_Aboriginal:T0t,Carian:L0t,Caucasian_Albanian:x0t,Chakma:O0t,Cham:N0t,Cherokee:k0t,Chorasmian:F0t,Common:V0t,Coptic:B0t,Cuneiform:U0t,Cypriot:H0t,Cypro_Minoan:j0t,Cyrillic:$0t,Deseret:W0t,Devanagari:z0t,Dives_Akuru:q0t,Dogra:Y0t,Duployan:X0t,Egyptian_Hieroglyphs:G0t,Elbasan:Q0t,Elymaic:K0t,Ethiopic:Z0t,Georgian:J0t,Glagolitic:e2t,Gothic:t2t,Grantha:n2t,Greek:r2t,Gujarati:i2t,Gunjala_Gondi:a2t,Gurmukhi:o2t,Han:s2t,Hangul:l2t,Hanifi_Rohingya:u2t,Hanunoo:c2t,Hatran:d2t,Hebrew:h2t,Hiragana:f2t,Imperial_Aramaic:m2t,Inherited:g2t,Inscriptional_Pahlavi:p2t,Inscriptional_Parthian:v2t,Javanese:_2t,Kaithi:C2t,Kannada:S2t,Katakana:b2t,Kawi:y2t,Kayah_Li:E2t,Kharoshthi:R2t,Khitan_Small_Script:A2t,Khmer:w2t,Khojki:D2t,Khudawadi:I2t,Lao:P2t,Latin:M2t,Lepcha:T2t,Limbu:L2t,Linear_A:x2t,Linear_B:O2t,Lisu:N2t,Lycian:k2t,Lydian:F2t,Mahajani:V2t,Makasar:B2t,Malayalam:U2t,Mandaic:H2t,Manichaean:j2t,Marchen:$2t,Masaram_Gondi:W2t,Medefaidrin:z2t,Meetei_Mayek:q2t,Mende_Kikakui:Y2t,Meroitic_Cursive:X2t,Meroitic_Hieroglyphs:G2t,Miao:Q2t,Modi:K2t,Mongolian:Z2t,Mro:J2t,Multani:egt,Myanmar:tgt,Nabataean:ngt,Nag_Mundari:rgt,Nandinagari:igt,New_Tai_Lue:agt,Newa:ogt,Nko:sgt,Nushu:lgt,Nyiakeng_Puachue_Hmong:ugt,Ogham:cgt,Ol_Chiki:dgt,Old_Hungarian:hgt,Old_Italic:fgt,Old_North_Arabian:mgt,Old_Permic:ggt,Old_Persian:pgt,Old_Sogdian:vgt,Old_South_Arabian:_gt,Old_Turkic:Cgt,Old_Uyghur:Sgt,Oriya:bgt,Osage:ygt,Osmanya:Egt,Pahawh_Hmong:Rgt,Palmyrene:Agt,Pau_Cin_Hau:wgt,Phags_Pa:Dgt,Phoenician:Igt,Psalter_Pahlavi:Pgt,Rejang:Mgt,Runic:Tgt,Samaritan:Lgt,Saurashtra:xgt,Sharada:Ogt,Shavian:Ngt,Siddham:kgt,SignWriting:Fgt,Sinhala:Vgt,Sogdian:Bgt,Sora_Sompeng:Ugt,Soyombo:Hgt,Sundanese:jgt,Syloti_Nagri:$gt,Syriac:Wgt,Tagalog:zgt,Tagbanwa:qgt,Tai_Le:Ygt,Tai_Tham:Xgt,Tai_Viet:Ggt,Takri:Qgt,Tamil:Kgt,Tangsa:Zgt,Tangut:Jgt,Telugu:ept,Thaana:tpt,Thai:npt,Tibetan:rpt,Tifinagh:ipt,Tirhuta:apt,Toto:opt,Ugaritic:spt,Vai:lpt,Vithkuqi:upt,Wancho:cpt,Warang_Citi:dpt,Yezidi:hpt,Yi:fpt,Zanabazar_Square:mpt},Symbol.toStringTag,{value:"Module"})),ppt=[1567,1600,[125184,125259],[125264,125273],[125278,125279]],vpt=[[71424,71450],[71453,71467],[71472,71494]],_pt=[[82944,83526]],Cpt=[[1536,1540],[1542,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[66272,66299],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],Spt=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],bpt=[[68352,68405],[68409,68415]],ypt=[[6912,6988],[6992,7038]],Ept=[[42656,42743],[92160,92728]],Rpt=[[92880,92909],[92912,92917]],Apt=[[7104,7155],[7164,7167]],wpt=[[2385,2386],[2404,2405],[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],7376,7378,[7381,7382],7384,7393,7402,7405,7410,[7413,7415],43249],Dpt=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],Ipt=[[746,747],[12289,12291],[12296,12305],[12307,12319],[12330,12333],12336,12343,12539,[12549,12591],[12704,12735],[65093,65094],[65377,65381]],Ppt=[[69632,69709],[69714,69749],69759],Mpt=[[10240,10495]],Tpt=[[6656,6683],[6686,6687],43471],Lpt=[[5941,5942],[5952,5971]],xpt=[[5120,5759],[6320,6389],[72368,72383]],Opt=[[66208,66256]],Npt=[[66864,66915],66927],kpt=[[2534,2543],[4160,4169],[69888,69940],[69942,69959]],Fpt=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],Vpt=[[5024,5109],[5112,5117],[43888,43967]],Bpt=[[69552,69579]],Upt=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1757,2274,3647,[4053,4056],[5867,5869],[8192,8203],[8206,8238],[8240,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11842],[11844,11869],[12272,12283],12288,12292,12306,12320,12342,[12872,12895],12927,[12977,12991],[13004,13007],[13169,13178],[13184,13279],13311,[19904,19967],[42760,42785],[42888,42890],43867,[43882,43883],[65040,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65376],[65504,65510],[65512,65518],[65529,65533],[65936,65948],[66e3,66044],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119666,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],Hpt=[[994,1007],[11392,11507],[11513,11519],[66272,66299]],jpt=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],$pt=[[65792,65794],[65799,65843],[65847,65855],[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],Wpt=[[65792,65793],[77712,77810]],zpt=[[1024,1327],[7296,7304],7467,7544,7672,[11744,11775],11843,[42560,42655],[65070,65071],[122928,122989],123023],qpt=[[66560,66639]],Ypt=[[2304,2386],[2389,2431],[7376,7414],[7416,7417],8432,[43056,43065],[43232,43263],[72448,72457]],Xpt=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],Gpt=[[2404,2415],[43056,43065],[71680,71739]],Qpt=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827]],Kpt=[[77824,78933]],Zpt=[[66816,66855]],Jpt=[[69600,69622]],e3t=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],t3t=[[4256,4293],4295,4301,[4304,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],n3t=[1156,1159,[11264,11359],11843,42607,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],r3t=[[66352,66378]],i3t=[[2385,2386],[2404,2405],[3046,3059],7376,[7378,7379],[7410,7412],[7416,7417],8432,[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[73680,73681],73683],a3t=[834,837,[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],[7615,7617],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],o3t=[[2385,2386],[2404,2405],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[43056,43065]],s3t=[[2404,2405],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],l3t=[[2385,2386],[2404,2405],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[43056,43065]],u3t=[[11904,11929],[11931,12019],[12032,12245],[12289,12291],[12293,12305],[12307,12319],[12321,12333],12336,[12343,12351],12539,[12688,12703],[12736,12771],[12832,12871],[12928,12976],[12992,13003],13055,[13144,13168],[13179,13183],[13280,13310],[13312,19903],[19968,40959],[42752,42759],[63744,64109],[64112,64217],[65093,65094],[65377,65381],[94178,94179],[94192,94193],[119648,119665],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],c3t=[[4352,4607],[12289,12291],[12296,12305],[12307,12319],[12334,12336],12343,12539,[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65093,65094],[65377,65381],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],d3t=[1548,1563,1567,1600,1748,[68864,68903],[68912,68921]],h3t=[[5920,5942]],f3t=[[67808,67826],[67828,67829],[67835,67839]],m3t=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],g3t=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12353,12438],[12441,12448],[12539,12540],[65093,65094],[65377,65381],65392,[65438,65439],[110593,110879],110898,[110928,110930],127488],p3t=[[67648,67669],[67671,67679]],v3t=[[768,833],[835,836],[838,866],[2387,2388],[6832,6862],[7618,7671],7673,[7675,7679],[8204,8205],[8400,8431],[65024,65039],[65056,65069],66045,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],_3t=[[68448,68466],[68472,68479]],C3t=[[68416,68437],[68440,68447]],S3t=[[43392,43469],[43471,43481],[43486,43487]],b3t=[[2406,2415],[43056,43065],[69760,69826],69837],y3t=[[2385,2386],[2404,2405],[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],7376,7378,7386,7410,7412,[43056,43061]],E3t=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12441,12444],[12448,12543],[12784,12799],[13008,13054],[13056,13143],[65093,65094],[65377,65439],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],R3t=[[73472,73488],[73490,73530],[73534,73561]],A3t=[[43264,43311]],w3t=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],D3t=[94180,[101120,101589]],I3t=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],P3t=[[2790,2799],[43056,43065],[70144,70161],[70163,70209]],M3t=[[2404,2405],[43056,43065],[70320,70378],[70384,70393]],T3t=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],L3t=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[867,879],[1157,1158],[2385,2386],4347,[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8239,8305,8319,[8336,8348],8432,[8490,8491],8498,8526,[8544,8584],[11360,11391],[42752,42759],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],43310,[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],x3t=[[7168,7223],[7227,7241],[7245,7247]],O3t=[2405,[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],N3t=[[65799,65843],[67072,67382],[67392,67413],[67424,67431]],k3t=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65855]],F3t=[[42192,42239],73648],V3t=[[66176,66204]],B3t=[[67872,67897],67903],U3t=[[2404,2415],[43056,43065],[69968,70006]],H3t=[[73440,73464]],j3t=[[2385,2386],[2404,2405],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],7386,[43056,43058]],$3t=[1600,[2112,2139],2142],W3t=[1600,[68288,68326],[68331,68342]],z3t=[[72816,72847],[72850,72871],[72873,72886]],q3t=[[2404,2405],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],Y3t=[[93760,93850]],X3t=[[43744,43766],[43968,44013],[44016,44025]],G3t=[[124928,125124],[125127,125142]],Q3t=[[68e3,68023],[68028,68047],[68050,68095]],K3t=[[67968,67999]],Z3t=[[93952,94026],[94031,94087],[94095,94111]],J3t=[[43056,43065],[71168,71236],[71248,71257]],e6t=[[6144,6169],[6176,6264],[6272,6314],8239,[71264,71276]],t6t=[[92736,92766],[92768,92777],[92782,92783]],n6t=[[2662,2671],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],r6t=[[4096,4255],43310,[43488,43518],[43616,43647]],i6t=[[67712,67742],[67751,67759]],a6t=[[124112,124153]],o6t=[[2404,2405],[3302,3311],7401,7410,7418,[43056,43061],[72096,72103],[72106,72151],[72154,72164]],s6t=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],l6t=[[70656,70747],[70749,70753]],u6t=[1548,1563,1567,[1984,2042],[2045,2047],[64830,64831]],c6t=[94177,[110960,111355]],d6t=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],h6t=[[5760,5788]],f6t=[[7248,7295]],m6t=[[68736,68786],[68800,68850],[68858,68863]],g6t=[[66304,66339],[66349,66351]],p6t=[[68224,68255]],v6t=[1155,[66384,66426]],_6t=[[66464,66499],[66504,66517]],C6t=[[69376,69415]],S6t=[[68192,68223]],b6t=[[68608,68680]],y6t=[1600,68338,[69488,69513]],E6t=[[2385,2386],[2404,2405],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],7386,7410],R6t=[[66736,66771],[66776,66811]],A6t=[[66688,66717],[66720,66729]],w6t=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],D6t=[[67680,67711]],I6t=[[72384,72440]],P6t=[[6146,6147],6149,[43072,43127]],M6t=[[67840,67867],67871],T6t=[1600,[68480,68497],[68505,68508],[68521,68527]],L6t=[[43312,43347],43359],x6t=[[5792,5866],[5870,5880]],O6t=[[2048,2093],[2096,2110]],N6t=[[43136,43205],[43214,43225]],k6t=[2385,7383,7385,[7388,7389],7392,[70016,70111]],F6t=[[66640,66687]],V6t=[[71040,71093],[71096,71133]],B6t=[[120832,121483],[121499,121503],[121505,121519]],U6t=[[2404,2405],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],H6t=[1600,[69424,69465]],j6t=[[69840,69864],[69872,69881]],$6t=[[72272,72354]],W6t=[[7040,7103],[7360,7367]],z6t=[[2404,2405],[2534,2543],[43008,43052]],q6t=[1548,[1563,1564],1567,1600,[1611,1621],1648,[1792,1805],[1807,1866],[1869,1871],[2144,2154],7672,7674],Y6t=[[5888,5909],5919,[5941,5942]],X6t=[[5941,5942],[5984,5996],[5998,6e3],[6002,6003]],G6t=[[4160,4169],[6480,6509],[6512,6516]],Q6t=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],K6t=[[43648,43714],[43739,43743]],Z6t=[[2404,2405],[43056,43065],[71296,71353],[71360,71369]],J6t=[[2385,2386],[2404,2405],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],7386,43251,70401,70403,[70459,70460],[73664,73713],73727],e4t=[[92784,92862],[92864,92873]],t4t=[94176,[94208,100343],[100352,101119],[101632,101640]],n4t=[[2385,2386],[2404,2405],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199],7386,7410],r4t=[1548,[1563,1564],1567,[1632,1641],[1920,1969],65010,65021],i4t=[[3585,3642],[3648,3675]],a4t=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],o4t=[[11568,11623],[11631,11632],11647],s4t=[[2385,2386],[2404,2405],7410,[43056,43065],[70784,70855],[70864,70873]],l4t=[[123536,123566]],u4t=[[66432,66461],66463],c4t=[[42240,42539]],d4t=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],h4t=[[123584,123641],123647],f4t=[[71840,71922],71935],m4t=[1548,1563,1567,[1632,1641],[69248,69289],[69291,69293],[69296,69297]],g4t=[[12289,12290],[12296,12305],[12308,12315],12539,[40960,42124],[42128,42182],[65377,65381]],p4t=[[72192,72263]],v4t=Object.freeze(Object.defineProperty({__proto__:null,Adlam:ppt,Ahom:vpt,Anatolian_Hieroglyphs:_pt,Arabic:Cpt,Armenian:Spt,Avestan:bpt,Balinese:ypt,Bamum:Ept,Bassa_Vah:Rpt,Batak:Apt,Bengali:wpt,Bhaiksuki:Dpt,Bopomofo:Ipt,Brahmi:Ppt,Braille:Mpt,Buginese:Tpt,Buhid:Lpt,Canadian_Aboriginal:xpt,Carian:Opt,Caucasian_Albanian:Npt,Chakma:kpt,Cham:Fpt,Cherokee:Vpt,Chorasmian:Bpt,Common:Upt,Coptic:Hpt,Cuneiform:jpt,Cypriot:$pt,Cypro_Minoan:Wpt,Cyrillic:zpt,Deseret:qpt,Devanagari:Ypt,Dives_Akuru:Xpt,Dogra:Gpt,Duployan:Qpt,Egyptian_Hieroglyphs:Kpt,Elbasan:Zpt,Elymaic:Jpt,Ethiopic:e3t,Georgian:t3t,Glagolitic:n3t,Gothic:r3t,Grantha:i3t,Greek:a3t,Gujarati:o3t,Gunjala_Gondi:s3t,Gurmukhi:l3t,Han:u3t,Hangul:c3t,Hanifi_Rohingya:d3t,Hanunoo:h3t,Hatran:f3t,Hebrew:m3t,Hiragana:g3t,Imperial_Aramaic:p3t,Inherited:v3t,Inscriptional_Pahlavi:_3t,Inscriptional_Parthian:C3t,Javanese:S3t,Kaithi:b3t,Kannada:y3t,Katakana:E3t,Kawi:R3t,Kayah_Li:A3t,Kharoshthi:w3t,Khitan_Small_Script:D3t,Khmer:I3t,Khojki:P3t,Khudawadi:M3t,Lao:T3t,Latin:L3t,Lepcha:x3t,Limbu:O3t,Linear_A:N3t,Linear_B:k3t,Lisu:F3t,Lycian:V3t,Lydian:B3t,Mahajani:U3t,Makasar:H3t,Malayalam:j3t,Mandaic:$3t,Manichaean:W3t,Marchen:z3t,Masaram_Gondi:q3t,Medefaidrin:Y3t,Meetei_Mayek:X3t,Mende_Kikakui:G3t,Meroitic_Cursive:Q3t,Meroitic_Hieroglyphs:K3t,Miao:Z3t,Modi:J3t,Mongolian:e6t,Mro:t6t,Multani:n6t,Myanmar:r6t,Nabataean:i6t,Nag_Mundari:a6t,Nandinagari:o6t,New_Tai_Lue:s6t,Newa:l6t,Nko:u6t,Nushu:c6t,Nyiakeng_Puachue_Hmong:d6t,Ogham:h6t,Ol_Chiki:f6t,Old_Hungarian:m6t,Old_Italic:g6t,Old_North_Arabian:p6t,Old_Permic:v6t,Old_Persian:_6t,Old_Sogdian:C6t,Old_South_Arabian:S6t,Old_Turkic:b6t,Old_Uyghur:y6t,Oriya:E6t,Osage:R6t,Osmanya:A6t,Pahawh_Hmong:w6t,Palmyrene:D6t,Pau_Cin_Hau:I6t,Phags_Pa:P6t,Phoenician:M6t,Psalter_Pahlavi:T6t,Rejang:L6t,Runic:x6t,Samaritan:O6t,Saurashtra:N6t,Sharada:k6t,Shavian:F6t,Siddham:V6t,SignWriting:B6t,Sinhala:U6t,Sogdian:H6t,Sora_Sompeng:j6t,Soyombo:$6t,Sundanese:W6t,Syloti_Nagri:z6t,Syriac:q6t,Tagalog:Y6t,Tagbanwa:X6t,Tai_Le:G6t,Tai_Tham:Q6t,Tai_Viet:K6t,Takri:Z6t,Tamil:J6t,Tangsa:e4t,Tangut:t4t,Telugu:n4t,Thaana:r4t,Thai:i4t,Tibetan:a4t,Tifinagh:o4t,Tirhuta:s4t,Toto:l4t,Ugaritic:u4t,Vai:c4t,Vithkuqi:d4t,Wancho:h4t,Warang_Citi:f4t,Yezidi:m4t,Yi:g4t,Zanabazar_Square:p4t},Symbol.toStringTag,{value:"Module"})),_4t=[],C4t=[],S4t=[],b4t=[],y4t=Object.freeze(Object.defineProperty({__proto__:null,C:_4t,F:C4t,S:S4t,T:b4t},Symbol.toStringTag,{value:"Module"})),E4t=[[125184,125279]],R4t=[[65792,65855]],A4t=[[71424,71503]],w4t=[[128768,128895]],D4t=[[64256,64335]],I4t=[[82944,83583]],P4t=[[119296,119375]],M4t=[[65856,65935]],T4t=[[65936,65999]],L4t=[[1536,1791]],x4t=[[2208,2303]],O4t=[[126464,126719]],N4t=[[64336,65023]],k4t=[[65136,65279]],F4t=[[1872,1919]],V4t=[[1328,1423]],B4t=[[8592,8703]],U4t=[[68352,68415]],H4t=[[6912,7039]],j4t=[[42656,42751]],$4t=[[92160,92735]],W4t=[[0,127]],z4t=[[92880,92927]],q4t=[[7104,7167]],Y4t=[[2432,2559]],X4t=[[72704,72815]],G4t=[[9600,9631]],Q4t=[[12544,12591]],K4t=[[12704,12735]],Z4t=[[9472,9599]],J4t=[[69632,69759]],e7t=[[10240,10495]],t7t=[[6656,6687]],n7t=[[5952,5983]],r7t=[[118784,119039]],i7t=[[13056,13311]],a7t=[[65072,65103]],o7t=[[63744,64255]],s7t=[[194560,195103]],l7t=[[11904,12031]],u7t=[[12736,12783]],c7t=[[12288,12351]],d7t=[[19968,40959]],h7t=[[13312,19903]],f7t=[[131072,173791]],m7t=[[173824,177983]],g7t=[[177984,178207]],p7t=[[178208,183983]],v7t=[[183984,191471]],_7t=[[66208,66271]],C7t=[[66864,66927]],S7t=[[69888,69967]],b7t=[[43520,43615]],y7t=[[5024,5119]],E7t=[[43888,43967]],R7t=[[129536,129647]],A7t=[[768,879]],w7t=[[6832,6911]],D7t=[[8400,8447]],I7t=[[7616,7679]],P7t=[[65056,65071]],M7t=[[43056,43071]],T7t=[[9216,9279]],L7t=[[11392,11519]],x7t=[[66272,66303]],O7t=[[119648,119679]],N7t=[[73728,74751]],k7t=[[74752,74879]],F7t=[[8352,8399]],V7t=[[67584,67647]],B7t=[[1024,1279]],U7t=[[11744,11775]],H7t=[[42560,42655]],j7t=[[7296,7311]],$7t=[[1280,1327]],W7t=[[66560,66639]],z7t=[[2304,2431]],q7t=[[43232,43263]],Y7t=[[9984,10175]],X7t=[[71680,71759]],G7t=[[127024,127135]],Q7t=[[113664,113823]],K7t=[[74880,75087]],Z7t=[[77824,78895]],J7t=[[66816,66863]],e9t=[[128512,128591]],t9t=[[127232,127487]],n9t=[[9312,9471]],r9t=[[12800,13055]],i9t=[[127488,127743]],a9t=[[4608,4991]],o9t=[[11648,11743]],s9t=[[43776,43823]],l9t=[[4992,5023]],u9t=[[8192,8303]],c9t=[[9632,9727]],d9t=[[128896,129023]],h9t=[[4256,4351]],f9t=[[7312,7359]],m9t=[[11520,11567]],g9t=[[11264,11359]],p9t=[[122880,122927]],v9t=[[66352,66383]],_9t=[[70400,70527]],C9t=[[880,1023]],S9t=[[7936,8191]],b9t=[[2688,2815]],y9t=[[73056,73135]],E9t=[[2560,2687]],R9t=[[65280,65519]],A9t=[[12592,12687]],w9t=[[4352,4607]],D9t=[[43360,43391]],I9t=[[55216,55295]],P9t=[[44032,55215]],M9t=[[68864,68927]],T9t=[[5920,5951]],L9t=[[67808,67839]],x9t=[[1424,1535]],O9t=[[56192,56319]],N9t=[[55296,56191]],k9t=[[12352,12447]],F9t=[[592,687]],V9t=[[12272,12287]],B9t=[[94176,94207]],U9t=[[67648,67679]],H9t=[[126064,126143]],j9t=[[68448,68479]],$9t=[[68416,68447]],W9t=[[43392,43487]],z9t=[[69760,69839]],q9t=[[110848,110895]],Y9t=[[110592,110847]],X9t=[[12688,12703]],G9t=[[12032,12255]],Q9t=[[3200,3327]],K9t=[[12448,12543]],Z9t=[[12784,12799]],J9t=[[43264,43311]],e5t=[[68096,68191]],t5t=[[6016,6143]],n5t=[[6624,6655]],r5t=[[70144,70223]],i5t=[[70320,70399]],a5t=[[3712,3839]],o5t=[[128,255]],s5t=[[256,383]],l5t=[[7680,7935]],u5t=[[384,591]],c5t=[[11360,11391]],d5t=[[42784,43007]],h5t=[[43824,43887]],f5t=[[7168,7247]],m5t=[[8448,8527]],g5t=[[6400,6479]],p5t=[[67072,67455]],v5t=[[65664,65791]],_5t=[[65536,65663]],C5t=[[42192,42239]],S5t=[[56320,57343]],b5t=[[66176,66207]],y5t=[[67872,67903]],E5t=[[69968,70015]],R5t=[[126976,127023]],A5t=[[73440,73471]],w5t=[[3328,3455]],D5t=[[2112,2143]],I5t=[[68288,68351]],P5t=[[72816,72895]],M5t=[[72960,73055]],T5t=[[119808,120831]],L5t=[[8704,8959]],x5t=[[119520,119551]],O5t=[[93760,93855]],N5t=[[43968,44031]],k5t=[[43744,43775]],F5t=[[124928,125151]],V5t=[[68e3,68095]],B5t=[[67968,67999]],U5t=[[93952,94111]],H5t=[[10176,10223]],j5t=[[10624,10751]],$5t=[[9728,9983]],W5t=[[11008,11263]],z5t=[[127744,128511]],q5t=[[8960,9215]],Y5t=[[71168,71263]],X5t=[[42752,42783]],G5t=[[6144,6319]],Q5t=[[71264,71295]],K5t=[[92736,92783]],Z5t=[[70272,70319]],J5t=[[119040,119295]],e8t=[[4096,4255]],t8t=[[43616,43647]],n8t=[[43488,43519]],r8t=[[1984,2047]],i8t=[[67712,67759]],a8t=[[6528,6623]],o8t=[[70656,70783]],s8t=[[8528,8591]],l8t=[[110960,111359]],u8t=[[5760,5791]],c8t=[[7248,7295]],d8t=[[68736,68863]],h8t=[[66304,66351]],f8t=[[68224,68255]],m8t=[[66384,66431]],g8t=[[66464,66527]],p8t=[[69376,69423]],v8t=[[68192,68223]],_8t=[[68608,68687]],C8t=[[9280,9311]],S8t=[[2816,2943]],b8t=[[128592,128639]],y8t=[[66736,66815]],E8t=[[66688,66735]],R8t=[[92928,93071]],A8t=[[67680,67711]],w8t=[[72384,72447]],D8t=[[43072,43135]],I8t=[[66e3,66047]],P8t=[[67840,67871]],M8t=[[7424,7551]],T8t=[[7552,7615]],L8t=[[127136,127231]],x8t=[[57344,63743]],O8t=[[68480,68527]],N8t=[[43312,43359]],k8t=[[69216,69247]],F8t=[[5792,5887]],V8t=[[2048,2111]],B8t=[[43136,43231]],U8t=[[70016,70111]],H8t=[[66640,66687]],j8t=[[113824,113839]],$8t=[[71040,71167]],W8t=[[3456,3583]],z8t=[[70112,70143]],q8t=[[65104,65135]],Y8t=[[69424,69487]],X8t=[[69840,69887]],G8t=[[72272,72367]],Q8t=[[688,767]],K8t=[[65520,65535]],Z8t=[[7040,7103]],J8t=[[7360,7375]],evt=[[8304,8351]],tvt=[[10224,10239]],nvt=[[10496,10623]],rvt=[[129024,129279]],ivt=[[10752,11007]],avt=[[11776,11903]],ovt=[[129280,129535]],svt=[[983040,1048575]],lvt=[[1048576,1114111]],uvt=[[120832,121519]],cvt=[[43008,43055]],dvt=[[1792,1871]],hvt=[[2144,2159]],fvt=[[5888,5919]],mvt=[[5984,6015]],gvt=[[917504,917631]],pvt=[[6480,6527]],vvt=[[6688,6831]],_vt=[[43648,43743]],Cvt=[[119552,119647]],Svt=[[71296,71375]],bvt=[[2944,3071]],yvt=[[94208,100351]],Evt=[[100352,101119]],Rvt=[[3072,3199]],Avt=[[1920,1983]],wvt=[[3584,3711]],Dvt=[[3840,4095]],Ivt=[[11568,11647]],Pvt=[[70784,70879]],Mvt=[[128640,128767]],Tvt=[[66432,66463]],Lvt=[[5120,5759]],xvt=[[6320,6399]],Ovt=[[42240,42559]],Nvt=[[65024,65039]],kvt=[[917760,917999]],Fvt=[[7376,7423]],Vvt=[[65040,65055]],Bvt=[[71840,71935]],Uvt=[[42128,42191]],Hvt=[[40960,42127]],jvt=[[19904,19967]],$vt=[[72192,72271]],Wvt=[[2160,2207],[66928,67007],[67456,67519],[69248,69375],[69488,69631],[71936,72031],[72096,72191],[72368,72383],[72448,72543],[73472,73567],[73648,73727],[77712,77823],[78896,78943],[92784,92879],[101120,101759],[110576,110591],[110896,110959],[118528,118735],[119488,119519],[122624,122879],[122928,123023],[123136,123215],[123536,123647],[124112,124159],[124896,124927],[126208,126287],[129648,130047],[196608,205743]],zvt=Object.freeze(Object.defineProperty({__proto__:null,Adlam:E4t,Aegean_Numbers:R4t,Ahom:A4t,Alchemical_Symbols:w4t,Alphabetic_Presentation_Forms:D4t,Anatolian_Hieroglyphs:I4t,Ancient_Greek_Musical_Notation:P4t,Ancient_Greek_Numbers:M4t,Ancient_Symbols:T4t,Arabic:L4t,Arabic_Extended_A:x4t,Arabic_Mathematical_Alphabetic_Symbols:O4t,Arabic_Presentation_Forms_A:N4t,Arabic_Presentation_Forms_B:k4t,Arabic_Supplement:F4t,Armenian:V4t,Arrows:B4t,Avestan:U4t,Balinese:H4t,Bamum:j4t,Bamum_Supplement:$4t,Basic_Latin:W4t,Bassa_Vah:z4t,Batak:q4t,Bengali:Y4t,Bhaiksuki:X4t,Block_Elements:G4t,Bopomofo:Q4t,Bopomofo_Extended:K4t,Box_Drawing:Z4t,Brahmi:J4t,Braille_Patterns:e7t,Buginese:t7t,Buhid:n7t,Byzantine_Musical_Symbols:r7t,CJK_Compatibility:i7t,CJK_Compatibility_Forms:a7t,CJK_Compatibility_Ideographs:o7t,CJK_Compatibility_Ideographs_Supplement:s7t,CJK_Radicals_Supplement:l7t,CJK_Strokes:u7t,CJK_Symbols_And_Punctuation:c7t,CJK_Unified_Ideographs:d7t,CJK_Unified_Ideographs_Extension_A:h7t,CJK_Unified_Ideographs_Extension_B:f7t,CJK_Unified_Ideographs_Extension_C:m7t,CJK_Unified_Ideographs_Extension_D:g7t,CJK_Unified_Ideographs_Extension_E:p7t,CJK_Unified_Ideographs_Extension_F:v7t,Carian:_7t,Caucasian_Albanian:C7t,Chakma:S7t,Cham:b7t,Cherokee:y7t,Cherokee_Supplement:E7t,Chess_Symbols:R7t,Combining_Diacritical_Marks:A7t,Combining_Diacritical_Marks_Extended:w7t,Combining_Diacritical_Marks_For_Symbols:D7t,Combining_Diacritical_Marks_Supplement:I7t,Combining_Half_Marks:P7t,Common_Indic_Number_Forms:M7t,Control_Pictures:T7t,Coptic:L7t,Coptic_Epact_Numbers:x7t,Counting_Rod_Numerals:O7t,Cuneiform:N7t,Cuneiform_Numbers_And_Punctuation:k7t,Currency_Symbols:F7t,Cypriot_Syllabary:V7t,Cyrillic:B7t,Cyrillic_Extended_A:U7t,Cyrillic_Extended_B:H7t,Cyrillic_Extended_C:j7t,Cyrillic_Supplement:$7t,Deseret:W7t,Devanagari:z7t,Devanagari_Extended:q7t,Dingbats:Y7t,Dogra:X7t,Domino_Tiles:G7t,Duployan:Q7t,Early_Dynastic_Cuneiform:K7t,Egyptian_Hieroglyphs:Z7t,Elbasan:J7t,Emoticons:e9t,Enclosed_Alphanumeric_Supplement:t9t,Enclosed_Alphanumerics:n9t,Enclosed_CJK_Letters_And_Months:r9t,Enclosed_Ideographic_Supplement:i9t,Ethiopic:a9t,Ethiopic_Extended:o9t,Ethiopic_Extended_A:s9t,Ethiopic_Supplement:l9t,General_Punctuation:u9t,Geometric_Shapes:c9t,Geometric_Shapes_Extended:d9t,Georgian:h9t,Georgian_Extended:f9t,Georgian_Supplement:m9t,Glagolitic:g9t,Glagolitic_Supplement:p9t,Gothic:v9t,Grantha:_9t,Greek_And_Coptic:C9t,Greek_Extended:S9t,Gujarati:b9t,Gunjala_Gondi:y9t,Gurmukhi:E9t,Halfwidth_And_Fullwidth_Forms:R9t,Hangul_Compatibility_Jamo:A9t,Hangul_Jamo:w9t,Hangul_Jamo_Extended_A:D9t,Hangul_Jamo_Extended_B:I9t,Hangul_Syllables:P9t,Hanifi_Rohingya:M9t,Hanunoo:T9t,Hatran:L9t,Hebrew:x9t,High_Private_Use_Surrogates:O9t,High_Surrogates:N9t,Hiragana:k9t,IPA_Extensions:F9t,Ideographic_Description_Characters:V9t,Ideographic_Symbols_And_Punctuation:B9t,Imperial_Aramaic:U9t,Indic_Siyaq_Numbers:H9t,Inscriptional_Pahlavi:j9t,Inscriptional_Parthian:$9t,Javanese:W9t,Kaithi:z9t,Kana_Extended_A:q9t,Kana_Supplement:Y9t,Kanbun:X9t,Kangxi_Radicals:G9t,Kannada:Q9t,Katakana:K9t,Katakana_Phonetic_Extensions:Z9t,Kayah_Li:J9t,Kharoshthi:e5t,Khmer:t5t,Khmer_Symbols:n5t,Khojki:r5t,Khudawadi:i5t,Lao:a5t,Latin_1_Supplement:o5t,Latin_Extended_A:s5t,Latin_Extended_Additional:l5t,Latin_Extended_B:u5t,Latin_Extended_C:c5t,Latin_Extended_D:d5t,Latin_Extended_E:h5t,Lepcha:f5t,Letterlike_Symbols:m5t,Limbu:g5t,Linear_A:p5t,Linear_B_Ideograms:v5t,Linear_B_Syllabary:_5t,Lisu:C5t,Low_Surrogates:S5t,Lycian:b5t,Lydian:y5t,Mahajani:E5t,Mahjong_Tiles:R5t,Makasar:A5t,Malayalam:w5t,Mandaic:D5t,Manichaean:I5t,Marchen:P5t,Masaram_Gondi:M5t,Mathematical_Alphanumeric_Symbols:T5t,Mathematical_Operators:L5t,Mayan_Numerals:x5t,Medefaidrin:O5t,Meetei_Mayek:N5t,Meetei_Mayek_Extensions:k5t,Mende_Kikakui:F5t,Meroitic_Cursive:V5t,Meroitic_Hieroglyphs:B5t,Miao:U5t,Miscellaneous_Mathematical_Symbols_A:H5t,Miscellaneous_Mathematical_Symbols_B:j5t,Miscellaneous_Symbols:$5t,Miscellaneous_Symbols_And_Arrows:W5t,Miscellaneous_Symbols_And_Pictographs:z5t,Miscellaneous_Technical:q5t,Modi:Y5t,Modifier_Tone_Letters:X5t,Mongolian:G5t,Mongolian_Supplement:Q5t,Mro:K5t,Multani:Z5t,Musical_Symbols:J5t,Myanmar:e8t,Myanmar_Extended_A:t8t,Myanmar_Extended_B:n8t,NKo:r8t,Nabataean:i8t,New_Tai_Lue:a8t,Newa:o8t,Number_Forms:s8t,Nushu:l8t,Ogham:u8t,Ol_Chiki:c8t,Old_Hungarian:d8t,Old_Italic:h8t,Old_North_Arabian:f8t,Old_Permic:m8t,Old_Persian:g8t,Old_Sogdian:p8t,Old_South_Arabian:v8t,Old_Turkic:_8t,Optical_Character_Recognition:C8t,Oriya:S8t,Ornamental_Dingbats:b8t,Osage:y8t,Osmanya:E8t,Pahawh_Hmong:R8t,Palmyrene:A8t,Pau_Cin_Hau:w8t,Phags_Pa:D8t,Phaistos_Disc:I8t,Phoenician:P8t,Phonetic_Extensions:M8t,Phonetic_Extensions_Supplement:T8t,Playing_Cards:L8t,Private_Use_Area:x8t,Psalter_Pahlavi:O8t,Rejang:N8t,Rumi_Numeral_Symbols:k8t,Runic:F8t,Samaritan:V8t,Saurashtra:B8t,Sharada:U8t,Shavian:H8t,Shorthand_Format_Controls:j8t,Siddham:$8t,Sinhala:W8t,Sinhala_Archaic_Numbers:z8t,Small_Form_Variants:q8t,Sogdian:Y8t,Sora_Sompeng:X8t,Soyombo:G8t,Spacing_Modifier_Letters:Q8t,Specials:K8t,Sundanese:Z8t,Sundanese_Supplement:J8t,Superscripts_And_Subscripts:evt,Supplemental_Arrows_A:tvt,Supplemental_Arrows_B:nvt,Supplemental_Arrows_C:rvt,Supplemental_Mathematical_Operators:ivt,Supplemental_Punctuation:avt,Supplemental_Symbols_And_Pictographs:ovt,Supplementary_Private_Use_Area_A:svt,Supplementary_Private_Use_Area_B:lvt,Sutton_SignWriting:uvt,Syloti_Nagri:cvt,Syriac:dvt,Syriac_Supplement:hvt,Tagalog:fvt,Tagbanwa:mvt,Tags:gvt,Tai_Le:pvt,Tai_Tham:vvt,Tai_Viet:_vt,Tai_Xuan_Jing_Symbols:Cvt,Takri:Svt,Tamil:bvt,Tangut:yvt,Tangut_Components:Evt,Telugu:Rvt,Thaana:Avt,Thai:wvt,Tibetan:Dvt,Tifinagh:Ivt,Tirhuta:Pvt,Transport_And_Map_Symbols:Mvt,Ugaritic:Tvt,Unified_Canadian_Aboriginal_Syllabics:Lvt,Unified_Canadian_Aboriginal_Syllabics_Extended:xvt,Vai:Ovt,Variation_Selectors:Nvt,Variation_Selectors_Supplement:kvt,Vedic_Extensions:Fvt,Vertical_Forms:Vvt,Warang_Citi:Bvt,Yi_Radicals:Uvt,Yi_Syllables:Hvt,Yijing_Hexagram_Symbols:jvt,Zanabazar_Square:$vt,undefined:Wvt},Symbol.toStringTag,{value:"Module"})),qvt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Yvt=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,65114,65116,65118,65289,65341,65373,65376,65379],Xvt=[[0,39],[42,90],92,[94,122],124,[126,3897],[3902,5786],[5789,8260],[8263,8316],[8319,8332],[8335,8967],[8972,9e3],[9003,10087],[10102,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11809],[11818,11860],[11869,12295],[12306,12307],[12316,65112],[65119,65287],[65290,65338],65340,[65342,65370],65372,65374,65377,[65380,1114111]],Gvt=[40,91,123,3898,3900,5787,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,65113,65115,65117,65288,65339,65371,65375,65378],Qvt=Object.freeze(Object.defineProperty({__proto__:null,Close:Yvt,None:Xvt,Open:Gvt},Symbol.toStringTag,{value:"Module"})),Kvt=[35,38,42,[60,62],[64,90],[94,122],126,166,169,172,[174,175],181,[192,214],[216,246],[248,710],[718,719],[721,727],732,734,[736,767],[880,887],[890,893],895,[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1416],[1421,1422],1472,1475,[1523,1524],[1536,1544],[1550,1551],[1568,1610],[1645,1647],[1649,1747],1749,[1757,1758],[1765,1766],1769,[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[1994,2026],[2036,2039],2042,[2048,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2192,2193],[2208,2249],2274,[2308,2361],2365,2384,[2392,2401],[2416,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],[2548,2552],2554,[2556,2557],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],2678,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2800,2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],[2928,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3056,3064],3066,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],[3192,3200],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,[3406,3407],[3412,3414],[3416,3425],[3440,3448],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3572,3663,3840,3845,3859,[3861,3863],[3866,3871],[3882,3891],3894,3896,[3904,3911],[3913,3948],[3976,3980],[4032,4037],[4039,4044],[4046,4047],[4052,4056],[4172,4175],[4256,4293],4295,4301,[4304,4351],[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],4960,[4962,4988],[4992,5017],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],6105,[6128,6137],[6144,6145],6151,6154,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],6464,[6624,6678],[6686,6687],[6917,6963],[6981,6988],7004,[7009,7018],[7028,7036],[7043,7072],[7086,7087],[7098,7141],[7164,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7367],7379,[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8188],8190,8215,[8226,8227],8248,[8254,8259],[8266,8277],8284,[8289,8292],[8304,8305],[8309,8316],8320,[8325,8332],[8336,8348],[8448,8450],8452,[8454,8456],[8458,8466],[8468,8469],[8471,8480],[8483,8490],[8492,8531],[8534,8538],[8540,8541],8543,[8556,8559],[8570,8584],[8586,8587],[8602,8657],8659,[8661,8703],8705,[8708,8710],[8713,8714],[8716,8718],8720,8724,[8726,8729],[8731,8732],[8737,8738],8740,8742,8749,[8751,8755],[8760,8763],[8766,8775],[8777,8779],[8781,8785],[8787,8799],[8802,8803],[8808,8809],[8812,8813],[8816,8833],[8836,8837],[8840,8852],[8854,8856],[8858,8868],[8870,8894],[8896,8942],[8944,8967],[8972,8977],[8979,8985],[8988,9e3],[9003,9199],[9204,9254],[9280,9290],9471,[9548,9551],[9589,9599],[9616,9617],[9622,9631],9634,[9642,9649],[9652,9653],[9656,9659],[9662,9663],[9666,9669],[9673,9674],[9676,9677],[9682,9697],[9702,9710],[9712,9727],9732,[9735,9736],[9738,9741],[9744,9747],9753,[9760,9784],[9788,9791],9793,[9795,9823],9826,9830,9835,9838,[9840,9854],[9856,9885],[9888,9916],9934,9954,[9956,9959],[9989,9991],[9998,10070],[10072,10074],10081,[10085,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11092],[11098,11123],[11126,11157],[11159,11502],[11506,11507],11517,[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11798,[11802,11803],[11806,11807],11823,11826,[11829,11833],11839,11851,11853,[11856,11858],[19904,19967],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],42611,[42622,42653],[42656,42735],42738,[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43048,43051],[43056,43063],43065,[43072,43123],[43138,43187],[43250,43259],[43261,43262],[43274,43301],[43312,43334],43359,[43396,43442],[43457,43462],[43466,43469],43471,[43486,43487],[43520,43560],[43584,43586],[43588,43595],43612,[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44002],[64256,64262],[64275,64279],64297,[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65019],[65021,65023],[65136,65140],[65142,65276],[65512,65518],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67672,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],68184,[68192,68255],[68288,68324],[68331,68335],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69216,69246],[69248,69289],[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[69635,69687],[69705,69709],[69714,69733],[69745,69746],69749,[69763,69807],[69819,69821],69837,[69840,69864],[69891,69926],69956,69959,[69968,70002],70004,70006,[70019,70066],[70081,70084],70087,70093,70106,70108,[70113,70132],[70144,70161],[70163,70187],70202,70205,[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],70735,70749,[70751,70753],[70784,70831],[70852,70855],[71040,71086],[71110,71112],[71128,71131],[71168,71215],[71235,71236],[71296,71338],[71352,71353],[71680,71723],71739,[71840,71903],[71914,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72256,72262,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72794,72812],[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],[73463,73464],73474,[73476,73488],[73490,73523],73648,[73664,73692],[73697,73713],[73728,74649],[74752,74862],[74880,75075],[77712,77810],[77824,78423],[78430,78465],[78467,78469],[78474,78712],[78716,78895],[78913,78918],[82944,83405],[83408,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92986,92995],92997,[93019,93025],[93027,93047],[93053,93071],[93760,93846],[93849,93850],[93952,94026],94032,[94099,94111],[101120,101589],[110576,110579],[110581,110587],[110589,110590],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],121483,[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123214,123215],[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[126065,126123],[126125,126127],[126129,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[127278,127279],[127338,127340],[127900,127901],[127925,127926],127932,128160,128162,128164,128175,[128177,128178],[128256,128262],[128279,128292],[128306,128329],[128468,128475],[128500,128505],[128592,128629],[128636,128639],[128768,128883],[128896,128980],[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129280,129291],[129536,129619],[129792,129938],[129940,129994]],Zvt=[[167,168],170,[178,179],[182,186],[188,190],215,247,711,[713,715],717,720,[728,731],733,[8213,8214],[8224,8225],8251,8308,8319,[8321,8324],8453,8467,[8481,8482],8491,[8532,8533],8539,8542,[8544,8555],[8560,8569],8585,[8592,8601],8658,8660,8704,[8706,8707],[8711,8712],8715,8719,8721,8725,8730,[8733,8736],8739,8741,[8743,8748],8750,[8756,8759],[8764,8765],8776,8780,8786,[8800,8801],[8804,8807],[8810,8811],[8814,8815],[8834,8835],[8838,8839],8853,8857,8869,8895,8978,[9312,9470],[9472,9547],[9552,9588],[9600,9615],[9618,9621],[9632,9633],[9635,9641],[9650,9651],[9654,9655],[9660,9661],[9664,9665],[9670,9672],9675,[9678,9681],[9698,9701],9711,[9733,9734],9737,[9742,9743],[9750,9751],9792,9794,[9824,9825],[9827,9829],9831,[9833,9834],[9836,9837],9839,[9886,9887],[9929,9932],9938,[9941,9943],[9946,9947],[9949,9950],9955,[9960,9961],[9963,9968],9974,[9979,9980],10071,[10102,10131],[11093,11097],[12872,12879],65533,[127232,127244],[127248,127277],[127280,127337],[127344,127404]],Jvt=[9,124,173,1418,1470,[2404,2405],[3674,3675],3851,3892,3967,3973,[4030,4031],4050,[4170,4171],4961,5120,5760,[5867,5869],[5941,5942],[6100,6101],6104,6106,[6148,6149],[7002,7003],[7005,7008],[7037,7038],[7227,7231],[7294,7295],[8192,8198],[8200,8202],8208,[8210,8211],8231,8278,[8280,8283],[8285,8287],[11514,11516],11519,11632,[11790,11797],11799,11801,[11818,11821],[11824,11825],[11827,11828],[11836,11838],[11840,11841],[11843,11850],11852,[11854,11855],11869,12288,[42238,42239],42509,42511,[42739,42743],[43214,43215],[43310,43311],[43463,43465],[43613,43615],[43760,43761],44011,[65792,65794],66463,66512,67671,67871,[68176,68183],[68336,68341],[68409,68415],69293,[69703,69704],[69822,69825],[69952,69955],[70085,70086],70088,[70109,70111],[70200,70201],[70203,70204],70313,[70731,70734],[70746,70747],[71106,71107],[71113,71127],[71233,71234],[71484,71486],[72004,72006],[72257,72260],[72346,72348],[72353,72354],[72769,72773],[73539,73540],73727,[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],e_t=[180,712,716,735,3191,3204,[3841,3844],[3846,3847],[3849,3850],[4048,4049],4051,6150,8189,[43124,43125],43260,70005,70107,71105,[71264,71276],72162,72255,72261,[72350,72352],[72448,72457],72816],t_t=[8212,[11834,11835]],n_t=[47],r_t=[13],i_t=[41,93],a_t=[125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,[12289,12290],12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,[65041,65042],65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65104,65106,65114,65116,65118,65289,65292,65294,65341,65373,[65376,65377],[65379,65380],[78427,78429],78466,78471,78473,[78714,78715],78904,78909,78911,83407],o_t=[[0,8],[14,31],[127,132],[134,159],[768,846],[848,859],[867,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],1564,[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],[3864,3865],3893,3895,3897,[3902,3903],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7628],[7630,7675],[7677,7679],8204,[8206,8207],[8234,8238],[8294,8303],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],12341,[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],[43561,43574],43587,[43596,43597],[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65529,65531],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],[94192,94193],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119141,119145],[119149,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],917505,[917536,917631],[917760,917999]],s_t=[[3585,3642],[3648,3662],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3804,3807],[4096,4159],[4176,4239],[4250,4255],[6016,6099],6103,[6108,6109],[6480,6509],[6512,6516],[6528,6571],[6576,6601],6618,[6622,6623],[6688,6750],[6752,6780],[6816,6829],[43488,43503],[43514,43518],[43616,43714],[43739,43743],[71424,71450],[71453,71467],[71482,71483],[71487,71494]],l_t=[12353,12355,12357,12359,12361,12387,12419,12421,12423,12430,[12437,12438],12449,12451,12453,12455,12457,12483,12515,12517,12519,12526,[12533,12534],12540,[12784,12799],[65383,65392],110898,[110928,110930],110933,[110948,110951]],u_t=[65532],c_t=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],d_t=[[127995,127999]],h_t=[33,63,1478,1563,[1565,1567],1748,2041,[3853,3857],3860,[6146,6147],[6152,6153],[6468,6469],[10082,10083],11513,11518,11822,[11859,11860],42510,[43126,43127],[65045,65046],[65110,65111],65281,65311,[71108,71109],72817],f_t=[160,847,[860,866],3848,3852,3858,[4057,4058],6158,7629,7676,8199,8209,8239,[78896,78902],[78905,78907],94180],m_t=[44032,44060,44088,44116,44144,44172,44200,44228,44256,44284,44312,44340,44368,44396,44424,44452,44480,44508,44536,44564,44592,44620,44648,44676,44704,44732,44760,44788,44816,44844,44872,44900,44928,44956,44984,45012,45040,45068,45096,45124,45152,45180,45208,45236,45264,45292,45320,45348,45376,45404,45432,45460,45488,45516,45544,45572,45600,45628,45656,45684,45712,45740,45768,45796,45824,45852,45880,45908,45936,45964,45992,46020,46048,46076,46104,46132,46160,46188,46216,46244,46272,46300,46328,46356,46384,46412,46440,46468,46496,46524,46552,46580,46608,46636,46664,46692,46720,46748,46776,46804,46832,46860,46888,46916,46944,46972,47e3,47028,47056,47084,47112,47140,47168,47196,47224,47252,47280,47308,47336,47364,47392,47420,47448,47476,47504,47532,47560,47588,47616,47644,47672,47700,47728,47756,47784,47812,47840,47868,47896,47924,47952,47980,48008,48036,48064,48092,48120,48148,48176,48204,48232,48260,48288,48316,48344,48372,48400,48428,48456,48484,48512,48540,48568,48596,48624,48652,48680,48708,48736,48764,48792,48820,48848,48876,48904,48932,48960,48988,49016,49044,49072,49100,49128,49156,49184,49212,49240,49268,49296,49324,49352,49380,49408,49436,49464,49492,49520,49548,49576,49604,49632,49660,49688,49716,49744,49772,49800,49828,49856,49884,49912,49940,49968,49996,50024,50052,50080,50108,50136,50164,50192,50220,50248,50276,50304,50332,50360,50388,50416,50444,50472,50500,50528,50556,50584,50612,50640,50668,50696,50724,50752,50780,50808,50836,50864,50892,50920,50948,50976,51004,51032,51060,51088,51116,51144,51172,51200,51228,51256,51284,51312,51340,51368,51396,51424,51452,51480,51508,51536,51564,51592,51620,51648,51676,51704,51732,51760,51788,51816,51844,51872,51900,51928,51956,51984,52012,52040,52068,52096,52124,52152,52180,52208,52236,52264,52292,52320,52348,52376,52404,52432,52460,52488,52516,52544,52572,52600,52628,52656,52684,52712,52740,52768,52796,52824,52852,52880,52908,52936,52964,52992,53020,53048,53076,53104,53132,53160,53188,53216,53244,53272,53300,53328,53356,53384,53412,53440,53468,53496,53524,53552,53580,53608,53636,53664,53692,53720,53748,53776,53804,53832,53860,53888,53916,53944,53972,54e3,54028,54056,54084,54112,54140,54168,54196,54224,54252,54280,54308,54336,54364,54392,54420,54448,54476,54504,54532,54560,54588,54616,54644,54672,54700,54728,54756,54784,54812,54840,54868,54896,54924,54952,54980,55008,55036,55064,55092,55120,55148,55176],g_t=[[44033,44059],[44061,44087],[44089,44115],[44117,44143],[44145,44171],[44173,44199],[44201,44227],[44229,44255],[44257,44283],[44285,44311],[44313,44339],[44341,44367],[44369,44395],[44397,44423],[44425,44451],[44453,44479],[44481,44507],[44509,44535],[44537,44563],[44565,44591],[44593,44619],[44621,44647],[44649,44675],[44677,44703],[44705,44731],[44733,44759],[44761,44787],[44789,44815],[44817,44843],[44845,44871],[44873,44899],[44901,44927],[44929,44955],[44957,44983],[44985,45011],[45013,45039],[45041,45067],[45069,45095],[45097,45123],[45125,45151],[45153,45179],[45181,45207],[45209,45235],[45237,45263],[45265,45291],[45293,45319],[45321,45347],[45349,45375],[45377,45403],[45405,45431],[45433,45459],[45461,45487],[45489,45515],[45517,45543],[45545,45571],[45573,45599],[45601,45627],[45629,45655],[45657,45683],[45685,45711],[45713,45739],[45741,45767],[45769,45795],[45797,45823],[45825,45851],[45853,45879],[45881,45907],[45909,45935],[45937,45963],[45965,45991],[45993,46019],[46021,46047],[46049,46075],[46077,46103],[46105,46131],[46133,46159],[46161,46187],[46189,46215],[46217,46243],[46245,46271],[46273,46299],[46301,46327],[46329,46355],[46357,46383],[46385,46411],[46413,46439],[46441,46467],[46469,46495],[46497,46523],[46525,46551],[46553,46579],[46581,46607],[46609,46635],[46637,46663],[46665,46691],[46693,46719],[46721,46747],[46749,46775],[46777,46803],[46805,46831],[46833,46859],[46861,46887],[46889,46915],[46917,46943],[46945,46971],[46973,46999],[47001,47027],[47029,47055],[47057,47083],[47085,47111],[47113,47139],[47141,47167],[47169,47195],[47197,47223],[47225,47251],[47253,47279],[47281,47307],[47309,47335],[47337,47363],[47365,47391],[47393,47419],[47421,47447],[47449,47475],[47477,47503],[47505,47531],[47533,47559],[47561,47587],[47589,47615],[47617,47643],[47645,47671],[47673,47699],[47701,47727],[47729,47755],[47757,47783],[47785,47811],[47813,47839],[47841,47867],[47869,47895],[47897,47923],[47925,47951],[47953,47979],[47981,48007],[48009,48035],[48037,48063],[48065,48091],[48093,48119],[48121,48147],[48149,48175],[48177,48203],[48205,48231],[48233,48259],[48261,48287],[48289,48315],[48317,48343],[48345,48371],[48373,48399],[48401,48427],[48429,48455],[48457,48483],[48485,48511],[48513,48539],[48541,48567],[48569,48595],[48597,48623],[48625,48651],[48653,48679],[48681,48707],[48709,48735],[48737,48763],[48765,48791],[48793,48819],[48821,48847],[48849,48875],[48877,48903],[48905,48931],[48933,48959],[48961,48987],[48989,49015],[49017,49043],[49045,49071],[49073,49099],[49101,49127],[49129,49155],[49157,49183],[49185,49211],[49213,49239],[49241,49267],[49269,49295],[49297,49323],[49325,49351],[49353,49379],[49381,49407],[49409,49435],[49437,49463],[49465,49491],[49493,49519],[49521,49547],[49549,49575],[49577,49603],[49605,49631],[49633,49659],[49661,49687],[49689,49715],[49717,49743],[49745,49771],[49773,49799],[49801,49827],[49829,49855],[49857,49883],[49885,49911],[49913,49939],[49941,49967],[49969,49995],[49997,50023],[50025,50051],[50053,50079],[50081,50107],[50109,50135],[50137,50163],[50165,50191],[50193,50219],[50221,50247],[50249,50275],[50277,50303],[50305,50331],[50333,50359],[50361,50387],[50389,50415],[50417,50443],[50445,50471],[50473,50499],[50501,50527],[50529,50555],[50557,50583],[50585,50611],[50613,50639],[50641,50667],[50669,50695],[50697,50723],[50725,50751],[50753,50779],[50781,50807],[50809,50835],[50837,50863],[50865,50891],[50893,50919],[50921,50947],[50949,50975],[50977,51003],[51005,51031],[51033,51059],[51061,51087],[51089,51115],[51117,51143],[51145,51171],[51173,51199],[51201,51227],[51229,51255],[51257,51283],[51285,51311],[51313,51339],[51341,51367],[51369,51395],[51397,51423],[51425,51451],[51453,51479],[51481,51507],[51509,51535],[51537,51563],[51565,51591],[51593,51619],[51621,51647],[51649,51675],[51677,51703],[51705,51731],[51733,51759],[51761,51787],[51789,51815],[51817,51843],[51845,51871],[51873,51899],[51901,51927],[51929,51955],[51957,51983],[51985,52011],[52013,52039],[52041,52067],[52069,52095],[52097,52123],[52125,52151],[52153,52179],[52181,52207],[52209,52235],[52237,52263],[52265,52291],[52293,52319],[52321,52347],[52349,52375],[52377,52403],[52405,52431],[52433,52459],[52461,52487],[52489,52515],[52517,52543],[52545,52571],[52573,52599],[52601,52627],[52629,52655],[52657,52683],[52685,52711],[52713,52739],[52741,52767],[52769,52795],[52797,52823],[52825,52851],[52853,52879],[52881,52907],[52909,52935],[52937,52963],[52965,52991],[52993,53019],[53021,53047],[53049,53075],[53077,53103],[53105,53131],[53133,53159],[53161,53187],[53189,53215],[53217,53243],[53245,53271],[53273,53299],[53301,53327],[53329,53355],[53357,53383],[53385,53411],[53413,53439],[53441,53467],[53469,53495],[53497,53523],[53525,53551],[53553,53579],[53581,53607],[53609,53635],[53637,53663],[53665,53691],[53693,53719],[53721,53747],[53749,53775],[53777,53803],[53805,53831],[53833,53859],[53861,53887],[53889,53915],[53917,53943],[53945,53971],[53973,53999],[54001,54027],[54029,54055],[54057,54083],[54085,54111],[54113,54139],[54141,54167],[54169,54195],[54197,54223],[54225,54251],[54253,54279],[54281,54307],[54309,54335],[54337,54363],[54365,54391],[54393,54419],[54421,54447],[54449,54475],[54477,54503],[54505,54531],[54533,54559],[54561,54587],[54589,54615],[54617,54643],[54645,54671],[54673,54699],[54701,54727],[54729,54755],[54757,54783],[54785,54811],[54813,54839],[54841,54867],[54869,54895],[54897,54923],[54925,54951],[54953,54979],[54981,55007],[55009,55035],[55037,55063],[55065,55091],[55093,55119],[55121,55147],[55149,55175],[55177,55203]],p_t=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],v_t=[45],__t=[[8986,8987],[9200,9203],[9728,9731],[9748,9749],9752,[9754,9756],[9758,9759],[9785,9787],9832,9855,[9917,9928],9933,[9935,9937],[9939,9940],[9944,9945],9948,[9951,9953],9962,[9969,9973],[9975,9976],9978,[9981,9988],[9992,9993],10084,[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12291,12292],[12294,12295],[12306,12307],[12320,12329],[12336,12340],[12342,12346],[12349,12351],12354,12356,12358,12360,[12362,12386],[12388,12418],12420,12422,[12424,12429],[12431,12436],12447,12450,12452,12454,12456,[12458,12482],[12484,12514],12516,12518,[12520,12525],[12527,12532],[12535,12538],12543,[12549,12591],[12593,12686],[12688,12771],[12800,12830],[12832,12871],[12880,19903],[19968,40980],[40982,42124],[42128,42182],[63744,64255],[65072,65076],[65093,65094],[65097,65103],65105,65112,[65119,65126],65128,65131,[65282,65283],[65286,65287],[65290,65291],65293,[65295,65305],[65308,65310],[65312,65338],65340,[65342,65370],65372,65374,65382,[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65506,65508],[73541,73551],[94208,100343],[100352,101119],[101632,101640],[110592,110882],[110960,111355],[126976,127231],[127245,127247],[127341,127343],[127405,127461],[127488,127876],[127878,127899],[127902,127924],[127927,127931],[127933,127937],[127941,127942],[127944,127945],[127949,127994],[128e3,128065],[128068,128069],[128081,128101],[128121,128123],[128125,128128],128132,[128136,128142],128144,[128146,128159],128161,128163,[128165,128169],[128171,128174],128176,[128179,128255],[128263,128278],[128293,128305],[128330,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128467],[128476,128499],[128506,128580],[128584,128586],[128640,128674],[128676,128691],[128695,128703],[128705,128715],[128717,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129293,129294],[129296,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129398],[129400,129460],129463,129466,[129468,129484],129488,[129502,129535],[129620,129730],[129734,129775],[129785,129791],[130048,131069],[131072,196605],[196608,262141]],C_t=[44,46,[58,59],894,1417,[1548,1549],2040,8260,65040,[65043,65044]],S_t=[[8228,8230],8943,65049,68342],b_t=[[4352,4447],[43360,43388]],y_t=[[4520,4607],[55243,55291]],E_t=[[4448,4519],[55216,55238]],R_t=[10],A_t=[[11,12],[8232,8233]],w_t=[133],D_t=[6102,[8252,8253],[8263,8265],12293,12316,[12347,12348],[12443,12446],12448,12539,[12541,12542],40981,[65108,65109],[65306,65307],65381,[65438,65439],[94176,94179],[128633,128635]],I_t=[[48,57],[1632,1641],[1643,1644],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],P_t=[40,91,123,161,191,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11800,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378,[78424,78426],78470,78472,78713,78903,78908,78910,83406,[125278,125279]],M_t=[37,162,176,[1545,1547],1642,[2546,2547],2553,3449,[8240,8247],8279,8359,8374,8379,8382,8384,8451,8457,43064,65020,65130,65285,65504,[73693,73696],126124,126128],T_t=[36,43,92,[163,165],177,1423,[2046,2047],2555,2801,3065,3647,6107,[8352,8358],[8360,8373],[8375,8378],[8380,8381],8383,[8385,8399],8470,[8722,8723],65129,65284,65505,[65509,65510],123647],L_t=[34,39,171,187,[8216,8217],[8219,8221],8223,[8249,8250],[10075,10080],[11776,11789],[11804,11805],[11808,11809],[128630,128632]],x_t=[[127462,127487]],O_t=[32],N_t=[[55296,57343]],k_t=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[57344,63743],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[131070,131071],[196606,196607],[262142,917504],[917506,917535],[917632,917759],[918e3,1114111]],F_t=[8288,65279],V_t=[8205],B_t=[8203],U_t=Object.freeze(Object.defineProperty({__proto__:null,Alphabetic:Kvt,Ambiguous:Zvt,Break_After:Jvt,Break_Before:e_t,Break_Both:t_t,Break_Symbols:n_t,Carriage_Return:r_t,Close_Parenthesis:i_t,Close_Punctuation:a_t,Combining_Mark:o_t,Complex_Context:s_t,Conditional_Japanese_Starter:l_t,Contingent_Break:u_t,E_Base:c_t,E_Modifier:d_t,Exclamation:h_t,Glue:f_t,H2:m_t,H3:g_t,Hebrew_Letter:p_t,Hyphen:v_t,Ideographic:__t,Infix_Numeric:C_t,Inseparable:S_t,JL:b_t,JT:y_t,JV:E_t,Line_Feed:R_t,Mandatory_Break:A_t,Next_Line:w_t,Nonstarter:D_t,Numeric:I_t,Open_Punctuation:P_t,Postfix_Numeric:M_t,Prefix_Numeric:T_t,Quotation:L_t,Regional_Indicator:x_t,Space:O_t,Surrogate:N_t,Unknown:k_t,Word_Joiner:F_t,ZWJ:V_t,ZWSpace:B_t},Symbol.toStringTag,{value:"Module"})),H_t=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,727],[734,767],[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1369,1372],1374,[1376,1416],1418,1523,[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3840,[3904,3911],[3913,3948],[3976,3980],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6656,6678],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,12293,[12347,12348],[12549,12591],[12593,12686],[12704,12735],[40960,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42760,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43520,43560],[43584,43586],[43588,43595],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[64256,64262],[64275,64279],[64336,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369]],j_t=[13],$_t=[34],W_t=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],94180,[94192,94193],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[127995,127999],[917536,917631],[917760,917999]],z_t=[95,8239,[8255,8256],8276,[65075,65076],[65101,65103],65343],q_t=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8206,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505],Y_t=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],X_t=[[12337,12341],[12443,12444],[12448,12538],[12540,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],G_t=[10],Q_t=[58,183,903,1375,1524,8231,65043,65109,65306],K_t=[44,59,894,1417,[1548,1549],1644,2040,8260,65040,65044,65104,65108,65292,65307],Z_t=[46,[8216,8217],8228,65106,65287,65294],J_t=[[11,12],133,[8232,8233]],eCt=[[48,57],[1632,1641],1643,[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],tCt=[[0,9],[14,31],33,[35,38],[40,43],45,47,[60,64],[91,94],96,[123,132],[134,159],[161,169],[171,172],[174,180],182,[184,185],[187,191],215,247,[728,733],885,[888,889],[896,901],907,909,930,1014,1154,1328,[1367,1368],1373,[1419,1424],1470,1472,1475,1478,[1480,1487],[1515,1518],[1525,1535],[1542,1547],[1550,1551],1563,[1565,1567],1642,1645,1748,1769,[1789,1790],[1792,1806],[1867,1868],[1970,1983],[2038,2039],2041,[2043,2044],[2046,2047],[2094,2111],[2140,2143],[2155,2159],2184,2191,[2194,2199],[2404,2405],2416,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2546,2555],2557,[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2678,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2800,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],2928,[2930,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3056,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3199],3204,3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3407,3411],[3416,3422],[3428,3429],[3440,3449],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3572,3632],[3634,3635],[3643,3654],3663,[3674,3760],[3762,3763],[3773,3783],3791,[3802,3839],[3841,3863],[3866,3871],[3882,3892],3894,3896,[3898,3901],3912,[3949,3952],3973,3992,[4029,4037],[4039,4095],4130,4136,4159,[4170,4175],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4254,4255],4294,[4296,4300],[4302,4303],4347,4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4960,4991],[5008,5023],[5110,5111],[5118,5120],[5741,5742],[5787,5791],[5867,5869],[5881,5887],[5910,5918],[5941,5951],[5972,5983],5997,6001,[6004,6015],[6100,6102],[6104,6107],[6110,6111],[6122,6154],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6469],[6510,6511],[6517,6527],[6570,6575],[6602,6607],[6619,6655],[6684,6740],6751,[6781,6782],[6794,6799],[6810,6831],[6863,6911],[6989,6991],[7002,7018],[7028,7039],[7156,7167],[7224,7231],[7242,7244],[7294,7295],[7305,7311],[7355,7356],[7360,7375],7379,[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8125,[8127,8129],8133,[8141,8143],[8148,8149],[8156,8159],[8173,8177],8181,[8189,8191],8199,[8208,8215],[8218,8227],[8229,8230],[8240,8254],[8257,8259],[8261,8275],[8277,8286],8293,8304,[8306,8318],[8320,8335],[8349,8399],[8433,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],[8527,8543],[8585,9397],[9450,9756],[9758,9791],9793,[9795,9876],[9879,9976],[9978,9991],9993,[9998,10083],[10085,11263],[11493,11498],[11508,11519],11558,[11560,11564],[11566,11567],[11624,11630],[11632,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11776,11822],[11824,12287],[12289,12292],[12294,12329],12336,[12342,12346],[12349,12440],[12445,12447],12539,[12544,12548],12592,[12687,12703],[12736,12783],[12800,13007],13055,[13144,40959],[42125,42191],[42238,42239],[42509,42511],[42540,42559],42611,42622,[42738,42759],[42955,42959],42962,42964,[42970,42993],[43048,43051],[43053,43071],[43124,43135],[43206,43215],[43226,43231],[43256,43258],43260,[43310,43311],[43348,43359],[43389,43391],[43457,43470],[43482,43492],[43494,43503],[43514,43519],[43575,43583],[43598,43599],[43610,43642],[43646,43695],43697,[43701,43702],[43705,43709],43712,[43714,43743],[43760,43761],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43882,43887],44011,[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,64047],[64107,64255],[64263,64274],[64280,64284],64297,64311,64317,64319,64322,64325,[64434,64466],[64830,64847],[64912,64913],[64968,65007],[65020,65023],[65041,65042],[65045,65055],[65072,65074],[65077,65100],65105,65107,[65110,65135],65141,[65277,65278],[65280,65286],[65288,65291],65293,65295,[65308,65312],[65339,65342],65344,[65371,65381],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65528],[65532,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65855],[65909,66044],[66046,66175],[66205,66207],[66257,66271],[66273,66303],[66336,66348],[66379,66383],[66427,66431],[66462,66463],[66500,66503],66512,[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66927],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],[67670,67679],[67703,67711],[67743,67807],67827,[67830,67839],[67862,67871],[67898,67967],[68024,68029],[68032,68095],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68160,68191],[68221,68223],[68253,68287],68296,[68327,68351],[68406,68415],[68438,68447],[68467,68479],[68498,68607],[68681,68735],[68787,68799],[68851,68863],[68904,68911],[68922,69247],69290,[69293,69295],[69298,69372],[69405,69414],[69416,69423],[69457,69487],[69510,69551],[69573,69599],[69623,69631],[69703,69733],[69750,69758],[69819,69820],[69822,69825],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69952,69955],[69960,69967],[70004,70005],[70007,70015],[70085,70088],70093,70107,[70109,70143],70162,[70200,70205],[70210,70271],70279,70281,70286,70302,[70313,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],[70731,70735],[70746,70749],[70754,70783],70854,[70856,70863],[70874,71039],[71094,71095],[71105,71127],[71134,71167],[71233,71235],[71237,71247],[71258,71295],[71353,71359],[71370,71452],[71468,71471],[71482,71679],[71739,71839],[71914,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72004,72015],[72026,72095],[72104,72105],[72152,72153],72162,[72165,72191],[72255,72262],[72264,72271],[72346,72348],[72350,72367],[72441,72703],72713,72759,[72769,72783],[72794,72817],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73463,73471],73489,[73531,73533],[73539,73551],[73562,73647],[73649,73727],[74650,74751],[74863,74879],[75076,77711],[77809,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92783],92863,[92874,92879],[92910,92911],[92917,92927],[92983,92991],[92996,93007],[93018,93026],[93048,93052],[93072,93759],[93824,93951],[94027,94030],[94088,94094],[94112,94175],94178,[94181,94191],[94194,110575],110580,110588,110591,[110593,110879],[110883,110932],[110934,110947],[110952,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113820],113823,[113828,118527],[118574,118575],[118599,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119361],[119365,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120780,120781],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123215,123535],[123567,123583],[123642,124111],[124154,124895],124903,124908,124911,124927,[125125,125135],[125143,125183],[125260,125263],[125274,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,127279],[127306,127311],[127338,127343],[127370,127461],[127488,127751],[127753,127805],[127807,127858],[127860,127876],[127878,127890],[127892,127907],[127909,127911],[127913,127937],[127941,127942],[127944,127945],[127949,127978],127980,[127982,127994],[128e3,128065],[128068,128069],[128081,128101],[128106,128109],128111,[128121,128123],[128125,128128],128132,[128136,128138],[128140,128169],[128171,128186],[128189,128294],[128296,128299],[128301,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128487],[128489,128580],[128584,128586],[128592,128639],[128641,128657],[128659,128674],[128676,128691],[128695,128703],[128705,128715],[128717,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129488],[129502,130031],[130042,917504],[917506,917535],[917632,917759],[918e3,1114111]],nCt=[[127462,127487]],rCt=[39],iCt=[32,5760,[8192,8198],[8200,8202],8287,12288],aCt=[8205],oCt=Object.freeze(Object.defineProperty({__proto__:null,ALetter:H_t,CR:j_t,Double_Quote:$_t,Extend:W_t,ExtendNumLet:z_t,Format:q_t,Hebrew_Letter:Y_t,Katakana:X_t,LF:G_t,MidLetter:Q_t,MidNum:K_t,MidNumLet:Z_t,Newline:J_t,Numeric:eCt,Other:tCt,Regional_Indicator:nCt,Single_Quote:rCt,WSegSpace:iCt,ZWJ:aCt},Symbol.toStringTag,{value:"Module"})),sCt=Object.freeze(Object.defineProperty({__proto__:null,Bidi_Class:f0t,Bidi_Mirroring_Glyph:qvt,Bidi_Paired_Bracket_Type:Qvt,Binary_Property:imt,Block:zvt,Case_Folding:y4t,General_Category:$mt,Line_Break:U_t,Script:gpt,Script_Extensions:v4t,Word_Break:oCt},Symbol.toStringTag,{value:"Module"}));function FZ(t){const e=Object.keys(t);if(e.length===0)throw new Error("Expected at least one category, but received 0.");if(e.some(n=>{const r=t[n];return r===void 0||r.length===0}))throw new Error("Expected at least one sub category, but received 0.");return e.map(n=>{const r=t[n].map(i=>R7e(n,i));return new i_().union(...r)}).reduce((n,r)=>n.intersect(r))}T(FZ,"unicode");function R7e(t,e){const n=sCt[t][e];return new i_().union(...n)}T(R7e,"getCharset");const VZ=FZ({Script:["Han","Katakana","Hiragana","Hangul","Bopomofo"],General_Category:["Other_Letter","Letter_Number","Other_Symbol","Modifier_Letter"]}),A7e=FZ({Block:["CJK_Compatibility","CJK_Symbols_And_Punctuation","Vertical_Forms","CJK_Compatibility_Forms","Small_Form_Variants","Halfwidth_And_Fullwidth_Forms","Ideographic_Description_Characters","Kanbun","CJK_Strokes","Enclosed_CJK_Letters_And_Months"]}).subtract(VZ),lCt=IT(VZ,A7e);function w7e(){return IT(lCt)}T(w7e,"all");function D7e(){return IT(VZ)}T(D7e,"letters");function I7e(){return IT(A7e)}T(I7e,"punctuations");const uCt="0",Yoe=T(t=>({sbr:.6,sbo:t,spr:.6,spo:t}),"getDefaultBaselineOffset"),n6=class{static get globalFontMeasureCache(){return this._globalFontMeasureCache}static setFontMeasureCache(e,n,r){this._globalFontMeasureCache.has(e)||this._globalFontMeasureCache.set(e,new Map);const i=this._globalFontMeasureCache.get(e);i&&i.set(n,r)}static clearFontMeasureCache(e){var n;const r=e.split("/");if(r.length===1){const i=r[0];this._globalFontMeasureCache.delete(i)}else if(r.length===2){const i=r[0],a=r[1];(n=this._globalFontMeasureCache.get(i))==null||n.delete(a)}else return!1;return!0}static getFontMeasureCache(e,n){var r;return(r=this._globalFontMeasureCache.get(e))==null?void 0:r.get(n)}static autoCleanFontMeasureCache(e=1e6){let n=0,r=!1;for(const i of this._globalFontMeasureCache){const[,a]=i;if(n+=a.size,n>e){r=!0;break}}if(r){let i=0;for(const a of this._globalFontMeasureCache){const[o,s]=a;if(i+=s.size,i>e/2){const l=i-e/2;this._clearMeasureCache(l,s);break}this._globalFontMeasureCache.delete(o)}return!0}return!1}static getBaselineOffsetInfo(e,n){if(this._fontDataMap.size===0)return Yoe(n);const r=e.split(",");for(let i of r){i=i.replace(/'/g,"");const a=this._fontDataMap.get(i);if(!a)continue;const{subscriptSizeRatio:o,subscriptOffset:s,superscriptSizeRatio:l,superscriptOffset:u}=a;return{sbr:o,sbo:s*n,spr:l,spo:u*n}}return Yoe(n)}static getTextSizeByDom(e,n){if(n in this._getTextHeightCache)return this._getTextHeightCache[n];let r=document.getElementById("universheetTextSizeTest");const i="float:left;white-space:nowrap;visibility:hidden;margin:0;padding:0;";r||(r=document.createElement("span"),r.id="universheetTextSizeTest",document.getElementsByTagName("body")[0].appendChild(r)),r.style.cssText+=`${i};${n}`,r.textContent=e;const a=r.getBoundingClientRect(),o={width:a.width,height:a.height};return this._getTextHeightCache[n]=o,o}static getTextSize(e,n){const{fontString:r,fontSize:i,fontFamily:a}=n;let o=this._getBoundingBoxByFont(a,i);if(!o){const s=this.getMeasureText(e,r);o=this._calculateBoundingBoxByMeasureText(s,n)}return o}static getBBoxFromGlyphInfo(e,n){var r;const i=e.glyph,a=e.font,{y1:o,y2:s}=e.boundingBox,l=ip(n.fontSize)/a.unitsPerEm,{ascender:u,descender:c}=a;return this._calculateBoundingBoxByMeasureText({width:((r=i.advanceWidth)!=null?r:0)*l,fontBoundingBoxAscent:u*l,fontBoundingBoxDescent:Math.abs(c*l),actualBoundingBoxAscent:s*l,actualBoundingBoxDescent:Math.abs(o*l)},n)}static getMeasureText(e,n){if(!this._context){const h=document.createElement("canvas");this._context=h.getContext("2d")}const r=this._context,i=this.getFontMeasureCache(n,e);if(i!=null)return i;r.font=n;const a=r.measureText(e),{width:o,fontBoundingBoxAscent:s,fontBoundingBoxDescent:l,actualBoundingBoxAscent:u,actualBoundingBoxDescent:c}=a,d={width:o,fontBoundingBoxAscent:s,fontBoundingBoxDescent:l,actualBoundingBoxAscent:u,actualBoundingBoxDescent:c};if(s==null||l==null||Number.isNaN(s)||Number.isNaN(l)){const h=this.getTextSizeByDom(uCt,n).height;r.textBaseline==="top"?(d.fontBoundingBoxAscent=d.actualBoundingBoxAscent=h,d.fontBoundingBoxDescent=d.actualBoundingBoxDescent=0):r.textBaseline==="middle"?(d.fontBoundingBoxDescent=d.actualBoundingBoxDescent=h/2,d.fontBoundingBoxAscent=d.actualBoundingBoxAscent=h/2):(d.fontBoundingBoxDescent=d.actualBoundingBoxDescent=0,d.fontBoundingBoxAscent=d.actualBoundingBoxAscent=h)}return this.setFontMeasureCache(n,e,d),d}static _clearMeasureCache(e,n){let r=0;for(const i of n){const[a]=i;if(r>e)break;n.delete(a),r++}return!0}static _getBoundingBoxByFont(e,n=28,r=""){const i=this._fontDataMap.get(e);if(!i)return;const{notDefWidth:a,ascender:o,descender:s,typoAscender:l,typoDescender:u,strikeoutPosition:c,subscriptSizeRatio:d,subscriptOffset:h,superscriptSizeRatio:f,superscriptOffset:m,hdmxData:g,glyphHorizonMap:p}=i,v=g==null?void 0:g.indexOf(Math.floor(n)),_=p.get(r.charCodeAt(0));let C=a;if(_){const{width:S,pixelsPerEm:b=[]}=_;v?C=b[v]:C=S}return{width:C*n,ba:o*n,bd:s*n,aba:l*n,abd:u*n,sp:c*n,sbr:d,sbo:h*n,spr:f,spo:m*n}}static _calculateBoundingBoxByMeasureText(e,n){const{width:r,fontBoundingBoxAscent:i,fontBoundingBoxDescent:a,actualBoundingBoxAscent:o,actualBoundingBoxDescent:s}=e,{fontSize:l,originFontSize:u}=n,c=u/l,d=i*c,h=a*c;return{width:r,ba:d,bd:h,aba:o,abd:s,sp:(i+a)/2,sbr:.6,spr:.6,sbo:(d+h)*.141,spo:(d+h)*.4}}};T(n6,"FontCache"),q(n6,"_getTextHeightCache",{}),q(n6,"_context"),q(n6,"_fontDataMap",new Map),q(n6,"_globalFontMeasureCache",new Map);let a_=n6;const P7e=180,cCt=Math.PI/P7e,dCt=P7e/Math.PI,Xoe="rgb(",hCt="rgba(",pu=T((t,e)=>t?e!=null?`${hCt+t.join(",")},${e})`:`${Xoe+t.join(",")})`:`${Xoe}0,0,0)`,"getColor"),fCt=100,Xm=T((t,e)=>{if(Ie.isNumber(t))return t;if(e&&t&&Ie.isString(t)&&t.substr(t.length-1,1)==="%"){const n=Number.parseFloat(t)/fCt;return e*n}return 0},"toPx"),mCt=16,o_=T((t,e)=>(e||(e=window),e.requestPostAnimationFrame?e.requestPostAnimationFrame(t):e.requestAnimationFrame?e.requestAnimationFrame(t):e.msRequestAnimationFrame?e.msRequestAnimationFrame(t):e.webkitRequestAnimationFrame?e.webkitRequestAnimationFrame(t):e.mozRequestAnimationFrame?e.mozRequestAnimationFrame(t):e.oRequestAnimationFrame?e.oRequestAnimationFrame(t):setTimeout(t,mCt)),"requestNewFrame"),M7e=T((t,e)=>(e||(e=window),e.requestPostAnimationFrame?e.cancelPostAnimationFrame(t):e.requestAnimationFrame?e.cancelAnimationFrame(t):e.msRequestAnimationFrame?e.msCancelAnimationFrame(t):e.webkitRequestAnimationFrame?e.webkitCancelAnimationFrame(t):e.mozRequestAnimationFrame?e.mozCancelAnimationFrame(t):e.oRequestAnimationFrame?e.oCancelAnimationFrame(t):clearTimeout(t)),"cancelRequestFrame"),T7e=T(()=>{const t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){console.error(e)}return t},"createCanvasElement"),L7e=T(t=>t*dCt,"radToDeg"),uc=T(t=>t*cCt,"degToRad"),Goe=T(()=>{let t="pointer";return typeof window<"u"&&!window.PointerEvent&&typeof navigator<"u"&&(t="mouse"),Ie.isTablet()&&!Ie.isIPhone()&&!(document&&"ontouchend"in document)&&(t="mouse"),t},"getPointerPrefix"),gCt=T(()=>Ie.getBrowserType()==="safari","IsSafari"),pCt=4,vCt=T((t="obj",e=pCt)=>{const n=window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g,"").split("");let r="";for(let a=0;a<e;a++)r+=n[Math.round(Math.random()*(n.length-1))];const i=new Date().getTime();return`${t}_${r}_${i}`},"generateRandomKey");function a2(t){return Object.prototype.toString.apply(t)}T(a2,"getValueType");function PT(t){return a2(t)==="[object Function]"}T(PT,"isFunction");function _Ct(t){return a2(t)==="[object Date]"}T(_Ct,"isDate");function CCt(t){return a2(t)==="[object RegExp]"}T(CCt,"isRegExp");function SCt(t){return a2(t)==="[object Array]"}T(SCt,"isArray");function Z$(t){return a2(t)==="[object String]"}T(Z$,"isString");function bCt(t){return a2(t)==="[object Number]"}T(bCt,"isNumber");function yCt(t){return a2(t)==="[object Object]"}T(yCt,"isObject");function V4(t,e){return e=10**e,Math.round(t*e)/e}T(V4,"precisionTo");function Rr(t,e){return Math.round(t*e)/e}T(Rr,"fixLineWidthByScale");function rp(t,e){const n=ba.ff,r=ba.fs;if(!t){const h=`${r}pt ${n}`;return{fontCache:h,fontString:h,fontSize:r,originFontSize:r,fontFamily:n}}let i=A5.ITALIC;(t.it===0||t.it===void 0)&&(i=A5.NORMAL);let a=A5.BOLD;(t.bl===0||t.bl===void 0)&&(a=A5.NORMAL);let o=r;t.fs&&(o=Math.ceil(t.fs));let s=o,l=n;if(t.ff){let h=t.ff;h=h.replace(/"/g,"").replace(/'/g,""),h.indexOf(" ")>-1&&(h=`"${h}"`),h==null&&(h=n),l=h}const{va:u}=t;if(u===ca.SUBSCRIPT||u===ca.SUPERSCRIPT){const h=a_.getBaselineOffsetInfo(l,s),{sbr:f,spr:m}=h;s*=u===ca.SUBSCRIPT?f:m}const c=`${i} ${a} ${s}pt ${l}`,d=`${c}, ${V7} `;return{fontCache:c,fontString:d,fontSize:s,originFontSize:o,fontFamily:l}}T(rp,"getFontStyleString");const ECt=D7e().toRegExp();function B4(t){return ECt.test(t)}T(B4,"hasCJKText");const RCt=w7e().toRegExp();function hS(t){return RCt.test(t)}T(hS,"hasCJK");const ACt=I7e().toRegExp();function J$(t){return ACt.test(t)}T(J$,"hasCJKPunctuation");function wCt(t){return!!/[\u0000-\u024F]/gi.exec(t)}T(wCt,"hasAllLatin");function DCt(t){return!!/[\u0000-\u007F]/gi.exec(t)}T(DCt,"hasBasicLatin");function ICt(t){return!!/[\u0080-\u00FF]/gi.exec(t)}T(ICt,"hasLatinOneSupplement");function PCt(t){return!!/[\u0100-\u017F]/gi.exec(t)}T(PCt,"hasLatinExtendedA");function MCt(t){return!!/[\u0180-\u024F]/gi.exec(t)}T(MCt,"hasLatinExtendedB");const eW=/^(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g,TCt=/^(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/;function _D(t){return TCt.test(t)}T(_D,"startWithEmoji");function BZ(t){return/[\u0600-\u06FF]|[\u0750-\u0750]|[\u0870-\u08FF]|[\uFB50-\uFDFF]|[\uFE70-\uFEFF]/gi.test(t)}T(BZ,"hasArabic");function UZ(t){return/[\u0180-\u024F]/gi.test(t)}T(UZ,"hasTibetan");function x7e(t){return/\s+/g.test(t)}T(x7e,"hasSpace");function MT(t){return["”","’",",","。",".","、",":",";","?","!","》",")","』","」","】","〗","〕","〉","]","}"].indexOf(t)>-1}T(MT,"isCjkLeftAlignedPunctuation");function TT(t){return["“","‘","《","(","『","「","【","〖","〔","〈","[","{"].indexOf(t)>-1}T(TT,"isCjkRightAlignedPunctuation");function HZ(t){return["・","·"].indexOf(t)>-1}T(HZ,"isCjkCenterAlignedPunctuation");const Qoe=1e3;let my;function fS(){if(my)return my;let t=56;for(;t<Qoe*2;t++)if(matchMedia(`(max-resolution: ${t}dpi)`).matches===!0)return t;return my=t,setTimeout(()=>{my=null},Qoe),t}T(fS,"getDPI");const O7e=72,LCt=25.4;function N7e(t){return t/(O7e/fS())}T(N7e,"ptToPx");function xCt(t){return t*(O7e/fS())}T(xCt,"pxToPt");function OCt(t){return t*(fS()/LCt)}T(OCt,"ptToMM");function NCt(t){return t*fS()}T(NCt,"pxToInch");function jZ(t){const{scaleX:e=1,scaleY:n=1}=t;return Math.max(e,n)}T(jZ,"getScale");function Gm(t,e,n,r){const i=t-1,a=e-1,o=n[i]||0;let s=n[t];s==null&&(s=n[n.length-1]);const l=r[a]||0;let u=r[e];return u==null&&(u=r[r.length-1]),{startY:o,endY:s,startX:l,endX:u}}T(Gm,"getCellPositionByIndex");function j5(t,e,n,r,i){let{startY:a,endY:o,startX:s,endX:l}=Gm(t,e,n,r);const{isMerged:u,isMergedMainCell:c,startRow:d,startColumn:h,endRow:f,endColumn:m}=i;let g={startRow:d,startColumn:h,endRow:f,endColumn:m,startY:0,endY:0,startX:0,endX:0};const p=n.length-1,v=r.length-1;if(u&&d!==-1&&h!==-1){const _=n[d-1]||0,C=n[f]||n[p],S=r[h-1]||0,b=r[m]||r[v];g={...g,startY:_,endY:C,startX:S,endX:b}}else if(!u&&f!==-1&&m!==-1){const _=n[f]||n[p],C=r[m]||r[v];g={...g,startY:a,endY:_,startX:s,endX:C}}return{isMerged:u,isMergedMainCell:c,actualRow:t,actualColumn:e,startY:a,endY:o,startX:s,endX:l,mergeInfo:g}}T(j5,"getCellByIndexWithMergeInfo");function k7e(t,e,n,r,i){let{startY:a,endY:o,startX:s,endX:l}=Gm(t,e,n,r);const{isMerged:u,isMergedMainCell:c,startRow:d,startColumn:h,endRow:f,endColumn:m}=XP(t,e,i);let g={startRow:d,startColumn:h,endRow:f,endColumn:m,startY:0,endY:0,startX:0,endX:0};const p=n.length-1,v=r.length-1;if(u&&d!==-1&&h!==-1){const _=n[d-1]||0,C=n[f]||n[p],S=r[h-1]||0,b=r[m]||r[v];g={...g,startY:_,endY:C,startX:S,endX:b}}else if(!u&&f!==-1&&m!==-1){const _=n[f]||n[p],C=r[m]||r[v];g={...g,startY:a,endY:_,startX:s,endX:C}}return{isMerged:u,isMergedMainCell:c,actualRow:t,actualColumn:e,startY:a,endY:o,startX:s,endX:l,mergeInfo:g}}T(k7e,"getCellByIndex");function kCt(t,e,n,r){let i=!1;for(let a=e;a<=n;a++){const{isMerged:o,isMergedMainCell:s}=XP(t,a,r);if(!o&&!s){i=!0;break}}return i}T(kCt,"hasUnMergedCellInRow");function tW(t,e,n){const{startY:r,endY:i,startX:a,endX:o}=t;return t.startY=r+n,t.endY=i+n,t.startX=a+e,t.endX=o+e,{...t}}T(tW,"mergeInfoOffset");function F7e(t,e){return!(t.left>e.right||t.top>e.bottom||e.left>t.right||e.top>t.bottom)}T(F7e,"isRectIntersect");function FCt(t){const e=document.createElement("style");document.head.appendChild(e);const n=e.sheet;for(const r of t)n==null||n.insertRule(r,n.cssRules.length)}T(FCt,"injectStyle");function VCt(t){for(let e=0,n=document.head.childNodes.length;e<n;e++){const r=document.head.childNodes[e];if(r.nodeName==="STYLE"&&r.textContent&&r.textContent.indexOf(t)>-1)return!0}return!1}T(VCt,"checkStyle");function zh(t){return Number(t.replace(/px/gi,""))}T(zh,"pxToNum");function V7e(t){const e=getComputedStyle(t),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:a,width:o,height:s}=e;return{top:zh(n),left:zh(r),right:zh(i),bottom:zh(a),width:zh(o),height:zh(s)}}T(V7e,"getSizeForDom");const B7e=.75;function ip(t){return t/B7e}T(ip,"ptToPixel");function U7e(t){return t*B7e}T(U7e,"pixelToPt");function s_(t,e,n){for(const r of t)if(e>=r.startRow&&e<=r.endRow&&n>=r.startColumn&&n<=r.endColumn)return!0;return!1}T(s_,"inViewRanges");function BCt(t,e){for(const n of t)if(e>n.endRow)return!1;return!0}T(BCt,"inCurrentAndAboveViewRanges");function H7e(t,e){let n=!1;for(const r of t)if(e>=r.startRow&&e<=r.endRow){n=!0;break}return n}T(H7e,"inRowViewRanges");function $Z(t,e){const n=[];for(const r of t)for(const i of e)ft.intersects(r,i)&&n.push(i);return t.concat(n)}T($Z,"expandRangeIfIntersects");function UCt(t){return{startRow:Math.max(0,t.startRow),startColumn:Math.max(0,t.startColumn),endRow:Math.max(0,t.endRow),endColumn:Math.max(0,t.endColumn)}}T(UCt,"clampRanges");function j7e(){const t=document.createElement("div");t.style.width="0",t.style.height="0",t.style.backgroundColor="highlight",document.body.append(t);const e=getComputedStyle(t).backgroundColor;return t.remove(),new Zs(e).toRgb()}T(j7e,"getSystemHighlightColor");const $7e=class ji{constructor(e=0,n=0){this.x=e,this.y=n}static Zero(){return new ji(0,0)}static One(){return new ji(1,1)}static FromArray(e,n=0){return new ji(e[n],e[n+1])}static FromArrayToRef(e,n,r){r.x=e[n],r.y=e[n+1]}static CatmullRom(e,n,r,i,a){const o=a*a,s=a*o,l=.5*(2*n.x+(-e.x+r.x)*a+(2*e.x-5*n.x+4*r.x-i.x)*o+(-e.x+3*n.x-3*r.x+i.x)*s),u=.5*(2*n.y+(-e.y+r.y)*a+(2*e.y-5*n.y+4*r.y-i.y)*o+(-e.y+3*n.y-3*r.y+i.y)*s);return new ji(l,u)}static Clamp(e,n,r){let i=e.x;i=i>r.x?r.x:i,i=i<n.x?n.x:i;let a=e.y;return a=a>r.y?r.y:a,a=a<n.y?n.y:a,new ji(i,a)}static Hermite(e,n,r,i,a){const o=a*a,s=a*o,l=2*s-3*o+1,u=-2*s+3*o,c=s-2*o+a,d=s-o,h=e.x*l+r.x*u+n.x*c+i.x*d,f=e.y*l+r.y*u+n.y*c+i.y*d;return new ji(h,f)}static Hermite1stDerivative(e,n,r,i,a){const o=ji.Zero();return this.Hermite1stDerivativeToRef(e,n,r,i,a,o),o}static Hermite1stDerivativeToRef(e,n,r,i,a,o){const s=a*a;o.x=(s-a)*6*e.x+(3*s-4*a+1)*n.x+(-s+a)*6*r.x+(3*s-2*a)*i.x,o.y=(s-a)*6*e.y+(3*s-4*a+1)*n.y+(-s+a)*6*r.y+(3*s-2*a)*i.y}static Lerp(e,n,r){const i=e.x+(n.x-e.x)*r,a=e.y+(n.y-e.y)*r;return new ji(i,a)}static Dot(e,n){return e.x*n.x+e.y*n.y}static Normalize(e){const n=ji.Zero();return this.NormalizeToRef(e,n),n}static NormalizeToRef(e,n){const r=e.length();r!==0&&(n.x=e.x/r,n.y=e.y/r)}static Minimize(e,n){const r=e.x<n.x?e.x:n.x,i=e.y<n.y?e.y:n.y;return new ji(r,i)}static Maximize(e,n){const r=e.x>n.x?e.x:n.x,i=e.y>n.y?e.y:n.y;return new ji(r,i)}static PointInTriangle(e,n,r,i){const a=.5*(-r.y*i.x+n.y*(-r.x+i.x)+n.x*(r.y-i.y)+r.x*i.y),o=a<0?-1:1,s=(n.y*i.x-n.x*i.y+(i.y-n.y)*e.x+(n.x-i.x)*e.y)*o,l=(n.x*r.y-n.y*r.x+(n.y-r.y)*e.x+(r.x-n.x)*e.y)*o;return s>0&&l>0&&s+l<2*a*o}static Distance(e,n){return Math.sqrt(ji.DistanceSquared(e,n))}static DistanceSquared(e,n){const r=e.x-n.x,i=e.y-n.y;return r*r+i*i}static Center(e,n){return ji.CenterToRef(e,n,ji.Zero())}static CenterToRef(e,n,r){return r.copyFromFloats((e.x+n.x)/2,(e.y+n.y)/2)}static DistanceOfPointFromSegment(e,n,r){const i=ji.DistanceSquared(n,r);if(i===0)return ji.Distance(e,n);const a=r.subtract(n),o=Math.max(0,Math.min(1,ji.Dot(e.subtract(n),a)/i)),s=n.add(a.multiplyByFloats(o,o));return ji.Distance(e,s)}static create(e,n){return new ji(e,n)}toString(){return`{X: ${this.x} Y: ${this.y}}`}getClassName(){return"Vector2"}getHashCode(){let e=this.x|0;return e=e*397^(this.y|0),e}toArray(e,n=0){return e[n]=this.x,e[n+1]=this.y,this}fromArray(e,n=0){return ji.FromArrayToRef(e,n,this),this}asArray(){const e=new Array;return this.toArray(e,0),e}copyFrom(e){return this.x=e.x,this.y=e.y,this}copyFromFloats(e,n){return this.x=e,this.y=n,this}set(e,n){return this.copyFromFloats(e,n)}add(e){return new ji(this.x+e.x,this.y+e.y)}addToRef(e,n){return n.x=this.x+e.x,n.y=this.y+e.y,this}addByPoint(e,n){return new ji(this.x+e,this.y+n)}addInPlace(e){return this.x+=e.x,this.y+=e.y,this}subtract(e){return new ji(this.x-e.x,this.y-e.y)}subtractByPoint(e,n){return new ji(this.x-e,this.y-n)}subtractToRef(e,n){return n.x=this.x-e.x,n.y=this.y-e.y,this}subtractInPlace(e){return this.x-=e.x,this.y-=e.y,this}multiplyInPlace(e){return this.x*=e.x,this.y*=e.y,this}multiply(e){return new ji(this.x*e.x,this.y*e.y)}multiplyToRef(e,n){return n.x=this.x*e.x,n.y=this.y*e.y,this}multiplyByFloats(e,n){return new ji(this.x*e,this.y*n)}divide(e){return new ji(this.x/e.x,this.y/e.y)}divideToRef(e,n){return n.x=this.x/e.x,n.y=this.y/e.y,this}divideInPlace(e){return this.divideToRef(e,this)}negate(){return new ji(-this.x,-this.y)}negateInPlace(){return this.x*=-1,this.y*=-1,this}negateToRef(e){return e.copyFromFloats(this.x*-1,this.y*-1)}scaleInPlace(e){return this.x*=e,this.y*=e,this}scale(e){const n=new ji(0,0);return this.scaleToRef(e,n),n}scaleToRef(e,n){return n.x=this.x*e,n.y=this.y*e,this}scaleAndAddToRef(e,n){return n.x+=this.x*e,n.y+=this.y*e,this}equals(e){return e&&this.x===e.x&&this.y===e.y}floor(){return new ji(Math.floor(this.x),Math.floor(this.y))}fract(){return new ji(this.x-Math.floor(this.x),this.y-Math.floor(this.y))}rotate(e){const n=Math.cos(e),r=Math.sin(e),i=n*this.x-r*this.y,a=r*this.x+n*this.y;return this.x=i,this.y=a,this}rotateToRef(e,n){const r=Math.cos(e),i=Math.sin(e);return n.x=r*this.x-i*this.y,n.y=i*this.x+r*this.y,this}rotateByPoint(e,n=ji.create(0,0)){const r=Math.cos(e),i=Math.sin(e),a=n.x+(this.x-n.x)*r-(this.y-n.y)*i,o=n.y+(this.x-n.x)*i+(this.y-n.y)*r;return this.x=a,this.y=o,this}transformCoordinateOnRotate(e){const n=Math.sqrt(this.x**2+this.y**2),r=Math.atan2(this.y,this.x),i=-e+r;return this.x=n*Math.cos(i),this.y=n*Math.sin(i),this}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSquared(){return this.x*this.x+this.y*this.y}normalize(){return ji.NormalizeToRef(this,this),this}clone(){return new ji(this.x,this.y)}};T($7e,"Vector2");let cn=$7e;const IN=[1,0,0,1,0,0],W7e=class ng{constructor(e=IN){q(this,"dirty",!1),q(this,"_m"),this._m=e&&e.slice()||IN}static create(e=IN){return new this(e)}reset(){this._m[0]=1,this._m[1]=0,this._m[2]=0,this._m[3]=1,this._m[4]=0,this._m[5]=0}copy(){return new ng(this._m)}copyInto(e){e._m[0]=this._m[0],e._m[1]=this._m[1],e._m[2]=this._m[2],e._m[3]=this._m[3],e._m[4]=this._m[4],e._m[5]=this._m[5]}applyPoint(e,n=!1){const r=this._m,i=r[0]*e.x+r[2]*e.y,a=r[1]*e.x+r[3]*e.y;return n?new cn(i,a):new cn(i+r[4],a+r[5])}translate(e,n){return this._m[4]+=this._m[0]*e+this._m[2]*n,this._m[5]+=this._m[1]*e+this._m[3]*n,this}scale(e,n){return this._m[0]*=e,this._m[1]*=e,this._m[2]*=n,this._m[3]*=n,this}rotate(e){const n=uc(e),r=Math.cos(n),i=Math.sin(n),a=this._m[0]*r+this._m[2]*i,o=this._m[1]*r+this._m[3]*i,s=this._m[0]*-i+this._m[2]*r,l=this._m[1]*-i+this._m[3]*r;return this._m[0]=a,this._m[1]=o,this._m[2]=s,this._m[3]=l,this}getTranslation(){return{x:this._m[4],y:this._m[5]}}skew(e,n){const r=this._m[0]+this._m[2]*n,i=this._m[1]+this._m[3]*n,a=this._m[2]+this._m[0]*e,o=this._m[3]+this._m[1]*e;return this._m[0]=r,this._m[1]=i,this._m[2]=a,this._m[3]=o,this}multiply(e){const n=this._m[0]*e._m[0]+this._m[2]*e._m[1],r=this._m[1]*e._m[0]+this._m[3]*e._m[1],i=this._m[0]*e._m[2]+this._m[2]*e._m[3],a=this._m[1]*e._m[2]+this._m[3]*e._m[3],o=this._m[0]*e._m[4]+this._m[2]*e._m[5]+this._m[4],s=this._m[1]*e._m[4]+this._m[3]*e._m[5]+this._m[5];return this._m[0]=n,this._m[1]=r,this._m[2]=i,this._m[3]=a,this._m[4]=o,this._m[5]=s,this}invert(){const e=1/(this._m[0]*this._m[3]-this._m[1]*this._m[2]),n=this._m[3]*e,r=-this._m[1]*e,i=-this._m[2]*e,a=this._m[0]*e,o=e*(this._m[2]*this._m[5]-this._m[3]*this._m[4]),s=e*(this._m[1]*this._m[4]-this._m[0]*this._m[5]);return this._m[0]=n,this._m[1]=r,this._m[2]=i,this._m[3]=a,this._m[4]=o,this._m[5]=s,this}getMatrix(){return this._m}getMatrixByAccurate(e=3){return this._m.map(n=>V4(n,e))}setAbsolutePosition(e){const n=this._m[0],r=this._m[1],i=this._m[2],a=this._m[3],o=this._m[4],s=this._m[5],l=(n*(e.y-s)-r*(e.x-o))/(n*a-r*i),u=(e.x-o-i*l)/n;return this.translate(u,l)}decompose(){const e=this._m[0],n=this._m[1],r=this._m[2],i=this._m[3],a=this._m[4],o=this._m[5],s=e*i-n*r,l={x:a,y:o,angle:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!==0||n!==0){const u=Math.sqrt(e*e+n*n);l.angle=n>0?Math.acos(e/u):-Math.acos(e/u),l.scaleX=u,l.scaleY=s/u,l.skewX=(e*r+n*i)/s,l.skewY=0}else if(r!==0||i!==0){const u=Math.sqrt(r*r+i*i);l.angle=Math.PI/2-(i>0?Math.acos(-r/u):-Math.acos(r/u)),l.scaleX=s/u,l.scaleY=u,l.skewX=0,l.skewY=(e*r+n*i)/s}return l.angle=L7e(l.angle),l}makeBoundingBoxFromPoints(e){if(this)for(let l=0;l<e.length;l++)e[l]=this.applyPoint(e[l]);const n=[e[0].x,e[1].x,e[2].x,e[3].x],r=Math.min(...n),i=Math.max(...n)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],o=Math.min(...a),s=Math.max(...a)-o;return{left:r,top:o,width:i,height:s,points:e}}composeMatrix(e){const n=new ng([1,0,0,1,e.left||0,e.top||0]);return e.angle&&n.rotate(e.angle),(e.scaleX!==1||e.scaleY!==1||e.skewX||e.skewY||e.flipX||e.flipY)&&n.multiply(this._calcDimensionsMatrix(e)),this._m=n.getMatrix(),this}clone(){return new ng([...this._m])}_calcDimensionsMatrix(e){var n,r;const i=(n=e.scaleX)!=null?n:1,a=(r=e.scaleY)!=null?r:1,o=new ng([e.flipX?-i:i,0,0,e.flipY?-a:a,0,0]);return e.skewX&&o.multiply(new ng([1,0,Math.tan(uc(e.skewX)),1,0,0])),e.skewY&&o.multiply(new ng([1,Math.tan(uc(e.skewY)),0,1,0,0])),o}convert2DOMMatrix2D(){const e=this.getMatrix();return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}};T(W7e,"Transform");let a1=W7e;const nW=["top","left","width","height","angle","scaleX","scaleY","skewX","skewY","flipX","flipY","strokeWidth"];var B7=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.RICH_TEXT=1]="RICH_TEXT",t[t.SHAPE=2]="SHAPE",t[t.IMAGE=3]="IMAGE",t[t.RECT=4]="RECT",t[t.CIRCLE=5]="CIRCLE",t))(B7||{});const z7e=class extends et{constructor(e){super(),q(this,"groupKey"),q(this,"isInGroup",!1),q(this,"objectType",0),q(this,"onTransformChange$",new si),q(this,"onPointerDown$",new si),q(this,"onPointerMove$",new si),q(this,"onPointerUp$",new si),q(this,"onPointerOut$",new si),q(this,"onPointerOver$",new si),q(this,"onPointerLeave$",new si),q(this,"onPointerEnter$",new si),q(this,"onDblclick$",new si),q(this,"onTripleClick$",new si),q(this,"onMouseWheel$",new si),q(this,"onDragLeave$",new si),q(this,"onDragOver$",new si),q(this,"onDragEnter$",new si),q(this,"onDrop$",new si),q(this,"onIsAddedToParent$",new si),q(this,"onDispose$",new si),q(this,"_oKey"),q(this,"_dirty",!0),q(this,"_forceDirty",!0),q(this,"_printable",!1),q(this,"_top",0),q(this,"_topOrigin",0),q(this,"_left",0),q(this,"_leftOrigin",0),q(this,"_width",0),q(this,"_widthOrigin",0),q(this,"_height",0),q(this,"_heightOrigin",0),q(this,"_angle",0),q(this,"_scaleX",1),q(this,"_scaleY",1),q(this,"_skewX",0),q(this,"_skewY",0),q(this,"_flipX",!1),q(this,"_flipY",!1),q(this,"_strokeWidth",0),q(this,"_parent"),q(this,"_zIndex",0),q(this,"_evented",!0),q(this,"_visible",!0),q(this,"_debounceParentDirty",!0),q(this,"_transform",new a1),q(this,"_cursor",Yn.DEFAULT),q(this,"_transformerConfig"),q(this,"_forceRender",!1),q(this,"_layer"),e?this._oKey=e:this._oKey=vCt()}get transform(){const e=this._transform.clone();return this.transformForAngle(e)}transformForAngle(e){if(this._angle!==0){const n=(this.width+this.strokeWidth)/2,r=(this.height+this.strokeWidth)/2;e.rotate(-this._angle),e.translate(n,r),e.rotate(this.angle),e.translate(-n,-r)}return e}get printable(){return this._printable}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get widthOrigin(){return this._widthOrigin}get heightOrigin(){return this._heightOrigin}get classType(){return ar.BASE_OBJECT}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}get strokeWidth(){return this._strokeWidth}get angle(){return this._angle}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get ancestorScaleX(){var e;const n=((e=this.getParent())==null?void 0:e.ancestorScaleX)||1;return this.scaleX*n}get ancestorScaleY(){var e;const n=((e=this.getParent())==null?void 0:e.ancestorScaleY)||1;return this.scaleY*n}get ancestorLeft(){var e;return this.left+(((e=this.getParent())==null?void 0:e.ancestorLeft)||0)}get ancestorTop(){var e;return this.top+(((e=this.getParent())==null?void 0:e.ancestorTop)||0)}get ancestorTransform(){const e=this.getParent();return this.isInGroup&&(e==null?void 0:e.classType)===ar.GROUP?e==null?void 0:e.ancestorTransform.multiply(this.transform):this.transform}get ancestorGroup(){let e=null,n=this.getParent();for(;n!=null;)n.classType===ar.GROUP&&(e=n),n=n.getParent();return e}get skewX(){return this._skewX}get skewY(){return this._skewY}get flipX(){return this._flipX}get flipY(){return this._flipY}get parent(){return this._parent}get oKey(){return this._oKey}get zIndex(){return this._zIndex}get evented(){return this._evented}get visible(){return this._visible}get debounceParentDirty(){return this._debounceParentDirty}get cursor(){return this._cursor}get layer(){return this._layer}set transform(e){this._transform=e}set zIndex(e){this._zIndex=e}set parent(e){this._parent=e}set evented(e){this._evented=e}set debounceParentDirty(e){this._debounceParentDirty=e}set cursor(e){this.setCursor(e)}set layer(e){this._layer=e}set top(e){var n;this._topOrigin=e,this._top=Xm(e,(n=this._parent)==null?void 0:n.height)}set left(e){var n;this._leftOrigin=e,this._left=Xm(e,(n=this._parent)==null?void 0:n.width)}set width(e){var n;this._widthOrigin=e,this._width=Xm(e,(n=this._parent)==null?void 0:n.width)}set height(e){var n;this._heightOrigin=e,this._height=Xm(e,(n=this._parent)==null?void 0:n.height)}set strokeWidth(e){this._strokeWidth=e}set angle(e){this._angle=e}set scaleX(e){this._scaleX=e}set scaleY(e){this._scaleY=e}set skewX(e){this._skewX=e}set flipY(e){this._flipY=e}set flipX(e){this._flipX=e}set skewY(e){this._skewY=e}get transformerConfig(){return this._transformerConfig}set transformerConfig(e){this._transformerConfig=e}get maxZIndex(){return this._zIndex}makeDirty(e=!0){if(this._dirty=e,e){if(this._layer==null){this._dirty=!1;return}this._layer.makeDirtyWithDebounce(e)}return this}makeForceDirty(e=!0){this._forceDirty=e}makeDirtyNoDebounce(e=!0){var n;return this._dirty=e,e&&((n=this._layer)==null||n.makeDirty(e)),this}isDirty(){return this._dirty}translate(e,n){const r=this.top;n!==void 0&&(this.top=n);const i=this.left;return e!==void 0&&(this.left=e),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.translate,value:{top:this._top,left:this._left},preValue:{top:r,left:i}}),this}resize(e,n){const r=this.width;e!==void 0&&(this.width=e);const i=this.height;return n!==void 0&&(this.height=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.resize,value:{width:this._width,height:this._height},preValue:{width:r,height:i}}),this}scale(e,n){const r=this.scaleX;e!==void 0&&(this.scaleX=e);const i=this.scaleY;return n!==void 0&&(this.scaleY=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.scale,value:{scaleX:this._scaleX,scaleY:this._scaleY},preValue:{scaleX:r,scaleY:i}}),this}skew(e,n){const r=e;e!==void 0&&(this.skewX=e);const i=n;return n!==void 0&&(this.skewY=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.skew,value:{skewX:this._skewX,skewY:this._skewY},preValue:{skewX:r,skewY:i}}),this}flip(e,n){const r=e;e!==void 0&&(this.flipX=e);const i=n;return n!==void 0&&(this.flipY=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.flip,value:{flipX:this._flipX,flipY:this._flipY},preValue:{flipX:r,flipY:i}}),this}transformByState(e){const n=Object.keys(e),r={};if(n.length!==0)return n.forEach(i=>{e[i]!==void 0&&(r[i]=this[i],this[i]=e[i])}),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.all,value:e,preValue:r}),this}isRender(e){return this._forceRender?!1:e&&!this.isInGroup}getParent(){return this._parent}getState(){return{left:this.left,top:this.top,width:this.width,height:this.height,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}hide(){this._visible=!1,this._makeDirtyMix()}show(){this._visible=!0,this._makeDirtyMix()}render(e,n){}isHit(e){const n=this.getInverseCoord(e);return n.x>=-this.strokeWidth/2&&n.x<=this.width+this.strokeWidth/2&&n.y>=-this.strokeWidth/2&&n.y<=this.height+this.strokeWidth/2}triggerPointerMove(e){var n,r;return(n=this.onPointerMove$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerMove(e),!1)}triggerPointerDown(e){var n,r;return(n=this.onPointerDown$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerDown(e),!1)}triggerPointerUp(e){var n,r;return(n=this.onPointerUp$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerUp(e),!1)}triggerDblclick(e){var n,r;return(n=this.onDblclick$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerDblclick(e),!1)}triggerTripleClick(e){var n,r;return(n=this.onTripleClick$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerTripleClick(e),!1)}triggerMouseWheel(e){var n,r;return(n=this.onMouseWheel$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerMouseWheel(e),!1)}triggerPointerOut(e){var n,r;return(n=this.onPointerOut$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerOut(e),!1)}triggerPointerLeave(e){var n,r;return(n=this.onPointerLeave$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerLeave(e),!1)}triggerPointerOver(e){var n;return this.onPointerOver$.emitEvent(e)?!0:((n=this._parent)==null||n.triggerPointerOver(e),!1)}triggerPointerEnter(e){var n,r;return(n=this.onPointerEnter$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerPointerEnter(e),!1)}triggerDragLeave(e){var n,r;return(n=this.onDragLeave$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerDragLeave(e),!1)}triggerDragOver(e){var n,r;return(n=this.onDragOver$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerDragOver(e),!1)}triggerDragEnter(e){var n,r;return(n=this.onDragEnter$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerDragEnter(e),!1)}triggerDrop(e){var n,r;return(n=this.onDrop$.emitEvent(e))!=null&&n.stopPropagation?!0:((r=this._parent)==null||r.triggerDrop(e),!1)}dispose(){var e;super.dispose(),this.onTransformChange$.complete(),this.onPointerDown$.complete(),this.onPointerMove$.complete(),this.onPointerUp$.complete(),this.onMouseWheel$.complete(),this.onPointerOut$.complete(),this.onPointerLeave$.complete(),this.onPointerOver$.complete(),this.onPointerEnter$.complete(),this.onDragLeave$.complete(),this.onDragOver$.complete(),this.onDragEnter$.complete(),this.onDrop$.complete(),this.onDblclick$.complete(),this.onTripleClick$.complete(),this.onIsAddedToParent$.complete(),(e=this.parent)==null||e.removeObject(this),this.onDispose$.emitEvent(this),this._makeDirtyMix(),this.onDispose$.complete(),this._parent=null,this._layer=null,this.transform=null}toJson(){const e={};return nW.forEach(n=>{this[n]&&(e[n]=this[n])}),e}getScene(){let e=this.parent;if(e==null)return null;if(e.classType===ar.SCENE)return e;for(;e;){if(e.classType===ar.SCENE)return e;e=e.getParent()}}resetCursor(){var e;(e=this.getScene())==null||e.resetCursor()}setCursor(e){var n;this._cursor=e,(n=this.getScene())==null||n.setCursor(e)}getEngine(){let e=this.getParent();for(;e!=null;){if(e.classType===ar.ENGINE)return e;e=e.getParent()}return null}getObjects(){return[]}getLayerIndex(){return this._layer==null?1:this._layer.zIndex}applyTransform(){var e;(e=this.getScene())==null||e.attachTransformerTo(this)}removeTransform(){var e;(e=this.getScene())==null||e.detachTransformerFrom(this)}getInverseCoord(e){return this.ancestorTransform.invert().applyPoint(e)}_setTransForm(){const e=a1.create().composeMatrix({left:this.left+this.strokeWidth/2,top:this.top+this.strokeWidth/2,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY});this.transform=e,this._makeDirtyMix()}_makeDirtyMix(){this.debounceParentDirty?this.makeDirty(!0):this.makeDirtyNoDebounce(!0)}};T(z7e,"BaseObject");let A0=z7e;var Lr=(t=>(t[t.BODY=0]="BODY",t[t.HEADER=1]="HEADER",t[t.FOOTER=2]="FOOTER",t[t.CELL=3]="CELL",t))(Lr||{}),l_=(t=>(t[t.SECTION=0]="SECTION",t[t.PAGE=1]="PAGE",t[t.COLUMN=2]="COLUMN",t))(l_||{}),Q6=(t=>(t[t.PARAGRAPH=0]="PARAGRAPH",t[t.BLOCK=1]="BLOCK",t))(Q6||{}),Ql=(t=>(t[t.LETTER=0]="LETTER",t[t.WORD=1]="WORD",t[t.LIST=2]="LIST",t[t.PLACEHOLDER=3]="PLACEHOLDER",t[t.TAB=4]="TAB",t[t.IMAGE=5]="IMAGE",t[t.AT=6]="AT",t[t.MATH=7]="MATH",t[t.MULTI_LINE=8]="MULTI_LINE",t[t.CUSTOM=9]="CUSTOM",t))(Ql||{}),cc=(t=>(t[t.VERTICAL=0]="VERTICAL",t[t.HORIZONTAL=1]="HORIZONTAL",t[t.AUTO=2]="AUTO",t))(cc||{});function q7e(t){var e;const n=t==null?void 0:t.parent;return n==null?!1:((e=n.glyphGroup[0])==null?void 0:e.glyphType)===Ql.LIST}T(q7e,"hasListGlyph");function Y7e(t,e){const n=WZ(t,e);if(n==null)return!1;const{paragraphStyle:r}=n;return r==null?!1:$X(r)}T(Y7e,"isIndentByGlyph");function HCt(t){const e=t==null?void 0:t.parent,n=e==null?void 0:e.parent,r=e==null?void 0:e.glyphGroup,i=n==null?void 0:n.divides;if(r&&t&&i&&e){const a=r.indexOf(t);if(i.indexOf(e)===i.length-1&&a===r.length-1)return!0}return!1}T(HCt,"isLastGlyph");function X7e(t){const e=t==null?void 0:t.parent,n=e==null?void 0:e.parent,r=e==null?void 0:e.glyphGroup,i=n==null?void 0:n.divides;if(r&&t&&i&&e){const a=r.indexOf(t),o=i.indexOf(e);if(o===0&&a===0||o===0&&a===1&&r[0].glyphType===Ql.LIST)return!0}return!1}T(X7e,"isFirstGlyph");function WZ(t,e){var n,r;const i=(n=t==null?void 0:t.parent)==null?void 0:n.parent;if(i==null||e==null)return;const a=e.paragraphs;if(a!=null)for(let o=0;o<a.length;o++){const s=a[o],l=a[o-1];if(s.startIndex===i.paragraphIndex)return{...s,paragraphStart:((r=l==null?void 0:l.startIndex)!=null?r:-1)+1,paragraphEnd:s.startIndex}}}T(WZ,"getParagraphByGlyph");function jCt(t){return t==null?!1:[wt.PARAGRAPH,wt.TAB,wt.SECTION_BREAK].indexOf(t.streamType)!==-1||t.content===wt.SPACE}T(jCt,"isPlaceholderOrSpace");function $Ct(t,e){return t==null||e==null||t.parent==null||e.parent==null?!1:t.parent.parent===e.parent.parent}T($Ct,"isSameLine");function zZ(){let t=1;const e=T7e().getContext("2d");return t=(()=>{const n=window.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r})(),t<1?1:t}T(zZ,"getDevicePixelRatio");function bg(t,e,n,r){let i=0,a=0,o=0,s=0;const{startX:l,startY:u,endX:c,endY:d}=r;e===wr.TOP?(i=l-n,a=u,o=c+n,s=u):e===wr.BOTTOM?(i=l-n,a=d,o=c-n,s=d):e===wr.LEFT?(i=l,a=u-n,o=l,s=d+n):e===wr.RIGHT&&(i=c,a=u-n,o=c,s=d+n),t.beginPath(),t.moveToByPrecision(i,a),t.lineToByPrecision(o,s),t.closePathByEnv(),t.stroke()}T(bg,"drawLineByBorderType");function G7e(t,e,n){let r=0,i=0,a=0,o=0;const{startX:s,startY:l,endX:u,endY:c}=n;e===wr.TL_BR?(r=s,i=l,a=u,o=c):e===wr.TL_BC?(r=s,i=l,a=(s+u)/2,o=c):e===wr.TL_MR?(r=s,i=l,a=u,o=(l+c)/2):e===wr.BL_TR?(r=s,i=c,a=u,o=l):e===wr.ML_TR?(r=s,i=(l+c)/2,a=u,o=l):e===wr.BC_TR&&(r=(s+u)/2,i=c,a=u,o=l),t.beginPath(),t.moveToByPrecision(r,i),t.lineToByPrecision(a,o),t.closePathByEnv(),t.stroke()}T(G7e,"drawDiagonalLineByBorderType");function WCt(t,e,n){let r=0,i=0,a=0,o=0;const{startX:s,startY:l,endX:u,endY:c}=n;e===wr.TOP?(r=s,i=l,a=u,o=l):e===wr.BOTTOM?(r=s,i=c,a=u,o=c):e===wr.LEFT?(r=s,i=l,a=s,o=c):e===wr.RIGHT&&(r=u,i=l,a=u,o=c),t.beginPath(),t.clearRectForTexture(r,i,a-r,o-i)}T(WCt,"clearLineByBorderType");function qZ(t,e){e===Un.HAIR?t.setLineDash([1,2]):e===Un.DASH_DOT_DOT||e===Un.MEDIUM_DASH_DOT_DOT?t.setLineDash([2,2,5,2,2]):e===Un.DASH_DOT||e===Un.MEDIUM_DASH_DOT||e===Un.SLANT_DASH_DOT?t.setLineDash([2,5,2]):e===Un.DOTTED?t.setLineDash([2]):e===Un.DASHED||e===Un.MEDIUM_DASHED?t.setLineDash([3]):t.setLineDash([0])}T(qZ,"setLineType");function Q7e(){const t=K7e(1);return t-Math.floor(t)}T(Q7e,"getLineOffset");function K7e(t){return Math.ceil(t/zZ()*100)/100}T(K7e,"getLineWith");function YZ(t){let e=1;return t===Un.MEDIUM||t===Un.MEDIUM_DASH_DOT||t===Un.MEDIUM_DASHED||t===Un.MEDIUM_DASH_DOT_DOT?e=2:t===Un.THICK&&(e=3),e}T(YZ,"getLineWidth");function jc(t,e,n,r,i=cn.create(0,0)){const a=t.add(e).rotateByPoint(r),o=a.subtract(e),s=r-n;return o.rotateByPoint(s,a).add(i).transformCoordinateOnRotate(s)}T(jc,"calculateRectRotate");function Z7e(t){return t>0?vD.DOWN:vD.UP}T(Z7e,"getRotateOrientation");function XZ(t,e,n){var r;const i=[];let a=0,o=0,s=0,l=0,u=0;const c=Z7e(n),d=t.length;n=Math.abs(n);const h=Math.tan(n),f=Math.sin(n),m=Math.cos(n);if(c===vD.UP){let g=0;for(let p=0;p<d;p++){const v=t[p],{lineHeight:_=0}=v;g+=p===0?0:_;const C=e*f+_*m;i.push(g/h),C>o&&(o=C),p===0&&(s+=_*f,u+=_*m)}s+=g/f+e*m,u-=o}else{let g=0,p=-1;const v=[];for(let S=d-1;S>=0;S--){const b=t[S],{lineHeight:y=0}=b,A=y/h,w=(e+A)*f;v.unshift(y/h),w>o&&(o=w,g=A,p=S),S===0?s+=y*f:S===d-1?s+=e*m+y/f:s+=y/f}let _=((r=t[p])==null?void 0:r.lineHeight)||0,C=0;for(let S=p+1;S<=d-1;S++){const b=t[S],{lineHeight:y=0}=b;_+=y,C+=v[S]||0,i[S]=-C}C=0;for(let S=p-1;S>=0;S--){const b=t[S],{lineHeight:y=0}=b;C+=v[S+1]||0,i[S]=C,a+=y}i[p]=0,d===1&&(s+=e*m),l=_/f-g*m}return{rotateTranslateXList:i,rotatedHeight:o,rotatedWidth:s,fixOffsetX:l,fixOffsetY:u,rotateTranslateY:a}}T(XZ,"getRotateOffsetAndFarthestHypotenuse");function zCt(){const t=.5-Q7e();return{left:t,top:t}}T(zCt,"getTranslateInSpreadContextWithPixelRatio");var $i=(t=>(t[t.PointerMove=0]="PointerMove",t[t.PointerDown=1]="PointerDown",t[t.PointerUp=2]="PointerUp",t[t.Dblclick=3]="Dblclick",t[t.Keyboard=4]="Keyboard",t))($i||{});const gy=class{};T(gy,"EventConstants"),q(gy,"DOM_DELTA_PIXEL",0),q(gy,"DOM_DELTA_LINE",1),q(gy,"DOM_DELTA_PAGE",2);var $c=(t=>(t[t.Generic=0]="Generic",t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Touch=3]="Touch",t))($c||{}),Kn=(t=>(t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical",t[t.LeftClick=2]="LeftClick",t[t.MiddleClick=3]="MiddleClick",t[t.RightClick=4]="RightClick",t[t.BrowserBack=5]="BrowserBack",t[t.BrowserForward=6]="BrowserForward",t[t.MouseWheelX=7]="MouseWheelX",t[t.MouseWheelY=8]="MouseWheelY",t[t.MouseWheelZ=9]="MouseWheelZ",t[t.DeltaHorizontal=10]="DeltaHorizontal",t[t.DeltaVertical=11]="DeltaVertical",t[t.FakeMove=12]="FakeMove",t))(Kn||{});const qCt=[new cn(0,0),new cn(1,1)],J7e=class{constructor(e=qCt){this._lines=e}intersection(e){if(this._lines.length<1||e.length<1)return;const n=[];for(let r=1;r<this._lines.length;r++){const i=this._lines[r-1],a=this._lines[r];for(let o=1;o<e.length;o++){const s=this._lines[r-1],l=this._lines[r],u=this._intersection({from:i,to:a},{from:s,to:l});u&&n.push(u)}}return n}_intersection(e,n){const r=e.from,i=e.to,a=n.from,o=n.to,s=(r.x-a.x)*(i.y-a.y)-(r.y-a.y)*(i.x-a.x),l=(r.x-o.x)*(i.y-o.y)-(r.y-o.y)*(i.x-o.x);if(s*l>=0)return!1;const u=(a.x-r.x)*(o.y-r.y)-(a.y-r.y)*(o.x-r.x),c=u+s-l;if(u*c>=0)return!1;const d=u/(l-s),h=d*(i.x-r.x),f=d*(i.y-r.y);return new cn(r.x+h,r.y+f)}};T(J7e,"Path2");let YCt=J7e;const XCt=60,PN=1e3,Koe=16.67,e9e=class extends et{constructor(e=XCt){super(),q(this,"_enabled",!0),q(this,"_rollingFrameTime"),q(this,"_lastFrameTimeMs"),q(this,"_frameCountInLastSecond",0),q(this,"_lastSecondTimeMs"),q(this,"_recFPSValueLastSecond",60),this._rollingFrameTime=new QCt(e)}dispose(){super.dispose()}get averageFrameTime(){return this._rollingFrameTime.averageFrameTime}get averageFrameTimeVariance(){return this._rollingFrameTime.variance}get instantaneousFrameTime(){return this._rollingFrameTime.history(0)}get averageFPS(){return this._recFPSValueLastSecond}get instantaneousFPS(){const e=this._rollingFrameTime.history(0);return e===0?0:PN/e}get isSaturated(){return this._rollingFrameTime.isSaturated()}get isEnabled(){return this._enabled}sampleFrame(e=this.now()){if(this._enabled){if(this._frameCountInLastSecond++,this._lastSecondTimeMs!=null){if(this._lastSecondTimeMs<=e-PN){const n=e-this._lastSecondTimeMs;this._recFPSValueLastSecond=Math.round(this._frameCountInLastSecond/n*PN),this._lastSecondTimeMs=e,this._frameCountInLastSecond=0}}else this._lastSecondTimeMs=e;if(this._lastFrameTimeMs!=null){const n=e-this._lastFrameTimeMs;this._rollingFrameTime.addFrameTime(n),this._rollingFrameTime.calcAverageFrameTime()}}}endFrame(e){this.sampleFrame(e),this._lastFrameTimeMs=e}now(){return performance&&performance.now?performance.now():Date.now()}enable(){this._enabled=!0}disable(){this._enabled=!1,this._lastFrameTimeMs=null}reset(){this._lastFrameTimeMs=null,this._rollingFrameTime.reset()}};T(e9e,"PerformanceMonitor");let GCt=e9e;const t9e=class{constructor(e){q(this,"averageFrameTime",Koe),q(this,"variance",0),q(this,"_samples",[]),q(this,"_sampleCount",0),q(this,"_pos",0),q(this,"_m2",0),this._samples=new Array(e),this.reset()}calcAverageFrameTime(){const e=this.history(0);let n;if(this.isSaturated()){const o=this._samples[this._pos];n=o-this.averageFrameTime,this._m2-=n*(o-this.averageFrameTime)}else this._sampleCount++;const r=Math.min(...this._samples),i=Math.min(...this._samples),a=this._samples.filter(o=>o!==i&&o!==r);this.averageFrameTime=a.reduce((o,s)=>o+s,0)/a.length,n=e-this.averageFrameTime,this._m2+=n*(e-this.averageFrameTime),this.variance=this._m2/(this._sampleCount-1)}addFrameTime(e){this._samples[this._pos]=e,this._pos=++this._pos%this._samples.length}history(e){if(e>=this._sampleCount||e>=this._samples.length)return 0;const n=this._wrapPosition(this._pos-1);return this._samples[this._wrapPosition(n-e)]}isSaturated(){return this._sampleCount>=this._samples.length}reset(){this.averageFrameTime=Koe,this.variance=0,this._sampleCount=0,this._pos=0,this._m2=0}_wrapPosition(e){const n=this._samples.length;return(e%n+n)%n}};T(t9e,"RollingAverage");let QCt=t9e;const U4={strokeWidth:1.5,stroke:"rgba(0, 0, 0, 0)",strokeActive:"rgba(0, 0, 0, 1)",fill:"rgba(0, 0, 0, 0.2)"};function $5(t){const e=t.getScene(),n=t.getViewportByCoord(e),r=0,i=0;if(!n)return{scrollX:r,scrollY:i};const a=n.transScroll2ViewportScrollValue(n.scrollX,n.scrollY);return{scrollX:a.x,scrollY:a.y}}T($5,"getCurrentScrollXY");const vu=90;function Qm(t){const{a:e=0,v:n=at.FALSE}=t||{a:0,v:at.FALSE};let r=0,i=e;return n===at.TRUE&&(r=vu,i=vu),{centerAngle:r,vertexAngle:i}}T(Qm,"convertTextRotation");function LT(t,e,n,r){const i=uc(e),a=n.clone().rotateByPoint(i,t),o=r.clone().rotateByPoint(i,t),s=a.clone();return s.rotateByPoint(uc(-e),o),s}T(LT,"offsetRotationAxis");function n9e(t,e,n){let r=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER;n.forEach(u=>{const{left:c=0,top:d=0,width:h=0,height:f=0}=u;r=Math.min(r,c),i=Math.min(i,d),a=Math.max(a,c+h),o=Math.max(o,d+f)});const s=a-r,l=o-i;return{left:r+t,top:i+e,width:s,height:l,angle:0,scaleX:1,scaleY:1}}T(n9e,"getGroupState");function r9e(t,e,n,r){const{left:i=0,top:a=0,width:o=0,height:s=0,angle:l=0}=t,{left:u=0,top:c=0,angle:d=0}=e,h=u+n/2,f=c+r/2,m=i+u,g=a+c,p=m+o/2,v=g+s/2,_=LT(new cn(h,f),d,new cn(m,g),new cn(p,v));return{left:_.x,top:_.y,angle:d+l}}T(r9e,"transformObjectOutOfGroup");function i9e(t){const e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,a=window.pageXOffset||r.scrollLeft||n.scrollLeft,o=r.clientTop||n.clientTop,s=r.clientLeft||n.clientLeft,l=e.top+i-o,u=e.left+a-s;return{top:l,left:u}}T(i9e,"getOffsetRectForDom");const a9e=class{constructor(e){q(this,"__mode","rendering"),q(this,"_system"),q(this,"_browser"),q(this,"canvas"),q(this,"_context"),q(this,"_systemType"),q(this,"_browserType"),this._context=e,this.canvas=e.canvas}isContextLost(){return this._context.isContextLost()}get globalAlpha(){return this._context.globalAlpha}set globalAlpha(e){this._context.globalAlpha=e}get globalCompositeOperation(){return this._context.globalCompositeOperation}set globalCompositeOperation(e){this._context.globalCompositeOperation=e}get fillStyle(){return this._context.fillStyle}set fillStyle(e){this._context.fillStyle=e}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){this._context.strokeStyle=e}get filter(){return this._context.filter}set filter(e){this._context.filter=e}get imageSmoothingEnabled(){return this._context.imageSmoothingEnabled}set imageSmoothingEnabled(e){this._context.imageSmoothingEnabled=e}get imageSmoothingQuality(){return this._context.imageSmoothingQuality}set imageSmoothingQuality(e){this._context.imageSmoothingQuality=e}get lineCap(){return this._context.lineCap}set lineCap(e){this._context.lineCap=e}get lineDashOffset(){return this._context.lineDashOffset}set lineDashOffset(e){this._context.lineDashOffset=e}get lineJoin(){return this._context.lineJoin}set lineJoin(e){this._context.lineJoin=e}get lineWidth(){return this._context.lineWidth}set lineWidth(e){this._context.lineWidth=e}setLineWidthByPrecision(e){const{scaleX:n,scaleY:r}=this._getScale();this._context.lineWidth=e/Math.max(n,r)}get miterLimit(){return this._context.miterLimit}set miterLimit(e){this._context.miterLimit=e}get shadowBlur(){return this._context.shadowBlur}set shadowBlur(e){this._context.shadowBlur=e}get shadowColor(){return this._context.shadowColor}set shadowColor(e){this._context.shadowColor=e}get shadowOffsetX(){return this._context.shadowOffsetX}set shadowOffsetX(e){this._context.shadowOffsetX=e}get shadowOffsetY(){return this._context.shadowOffsetY}set shadowOffsetY(e){this._context.shadowOffsetY=e}get direction(){return this._context.direction}set direction(e){this._context.direction=e}get font(){return this._context.font}set font(e){this._context.font=e}get fontKerning(){return this._context.fontKerning}set fontKerning(e){this._context.fontKerning=e}get fontStretch(){return this._context.fontStretch}set fontStretch(e){this._context.fontStretch=e}get fontVariantCaps(){return this._context.fontVariantCaps}set fontVariantCaps(e){this._context.fontVariantCaps=e}get letterSpacing(){return this._context.letterSpacing}set letterSpacing(e){this._context.letterSpacing=e}get textRendering(){return this._context.textRendering}set textRendering(e){this._context.textRendering=e}get wordSpacing(){return this._context.wordSpacing}set wordSpacing(e){this._context.wordSpacing=e}get textAlign(){return this._context.textAlign}set textAlign(e){this._context.textAlign=e}get textBaseline(){return this._context.textBaseline}set textBaseline(e){this._context.textBaseline=e}_getScale(){const e=this.getTransform();return{scaleX:e.a,scaleY:e.d}}getScale(){return this._getScale()}getContextAttributes(){return this._context.getContextAttributes()}isPointInStroke(...e){return this._context.isPointInStroke(...e)}createConicGradient(e,n,r){return this._context.createConicGradient(e,n,r)}roundRect(e,n,r,i,a){this._context.roundRect(e,n,r,i,a)}roundRectByPrecision(e,n,r,i,a){const{scaleX:o,scaleY:s}=this._getScale();e=Rr(e,o),n=Rr(n,s),r=Rr(r,o),i=Rr(i,s),this.roundRect(e,n,r,i,a)}getTransform(){return this._context.getTransform()}resetTransform(){this._context.resetTransform()}drawFocusIfNeeded(...e){return this._context.drawFocusIfNeeded(...e)}reset(){this._context.reset()}arc(e,n,r,i,a,o){this._context.arc(e,n,Math.max(0,r),i,a,o)}arcByPrecision(e,n,r,i,a,o){const{scaleX:s,scaleY:l}=this._getScale();e=Rr(e,s),n=Rr(n,l),this.arc(e,n,r,i,a,o)}arcTo(e,n,r,i,a){this._context.arcTo(e,n,r,i,a)}arcToByPrecision(e,n,r,i,a){const{scaleX:o,scaleY:s}=this._getScale();e=Rr(e,o),n=Rr(n,s),r=Rr(r,o),i=Rr(i,s),this.arcTo(e,n,r,i,a)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,r,i,a,o){this._context.bezierCurveTo(e,n,r,i,a,o)}bezierCurveToByPrecision(e,n,r,i,a,o){const{scaleX:s,scaleY:l}=this._getScale();a=Rr(a,s),o=Rr(o,l),e=Rr(e,s),n=Rr(n,l),r=Rr(r,s),i=Rr(i,l),this.bezierCurveTo(e,n,r,i,a,o)}clearRect(e,n,r,i){this._context.clearRect(e,n,r,i)}clearRectByPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();e=Rr(e,a),n=Rr(n,o),r=Rr(r,a),i=Rr(i,o),this.clearRect(e,n,r,i)}clip(...e){this._context.clip(...e)}closePath(){this._context.closePath()}getSystemType(){return this._systemType||(this._systemType=Ie.getSystemType()),this._systemType}getBrowserType(){return this._browserType||(this._browserType=Ie.getBrowserType()),this._browserType}closePathByEnv(){const e=this.getSystemType()==="Mac",n=this.getBrowserType()==="Chrome";e&&n||this._context.closePath()}createImageData(...e){if(e.length===0)throw new Error("arguments is zero");return e.length===1?this._context.createImageData(e[0]):e.length===2?this._context.createImageData(e[0],e[1]):this._context.createImageData(e[0],e[1],e[1])}createLinearGradient(e,n,r,i){return this._context.createLinearGradient(e,n,r,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,r,i,a,o){return this._context.createRadialGradient(e,n,r,i,a,o)}drawImage(...e){const n=e,r=this._context;n.length===3?r.drawImage(e[0],e[1],e[2]):n.length===5?r.drawImage(e[0],e[1],e[2],e[3],e[4]):n.length===9&&r.drawImage(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}ellipse(e,n,r,i,a,o,s,l){this._context.ellipse(e,n,r,i,a,o,s,l)}isPointInPath(...e){return this._context.isPointInPath(...e)}fill(...e){this._context.fill(...e)}fillRect(e,n,r,i){this._context.fillRect(e,n,r,i)}fillRectByPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();e=Rr(e,a),n=Rr(n,o),r=Rr(r,a),i=Rr(i,o),this.fillRect(e,n,r,i)}strokeRect(e,n,r,i){this._context.strokeRect(e,n,r,i)}strokeRectPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();e=Rr(e,a),n=Rr(n,o),r=Rr(r,a),i=Rr(i,o),this.strokeRect(e,n,r,i)}fillText(e,n,r,i){i?this._context.fillText(e,n,r,i):this._context.fillText(e,n,r)}fillTextPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();n=Rr(n,a),r=Rr(r,o),i?(i=Rr(i,a),this._context.fillText(e,n,r,i)):this._context.fillText(e,n,r)}measureText(e){return this._context.measureText(e)}getImageData(e,n,r,i){return this._context.getImageData(e,n,r,i)}lineTo(e,n){this._context.lineTo(e,n)}lineToByPrecision(e,n){const{scaleX:r,scaleY:i}=this._getScale();e=Rr(e,r),n=Rr(n,i),this.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}moveToByPrecision(e,n){const{scaleX:r,scaleY:i}=this._getScale();e=Rr(e,r),n=Rr(n,i),this.moveTo(e,n)}rect(e,n,r,i){this._context.rect(e,n,r,i)}rectByPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();e=Rr(e,a),n=Rr(n,o),r=Rr(r,a),i=Rr(i,o),this.rect(e,n,r,i)}putImageData(e,n,r){this._context.putImageData(e,n,r)}quadraticCurveTo(e,n,r,i){this._context.quadraticCurveTo(e,n,r,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(...e){this._context.setTransform(...e)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,r,i){this._context.strokeText(e,n,r,i)}strokeTextByPrecision(e,n,r,i){const{scaleX:a,scaleY:o}=this._getScale();n=Rr(n,a),r=Rr(r,o),i&&(i=Rr(i,a)),this.strokeText(e,n,r,i)}transform(e,n,r,i,a,o){this._context.transform(e,n,r,i,a,o)}translate(e,n){this._context.translate(e,n)}translateWithPrecision(e,n){const{scaleX:r,scaleY:i}=this._getScale();e=Rr(e,r),n=Rr(n,i),this._context.translate(e,n)}translateWithPrecisionRatio(e,n){const{scaleX:r,scaleY:i}=this._getScale();this._context.translate(e/r,n/i)}clearRectForTexture(e,n,r,i){this.clearRectByPrecision(e,n,r,i)}setGlobalCompositeOperation(e){this._context.globalCompositeOperation=e}};T(a9e,"UniverRenderingContext2D");let o9e=a9e;const KCt=class{};T(KCt,"UniverRenderingContextWebGL");const ZCt=class{};T(ZCt,"UniverRenderingContextWebGPU");const s9e=class extends o9e{};T(s9e,"UniverRenderingContext");let JCt=s9e;const l9e=class extends o9e{constructor(){super(...arguments),q(this,"__mode","printing")}__getScale(){const e=this.getTransform();return{scaleX:e.a,scaleY:e.d}}clearRect(e,n,r,i){const{scaleX:a,scaleY:o}=this.__getScale();e=Rr(e,a),n=Rr(n,o),r=Rr(r,a),i=Rr(i,o),this._context.save(),this._context.fillStyle=pu([255,255,255]),this._context.fillRect(e,n,r,i),this._context.restore()}clearRectForTexture(e,n,r,i){}setGlobalCompositeOperation(e){}};T(l9e,"UniverPrintingContext");let eSt=l9e;var u9e=(t=>(t[t.Rendering=0]="Rendering",t[t.Printing=1]="Printing",t))(u9e||{});const c9e=class{constructor(e){q(this,"isCache",!1),q(this,"_pixelRatio",1),q(this,"_canvasEle"),q(this,"_context"),q(this,"_width",0),q(this,"_height",0),e=e||{},this._canvasEle=T7e(),this._canvasEle.style.padding="0",this._canvasEle.style.margin="0",this._canvasEle.style.border="0",this._canvasEle.style.background="transparent",this._canvasEle.style.position="absolute",this._canvasEle.style.top="0",this._canvasEle.style.left="0",this._canvasEle.style.zIndex="8",this._canvasEle.className="univer-render-canvas",this._canvasEle.tabIndex=1,this._canvasEle.style.touchAction="none",this._canvasEle.style.outline="0";const n=this._canvasEle.getContext("2d");if(n==null)throw new Error("context is not support");e.mode===1?this._context=new eSt(n):this._context=new JCt(n),this.setSize(e.width,e.height,e.pixelRatio)}getCanvasEle(){return this._canvasEle}getContext(){return this._context}getPixelRatio(){return this._pixelRatio}getWidth(){return this._width}getHeight(){return this._height}setSize(e,n,r){var i;this._pixelRatio=r||zZ();const a=this.getCanvasEle();a&&e!==void 0&&(a.width=e*this._pixelRatio,this._width=a.width/this._pixelRatio,a.style.width=`${this._width}px`),a&&n!==void 0&&(a.height=n*this._pixelRatio,this._height=a.height/this._pixelRatio,a.style.height=`${this._height}px`),(i=this.getContext())==null||i.setTransform(this._pixelRatio,0,0,this._pixelRatio,0,0)}setPixelRatio(e){this._width===0||this._height===0||(e<1&&(e=1),this.setSize(this._width,this._height,e))}dispose(){var e;this.clear(),(e=this._canvasEle)==null||e.remove(),this._canvasEle=null,this._context=null}clear(){this.getContext().clearRect(0,0,this._width*this._pixelRatio,this._height*this._pixelRatio)}toDataURL(e,n){try{return this.getCanvasEle().toDataURL(e,n)}catch{try{return this.getCanvasEle().toDataURL()}catch(r){const{message:i}=r;return console.error(`Unable to get data URL. ${i} For more info read https://universheet.net/docs/Canvas.html.`),""}}}};T(c9e,"Canvas");let mS=c9e;const tSt=class extends mS{constructor(e={width:0,height:0}){super(e),this.setSize(e.width,e.height)}};T(tSt,"SceneCanvas");const nSt=class extends mS{constructor(e={width:0,height:0}){super(e),q(this,"hitCanvas",!0),this.setSize(e.width,e.height)}};T(nSt,"HitCanvas");const d9e=class extends A0{constructor(){super(...arguments),q(this,"_extensions",new Map)}get extensions(){return this._extensions}register(...e){const n=new Gi;for(const r of e)r.parent=this,this._extensions.set(r.uKey,r),n.add($t(()=>{this._extensions.delete(r.uKey),r.parent=null}));return this.disposeWithMe(n),n}getExtensionsByOrder(){const e=Array.from(this._extensions.values());return e.sort(Ol),e}getExtensionByKey(e){return this._extensions.get(e)}draw(e,n){}dispose(){super.dispose();for(const e of this._extensions.values())e.dispose();this._extensions.clear()}};T(d9e,"RenderComponent");let h9e=d9e;const f9e=class{constructor(){q(this,"uKey",""),q(this,"type"),q(this,"Z_INDEX",0),q(this,"parent"),q(this,"translateX",0),q(this,"translateY",0),q(this,"extensionOffset",{})}get zIndex(){return this.Z_INDEX}draw(e,n,r,i,a){}clearCache(){}_getScale(e){return jZ(e)}dispose(){this.extensionOffset={},this.parent=null}};T(f9e,"ComponentExtension");let m9e=f9e;const U7=WP.create(),g9e=WP.create(),p9e=WP.create(),gS=WP.create(),v9e=class extends h9e{constructor(e,n){super(e),this._skeleton=n}getSkeleton(){return this._skeleton}updateSkeleton(e){this._skeleton=e}render(e,n){if(!this.visible)return this.makeDirty(!1),this;e.save(),this._draw(e,n),e.restore()}getParentScale(){let{scaleX:e=1,scaleY:n=1}=this.parent;return this.parent.classType===ar.SCENE_VIEWER&&(e=this.parent.ancestorScaleX||1,n=this.parent.ancestorScaleY||1),{scaleX:e,scaleY:n}}getScrollXYByRelativeCoords(e){return{x:0,y:0}}dispose(){super.dispose(),this._skeleton=null}};T(v9e,"SheetComponent");let _9e=v9e;const C9e=class extends _9e{_draw(e,n){this.draw(e,n)}};T(C9e,"SpreadsheetHeader");let S9e=C9e;const b9e=class extends S9e{constructor(e,n){super(e,n),q(this,"_columnHeaderLayoutExtension"),this._initialDefaultExtension(),this.makeDirty(!0)}getDocuments(){throw new Error("Method not implemented.")}getNoMergeCellPositionByIndex(e,n){throw new Error("Method not implemented.")}getSelectionBounding(e,n,r,i){throw new Error("Method not implemented.")}get columnHeaderLayoutExtension(){return this._columnHeaderLayoutExtension}draw(e,n){const r=this.getSkeleton();if(!r)return;const i=this.getParentScale();r.calculateSegment(n);const a=r.rowColumnSegment;if(!a||a.startColumn===-1&&a.endColumn===-1)return;const{rowHeaderWidth:o}=r;e.translateWithPrecision(o,0);const s=this.getExtensionsByOrder();for(const l of s)l.draw(e,i,r)}isHit(e){const n=this.getInverseCoord(e),r=this.getSkeleton();if(!r)return!1;const{rowHeaderWidth:i,columnHeaderHeight:a}=r;return n.x>i&&n.y>=0&&n.y<=a}_initialDefaultExtension(){p9e.getData().forEach(e=>{this.register(e)}),this._columnHeaderLayoutExtension=this.getExtensionByKey("DefaultColumnHeaderLayoutExtension")}setCustomHeader(e){this.makeDirty(!0),this._columnHeaderLayoutExtension.configHeaderColumn(e)}};T(b9e,"SpreadsheetColumnHeader");let rSt=b9e;const rW="sheet-ext-",y9e=class extends m9e{constructor(){super(...arguments),q(this,"type",0)}getCellByIndex(e,n,r,i,a){return k7e(e,n,r,i,a)}isRenderDiffRangesByCell(e,n){if(n==null||n.length===0)return!0;for(const r of n){const{startRow:i,startColumn:a,endRow:o,endColumn:s}=r;if(ft.intersects(e,{startRow:i,endRow:o,startColumn:a,endColumn:s}))return!0}return!1}isRenderDiffRangesByColumn(e,n,r){if(r==null||r.length===0)return!0;for(const i of r){const{startColumn:a,endColumn:o}=i;if(ft.intersects({startRow:0,endRow:0,startColumn:e,endColumn:n},{startRow:0,endRow:0,startColumn:a,endColumn:o}))return!0}return!1}isRenderDiffRangesByRow(e,n,r){if(r==null||r.length===0)return!0;for(const i of r){const{startRow:a,endRow:o}=i;if(ft.intersects({startRow:e,endRow:n,startColumn:0,endColumn:0},{startRow:a,endRow:o,startColumn:0,endColumn:0}))return!0}return!1}isRowInRanges(e,n,r){if(r==null||r.length===0)return!0;for(const i of r){const{startRow:a,endRow:o}=i;if(e>=a&&e<=o||n>=a&&n<=o||ft.intersects({startRow:e,endRow:n,startColumn:0,endColumn:0},{startRow:a,endRow:o,startColumn:0,endColumn:0}))return!0}return!1}};T(y9e,"SheetExtension");let Jf=y9e;const iSt="DefaultBackgroundExtension",aSt=21,oSt=21;var MN;let sSt=(MN=class extends Jf{constructor(){super(...arguments),q(this,"uKey",iSt),q(this,"Z_INDEX",aSt),q(this,"PRINTING_Z_INDEX",oSt)}get zIndex(){var t;return(t=this.parent)!=null&&t.isPrinting?this.PRINTING_Z_INDEX:this.Z_INDEX}draw(t,e,n,r,{viewRanges:i,checkOutOfViewBound:a}){const{stylesCache:o,worksheet:s,rowHeightAccumulation:l,columnTotalWidth:u,columnWidthAccumulation:c,rowTotalHeight:d}=n,{background:h,backgroundPositions:f}=o;if(!s||!h||!l||!c||u===void 0||d===void 0)return;t.save();const{scaleX:m,scaleY:g}=t.getScale(),p=T(v=>{const _=h[v];t.fillStyle=v||pu([255,255,255]);const C=new Path2D;_.forValue((S,b)=>{if(!a&&!s_(i,S,b))return!0;const y=f==null?void 0:f.getValue(S,b);if(y==null)return!0;let{startY:A,endY:w,startX:P,endX:M}=y;const{isMerged:L,isMergedMainCell:k,mergeInfo:O}=y,$=r&&r.length>0?r:i,B=$Z([...$],[O]);if(!s_(B,S,b)||L)return!0;{const H=n.worksheet.getRowVisible(S),W=n.worksheet.getColVisible(b);if(!H||!W)return!0}k&&(A=O.startY,w=O.endY,P=O.startX,M=O.endX);const V=Rr(P,m),X=Rr(A,g),z=Rr(M,m),F=Rr(w,g);C.rect(V,X,z-V,F-X)}),t.fill(C)},"renderBGByCell");Object.keys(h).forEach(p),t.restore()}},T(MN,"Background"),MN);U7.add(sSt);const lSt="DefaultBorderExtension",uSt=50;var TN;let cSt=(TN=class extends Jf{constructor(){super(...arguments),q(this,"uKey",lSt),q(this,"Z_INDEX",uSt)}draw(t,e,n,r){const{stylesCache:i,overflowCache:a,worksheet:o,rowHeightAccumulation:s,columnTotalWidth:l,columnWidthAccumulation:u,rowTotalHeight:c}=n;if(!o||!s||!u||l===void 0||c===void 0)return;t.save();let d,h;t.translateWithPrecisionRatio(Lo,Lo);const f=this._getScale(t.getScale()),{border:m}=i;m==null||m.forValue((g,p,v)=>{if(!v)return!0;const _=n.getCellByIndexWithNoHeader(g,p),{startY:C,endY:S,startX:b,endX:y}=_,{isMerged:A,isMergedMainCell:w,mergeInfo:P}=_;if(!A){const M=n.worksheet.getRowVisible(g),L=n.worksheet.getColVisible(p);if(!M||!L)return!0}if(!this.isRenderDiffRangesByRow(P.startRow,P.endRow,r))return!0;for(const M in v){const{type:L,style:k,color:O}=v[M];if(k===Un.NONE)continue;let $=C,B=S,V=b,X=y;if(L!==wr.TOP&&L!==wr.BOTTOM&&L!==wr.LEFT&&L!==wr.RIGHT){if(A)return!0;w&&($=P.startY,B=P.endY,V=P.startX,X=P.endX)}const z=YZ(k);k!==d&&(qZ(t,k),t.setLineWidthByPrecision(z),d=k),O!==h&&(t.strokeStyle=O||F4,h=O),G7e(t,L,{startX:V,startY:$,endX:X,endY:B}),!this._getOverflowExclusion(a,L,g,p)&&bg(t,L,(z-1)/2/f,{startX:V,startY:$,endX:X,endY:B})}}),t.closePath(),t.restore()}_getOverflowExclusion(t,e,n,r){let i=!1;return e===wr.TOP||e===wr.BOTTOM||t==null||t.forRow((a,o)=>{if(a!==n)return!0;o.forEach(s=>{const l=t.getValue(a,s),{startColumn:u,endColumn:c}=l;if(e===wr.LEFT&&r>u&&r<=c||e===wr.RIGHT&&r>=u&&r<c)return i=!0,!1})}),i}},T(TN,"Border"),TN);U7.add(cSt);const dSt="DefaultColumnHeaderLayoutExtension",y2={fontSize:13,fontFamily:V7,fontColor:"#000000",backgroundColor:pu([248,249,250]),borderColor:pu([217,217,217]),textAlign:"center",textBaseline:"middle"},E9e=class extends Jf{constructor(e){super(),q(this,"uKey",dSt),q(this,"Z_INDEX",10),q(this,"columnsCfg",[]),q(this,"headerStyle",{fontSize:y2.fontSize,fontFamily:y2.fontFamily,fontColor:y2.fontColor,backgroundColor:y2.backgroundColor,borderColor:y2.borderColor,textAlign:y2.textAlign,textBaseline:y2.textBaseline}),e&&this.configHeaderColumn(e)}configHeaderColumn(e){this.columnsCfg=e.columnsCfg||[],this.headerStyle={...this.headerStyle,...e.headerStyle}}getCfgOfCurrentColumn(e){let n,r;const i=this.columnsCfg||[];i[e]?(typeof i[e]=="string"&&(i[e]={text:i[e]}),r=i[e],n={...this.headerStyle,...r}):n={...this.headerStyle,text:tde(e)};const a=Object.keys(r||{}).length>1;return[n,a]}setStyleToCtx(e,n){n.textAlign&&(e.textAlign=n.textAlign),n.textBaseline&&(e.textBaseline=n.textBaseline),n.fontColor&&(e.fillStyle=n.fontColor),n.borderColor&&(e.strokeStyle=n.borderColor),n.fontSize&&(e.font=`${n.fontSize}px ${V7}`)}draw(e,n,r){const{rowColumnSegment:i,columnHeaderHeight:a=0}=r,{startColumn:o,endColumn:s}=i;if(!r||a===0)return;const{rowHeightAccumulation:l,columnTotalWidth:u,columnWidthAccumulation:c,rowTotalHeight:d}=r;if(!l||!c||u===void 0||d===void 0)return;const h=this._getScale(n);this.setStyleToCtx(e,this.headerStyle),e.save(),e.fillStyle=this.headerStyle.backgroundColor,e.fillRectByPrecision(0,0,u,a),e.restore(),e.setLineWidthByPrecision(1),e.translateWithPrecisionRatio(Lo,Lo);let f=0;for(let g=o-1;g<=s;g++){if(g<0||g>c.length-1)continue;const p=c[g];if(f===p)continue;const v={left:f,top:0,right:p,width:p-f,height:a},[_,C]=this.getCfgOfCurrentColumn(g);C&&_.backgroundColor&&(e.save(),e.fillStyle=_.backgroundColor,e.fillRectByPrecision(v.left,v.top,v.width,v.height),e.restore()),e.beginPath(),e.moveToByPrecision(v.right,0),e.lineToByPrecision(v.right,v.height),e.stroke();const S=(()=>{switch(_.textAlign){case"center":return v.left+(v.right-v.left)/2;case"right":return v.right-X6;case"left":return v.left+X6;default:return v.left+(v.right-v.left)/2}})(),b=v.height/2+X6;C&&(e.save(),e.beginPath(),this.setStyleToCtx(e,_),e.rectByPrecision(v.left,v.top,v.width,v.height),e.clip()),e.fillText(_.text,S,b),C&&e.restore(),f=p}const m=a-.5/h;e.beginPath(),e.moveToByPrecision(0,m),e.lineToByPrecision(u,m),e.stroke()}};T(E9e,"ColumnHeaderLayout");let hSt=E9e;p9e.add(new hSt);var fSt=Object.defineProperty,mSt=Object.getOwnPropertyDescriptor,gSt=T((t,e,n,r)=>{for(var i=r>1?void 0:r?mSt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fSt(e,n,i),i},"__decorateClass$4"),pSt=T((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),LN;let CD=(LN=class extends et{constructor(t){super(),q(this,"_fontLocale"),q(this,"_dirty",!0),this._localService=t,this._localeInitial()}get dirty(){return this._dirty}getFontLocale(){return this._fontLocale}makeDirty(t){this._dirty=t}dispose(){super.dispose(),this._fontLocale=null}_localeInitial(){}},T(LN,"Skeleton"),LN);CD=gSt([pSt(0,se(sn))],CD);const R9e=class{constructor(){q(this,"_translateX",0),q(this,"_translateY",0),q(this,"_translateSaveList",[])}get x(){return this._translateX}get y(){return this._translateY}reset(){this.translateBy(0,0),this._translateSaveList=[]}translateBy(e=0,n=0){this._translateX=e,this._translateY=n}translate(e=0,n=0){this._translateX+=e,this._translateY+=n}translateSave(){this._translateSaveList.push({x:this._translateX,y:this._translateY})}translateRestore(){const e=this._translateSaveList.pop();e&&(this._translateX=e.x,this._translateY=e.y)}translatePagePadding(e){const{marginTop:n=0,marginBottom:r=0,marginLeft:i=0,marginRight:a=0}=e;this.translate(i,n)}restorePagePadding(e){const{marginTop:n=0,marginBottom:r=0,marginLeft:i=0,marginRight:a=0}=e;this.translate(-i,-n)}translatePage(e,n=cc.VERTICAL,r=0,i=0,a=0,o=0){const{pageWidth:s,pageHeight:l}=e;let u=0,c=0;return n===cc.VERTICAL?u+=l+i:n===cc.HORIZONTAL&&(c+=s+r),this.translate(c,u),{x:c,y:u}}translateSection(e){const{top:n=0}=e;return this.translate(0,n),{x:0,y:n}}translateColumn(e){const{left:n}=e;return this.translate(n,0),{x:n,y:0}}translateLine(e,n=!1,r=!1){const{top:i,marginBottom:a=0,marginTop:o=0,paddingTop:s=0,paddingBottom:l=0}=e,u=i+(n?o:0)+(r?s:0);return this.translate(0,u),{x:0,y:u}}translateDivide(e){const{left:n,paddingLeft:r}=e,i=n+r;return this.translate(i,0),{x:i,y:0}}translateGlyph(e){const{left:n}=e;return this.translate(n,0),{x:n,y:0}}};T(R9e,"Liquid");let pS=R9e;const A9e=class VE{constructor(e,n){q(this,"children",[]),q(this,"parent"),q(this,"startIndex",-1),q(this,"endIndex",-1),q(this,"blocks",[]),this.nodeType=e,this.content=n}static create(e,n){return new VE(e,n)}dispose(){this.children.forEach(e=>{e.dispose()}),this.parent=null,this.blocks=[]}getProps(){const{children:e,parent:n,startIndex:r,endIndex:i,nodeType:a,content:o}=this;return{children:e,parent:n,startIndex:r,endIndex:i,nodeType:a,content:o}}addBlocks(e){this.blocks=this.blocks.concat(e)}setIndexRange(e,n){this.startIndex=e,this.endIndex=n}insertText(e,n){this.content=WX(this.content||"",n-this.startIndex,e)}exclude(e){const{startIndex:n,endIndex:r}=this;return e<n||e>r}plus(e){this.startIndex+=e,this.endIndex+=e,this._addIndexForBlock(e)}selfPlus(e,n){this.endIndex+=e,n==null&&(n=this.startIndex),this._addIndexForBlock(e,n)}split(e){const{children:n,parent:r,startIndex:i,nodeType:a,content:o=""}=this.getProps();if(this.exclude(e))return;const s=0,l=e-i,u=l,c=o.slice(s,l),d=VE.create(a,c);d.parent=r,d.setIndexRange(s,l-1);const h=o.slice(u),f=VE.create(a,h);f.parent=r,f.setIndexRange(u,u+h.length-1);const m=[],g=[];for(const p of n){const{startIndex:v}=p;if(p.exclude(e))e<v?m.push(p):g.push(p);else{const _=p.split(e);if(_==null){m.push(p);continue}const{firstNode:C,lastNode:S}=_;m.push(C),m.push(S)}}return d.children=m,f.children=g,d._resetBlocks(),f._resetBlocks(),{firstNode:d,lastNode:f}}getPositionInParent(){var e;const n=(e=this.parent)==null?void 0:e.children.indexOf(this);return n??-1}remove(){this.children=[],this.parent!=null&&(this.parent.children.splice(this.getPositionInParent(),1),this.parent=null)}minus(e,n){const r=IC(this.startIndex,this.endIndex,e,n);if(r.length===0)return;const i=this.startIndex;this.startIndex=r[0],this.endIndex=r[1],this.content!=null&&(this.content=zX(this.content||"",e-i,n-i+1))}merge(e){const{startIndex:n,endIndex:r,children:i}=e;this.endIndex+=r-n+1,this.children.push(...i),this.content+=e.content||"",e.remove()}_addIndexForBlock(e,n=Number.NEGATIVE_INFINITY){for(let r=0,i=this.blocks.length;r<i;r++){const a=this.blocks[r];a>=n&&(this.blocks[r]=a+e)}}_resetBlocks(){if(this.nodeType===Co.PARAGRAPH&&this.content!=null&&this.content.length!==0){this.blocks=[];for(let e=0,n=this.content.length;e<n;e++)this.content[e]===wt.CUSTOM_BLOCK&&this.blocks.push(this.startIndex+e)}}};T(A9e,"DataStreamTreeNode");let $9=A9e;var Ya=(t=>(t.BODY="BODY",t.HEADER="HEADER",t.FOOTER="FOOTER",t))(Ya||{});function r6(t,e,n=Co.SECTION_BREAK){if(e.length===0)throw new Error("Missing `paragraphs` or `sectionBreaks` fields, or doesn't correspond to the location in `dataStream`.");for(const a of e)a.parent=t,t.children.push(a);const r=n===Co.SECTION_BREAK?0:1,i=t.children;t.setIndexRange(i[0].startIndex-r,i[i.length-1].endIndex+1)}T(r6,"batchParent");function SD(t){let e="";const n=t.length,r=[],i=[],a=[],o=[],s=[],l=[],u=[];for(let c=0;c<n;c++){const d=t[c];if(d===wt.PARAGRAPH){e+=wt.PARAGRAPH;const h=$9.create(Co.PARAGRAPH,e),f=o[o.length-1];f&&f.isFinished&&(r6(h,[f.table],Co.PARAGRAPH),o.pop()),h.setIndexRange(c-e.length+1,c),h.addBlocks(u),u.length=0,e="",l.length>0?a.push(h):i.push(h)}else if(d===wt.SECTION_BREAK){const h=$9.create(Co.SECTION_BREAK),f=l.length>0?a:i;r6(h,f);const m=f[f.length-1];if(m&&m.content&&(m.content+=wt.SECTION_BREAK),l.length>0){const g=l[l.length-1];r6(g,[h],Co.TABLE_CELL)}else r.push(h);f.length=0}else if(d===wt.TABLE_START){const h=$9.create(Co.TABLE);o.push({table:h,isFinished:!1})}else if(d===wt.TABLE_ROW_START){const h=$9.create(Co.TABLE_ROW);s.push(h)}else if(d===wt.TABLE_CELL_START){const h=$9.create(Co.TABLE_CELL);l.push(h)}else if(d===wt.TABLE_END){const h=o[o.length-1];h.isFinished=!0,e=""}else if(d===wt.TABLE_ROW_END){const h=s.pop(),f=o[o.length-1];r6(f.table,[h],Co.TABLE)}else if(d===wt.TABLE_CELL_END){const h=l.pop(),f=s[s.length-1];r6(f,[h],Co.TABLE_ROW)}else d===wt.CUSTOM_BLOCK&&u.push(c),e+=d}return r}T(SD,"parseDataStreamToTree");const w9e=class BE{constructor(e){q(this,"_interceptor",null),q(this,"children",[]),q(this,"_sectionBreakCurrentIndex",0),q(this,"_paragraphCurrentIndex",0),q(this,"_textRunCurrentIndex",0),q(this,"_customBlockCurrentIndex",0),q(this,"_tableBlockCurrentIndex",0),q(this,"_customRangeCurrentIndex",0),q(this,"_editArea","BODY"),q(this,"_editAreaChange$",new Pn(null)),q(this,"editAreaChange$",this._editAreaChange$.asObservable()),q(this,"headerTreeMap",new Map),q(this,"footerTreeMap",new Map),q(this,"_segmentViewModels$",new Pn([])),q(this,"segmentViewModels$",this._segmentViewModels$.asObservable()),this._documentDataModel=e,e.getBody()!=null&&(this.children=SD(e.getBody().dataStream),this._buildHeaderFooterViewModel())}registerCustomRangeInterceptor(e){return this._interceptor=e,$t(()=>this._interceptor=null)}dispose(){this.children.forEach(e=>{e.dispose()})}selfPlus(e,n){}getEditArea(){return this._editArea}setEditArea(e){e!==this._editArea&&(this._editArea=e,this._editAreaChange$.next(e))}getPositionInParent(){return 0}getLastIndex(){return this.children[this.children.length-1].endIndex}getBody(){return this._documentDataModel.getBody()}getSnapshot(){return this._documentDataModel.getSnapshot()}getDataModel(){return this._documentDataModel}getSelfOrHeaderFooterViewModel(e){return e==null?this:this.headerTreeMap.has(e)?this.headerTreeMap.get(e):this.footerTreeMap.has(e)?this.footerTreeMap.get(e):this}reset(e){this._documentDataModel=e,this.children=SD(e.getBody().dataStream),this._buildHeaderFooterViewModel()}insert(e,n=0){var r;const i=e.dataStream;let a=i.length;const o=this._getParagraphByIndex(this.children,n);if(o!=null)if(i[a-1]===wt.SECTION_BREAK){const s=new sh({body:e}),l=new BE(s);a-=1;const u=l.children;for(const f of u)this._forEachDown(f,m=>{m.plus(n)});const c=o.split(n);if(c==null)return;const{firstNode:d,lastNode:h}=c;(r=o.parent)==null||r.children.splice(o.getPositionInParent(),1,d,...u,h),this._forEachTop(o.parent,f=>{f.selfPlus(a,f.getPositionInParent());const m=f.children;let g=!1;for(const p of m)p===h&&(g=!0),g&&this._forEachDown(p,v=>{v.plus(a)})})}else a===1&&i[a-1]===wt.PARAGRAPH?this._insertParagraph(o,n):(o.insertText(i,n),o.selfPlus(a,n),this._forEachTop(o.parent,s=>{s.selfPlus(a,s.getPositionInParent());const l=s.children;let u=!1;for(const c of l)c.startIndex>n&&(u=!0),u&&this._forEachDown(c,d=>{d.plus(a)})}))}delete(e,n){const r=this.children;this._deleteTree(r,e,n)}getText(){const e=[];function n(r){r.content&&e.push(r.content),r.children.forEach(n)}return T(n,"traverseTreeNode"),this.children.forEach(r=>n(r)),e.join("")}resetCache(){if(this._sectionBreakCurrentIndex=0,this._paragraphCurrentIndex=0,this._textRunCurrentIndex=0,this._customBlockCurrentIndex=0,this._tableBlockCurrentIndex=0,this._customRangeCurrentIndex=0,this.headerTreeMap.size>0)for(const e of this.headerTreeMap.values())e.resetCache();if(this.footerTreeMap.size>0)for(const e of this.footerTreeMap.values())e.resetCache()}getSectionBreak(e){if(e==null)return;const n=this.getBody().sectionBreaks;if(n!=null)for(let r=this._sectionBreakCurrentIndex;r<n.length;r++){const i=n[r];if(i.startIndex===e)return this._sectionBreakCurrentIndex=r,i}}getParagraph(e,n=!1){const r=this.getBody().paragraphs;if(r!=null)for(let i=n?0:this._paragraphCurrentIndex;i<r.length;i++){const a=r[i];if(a.startIndex===e)return n||(this._paragraphCurrentIndex=i),a}}getTextRunRange(e=0,n){const r=this.getBody().textRuns;if(r==null)return[{st:e,ed:n}];const i=[];for(let s=this._textRunCurrentIndex,l=r.length;s<l;s++){const u=r[s];if(u.st>n){this._textRunCurrentIndex=s;break}else if(u.ed<e){this._textRunCurrentIndex=s;continue}else i.push({st:u.st<e?e:u.st,ed:u.ed>n?n:u.ed,sId:u.sId,ts:u.ts}),this._textRunCurrentIndex=s}const a=i[0]||{st:n+1};a.st>e&&i.push({st:e,ed:a.st-1});const o=i[i.length-1]||{ed:e-1};return o.ed<n&&i.push({st:o.ed+1,ed:n}),i}getTextRun(e){var n;const r=(n=this.getBody())==null?void 0:n.textRuns;if(r==null)return;const i=r[this._textRunCurrentIndex];if(i!=null){if(e>=i.st&&e<i.ed)return i;if(e<i.st)return}for(let a=this._textRunCurrentIndex,o=r.length;a<o;a++){const s=r[a];if(e>=s.st&&e<s.ed)return this._textRunCurrentIndex=a,s}}getCustomBlock(e){const n=this.getBody().customBlocks;if(n!=null)for(let r=this._customBlockCurrentIndex;r<n.length;r++){const i=n[r];if(i.startIndex===e)return this._customBlockCurrentIndex=r,i}}getCustomBlockWithoutSetCurrentIndex(e){const n=this.getBody().customBlocks;if(n!=null)for(let r=0;r<n.length;r++){const i=n[r];if(i.startIndex===e)return i}}getTable(e){var n;const r=(n=this.getBody())==null?void 0:n.tables,i=this.getSnapshot().tableSource;if(r==null||i==null)return;let a=null;for(let o=this._tableBlockCurrentIndex;o<r.length;o++){const s=r[o];if(s.startIndex===e){this._tableBlockCurrentIndex=o,a=s.tableId;break}}if(a!=null&&i[a]!=null)return i[a]}getCustomRangeRaw(e){const n=this.getBody().customRanges;if(n!=null)for(let r=0,i=n.length;r<i;r++){const a=n[r];if(e>=a.startIndex&&e<=a.endIndex)return a}}getCustomRange(e){return this._interceptor?this._interceptor.getCustomRange(e):this.getCustomRangeRaw(e)}getCustomDecorationRaw(e){const n=this.getBody().customDecorations;if(n!=null)for(let r=0,i=n.length;r<i;r++){const a=n[r];if(e>=a.startIndex&&e<=a.endIndex)return a}}getCustomDecoration(e){return this._interceptor?this._interceptor.getCustomDecoration(e):this.getCustomDecorationRaw(e)}_buildHeaderFooterViewModel(){const{headerModelMap:e,footerModelMap:n}=this._documentDataModel,r=[];for(const[i,a]of e)this.headerTreeMap.set(i,new BE(a)),r.push(this.headerTreeMap.get(i));for(const[i,a]of n)this.footerTreeMap.set(i,new BE(a)),r.push(this.footerTreeMap.get(i));this._segmentViewModels$.next(r)}_getParagraphByIndex(e,n){for(const r of e){const{children:i}=r;if(!r.exclude(n))return r.nodeType===Co.PARAGRAPH?r:this._getParagraphByIndex(i,n)}return null}_forEachTop(e,n){let r=e;for(;r;)n(r),r=r.parent;n(this)}_forEachDown(e,n){n(e);const r=e.children;for(e of r)this._forEachDown(e,n)}_deleteTree(e,n,r){const i=n,a=n+r-1;let o=null,s=e.length,l=0;for(;l<s;){const u=e[l],{startIndex:c,endIndex:d,children:h}=u;if(this._deleteTree(h,n,r),i===a&&a===d){if(u.nodeType===Co.PARAGRAPH){const f=this._getNextNode(u);if(f==null){l++;continue}u.minus(i,a),u.merge(f),s--}}else if(i<=c&&a>=d){u.remove(),s--;continue}else if(c<=i&&d>=a)u.minus(i,a);else if(a>c&&a<d){if(u.minus(c,a),o!=null){o.merge(u),o=null,s--;continue}}else i>c&&i<d?(u.minus(i,d),o=u):c>a&&u.plus(-r);l++}}_getNextNode(e){var n;const r=e.getPositionInParent(),i=(n=e.parent)==null?void 0:n.children;return i==null?void 0:i[r+1]}_insertParagraph(e,n=0){var r;const i=e.startIndex,a=e.endIndex,o=e.split(n);if(o==null)return;const{firstNode:s,lastNode:l}=o;s.content+=wt.PARAGRAPH,s.selfPlus(1),s.plus(i),this._forEachDown(l,u=>{u.plus(i+1)}),(r=e.parent)==null||r.children.splice(e.getPositionInParent(),1,s,l),this._forEachTop(e.parent,u=>{u.selfPlus(1,u.getPositionInParent());const c=u.children;let d=!1;for(const h of c)h!==l&&(h.startIndex>=a+1&&(d=!0),d&&this._forEachDown(h,f=>{f.plus(1)}))})}};T(w9e,"DocumentViewModel");let H4=w9e;var qs=(t=>(t.Normal="Normal",t.Mandatory="Mandatory",t.Hyphen="Hyphen",t.Link="Link",t))(qs||{});const D9e=class{constructor(e,n="Normal"){this.position=e,this.type=n}};T(D9e,"Break");let Km=D9e;function GZ(t){return[" "," "," "].includes(t)}T(GZ,"isSpace");function QZ(t){return GZ(t)||B4(t)||MT(t)||TT(t)||HZ(t)}T(QZ,"isJustifiable");function u_(t,e){return GZ(t)?{stretchability:[0,e/2],shrinkability:[0,e/3]}:MT(t)?{stretchability:[0,0],shrinkability:[0,e/2]}:TT(t)?{stretchability:[0,0],shrinkability:[e/2,0]}:HZ(t)?{stretchability:[0,0],shrinkability:[e/4,e/4]}:{stretchability:[0,0],shrinkability:[0,0]}}T(u_,"baseAdjustability");function I9e(t,e,n){return vS(Ql.WORD,t,e,n)}T(I9e,"createSkeletonWordGlyph");function Zm(t,e,n,r){return vS(Ql.LETTER,t,e,n,r)}T(Zm,"createSkeletonLetterGlyph");function iW(t,e){return vS(Ql.TAB,wt.TAB,t,e)}T(iW,"createSkeletonTabGlyph");function P9e(t){const e=vS(Ql.LETTER,"-",t);return e.count=0,e}T(P9e,"createHyphenDashGlyph");function aW(t,e=0,n=0,r=""){const{fontStyle:i,textStyle:a}=t,o=wt.CUSTOM_BLOCK;return{content:"",raw:o,ts:a,fontStyle:i,width:e,bBox:{width:0,ba:n,bd:0,aba:0,abd:0,sp:0,sbr:0,sbo:0,spr:0,spo:0},xOffset:0,left:0,isJustifiable:!1,adjustability:u_(o,0),glyphType:Ql.PLACEHOLDER,streamType:o,count:1,drawingId:r}}T(aW,"createSkeletonCustomBlockGlyph");function vS(t,e,n,r,i){const{fontStyle:a,textStyle:o,charSpace:s=1,gridType:l=Zo.LINES,snapToGrid:u=at.FALSE}=n,c=[wt.SECTION_BREAK,wt.TABLE_START,wt.TABLE_END,wt.TABLE_ROW_START,wt.TABLE_ROW_END,wt.TABLE_CELL_START,wt.TABLE_CELL_END,wt.CUSTOM_RANGE_START,wt.CUSTOM_RANGE_END,wt.COLUMN_BREAK,wt.PAGE_BREAK,wt.DOCS_END,wt.CUSTOM_BLOCK];let d=wt.LETTER;if(c.indexOf(e)>-1)return{content:"",raw:e,ts:o,fontStyle:a,width:0,bBox:{width:0,ba:0,bd:0,aba:0,abd:0,sp:0,sbr:0,sbo:0,spr:0,spo:0},xOffset:0,left:0,isJustifiable:!1,adjustability:u_(e,0),glyphType:Ql.PLACEHOLDER,streamType:e,count:1};e===wt.PARAGRAPH&&(d=wt.PARAGRAPH);let h=null,f=0;i&&i.boundingBox&&i.font?h=a_.getBBoxFromGlyphInfo(i,a):h=a_.getTextSize(e,a);const{width:m=0}=h;let g=r??m;if(oJ(l,u)&&(g=m+(hS(e)?s:s/2),l===Zo.SNAP_TO_CHARS&&(f=(g-m)/2)),i&&i.kerning!==0&&i.font){const p=ip(a.fontSize)/i.font.unitsPerEm,v=i.kerning*p;g+=v,f+=v}return{content:e,ts:o,fontStyle:a,width:g,bBox:h,xOffset:f,left:0,glyphType:t,streamType:d,isJustifiable:QZ(e),adjustability:u_(e,g),count:e.length,raw:e}}T(vS,"_createSkeletonWordOrLetter");function M9e(t,e,n){const{symbol:r,bulletAlign:i=wg.START,bulletType:a=!1}=e,{fontStyle:o}=t,s=a_.getTextSize(r,o),l=s.width,u=Math.ceil(l/n);let c=(u<2?2:u)*n,d=0;a&&(i===wg.CENTER?(d=-l/2,c-=d):i===wg.END&&(d=-l,c-=d));const h=T9e(t,s);return{content:r,ts:{...t.ts,st:{s:at.FALSE}},fontStyle:o,width:c,xOffset:0,bBox:h,left:d,isJustifiable:QZ(r),adjustability:u_(r,c),glyphType:Ql.LIST,streamType:wt.LETTER,count:0,raw:r}}T(M9e,"createSkeletonBulletGlyph");function xT(t,e=0){const n=t.length;let r;for(let i=0;i<n;i++){const a=t[i];a.left=r?r.left+r.width:e,r=a}}T(xT,"setGlyphGroupLeft");function W5(t,e,n=0){xT(e,n);for(const r of e)r.parent=t;t.glyphGroup.push(...e)}T(W5,"addGlyphToDivide");function T9e(t,e){const{ba:n,bd:r}=t.bBox,{ba:i,bd:a}=e;return n+r>i+a?t.bBox:e}T(T9e,"_getMaxBoundingBox");function KZ(t,e){t.width-=e,t.adjustability.shrinkability[1]-=e}T(KZ,"glyphShrinkRight");function ZZ(t,e){t.width-=e,t.xOffset-=e,t.adjustability.shrinkability[0]-=e}T(ZZ,"glyphShrinkLeft");function L9e(t,e,n,r,i=0,a=!1,o,s,l,u){var c;const{lineHeight:d=15.6,lineTop:h=0,contentHeight:f=0,paddingLeft:m=0,paddingRight:g=0,paddingTop:p=0,paddingBottom:v=0,marginTop:_=0,spaceBelowApply:C=0}=n,{skeTablesInParagraph:S}=o,b=(c=s.skeDrawings)!=null?c:new Map,y=l==null?void 0:l.skeDrawings,A=u==null?void 0:u.skeDrawings,w=U9e(e,t);if(w.lineIndex=i,w.paragraphStart=a,w.contentHeight=f,w.top=h,w.lineHeight=d,w.paddingTop=p,w.paddingBottom=v,w.marginTop=_,w.spaceBelowApply=C,a&&Array.isArray(S)&&S.length>0){const M=S[S.length-1].tableId;w.isBehindTable=!0,w.tableId=M}const P=new Map(Array.from(b).filter(([M,L])=>L.drawingOrigin.layoutType!==Sl.INLINE));w.divides=N9e(d,h,r,m,g,s,l,u,P,y,A);for(const M of w.divides)M.parent=w;return w}T(L9e,"createSkeletonLine");function x9e(t=15.6,e=0,n,r,i){let a=e;const o=n.skeDrawings,s=n.skeTables,l=r==null?void 0:r.skeDrawings,u=i==null?void 0:i.skeDrawings;return r&&l&&l.forEach(c=>{const d=c_(c,r,n,!0),h=UE(d,t,e);h&&(a=Math.max(a,h))}),i&&u&&u.forEach(c=>{const d=c_(c,i,n,!1),h=UE(d,t,e);h&&(a=Math.max(a,h))}),o==null||o.forEach(c=>{const d=UE(c,t,e);d&&(a=Math.max(a,d))}),s==null||s.forEach(c=>{const d=O9e(c,t,e);d&&(a=Math.max(a,d))}),a}T(x9e,"calculateLineTopByDrawings");function O9e(t,e,n){const{top:r,height:i}=t;if(!(r+i<n||r>e+n))return r+i}T(O9e,"_getLineTopWidthWrapNone");function UE(t,e,n){const{aTop:r,height:i,aLeft:a,width:o,angle:s=0,drawingOrigin:l}=t,{layoutType:u,distT:c=0,distB:d=0}=l;if(u!==Sl.WRAP_TOP_AND_BOTTOM)return;if(s===0){const m=r-c,g=c+i+d;return m+g<n||m>e+n?void 0:m+g}let{top:h=0,height:f=0}=_S(s,a,o,r,i);if(h-=c,f+=d,!(h+f<n||h>e+n))return h+f}T(UE,"_getLineTopWidthWrapTopBottom");function N9e(t,e,n,r,i,a,o,s,l,u,c){const d=[];return d.push({left:0,width:r},{left:n-i,width:i}),o&&u&&u.forEach(h=>{const f=c_(h,o,a,!0),m=HE(f,t,e,n);m&&d.push(m)}),s&&c&&c.forEach(h=>{const f=c_(h,s,a,!1),m=HE(f,t,e,n);m&&d.push(m)}),l==null||l.forEach(h=>{const f=HE(h,t,e,n);f&&d.push(f)}),B9e(n,d)}T(N9e,"_calculateDividesByDrawings");function z5(t,e){Object.assign(t,e)}T(z5,"updateDivideInfo");function k9e(t,e){t.marginBottom=e}T(k9e,"setLineMarginBottom");function oW(t,e,n,r,i){const{aTop:a,height:o,aLeft:s,width:l,angle:u=0,drawingOrigin:c}=t,{layoutType:d}=c;if(d===Sl.WRAP_NONE||d===Sl.INLINE)return!1;const{top:h=0,left:f=0,width:m=0,height:g=0}=_S(u,s,l,a,o);return!(h+g<n||h>e+n||f+m<r||f>r+i)}T(oW,"collisionDetection");function HE(t,e,n,r){const{aTop:i,height:a,aLeft:o,width:s,angle:l=0,drawingOrigin:u}=t,{layoutType:c}=u;if(c===Sl.WRAP_NONE||c===Sl.WRAP_TOP_AND_BOTTOM)return;if(c===Sl.WRAP_POLYGON){const{start:h=[0,0],lineTo:f}=u;if(!f)return;const m=[];m.push(new cn(h[0],h[1]));for(let g=0;g<f.length;g++){const p=f[g];m.push(new cn(p[0],p[1]))}if(l!==0){const g=new a1().rotate(l);for(let p=0;p<m.length;p++){const v=m[p];m[p]=g.applyPoint(v)}}return sW(m,n,e,r)}if(l===0)return lW(i,a,o,s,n,e,r,u);const d=_S(l,o,s,i,a);if(c===Sl.WRAP_SQUARE){const{left:h,width:f,top:m,height:g}=d;return lW(m,g,h,f,n,e,r,u)}return sW(d.points,n,e,r)}T(HE,"_calculateSplit");function _S(t,e,n,r,i){const a=e+n/2,o=r+i/2,s=new a1().translate(a,o).rotate(t).translate(-a,-o),l=new cn(e,r),u=new cn(e,r+i),c=new cn(e+n,r),d=new cn(e+n,r+i);return s.makeBoundingBoxFromPoints([l,u,c,d])}T(_S,"getBoundingBox");function c_(t,e,n,r=!0){const{aTop:i}=t;let a=i;return r?a=i+e.marginTop-n.marginTop:a=i+e.marginTop+n.pageHeight-n.marginBottom-n.marginTop,{...t,aTop:a}}T(c_,"translateHeaderFooterDrawingPosition");function sW(t,e,n,r){const i=new YCt(t),a=i.intersection([new cn(0,e),new cn(r,e)]),o=i.intersection([new cn(0,e+n),new cn(r,e+n)]);if(!a&&!o)return;const s=F9e([...t,...a||[],...o||[]]);return{left:s.min,width:s.max}}T(sW,"__getCrossPoint");function F9e(t,e=0){const n=[];for(let r=0;r<t.length;r++){const i=t[r];e===0?n.push(i.x):n.push(i.y)}return{max:Math.max(...n),min:Math.min(...n)}}T(F9e,"___getMaxAndMinAxis");function lW(t,e,n,r,i,a,o,s){const{layoutType:l,wrapText:u=o8.BOTH_SIDES,distL:c=0,distR:d=0,distT:h=0,distB:f=0}=s,m=t-(l===Sl.WRAP_SQUARE?h:0),g=e+(l===Sl.WRAP_SQUARE?f+h:0);if(m+g<=i||m>=a+i)return;let p=n-c,v=r+c+d;const _=V9e(u,p,v,o);return _===1?v=o-p:_===2&&(p=0,v=n+r+d),{left:p,width:v}}T(lW,"__getSplitWidthNoAngle");function V9e(t,e,n,r){let i=0;return t===o8.LEFT?i=1:t===o8.RIGHT?i=2:t===o8.LARGEST&&(e>r-e-n?i=1:i=2),i}T(V9e,"___getWrapTextRuler");function B9e(t,e){e.sort((a,o)=>a.left>o.left?1:-1);const n=[];let r=0;const i=e.length;for(let a=0;a<i;a++){const o=e[a],{left:s,width:l}=o;if(s>r){let u=s-r;u=u<t?u:t-r;const c=uW(r,u);n.push(c)}if(r=Math.max(s+l,r),a===i-1&&s+l<t){const u=uW(s+l,t-s-l);n.push(u)}}return n}T(B9e,"_calculateDivideByDrawings");function uW(t,e){return{glyphGroup:[],width:e,left:t,paddingLeft:0,isFull:!1,st:0,ed:0}}T(uW,"__getDivideSKe");function U9e(t,e){return{paragraphIndex:e,type:t,divides:[],lineHeight:0,contentHeight:0,top:0,asc:0,dsc:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,spaceBelowApply:0,divideLen:0,st:-1,ed:-1,isBehindTable:!1,tableId:"",lineIndex:0,paragraphStart:!1}}T(U9e,"_getLineSke");function H9e(t,e,n,r){if(r)if(r.has(t)){const i=r.get(t);i==null||i.elements.push(e)}else r.set(t,{elements:[e],paragraphIndex:t,top:n})}T(H9e,"createAndUpdateBlockAnchor");function JZ(t=[],e=Rv.NONE,n=0,r=0,i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY){const o=[];let s=0,l=0;if(t.length===0)o.push(jE(r,i,0,Rv.NONE));else for(let c=0;c<t.length;c++){const{width:d,paddingEnd:h}=t[c];l=h,s=d,o.push(jE(r,s,l,e)),r+=s+l,c===t.length-1&&(s=i!==Number.POSITIVE_INFINITY?i-s:d,l=0,o.push(jE(r,s,l,e)))}const u={columns:o,colCount:(t==null?void 0:t.length)||1,height:a,top:n,st:0,ed:0};return o.forEach(c=>{c.parent=u}),u}T(JZ,"createSkeletonSection");function eJ(t,e){t.isFull=e}T(eJ,"setColumnFullState");function jE(t,e,n,r){return{lines:[],left:t,width:e,height:0,spaceWidth:n,separator:r,st:0,ed:0,drawingLRIds:[],isFull:!1}}T(jE,"_getSkeletonColumn");function j9e(t,e,n,r,i){const{startIndex:a,endIndex:o,children:s}=r,l=n.getTable(a);if(l==null)throw new Error("Table not found");const u=tJ(a,o,l);let c=0,d=0;for(const g of s){const{children:p,startIndex:v,endIndex:_}=g,C=s.indexOf(g),S=W9e(v,_,C,u);u.rows.push(S);let b=0,y=0;for(const A of p){const w=p.indexOf(A),P=w5e(t,n,A,i,l,C,w),{marginTop:M=0,marginBottom:L=0}=P,k=P.height+M+L;P.left=b,b+=P.pageWidth,P.parent=S,S.cells.push(P),y=Math.max(y,k)}for(const A of S.cells)A.pageHeight=y;S.height=y,S.top=c,c+=y,d=Math.max(d,b)}u.width=d,u.height=c;const{pageWidth:h,marginLeft:f=0,marginRight:m=0}=e;return u.left=$9e(h-f-m,d,l.align,l.indent),u}T(j9e,"createTableSkeleton");function $9e(t,e,n,r={v:0}){switch(n){case s8.START:return r.v;case s8.END:return Math.max(0,t-e);case s8.CENTER:return Math.max(0,(t-e)/2)}}T($9e,"_getTableLeft");function tJ(t,e,n){return{rows:[],width:0,height:0,top:0,left:0,st:t,ed:e,tableId:n.tableId,tableSource:n}}T(tJ,"getNullTableSkeleton");function W9e(t,e,n,r){return{cells:[],index:n,height:0,top:0,st:t,ed:e,parent:r}}T(W9e,"_getNullTableRowSkeleton");function cW(t,e){return`${t}#-#${e}`}T(cW,"getTableSliceId");function bD(t){if(!t.includes("#-#"))return{tableId:t,sliceIndex:0};const[e,n]=t.split("#-#");return{tableId:e,sliceIndex:Number(n)}}T(bD,"getTableIdAndSliceIndex");function z9e(t,e,n,r,i,a,o=qs.Normal){if(a)if(i.bulletSkeleton){const{bulletSkeleton:s,paragraphStyle:l={}}=i,{gridType:u=Zo.LINES,charSpace:c=0,defaultTabStop:d=10.5}=r,{snapToGrid:h=at.TRUE}=l,f=w0(c,d,u,h),m=M9e(e[0],s,f),g=s.paragraphProperties||{};i.paragraphStyle=R5e(i.paragraphStyle,{...g,hanging:{v:m.width}}),j4(t,[m,...e],n,r,i,a,o)}else j4(t,e,n,r,i,a,o);else Fd(t,e,n,r,i,a,o);return[...n]}T(z9e,"layoutParagraph");function q9e(t){if(t.length<=1)return!1;let e=!1;for(const n of t)if(n.content===wt.SPACE&&(e=!0),e&&n.content!==wt.SPACE&&n.content!==wt.PARAGRAPH&&n.streamType!==wt.SECTION_BREAK)return!1;return e}T(q9e,"isGlyphGroupEndWithWhiteSpaces");function Y9e(t,e,n){if(t.length<=1)return!1;let r=e,i=!1;for(const a of t){if(a.content===wt.SPACE||a.content===wt.PARAGRAPH||a.streamType===wt.SECTION_BREAK)break;if(r+=a.width,r>n){i=!0;break}}return i}T(Y9e,"isGlyphGroupBeyondContentBox");function X9e(t){var e;const n=(e=t.parent)==null?void 0:e.parent;if(n==null)return 0;let r=0;for(let i=n.lines.length-1;i>=0;i--){const a=n.lines[i];if(a.divides[a.divides.length-1].breakType===qs.Hyphen)r++;else break}return r}T(X9e,"_getConsecutiveHyphenLineCount");function G9e(t){const e=[];let n=t.glyphGroup.pop();for(;n&&n.content!==" ";)e.unshift(n),n=t.glyphGroup.pop();return t.glyphGroup.length===0&&(t.glyphGroup.push(...e),e.length=0),e}T(G9e,"_popHyphenSlice");function Fd(t,e,n,r,i,a,o=qs.Normal,s){var l;const u=ap(n),c=h5e(u);if(c){const d=hW(e),{divide:h,isLast:f}=c,m=(l=h==null?void 0:h.glyphGroup)==null?void 0:l[h.glyphGroup.length-1],g=(m==null?void 0:m.width)||0,p=(m==null?void 0:m.left)||0,v=g+p,{hyphenationZone:_}=r;if(v+d>h.width){z5(h,{isFull:!0});const C=X9e(c.divide),{consecutiveHyphenLimit:S=Number.POSITIVE_INFINITY}=r;if(c.isLast&&e.length===1&&(e[0].content===wt.SPACE||e[0].content===wt.PARAGRAPH))W5(h,e,v);else if(c.isLast&&!Y9e(e,v,h.width)&&q9e(e))W5(h,e,v);else if((h==null?void 0:h.glyphGroup.length)===0){const b=[];for(;e.length;)if(b.push(e.shift()),hW(b)>h.width){b.length>1&&e.unshift(b.pop());break}b.length>0&&W5(h,b,v),e.length&&Fd(t,e,n,r,i,!1,o,s)}else if(C>S){const b=G9e(h);b.length>0&&(z5(h,{breakType:qs.Normal}),Fd(t,b,n,r,i,a,qs.Hyphen)),Fd(t,e,n,r,i,a,o,s)}else Fd(t,e,n,r,i,a,o,s)}else if(f&&_&&_>0&&v>=h.width-_&&o===qs.Hyphen&&h.breakType===qs.Normal)z5(h,{isFull:!0}),Fd(t,e,n,r,i,a,o,s);else{const C=h.parent,S=o5e(e);if(C&&S&&!l5e(C)){const{paragraphLineGapDefault:b,linePitch:y,lineSpacing:A,spacingRule:w,snapToGrid:P,gridType:M}=sJ(r,i),{boundingBoxAscent:L,boundingBoxDescent:k}=S,O=L+k,{contentHeight:$}=iJ(O,b,y,M,A,w,P);if(C.contentHeight<$){const B=s5e(C),V=B.length;let X=[],z=1;V>2&&B[0].glyphType===Ql.LIST?(X=[B[0],B[1]],z=2):X=[B[0]];const F=C.parent,{paragraphStart:H}=F==null?void 0:F.lines.pop();j4(t,X,n,r,i,H,o,L+k);for(let W=z;W<B.length;W++)Fd(t,[B[W]],n,r,i,a);Fd(t,e,n,r,i,a,o);return}}W5(h,e,v),z5(h,{breakType:o})}}else j4(t,e,n,r,i,a,o,s)}T(Fd,"_divideOperator");function j4(t,e,n,r,i,a,o=qs.Normal,s){var l,u,c,d,h,f;let m=ap(n),g=d_(m);if((!g||!g.column)&&(rJ(t,e,n,r,i,!0,o),m=ap(n),g=d_(m)),!g)return;const p=g.column;if(p.width<=0){console.error("The column width is less than 0, need to adjust page width to make it great than 0");return}const v=d5e(p),_=Math.max(...e.map(hn=>hn.bBox.ba)),C=Math.max(...e.map(hn=>hn.bBox.bd)),S=s||_+C,{paragraphStyle:b={},paragraphAffectSkeDrawings:y,skeTablesInParagraph:A,skeHeaders:w,skeFooters:P,pDrawingAnchor:M,paragraphIndex:L}=i,{spaceAbove:k,spaceBelow:O,indentFirstLine:$,hanging:B,indentStart:V,indentEnd:X}=b,{paragraphLineGapDefault:z,linePitch:F,lineSpacing:H,spacingRule:W,snapToGrid:K,gridType:G}=sJ(r,i),{paddingTop:te,paddingBottom:Y,contentHeight:ae,lineSpacingApply:ie}=iJ(S,z,F,G,H,W,K),{marginTop:ne,spaceBelowApply:de}=n5e(t,ie,k,O,a,v),_e=ne+te+ae+Y;let Pe=p.parent;Pe||(Pe=OT(m));const De=(v==null?void 0:v.lineHeight)||0,Ee=(v==null?void 0:v.top)||0,ye=De+Ee,{pageWidth:Ve,headerId:ke,footerId:Ke,segmentId:$e}=m,Fe=(l=w==null?void 0:w.get(ke))==null?void 0:l.get(Ve),He=(u=P==null?void 0:P.get(Ke))==null?void 0:u.get(Ve);let ct=!1;if(v){const hn=Z9e(v);if(hn.length>0){const tr=(d=(c=t.paragraphConfigCache.get($e))==null?void 0:c.get(v.paragraphIndex))==null?void 0:d.paragraphAffectSkeDrawings,en=[...(h=tr==null?void 0:tr.values())!=null?h:[]].filter(bt=>bt.drawingOrigin.docTransform.positionV.relativeFrom===La.LINE).filter(bt=>hn.includes(bt.drawingId));en.length>0&&dW(t,v.top,v.lineHeight,p,en,v.paragraphIndex,a)}}if(y!=null&&y.size>0){const hn=[...y.values()].filter(tr=>tr.drawingOrigin.docTransform.positionV.relativeFrom!==La.LINE);dW(t,ye,_e,p,hn,i.paragraphIndex,a,(f=M==null?void 0:M.get(L))==null?void 0:f.top)}A!=null&&A.length>0&&(ct=Q9e(ye,m,Pe,A));const _t=x9e(_e,ye,m,Fe,He);if(_e+_t>Pe.height&&p.lines.length>0&&m.sections.length>0||ct){if(eJ(p,!0),nJ(t,e,n,r,i,a,o,s),a&&y&&y.size>0)for(const hn of y.values())m.skeDrawings.has(hn.drawingId)&&m.skeDrawings.delete(hn.drawingId),t.drawingsCache.has(hn.drawingId)&&(t.drawingsCache.delete(hn.drawingId),t.isDirty=!1,t.layoutStartPointer[$e]=null);return}const Ye=v?v.lineIndex+1:0,{charSpace:Ot,defaultTabStop:An}=m5e(r,i),Ut=w0(Ot,An,G,K);let{paddingLeft:Jt,paddingRight:dn}=t5e($,B,V,X,Ut,a);if(Jt+dn>=p.width){const hn=Jt/(Jt+dn);Jt=p.width*hn-.5,dn=p.width-Jt-.5}const Sn=L9e(L,Q6.PARAGRAPH,{lineHeight:_e,contentHeight:ae,lineTop:_t,paddingLeft:Jt,paddingRight:dn,paddingTop:te,paddingBottom:Y,marginTop:ne,spaceBelowApply:de},p.width,Ye,a,i,m,Fe,He);p.lines.push(Sn),Sn.parent=p,H9e(L,Sn,ye,M),Fd(t,e,n,r,i,a,o,s)}T(j4,"_lineOperator");function dW(t,e,n,r,i,a,o,s){if(i.length===0)return;const l=i5e(e,n,r,o,s,i);l==null||l.size===0||(J9e(t,l,r,a),a5e(r,l))}T(dW,"__updateAndPositionDrawings");function Q9e(t,e,n,r){if(r.length===0)return!1;const i=r[r.length-1];if(i.hasPositioned)return!1;const{tableId:a,table:o}=i,{tableSource:s}=o;switch(s.textWrap){case sw.NONE:{o.top=t;break}case sw.WRAP:break;default:throw new Error(`Unsupported table text wrap type: ${s.textWrap}`)}const{top:l,height:u}=o;if(l+u>n.height){r.pop();const c=n.height-l,[d,h]=K9e(o,c);return d!=null&&(e.skeTables.set(d.tableId,d),d.parent=e,r.push({table:d,tableId:d.tableId,hasPositioned:!0})),h!=null&&r.push({table:h,tableId:h.tableId,hasPositioned:!1}),!0}else return e.skeTables.set(a,o),o.parent=e,i.hasPositioned=!0,!1}T(Q9e,"_updateAndPositionTable");function K9e(t,e){if(t.rows[0].height>e)return[null,t];const{tableId:n,tableSource:r}=t,{tableId:i,sliceIndex:a}=bD(n),o=tJ(0,0,r);o.tableId=cW(i,a),o.left=t.left,o.width=t.width,o.height=0,o.top=t.top,t.top=0;let s=e;for(;t.rows.length&&s>=t.rows[0].height;){const l=t.rows.shift();o.rows.push(l),t.height-=l.height,o.height+=l.height,l.parent=o,s-=l.height}if(t.tableId=cW(i,a+1),o.st=o.rows[0].st-1,o.ed=o.rows[o.rows.length-1].ed+1,t.rows.length>0){t.st=t.rows[0].st-1,t.ed=t.rows[t.rows.length-1].ed+1;for(const l of t.rows)l.top-=o.height}return[o,t.rows.length>0?t:null]}T(K9e,"_splitTable");function Z9e(t){const e=[];for(const n of t.divides)for(const r of n.glyphGroup)r.streamType===wt.CUSTOM_BLOCK&&e.push(r.drawingId);return e}T(Z9e,"_getCustomBlockIdsInLine");function J9e(t,e,n,r){var i,a,o,s,l,u,c;const d=(i=n.parent)==null?void 0:i.parent,h=new Map([...e]);if(e.size===0||d==null)return e;let f=!1;for(const m of e.values()){const g=t.drawingsCache.get(m.drawingId);if(g==null||g.page.segmentId!==d.segmentId)continue;const p=(s=(o=(a=g.page.sections[0])==null?void 0:a.columns[0])==null?void 0:o.lines[0])==null?void 0:s.paragraphIndex,v=(c=(u=(l=d.sections[0])==null?void 0:l.columns[0])==null?void 0:u.lines[0])==null?void 0:c.paragraphIndex;g.page&&p&&v&&p!==v&&(g.page.skeDrawings.delete(m.drawingId),t.drawingsCache.delete(m.drawingId),$4([g.page],_=>{var C;const{lineHeight:S,top:b}=_,y=_.parent;if(f||y==null)return;const{width:A,left:w}=y;oW(g.drawing,S,b,w,A)&&(f=!0,t.isDirty=!0,t.layoutStartPointer[g.page.segmentId]=Math.min(_.paragraphIndex,(C=t.layoutStartPointer[g.page.segmentId])!=null?C:Number.POSITIVE_INFINITY),t.paragraphsOpenNewPage.add(r))}))}return f=!1,$4([d],m=>{var g,p;const{lineHeight:v,top:_}=m,{width:C,left:S}=n;if(!f)for(const b of e.values()){let y=b;if(t.drawingsCache.has(b.drawingId)){const A=t.drawingsCache.get(b.drawingId),w=e5e(t,b);if((A==null?void 0:A.page.segmentId)!==d.segmentId)continue;if(w)y=(g=A==null?void 0:A.drawing)!=null?g:b;else continue}if(oW(y,v,_,S,C)){f=!0,t.isDirty=!0,t.layoutStartPointer[d.segmentId]=Math.min(m.paragraphIndex,(p=t.layoutStartPointer[d.segmentId])!=null?p:Number.POSITIVE_INFINITY);let A=t.drawingsCache.get(b.drawingId);A==null&&(A={count:0,drawing:b,page:d},t.drawingsCache.set(b.drawingId,A)),A.count++,A.drawing=b,A.page=d}}}),h}T(J9e,"_reLayoutCheck");function e5e(t,e){const{relativeFrom:n}=e.drawingOrigin.docTransform.positionV,r=t.drawingsCache.get(e.drawingId);if(r==null)return!1;if(n===La.PARAGRAPH||n===La.LINE){const{count:i,drawing:a}=r;if(i<5&&Math.abs(e.aTop-a.aTop)>5)return!0}return!1}T(e5e,"checkRelativeDrawingNeedRePosition");function nJ(t,e,n,r,i,a,o=qs.Normal,s){const l=ap(n);f5e(l)===!0?rJ(t,e,n,r,i,a,o,s):j4(t,e,n,r,i,a,o,s)}T(nJ,"_columnOperator");function rJ(t,e,n,r,i,a,o=qs.Normal,s){const l=ap(n),{skeHeaders:u,skeFooters:c}=i;n.push(D0(t,r,{skeHeaders:u,skeFooters:c},(l==null?void 0:l.pageNumber)+1)),nJ(t,e,n,r,i,a,o,s)}T(rJ,"_pageOperator");function t5e(t,e,n,r,i,a=!1){const o=Oa(t,i),s=Oa(e,i),l=Oa(n,i),u=Oa(r,i);let c=l;const d=u;return o>0&&a&&(c+=o),s>0&&!a&&(c+=s),{paddingLeft:c,paddingRight:d}}T(t5e,"__getIndentPadding");function n5e(t,e=0,n,r,i,a){const o=Oa(r,e);if(i){let s=Oa(n,e);if(a){const{spaceBelowApply:l}=a;if(s<l){const u=Math.max(l,s);a.lineHeight+=u,k9e(a,u),s=0}}return{marginTop:s,spaceBelowApply:o}}return{marginTop:0,spaceBelowApply:o}}T(n5e,"__getParagraphSpace");function iJ(t,e,n,r,i,a,o){let s=e,l=e;if(r===Zo.DEFAULT||o===at.FALSE)return a===rd.AUTO?{paddingTop:s,paddingBottom:l,contentHeight:i*t,lineSpacingApply:t}:{paddingTop:s,paddingBottom:l,contentHeight:Math.max(i,t),lineSpacingApply:i};let u=0;return a===rd.AUTO?u=i*n:u=i,t+e*2<u?s=l=(u-t)/2:u=t,{paddingTop:s,paddingBottom:l,contentHeight:t,lineSpacingApply:u}}T(iJ,"__getLineHeight");function r5e(t,e,n){var r,i;const a=t.parent,o=(i=(r=t==null?void 0:t.parent)==null?void 0:r.parent)==null?void 0:i.parent;if(o==null||a==null)return;const s=aJ(a),l=new Map,{top:u,lineHeight:c,marginBottom:d=0}=t;for(const f of t.divides)for(const m of f.glyphGroup)if(m.streamType===wt.CUSTOM_BLOCK&&m.width!==0){const{drawingId:g}=m;if(g==null)continue;const p=e==null?void 0:e.get(g),v=p==null?void 0:p.drawingOrigin;if(v==null||p==null)continue;const{docTransform:_}=v,{size:C,angle:S}=_,{width:b=0,height:y=0}=C,A=m.bBox.bd+m.bBox.ba;p.aLeft=f.left+f.paddingLeft+m.left+.5*m.width-.5*b||0,p.aTop=u+c-.5*A-.5*y-d,p.width=b,p.height=y,p.angle=S,p.isPageBreak=s,p.lineTop=u,p.columnLeft=a.left,p.blockAnchorTop=n??u,p.lineHeight=t.lineHeight,l.set(p.drawingId,p)}const h=new Map([...o.skeDrawings,...l]);o.skeDrawings=h}T(r5e,"updateInlineDrawingPosition");function i5e(t,e,n,r,i,a=[]){var o,s,l;const u=(o=n.parent)==null?void 0:o.parent;if(u==null||a.length===0)return;const c=new Map,d=aJ(n);if(!(d&&!r)){for(const h of a){const{drawingOrigin:f}=h;if(!f)continue;const{docTransform:m}=f,{positionH:g,positionV:p,size:v,angle:_}=m,{width:C=0,height:S=0}=v;h.aLeft=(s=p5e(g,n,u,C,d))!=null?s:0,h.aTop=(l=v5e(p,u,t,e,S,i,d))!=null?l:0,h.width=C,h.height=S,h.angle=_,h.initialState=!0,h.columnLeft=n.left,h.lineTop=t,h.lineHeight=e,h.isPageBreak=d,h.blockAnchorTop=i??t,c.set(h.drawingId,h)}return c}}T(i5e,"__getDrawingPosition");function a5e(t,e){var n;const r=(n=t.parent)==null?void 0:n.parent;if(!(e==null||e.size===0||r==null))for(const i of e.values()){const a=r.skeDrawings.get(i.drawingId);if(a)if(a.drawingOrigin.layoutType===Sl.WRAP_TOP_AND_BOTTOM){const o=a.aTop>i.aTop?a:i;r.skeDrawings.set(i.drawingId,o)}else r.skeDrawings.set(i.drawingId,i);else r.skeDrawings.set(i.drawingId,i)}}T(a5e,"__updateDrawingPosition");function aJ(t){const e=t.parent;if(!e)return!1;const n=e==null?void 0:e.columns;if(!n)return!1;const r=n.length;for(let i=r-1;i>=0;i--){const a=n[i].lines,o=a.length;if(!(o<=0)){for(let s=o-1;s>=0;s--)if(a[s].paragraphStart)return!1}}return!0}T(aJ,"__checkPageBreak");function hW(t){const e=t.length;let n=0;for(let r=0;r<e;r++){const i=t[r];n+=i.width}return n}T(hW,"__getGlyphGroupWidth");function o5e(t){const e=t.length;let n=Number.NEGATIVE_INFINITY,r;for(let i=0;i<e;i++){const a=t[i],{ba:o,bd:s}=a.bBox;n<o+s&&(r={boundingBoxAscent:o,boundingBoxDescent:s}),n=o+s}return r}T(o5e,"__maxFontBoundingBoxByGlyphGroup");function s5e({divides:t}){return t.flatMap(e=>e.glyphGroup)}T(s5e,"__getGlyphGroupByLine");function l5e(t){return!t.divides[0].glyphGroup[0]}T(l5e,"__isNullLine");function u5e(t){return t.type===dde.COMMENT?{bbl:{s:at.TRUE,cl:{rgb:"#fcdf7e"},c:at.FALSE},...t.active?{bg:{rgb:"#faedc2"}}:null}:null}T(u5e,"getCustomDecorationStyle");function c5e(t){var e;return t.rangeType===cd.HYPERLINK||t.rangeType===cd.MENTION?{...(e=t.active)==null||e?{ul:{s:at.TRUE}}:null,cl:{rgb:"#274fee"}}:null}T(c5e,"getCustomRangeStyle");function ap(t){return t[t.length-1]}T(ap,"getLastPage");function OT(t){var e;return(e=t.sections)==null?void 0:e[t.sections.length-1]}T(OT,"getLastSection");function NT(t){var e;const n=(e=d_(t))==null?void 0:e.column.lines;return n==null?void 0:n[n.length-1]}T(NT,"getLastLine");function d5e(t){return t.lines[t.lines.length-1]}T(d5e,"getLastLineByColumn");function d_(t){const e=OT(t);for(let n=0;n<e.columns.length;n++){const r=e.columns[n];if(!r.isFull)return{column:r,isLast:n===e.columns.length-1,index:n}}}T(d_,"getLastNotFullColumnInfo");function h5e(t){const e=NT(t);if(e)for(let n=0;n<e.divides.length;n++){const r=e.divides[n];if(!r.isFull)return{divide:r,isLast:n===e.divides.length-1,index:n}}}T(h5e,"getLastNotFullDivideInfo");function f5e(t){const e=OT(t),n=e.columns.length;for(let r=0;r<n;r++)if(!e.columns[r].isFull)return!1;return!0}T(f5e,"isColumnFull");function Oa(t,e){if(!t)return 0;const{v:n,u:r}=t;return!r||r===fde.PIXEL?n:n*e}T(Oa,"getNumberUnitValue");function w0(t=0,e,n=Zo.LINES,r=at.TRUE){let i=1;return oJ(n,r)&&(i=t),i*=e,i}T(w0,"getCharSpaceApply");function oJ(t=Zo.LINES,e=at.FALSE){return e===at.TRUE&&(t===Zo.LINES_AND_CHARS||t===Zo.SNAP_TO_CHARS)}T(oJ,"validationGrid");function sJ(t,e){const{paragraphStyle:n={}}=e,{linePitch:r=15.6,gridType:i=Zo.LINES,paragraphLineGapDefault:a=0}=t,{lineSpacing:o=0,spacingRule:s=rd.AUTO,snapToGrid:l=at.TRUE}=n;let u=o;return(i===Zo.LINES||i===Zo.LINES_AND_CHARS)&&o===0&&s===rd.AUTO&&(u=1),{paragraphLineGapDefault:a,linePitch:r,gridType:i,lineSpacing:u,spacingRule:s,snapToGrid:l}}T(sJ,"getLineHeightConfig");function m5e(t,e){const{paragraphStyle:n={}}=e,{charSpace:r=0,gridType:i=Zo.LINES,defaultTabStop:a=36,documentTextStyle:o={}}=t,{fs:s=Bht}=o,{snapToGrid:l=at.TRUE}=n;return{charSpace:r,documentFontSize:s,defaultTabStop:a,gridType:i,snapToGrid:l}}T(m5e,"getCharSpaceConfig");function h_(t,e=-1){let n=e;for(const r of t){const{sections:i,skeTables:a}=r,o=n;let s=o,l=Number.NEGATIVE_INFINITY,u=0;for(const c of i){const{columns:d}=c,h=s;let f=h,m=Number.NEGATIVE_INFINITY,g=0;for(const p of d){const{lines:v}=p,_=f;let C=_,S=0,b=Number.NEGATIVE_INFINITY;for(const y of v){const{divides:A,lineHeight:w,top:P,isBehindTable:M,tableId:L}=y;let k=C;if(M&&L){const F=a.get(L);F&&(k=F.ed)}let O=k,$=0,B=0,V=0;S=P+w;const X=A.length;let z=!1;for(let F=0;F<X;F++){const H=A[F],{glyphGroup:W}=H,K=O;let G=K;for(const te of W){const Y=te.glyphType===Ql.LIST?0:te.count;G+=Y;const ae=te.bBox,{ba:ie,bd:ne}=ae;B=Math.max(B,ie),V=Math.max(V,ne),F===X-1&&($+=te.width)}W.length!==0&&(z=!0,W[0].xOffset!==0&&F===X-1&&($-=W[0].xOffset),F===X-1&&($+=H.left),H.st=K+1,H.ed=G>=H.st?G:H.st,O=H.ed)}y.st=z?k+1:k,y.ed=O>=y.st?O:y.st,y.width=$,y.asc=B,y.dsc=V,b=Math.max(b,$),C=y.ed}p.st=_+1,p.ed=C>=p.st?C:p.st,p.height=S,p.width=b,g+=b,m=Math.max(m,p.height),f=p.ed}c.st=h+1,c.ed=f>=c.st?f:c.st,c.height=m,u+=m,l=Math.max(l,g),s=c.ed}for(const c of a.values()){const{ed:d}=c;s=Math.max(s,d)}r.st=o+1,r.ed=s>=r.st?s:r.st,r.height=u,r.width=l,n=r.ed}}T(h_,"updateBlockIndex");function $E(t,e){$4(e,(n,r,i,a)=>{var o,s,l,u,c;const{segmentId:d}=a,h=(s=(o=t.paragraphConfigCache.get(d))==null?void 0:o.get(n.paragraphIndex))==null?void 0:s.paragraphInlineSkeDrawings,f=(c=(u=(l=t.skeletonResourceReference)==null?void 0:l.drawingAnchor)==null?void 0:u.get(d))==null?void 0:c.get(n.paragraphIndex);h&&h.size>0&&r5e(n,h,f==null?void 0:f.top)})}T($E,"updateInlineDrawingCoords");function vSt(t,e){for(const n of t){const{sections:r}=n;for(const i of r){const{columns:a}=i;for(const o of a){const{lines:s}=o;for(const l of s){const{divides:u}=l,c=u.length;for(let d=0;d<c;d++){const h=u[d],{glyphGroup:f}=h;for(const m of f)e&&PT(e)&&e(m,h,l,o,i,n)}}}}}}T(vSt,"glyphIterator");function $4(t,e){for(const n of t){const{sections:r}=n;for(const i of r){const{columns:a}=i;for(const o of a){const{lines:s}=o;for(const l of s)e&&PT(e)&&e(l,o,i,n)}}}}T($4,"lineIterator");function g5e(t,e){for(const n of t){const{sections:r}=n;for(const i of r){const{columns:a}=i;for(const o of a)e&&PT(e)&&e(o)}}}T(g5e,"columnIterator");function p5e(t,e,n,r,i=!1){const{relativeFrom:a,align:o,posOffset:s,percent:l}=t;if(o!=null)if(o===wm.INSIDE||o===wm.OUTSIDE)a===no.MARGIN||no.PAGE;else{if(a===no.COLUMN){const{width:u,left:c}=e;let d=0;return o===wm.LEFT?d=c:o===wm.RIGHT?d=c+u-r:o===wm.CENTER&&(d=c+u/2-r/2),d}if(a!==no.LEFT_MARGIN&&a!==no.MARGIN&&a!==no.RIGHT_MARGIN&&a!==no.INSIDE_MARGIN&&a!==no.OUTSIDE_MARGIN&&a===no.PAGE){const{pageWidth:u}=n;let c=0;return o===wm.RIGHT?c=u-r:o===wm.CENTER&&(c=u/2-r/2),c}}else if(s){const{pageWidth:u,marginLeft:c,marginRight:d}=n,h=u-d;let f=0;return a===no.COLUMN?f=(i?0:(e==null?void 0:e.left)||0)+s:a===no.LEFT_MARGIN||(a===no.MARGIN?f=s+c:a===no.RIGHT_MARGIN||a===no.INSIDE_MARGIN||a===no.OUTSIDE_MARGIN||a===no.PAGE&&(f=s)),f+r>h&&(f=h-r),f}else if(l){const{pageWidth:u,marginLeft:c,marginRight:d}=n;if(a!==no.LEFT_MARGIN&&a!==no.MARGIN&&a!==no.RIGHT_MARGIN&&a!==no.INSIDE_MARGIN&&a!==no.OUTSIDE_MARGIN&&a===no.PAGE)return l*u}}T(p5e,"getPositionHorizon");function v5e(t,e,n,r,i,a,o=!1){const{relativeFrom:s,align:l,posOffset:u,percent:c}=t;if(l!=null){if(s===La.LINE){let d=0;return l===Y3.BOTTOM?d=n+r-i:l===Y3.TOP?d=n:l===Y3.CENTER&&(d=n+r/2-i/2),d}else if(s!==La.TOP_MARGIN&&s!==La.MARGIN&&s!==La.BOTTOM_MARGIN&&s!==La.INSIDE_MARGIN&&s!==La.OUTSIDE_MARGIN&&s===La.PAGE){const{pageHeight:d}=e;let h=0;return l===Y3.BOTTOM?h=d-i:l===Y3.CENTER&&(h=d/2-i/2),h}}else if(u!=null){let d=0;const{marginTop:h}=e;return s===La.LINE?d=(n||0)+u:s===La.TOP_MARGIN||(s===La.MARGIN?d=u:s===La.BOTTOM_MARGIN||s===La.INSIDE_MARGIN||s===La.OUTSIDE_MARGIN||(s===La.PAGE?d=u-h:s===La.PARAGRAPH&&(d=(o?0:a??n)+u))),d}else if(c!=null){const{pageHeight:d,marginBottom:h,marginTop:f}=e;if(s!==La.TOP_MARGIN&&s!==La.MARGIN&&s!==La.BOTTOM_MARGIN&&s!==La.INSIDE_MARGIN&&s!==La.OUTSIDE_MARGIN&&s===La.PAGE)return c*d}}T(v5e,"getPositionVertical");function fW(t){let e=0;for(const n of t.glyphGroup)e+=n.width;return e}T(fW,"getGlyphGroupWidth");const mW=new Ct;function _5e(){mW.reset()}T(_5e,"clearFontCreateConfigCache");function C5e(t,e,n){const{ts:r,fontStyle:i}=t,{gridType:a=Zo.LINES,charSpace:o=0,pageSize:s={width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},marginRight:l=0,marginLeft:u=0}=e,{snapToGrid:c=at.TRUE}=n,d=s.width||Number.POSITIVE_INFINITY-u-l;return{fontStyle:i,textStyle:r,charSpace:o,gridType:a,snapToGrid:c,pageWidth:d}}T(C5e,"getFontConfigFromLastGlyph");function S5e(t,e){var n;const{listType:r}=t;return(n=e.getDataModel().getBulletPresetList()[r].nestingLevel[0].paragraphProperties)==null?void 0:n.textStyle}T(S5e,"getBulletParagraphTextStyle");function h0(t,e,n,r,i){const{gridType:a=Zo.LINES,charSpace:o=0,documentTextStyle:s={},pageSize:l={width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},marginRight:u=0,marginLeft:c=0,localeService:d,renderConfig:h={}}=r,{paragraphStyle:f={},bullet:m}=i,{isRenderStyle:g}=h,{startIndex:p}=n,v=g===at.FALSE?{ts:{},st:0,ed:0}:e.getTextRun(t+p)||{ts:{},st:0,ed:0},_=e.getCustomDecoration(t+p),C=_&&_.show!==!1,S=C?u5e(_):null,b=e.getCustomRange(t+p),y=b&&b.show!==!1,A=y?c5e(b):null,w=y||C,{st:P,ed:M}=v;let{ts:L={}}=v;const k=mW.getValue(P,M);if(k&&!w)return k;const{snapToGrid:O=at.TRUE}=f,$=m?S5e(m,e):null;L={...s,...L,...S,...A,...$};const B=rp(L),V={...s,...L},X=l.width||Number.POSITIVE_INFINITY-c-u,z={fontStyle:B,textStyle:V,charSpace:o,gridType:a,snapToGrid:O,pageWidth:X};return w||mW.setValue(P,M,z),z}T(h0,"getFontCreateConfig");function b5e(){return{pages:[],left:0,top:0,st:0,skeHeaders:new Map,skeFooters:new Map,skeListLevel:new Map,drawingAnchor:new Map}}T(b5e,"getNullSkeleton");function y5e(t,e){for(const n of t)n.parent=e}T(y5e,"setPageParent");const _St={columnProperties:[],columnSeparatorType:Rv.NONE,sectionType:ow.SECTION_TYPE_UNSPECIFIED},CSt={width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY};function E5e(t,e){var n;const{viewModel:r,dataModel:i,docsConfig:a}=t,o=r.children[e],s=r.getSectionBreak(o.endIndex)||_St,{documentStyle:l}=i,{pageNumberStart:u=1,pageSize:c=CSt,pageOrient:d=JP.PORTRAIT,defaultHeaderId:h,defaultFooterId:f,evenPageHeaderId:m,evenPageFooterId:g,firstPageHeaderId:p,firstPageFooterId:v,useFirstPageHeaderFooter:_,evenAndOddHeaders:C,marginTop:S=0,marginBottom:b=0,marginRight:y=0,marginLeft:A=0,marginHeader:w=0,marginFooter:P=0,autoHyphenation:M=at.FALSE,doNotHyphenateCaps:L=at.FALSE,consecutiveHyphenLimit:k=Number.POSITIVE_INFINITY,hyphenationZone:O,renderConfig:$={horizontalAlign:dr.LEFT,verticalAlign:ea.TOP,centerAngle:0,vertexAngle:0,wrapStrategy:Li.UNSPECIFIED}}=l,{charSpace:B=0,linePitch:V=15.6,gridType:X=Zo.LINES,pageNumberStart:z=u,pageSize:F=c,pageOrient:H=d,marginTop:W=S,marginBottom:K=b,marginRight:G=y,marginLeft:te=A,marginHeader:Y=w,marginFooter:ae=P,defaultHeaderId:ie=h,defaultFooterId:ne=f,evenPageHeaderId:de=m,evenPageFooterId:_e=g,firstPageHeaderId:Pe=p,firstPageFooterId:De=v,useFirstPageHeaderFooter:Ee=_,evenAndOddHeaders:ye=C,columnProperties:Ve=[],columnSeparatorType:ke=Rv.NONE,contentDirection:Ke,sectionType:$e,textDirection:Fe,renderConfig:He=$}=s,ct=r.children[e+1],_t=(n=r.getSectionBreak(ct==null?void 0:ct.endIndex))==null?void 0:n.sectionType,Ye={defaultHeaderId:ie,evenPageHeaderId:de,firstPageHeaderId:Pe},Ot={defaultFooterId:ne,evenPageFooterId:_e,firstPageFooterId:De};return F.width===null&&(F.width=Number.POSITIVE_INFINITY),F.height===null&&(F.height=Number.POSITIVE_INFINITY),{charSpace:B,linePitch:V,gridType:X,pageNumberStart:z,pageSize:F,pageOrient:H,marginTop:W,marginBottom:K,marginRight:G,marginLeft:te,marginHeader:Y,marginFooter:ae,headerIds:Ye,footerIds:Ot,useFirstPageHeaderFooter:Ee,evenAndOddHeaders:ye,columnProperties:Ve,columnSeparatorType:ke,contentDirection:Ke,sectionType:$e,sectionTypeNext:_t,textDirection:Fe,renderConfig:He,autoHyphenation:M,doNotHyphenateCaps:L,consecutiveHyphenLimit:k,hyphenationZone:O,...a}}T(E5e,"prepareSectionBreakConfig");function lJ(t){var e;t.isDirty=!1,(e=t.skeleton.drawingAnchor)==null||e.clear()}T(lJ,"resetContext");function R5e(t,e,n){const r=T((i,a,o)=>o!=="v"?typeof a=="object"?Ie.mergeWith(i,a,r):a??i:typeof a=="number"&&typeof i=="number"?Math.max(a,i):a??i,"mergeIterator");return Ie.mergeWith(t,e,r)}T(R5e,"mergeByV");function f_(t,e){var n,r,i;const a=[...e];let o=null;for(;a.length>0;){const s=a.shift();if(s==="pages"){const l=a.shift();o=t.pages[l]}else if(s==="skeTables"){const l=a.shift();a.shift();const u=a.shift();a.shift();const c=a.shift();o=(i=(r=(n=o.skeTables)==null?void 0:n.get(l))==null?void 0:r.rows[u])==null?void 0:i.cells[c]}}return o}T(f_,"getPageFromPath");function uJ(t){return(t-100)/2}T(uJ,"getHeaderFooterMaxHeight");function D0(t,e,n,r=1,i=l_.SECTION){var a,o,s,l;const u=A5e(),{pageNumberStart:c=1,pageSize:d={width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},pageOrient:h=JP.PORTRAIT,headerIds:f={},footerIds:m={},useFirstPageHeaderFooter:g,evenAndOddHeaders:p,footerTreeMap:v,headerTreeMap:_,columnProperties:C=[],columnSeparatorType:S,marginTop:b=0,marginBottom:y=0,marginHeader:A=0,marginFooter:w=0,marginLeft:P=0,marginRight:M=0,renderConfig:L={}}=e,{skeHeaders:k,skeFooters:O}=n,{width:$=Number.POSITIVE_INFINITY,height:B=Number.POSITIVE_INFINITY}=d;u.pageNumber=r,u.pageNumberStart=c,u.renderConfig=L,u.marginLeft=P,u.marginRight=M,u.breakType=i,u.pageWidth=$,u.width=0,u.pageHeight=B,u.height=0,u.pageOrient=h;const{defaultHeaderId:V,evenPageHeaderId:X,firstPageHeaderId:z}=f,{defaultFooterId:F,evenPageFooterId:H,firstPageFooterId:W}=m;let K=V??"",G=F??"";r===c&&g===at.TRUE?(K=z??"",G=W??""):r%2===0&&p===at.TRUE&&(K=X??"",G=H??"");let te,Y;K&&((a=k.get(K))!=null&&a.has($)?te=(o=k.get(K))==null?void 0:o.get($):_&&_.has(K)&&(te=yD(t,_.get(K),e,n,K,!0),k.set(K,new Map([[$,te]]))),u.headerId=K),G&&((s=O.get(G))!=null&&s.has($)?Y=(l=O.get(G))==null?void 0:l.get($):v&&v.has(G)&&(Y=yD(t,v.get(G),e,n,G,!1),O.set(G,new Map([[$,Y]]))),u.footerId=G),u.originMarginTop=b,u.originMarginBottom=y,u.marginTop=gW(b,te,B),u.marginBottom=gW(y,Y,B);const ae=u.sections,ie=ae[ae.length-1],{marginTop:ne,marginBottom:de,marginLeft:_e,marginRight:Pe}=u,De=$-_e-Pe,Ee=B-ne-de;let ye=0;ie&&(ye=ie.top+ie.height);const Ve=JZ(C,S,ye,0,De,Ee-ye);return Ve.parent=u,ae.push(Ve),u}T(D0,"createSkeletonPage");function A5e(t=Lr.BODY,e=""){return{sections:[],headerId:"",footerId:"",pageWidth:0,pageHeight:0,pageOrient:JP.PORTRAIT,pageNumber:1,pageNumberStart:1,verticalAlign:!1,angle:0,width:0,height:0,left:0,marginLeft:0,marginRight:0,originMarginTop:0,marginTop:0,originMarginBottom:0,marginBottom:0,breakType:l_.SECTION,st:0,ed:0,skeDrawings:new Map,skeTables:new Map,type:t,segmentId:e}}T(A5e,"_getNullPage");function yD(t,e,n,r,i,a=!0,o,s=0){const{lists:l,footerTreeMap:u,headerTreeMap:c,localeService:d,pageSize:h,drawings:f,marginLeft:m=0,marginRight:g=0,marginHeader:p=0,marginFooter:v=0}=n,_=(h==null?void 0:h.width)||Number.POSITIVE_INFINITY,C=(h==null?void 0:h.height)||Number.POSITIVE_INFINITY,S={lists:l,footerTreeMap:u,headerTreeMap:c,pageSize:{width:_-m-g,height:uJ(C)-(a?p:v)-5},localeService:d,drawings:f};o==null&&(o=D0(t,S,r),o.type=a?Lr.HEADER:Lr.FOOTER,o.segmentId=i);const b=t.layoutStartPointer[i];t.layoutStartPointer[i]=null;const y=WT(t,e,e.children[0],o,S,b).pages[0];return t.isDirty&&s<10?(s++,lJ(t),e.resetCache(),yD(t,e,n,r,i,a,o,s)):(h_([y]),a?Object.assign(y,{marginTop:p,marginBottom:5}):Object.assign(y,{marginTop:5,marginBottom:v}),y)}T(yD,"_createSkeletonHeaderFooter");function w5e(t,e,n,r,i,a,o){var s,l;const{lists:u,footerTreeMap:c,headerTreeMap:d,localeService:h,drawings:f}=r,{skeletonResourceReference:m}=t,{cellMargin:g,tableRows:p,tableColumns:v,tableId:_}=i,C=p[a].tableCells[o],S=n.children[0],{start:b={v:10},end:y={v:10},top:A={v:5},bottom:w={v:5}}=(l=(s=C.margin)!=null?s:g)!=null?l:{},P=v[o].size.width.v,M=Number.POSITIVE_INFINITY,L={lists:u,footerTreeMap:c,headerTreeMap:d,pageSize:{width:P,height:M},marginTop:A.v,marginBottom:w.v,marginLeft:b.v,marginRight:y.v,localeService:h,drawings:f},k=D0(t,L,m);k.type=Lr.CELL,k.segmentId=_;const O=WT(t,e,S,k,L).pages[0];return h_([O],n.startIndex),O}T(w5e,"createSkeletonCellPage");function gW(t,e,n){if(!e||e.sections[0].columns[0].lines.length===0)return t;const r=e.height+e.marginTop+e.marginBottom,i=uJ(n);return Math.min(i,Math.max(t,r))}T(gW,"_getVerticalMargin");function D5e(){return[]}T(D5e,"dealWithBlockError");const SSt=5,Zoe=12,bSt=13,ySt=16,ESt=17,RSt=22,Joe=28,ese=31,ASt=33,WE=34,wSt=35,xN=36,pW=37,I5e=38,DSt=39,ISt=40,q5=41,PSt=42,re=0,ge=1,ra=2,P5e=3,Oe=4,MSt=[[Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,P5e,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe,Oe],[re,Oe,Oe,ge,ge,Oe,Oe,Oe,Oe,ge,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,Oe,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[Oe,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,Oe,ra,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,Oe,ra,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,ge,re,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,ge,ge,ge,ge,ge,ge,ge,re,re,Oe,ra,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,re,ge,Oe,Oe,Oe,re,re,ge,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,re,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,Oe,ra,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,Oe,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,Oe,re,re,re,re,re,re,re,re,re,re,re,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge,Oe,ra,Oe,ge,ge,ge,ge,ge,ge,ge,ge,ge,ge],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,ge,ge,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,ge,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,ge,ge,ge,ge,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,ge,ge,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,ge,re,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,re,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,ge,re,re,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,ge,ge,re],[re,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,re,ge,re,re,re,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[ge,Oe,Oe,ge,ge,ge,Oe,Oe,Oe,ge,ge,ge,ge,ge,re,ge,ge,ge,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re],[re,Oe,Oe,ge,ge,re,Oe,Oe,Oe,re,re,re,re,re,re,re,re,re,re,re,Oe,ra,Oe,re,re,re,re,re,re,re,re,ge,re]],M5e=class{constructor(){q(this,"_rules",new Map)}add(e,n){this._rules.set(e,n)}shouldBreak(e,n,r){for(const i of this._rules.values())if(i(e,n,r))return!0;return!1}};T(M5e,"Rule");let TSt=M5e;const LSt=new Uint8Array([0,8,14,0,0,0,0,0,176,232,0,0,1,181,15,74,240,237,157,11,140,93,69,25,199,231,178,187,183,123,31,187,237,46,108,193,194,22,104,41,200,242,48,128,104,16,129,152,162,64,42,10,193,42,24,121,104,2,65,177,4,9,69,41,193,104,73,35,193,84,20,104,144,152,74,140,109,80,1,149,87,12,175,68,64,162,60,42,9,136,196,70,194,35,40,132,84,222,34,40,18,255,195,153,113,103,103,231,253,58,183,244,158,228,151,57,103,158,223,124,243,205,227,204,57,231,222,141,3,132,220,0,110,5,119,129,191,129,127,128,127,130,255,130,129,65,66,58,131,254,238,56,88,0,22,129,41,240,1,240,97,135,116,71,128,163,12,225,199,130,229,224,100,112,58,88,1,86,130,11,193,197,66,188,75,192,247,193,85,224,26,176,17,220,0,174,7,183,128,59,193,239,192,67,224,81,240,56,75,251,36,115,159,3,47,129,55,192,155,128,12,17,50,12,230,129,113,176,0,44,2,83,96,95,112,16,56,20,44,101,225,203,192,9,44,156,94,127,30,124,9,124,5,124,21,156,7,46,4,23,179,240,239,130,43,192,143,216,245,79,193,117,67,85,249,55,195,189,3,220,203,242,167,242,61,0,247,17,176,25,252,21,60,11,30,27,168,174,183,128,87,216,245,91,112,27,205,42,77,11,238,24,152,0,147,205,42,124,11,139,191,164,89,185,123,179,184,156,3,154,211,28,194,56,2,124,140,33,198,53,113,12,226,30,47,197,63,11,229,157,228,145,135,11,95,20,242,251,50,206,87,128,149,224,34,176,166,57,93,223,181,56,95,7,214,75,229,111,196,245,213,194,245,181,184,254,21,248,141,144,150,114,23,75,119,159,224,191,137,234,20,60,209,172,236,158,242,44,206,159,3,47,130,55,192,59,160,57,7,233,160,251,209,57,85,30,19,112,39,193,30,115,166,203,221,23,231,7,206,209,215,243,35,8,59,220,16,238,194,39,144,254,83,224,179,224,20,112,6,56,27,156,15,190,9,86,131,75,193,229,96,29,88,15,54,176,50,175,99,238,205,112,239,0,247,130,7,193,163,96,51,11,123,6,238,243,224,37,141,156,175,9,254,111,225,188,49,60,147,237,132,243,54,24,5,243,193,66,176,4,236,7,14,6,135,129,143,131,99,193,114,112,50,56,29,172,0,43,135,171,252,47,128,251,109,240,29,118,253,61,184,235,134,253,117,182,158,165,217,0,247,58,143,244,55,7,148,117,187,148,230,30,225,250,90,102,99,15,192,239,17,176,121,184,234,207,207,12,251,241,2,120,21,252,155,234,187,5,61,131,241,86,117,190,160,101,78,187,72,8,159,178,196,237,211,167,79,58,248,56,80,183,28,125,250,244,233,211,167,79,159,62,125,182,46,246,239,209,251,182,131,91,51,247,67,180,251,32,173,106,47,143,158,31,129,243,95,10,97,71,181,236,233,63,141,56,159,99,241,78,129,251,49,184,147,224,12,156,159,205,242,62,31,238,69,96,13,88,11,126,0,174,6,63,105,85,251,56,63,135,123,99,107,230,254,16,229,54,248,253,204,80,246,221,8,191,31,60,0,30,4,15,129,77,224,143,224,225,126,88,63,172,31,214,15,235,135,37,15,251,51,120,2,60,213,170,246,76,235,228,249,86,189,212,93,255,62,125,122,153,216,117,236,203,232,99,111,130,183,91,225,207,233,72,91,237,63,12,255,121,96,39,176,43,216,75,138,183,15,174,15,2,135,130,165,96,25,56,174,93,201,117,34,220,211,218,245,143,63,59,204,173,184,18,252,9,116,231,233,57,26,92,2,238,84,132,189,45,93,127,112,140,144,243,192,45,96,203,88,229,183,219,56,33,95,0,87,130,95,131,151,193,211,173,74,119,167,130,107,192,147,84,135,29,66,14,0,4,247,31,159,233,84,215,34,23,131,43,26,211,220,203,226,114,182,224,122,223,46,33,159,4,95,3,95,7,55,129,87,193,129,35,240,3,55,130,87,70,102,230,179,173,49,54,58,83,111,125,250,244,233,179,45,113,252,168,121,238,63,19,243,209,57,154,249,159,114,110,123,246,154,133,135,173,66,216,106,41,237,26,92,175,101,126,203,53,239,94,209,247,178,214,37,126,47,203,196,101,154,250,173,51,212,155,178,30,225,251,209,119,229,20,241,126,193,252,110,178,228,97,227,118,133,126,85,240,248,247,176,248,191,23,202,125,152,157,63,46,248,109,166,235,48,240,119,232,249,5,184,175,180,171,119,195,222,130,219,192,250,97,78,167,186,158,11,119,71,176,51,187,190,0,105,23,119,166,247,21,247,193,249,65,157,105,25,14,197,249,249,112,151,194,93,6,142,5,203,193,201,29,181,204,13,216,224,233,157,105,185,22,130,21,138,184,60,254,42,176,82,40,143,198,191,8,215,107,88,30,107,225,174,99,225,116,15,116,61,206,55,26,242,187,161,163,214,59,221,119,165,123,171,183,34,252,174,206,204,52,247,225,122,19,245,3,127,1,79,179,60,158,135,251,50,59,127,29,238,219,154,114,229,250,12,98,93,214,1,243,192,68,119,118,89,147,221,234,124,73,119,186,110,54,246,67,220,131,187,213,187,127,135,9,121,30,137,243,163,193,113,221,114,253,203,133,19,123,76,158,58,56,141,233,224,76,131,46,206,210,132,157,11,255,85,93,55,219,200,73,104,221,87,39,108,127,250,110,226,165,221,233,115,58,151,92,198,174,175,130,251,227,66,182,182,81,83,206,245,221,234,221,201,27,133,246,186,173,155,255,153,86,104,61,238,102,114,222,223,3,246,85,39,155,28,219,232,49,196,219,12,158,242,108,211,103,183,2,253,202,182,177,165,59,253,174,249,182,202,235,158,227,201,127,104,252,17,232,83,177,54,236,140,148,25,155,82,49,15,242,238,144,64,102,170,199,93,70,42,119,49,220,41,112,192,72,253,246,46,218,61,253,70,64,23,78,229,62,132,233,225,112,184,75,71,102,167,95,6,191,19,60,116,117,34,139,123,90,132,30,232,122,239,204,204,122,212,201,127,206,200,204,240,111,20,104,207,111,49,157,173,73,212,143,14,115,144,217,54,174,175,69,30,151,143,84,223,145,252,144,185,235,71,170,176,13,35,254,243,248,245,72,115,11,184,19,252,86,72,255,7,156,63,12,30,7,79,10,254,207,225,252,69,240,58,248,23,120,135,133,13,226,222,191,51,58,29,111,28,231,243,217,245,66,184,123,142,206,94,55,236,47,236,23,156,202,210,125,136,249,125,148,185,71,194,125,77,40,255,152,209,106,159,129,158,159,196,220,83,225,158,33,229,191,255,232,204,122,158,141,235,115,13,251,19,180,63,174,26,245,215,223,123,137,213,84,183,131,225,115,87,47,141,177,161,108,24,104,252,159,9,66,172,140,129,37,96,17,99,15,135,52,174,236,13,112,187,65,32,22,193,208,75,90,228,221,199,103,239,158,83,63,122,108,39,132,161,9,201,60,230,210,45,185,142,35,195,140,174,64,83,186,206,13,97,117,216,174,96,153,114,249,180,45,27,236,122,130,244,143,169,109,28,85,159,220,83,227,159,131,65,214,14,180,207,183,4,168,125,238,206,224,231,124,140,24,35,211,54,205,211,241,184,227,82,90,145,1,233,154,144,188,253,109,247,204,249,247,122,249,189,6,183,15,209,6,248,181,171,206,100,155,18,211,140,91,210,150,160,84,191,221,26,24,12,76,163,35,68,134,208,118,148,215,42,182,182,173,219,238,114,66,117,65,199,124,62,103,113,255,22,209,207,97,189,206,152,208,110,19,138,243,38,115,109,243,247,72,15,193,219,197,103,253,161,91,175,139,237,223,22,144,215,241,62,58,111,10,46,167,110,219,206,61,118,187,222,31,181,53,186,207,61,182,52,137,189,238,29,75,28,89,127,170,184,60,142,171,62,82,183,235,123,193,166,228,241,247,189,132,143,30,186,196,111,140,115,25,239,114,218,95,78,157,200,105,232,216,204,251,180,120,143,41,222,215,149,144,85,39,191,236,175,139,87,210,214,115,149,43,218,155,207,253,191,169,125,83,244,159,208,121,44,119,25,49,245,207,105,19,41,245,107,203,203,87,190,49,70,201,113,77,238,47,117,180,143,216,127,82,180,143,152,167,169,175,202,126,54,29,133,206,59,124,189,173,202,155,251,183,20,229,169,198,209,186,219,39,5,166,118,177,201,16,179,14,80,245,75,87,123,81,233,160,116,123,196,234,59,181,28,33,253,161,69,236,237,95,106,62,42,213,255,67,108,90,182,185,58,250,189,78,206,84,122,55,233,192,54,78,228,186,15,224,227,176,235,250,110,107,232,255,174,109,146,187,255,155,218,208,117,191,95,148,185,244,51,130,146,99,145,105,76,138,209,127,76,93,234,208,117,10,189,187,150,151,219,254,93,242,214,173,19,101,82,142,199,190,54,233,219,223,197,118,112,29,211,57,123,245,8,178,92,173,200,252,186,30,122,228,247,133,189,170,27,174,31,95,187,80,233,100,92,66,244,27,20,206,199,216,117,83,193,32,75,39,63,147,176,141,7,169,239,187,229,231,82,220,165,71,67,112,99,198,215,84,107,179,49,7,255,210,115,162,235,24,197,251,71,236,216,46,218,150,110,109,193,159,95,199,140,139,58,121,99,251,160,107,249,186,244,239,171,153,5,53,179,115,205,228,90,75,153,198,13,121,157,100,234,71,185,169,179,236,210,229,211,163,65,102,142,31,190,178,218,198,189,80,92,215,129,161,178,251,148,175,91,251,228,148,193,167,222,169,203,159,138,40,63,245,154,142,235,126,72,184,230,182,39,174,127,83,237,3,164,106,63,190,14,228,242,143,75,254,178,141,241,247,209,114,200,95,199,189,179,205,174,74,174,205,100,253,136,215,188,61,98,215,45,177,247,114,190,246,107,186,167,203,133,73,191,60,78,93,247,125,220,182,92,245,23,75,234,241,47,246,222,73,164,228,145,67,54,81,159,163,142,240,113,86,60,23,253,92,112,145,223,71,22,213,218,182,14,66,108,136,167,141,221,143,208,29,161,118,227,187,254,201,57,159,200,118,230,243,222,132,78,230,212,251,63,185,112,93,247,219,218,75,182,185,24,91,21,219,220,212,23,84,182,145,178,239,132,126,91,144,2,185,236,58,108,131,175,117,117,125,132,51,40,93,239,192,100,222,85,144,95,142,183,61,153,249,173,206,0,153,254,174,116,64,113,45,198,165,204,21,160,249,241,111,96,117,186,108,91,16,101,160,229,12,49,116,186,25,102,178,53,132,184,166,248,166,254,215,86,232,180,43,93,207,87,164,245,89,103,200,253,216,229,27,52,94,63,241,123,42,249,27,43,151,244,161,247,99,226,248,210,50,208,182,132,251,166,109,43,206,99,202,104,121,180,147,235,156,21,179,159,192,237,93,110,195,54,113,107,23,49,157,207,187,195,174,118,147,227,251,72,83,217,170,239,12,85,223,169,154,208,149,231,155,206,85,47,114,251,230,40,207,71,166,208,186,168,228,146,253,84,225,220,149,191,75,182,181,173,74,23,114,29,76,186,51,217,144,139,61,132,180,181,173,220,20,253,193,164,27,211,117,10,251,73,149,191,171,206,98,117,23,43,151,47,115,19,200,64,15,241,57,113,168,172,252,222,216,167,204,28,58,149,239,213,99,242,138,153,87,117,248,206,31,57,233,6,166,145,237,34,135,92,62,125,40,69,89,161,50,184,234,210,39,31,213,181,171,191,156,71,108,253,92,245,238,154,38,71,255,54,213,219,166,55,158,15,15,31,85,148,51,73,210,140,39,33,117,212,233,48,133,46,99,218,93,101,115,92,127,170,56,41,100,46,165,127,91,189,75,227,186,191,45,219,178,201,166,119,215,196,87,245,7,57,76,236,119,58,61,169,228,80,229,163,146,103,210,80,174,10,149,174,38,37,74,217,136,120,61,160,129,134,241,231,146,178,252,244,104,4,184,57,230,225,80,123,231,50,149,236,35,174,122,170,163,76,95,183,78,189,149,44,187,148,173,164,178,107,25,211,62,170,252,14,130,188,135,219,36,110,207,87,108,184,190,183,164,123,54,163,27,163,108,152,246,253,197,125,106,34,213,83,28,3,197,107,122,152,250,132,156,63,127,199,70,181,47,174,210,211,246,12,221,94,58,81,148,161,171,147,174,44,62,166,187,212,197,247,249,119,46,248,239,75,54,4,191,33,225,220,86,23,34,165,181,197,27,18,206,197,116,161,207,238,117,113,85,254,252,89,140,232,71,219,96,49,59,183,185,185,41,85,142,173,124,151,122,219,194,22,147,217,207,128,135,36,120,155,244,154,254,83,213,95,101,127,139,137,218,14,99,100,142,193,150,191,109,125,152,163,29,66,117,227,251,188,43,102,206,77,53,127,235,214,19,190,239,75,164,150,65,156,227,68,92,245,43,203,228,251,30,71,14,125,234,100,240,177,15,215,103,161,161,240,239,131,248,90,194,231,253,26,159,103,194,49,239,51,185,148,239,139,143,126,92,236,199,86,94,142,239,26,114,63,187,167,101,212,241,205,148,169,189,235,60,66,244,77,15,221,252,97,122,167,116,74,227,239,75,157,223,223,77,101,212,171,171,45,139,58,158,32,246,123,46,57,239,16,157,135,126,199,228,58,110,248,212,223,119,140,146,243,142,29,175,119,4,59,21,164,116,121,190,123,32,41,191,237,148,243,174,227,251,78,89,134,247,215,76,206,181,82,87,211,166,244,183,141,39,136,223,239,32,231,254,141,229,210,240,61,151,210,229,202,235,227,216,117,225,48,153,222,43,226,191,37,45,239,179,209,247,96,114,173,79,85,243,9,47,215,213,149,211,153,230,170,134,224,82,249,249,94,129,248,188,200,86,142,13,254,222,170,234,158,185,14,91,229,101,207,103,46,175,167,44,171,74,135,13,201,245,217,99,144,247,25,154,158,121,196,66,2,101,207,85,62,215,109,67,58,231,122,74,181,167,84,130,148,123,108,190,136,253,137,218,110,75,10,231,239,166,218,250,155,235,26,70,28,175,118,35,213,190,92,29,253,217,182,222,239,133,177,134,207,73,41,101,240,93,115,202,109,87,151,30,100,157,184,220,207,213,37,31,183,165,58,202,157,146,202,143,89,79,228,182,55,151,103,152,174,182,224,210,246,186,114,76,107,178,18,246,228,170,19,91,63,176,201,95,234,247,40,196,113,126,76,145,62,102,12,138,197,197,190,75,247,145,28,121,166,236,167,42,221,213,113,152,246,73,117,123,161,185,214,162,174,242,202,178,211,195,69,215,252,55,251,82,218,149,139,29,119,200,236,113,199,117,191,144,143,49,165,214,43,57,199,179,208,57,211,71,46,213,248,94,215,24,192,203,20,191,151,118,25,15,228,124,228,247,143,84,118,198,207,125,126,95,96,92,202,63,100,125,229,219,150,186,247,181,38,164,60,235,154,203,92,234,108,122,14,94,114,124,201,209,127,85,101,212,113,136,178,168,108,222,7,158,223,148,116,174,170,187,202,159,191,31,40,30,49,242,184,180,163,107,251,152,214,56,170,177,208,119,28,229,54,45,143,51,186,50,93,230,178,88,251,228,191,159,202,223,195,145,127,131,215,118,15,20,114,63,32,150,47,199,245,105,191,216,250,203,191,93,236,66,233,241,49,102,190,183,233,52,86,127,177,196,254,14,156,239,243,123,209,54,67,127,115,174,174,246,143,89,243,233,214,107,177,71,204,28,66,132,115,121,61,227,242,110,28,37,100,15,57,70,255,169,219,132,183,203,184,144,87,9,187,19,235,31,99,63,41,177,149,45,251,169,214,219,99,158,186,244,109,191,82,54,33,207,161,226,252,227,211,63,114,216,187,13,83,249,117,204,177,114,253,67,222,195,245,157,111,82,233,143,191,187,154,186,109,98,237,211,5,23,125,218,250,123,170,246,136,237,15,49,99,187,73,254,84,135,234,158,206,197,182,197,249,120,130,148,63,196,242,67,246,71,93,143,148,227,71,105,218,100,246,111,232,229,28,163,117,196,62,47,228,121,132,142,189,37,244,47,30,13,1,57,158,236,199,227,19,77,252,220,50,235,228,244,205,103,208,0,47,71,229,199,93,211,26,41,247,92,18,99,31,169,218,45,116,62,10,221,47,54,245,53,221,252,234,211,231,98,229,240,89,227,170,224,97,169,215,103,37,198,146,216,54,85,205,213,177,253,40,197,189,141,136,252,13,170,238,127,150,108,235,143,94,155,143,93,203,143,217,123,168,123,61,34,203,31,35,71,236,119,179,169,72,209,94,185,222,93,44,49,230,152,198,96,219,115,159,82,253,205,54,246,228,30,223,82,143,129,190,117,46,217,246,190,243,98,110,114,181,173,74,175,185,230,65,159,54,20,227,170,158,141,197,140,185,41,116,22,59,255,196,150,149,218,206,83,146,66,63,177,117,9,181,83,223,126,159,123,158,74,161,203,16,185,100,157,197,236,23,250,252,6,123,142,242,83,180,75,234,249,223,102,159,114,250,208,250,243,163,14,27,18,105,91,174,125,9,249,13,65,113,125,153,250,119,9,83,231,215,205,32,111,142,117,250,46,133,80,149,61,169,241,79,129,170,13,74,150,161,243,23,127,75,84,165,7,85,120,105,22,42,144,229,83,201,107,35,133,108,62,229,249,200,163,146,79,142,235,90,151,73,67,158,62,182,165,114,117,101,233,210,134,246,1,211,216,29,219,134,174,115,68,206,188,115,213,205,102,183,46,237,23,154,191,107,153,41,40,173,199,144,114,76,125,189,212,239,58,139,191,117,106,250,31,175,212,54,225,59,238,250,150,153,218,174,82,235,61,119,249,169,229,79,37,95,174,254,26,91,63,221,122,199,197,126,125,214,18,62,246,238,179,70,40,185,46,203,85,134,106,45,19,83,158,105,125,20,179,38,172,99,13,28,187,126,141,189,55,143,221,31,41,165,39,215,122,255,15]),xSt=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,tse=T((t,e,n)=>{const r=t[e];t[e]=t[n],t[n]=r},"swap"),OSt=T(t=>{const e=t.length;for(let n=0;n<e;n+=4)tse(t,n,n+3),tse(t,n+1,n+2)},"swap32"),NSt=T(t=>{xSt&&OSt(t)},"swap32LE"),cJ=0,T5e=-3;var ON;let m_=(ON=class{constructor(){q(this,"table",new Uint16Array(16)),q(this,"trans",new Uint16Array(288))}},T(ON,"Tree"),ON);var NN;let kSt=(NN=class{constructor(t,e){q(this,"source"),q(this,"dest"),q(this,"sourceIndex"),q(this,"tag"),q(this,"bitcount"),q(this,"destLen"),q(this,"ltree"),q(this,"dtree"),this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new m_,this.dtree=new m_}},T(NN,"Data"),NN);const L5e=new m_,x5e=new m_,dJ=new Uint8Array(30),hJ=new Uint16Array(30),O5e=new Uint8Array(30),N5e=new Uint16Array(30),FSt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nse=new m_,Dd=new Uint8Array(320);function fJ(t,e,n,r){let i,a;for(i=0;i<n;++i)t[i]=0;for(i=0;i<30-n;++i)t[i+n]=i/n|0;for(a=r,i=0;i<30;++i)e[i]=a,a+=1<<t[i]}T(fJ,"tinf_build_bits_base$1");function k5e(t,e){let n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n}T(k5e,"tinf_build_fixed_trees$1");const rse=new Uint16Array(16);function zE(t,e,n,r){let i,a;for(i=0;i<16;++i)t.table[i]=0;for(i=0;i<r;++i)t.table[e[n+i]]++;for(t.table[0]=0,a=0,i=0;i<16;++i)rse[i]=a,a+=t.table[i];for(i=0;i<r;++i)e[n+i]&&(t.trans[rse[e[n+i]]++]=i)}T(zE,"tinf_build_tree$1");function F5e(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);const e=t.tag&1;return t.tag>>>=1,e}T(F5e,"tinf_getbit$1");function j1(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;const r=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,r+n}T(j1,"tinf_read_bits$1");function ED(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;let n=0,r=0,i=0,a=t.tag;do r=2*r+(a&1),a>>>=1,++i,n+=e.table[i],r-=e.table[i];while(r>=0);return t.tag=a,t.bitcount-=i,e.trans[n+r]}T(ED,"tinf_decode_symbol$1");function V5e(t,e,n){let r,i,a;const o=j1(t,5,257),s=j1(t,5,1),l=j1(t,4,4);for(r=0;r<19;++r)Dd[r]=0;for(r=0;r<l;++r){const u=j1(t,3,0);Dd[FSt[r]]=u}for(zE(nse,Dd,0,19),i=0;i<o+s;){const u=ED(t,nse);switch(u){case 16:{const c=Dd[i-1];for(a=j1(t,2,3);a;--a)Dd[i++]=c;break}case 17:for(a=j1(t,3,3);a;--a)Dd[i++]=0;break;case 18:for(a=j1(t,7,11);a;--a)Dd[i++]=0;break;default:Dd[i++]=u;break}}zE(e,Dd,0,o),zE(n,Dd,o,s)}T(V5e,"tinf_decode_trees$1");function vW(t,e,n){for(;;){let r=ED(t,e);if(r===256)return cJ;if(r<256)t.dest[t.destLen++]=r;else{let i;r-=257;const a=j1(t,dJ[r],hJ[r]),o=ED(t,n),s=t.destLen-j1(t,O5e[o],N5e[o]);for(i=s;i<s+a;++i)t.dest[t.destLen++]=t.dest[i]}}}T(vW,"tinf_inflate_block_data$1");function B5e(t){let e,n,r;for(;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if(e=t.source[t.sourceIndex+1],e=256*e+t.source[t.sourceIndex],n=t.source[t.sourceIndex+3],n=256*n+t.source[t.sourceIndex+2],e!==(~n&65535))return T5e;for(t.sourceIndex+=4,r=e;r;--r)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,cJ}T(B5e,"tinf_inflate_uncompressed_block$1");function _W(t,e){const n=new kSt(t,e);let r,i,a;do{switch(r=F5e(n),i=j1(n,2,0),i){case 0:a=B5e(n);break;case 1:a=vW(n,L5e,x5e);break;case 2:V5e(n,n.ltree,n.dtree),a=vW(n,n.ltree,n.dtree);break;default:a=T5e}if(a!==cJ)throw new Error("Data error")}while(!r);return n.destLen<n.dest.length?typeof n.dest.slice=="function"?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest}T(_W,"tinf_uncompress$1");k5e(L5e,x5e);fJ(dJ,hJ,4,3);fJ(O5e,N5e,2,1);dJ[28]=0;hJ[28]=258;const mJ=11,Tg=5,VSt=mJ-Tg,BSt=65536>>mJ,USt=1<<VSt,HSt=USt-1,qE=2,jSt=1<<Tg,kN=jSt-1,U5e=65536>>Tg,$St=1024>>Tg,WSt=U5e+$St,zSt=WSt,qSt=32,YSt=zSt+qSt,XSt=1<<qE,H5e=class{constructor(e){q(this,"highStart"),q(this,"errorValue"),q(this,"data");const n=typeof e.readUInt32BE=="function"&&typeof e.slice=="function";if(n||e instanceof Uint8Array){let r;if(n)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),r=e.readUInt32LE(8),e=e.slice(12);else{const i=new DataView(e.buffer);this.highStart=i.getUint32(0,!0),this.errorValue=i.getUint32(4,!0),r=i.getUint32(8,!0),e=e.subarray(12)}e=_W(e,new Uint8Array(r)),e=_W(e,new Uint8Array(r)),NSt(e),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let n;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(n=(this.data[e>>Tg]<<qE)+(e&kN),this.data[n]):e<=65535?(n=(this.data[U5e+(e-55296>>Tg)]<<qE)+(e&kN),this.data[n]):e<this.highStart?(n=this.data[YSt-BSt+(e>>mJ)],n=this.data[n+(e>>Tg&HSt)],n=(n<<qE)+(e&kN),this.data[n]):this.data[this.data.length-XSt]}};T(H5e,"UnicodeTrie");let GSt=H5e;const QSt=new GSt(LSt);function YE(t){switch(t){case ASt:return Zoe;case DSt:case ISt:case PSt:return Zoe;case wSt:return SSt;default:return t}}T(YE,"mapClass");function XE(t){switch(t){case pW:case I5e:return WE;case q5:return RSt;default:return t}}T(XE,"mapFirst");const j5e=class{constructor(e){q(this,"_pos",0),q(this,"_lastPos",0),q(this,"_curClass",null),q(this,"_codePoint",null),q(this,"_lastCodePoint",null),q(this,"_nextClass",null),q(this,"_LB8a",!1),q(this,"_LB21a",!1),q(this,"_LB30a",0),q(this,"_rule",new TSt),this.content=e}use(e){return e(this),this}addRule(e,n){return this._rule.add(e,n),this}nextBreakPoint(){if(this._curClass==null){const e=this._nextCharClass();this._curClass=XE(e),this._nextClass=e,this._LB8a=e===ese,this._LB30a=0}for(;this._pos<this.content.length;){this._lastPos=this._pos;const e=this._nextClass;if(this._nextClass=this._nextCharClass(),this._curClass===WE||this._curClass===xN&&this._nextClass!==pW)return this._curClass=XE(YE(this._nextClass)),new Km(this._lastPos,qs.Mandatory);if(this._rule.shouldBreak(this._codePoint,this._lastCodePoint,this._nextClass))return this._curClass=XE(YE(this._nextClass)),new Km(this._lastPos);let n=this._getSimpleBreak();if(n===null&&(n=this._getPairTableBreak(e)),this._LB8a=this._nextClass===ese,n)return new Km(this._lastPos)}return this._lastPos<this.content.length?(this._lastPos=this.content.length,new Km(this.content.length)):null}_getNextCodePoint(){const e=this.content.charCodeAt(this._pos++),n=this.content.charCodeAt(this._pos);return e>=55296&&e<=56319&&n>=56320&&n<=57343?(this._pos++,(e-55296)*1024+(n-56320)+65536):e}_nextCharClass(){const e=this._getNextCodePoint(),n=QSt.get(e);return this._lastCodePoint=this._codePoint,this._codePoint=e,YE(n)}_getSimpleBreak(){switch(this._nextClass){case q5:return!1;case WE:case pW:case I5e:return this._curClass=WE,!1;case xN:return this._curClass=xN,!1}return null}_getPairTableBreak(e){let n=!1;switch(MSt[this._curClass][this._nextClass]){case re:n=!0;break;case ge:n=e===q5;break;case ra:if(n=e===q5,!n)return n=!1,n;break;case P5e:if(e!==q5)return n;break}return this._LB8a&&(n=!1),this._LB21a&&(this._curClass===ySt||this._curClass===ESt)?(n=!1,this._LB21a=!1):this._LB21a=this._curClass===bSt,this._curClass===Joe?(this._LB30a++,this._LB30a===2&&this._nextClass===Joe&&(n=!0,this._LB30a=0)):this._LB30a=0,this._curClass=this._nextClass,n}};T(j5e,"LineBreaker");let KSt=j5e;const ZSt=9;function $5e(t){t.addRule("break_before_tab",e=>e===ZSt)}T($5e,"tabLineBreakExtension");/*! https://mths.be/codepointat v0.2.0 by @mathias */String.prototype.codePointAt||function(){var t=function(){try{var n={},r=Object.defineProperty,i=r(n,n,n)&&r}catch{}return i}(),e=T(function(n){if(this==null)throw TypeError();var r=String(this),i=r.length,a=n?Number(n):0;if(a!=a&&(a=0),!(a<0||a>=i)){var o=r.charCodeAt(a),s;return o>=55296&&o<=56319&&i>a+1&&(s=r.charCodeAt(a+1),s>=56320&&s<=57343)?(o-55296)*1024+s-56320+65536:o}},"codePointAt");t?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e}();var gJ=0,W5e=-3;function W4(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}T(W4,"Tree");function z5e(t,e){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new W4,this.dtree=new W4}T(z5e,"Data");var q5e=new W4,Y5e=new W4,pJ=new Uint8Array(30),vJ=new Uint16Array(30),X5e=new Uint8Array(30),G5e=new Uint16Array(30),JSt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ise=new W4,Id=new Uint8Array(320);function _J(t,e,n,r){var i,a;for(i=0;i<n;++i)t[i]=0;for(i=0;i<30-n;++i)t[i+n]=i/n|0;for(a=r,i=0;i<30;++i)e[i]=a,a+=1<<t[i]}T(_J,"tinf_build_bits_base");function Q5e(t,e){var n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n}T(Q5e,"tinf_build_fixed_trees");var ase=new Uint16Array(16);function GE(t,e,n,r){var i,a;for(i=0;i<16;++i)t.table[i]=0;for(i=0;i<r;++i)t.table[e[n+i]]++;for(t.table[0]=0,a=0,i=0;i<16;++i)ase[i]=a,a+=t.table[i];for(i=0;i<r;++i)e[n+i]&&(t.trans[ase[e[n+i]]++]=i)}T(GE,"tinf_build_tree");function K5e(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);var e=t.tag&1;return t.tag>>>=1,e}T(K5e,"tinf_getbit");function $1(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var r=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,r+n}T($1,"tinf_read_bits");function RD(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var n=0,r=0,i=0,a=t.tag;do r=2*r+(a&1),a>>>=1,++i,n+=e.table[i],r-=e.table[i];while(r>=0);return t.tag=a,t.bitcount-=i,e.trans[n+r]}T(RD,"tinf_decode_symbol");function Z5e(t,e,n){var r,i,a,o,s,l;for(r=$1(t,5,257),i=$1(t,5,1),a=$1(t,4,4),o=0;o<19;++o)Id[o]=0;for(o=0;o<a;++o){var u=$1(t,3,0);Id[JSt[o]]=u}for(GE(ise,Id,0,19),s=0;s<r+i;){var c=RD(t,ise);switch(c){case 16:var d=Id[s-1];for(l=$1(t,2,3);l;--l)Id[s++]=d;break;case 17:for(l=$1(t,3,3);l;--l)Id[s++]=0;break;case 18:for(l=$1(t,7,11);l;--l)Id[s++]=0;break;default:Id[s++]=c;break}}GE(e,Id,0,r),GE(n,Id,r,i)}T(Z5e,"tinf_decode_trees");function CW(t,e,n){for(;;){var r=RD(t,e);if(r===256)return gJ;if(r<256)t.dest[t.destLen++]=r;else{var i,a,o,s;for(r-=257,i=$1(t,pJ[r],vJ[r]),a=RD(t,n),o=t.destLen-$1(t,X5e[a],G5e[a]),s=o;s<o+i;++s)t.dest[t.destLen++]=t.dest[s]}}}T(CW,"tinf_inflate_block_data");function J5e(t){for(var e,n,r;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if(e=t.source[t.sourceIndex+1],e=256*e+t.source[t.sourceIndex],n=t.source[t.sourceIndex+3],n=256*n+t.source[t.sourceIndex+2],e!==(~n&65535))return W5e;for(t.sourceIndex+=4,r=e;r;--r)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,gJ}T(J5e,"tinf_inflate_uncompressed_block");function e8e(t,e){var n=new z5e(t,e),r,i,a;do{switch(r=K5e(n),i=$1(n,2,0),i){case 0:a=J5e(n);break;case 1:a=CW(n,q5e,Y5e);break;case 2:Z5e(n,n.ltree,n.dtree),a=CW(n,n.ltree,n.dtree);break;default:a=W5e}if(a!==gJ)throw new Error("Data error")}while(!r);return n.destLen<n.dest.length?typeof n.dest.slice=="function"?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest}T(e8e,"tinf_uncompress");Q5e(q5e,Y5e);_J(pJ,vJ,4,3);_J(X5e,G5e,2,1);pJ[28]=0;vJ[28]=258;var ebt=e8e;function rg(t,e,n,r,i){return Math.pow(1-i,3)*t+3*Math.pow(1-i,2)*i*e+3*(1-i)*Math.pow(i,2)*n+Math.pow(i,3)*r}T(rg,"derive");function em(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}T(em,"BoundingBox");em.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)};em.prototype.addPoint=function(t,e){typeof t=="number"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof e=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))};em.prototype.addX=function(t){this.addPoint(t,null)};em.prototype.addY=function(t){this.addPoint(null,t)};em.prototype.addBezier=function(t,e,n,r,i,a,o,s){var l=[t,e],u=[n,r],c=[i,a],d=[o,s];this.addPoint(t,e),this.addPoint(o,s);for(var h=0;h<=1;h++){var f=6*l[h]-12*u[h]+6*c[h],m=-3*l[h]+9*u[h]-9*c[h]+3*d[h],g=3*u[h]-3*l[h];if(m===0){if(f===0)continue;var p=-g/f;0<p&&p<1&&(h===0&&this.addX(rg(l[h],u[h],c[h],d[h],p)),h===1&&this.addY(rg(l[h],u[h],c[h],d[h],p)));continue}var v=Math.pow(f,2)-4*g*m;if(!(v<0)){var _=(-f+Math.sqrt(v))/(2*m);0<_&&_<1&&(h===0&&this.addX(rg(l[h],u[h],c[h],d[h],_)),h===1&&this.addY(rg(l[h],u[h],c[h],d[h],_)));var C=(-f-Math.sqrt(v))/(2*m);0<C&&C<1&&(h===0&&this.addX(rg(l[h],u[h],c[h],d[h],C)),h===1&&this.addY(rg(l[h],u[h],c[h],d[h],C)))}}};em.prototype.addQuad=function(t,e,n,r,i,a){var o=t+.6666666666666666*(n-t),s=e+2/3*(r-e),l=o+1/3*(i-t),u=s+1/3*(a-e);this.addBezier(t,e,o,s,l,u,i,a)};function ns(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}T(ns,"Path$1");ns.prototype.moveTo=function(t,e){this.commands.push({type:"M",x:t,y:e})};ns.prototype.lineTo=function(t,e){this.commands.push({type:"L",x:t,y:e})};ns.prototype.curveTo=ns.prototype.bezierCurveTo=function(t,e,n,r,i,a){this.commands.push({type:"C",x1:t,y1:e,x2:n,y2:r,x:i,y:a})};ns.prototype.quadTo=ns.prototype.quadraticCurveTo=function(t,e,n,r){this.commands.push({type:"Q",x1:t,y1:e,x:n,y:r})};ns.prototype.close=ns.prototype.closePath=function(){this.commands.push({type:"Z"})};ns.prototype.extend=function(t){if(t.commands)t=t.commands;else if(t instanceof em){var e=t;this.moveTo(e.x1,e.y1),this.lineTo(e.x2,e.y1),this.lineTo(e.x2,e.y2),this.lineTo(e.x1,e.y2),this.close();return}Array.prototype.push.apply(this.commands,t)};ns.prototype.getBoundingBox=function(){for(var t=new em,e=0,n=0,r=0,i=0,a=0;a<this.commands.length;a++){var o=this.commands[a];switch(o.type){case"M":t.addPoint(o.x,o.y),e=r=o.x,n=i=o.y;break;case"L":t.addPoint(o.x,o.y),r=o.x,i=o.y;break;case"Q":t.addQuad(r,i,o.x1,o.y1,o.x,o.y),r=o.x,i=o.y;break;case"C":t.addBezier(r,i,o.x1,o.y1,o.x2,o.y2,o.x,o.y),r=o.x,i=o.y;break;case"Z":r=e,i=n;break;default:throw new Error("Unexpected path command "+o.type)}}return t.isEmpty()&&t.addPoint(0,0),t};ns.prototype.draw=function(t){t.beginPath();for(var e=0;e<this.commands.length;e+=1){var n=this.commands[e];n.type==="M"?t.moveTo(n.x,n.y):n.type==="L"?t.lineTo(n.x,n.y):n.type==="C"?t.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):n.type==="Q"?t.quadraticCurveTo(n.x1,n.y1,n.x,n.y):n.type==="Z"&&t.closePath()}this.fill&&(t.fillStyle=this.fill,t.fill()),this.stroke&&(t.strokeStyle=this.stroke,t.lineWidth=this.strokeWidth,t.stroke())};ns.prototype.toPathData=function(t){t=t!==void 0?t:2;function e(o){return Math.round(o)===o?""+Math.round(o):o.toFixed(t)}T(e,"floatToString");function n(){for(var o=arguments,s="",l=0;l<arguments.length;l+=1){var u=o[l];u>=0&&l>0&&(s+=" "),s+=e(u)}return s}T(n,"packValues");for(var r="",i=0;i<this.commands.length;i+=1){var a=this.commands[i];a.type==="M"?r+="M"+n(a.x,a.y):a.type==="L"?r+="L"+n(a.x,a.y):a.type==="C"?r+="C"+n(a.x1,a.y1,a.x2,a.y2,a.x,a.y):a.type==="Q"?r+="Q"+n(a.x1,a.y1,a.x,a.y):a.type==="Z"&&(r+="Z")}return r};ns.prototype.toSVG=function(t){var e='<path d="';return e+=this.toPathData(t),e+='"',this.fill&&this.fill!=="black"&&(this.fill===null?e+=' fill="none"':e+=' fill="'+this.fill+'"'),this.stroke&&(e+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),e+="/>",e};ns.prototype.toDOMElement=function(t){var e=this.toPathData(t),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),n};function CJ(t){throw new Error(t)}T(CJ,"fail");function SW(t,e){t||CJ(e)}T(SW,"argument");var zr={fail:CJ,argument:SW,assert:SW},ose=32768,sse=2147483648,z4={},jn={},Yr={};function S1(t){return function(){return t}}T(S1,"constant");jn.BYTE=function(t){return zr.argument(t>=0&&t<=255,"Byte value should be between 0 and 255."),[t]};Yr.BYTE=S1(1);jn.CHAR=function(t){return[t.charCodeAt(0)]};Yr.CHAR=S1(1);jn.CHARARRAY=function(t){typeof t>"u"&&(t="",console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));for(var e=[],n=0;n<t.length;n+=1)e[n]=t.charCodeAt(n);return e};Yr.CHARARRAY=function(t){return typeof t>"u"?0:t.length};jn.USHORT=function(t){return[t>>8&255,t&255]};Yr.USHORT=S1(2);jn.SHORT=function(t){return t>=ose&&(t=-(2*ose-t)),[t>>8&255,t&255]};Yr.SHORT=S1(2);jn.UINT24=function(t){return[t>>16&255,t>>8&255,t&255]};Yr.UINT24=S1(3);jn.ULONG=function(t){return[t>>24&255,t>>16&255,t>>8&255,t&255]};Yr.ULONG=S1(4);jn.LONG=function(t){return t>=sse&&(t=-(2*sse-t)),[t>>24&255,t>>16&255,t>>8&255,t&255]};Yr.LONG=S1(4);jn.FIXED=jn.ULONG;Yr.FIXED=Yr.ULONG;jn.FWORD=jn.SHORT;Yr.FWORD=Yr.SHORT;jn.UFWORD=jn.USHORT;Yr.UFWORD=Yr.USHORT;jn.LONGDATETIME=function(t){return[0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255]};Yr.LONGDATETIME=S1(8);jn.TAG=function(t){return zr.argument(t.length===4,"Tag should be exactly 4 ASCII characters."),[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]};Yr.TAG=S1(4);jn.Card8=jn.BYTE;Yr.Card8=Yr.BYTE;jn.Card16=jn.USHORT;Yr.Card16=Yr.USHORT;jn.OffSize=jn.BYTE;Yr.OffSize=Yr.BYTE;jn.SID=jn.USHORT;Yr.SID=Yr.USHORT;jn.NUMBER=function(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?(t=t-108,[(t>>8)+247,t&255]):t>=-1131&&t<=-108?(t=-t-108,[(t>>8)+251,t&255]):t>=-32768&&t<=32767?jn.NUMBER16(t):jn.NUMBER32(t)};Yr.NUMBER=function(t){return jn.NUMBER(t).length};jn.NUMBER16=function(t){return[28,t>>8&255,t&255]};Yr.NUMBER16=S1(3);jn.NUMBER32=function(t){return[29,t>>24&255,t>>16&255,t>>8&255,t&255]};Yr.NUMBER32=S1(5);jn.REAL=function(t){var e=t.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));e=(Math.round(t*r)/r).toString()}for(var i="",a=0,o=e.length;a<o;a+=1){var s=e[a];s==="e"?i+=e[++a]==="-"?"c":"b":s==="."?i+="a":s==="-"?i+="e":i+=s}i+=i.length&1?"f":"ff";for(var l=[30],u=0,c=i.length;u<c;u+=2)l.push(parseInt(i.substr(u,2),16));return l};Yr.REAL=function(t){return jn.REAL(t).length};jn.NAME=jn.CHARARRAY;Yr.NAME=Yr.CHARARRAY;jn.STRING=jn.CHARARRAY;Yr.STRING=Yr.CHARARRAY;z4.UTF8=function(t,e,n){for(var r=[],i=n,a=0;a<i;a++,e+=1)r[a]=t.getUint8(e);return String.fromCharCode.apply(null,r)};z4.UTF16=function(t,e,n){for(var r=[],i=n/2,a=0;a<i;a++,e+=2)r[a]=t.getUint16(e);return String.fromCharCode.apply(null,r)};jn.UTF16=function(t){for(var e=[],n=0;n<t.length;n+=1){var r=t.charCodeAt(n);e[e.length]=r>>8&255,e[e.length]=r&255}return e};Yr.UTF16=function(t){return t.length*2};var bW={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};z4.MACSTRING=function(t,e,n,r){var i=bW[r];if(i!==void 0){for(var a="",o=0;o<n;o++){var s=t.getUint8(e+o);s<=127?a+=String.fromCharCode(s):a+=i[s&127]}return a}};var py=typeof WeakMap=="function"&&new WeakMap,vy,tbt=T(function(t){if(!vy){vy={};for(var e in bW)vy[e]=new String(e)}var n=vy[t];if(n!==void 0){if(py){var r=py.get(n);if(r!==void 0)return r}var i=bW[t];if(i!==void 0){for(var a={},o=0;o<i.length;o++)a[i.charCodeAt(o)]=o+128;return py&&py.set(n,a),a}}},"getMacEncodingTable");jn.MACSTRING=function(t,e){var n=tbt(e);if(n!==void 0){for(var r=[],i=0;i<t.length;i++){var a=t.charCodeAt(i);if(a>=128&&(a=n[a],a===void 0))return;r[i]=a}return r}};Yr.MACSTRING=function(t,e){var n=jn.MACSTRING(t,e);return n!==void 0?n.length:0};function AD(t){return t>=-128&&t<=127}T(AD,"isByteEncodable");function t8e(t,e,n){for(var r=0,i=t.length;e<i&&r<64&&t[e]===0;)++e,++r;return n.push(128|r-1),e}T(t8e,"encodeVarDeltaRunAsZeroes");function n8e(t,e,n){for(var r=0,i=t.length,a=e;a<i&&r<64;){var o=t[a];if(!AD(o)||o===0&&a+1<i&&t[a+1]===0)break;++a,++r}n.push(r-1);for(var s=e;s<a;++s)n.push(t[s]+256&255);return a}T(n8e,"encodeVarDeltaRunAsBytes");function r8e(t,e,n){for(var r=0,i=t.length,a=e;a<i&&r<64;){var o=t[a];if(o===0||AD(o)&&a+1<i&&AD(t[a+1]))break;++a,++r}n.push(64|r-1);for(var s=e;s<a;++s){var l=t[s];n.push(l+65536>>8&255,l+256&255)}return a}T(r8e,"encodeVarDeltaRunAsWords");jn.VARDELTAS=function(t){for(var e=0,n=[];e<t.length;){var r=t[e];r===0?e=t8e(t,e,n):r>=-128&&r<=127?e=n8e(t,e,n):e=r8e(t,e,n)}return n};jn.INDEX=function(t){for(var e=1,n=[e],r=[],i=0;i<t.length;i+=1){var a=jn.OBJECT(t[i]);Array.prototype.push.apply(r,a),e+=a.length,n.push(e)}if(r.length===0)return[0,0];for(var o=[],s=1+Math.floor(Math.log(e)/Math.log(2))/8|0,l=[void 0,jn.BYTE,jn.USHORT,jn.UINT24,jn.ULONG][s],u=0;u<n.length;u+=1){var c=l(n[u]);Array.prototype.push.apply(o,c)}return Array.prototype.concat(jn.Card16(t.length),jn.OffSize(s),o,r)};Yr.INDEX=function(t){return jn.INDEX(t).length};jn.DICT=function(t){for(var e=[],n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=parseInt(n[i],0),o=t[a];e=e.concat(jn.OPERAND(o.value,o.type)),e=e.concat(jn.OPERATOR(a))}return e};Yr.DICT=function(t){return jn.DICT(t).length};jn.OPERATOR=function(t){return t<1200?[t]:[12,t-1200]};jn.OPERAND=function(t,e){var n=[];if(Array.isArray(e))for(var r=0;r<e.length;r+=1)zr.argument(t.length===e.length,"Not enough arguments given for type"+e),n=n.concat(jn.OPERAND(t[r],e[r]));else if(e==="SID")n=n.concat(jn.NUMBER(t));else if(e==="offset")n=n.concat(jn.NUMBER32(t));else if(e==="number")n=n.concat(jn.NUMBER(t));else if(e==="real")n=n.concat(jn.REAL(t));else throw new Error("Unknown operand type "+e);return n};jn.OP=jn.BYTE;Yr.OP=Yr.BYTE;var _y=typeof WeakMap=="function"&&new WeakMap;jn.CHARSTRING=function(t){if(_y){var e=_y.get(t);if(e!==void 0)return e}for(var n=[],r=t.length,i=0;i<r;i+=1){var a=t[i];n=n.concat(jn[a.type](a.value))}return _y&&_y.set(t,n),n};Yr.CHARSTRING=function(t){return jn.CHARSTRING(t).length};jn.OBJECT=function(t){var e=jn[t.type];return zr.argument(e!==void 0,"No encoding function for type "+t.type),e(t.value)};Yr.OBJECT=function(t){var e=Yr[t.type];return zr.argument(e!==void 0,"No sizeOf function for type "+t.type),e(t.value)};jn.TABLE=function(t){for(var e=[],n=t.fields.length,r=[],i=[],a=0;a<n;a+=1){var o=t.fields[a],s=jn[o.type];zr.argument(s!==void 0,"No encoding function for field type "+o.type+" ("+o.name+")");var l=t[o.name];l===void 0&&(l=o.value);var u=s(l);o.type==="TABLE"?(i.push(e.length),e=e.concat([0,0]),r.push(u)):e=e.concat(u)}for(var c=0;c<r.length;c+=1){var d=i[c],h=e.length;zr.argument(h<65536,"Table "+t.tableName+" too big."),e[d]=h>>8,e[d+1]=h&255,e=e.concat(r[c])}return e};Yr.TABLE=function(t){for(var e=0,n=t.fields.length,r=0;r<n;r+=1){var i=t.fields[r],a=Yr[i.type];zr.argument(a!==void 0,"No sizeOf function for field type "+i.type+" ("+i.name+")");var o=t[i.name];o===void 0&&(o=i.value),e+=a(o),i.type==="TABLE"&&(e+=2)}return e};jn.RECORD=jn.TABLE;Yr.RECORD=Yr.TABLE;jn.LITERAL=function(t){return t};Yr.LITERAL=function(t){return t.length};function ps(t,e,n){if(e.length&&(e[0].name!=="coverageFormat"||e[0].value===1))for(var r=0;r<e.length;r+=1){var i=e[r];this[i.name]=i.value}if(this.tableName=t,this.fields=e,n)for(var a=Object.keys(n),o=0;o<a.length;o+=1){var s=a[o],l=n[s];this[s]!==void 0&&(this[s]=l)}}T(ps,"Table");ps.prototype.encode=function(){return jn.TABLE(this)};ps.prototype.sizeOf=function(){return Yr.TABLE(this)};function q4(t,e,n){n===void 0&&(n=e.length);var r=new Array(e.length+1);r[0]={name:t+"Count",type:"USHORT",value:n};for(var i=0;i<e.length;i++)r[i+1]={name:t+i,type:"USHORT",value:e[i]};return r}T(q4,"ushortList");function wD(t,e,n){var r=e.length,i=new Array(r+1);i[0]={name:t+"Count",type:"USHORT",value:r};for(var a=0;a<r;a++)i[a+1]={name:t+a,type:"TABLE",value:n(e[a],a)};return i}T(wD,"tableList");function Y4(t,e,n){var r=e.length,i=[];i[0]={name:t+"Count",type:"USHORT",value:r};for(var a=0;a<r;a++)i=i.concat(n(e[a],a));return i}T(Y4,"recordList");function g_(t){t.format===1?ps.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(q4("glyph",t.glyphs))):t.format===2?ps.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:2}].concat(Y4("rangeRecord",t.ranges,function(e){return[{name:"startGlyphID",type:"USHORT",value:e.start},{name:"endGlyphID",type:"USHORT",value:e.end},{name:"startCoverageIndex",type:"USHORT",value:e.index}]}))):zr.assert(!1,"Coverage format must be 1 or 2.")}T(g_,"Coverage");g_.prototype=Object.create(ps.prototype);g_.prototype.constructor=g_;function p_(t){ps.call(this,"scriptListTable",Y4("scriptRecord",t,function(e,n){var r=e.script,i=r.defaultLangSys;return zr.assert(!!i,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+n,type:"TAG",value:e.tag},{name:"script"+n,type:"TABLE",value:new ps("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new ps("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:i.reqFeatureIndex}].concat(q4("featureIndex",i.featureIndexes)))}].concat(Y4("langSys",r.langSysRecords,function(a,o){var s=a.langSys;return[{name:"langSysTag"+o,type:"TAG",value:a.tag},{name:"langSys"+o,type:"TABLE",value:new ps("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:s.reqFeatureIndex}].concat(q4("featureIndex",s.featureIndexes)))}]})))}]}))}T(p_,"ScriptList");p_.prototype=Object.create(ps.prototype);p_.prototype.constructor=p_;function v_(t){ps.call(this,"featureListTable",Y4("featureRecord",t,function(e,n){var r=e.feature;return[{name:"featureTag"+n,type:"TAG",value:e.tag},{name:"feature"+n,type:"TABLE",value:new ps("featureTable",[{name:"featureParams",type:"USHORT",value:r.featureParams}].concat(q4("lookupListIndex",r.lookupListIndexes)))}]}))}T(v_,"FeatureList");v_.prototype=Object.create(ps.prototype);v_.prototype.constructor=v_;function __(t,e){ps.call(this,"lookupListTable",wD("lookup",t,function(n){var r=e[n.lookupType];return zr.assert(!!r,"Unable to write GSUB lookup type "+n.lookupType+" tables."),new ps("lookupTable",[{name:"lookupType",type:"USHORT",value:n.lookupType},{name:"lookupFlag",type:"USHORT",value:n.lookupFlag}].concat(wD("subtable",n.subtables,r)))}))}T(__,"LookupList");__.prototype=Object.create(ps.prototype);__.prototype.constructor=__;var nr={Table:ps,Record:ps,Coverage:g_,ScriptList:p_,FeatureList:v_,LookupList:__,ushortList:q4,tableList:wD,recordList:Y4};function yW(t,e){return t.getUint8(e)}T(yW,"getByte");function C_(t,e){return t.getUint16(e,!1)}T(C_,"getUShort");function i8e(t,e){return t.getInt16(e,!1)}T(i8e,"getShort");function kT(t,e){return t.getUint32(e,!1)}T(kT,"getULong");function SJ(t,e){var n=t.getInt16(e,!1),r=t.getUint16(e+2,!1);return n+r/65535}T(SJ,"getFixed");function a8e(t,e){for(var n="",r=e;r<e+4;r+=1)n+=String.fromCharCode(t.getInt8(r));return n}T(a8e,"getTag");function o8e(t,e,n){for(var r=0,i=0;i<n;i+=1)r<<=8,r+=t.getUint8(e+i);return r}T(o8e,"getOffset");function s8e(t,e,n){for(var r=[],i=e;i<n;i+=1)r.push(t.getUint8(i));return r}T(s8e,"getBytes");function l8e(t){for(var e="",n=0;n<t.length;n+=1)e+=String.fromCharCode(t[n]);return e}T(l8e,"bytesToString");var nbt={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function St(t,e){this.data=t,this.offset=e,this.relativeOffset=0}T(St,"Parser");St.prototype.parseByte=function(){var t=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t};St.prototype.parseChar=function(){var t=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t};St.prototype.parseCard8=St.prototype.parseByte;St.prototype.parseUShort=function(){var t=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t};St.prototype.parseCard16=St.prototype.parseUShort;St.prototype.parseSID=St.prototype.parseUShort;St.prototype.parseOffset16=St.prototype.parseUShort;St.prototype.parseShort=function(){var t=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t};St.prototype.parseF2Dot14=function(){var t=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,t};St.prototype.parseULong=function(){var t=kT(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t};St.prototype.parseOffset32=St.prototype.parseULong;St.prototype.parseFixed=function(){var t=SJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t};St.prototype.parseString=function(t){var e=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=t;for(var i=0;i<t;i++)r+=String.fromCharCode(e.getUint8(n+i));return r};St.prototype.parseTag=function(){return this.parseString(4)};St.prototype.parseLongDateTime=function(){var t=kT(this.data,this.offset+this.relativeOffset+4);return t-=2082844800,this.relativeOffset+=8,t};St.prototype.parseVersion=function(t){var e=C_(this.data,this.offset+this.relativeOffset),n=C_(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,t===void 0&&(t=4096),e+n/t/10};St.prototype.skip=function(t,e){e===void 0&&(e=1),this.relativeOffset+=nbt[t]*e};St.prototype.parseULongList=function(t){t===void 0&&(t=this.parseULong());for(var e=new Array(t),n=this.data,r=this.offset+this.relativeOffset,i=0;i<t;i++)e[i]=n.getUint32(r),r+=4;return this.relativeOffset+=t*4,e};St.prototype.parseOffset16List=St.prototype.parseUShortList=function(t){t===void 0&&(t=this.parseUShort());for(var e=new Array(t),n=this.data,r=this.offset+this.relativeOffset,i=0;i<t;i++)e[i]=n.getUint16(r),r+=2;return this.relativeOffset+=t*2,e};St.prototype.parseShortList=function(t){for(var e=new Array(t),n=this.data,r=this.offset+this.relativeOffset,i=0;i<t;i++)e[i]=n.getInt16(r),r+=2;return this.relativeOffset+=t*2,e};St.prototype.parseByteList=function(t){for(var e=new Array(t),n=this.data,r=this.offset+this.relativeOffset,i=0;i<t;i++)e[i]=n.getUint8(r++);return this.relativeOffset+=t,e};St.prototype.parseList=function(t,e){e||(e=t,t=this.parseUShort());for(var n=new Array(t),r=0;r<t;r++)n[r]=e.call(this);return n};St.prototype.parseList32=function(t,e){e||(e=t,t=this.parseULong());for(var n=new Array(t),r=0;r<t;r++)n[r]=e.call(this);return n};St.prototype.parseRecordList=function(t,e){e||(e=t,t=this.parseUShort());for(var n=new Array(t),r=Object.keys(e),i=0;i<t;i++){for(var a={},o=0;o<r.length;o++){var s=r[o],l=e[s];a[s]=l.call(this)}n[i]=a}return n};St.prototype.parseRecordList32=function(t,e){e||(e=t,t=this.parseULong());for(var n=new Array(t),r=Object.keys(e),i=0;i<t;i++){for(var a={},o=0;o<r.length;o++){var s=r[o],l=e[s];a[s]=l.call(this)}n[i]=a}return n};St.prototype.parseStruct=function(t){if(typeof t=="function")return t.call(this);for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r],a=t[i];n[i]=a.call(this)}return n};St.prototype.parseValueRecord=function(t){if(t===void 0&&(t=this.parseUShort()),t!==0){var e={};return t&1&&(e.xPlacement=this.parseShort()),t&2&&(e.yPlacement=this.parseShort()),t&4&&(e.xAdvance=this.parseShort()),t&8&&(e.yAdvance=this.parseShort()),t&16&&(e.xPlaDevice=void 0,this.parseShort()),t&32&&(e.yPlaDevice=void 0,this.parseShort()),t&64&&(e.xAdvDevice=void 0,this.parseShort()),t&128&&(e.yAdvDevice=void 0,this.parseShort()),e}};St.prototype.parseValueRecordList=function(){for(var t=this.parseUShort(),e=this.parseUShort(),n=new Array(e),r=0;r<e;r++)n[r]=this.parseValueRecord(t);return n};St.prototype.parsePointer=function(t){var e=this.parseOffset16();if(e>0)return new St(this.data,this.offset+e).parseStruct(t)};St.prototype.parsePointer32=function(t){var e=this.parseOffset32();if(e>0)return new St(this.data,this.offset+e).parseStruct(t)};St.prototype.parseListOfLists=function(t){for(var e=this.parseOffset16List(),n=e.length,r=this.relativeOffset,i=new Array(n),a=0;a<n;a++){var o=e[a];if(o===0){i[a]=void 0;continue}if(this.relativeOffset=o,t){for(var s=this.parseOffset16List(),l=new Array(s.length),u=0;u<s.length;u++)this.relativeOffset=o+s[u],l[u]=t.call(this);i[a]=l}else i[a]=this.parseUShortList()}return this.relativeOffset=r,i};St.prototype.parseCoverage=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort(),n=this.parseUShort();if(e===1)return{format:1,glyphs:this.parseUShortList(n)};if(e===2){for(var r=new Array(n),i=0;i<n;i++)r[i]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:r}}throw new Error("0x"+t.toString(16)+": Coverage format must be 1 or 2.")};St.prototype.parseClassDef=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(e===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(e===2)return{format:2,ranges:this.parseRecordList({start:St.uShort,end:St.uShort,classId:St.uShort})};throw new Error("0x"+t.toString(16)+": ClassDef format must be 1 or 2.")};St.list=function(t,e){return function(){return this.parseList(t,e)}};St.list32=function(t,e){return function(){return this.parseList32(t,e)}};St.recordList=function(t,e){return function(){return this.parseRecordList(t,e)}};St.recordList32=function(t,e){return function(){return this.parseRecordList32(t,e)}};St.pointer=function(t){return function(){return this.parsePointer(t)}};St.pointer32=function(t){return function(){return this.parsePointer32(t)}};St.tag=St.prototype.parseTag;St.byte=St.prototype.parseByte;St.uShort=St.offset16=St.prototype.parseUShort;St.uShortList=St.prototype.parseUShortList;St.uLong=St.offset32=St.prototype.parseULong;St.uLongList=St.prototype.parseULongList;St.struct=St.prototype.parseStruct;St.coverage=St.prototype.parseCoverage;St.classDef=St.prototype.parseClassDef;var lse={reserved:St.uShort,reqFeatureIndex:St.uShort,featureIndexes:St.uShortList};St.prototype.parseScriptList=function(){return this.parsePointer(St.recordList({tag:St.tag,script:St.pointer({defaultLangSys:St.pointer(lse),langSysRecords:St.recordList({tag:St.tag,langSys:St.pointer(lse)})})}))||[]};St.prototype.parseFeatureList=function(){return this.parsePointer(St.recordList({tag:St.tag,feature:St.pointer({featureParams:St.offset16,lookupListIndexes:St.uShortList})}))||[]};St.prototype.parseLookupList=function(t){return this.parsePointer(St.list(St.pointer(function(){var e=this.parseUShort();zr.argument(1<=e&&e<=9,"GPOS/GSUB lookup type "+e+" unknown.");var n=this.parseUShort(),r=n&16;return{lookupType:e,lookupFlag:n,subtables:this.parseList(St.pointer(t[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]};St.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var t=this.parseUShort(),e=this.parseUShort();zr.argument(t===1&&e<1,"GPOS/GSUB feature variations table unknown.");var n=this.parseRecordList32({conditionSetOffset:St.offset32,featureTableSubstitutionOffset:St.offset32});return n})||[]};var gr={getByte:yW,getCard8:yW,getUShort:C_,getCard16:C_,getShort:i8e,getULong:kT,getFixed:SJ,getTag:a8e,getOffset:o8e,getBytes:s8e,bytesToString:l8e,Parser:St};function u8e(t,e){e.parseUShort(),t.length=e.parseULong(),t.language=e.parseULong();var n;t.groupCount=n=e.parseULong(),t.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var i=e.parseULong(),a=e.parseULong(),o=e.parseULong(),s=i;s<=a;s+=1)t.glyphIndexMap[s]=o,o++}T(u8e,"parseCmapTableFormat12");function c8e(t,e,n,r,i){t.length=e.parseUShort(),t.language=e.parseUShort();var a;t.segCount=a=e.parseUShort()>>1,e.skip("uShort",3),t.glyphIndexMap={};for(var o=new gr.Parser(n,r+i+14),s=new gr.Parser(n,r+i+16+a*2),l=new gr.Parser(n,r+i+16+a*4),u=new gr.Parser(n,r+i+16+a*6),c=r+i+16+a*8,d=0;d<a-1;d+=1)for(var h=void 0,f=o.parseUShort(),m=s.parseUShort(),g=l.parseShort(),p=u.parseUShort(),v=m;v<=f;v+=1)p!==0?(c=u.offset+u.relativeOffset-2,c+=p,c+=(v-m)*2,h=gr.getUShort(n,c),h!==0&&(h=h+g&65535)):h=v+g&65535,t.glyphIndexMap[v]=h}T(c8e,"parseCmapTableFormat4");function d8e(t,e){var n={};n.version=gr.getUShort(t,e),zr.argument(n.version===0,"cmap table version should be 0."),n.numTables=gr.getUShort(t,e+2);for(var r=-1,i=n.numTables-1;i>=0;i-=1){var a=gr.getUShort(t,e+4+i*8),o=gr.getUShort(t,e+4+i*8+2);if(a===3&&(o===0||o===1||o===10)||a===0&&(o===0||o===1||o===2||o===3||o===4)){r=gr.getULong(t,e+4+i*8+4);break}}if(r===-1)throw new Error("No valid cmap sub-tables found.");var s=new gr.Parser(t,e+r);if(n.format=s.parseUShort(),n.format===12)u8e(n,s);else if(n.format===4)c8e(n,s,t,e,r);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");return n}T(d8e,"parseCmapTable");function h8e(t,e,n){t.segments.push({end:e,start:e,delta:-(e-n),offset:0,glyphIndex:n})}T(h8e,"addSegment");function f8e(t){t.segments.push({end:65535,start:65535,delta:1,offset:0})}T(f8e,"addTerminatorSegment");function m8e(t){var e=!0,n;for(n=t.length-1;n>0;n-=1){var r=t.get(n);if(r.unicode>65535){console.log("Adding CMAP format 12 (needed!)"),e=!1;break}}var i=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:e?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:e?12:20}];e||(i=i.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),i=i.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var a=new nr.Table("cmap",i);for(a.segments=[],n=0;n<t.length;n+=1){for(var o=t.get(n),s=0;s<o.unicodes.length;s+=1)h8e(a,o.unicodes[s],n);a.segments=a.segments.sort(function(_,C){return _.start-C.start})}f8e(a);var l=a.segments.length,u=0,c=[],d=[],h=[],f=[],m=[],g=[];for(n=0;n<l;n+=1){var p=a.segments[n];p.end<=65535&&p.start<=65535?(c=c.concat({name:"end_"+n,type:"USHORT",value:p.end}),d=d.concat({name:"start_"+n,type:"USHORT",value:p.start}),h=h.concat({name:"idDelta_"+n,type:"SHORT",value:p.delta}),f=f.concat({name:"idRangeOffset_"+n,type:"USHORT",value:p.offset}),p.glyphId!==void 0&&(m=m.concat({name:"glyph_"+n,type:"USHORT",value:p.glyphId}))):u+=1,!e&&p.glyphIndex!==void 0&&(g=g.concat({name:"cmap12Start_"+n,type:"ULONG",value:p.start}),g=g.concat({name:"cmap12End_"+n,type:"ULONG",value:p.end}),g=g.concat({name:"cmap12Glyph_"+n,type:"ULONG",value:p.glyphIndex}))}if(a.segCountX2=(l-u)*2,a.searchRange=Math.pow(2,Math.floor(Math.log(l-u)/Math.log(2)))*2,a.entrySelector=Math.log(a.searchRange/2)/Math.log(2),a.rangeShift=a.segCountX2-a.searchRange,a.fields=a.fields.concat(c),a.fields.push({name:"reservedPad",type:"USHORT",value:0}),a.fields=a.fields.concat(d),a.fields=a.fields.concat(h),a.fields=a.fields.concat(f),a.fields=a.fields.concat(m),a.cmap4Length=14+c.length*2+2+d.length*2+h.length*2+f.length*2+m.length*2,!e){var v=16+g.length*4;a.cmap12Offset=12+2*2+4+a.cmap4Length,a.fields=a.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:v},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:g.length/3}]),a.fields=a.fields.concat(g)}return a}T(m8e,"makeCmapTable");var g8e={parse:d8e,make:m8e},QE=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],rbt=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ibt=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],mg=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function bJ(t){this.font=t}T(bJ,"DefaultEncoding");bJ.prototype.charToGlyphIndex=function(t){var e=t.codePointAt(0),n=this.font.glyphs;if(n){for(var r=0;r<n.length;r+=1)for(var i=n.get(r),a=0;a<i.unicodes.length;a+=1)if(i.unicodes[a]===e)return r}return null};function yJ(t){this.cmap=t}T(yJ,"CmapEncoding");yJ.prototype.charToGlyphIndex=function(t){return this.cmap.glyphIndexMap[t.codePointAt(0)]||0};function S_(t,e){this.encoding=t,this.charset=e}T(S_,"CffEncoding");S_.prototype.charToGlyphIndex=function(t){var e=t.codePointAt(0),n=this.encoding[e];return this.charset.indexOf(n)};function FT(t){switch(t.version){case 1:this.names=mg.slice();break;case 2:this.names=new Array(t.numberOfGlyphs);for(var e=0;e<t.numberOfGlyphs;e++)t.glyphNameIndex[e]<mg.length?this.names[e]=mg[t.glyphNameIndex[e]]:this.names[e]=t.names[t.glyphNameIndex[e]-mg.length];break;case 2.5:this.names=new Array(t.numberOfGlyphs);for(var n=0;n<t.numberOfGlyphs;n++)this.names[n]=mg[n+t.glyphNameIndex[n]];break;case 3:this.names=[];break;default:this.names=[];break}}T(FT,"GlyphNames");FT.prototype.nameToGlyphIndex=function(t){return this.names.indexOf(t)};FT.prototype.glyphIndexToName=function(t){return this.names[t]};function p8e(t){for(var e,n=t.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var a=r[i],o=n[a];e=t.glyphs.get(o),e.addUnicode(parseInt(a))}for(var s=0;s<t.glyphs.length;s+=1)e=t.glyphs.get(s),t.cffEncoding?t.isCIDFont?e.name="gid"+s:e.name=t.cffEncoding.charset[s]:t.glyphNames.names&&(e.name=t.glyphNames.glyphIndexToName(s))}T(p8e,"addGlyphNamesAll");function v8e(t){t._IndexToUnicodeMap={};for(var e=t.tables.cmap.glyphIndexMap,n=Object.keys(e),r=0;r<n.length;r+=1){var i=n[r],a=e[i];t._IndexToUnicodeMap[a]===void 0?t._IndexToUnicodeMap[a]={unicodes:[parseInt(i)]}:t._IndexToUnicodeMap[a].unicodes.push(parseInt(i))}}T(v8e,"addGlyphNamesToUnicodeMap");function _8e(t,e){e.lowMemory?v8e(t):p8e(t)}T(_8e,"addGlyphNames");function C8e(t,e,n,r,i){t.beginPath(),t.moveTo(e,n),t.lineTo(r,i),t.stroke()}T(C8e,"line");var E2={line:C8e};function S8e(t,e){var n=e||new ns;return{configurable:!0,get:T(function(){return typeof n=="function"&&(n=n()),n},"get"),set:T(function(r){n=r},"set")}}T(S8e,"getPathDefinition");function wc(t){this.bindConstructorValues(t)}T(wc,"Glyph");wc.prototype.bindConstructorValues=function(t){this.index=t.index||0,this.name=t.name||null,this.unicode=t.unicode||void 0,this.unicodes=t.unicodes||t.unicode!==void 0?[t.unicode]:[],"xMin"in t&&(this.xMin=t.xMin),"yMin"in t&&(this.yMin=t.yMin),"xMax"in t&&(this.xMax=t.xMax),"yMax"in t&&(this.yMax=t.yMax),"advanceWidth"in t&&(this.advanceWidth=t.advanceWidth),Object.defineProperty(this,"path",S8e(this,t.path))};wc.prototype.addUnicode=function(t){this.unicodes.length===0&&(this.unicode=t),this.unicodes.push(t)};wc.prototype.getBoundingBox=function(){return this.path.getBoundingBox()};wc.prototype.getPath=function(t,e,n,r,i){t=t!==void 0?t:0,e=e!==void 0?e:0,n=n!==void 0?n:72;var a,o;r||(r={});var s=r.xScale,l=r.yScale;if(r.hinting&&i&&i.hinting&&(o=this.path&&i.hinting.exec(this,n)),o)a=i.hinting.getCommands(o),t=Math.round(t),e=Math.round(e),s=l=1;else{a=this.path.commands;var u=1/(this.path.unitsPerEm||1e3)*n;s===void 0&&(s=u),l===void 0&&(l=u)}for(var c=new ns,d=0;d<a.length;d+=1){var h=a[d];h.type==="M"?c.moveTo(t+h.x*s,e+-h.y*l):h.type==="L"?c.lineTo(t+h.x*s,e+-h.y*l):h.type==="Q"?c.quadraticCurveTo(t+h.x1*s,e+-h.y1*l,t+h.x*s,e+-h.y*l):h.type==="C"?c.curveTo(t+h.x1*s,e+-h.y1*l,t+h.x2*s,e+-h.y2*l,t+h.x*s,e+-h.y*l):h.type==="Z"&&c.closePath()}return c};wc.prototype.getContours=function(){if(this.points===void 0)return[];for(var t=[],e=[],n=0;n<this.points.length;n+=1){var r=this.points[n];e.push(r),r.lastPointOfContour&&(t.push(e),e=[])}return zr.argument(e.length===0,"There are still points left in the current contour."),t};wc.prototype.getMetrics=function(){for(var t=this.path.commands,e=[],n=[],r=0;r<t.length;r+=1){var i=t[r];i.type!=="Z"&&(e.push(i.x),n.push(i.y)),(i.type==="Q"||i.type==="C")&&(e.push(i.x1),n.push(i.y1)),i.type==="C"&&(e.push(i.x2),n.push(i.y2))}var a={xMin:Math.min.apply(null,e),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,e),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a};wc.prototype.draw=function(t,e,n,r,i){this.getPath(e,n,r,i).draw(t)};wc.prototype.drawPoints=function(t,e,n,r){function i(d,h,f,m){t.beginPath();for(var g=0;g<d.length;g+=1)t.moveTo(h+d[g].x*m,f+d[g].y*m),t.arc(h+d[g].x*m,f+d[g].y*m,2,0,Math.PI*2,!1);t.closePath(),t.fill()}T(i,"drawCircles"),e=e!==void 0?e:0,n=n!==void 0?n:0,r=r!==void 0?r:24;for(var a=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var c=l.commands[u];c.x!==void 0&&o.push({x:c.x,y:-c.y}),c.x1!==void 0&&s.push({x:c.x1,y:-c.y1}),c.x2!==void 0&&s.push({x:c.x2,y:-c.y2})}t.fillStyle="blue",i(o,e,n,a),t.fillStyle="red",i(s,e,n,a)};wc.prototype.drawMetrics=function(t,e,n,r){var i;e=e!==void 0?e:0,n=n!==void 0?n:0,r=r!==void 0?r:24,i=1/this.path.unitsPerEm*r,t.lineWidth=1,t.strokeStyle="black",E2.line(t,e,-1e4,e,1e4),E2.line(t,-1e4,n,1e4,n);var a=this.xMin||0,o=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;t.strokeStyle="blue",E2.line(t,e+a*i,-1e4,e+a*i,1e4),E2.line(t,e+s*i,-1e4,e+s*i,1e4),E2.line(t,-1e4,n+-o*i,1e4,n+-o*i),E2.line(t,-1e4,n+-l*i,1e4,n+-l*i),t.strokeStyle="green",E2.line(t,e+u*i,-1e4,e+u*i,1e4)};function Y5(t,e,n){Object.defineProperty(t,e,{get:T(function(){return t.path,t[n]},"get"),set:T(function(r){t[n]=r},"set"),enumerable:!0,configurable:!0})}T(Y5,"defineDependentProperty");function VT(t,e){if(this.font=t,this.glyphs={},Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];r.path.unitsPerEm=t.unitsPerEm,this.glyphs[n]=r}this.length=e&&e.length||0}T(VT,"GlyphSet");VT.prototype.get=function(t){if(this.glyphs[t]===void 0){this.font._push(t),typeof this.glyphs[t]=="function"&&(this.glyphs[t]=this.glyphs[t]());var e=this.glyphs[t],n=this.font._IndexToUnicodeMap[t];if(n)for(var r=0;r<n.unicodes.length;r++)e.addUnicode(n.unicodes[r]);this.font.cffEncoding?this.font.isCIDFont?e.name="gid"+t:e.name=this.font.cffEncoding.charset[t]:this.font.glyphNames.names&&(e.name=this.font.glyphNames.glyphIndexToName(t)),this.glyphs[t].advanceWidth=this.font._hmtxTableData[t].advanceWidth,this.glyphs[t].leftSideBearing=this.font._hmtxTableData[t].leftSideBearing}else typeof this.glyphs[t]=="function"&&(this.glyphs[t]=this.glyphs[t]());return this.glyphs[t]};VT.prototype.push=function(t,e){this.glyphs[t]=e,this.length++};function b8e(t,e){return new wc({index:e,font:t})}T(b8e,"glyphLoader");function y8e(t,e,n,r,i,a){return function(){var o=new wc({index:e,font:t});return o.path=function(){n(o,r,i);var s=a(t.glyphs,o);return s.unitsPerEm=t.unitsPerEm,s},Y5(o,"xMin","_xMin"),Y5(o,"xMax","_xMax"),Y5(o,"yMin","_yMin"),Y5(o,"yMax","_yMax"),o}}T(y8e,"ttfGlyphLoader");function E8e(t,e,n,r){return function(){var i=new wc({index:e,font:t});return i.path=function(){var a=n(t,i,r);return a.unitsPerEm=t.unitsPerEm,a},i}}T(E8e,"cffGlyphLoader");var Kd={GlyphSet:VT,glyphLoader:b8e,ttfGlyphLoader:y8e,cffGlyphLoader:E8e};function EJ(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n+=1)if(!EJ(t[n],e[n]))return!1;return!0}else return!1}T(EJ,"equals");function DD(t){var e;return t.length<1240?e=107:t.length<33900?e=1131:e=32768,e}T(DD,"calcCFFSubroutineBias");function $h(t,e,n){var r=[],i=[],a=gr.getCard16(t,e),o,s;if(a!==0){var l=gr.getByte(t,e+2);o=e+(a+1)*l+2;for(var u=e+3,c=0;c<a+1;c+=1)r.push(gr.getOffset(t,u,l)),u+=l;s=o+r[a]}else s=e+2;for(var d=0;d<r.length-1;d+=1){var h=gr.getBytes(t,o+r[d],o+r[d+1]);n&&(h=n(h)),i.push(h)}return{objects:i,startOffset:e,endOffset:s}}T($h,"parseCFFIndex");function R8e(t,e){var n=[],r=gr.getCard16(t,e),i,a;if(r!==0){var o=gr.getByte(t,e+2);i=e+(r+1)*o+2;for(var s=e+3,l=0;l<r+1;l+=1)n.push(gr.getOffset(t,s,o)),s+=o;a=i+n[r]}else a=e+2;return{offsets:n,startOffset:e,endOffset:a}}T(R8e,"parseCFFIndexLowMemory");function A8e(t,e,n,r,i){var a=gr.getCard16(n,r),o=0;if(a!==0){var s=gr.getByte(n,r+2);o=r+(a+1)*s+2}var l=gr.getBytes(n,o+e[t],o+e[t+1]);return l}T(A8e,"getCffIndexObject");function w8e(t){for(var e="",n=15,r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var i=t.parseByte(),a=i>>4,o=i&15;if(a===n||(e+=r[a],o===n))break;e+=r[o]}return parseFloat(e)}T(w8e,"parseFloatOperand");function D8e(t,e){var n,r,i,a;if(e===28)return n=t.parseByte(),r=t.parseByte(),n<<8|r;if(e===29)return n=t.parseByte(),r=t.parseByte(),i=t.parseByte(),a=t.parseByte(),n<<24|r<<16|i<<8|a;if(e===30)return w8e(t);if(e>=32&&e<=246)return e-139;if(e>=247&&e<=250)return n=t.parseByte(),(e-247)*256+n+108;if(e>=251&&e<=254)return n=t.parseByte(),-(e-251)*256-n-108;throw new Error("Invalid b0 "+e)}T(D8e,"parseOperand");function I8e(t){for(var e={},n=0;n<t.length;n+=1){var r=t[n][0],i=t[n][1],a=void 0;if(i.length===1?a=i[0]:a=i,e.hasOwnProperty(r)&&!isNaN(e[r]))throw new Error("Object "+e+" already has key "+r);e[r]=a}return e}T(I8e,"entriesToObject");function RJ(t,e,n){e=e!==void 0?e:0;var r=new gr.Parser(t,e),i=[],a=[];for(n=n!==void 0?n:t.length;r.relativeOffset<n;){var o=r.parseByte();o<=21?(o===12&&(o=1200+r.parseByte()),i.push([o,a]),a=[]):a.push(D8e(r,o))}return I8e(i)}T(RJ,"parseCFFDict");function K6(t,e){return e<=390?e=QE[e]:e=t[e-391],e}T(K6,"getCFFString");function AJ(t,e,n){for(var r={},i,a=0;a<e.length;a+=1){var o=e[a];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var l=0;l<o.type.length;l++)i=t[o.op]!==void 0?t[o.op][l]:void 0,i===void 0&&(i=o.value!==void 0&&o.value[l]!==void 0?o.value[l]:null),o.type[l]==="SID"&&(i=K6(n,i)),s[l]=i;r[o.name]=s}else i=t[o.op],i===void 0&&(i=o.value!==void 0?o.value:null),o.type==="SID"&&(i=K6(n,i)),r[o.name]=i}return r}T(AJ,"interpretDict");function P8e(t,e){var n={};return n.formatMajor=gr.getCard8(t,e),n.formatMinor=gr.getCard8(t,e+1),n.size=gr.getCard8(t,e+2),n.offsetSize=gr.getCard8(t,e+3),n.startOffset=e,n.endOffset=e+4,n}T(P8e,"parseCFFHeader");var M8e=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],T8e=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function L8e(t,e){var n=RJ(t,0,t.byteLength);return AJ(n,M8e,e)}T(L8e,"parseCFFTopDict");function wJ(t,e,n,r){var i=RJ(t,e,n);return AJ(i,T8e,r)}T(wJ,"parseCFFPrivateDict");function EW(t,e,n,r){for(var i=[],a=0;a<n.length;a+=1){var o=new DataView(new Uint8Array(n[a]).buffer),s=L8e(o,r);s._subrs=[],s._subrsBias=0,s._defaultWidthX=0,s._nominalWidthX=0;var l=s.private[0],u=s.private[1];if(l!==0&&u!==0){var c=wJ(t,u+e,l,r);if(s._defaultWidthX=c.defaultWidthX,s._nominalWidthX=c.nominalWidthX,c.subrs!==0){var d=u+c.subrs,h=$h(t,d+e);s._subrs=h.objects,s._subrsBias=DD(s._subrs)}s._privateDict=c}i.push(s)}return i}T(EW,"gatherCFFTopDicts");function x8e(t,e,n,r){var i,a,o=new gr.Parser(t,e);n-=1;var s=[".notdef"],l=o.parseCard8();if(l===0)for(var u=0;u<n;u+=1)i=o.parseSID(),s.push(K6(r,i));else if(l===1)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard8();for(var c=0;c<=a;c+=1)s.push(K6(r,i)),i+=1}else if(l===2)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard16();for(var d=0;d<=a;d+=1)s.push(K6(r,i)),i+=1}else throw new Error("Unknown charset format "+l);return s}T(x8e,"parseCFFCharset");function O8e(t,e,n){var r,i={},a=new gr.Parser(t,e),o=a.parseCard8();if(o===0)for(var s=a.parseCard8(),l=0;l<s;l+=1)r=a.parseCard8(),i[r]=l;else if(o===1){var u=a.parseCard8();r=1;for(var c=0;c<u;c+=1)for(var d=a.parseCard8(),h=a.parseCard8(),f=d;f<=d+h;f+=1)i[f]=r,r+=1}else throw new Error("Unknown encoding format "+o);return new S_(i,n)}T(O8e,"parseCFFEncoding");function RW(t,e,n){var r,i,a,o,s=new ns,l=[],u=0,c=!1,d=!1,h=0,f=0,m,g,p,v;if(t.isCIDFont){var _=t.tables.cff.topDict._fdSelect[e.index],C=t.tables.cff.topDict._fdArray[_];m=C._subrs,g=C._subrsBias,p=C._defaultWidthX,v=C._nominalWidthX}else m=t.tables.cff.topDict._subrs,g=t.tables.cff.topDict._subrsBias,p=t.tables.cff.topDict._defaultWidthX,v=t.tables.cff.topDict._nominalWidthX;var S=p;function b(w,P){d&&s.closePath(),s.moveTo(w,P),d=!0}T(b,"newContour");function y(){var w;w=l.length%2!==0,w&&!c&&(S=l.shift()+v),u+=l.length>>1,l.length=0,c=!0}T(y,"parseStems");function A(w){for(var P,M,L,k,O,$,B,V,X,z,F,H,W=0;W<w.length;){var K=w[W];switch(W+=1,K){case 1:y();break;case 3:y();break;case 4:l.length>1&&!c&&(S=l.shift()+v,c=!0),f+=l.pop(),b(h,f);break;case 5:for(;l.length>0;)h+=l.shift(),f+=l.shift(),s.lineTo(h,f);break;case 6:for(;l.length>0&&(h+=l.shift(),s.lineTo(h,f),l.length!==0);)f+=l.shift(),s.lineTo(h,f);break;case 7:for(;l.length>0&&(f+=l.shift(),s.lineTo(h,f),l.length!==0);)h+=l.shift(),s.lineTo(h,f);break;case 8:for(;l.length>0;)r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o+l.shift(),s.curveTo(r,i,a,o,h,f);break;case 10:O=l.pop()+g,$=m[O],$&&A($);break;case 11:return;case 12:switch(K=w[W],W+=1,K){case 35:r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),B=a+l.shift(),V=o+l.shift(),X=B+l.shift(),z=V+l.shift(),F=X+l.shift(),H=z+l.shift(),h=F+l.shift(),f=H+l.shift(),l.shift(),s.curveTo(r,i,a,o,B,V),s.curveTo(X,z,F,H,h,f);break;case 34:r=h+l.shift(),i=f,a=r+l.shift(),o=i+l.shift(),B=a+l.shift(),V=o,X=B+l.shift(),z=o,F=X+l.shift(),H=f,h=F+l.shift(),s.curveTo(r,i,a,o,B,V),s.curveTo(X,z,F,H,h,f);break;case 36:r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),B=a+l.shift(),V=o,X=B+l.shift(),z=o,F=X+l.shift(),H=z+l.shift(),h=F+l.shift(),s.curveTo(r,i,a,o,B,V),s.curveTo(X,z,F,H,h,f);break;case 37:r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),B=a+l.shift(),V=o+l.shift(),X=B+l.shift(),z=V+l.shift(),F=X+l.shift(),H=z+l.shift(),Math.abs(F-h)>Math.abs(H-f)?h=F+l.shift():f=H+l.shift(),s.curveTo(r,i,a,o,B,V),s.curveTo(X,z,F,H,h,f);break;default:console.log("Glyph "+e.index+": unknown operator 1200"+K),l.length=0}break;case 14:l.length>0&&!c&&(S=l.shift()+v,c=!0),d&&(s.closePath(),d=!1);break;case 18:y();break;case 19:case 20:y(),W+=u+7>>3;break;case 21:l.length>2&&!c&&(S=l.shift()+v,c=!0),f+=l.pop(),h+=l.pop(),b(h,f);break;case 22:l.length>1&&!c&&(S=l.shift()+v,c=!0),h+=l.pop(),b(h,f);break;case 23:y();break;case 24:for(;l.length>2;)r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o+l.shift(),s.curveTo(r,i,a,o,h,f);h+=l.shift(),f+=l.shift(),s.lineTo(h,f);break;case 25:for(;l.length>6;)h+=l.shift(),f+=l.shift(),s.lineTo(h,f);r=h+l.shift(),i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o+l.shift(),s.curveTo(r,i,a,o,h,f);break;case 26:for(l.length%2&&(h+=l.shift());l.length>0;)r=h,i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a,f=o+l.shift(),s.curveTo(r,i,a,o,h,f);break;case 27:for(l.length%2&&(f+=l.shift());l.length>0;)r=h+l.shift(),i=f,a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o,s.curveTo(r,i,a,o,h,f);break;case 28:P=w[W],M=w[W+1],l.push((P<<24|M<<16)>>16),W+=2;break;case 29:O=l.pop()+t.gsubrsBias,$=t.gsubrs[O],$&&A($);break;case 30:for(;l.length>0&&(r=h,i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o+(l.length===1?l.shift():0),s.curveTo(r,i,a,o,h,f),l.length!==0);)r=h+l.shift(),i=f,a=r+l.shift(),o=i+l.shift(),f=o+l.shift(),h=a+(l.length===1?l.shift():0),s.curveTo(r,i,a,o,h,f);break;case 31:for(;l.length>0&&(r=h+l.shift(),i=f,a=r+l.shift(),o=i+l.shift(),f=o+l.shift(),h=a+(l.length===1?l.shift():0),s.curveTo(r,i,a,o,h,f),l.length!==0);)r=h,i=f+l.shift(),a=r+l.shift(),o=i+l.shift(),h=a+l.shift(),f=o+(l.length===1?l.shift():0),s.curveTo(r,i,a,o,h,f);break;default:K<32?console.log("Glyph "+e.index+": unknown operator "+K):K<247?l.push(K-139):K<251?(P=w[W],W+=1,l.push((K-247)*256+P+108)):K<255?(P=w[W],W+=1,l.push(-(K-251)*256-P-108)):(P=w[W],M=w[W+1],L=w[W+2],k=w[W+3],W+=4,l.push((P<<24|M<<16|L<<8|k)/65536))}}}return T(A,"parse"),A(n),e.advanceWidth=S,s}T(RW,"parseCFFCharstring");function N8e(t,e,n,r){var i=[],a,o=new gr.Parser(t,e),s=o.parseCard8();if(s===0)for(var l=0;l<n;l++){if(a=o.parseCard8(),a>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");i.push(a)}else if(s===3){var u=o.parseCard16(),c=o.parseCard16();if(c!==0)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+c);for(var d,h=0;h<u;h++){if(a=o.parseCard8(),d=o.parseCard16(),a>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");if(d>n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+d);for(;c<d;c++)i.push(a);c=d}if(d!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+d)}else throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);return i}T(N8e,"parseCFFFDSelect");function k8e(t,e,n,r){n.tables.cff={};var i=P8e(t,e),a=$h(t,i.endOffset,gr.bytesToString),o=$h(t,a.endOffset),s=$h(t,o.endOffset,gr.bytesToString),l=$h(t,s.endOffset);n.gsubrs=l.objects,n.gsubrsBias=DD(n.gsubrs);var u=EW(t,e,o.objects,s.objects);if(u.length!==1)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+u.length);var c=u[0];if(n.tables.cff.topDict=c,c._privateDict&&(n.defaultWidthX=c._privateDict.defaultWidthX,n.nominalWidthX=c._privateDict.nominalWidthX),c.ros[0]!==void 0&&c.ros[1]!==void 0&&(n.isCIDFont=!0),n.isCIDFont){var d=c.fdArray,h=c.fdSelect;if(d===0||h===0)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");d+=e;var f=$h(t,d),m=EW(t,e,f.objects,s.objects);c._fdArray=m,h+=e,c._fdSelect=N8e(t,h,n.numGlyphs,m.length)}var g=e+c.private[1],p=wJ(t,g,c.private[0],s.objects);if(n.defaultWidthX=p.defaultWidthX,n.nominalWidthX=p.nominalWidthX,p.subrs!==0){var v=g+p.subrs,_=$h(t,v);n.subrs=_.objects,n.subrsBias=DD(n.subrs)}else n.subrs=[],n.subrsBias=0;var C;r.lowMemory?(C=R8e(t,e+c.charStrings),n.nGlyphs=C.offsets.length):(C=$h(t,e+c.charStrings),n.nGlyphs=C.objects.length);var S=x8e(t,e+c.charset,n.nGlyphs,s.objects);if(c.encoding===0?n.cffEncoding=new S_(rbt,S):c.encoding===1?n.cffEncoding=new S_(ibt,S):n.cffEncoding=O8e(t,e+c.encoding,S),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new Kd.GlyphSet(n),r.lowMemory)n._push=function(A){var w=A8e(A,C.offsets,t,e+c.charStrings);n.glyphs.push(A,Kd.cffGlyphLoader(n,A,RW,w))};else for(var b=0;b<n.nGlyphs;b+=1){var y=C.objects[b];n.glyphs.push(b,Kd.cffGlyphLoader(n,b,RW,y))}}T(k8e,"parseCFFTable");function DJ(t,e){var n,r=QE.indexOf(t);return r>=0&&(n=r),r=e.indexOf(t),r>=0?n=r+QE.length:(n=QE.length+e.length,e.push(t)),n}T(DJ,"encodeString");function F8e(){return new nr.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}T(F8e,"makeHeader");function V8e(t){var e=new nr.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);e.names=[];for(var n=0;n<t.length;n+=1)e.names.push({name:"name_"+n,type:"NAME",value:t[n]});return e}T(V8e,"makeNameIndex");function IJ(t,e,n){for(var r={},i=0;i<t.length;i+=1){var a=t[i],o=e[a.name];o!==void 0&&!EJ(o,a.value)&&(a.type==="SID"&&(o=DJ(o,n)),r[a.op]={name:a.name,type:a.type,value:o})}return r}T(IJ,"makeDict");function AW(t,e){var n=new nr.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=IJ(M8e,t,e),n}T(AW,"makeTopDict");function wW(t){var e=new nr.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return e.topDicts=[{name:"topDict_0",type:"TABLE",value:t}],e}T(wW,"makeTopDictIndex");function B8e(t){var e=new nr.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);e.strings=[];for(var n=0;n<t.length;n+=1)e.strings.push({name:"string_"+n,type:"STRING",value:t[n]});return e}T(B8e,"makeStringIndex");function U8e(){return new nr.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}T(U8e,"makeGlobalSubrIndex");function H8e(t,e){for(var n=new nr.Record("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<t.length;r+=1){var i=t[r],a=DJ(i,e);n.fields.push({name:"glyph_"+r,type:"SID",value:a})}return n}T(H8e,"makeCharsets");function j8e(t){var e=[],n=t.path;e.push({name:"width",type:"NUMBER",value:t.advanceWidth});for(var r=0,i=0,a=0;a<n.commands.length;a+=1){var o=void 0,s=void 0,l=n.commands[a];if(l.type==="Q"){var u=.3333333333333333,c=2/3;l={type:"C",x:l.x,y:l.y,x1:Math.round(u*r+c*l.x1),y1:Math.round(u*i+c*l.y1),x2:Math.round(u*l.x+c*l.x1),y2:Math.round(u*l.y+c*l.y1)}}if(l.type==="M")o=Math.round(l.x-r),s=Math.round(l.y-i),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(l.x),i=Math.round(l.y);else if(l.type==="L")o=Math.round(l.x-r),s=Math.round(l.y-i),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rlineto",type:"OP",value:5}),r=Math.round(l.x),i=Math.round(l.y);else if(l.type==="C"){var d=Math.round(l.x1-r),h=Math.round(l.y1-i),f=Math.round(l.x2-l.x1),m=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),e.push({name:"dx1",type:"NUMBER",value:d}),e.push({name:"dy1",type:"NUMBER",value:h}),e.push({name:"dx2",type:"NUMBER",value:f}),e.push({name:"dy2",type:"NUMBER",value:m}),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(l.x),i=Math.round(l.y)}}return e.push({name:"endchar",type:"OP",value:14}),e}T(j8e,"glyphToOps");function $8e(t){for(var e=new nr.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<t.length;n+=1){var r=t.get(n),i=j8e(r);e.charStrings.push({name:r.name,type:"CHARSTRING",value:i})}return e}T($8e,"makeCharStringsIndex");function W8e(t,e){var n=new nr.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=IJ(T8e,t,e),n}T(W8e,"makePrivateDict");function z8e(t,e){for(var n=new nr.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),r=1/e.unitsPerEm,i={version:e.version,fullName:e.fullName,familyName:e.familyName,weight:e.weightName,fontBBox:e.fontBBox||[0,0,0,0],fontMatrix:[r,0,0,r,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a={},o=[],s,l=1;l<t.length;l+=1)s=t.get(l),o.push(s.name);var u=[];n.header=F8e(),n.nameIndex=V8e([e.postScriptName]);var c=AW(i,u);n.topDictIndex=wW(c),n.globalSubrIndex=U8e(),n.charsets=H8e(o,u),n.charStringsIndex=$8e(t),n.privateDict=W8e(a,u),n.stringIndex=B8e(u);var d=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf();return i.charset=d,i.encoding=0,i.charStrings=i.charset+n.charsets.sizeOf(),i.private[1]=i.charStrings+n.charStringsIndex.sizeOf(),c=AW(i,u),n.topDictIndex=wW(c),n}T(z8e,"makeCFFTable");var q8e={parse:k8e,make:z8e};function Y8e(t,e){var n={},r=new gr.Parser(t,e);return n.version=r.parseVersion(),n.fontRevision=Math.round(r.parseFixed()*1e3)/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),zr.argument(n.magicNumber===1594834165,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n}T(Y8e,"parseHeadTable");function X8e(t){var e=Math.round(new Date().getTime()/1e3)+2082844800,n=e;return t.createdTimestamp&&(n=t.createdTimestamp+2082844800),new nr.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:n},{name:"modified",type:"LONGDATETIME",value:e},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],t)}T(X8e,"makeHeadTable");var G8e={parse:Y8e,make:X8e};function Q8e(t,e){var n={},r=new gr.Parser(t,e);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n}T(Q8e,"parseHheaTable");function K8e(t){return new nr.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],t)}T(K8e,"makeHheaTable");var Z8e={parse:Q8e,make:K8e};function J8e(t,e,n,r,i){for(var a,o,s=new gr.Parser(t,e),l=0;l<r;l+=1){l<n&&(a=s.parseUShort(),o=s.parseShort());var u=i.get(l);u.advanceWidth=a,u.leftSideBearing=o}}T(J8e,"parseHmtxTableAll");function eve(t,e,n,r,i){t._hmtxTableData={};for(var a,o,s=new gr.Parser(e,n),l=0;l<i;l+=1)l<r&&(a=s.parseUShort(),o=s.parseShort()),t._hmtxTableData[l]={advanceWidth:a,leftSideBearing:o}}T(eve,"parseHmtxTableOnLowMemory");function tve(t,e,n,r,i,a,o){o.lowMemory?eve(t,e,n,r,i):J8e(e,n,r,i,a)}T(tve,"parseHmtxTable");function nve(t){for(var e=new nr.Table("hmtx",[]),n=0;n<t.length;n+=1){var r=t.get(n),i=r.advanceWidth||0,a=r.leftSideBearing||0;e.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:i}),e.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:a})}return e}T(nve,"makeHmtxTable");var rve={parse:tve,make:nve};function ive(t){for(var e=new nr.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:t.length}]),n="",r=12+t.length*4,i=0;i<t.length;++i){var a=n.indexOf(t[i]);a<0&&(a=n.length,n+=t[i]),e.fields.push({name:"offset "+i,type:"USHORT",value:r+a}),e.fields.push({name:"length "+i,type:"USHORT",value:t[i].length})}return e.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),e}T(ive,"makeLtagTable");function ave(t,e){var n=new gr.Parser(t,e),r=n.parseULong();zr.argument(r===1,"Unsupported ltag table version."),n.skip("uLong",1);for(var i=n.parseULong(),a=[],o=0;o<i;o++){for(var s="",l=e+n.parseUShort(),u=n.parseUShort(),c=l;c<l+u;++c)s+=String.fromCharCode(t.getInt8(c));a.push(s)}return a}T(ave,"parseLtagTable");var ove={make:ive,parse:ave};function sve(t,e){var n={},r=new gr.Parser(t,e);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),n.version===1&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n}T(sve,"parseMaxpTable");function lve(t){return new nr.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:t}])}T(lve,"makeMaxpTable");var uve={parse:sve,make:lve},cve=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],dve={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},abt={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},hve={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function fve(t,e,n){switch(t){case 0:if(e===65535)return"und";if(n)return n[e];break;case 1:return dve[e];case 3:return hve[e]}}T(fve,"getLanguageCode");var DW="utf-16",obt={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},sbt={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function PJ(t,e,n){switch(t){case 0:return DW;case 1:return sbt[n]||obt[e];case 3:if(e===1||e===10)return DW;break}}T(PJ,"getEncoding");function mve(t,e,n){for(var r={},i=new gr.Parser(t,e),a=i.parseUShort(),o=i.parseUShort(),s=i.offset+i.parseUShort(),l=0;l<o;l++){var u=i.parseUShort(),c=i.parseUShort(),d=i.parseUShort(),h=i.parseUShort(),f=cve[h]||h,m=i.parseUShort(),g=i.parseUShort(),p=fve(u,d,n),v=PJ(u,c,d);if(v!==void 0&&p!==void 0){var _=void 0;if(v===DW?_=z4.UTF16(t,s+g,m):_=z4.MACSTRING(t,s+g,m,v),_){var C=r[f];C===void 0&&(C=r[f]={}),C[p]=_}}}return a===1&&i.parseUShort(),r}T(mve,"parseNameTable");function KE(t){var e={};for(var n in t)e[t[n]]=parseInt(n);return e}T(KE,"reverseDict");function IW(t,e,n,r,i,a){return new nr.Record("NameRecord",[{name:"platformID",type:"USHORT",value:t},{name:"encodingID",type:"USHORT",value:e},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:i},{name:"offset",type:"USHORT",value:a}])}T(IW,"makeNameRecord");function gve(t,e){var n=t.length,r=e.length-n+1;e:for(var i=0;i<r;i++)for(;i<r;i++){for(var a=0;a<n;a++)if(e[i+a]!==t[a])continue e;return i}return-1}T(gve,"findSubArray");function PW(t,e){var n=gve(t,e);if(n<0){n=e.length;for(var r=0,i=t.length;r<i;++r)e.push(t[r])}return n}T(PW,"addStringToPool");function pve(t,e){var n,r=[],i={},a=KE(cve);for(var o in t){var s=a[o];if(s===void 0&&(s=o),n=parseInt(s),isNaN(n))throw new Error('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');i[n]=t[o],r.push(n)}for(var l=KE(dve),u=KE(hve),c=[],d=[],h=0;h<r.length;h++){n=r[h];var f=i[n];for(var m in f){var g=f[m],p=1,v=l[m],_=abt[v],C=PJ(p,_,v),S=jn.MACSTRING(g,C);S===void 0&&(p=0,v=e.indexOf(m),v<0&&(v=e.length,e.push(m)),_=4,S=jn.UTF16(g));var b=PW(S,d);c.push(IW(p,_,v,n,S.length,b));var y=u[m];if(y!==void 0){var A=jn.UTF16(g),w=PW(A,d);c.push(IW(3,1,y,n,A.length,w))}}}c.sort(function(L,k){return L.platformID-k.platformID||L.encodingID-k.encodingID||L.languageID-k.languageID||L.nameID-k.nameID});for(var P=new nr.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:c.length},{name:"stringOffset",type:"USHORT",value:6+c.length*12}]),M=0;M<c.length;M++)P.fields.push({name:"record_"+M,type:"RECORD",value:c[M]});return P.fields.push({name:"strings",type:"LITERAL",value:d}),P}T(pve,"makeNameTable");var vve={parse:mve,make:pve},MW=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function _ve(t){for(var e=0;e<MW.length;e+=1){var n=MW[e];if(t>=n.begin&&t<n.end)return e}return-1}T(_ve,"getUnicodeRange");function Cve(t,e){var n={},r=new gr.Parser(t,e);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;i<10;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n}T(Cve,"parseOS2Table");function Sve(t){return new nr.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],t)}T(Sve,"makeOS2Table");var TW={parse:Cve,make:Sve,unicodeRanges:MW,getUnicodeRange:_ve};function bve(t,e){var n={},r=new gr.Parser(t,e);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=mg.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var i=0;i<n.numberOfGlyphs;i++)n.glyphNameIndex[i]=r.parseUShort();n.names=[];for(var a=0;a<n.numberOfGlyphs;a++)if(n.glyphNameIndex[a]>=mg.length){var o=r.parseChar();n.names.push(r.parseString(o))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar();break}return n}T(bve,"parsePostTable");function yve(){return new nr.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}T(yve,"makePostTable");var Eve={parse:bve,make:yve},gd=new Array(9);gd[1]=T(function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(e===1)return{substFormat:1,coverage:this.parsePointer(St.coverage),deltaGlyphId:this.parseUShort()};if(e===2)return{substFormat:2,coverage:this.parsePointer(St.coverage),substitute:this.parseOffset16List()};zr.assert(!1,"0x"+t.toString(16)+": lookup type 1 format must be 1 or 2.")},"parseLookup1");gd[2]=T(function(){var t=this.parseUShort();return zr.argument(t===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(St.coverage),sequences:this.parseListOfLists()}},"parseLookup2");gd[3]=T(function(){var t=this.parseUShort();return zr.argument(t===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(St.coverage),alternateSets:this.parseListOfLists()}},"parseLookup3");gd[4]=T(function(){var t=this.parseUShort();return zr.argument(t===1,"GSUB ligature table identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(St.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}},"parseLookup4");var Z6={sequenceIndex:St.uShort,lookupListIndex:St.uShort};gd[5]=T(function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(e===1)return{substFormat:e,coverage:this.parsePointer(St.coverage),ruleSets:this.parseListOfLists(function(){var i=this.parseUShort(),a=this.parseUShort();return{input:this.parseUShortList(i-1),lookupRecords:this.parseRecordList(a,Z6)}})};if(e===2)return{substFormat:e,coverage:this.parsePointer(St.coverage),classDef:this.parsePointer(St.classDef),classSets:this.parseListOfLists(function(){var i=this.parseUShort(),a=this.parseUShort();return{classes:this.parseUShortList(i-1),lookupRecords:this.parseRecordList(a,Z6)}})};if(e===3){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:e,coverages:this.parseList(n,St.pointer(St.coverage)),lookupRecords:this.parseRecordList(r,Z6)}}zr.assert(!1,"0x"+t.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},"parseLookup5");gd[6]=T(function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(e===1)return{substFormat:1,coverage:this.parsePointer(St.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Z6)}})};if(e===2)return{substFormat:2,coverage:this.parsePointer(St.coverage),backtrackClassDef:this.parsePointer(St.classDef),inputClassDef:this.parsePointer(St.classDef),lookaheadClassDef:this.parsePointer(St.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Z6)}})};if(e===3)return{substFormat:3,backtrackCoverage:this.parseList(St.pointer(St.coverage)),inputCoverage:this.parseList(St.pointer(St.coverage)),lookaheadCoverage:this.parseList(St.pointer(St.coverage)),lookupRecords:this.parseRecordList(Z6)};zr.assert(!1,"0x"+t.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},"parseLookup6");gd[7]=T(function(){var t=this.parseUShort();zr.argument(t===1,"GSUB Extension Substitution subtable identifier-format must be 1");var e=this.parseUShort(),n=new St(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:e,extension:gd[e].call(n)}},"parseLookup7");gd[8]=T(function(){var t=this.parseUShort();return zr.argument(t===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(St.coverage),backtrackCoverage:this.parseList(St.pointer(St.coverage)),lookaheadCoverage:this.parseList(St.pointer(St.coverage)),substitutes:this.parseUShortList()}},"parseLookup8");function Rve(t,e){e=e||0;var n=new St(t,e),r=n.parseVersion(1);return zr.argument(r===1||r===1.1,"Unsupported GSUB table version."),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(gd)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(gd),variations:n.parseFeatureVariationsList()}}T(Rve,"parseGsubTable");var H7=new Array(9);H7[1]=T(function(t){return t.substFormat===1?new nr.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)},{name:"deltaGlyphID",type:"USHORT",value:t.deltaGlyphId}]):new nr.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)}].concat(nr.ushortList("substitute",t.substitute)))},"makeLookup1");H7[2]=T(function(t){return zr.assert(t.substFormat===1,"Lookup type 2 substFormat must be 1."),new nr.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)}].concat(nr.tableList("seqSet",t.sequences,function(e){return new nr.Table("sequenceSetTable",nr.ushortList("sequence",e))})))},"makeLookup2");H7[3]=T(function(t){return zr.assert(t.substFormat===1,"Lookup type 3 substFormat must be 1."),new nr.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)}].concat(nr.tableList("altSet",t.alternateSets,function(e){return new nr.Table("alternateSetTable",nr.ushortList("alternate",e))})))},"makeLookup3");H7[4]=T(function(t){return zr.assert(t.substFormat===1,"Lookup type 4 substFormat must be 1."),new nr.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)}].concat(nr.tableList("ligSet",t.ligatureSets,function(e){return new nr.Table("ligatureSetTable",nr.tableList("ligature",e,function(n){return new nr.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:n.ligGlyph}].concat(nr.ushortList("component",n.components,n.components.length+1)))}))})))},"makeLookup4");H7[6]=T(function(t){if(t.substFormat===1){var e=new nr.Table("chainContextTable",[{name:"substFormat",type:"USHORT",value:t.substFormat},{name:"coverage",type:"TABLE",value:new nr.Coverage(t.coverage)}].concat(nr.tableList("chainRuleSet",t.chainRuleSets,function(i){return new nr.Table("chainRuleSetTable",nr.tableList("chainRule",i,function(a){var o=nr.ushortList("backtrackGlyph",a.backtrack,a.backtrack.length).concat(nr.ushortList("inputGlyph",a.input,a.input.length+1)).concat(nr.ushortList("lookaheadGlyph",a.lookahead,a.lookahead.length)).concat(nr.ushortList("substitution",[],a.lookupRecords.length));return a.lookupRecords.forEach(function(s,l){o=o.concat({name:"sequenceIndex"+l,type:"USHORT",value:s.sequenceIndex}).concat({name:"lookupListIndex"+l,type:"USHORT",value:s.lookupListIndex})}),new nr.Table("chainRuleTable",o)}))})));return e}else if(t.substFormat===2)zr.assert(!1,"lookup type 6 format 2 is not yet supported.");else if(t.substFormat===3){var n=[{name:"substFormat",type:"USHORT",value:t.substFormat}];n.push({name:"backtrackGlyphCount",type:"USHORT",value:t.backtrackCoverage.length}),t.backtrackCoverage.forEach(function(i,a){n.push({name:"backtrackCoverage"+a,type:"TABLE",value:new nr.Coverage(i)})}),n.push({name:"inputGlyphCount",type:"USHORT",value:t.inputCoverage.length}),t.inputCoverage.forEach(function(i,a){n.push({name:"inputCoverage"+a,type:"TABLE",value:new nr.Coverage(i)})}),n.push({name:"lookaheadGlyphCount",type:"USHORT",value:t.lookaheadCoverage.length}),t.lookaheadCoverage.forEach(function(i,a){n.push({name:"lookaheadCoverage"+a,type:"TABLE",value:new nr.Coverage(i)})}),n.push({name:"substitutionCount",type:"USHORT",value:t.lookupRecords.length}),t.lookupRecords.forEach(function(i,a){n=n.concat({name:"sequenceIndex"+a,type:"USHORT",value:i.sequenceIndex}).concat({name:"lookupListIndex"+a,type:"USHORT",value:i.lookupListIndex})});var r=new nr.Table("chainContextTable",n);return r}zr.assert(!1,"lookup type 6 format must be 1, 2 or 3.")},"makeLookup6");function Ave(t){return new nr.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new nr.ScriptList(t.scripts)},{name:"features",type:"TABLE",value:new nr.FeatureList(t.features)},{name:"lookups",type:"TABLE",value:new nr.LookupList(t.lookups,H7)}])}T(Ave,"makeGsubTable");var wve={parse:Rve,make:Ave};function Dve(t,e){var n=new gr.Parser(t,e),r=n.parseULong();zr.argument(r===1,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var i=n.parseULong(),a={},o=0;o<i;o++){var s=n.parseTag(),l=n.parseULong(),u=n.parseULong(),c=z4.UTF8(t,e+l,u);a[s]=c}return a}T(Dve,"parseMetaTable");function Ive(t){var e=Object.keys(t).length,n="",r=16+e*12,i=new nr.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:r},{name:"numTags",type:"ULONG",value:e}]);for(var a in t){var o=n.length;n+=t[a],i.fields.push({name:"tag "+a,type:"TAG",value:a}),i.fields.push({name:"offset "+a,type:"ULONG",value:r+o}),i.fields.push({name:"length "+a,type:"ULONG",value:t[a].length})}return i.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),i}T(Ive,"makeMetaTable");var Pve={parse:Dve,make:Ive};function LW(t){return Math.log(t)/Math.log(2)|0}T(LW,"log2");function BT(t){for(;t.length%4!==0;)t.push(0);for(var e=0,n=0;n<t.length;n+=4)e+=(t[n]<<24)+(t[n+1]<<16)+(t[n+2]<<8)+t[n+3];return e%=Math.pow(2,32),e}T(BT,"computeCheckSum");function xW(t,e,n,r){return new nr.Record("Table Record",[{name:"tag",type:"TAG",value:t!==void 0?t:""},{name:"checkSum",type:"ULONG",value:e!==void 0?e:0},{name:"offset",type:"ULONG",value:n!==void 0?n:0},{name:"length",type:"ULONG",value:r!==void 0?r:0}])}T(xW,"makeTableRecord");function MJ(t){var e=new nr.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);e.tables=t,e.numTables=t.length;var n=Math.pow(2,LW(e.numTables));e.searchRange=16*n,e.entrySelector=LW(n),e.rangeShift=e.numTables*16-e.searchRange;for(var r=[],i=[],a=e.sizeOf()+xW().sizeOf()*e.numTables;a%4!==0;)a+=1,i.push({name:"padding",type:"BYTE",value:0});for(var o=0;o<t.length;o+=1){var s=t[o];zr.argument(s.tableName.length===4,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),u=xW(s.tableName,BT(s.encode()),a,l);for(r.push({name:u.tag+" Table Record",type:"RECORD",value:u}),i.push({name:s.tableName+" table",type:"RECORD",value:s}),a+=l,zr.argument(!isNaN(a),"Something went wrong calculating the offset.");a%4!==0;)a+=1,i.push({name:"padding",type:"BYTE",value:0})}return r.sort(function(c,d){return c.value.tag>d.value.tag?1:-1}),e.fields=e.fields.concat(r),e.fields=e.fields.concat(i),e}T(MJ,"makeSfntTable");function OW(t,e,n){for(var r=0;r<e.length;r+=1){var i=t.charToGlyphIndex(e[r]);if(i>0){var a=t.glyphs.get(i);return a.getMetrics()}}return n}T(OW,"metricsForChar");function Mve(t){for(var e=0,n=0;n<t.length;n+=1)e+=t[n];return e/t.length}T(Mve,"average");function Tve(t){for(var e=[],n=[],r=[],i=[],a=[],o=[],s=[],l,u=0,c=0,d=0,h=0,f=0,m=0;m<t.glyphs.length;m+=1){var g=t.glyphs.get(m),p=g.unicode|0;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+m+"): advanceWidth is not a number.");(l>p||l===void 0)&&p>0&&(l=p),u<p&&(u=p);var v=TW.getUnicodeRange(p);if(v<32)c|=1<<v;else if(v<64)d|=1<<v-32;else if(v<96)h|=1<<v-64;else if(v<123)f|=1<<v-96;else throw new Error("Unicode ranges bits > 123 are reserved for internal usage");if(g.name!==".notdef"){var _=g.getMetrics();e.push(_.xMin),n.push(_.yMin),r.push(_.xMax),i.push(_.yMax),o.push(_.leftSideBearing),s.push(_.rightSideBearing),a.push(g.advanceWidth)}}var C={xMin:Math.min.apply(null,e),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,r),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:Mve(a),minLeftSideBearing:Math.min.apply(null,o),maxLeftSideBearing:Math.max.apply(null,o),minRightSideBearing:Math.min.apply(null,s)};C.ascender=t.ascender,C.descender=t.descender;var S=G8e.make({flags:3,unitsPerEm:t.unitsPerEm,xMin:C.xMin,yMin:C.yMin,xMax:C.xMax,yMax:C.yMax,lowestRecPPEM:3,createdTimestamp:t.createdTimestamp}),b=Z8e.make({ascender:C.ascender,descender:C.descender,advanceWidthMax:C.advanceWidthMax,minLeftSideBearing:C.minLeftSideBearing,minRightSideBearing:C.minRightSideBearing,xMaxExtent:C.maxLeftSideBearing+(C.xMax-C.xMin),numberOfHMetrics:t.glyphs.length}),y=uve.make(t.glyphs.length),A=TW.make(Object.assign({xAvgCharWidth:Math.round(C.advanceWidthAvg),usFirstCharIndex:l,usLastCharIndex:u,ulUnicodeRange1:c,ulUnicodeRange2:d,ulUnicodeRange3:h,ulUnicodeRange4:f,sTypoAscender:C.ascender,sTypoDescender:C.descender,sTypoLineGap:0,usWinAscent:C.yMax,usWinDescent:Math.abs(C.yMin),ulCodePageRange1:1,sxHeight:OW(t,"xyvw",{yMax:Math.round(C.ascender/2)}).yMax,sCapHeight:OW(t,"HIKLEFJMNTZBDPRAGOQSUVWXY",C).yMax,usDefaultChar:t.hasChar(" ")?32:0,usBreakChar:t.hasChar(" ")?32:0},t.tables.os2)),w=rve.make(t.glyphs),P=g8e.make(t.glyphs),M=t.getEnglishName("fontFamily"),L=t.getEnglishName("fontSubfamily"),k=M+" "+L,O=t.getEnglishName("postScriptName");O||(O=M.replace(/\s/g,"")+"-"+L);var $={};for(var B in t.names)$[B]=t.names[B];$.uniqueID||($.uniqueID={en:t.getEnglishName("manufacturer")+":"+k}),$.postScriptName||($.postScriptName={en:O}),$.preferredFamily||($.preferredFamily=t.names.fontFamily),$.preferredSubfamily||($.preferredSubfamily=t.names.fontSubfamily);var V=[],X=vve.make($,V),z=V.length>0?ove.make(V):void 0,F=Eve.make(),H=q8e.make(t.glyphs,{version:t.getEnglishName("version"),fullName:k,familyName:M,weightName:L,postScriptName:O,unitsPerEm:t.unitsPerEm,fontBBox:[0,C.yMin,C.ascender,C.advanceWidthMax]}),W=t.metas&&Object.keys(t.metas).length>0?Pve.make(t.metas):void 0,K=[S,b,y,A,X,P,F,H,w];z&&K.push(z),t.tables.gsub&&K.push(wve.make(t.tables.gsub)),W&&K.push(W);for(var G=MJ(K),te=G.encode(),Y=BT(te),ae=G.fields,ie=!1,ne=0;ne<ae.length;ne+=1)if(ae[ne].name==="head table"){ae[ne].value.checkSumAdjustment=2981146554-Y,ie=!0;break}if(!ie)throw new Error("Could not find head table with checkSum to adjust.");return G}T(Tve,"fontToSfntTable");var lbt={make:MJ,fontToTable:Tve,computeCheckSum:BT};function ZE(t,e){for(var n=0,r=t.length-1;n<=r;){var i=n+r>>>1,a=t[i].tag;if(a===e)return i;a<e?n=i+1:r=i-1}return-n-1}T(ZE,"searchTag");function NW(t,e){for(var n=0,r=t.length-1;n<=r;){var i=n+r>>>1,a=t[i];if(a===e)return i;a<e?n=i+1:r=i-1}return-n-1}T(NW,"binSearch");function kW(t,e){for(var n,r=0,i=t.length-1;r<=i;){var a=r+i>>>1;n=t[a];var o=n.start;if(o===e)return n;o<e?r=a+1:i=a-1}if(r>0)return n=t[r-1],e>n.end?0:n}T(kW,"searchRange");function j7(t,e){this.font=t,this.tableName=e}T(j7,"Layout");j7.prototype={searchTag:ZE,binSearch:NW,getTable:T(function(t){var e=this.font.tables[this.tableName];return!e&&t&&(e=this.font.tables[this.tableName]=this.createDefaultTable()),e},"getTable"),getScriptNames:T(function(){var t=this.getTable();return t?t.scripts.map(function(e){return e.tag}):[]},"getScriptNames"),getDefaultScriptName:T(function(){var t=this.getTable();if(t){for(var e=!1,n=0;n<t.scripts.length;n++){var r=t.scripts[n].tag;if(r==="DFLT")return r;r==="latn"&&(e=!0)}if(e)return"latn"}},"getDefaultScriptName"),getScriptTable:T(function(t,e){var n=this.getTable(e);if(n){t=t||"DFLT";var r=n.scripts,i=ZE(n.scripts,t);if(i>=0)return r[i].script;if(e){var a={tag:t,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,a),a.script}}},"getScriptTable"),getLangSysTable:T(function(t,e,n){var r=this.getScriptTable(t,n);if(r){if(!e||e==="dflt"||e==="DFLT")return r.defaultLangSys;var i=ZE(r.langSysRecords,e);if(i>=0)return r.langSysRecords[i].langSys;if(n){var a={tag:e,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-i,0,a),a.langSys}}},"getLangSysTable"),getFeatureTable:T(function(t,e,n,r){var i=this.getLangSysTable(t,e,r);if(i){for(var a,o=i.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<o.length;l++)if(a=s[o[l]],a.tag===n)return a.feature;if(r){var u=s.length;return zr.assert(u===0||n>=s[u-1].tag,"Features must be added in alphabetical order."),a={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(a),o.push(u),a.feature}}},"getFeatureTable"),getLookupTables:T(function(t,e,n,r,i){var a=this.getFeatureTable(t,e,n,i),o=[];if(a){for(var s,l=a.lookupListIndexes,u=this.font.tables[this.tableName].lookups,c=0;c<l.length;c++)s=u[l[c]],s.lookupType===r&&o.push(s);if(o.length===0&&i){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var d=u.length;return u.push(s),l.push(d),[s]}}return o},"getLookupTables"),getGlyphClass:T(function(t,e){switch(t.format){case 1:return t.startGlyph<=e&&e<t.startGlyph+t.classes.length?t.classes[e-t.startGlyph]:0;case 2:var n=kW(t.ranges,e);return n?n.classId:0}},"getGlyphClass"),getCoverageIndex:T(function(t,e){switch(t.format){case 1:var n=NW(t.glyphs,e);return n>=0?n:-1;case 2:var r=kW(t.ranges,e);return r?r.index+e-r.start:-1}},"getCoverageIndex"),expandCoverage:T(function(t){if(t.format===1)return t.glyphs;for(var e=[],n=t.ranges,r=0;r<n.length;r++)for(var i=n[r],a=i.start,o=i.end,s=a;s<=o;s++)e.push(s);return e},"expandCoverage")};function $7(t){j7.call(this,t,"gpos")}T($7,"Position");$7.prototype=j7.prototype;$7.prototype.init=function(){var t=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(t)};$7.prototype.getKerningValue=function(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[r].subtables,a=0;a<i.length;a++){var o=i[a],s=this.getCoverageIndex(o.coverage,e);if(!(s<0))switch(o.posFormat){case 1:for(var l=o.pairSets[s],u=0;u<l.length;u++){var c=l[u];if(c.secondGlyph===n)return c.value1&&c.value1.xAdvance||0}break;case 2:var d=this.getGlyphClass(o.classDef1,e),h=this.getGlyphClass(o.classDef2,n),f=o.classRecords[d][h];return f.value1&&f.value1.xAdvance||0}}return 0};$7.prototype.getKerningTables=function(t,e){if(this.font.tables.gpos)return this.getLookupTables(t,e,"kern",2)};function ku(t){j7.call(this,t,"gsub")}T(ku,"Substitution");function Lve(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}T(Lve,"arraysEqual");function UT(t,e,n){for(var r=t.subtables,i=0;i<r.length;i++){var a=r[i];if(a.substFormat===e)return a}if(n)return r.push(n),n}T(UT,"getSubstFormat");ku.prototype=j7.prototype;ku.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};ku.prototype.getSingle=function(t,e,n){for(var r=[],i=this.getLookupTables(e,n,t,1),a=0;a<i.length;a++)for(var o=i[a].subtables,s=0;s<o.length;s++){var l=o[s],u=this.expandCoverage(l.coverage),c=void 0;if(l.substFormat===1){var d=l.deltaGlyphId;for(c=0;c<u.length;c++){var h=u[c];r.push({sub:h,by:h+d})}}else{var f=l.substitute;for(c=0;c<u.length;c++)r.push({sub:u[c],by:f[c]})}}return r};ku.prototype.getMultiple=function(t,e,n){for(var r=[],i=this.getLookupTables(e,n,t,2),a=0;a<i.length;a++)for(var o=i[a].subtables,s=0;s<o.length;s++){var l=o[s],u=this.expandCoverage(l.coverage),c=void 0;for(c=0;c<u.length;c++){var d=u[c],h=l.sequences[c];r.push({sub:d,by:h})}}return r};ku.prototype.getAlternates=function(t,e,n){for(var r=[],i=this.getLookupTables(e,n,t,3),a=0;a<i.length;a++)for(var o=i[a].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),c=l.alternateSets,d=0;d<u.length;d++)r.push({sub:u[d],by:c[d]});return r};ku.prototype.getLigatures=function(t,e,n){for(var r=[],i=this.getLookupTables(e,n,t,4),a=0;a<i.length;a++)for(var o=i[a].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),c=l.ligatureSets,d=0;d<u.length;d++)for(var h=u[d],f=c[d],m=0;m<f.length;m++){var g=f[m];r.push({sub:[h].concat(g.components),by:g.ligGlyph})}return r};ku.prototype.addSingle=function(t,e,n,r){var i=this.getLookupTables(n,r,t,1,!0)[0],a=UT(i,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});zr.assert(a.coverage.format===1,"Single: unable to modify coverage table format "+a.coverage.format);var o=e.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.substitute.splice(s,0,0)),a.substitute[s]=e.by};ku.prototype.addMultiple=function(t,e,n,r){zr.assert(e.by instanceof Array&&e.by.length>1,'Multiple: "by" must be an array of two or more ids');var i=this.getLookupTables(n,r,t,2,!0)[0],a=UT(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});zr.assert(a.coverage.format===1,"Multiple: unable to modify coverage table format "+a.coverage.format);var o=e.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.sequences.splice(s,0,0)),a.sequences[s]=e.by};ku.prototype.addAlternate=function(t,e,n,r){var i=this.getLookupTables(n,r,t,3,!0)[0],a=UT(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});zr.assert(a.coverage.format===1,"Alternate: unable to modify coverage table format "+a.coverage.format);var o=e.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.alternateSets.splice(s,0,0)),a.alternateSets[s]=e.by};ku.prototype.addLigature=function(t,e,n,r){var i=this.getLookupTables(n,r,t,4,!0)[0],a=i.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=a),zr.assert(a.coverage.format===1,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=e.sub[0],s=e.sub.slice(1),l={ligGlyph:e.by,components:s},u=this.binSearch(a.coverage.glyphs,o);if(u>=0){for(var c=a.ligatureSets[u],d=0;d<c.length;d++)if(Lve(c[d].components,s))return;c.push(l)}else u=-1-u,a.coverage.glyphs.splice(u,0,o),a.ligatureSets.splice(u,0,[l])};ku.prototype.getFeature=function(t,e,n){if(/ss\d\d/.test(t))return this.getSingle(t,e,n);switch(t){case"aalt":case"salt":return this.getSingle(t,e,n).concat(this.getAlternates(t,e,n));case"dlig":case"liga":case"rlig":return this.getLigatures(t,e,n);case"ccmp":return this.getMultiple(t,e,n).concat(this.getLigatures(t,e,n));case"stch":return this.getMultiple(t,e,n)}};ku.prototype.add=function(t,e,n,r){if(/ss\d\d/.test(t))return this.addSingle(t,e,n,r);switch(t){case"aalt":case"salt":return typeof e.by=="number"?this.addSingle(t,e,n,r):this.addAlternate(t,e,n,r);case"dlig":case"liga":case"rlig":return this.addLigature(t,e,n,r);case"ccmp":return e.by instanceof Array?this.addMultiple(t,e,n,r):this.addLigature(t,e,n,r)}};function xve(){return typeof window<"u"}T(xve,"isBrowser");function Ove(t){for(var e=new Buffer(t.byteLength),n=new Uint8Array(t),r=0;r<e.length;++r)e[r]=n[r];return e}T(Ove,"arrayBufferToNodeBuffer");function i6(t,e){if(!t)throw e}T(i6,"checkArgument");function FW(t,e,n,r,i){var a;return(e&r)>0?(a=t.parseByte(),e&i||(a=-a),a=n+a):(e&i)>0?a=n:a=n+t.parseShort(),a}T(FW,"parseGlyphCoordinate");function TJ(t,e,n){var r=new gr.Parser(e,n);t.numberOfContours=r.parseShort(),t._xMin=r.parseShort(),t._yMin=r.parseShort(),t._xMax=r.parseShort(),t._yMax=r.parseShort();var i,a;if(t.numberOfContours>0){for(var o=t.endPointIndices=[],s=0;s<t.numberOfContours;s+=1)o.push(r.parseUShort());t.instructionLength=r.parseUShort(),t.instructions=[];for(var l=0;l<t.instructionLength;l+=1)t.instructions.push(r.parseByte());var u=o[o.length-1]+1;i=[];for(var c=0;c<u;c+=1)if(a=r.parseByte(),i.push(a),(a&8)>0)for(var d=r.parseByte(),h=0;h<d;h+=1)i.push(a),c+=1;if(zr.argument(i.length===u,"Bad flags."),o.length>0){var f=[],m;if(u>0){for(var g=0;g<u;g+=1)a=i[g],m={},m.onCurve=!!(a&1),m.lastPointOfContour=o.indexOf(g)>=0,f.push(m);for(var p=0,v=0;v<u;v+=1)a=i[v],m=f[v],m.x=FW(r,a,p,2,16),p=m.x;for(var _=0,C=0;C<u;C+=1)a=i[C],m=f[C],m.y=FW(r,a,_,4,32),_=m.y}t.points=f}else t.points=[]}else if(t.numberOfContours===0)t.points=[];else{t.isComposite=!0,t.points=[],t.components=[];for(var S=!0;S;){i=r.parseUShort();var b={glyphIndex:r.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(i&1)>0?(i&2)>0?(b.dx=r.parseShort(),b.dy=r.parseShort()):b.matchedPoints=[r.parseUShort(),r.parseUShort()]:(i&2)>0?(b.dx=r.parseChar(),b.dy=r.parseChar()):b.matchedPoints=[r.parseByte(),r.parseByte()],(i&8)>0?b.xScale=b.yScale=r.parseF2Dot14():(i&64)>0?(b.xScale=r.parseF2Dot14(),b.yScale=r.parseF2Dot14()):(i&128)>0&&(b.xScale=r.parseF2Dot14(),b.scale01=r.parseF2Dot14(),b.scale10=r.parseF2Dot14(),b.yScale=r.parseF2Dot14()),t.components.push(b),S=!!(i&32)}if(i&256){t.instructionLength=r.parseUShort(),t.instructions=[];for(var y=0;y<t.instructionLength;y+=1)t.instructions.push(r.parseByte())}}}T(TJ,"parseGlyph");function JE(t,e){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={x:e.xScale*i.x+e.scale01*i.y+e.dx,y:e.scale10*i.x+e.yScale*i.y+e.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(a)}return n}T(JE,"transformPoints");function Nve(t){for(var e=[],n=[],r=0;r<t.length;r+=1){var i=t[r];n.push(i),i.lastPointOfContour&&(e.push(n),n=[])}return zr.argument(n.length===0,"There are still points left in the current contour."),e}T(Nve,"getContours");function LJ(t){var e=new ns;if(!t)return e;for(var n=Nve(t),r=0;r<n.length;++r){var i=n[r],a=null,o=i[i.length-1],s=i[0];if(o.onCurve)e.moveTo(o.x,o.y);else if(s.onCurve)e.moveTo(s.x,s.y);else{var l={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5};e.moveTo(l.x,l.y)}for(var u=0;u<i.length;++u)if(a=o,o=s,s=i[(u+1)%i.length],o.onCurve)e.lineTo(o.x,o.y);else{var c=s;a.onCurve||((o.x+a.x)*.5,(o.y+a.y)*.5),s.onCurve||(c={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5}),e.quadraticCurveTo(o.x,o.y,c.x,c.y)}e.closePath()}return e}T(LJ,"getPath");function xJ(t,e){if(e.isComposite)for(var n=0;n<e.components.length;n+=1){var r=e.components[n],i=t.get(r.glyphIndex);if(i.getPath(),i.points){var a=void 0;if(r.matchedPoints===void 0)a=JE(i.points,r);else{if(r.matchedPoints[0]>e.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error("Matched points out of range in "+e.name);var o=e.points[r.matchedPoints[0]],s=i.points[r.matchedPoints[1]],l={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=JE([s],l)[0],l.dx=o.x-s.x,l.dy=o.y-s.y,a=JE(i.points,l)}e.points=e.points.concat(a)}}return LJ(e.points)}T(xJ,"buildPath");function kve(t,e,n,r){for(var i=new Kd.GlyphSet(r),a=0;a<n.length-1;a+=1){var o=n[a],s=n[a+1];o!==s?i.push(a,Kd.ttfGlyphLoader(r,a,TJ,t,e+o,xJ)):i.push(a,Kd.glyphLoader(r,a))}return i}T(kve,"parseGlyfTableAll");function Fve(t,e,n,r){var i=new Kd.GlyphSet(r);return r._push=function(a){var o=n[a],s=n[a+1];o!==s?i.push(a,Kd.ttfGlyphLoader(r,a,TJ,t,e+o,xJ)):i.push(a,Kd.glyphLoader(r,a))},i}T(Fve,"parseGlyfTableOnLowMemory");function Vve(t,e,n,r,i){return i.lowMemory?Fve(t,e,n,r):kve(t,e,n,r)}T(Vve,"parseGlyfTable");var Bve={getPath:LJ,parse:Vve},Uve,op,Hve,VW;function OJ(t){this.font=t,this.getCommands=function(e){return Bve.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}T(OJ,"Hinting");function jve(t){return t}T(jve,"roundOff");function NJ(t){return Math.sign(t)*Math.round(Math.abs(t))}T(NJ,"roundToGrid");function $ve(t){return Math.sign(t)*Math.round(Math.abs(t*2))/2}T($ve,"roundToDoubleGrid");function Wve(t){return Math.sign(t)*(Math.round(Math.abs(t)+.5)-.5)}T(Wve,"roundToHalfGrid");function zve(t){return Math.sign(t)*Math.ceil(Math.abs(t))}T(zve,"roundUpToGrid");function qve(t){return Math.sign(t)*Math.floor(Math.abs(t))}T(qve,"roundDownToGrid");var Yve=T(function(t){var e=this.srPeriod,n=this.srPhase,r=this.srThreshold,i=1;return t<0&&(t=-t,i=-1),t+=r-n,t=Math.trunc(t/e)*e,t+=n,t<0?n*i:t*i},"roundSuper"),Wd={x:1,y:0,axis:"x",distance:T(function(t,e,n,r){return(n?t.xo:t.x)-(r?e.xo:e.x)},"distance"),interpolate:T(function(t,e,n,r){var i,a,o,s,l,u,c;if(!r||r===this){if(i=t.xo-e.xo,a=t.xo-n.xo,l=e.x-e.xo,u=n.x-n.xo,o=Math.abs(i),s=Math.abs(a),c=o+s,c===0){t.x=t.xo+(l+u)/2;return}t.x=t.xo+(l*s+u*o)/c;return}if(i=r.distance(t,e,!0,!0),a=r.distance(t,n,!0,!0),l=r.distance(e,e,!1,!0),u=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),c=o+s,c===0){Wd.setRelative(t,t,(l+u)/2,r,!0);return}Wd.setRelative(t,t,(l*s+u*o)/c,r,!0)},"interpolate"),normalSlope:Number.NEGATIVE_INFINITY,setRelative:T(function(t,e,n,r,i){if(!r||r===this){t.x=(i?e.xo:e.x)+n;return}var a=i?e.xo:e.x,o=i?e.yo:e.y,s=a+n*r.x,l=o+n*r.y;t.x=s+(t.y-l)/r.normalSlope},"setRelative"),slope:0,touch:T(function(t){t.xTouched=!0},"touch"),touched:T(function(t){return t.xTouched},"touched"),untouch:T(function(t){t.xTouched=!1},"untouch")},Zh={x:0,y:1,axis:"y",distance:T(function(t,e,n,r){return(n?t.yo:t.y)-(r?e.yo:e.y)},"distance"),interpolate:T(function(t,e,n,r){var i,a,o,s,l,u,c;if(!r||r===this){if(i=t.yo-e.yo,a=t.yo-n.yo,l=e.y-e.yo,u=n.y-n.yo,o=Math.abs(i),s=Math.abs(a),c=o+s,c===0){t.y=t.yo+(l+u)/2;return}t.y=t.yo+(l*s+u*o)/c;return}if(i=r.distance(t,e,!0,!0),a=r.distance(t,n,!0,!0),l=r.distance(e,e,!1,!0),u=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),c=o+s,c===0){Zh.setRelative(t,t,(l+u)/2,r,!0);return}Zh.setRelative(t,t,(l*s+u*o)/c,r,!0)},"interpolate"),normalSlope:0,setRelative:T(function(t,e,n,r,i){if(!r||r===this){t.y=(i?e.yo:e.y)+n;return}var a=i?e.xo:e.x,o=i?e.yo:e.y,s=a+n*r.x,l=o+n*r.y;t.y=l+r.normalSlope*(t.x-s)},"setRelative"),slope:Number.POSITIVE_INFINITY,touch:T(function(t){t.yTouched=!0},"touch"),touched:T(function(t){return t.yTouched},"touched"),untouch:T(function(t){t.yTouched=!1},"untouch")};Object.freeze(Wd);Object.freeze(Zh);function W7(t,e){this.x=t,this.y=e,this.axis=void 0,this.slope=e/t,this.normalSlope=-t/e,Object.freeze(this)}T(W7,"UnitVector");W7.prototype.distance=function(t,e,n,r){return this.x*Wd.distance(t,e,n,r)+this.y*Zh.distance(t,e,n,r)};W7.prototype.interpolate=function(t,e,n,r){var i,a,o,s,l,u,c;if(o=r.distance(t,e,!0,!0),s=r.distance(t,n,!0,!0),i=r.distance(e,e,!1,!0),a=r.distance(n,n,!1,!0),l=Math.abs(o),u=Math.abs(s),c=l+u,c===0){this.setRelative(t,t,(i+a)/2,r,!0);return}this.setRelative(t,t,(i*u+a*l)/c,r,!0)};W7.prototype.setRelative=function(t,e,n,r,i){r=r||this;var a=i?e.xo:e.x,o=i?e.yo:e.y,s=a+n*r.x,l=o+n*r.y,u=r.normalSlope,c=this.slope,d=t.x,h=t.y;t.x=(c*d-u*s+l-h)/(c-u),t.y=c*(t.x-d)+h};W7.prototype.touch=function(t){t.xTouched=!0,t.yTouched=!0};function z7(t,e){var n=Math.sqrt(t*t+e*e);return t/=n,e/=n,t===1&&e===0?Wd:t===0&&e===1?Zh:new W7(t,e)}T(z7,"getUnitVector");function Zd(t,e,n,r){this.x=this.xo=Math.round(t*64)/64,this.y=this.yo=Math.round(e*64)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}T(Zd,"HPoint");Zd.prototype.nextTouched=function(t){for(var e=this.nextPointOnContour;!t.touched(e)&&e!==this;)e=e.nextPointOnContour;return e};Zd.prototype.prevTouched=function(t){for(var e=this.prevPointOnContour;!t.touched(e)&&e!==this;)e=e.prevPointOnContour;return e};var b_=Object.freeze(new Zd(0,0)),ubt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function Jh(t,e){switch(this.env=t,this.stack=[],this.prog=e,t){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Wd,this.round=NJ}}T(Jh,"State");OJ.prototype.exec=function(t,e){if(typeof e!="number")throw new Error("Point size is not a number!");if(!(this._errorState>2)){var n=this.font,r=this._prepState;if(!r||r.ppem!==e){var i=this._fpgmState;if(!i){Jh.prototype=ubt,i=this._fpgmState=new Jh("fpgm",n.tables.fpgm),i.funcs=[],i.font=n,exports.DEBUG&&(console.log("---EXEC FPGM---"),i.step=-1);try{op(i)}catch(u){console.log("Hinting error in FPGM:"+u),this._errorState=3;return}}Jh.prototype=i,r=this._prepState=new Jh("prep",n.tables.prep),r.ppem=e;var a=n.tables.cvt;if(a)for(var o=r.cvt=new Array(a.length),s=e/n.unitsPerEm,l=0;l<a.length;l++)o[l]=a[l]*s;else r.cvt=[];exports.DEBUG&&(console.log("---EXEC PREP---"),r.step=-1);try{op(r)}catch(u){this._errorState<2&&console.log("Hinting error in PREP:"+u),this._errorState=2}}if(!(this._errorState>1))try{return Hve(t,r)}catch(u){this._errorState<1&&(console.log("Hinting error:"+u),console.log("Note: further hinting errors are silenced")),this._errorState=1;return}}};Hve=T(function(t,e){var n=e.ppem/e.font.unitsPerEm,r=n,i=t.components,a,o,s;if(Jh.prototype=e,!i)s=new Jh("glyf",t.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),s.step=-1),VW(t,s,n,r),o=s.gZone;else{var l=e.font;o=[],a=[];for(var u=0;u<i.length;u++){var c=i[u],d=l.glyphs.get(c.glyphIndex);s=new Jh("glyf",d.instructions),exports.DEBUG&&(console.log("---EXEC COMP "+u+"---"),s.step=-1),VW(d,s,n,r);for(var h=Math.round(c.dx*n),f=Math.round(c.dy*r),m=s.gZone,g=s.contours,p=0;p<m.length;p++){var v=m[p];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+h,v.yo=v.y=v.y+f}var _=o.length;o.push.apply(o,m);for(var C=0;C<g.length;C++)a.push(g[C]+_)}t.instructions&&!s.inhibitGridFit&&(s=new Jh("glyf",t.instructions),s.gZone=s.z0=s.z1=s.z2=o,s.contours=a,o.push(new Zd(0,0),new Zd(Math.round(t.advanceWidth*n),0)),exports.DEBUG&&(console.log("---EXEC COMPOSITE---"),s.step=-1),op(s),o.length-=2)}return o},"execGlyph");VW=T(function(t,e,n,r){for(var i=t.points||[],a=i.length,o=e.gZone=e.z0=e.z1=e.z2=[],s=e.contours=[],l,u=0;u<a;u++)l=i[u],o[u]=new Zd(l.x*n,l.y*r,l.lastPointOfContour,l.onCurve);for(var c,d,h=0;h<a;h++)l=o[h],c||(c=l,s.push(h)),l.lastPointOfContour?(l.nextPointOnContour=c,c.prevPointOnContour=l,c=void 0):(d=o[h+1],l.nextPointOnContour=d,d.prevPointOnContour=l);if(!e.inhibitGridFit){if(exports.DEBUG){console.log("PROCESSING GLYPH",e.stack);for(var f=0;f<a;f++)console.log(f,o[f].x,o[f].y)}if(o.push(new Zd(0,0),new Zd(Math.round(t.advanceWidth*n),0)),op(e),o.length-=2,exports.DEBUG){console.log("FINISHED GLYPH",e.stack);for(var m=0;m<a;m++)console.log(m,o[m].x,o[m].y)}}},"execComponent");op=T(function(t){var e=t.prog;if(e){var n=e.length,r;for(t.ip=0;t.ip<n;t.ip++){if(exports.DEBUG&&t.step++,r=Uve[e[t.ip]],!r)throw new Error("unknown instruction: 0x"+Number(e[t.ip]).toString(16));r(t)}}},"exec");function CS(t){for(var e=t.tZone=new Array(t.gZone.length),n=0;n<e.length;n++)e[n]=new Zd(0,0)}T(CS,"initTZone");function kJ(t,e){var n=t.prog,r=t.ip,i=1,a;do if(a=n[++r],a===88)i++;else if(a===89)i--;else if(a===64)r+=n[r+1]+1;else if(a===65)r+=2*n[r+1]+1;else if(a>=176&&a<=183)r+=a-176+1;else if(a>=184&&a<=191)r+=(a-184+1)*2;else if(e&&i===1&&a===27)break;while(i>0);t.ip=r}T(kJ,"skip");function BW(t,e){exports.DEBUG&&console.log(e.step,"SVTCA["+t.axis+"]"),e.fv=e.pv=e.dpv=t}T(BW,"SVTCA");function UW(t,e){exports.DEBUG&&console.log(e.step,"SPVTCA["+t.axis+"]"),e.pv=e.dpv=t}T(UW,"SPVTCA");function HW(t,e){exports.DEBUG&&console.log(e.step,"SFVTCA["+t.axis+"]"),e.fv=t}T(HW,"SFVTCA");function jW(t,e){var n=e.stack,r=n.pop(),i=n.pop(),a=e.z2[r],o=e.z1[i];exports.DEBUG&&console.log("SPVTL["+t+"]",r,i);var s,l;t?(s=a.y-o.y,l=o.x-a.x):(s=o.x-a.x,l=o.y-a.y),e.pv=e.dpv=z7(s,l)}T(jW,"SPVTL");function $W(t,e){var n=e.stack,r=n.pop(),i=n.pop(),a=e.z2[r],o=e.z1[i];exports.DEBUG&&console.log("SFVTL["+t+"]",r,i);var s,l;t?(s=a.y-o.y,l=o.x-a.x):(s=o.x-a.x,l=o.y-a.y),e.fv=z7(s,l)}T($W,"SFVTL");function Xve(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"SPVFS[]",n,r),t.pv=t.dpv=z7(r,n)}T(Xve,"SPVFS");function Gve(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"SPVFS[]",n,r),t.fv=z7(r,n)}T(Gve,"SFVFS");function Qve(t){var e=t.stack,n=t.pv;exports.DEBUG&&console.log(t.step,"GPV[]"),e.push(n.x*16384),e.push(n.y*16384)}T(Qve,"GPV");function Kve(t){var e=t.stack,n=t.fv;exports.DEBUG&&console.log(t.step,"GFV[]"),e.push(n.x*16384),e.push(n.y*16384)}T(Kve,"GFV");function Zve(t){t.fv=t.pv,exports.DEBUG&&console.log(t.step,"SFVTPV[]")}T(Zve,"SFVTPV");function Jve(t){var e=t.stack,n=e.pop(),r=e.pop(),i=e.pop(),a=e.pop(),o=e.pop(),s=t.z0,l=t.z1,u=s[n],c=s[r],d=l[i],h=l[a],f=t.z2[o];exports.DEBUG&&console.log("ISECT[], ",n,r,i,a,o);var m=u.x,g=u.y,p=c.x,v=c.y,_=d.x,C=d.y,S=h.x,b=h.y,y=(m-p)*(C-b)-(g-v)*(_-S),A=m*v-g*p,w=_*b-C*S;f.x=(A*(_-S)-w*(m-p))/y,f.y=(A*(C-b)-w*(g-v))/y}T(Jve,"ISECT");function e_e(t){t.rp0=t.stack.pop(),exports.DEBUG&&console.log(t.step,"SRP0[]",t.rp0)}T(e_e,"SRP0");function t_e(t){t.rp1=t.stack.pop(),exports.DEBUG&&console.log(t.step,"SRP1[]",t.rp1)}T(t_e,"SRP1");function n_e(t){t.rp2=t.stack.pop(),exports.DEBUG&&console.log(t.step,"SRP2[]",t.rp2)}T(n_e,"SRP2");function r_e(t){var e=t.stack.pop();switch(exports.DEBUG&&console.log(t.step,"SZP0[]",e),t.zp0=e,e){case 0:t.tZone||CS(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}}T(r_e,"SZP0");function i_e(t){var e=t.stack.pop();switch(exports.DEBUG&&console.log(t.step,"SZP1[]",e),t.zp1=e,e){case 0:t.tZone||CS(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}}T(i_e,"SZP1");function a_e(t){var e=t.stack.pop();switch(exports.DEBUG&&console.log(t.step,"SZP2[]",e),t.zp2=e,e){case 0:t.tZone||CS(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}}T(a_e,"SZP2");function o_e(t){var e=t.stack.pop();switch(exports.DEBUG&&console.log(t.step,"SZPS[]",e),t.zp0=t.zp1=t.zp2=e,e){case 0:t.tZone||CS(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}}T(o_e,"SZPS");function s_e(t){t.loop=t.stack.pop(),exports.DEBUG&&console.log(t.step,"SLOOP[]",t.loop)}T(s_e,"SLOOP");function l_e(t){exports.DEBUG&&console.log(t.step,"RTG[]"),t.round=NJ}T(l_e,"RTG");function u_e(t){exports.DEBUG&&console.log(t.step,"RTHG[]"),t.round=Wve}T(u_e,"RTHG");function c_e(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"SMD[]",e),t.minDis=e/64}T(c_e,"SMD");function d_e(t){exports.DEBUG&&console.log(t.step,"ELSE[]"),kJ(t,!1)}T(d_e,"ELSE");function h_e(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"JMPR[]",e),t.ip+=e-1}T(h_e,"JMPR");function f_e(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"SCVTCI[]",e),t.cvCutIn=e/64}T(f_e,"SCVTCI");function m_e(t){var e=t.stack;exports.DEBUG&&console.log(t.step,"DUP[]"),e.push(e[e.length-1])}T(m_e,"DUP");function eR(t){exports.DEBUG&&console.log(t.step,"POP[]"),t.stack.pop()}T(eR,"POP");function g_e(t){exports.DEBUG&&console.log(t.step,"CLEAR[]"),t.stack.length=0}T(g_e,"CLEAR");function p_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"SWAP[]"),e.push(n),e.push(r)}T(p_e,"SWAP");function v_e(t){var e=t.stack;exports.DEBUG&&console.log(t.step,"DEPTH[]"),e.push(e.length)}T(v_e,"DEPTH");function __e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"LOOPCALL[]",n,r);var i=t.ip,a=t.prog;t.prog=t.funcs[n];for(var o=0;o<r;o++)op(t),exports.DEBUG&&console.log(++t.step,o+1<r?"next loopcall":"done loopcall",o);t.ip=i,t.prog=a}T(__e,"LOOPCALL");function C_e(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"CALL[]",e);var n=t.ip,r=t.prog;t.prog=t.funcs[e],op(t),t.ip=n,t.prog=r,exports.DEBUG&&console.log(++t.step,"returning from",e)}T(C_e,"CALL");function S_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"CINDEX[]",n),e.push(e[e.length-n])}T(S_e,"CINDEX");function b_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"MINDEX[]",n),e.push(e.splice(e.length-n,1)[0])}T(b_e,"MINDEX");function y_e(t){if(t.env!=="fpgm")throw new Error("FDEF not allowed here");var e=t.stack,n=t.prog,r=t.ip,i=e.pop(),a=r;for(exports.DEBUG&&console.log(t.step,"FDEF[]",i);n[++r]!==45;);t.ip=r,t.funcs[i]=n.slice(a+1,r)}T(y_e,"FDEF");function WW(t,e){var n=e.stack.pop(),r=e.z0[n],i=e.fv,a=e.pv;exports.DEBUG&&console.log(e.step,"MDAP["+t+"]",n);var o=a.distance(r,b_);t&&(o=e.round(o)),i.setRelative(r,b_,o,a),i.touch(r),e.rp0=e.rp1=n}T(WW,"MDAP");function zW(t,e){var n=e.z2,r=n.length-2,i,a,o;exports.DEBUG&&console.log(e.step,"IUP["+t.axis+"]");for(var s=0;s<r;s++)i=n[s],!t.touched(i)&&(a=i.prevTouched(t),a!==i&&(o=i.nextTouched(t),a===o&&t.setRelative(i,i,t.distance(a,a,!1,!0),t,!0),t.interpolate(i,a,o,t)))}T(zW,"IUP");function qW(t,e){for(var n=e.stack,r=t?e.rp1:e.rp2,i=(t?e.z0:e.z1)[r],a=e.fv,o=e.pv,s=e.loop,l=e.z2;s--;){var u=n.pop(),c=l[u],d=o.distance(i,i,!1,!0);a.setRelative(c,c,d,o),a.touch(c),exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-s)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",u)}e.loop=1}T(qW,"SHP");function YW(t,e){var n=e.stack,r=t?e.rp1:e.rp2,i=(t?e.z0:e.z1)[r],a=e.fv,o=e.pv,s=n.pop(),l=e.z2[e.contours[s]],u=l;exports.DEBUG&&console.log(e.step,"SHC["+t+"]",s);var c=o.distance(i,i,!1,!0);do u!==i&&a.setRelative(u,u,c,o),u=u.nextPointOnContour;while(u!==l)}T(YW,"SHC");function XW(t,e){var n=e.stack,r=t?e.rp1:e.rp2,i=(t?e.z0:e.z1)[r],a=e.fv,o=e.pv,s=n.pop();exports.DEBUG&&console.log(e.step,"SHZ["+t+"]",s);var l;switch(s){case 0:l=e.tZone;break;case 1:l=e.gZone;break;default:throw new Error("Invalid zone")}for(var u,c=o.distance(i,i,!1,!0),d=l.length-2,h=0;h<d;h++)u=l[h],a.setRelative(u,u,c,o)}T(XW,"SHZ");function E_e(t){for(var e=t.stack,n=t.loop,r=t.fv,i=e.pop()/64,a=t.z2;n--;){var o=e.pop(),s=a[o];exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-n)+": ":"")+"SHPIX[]",o,i),r.setRelative(s,s,i),r.touch(s)}t.loop=1}T(E_e,"SHPIX");function R_e(t){for(var e=t.stack,n=t.rp1,r=t.rp2,i=t.loop,a=t.z0[n],o=t.z1[r],s=t.fv,l=t.dpv,u=t.z2;i--;){var c=e.pop(),d=u[c];exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"IP[]",c,n,"<->",r),s.interpolate(d,a,o,l),s.touch(d)}t.loop=1}T(R_e,"IP");function GW(t,e){var n=e.stack,r=n.pop()/64,i=n.pop(),a=e.z1[i],o=e.z0[e.rp0],s=e.fv,l=e.pv;s.setRelative(a,o,r,l),s.touch(a),exports.DEBUG&&console.log(e.step,"MSIRP["+t+"]",r,i),e.rp1=e.rp0,e.rp2=i,t&&(e.rp0=i)}T(GW,"MSIRP");function A_e(t){for(var e=t.stack,n=t.rp0,r=t.z0[n],i=t.loop,a=t.fv,o=t.pv,s=t.z1;i--;){var l=e.pop(),u=s[l];exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"ALIGNRP[]",l),a.setRelative(u,r,0,o),a.touch(u)}t.loop=1}T(A_e,"ALIGNRP");function w_e(t){exports.DEBUG&&console.log(t.step,"RTDG[]"),t.round=$ve}T(w_e,"RTDG");function QW(t,e){var n=e.stack,r=n.pop(),i=n.pop(),a=e.z0[i],o=e.fv,s=e.pv,l=e.cvt[r];exports.DEBUG&&console.log(e.step,"MIAP["+t+"]",r,"(",l,")",i);var u=s.distance(a,b_);t&&(Math.abs(u-l)<e.cvCutIn&&(u=l),u=e.round(u)),o.setRelative(a,b_,u,s),e.zp0===0&&(a.xo=a.x,a.yo=a.y),o.touch(a),e.rp0=e.rp1=i}T(QW,"MIAP");function D_e(t){var e=t.prog,n=t.ip,r=t.stack,i=e[++n];exports.DEBUG&&console.log(t.step,"NPUSHB[]",i);for(var a=0;a<i;a++)r.push(e[++n]);t.ip=n}T(D_e,"NPUSHB");function I_e(t){var e=t.ip,n=t.prog,r=t.stack,i=n[++e];exports.DEBUG&&console.log(t.step,"NPUSHW[]",i);for(var a=0;a<i;a++){var o=n[++e]<<8|n[++e];o&32768&&(o=-((o^65535)+1)),r.push(o)}t.ip=e}T(I_e,"NPUSHW");function P_e(t){var e=t.stack,n=t.store;n||(n=t.store=[]);var r=e.pop(),i=e.pop();exports.DEBUG&&console.log(t.step,"WS",r,i),n[i]=r}T(P_e,"WS");function M_e(t){var e=t.stack,n=t.store,r=e.pop();exports.DEBUG&&console.log(t.step,"RS",r);var i=n&&n[r]||0;e.push(i)}T(M_e,"RS");function T_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"WCVTP",n,r),t.cvt[r]=n/64}T(T_e,"WCVTP");function L_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"RCVT",n),e.push(t.cvt[n]*64)}T(L_e,"RCVT");function KW(t,e){var n=e.stack,r=n.pop(),i=e.z2[r];exports.DEBUG&&console.log(e.step,"GC["+t+"]",r),n.push(e.dpv.distance(i,b_,t,!1)*64)}T(KW,"GC");function ZW(t,e){var n=e.stack,r=n.pop(),i=n.pop(),a=e.z1[r],o=e.z0[i],s=e.dpv.distance(o,a,t,t);exports.DEBUG&&console.log(e.step,"MD["+t+"]",r,i,"->",s),e.stack.push(Math.round(s*64))}T(ZW,"MD");function x_e(t){exports.DEBUG&&console.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)}T(x_e,"MPPEM");function O_e(t){exports.DEBUG&&console.log(t.step,"FLIPON[]"),t.autoFlip=!0}T(O_e,"FLIPON");function N_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"LT[]",n,r),e.push(r<n?1:0)}T(N_e,"LT");function k_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"LTEQ[]",n,r),e.push(r<=n?1:0)}T(k_e,"LTEQ");function F_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"GT[]",n,r),e.push(r>n?1:0)}T(F_e,"GT");function V_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"GTEQ[]",n,r),e.push(r>=n?1:0)}T(V_e,"GTEQ");function B_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"EQ[]",n,r),e.push(n===r?1:0)}T(B_e,"EQ");function U_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"NEQ[]",n,r),e.push(n!==r?1:0)}T(U_e,"NEQ");function H_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"ODD[]",n),e.push(Math.trunc(n)%2?1:0)}T(H_e,"ODD");function j_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"EVEN[]",n),e.push(Math.trunc(n)%2?0:1)}T(j_e,"EVEN");function $_e(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"IF[]",e),e||(kJ(t,!0),exports.DEBUG&&console.log(t.step,"EIF[]"))}T($_e,"IF");function W_e(t){exports.DEBUG&&console.log(t.step,"EIF[]")}T(W_e,"EIF");function z_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"AND[]",n,r),e.push(n&&r?1:0)}T(z_e,"AND");function q_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"OR[]",n,r),e.push(n||r?1:0)}T(q_e,"OR");function Y_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"NOT[]",n),e.push(n?0:1)}T(Y_e,"NOT");function tR(t,e){var n=e.stack,r=n.pop(),i=e.fv,a=e.pv,o=e.ppem,s=e.deltaBase+(t-1)*16,l=e.deltaShift,u=e.z0;exports.DEBUG&&console.log(e.step,"DELTAP["+t+"]",r,n);for(var c=0;c<r;c++){var d=n.pop(),h=n.pop(),f=s+((h&240)>>4);if(f===o){var m=(h&15)-8;m>=0&&m++,exports.DEBUG&&console.log(e.step,"DELTAPFIX",d,"by",m*l);var g=u[d];i.setRelative(g,g,m*l,a)}}}T(tR,"DELTAP123");function X_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"SDB[]",n),t.deltaBase=n}T(X_e,"SDB");function G_e(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"SDS[]",n),t.deltaShift=Math.pow(.5,n)}T(G_e,"SDS");function Q_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"ADD[]",n,r),e.push(r+n)}T(Q_e,"ADD");function K_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"SUB[]",n,r),e.push(r-n)}T(K_e,"SUB");function Z_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"DIV[]",n,r),e.push(r*64/n)}T(Z_e,"DIV");function J_e(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"MUL[]",n,r),e.push(r*n/64)}T(J_e,"MUL");function eCe(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"ABS[]",n),e.push(Math.abs(n))}T(eCe,"ABS");function tCe(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"NEG[]",n),e.push(-n)}T(tCe,"NEG");function nCe(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"FLOOR[]",n),e.push(Math.floor(n/64)*64)}T(nCe,"FLOOR");function rCe(t){var e=t.stack,n=e.pop();exports.DEBUG&&console.log(t.step,"CEILING[]",n),e.push(Math.ceil(n/64)*64)}T(rCe,"CEILING");function X5(t,e){var n=e.stack,r=n.pop();exports.DEBUG&&console.log(e.step,"ROUND[]"),n.push(e.round(r/64)*64)}T(X5,"ROUND");function iCe(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"WCVTF[]",n,r),t.cvt[r]=n*t.ppem/t.font.unitsPerEm}T(iCe,"WCVTF");function nR(t,e){var n=e.stack,r=n.pop(),i=e.ppem,a=e.deltaBase+(t-1)*16,o=e.deltaShift;exports.DEBUG&&console.log(e.step,"DELTAC["+t+"]",r,n);for(var s=0;s<r;s++){var l=n.pop(),u=n.pop(),c=a+((u&240)>>4);if(c===i){var d=(u&15)-8;d>=0&&d++;var h=d*o;exports.DEBUG&&console.log(e.step,"DELTACFIX",l,"by",h),e.cvt[l]+=h}}}T(nR,"DELTAC123");function aCe(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"SROUND[]",e),t.round=Yve;var n;switch(e&192){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=n,e&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid SROUND value")}e&=15,e===0?t.srThreshold=0:t.srThreshold=(e/8-.5)*n}T(aCe,"SROUND");function oCe(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"S45ROUND[]",e),t.round=Yve;var n;switch(e&192){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(t.srPeriod=n,e&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid S45ROUND value")}e&=15,e===0?t.srThreshold=0:t.srThreshold=(e/8-.5)*n}T(oCe,"S45ROUND");function sCe(t){exports.DEBUG&&console.log(t.step,"ROFF[]"),t.round=jve}T(sCe,"ROFF");function lCe(t){exports.DEBUG&&console.log(t.step,"RUTG[]"),t.round=zve}T(lCe,"RUTG");function uCe(t){exports.DEBUG&&console.log(t.step,"RDTG[]"),t.round=qve}T(uCe,"RDTG");function cCe(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"SCANCTRL[]",e)}T(cCe,"SCANCTRL");function JW(t,e){var n=e.stack,r=n.pop(),i=n.pop(),a=e.z2[r],o=e.z1[i];exports.DEBUG&&console.log(e.step,"SDPVTL["+t+"]",r,i);var s,l;t?(s=a.y-o.y,l=o.x-a.x):(s=o.x-a.x,l=o.y-a.y),e.dpv=z7(s,l)}T(JW,"SDPVTL");function dCe(t){var e=t.stack,n=e.pop(),r=0;exports.DEBUG&&console.log(t.step,"GETINFO[]",n),n&1&&(r=35),n&32&&(r|=4096),e.push(r)}T(dCe,"GETINFO");function hCe(t){var e=t.stack,n=e.pop(),r=e.pop(),i=e.pop();exports.DEBUG&&console.log(t.step,"ROLL[]"),e.push(r),e.push(n),e.push(i)}T(hCe,"ROLL");function fCe(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"MAX[]",n,r),e.push(Math.max(r,n))}T(fCe,"MAX");function mCe(t){var e=t.stack,n=e.pop(),r=e.pop();exports.DEBUG&&console.log(t.step,"MIN[]",n,r),e.push(Math.min(r,n))}T(mCe,"MIN");function gCe(t){var e=t.stack.pop();exports.DEBUG&&console.log(t.step,"SCANTYPE[]",e)}T(gCe,"SCANTYPE");function pCe(t){var e=t.stack.pop(),n=t.stack.pop();switch(exports.DEBUG&&console.log(t.step,"INSTCTRL[]",e,n),e){case 1:t.inhibitGridFit=!!n;return;case 2:t.ignoreCvt=!!n;return;default:throw new Error("invalid INSTCTRL[] selector")}}T(pCe,"INSTCTRL");function Vh(t,e){var n=e.stack,r=e.prog,i=e.ip;exports.DEBUG&&console.log(e.step,"PUSHB["+t+"]");for(var a=0;a<t;a++)n.push(r[++i]);e.ip=i}T(Vh,"PUSHB");function Bh(t,e){var n=e.ip,r=e.prog,i=e.stack;exports.DEBUG&&console.log(e.ip,"PUSHW["+t+"]");for(var a=0;a<t;a++){var o=r[++n]<<8|r[++n];o&32768&&(o=-((o^65535)+1)),i.push(o)}e.ip=n}T(Bh,"PUSHW");function lr(t,e,n,r,i,a){var o=a.stack,s=t&&o.pop(),l=o.pop(),u=a.rp0,c=a.z0[u],d=a.z1[l],h=a.minDis,f=a.fv,m=a.dpv,g,p,v,_;p=g=m.distance(d,c,!0,!0),v=p>=0?1:-1,p=Math.abs(p),t&&(_=a.cvt[s],r&&Math.abs(p-_)<a.cvCutIn&&(p=_)),n&&p<h&&(p=h),r&&(p=a.round(p)),f.setRelative(d,c,v*p,m),f.touch(d),exports.DEBUG&&console.log(a.step,(t?"MIRP[":"MDRP[")+(e?"M":"m")+(n?">":"_")+(r?"R":"_")+(i===0?"Gr":i===1?"Bl":i===2?"Wh":"")+"]",t?s+"("+a.cvt[s]+","+_+")":"",l,"(d =",g,"->",v*p,")"),a.rp1=a.rp0,a.rp2=l,e&&(a.rp0=l)}T(lr,"MDRP_MIRP");Uve=[BW.bind(void 0,Zh),BW.bind(void 0,Wd),UW.bind(void 0,Zh),UW.bind(void 0,Wd),HW.bind(void 0,Zh),HW.bind(void 0,Wd),jW.bind(void 0,0),jW.bind(void 0,1),$W.bind(void 0,0),$W.bind(void 0,1),Xve,Gve,Qve,Kve,Zve,Jve,e_e,t_e,n_e,r_e,i_e,a_e,o_e,s_e,l_e,u_e,c_e,d_e,h_e,f_e,void 0,void 0,m_e,eR,g_e,p_e,v_e,S_e,b_e,void 0,void 0,void 0,__e,C_e,y_e,void 0,WW.bind(void 0,0),WW.bind(void 0,1),zW.bind(void 0,Zh),zW.bind(void 0,Wd),qW.bind(void 0,0),qW.bind(void 0,1),YW.bind(void 0,0),YW.bind(void 0,1),XW.bind(void 0,0),XW.bind(void 0,1),E_e,R_e,GW.bind(void 0,0),GW.bind(void 0,1),A_e,w_e,QW.bind(void 0,0),QW.bind(void 0,1),D_e,I_e,P_e,M_e,T_e,L_e,KW.bind(void 0,0),KW.bind(void 0,1),void 0,ZW.bind(void 0,0),ZW.bind(void 0,1),x_e,void 0,O_e,void 0,void 0,N_e,k_e,F_e,V_e,B_e,U_e,H_e,j_e,$_e,W_e,z_e,q_e,Y_e,tR.bind(void 0,1),X_e,G_e,Q_e,K_e,Z_e,J_e,eCe,tCe,nCe,rCe,X5.bind(void 0,0),X5.bind(void 0,1),X5.bind(void 0,2),X5.bind(void 0,3),void 0,void 0,void 0,void 0,iCe,tR.bind(void 0,2),tR.bind(void 0,3),nR.bind(void 0,1),nR.bind(void 0,2),nR.bind(void 0,3),aCe,oCe,void 0,void 0,sCe,void 0,lCe,uCe,eR,eR,void 0,void 0,void 0,void 0,void 0,cCe,JW.bind(void 0,0),JW.bind(void 0,1),dCe,void 0,hCe,fCe,mCe,gCe,pCe,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Vh.bind(void 0,1),Vh.bind(void 0,2),Vh.bind(void 0,3),Vh.bind(void 0,4),Vh.bind(void 0,5),Vh.bind(void 0,6),Vh.bind(void 0,7),Vh.bind(void 0,8),Bh.bind(void 0,1),Bh.bind(void 0,2),Bh.bind(void 0,3),Bh.bind(void 0,4),Bh.bind(void 0,5),Bh.bind(void 0,6),Bh.bind(void 0,7),Bh.bind(void 0,8),lr.bind(void 0,0,0,0,0,0),lr.bind(void 0,0,0,0,0,1),lr.bind(void 0,0,0,0,0,2),lr.bind(void 0,0,0,0,0,3),lr.bind(void 0,0,0,0,1,0),lr.bind(void 0,0,0,0,1,1),lr.bind(void 0,0,0,0,1,2),lr.bind(void 0,0,0,0,1,3),lr.bind(void 0,0,0,1,0,0),lr.bind(void 0,0,0,1,0,1),lr.bind(void 0,0,0,1,0,2),lr.bind(void 0,0,0,1,0,3),lr.bind(void 0,0,0,1,1,0),lr.bind(void 0,0,0,1,1,1),lr.bind(void 0,0,0,1,1,2),lr.bind(void 0,0,0,1,1,3),lr.bind(void 0,0,1,0,0,0),lr.bind(void 0,0,1,0,0,1),lr.bind(void 0,0,1,0,0,2),lr.bind(void 0,0,1,0,0,3),lr.bind(void 0,0,1,0,1,0),lr.bind(void 0,0,1,0,1,1),lr.bind(void 0,0,1,0,1,2),lr.bind(void 0,0,1,0,1,3),lr.bind(void 0,0,1,1,0,0),lr.bind(void 0,0,1,1,0,1),lr.bind(void 0,0,1,1,0,2),lr.bind(void 0,0,1,1,0,3),lr.bind(void 0,0,1,1,1,0),lr.bind(void 0,0,1,1,1,1),lr.bind(void 0,0,1,1,1,2),lr.bind(void 0,0,1,1,1,3),lr.bind(void 0,1,0,0,0,0),lr.bind(void 0,1,0,0,0,1),lr.bind(void 0,1,0,0,0,2),lr.bind(void 0,1,0,0,0,3),lr.bind(void 0,1,0,0,1,0),lr.bind(void 0,1,0,0,1,1),lr.bind(void 0,1,0,0,1,2),lr.bind(void 0,1,0,0,1,3),lr.bind(void 0,1,0,1,0,0),lr.bind(void 0,1,0,1,0,1),lr.bind(void 0,1,0,1,0,2),lr.bind(void 0,1,0,1,0,3),lr.bind(void 0,1,0,1,1,0),lr.bind(void 0,1,0,1,1,1),lr.bind(void 0,1,0,1,1,2),lr.bind(void 0,1,0,1,1,3),lr.bind(void 0,1,1,0,0,0),lr.bind(void 0,1,1,0,0,1),lr.bind(void 0,1,1,0,0,2),lr.bind(void 0,1,1,0,0,3),lr.bind(void 0,1,1,0,1,0),lr.bind(void 0,1,1,0,1,1),lr.bind(void 0,1,1,0,1,2),lr.bind(void 0,1,1,0,1,3),lr.bind(void 0,1,1,1,0,0),lr.bind(void 0,1,1,1,0,1),lr.bind(void 0,1,1,1,0,2),lr.bind(void 0,1,1,1,0,3),lr.bind(void 0,1,1,1,1,0),lr.bind(void 0,1,1,1,1,1),lr.bind(void 0,1,1,1,1,2),lr.bind(void 0,1,1,1,1,3)];function $p(t){this.char=t,this.state={},this.activeState=null}T($p,"Token");function HT(t,e,n){this.contextName=n,this.startIndex=t,this.endOffset=e}T(HT,"ContextRange");function vCe(t,e,n){this.contextName=t,this.openRange=null,this.ranges=[],this.checkStart=e,this.checkEnd=n}T(vCe,"ContextChecker");function h1(t,e){this.context=t,this.index=e,this.length=t.length,this.current=t[e],this.backtrack=t.slice(0,e),this.lookahead=t.slice(e+1)}T(h1,"ContextParams");function SS(t){this.eventId=t,this.subscribers=[]}T(SS,"Event");function _Ce(t){var e=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach(function(i){Object.defineProperty(e.events,i,{value:new SS(i)})}),t&&n.forEach(function(i){var a=t[i];typeof a=="function"&&e.events[i].subscribe(a)});var r=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];r.forEach(function(i){e.events[i].subscribe(e.updateContextsRanges)})}T(_Ce,"initializeCoreEvents");function wo(t){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],_Ce.call(this,t)}T(wo,"Tokenizer");$p.prototype.setState=function(t,e){return this.state[t]=e,this.activeState={key:t,value:this.state[t]},this.activeState};$p.prototype.getState=function(t){return this.state[t]||null};wo.prototype.inboundIndex=function(t){return t>=0&&t<this.tokens.length};wo.prototype.composeRUD=function(t){var e=this,n=!0,r=t.map(function(a){return e[a[0]].apply(e,a.slice(1).concat(n))}),i=T(function(a){return typeof a=="object"&&a.hasOwnProperty("FAIL")},"hasFAILObject");if(r.every(i))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:r.filter(i)};this.dispatch("composeRUD",[r.filter(function(a){return!i(a)})])};wo.prototype.replaceRange=function(t,e,n,r){e=e!==null?e:this.tokens.length;var i=n.every(function(o){return o instanceof $p});if(!isNaN(t)&&this.inboundIndex(t)&&i){var a=this.tokens.splice.apply(this.tokens,[t,e].concat(n));return r||this.dispatch("replaceToken",[t,e,n]),[a,n]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};wo.prototype.replaceToken=function(t,e,n){if(!isNaN(t)&&this.inboundIndex(t)&&e instanceof $p){var r=this.tokens.splice(t,1,e);return n||this.dispatch("replaceToken",[t,e]),[r[0],e]}else return{FAIL:"replaceToken: invalid token or index."}};wo.prototype.removeRange=function(t,e,n){e=isNaN(e)?this.tokens.length:e;var r=this.tokens.splice(t,e);return n||this.dispatch("removeRange",[r,t,e]),r};wo.prototype.removeToken=function(t,e){if(!isNaN(t)&&this.inboundIndex(t)){var n=this.tokens.splice(t,1);return e||this.dispatch("removeToken",[n,t]),n}else return{FAIL:"removeToken: invalid token index."}};wo.prototype.insertToken=function(t,e,n){var r=t.every(function(i){return i instanceof $p});return r?(this.tokens.splice.apply(this.tokens,[e,0].concat(t)),n||this.dispatch("insertToken",[t,e]),t):{FAIL:"insertToken: invalid token(s)."}};wo.prototype.registerModifier=function(t,e,n){this.events.newToken.subscribe(function(r,i){var a=[r,i],o=e===null||e.apply(this,a)===!0,s=[r,i];if(o){var l=n.apply(this,s);r.setState(t,l)}}),this.registeredModifiers.push(t)};SS.prototype.subscribe=function(t){return typeof t=="function"?this.subscribers.push(t)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}};SS.prototype.unsubscribe=function(t){this.subscribers.splice(t,1)};h1.prototype.setCurrentIndex=function(t){this.index=t,this.current=this.context[t],this.backtrack=this.context.slice(0,t),this.lookahead=this.context.slice(t+1)};h1.prototype.get=function(t){switch(!0){case t===0:return this.current;case(t<0&&Math.abs(t)<=this.backtrack.length):return this.backtrack.slice(t)[0];case(t>0&&t<=this.lookahead.length):return this.lookahead[t-1];default:return null}};wo.prototype.rangeToText=function(t){if(t instanceof HT)return this.getRangeTokens(t).map(function(e){return e.char}).join("")};wo.prototype.getText=function(){return this.tokens.map(function(t){return t.char}).join("")};wo.prototype.getContext=function(t){var e=this.registeredContexts[t];return e||null};wo.prototype.on=function(t,e){var n=this.events[t];return n?n.subscribe(e):null};wo.prototype.dispatch=function(t,e){var n=this,r=this.events[t];r instanceof SS&&r.subscribers.forEach(function(i){i.apply(n,e||[])})};wo.prototype.registerContextChecker=function(t,e,n){if(this.getContext(t))return{FAIL:"context name '"+t+"' is already registered."};if(typeof e!="function")return{FAIL:"missing context start check."};if(typeof n!="function")return{FAIL:"missing context end check."};var r=new vCe(t,e,n);return this.registeredContexts[t]=r,this.contextCheckers.push(r),r};wo.prototype.getRangeTokens=function(t){var e=t.startIndex+t.endOffset;return[].concat(this.tokens.slice(t.startIndex,e))};wo.prototype.getContextRanges=function(t){var e=this.getContext(t);return e?e.ranges:{FAIL:"context checker '"+t+"' is not registered."}};wo.prototype.resetContextsRanges=function(){var t=this.registeredContexts;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];n.ranges=[]}};wo.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var t=this.tokens.map(function(r){return r.char}),e=0;e<t.length;e++){var n=new h1(t,e);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])};wo.prototype.setEndOffset=function(t,e){var n=this.getContext(e).openRange.startIndex,r=new HT(n,t,e),i=this.getContext(e).ranges;return r.rangeId=e+"."+i.length,i.push(r),this.getContext(e).openRange=null,r};wo.prototype.runContextCheck=function(t){var e=this,n=t.index;this.contextCheckers.forEach(function(r){var i=r.contextName,a=e.getContext(i).openRange;if(!a&&r.checkStart(t)&&(a=new HT(n,null,i),e.getContext(i).openRange=a,e.dispatch("contextStart",[i,n])),a&&r.checkEnd(t)){var o=n-a.startIndex+1,s=e.setEndOffset(o,i);e.dispatch("contextEnd",[i,s])}})};wo.prototype.tokenize=function(t){this.tokens=[],this.resetContextsRanges();var e=Array.from(t);this.dispatch("start");for(var n=0;n<e.length;n++){var r=e[n],i=new h1(e,n);this.dispatch("next",[i]),this.runContextCheck(i);var a=new $p(r);this.tokens.push(a),this.dispatch("newToken",[a,i])}return this.dispatch("end",[this.tokens]),this.tokens};function cf(t){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(t)}T(cf,"isArabicChar");function FJ(t){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(t)}T(FJ,"isIsolatedArabicChar");function Rf(t){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(t)}T(Rf,"isTashkeelArabicChar");function y8(t){return/[A-z]/.test(t)}T(y8,"isLatinChar");function CCe(t){return/\s/.test(t)}T(CCe,"isWhiteSpace");function Fu(t){this.font=t,this.features={}}T(Fu,"FeatureQuery");function Fm(t){this.id=t.id,this.tag=t.tag,this.substitution=t.substitution}T(Fm,"SubstitutionAction");function q7(t,e){if(!t)return-1;switch(e.format){case 1:return e.glyphs.indexOf(t);case 2:for(var n=e.ranges,r=0;r<n.length;r++){var i=n[r];if(t>=i.start&&t<=i.end){var a=t-i.start;return i.index+a}}break;default:return-1}return-1}T(q7,"lookupCoverage");function SCe(t,e){var n=q7(t,e.coverage);return n===-1?null:t+e.deltaGlyphId}T(SCe,"singleSubstitutionFormat1");function bCe(t,e){var n=q7(t,e.coverage);return n===-1?null:e.substitute[n]}T(bCe,"singleSubstitutionFormat2");function rR(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=e.current;a=Array.isArray(a)?a[0]:a;var o=q7(a,i);o!==-1&&n.push(o)}return n.length!==t.length?-1:n}T(rR,"lookupCoverageList");function yCe(t,e){var n=e.inputCoverage.length+e.lookaheadCoverage.length+e.backtrackCoverage.length;if(t.context.length<n)return[];var r=rR(e.inputCoverage,t);if(r===-1)return[];var i=e.inputCoverage.length-1;if(t.lookahead.length<e.lookaheadCoverage.length)return[];for(var a=t.lookahead.slice(i);a.length&&Rf(a[0].char);)a.shift();var o=new h1(a,0),s=rR(e.lookaheadCoverage,o),l=[].concat(t.backtrack);for(l.reverse();l.length&&Rf(l[0].char);)l.shift();if(l.length<e.backtrackCoverage.length)return[];var u=new h1(l,0),c=rR(e.backtrackCoverage,u),d=r.length===e.inputCoverage.length&&s.length===e.lookaheadCoverage.length&&c.length===e.backtrackCoverage.length,h=[];if(d)for(var f=0;f<e.lookupRecords.length;f++)for(var m=e.lookupRecords[f],g=m.lookupListIndex,p=this.getLookupByIndex(g),v=0;v<p.subtables.length;v++){var _=p.subtables[v],C=this.getLookupMethod(p,_),S=this.getSubstitutionType(p,_);if(S==="12")for(var b=0;b<r.length;b++){var y=t.get(b),A=C(y);A&&h.push(A)}}return h}T(yCe,"chainingSubstitutionFormat3");function ECe(t,e){var n=t.current,r=q7(n,e.coverage);if(r===-1)return null;for(var i,a=e.ligatureSets[r],o=0;o<a.length;o++){i=a[o];for(var s=0;s<i.components.length;s++){var l=t.lookahead[s],u=i.components[s];if(l!==u)break;if(s===i.components.length-1)return i}}return null}T(ECe,"ligatureSubstitutionFormat1");function RCe(t,e){var n=q7(t,e.coverage);return n===-1?null:e.sequences[n]}T(RCe,"decompositionSubstitutionFormat1");Fu.prototype.getDefaultScriptFeaturesIndexes=function(){for(var t=this.font.tables.gsub.scripts,e=0;e<t.length;e++){var n=t[e];if(n.tag==="DFLT")return n.script.defaultLangSys.featureIndexes}return[]};Fu.prototype.getScriptFeaturesIndexes=function(t){var e=this.font.tables;if(!e.gsub)return[];if(!t)return this.getDefaultScriptFeaturesIndexes();for(var n=this.font.tables.gsub.scripts,r=0;r<n.length;r++){var i=n[r];if(i.tag===t&&i.script.defaultLangSys)return i.script.defaultLangSys.featureIndexes;var a=i.langSysRecords;if(a)for(var o=0;o<a.length;o++){var s=a[o];if(s.tag===t){var l=s.langSys;return l.featureIndexes}}}return this.getDefaultScriptFeaturesIndexes()};Fu.prototype.mapTagsToFeatures=function(t,e){for(var n={},r=0;r<t.length;r++){var i=t[r].tag,a=t[r].feature;n[i]=a}this.features[e].tags=n};Fu.prototype.getScriptFeatures=function(t){var e=this.features[t];if(this.features.hasOwnProperty(t))return e;var n=this.getScriptFeaturesIndexes(t);if(!n)return null;var r=this.font.tables.gsub;return e=n.map(function(i){return r.features[i]}),this.features[t]=e,this.mapTagsToFeatures(e,t),e};Fu.prototype.getSubstitutionType=function(t,e){var n=t.lookupType.toString(),r=e.substFormat.toString();return n+r};Fu.prototype.getLookupMethod=function(t,e){var n=this,r=this.getSubstitutionType(t,e);switch(r){case"11":return function(i){return SCe.apply(n,[i,e])};case"12":return function(i){return bCe.apply(n,[i,e])};case"63":return function(i){return yCe.apply(n,[i,e])};case"41":return function(i){return ECe.apply(n,[i,e])};case"21":return function(i){return RCe.apply(n,[i,e])};default:throw new Error("lookupType: "+t.lookupType+" - substFormat: "+e.substFormat+" is not yet supported")}};Fu.prototype.lookupFeature=function(t){var e=t.contextParams,n=e.index,r=this.getFeature({tag:t.tag,script:t.script});if(!r)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+t.tag+"' for script '"+t.script+"'.");for(var i=this.getFeatureLookups(r),a=[].concat(e.context),o=0;o<i.length;o++)for(var s=i[o],l=this.getLookupSubtables(s),u=0;u<l.length;u++){var c=l[u],d=this.getSubstitutionType(s,c),h=this.getLookupMethod(s,c),f=void 0;switch(d){case"11":f=h(e.current),f&&a.splice(n,1,new Fm({id:11,tag:t.tag,substitution:f}));break;case"12":f=h(e.current),f&&a.splice(n,1,new Fm({id:12,tag:t.tag,substitution:f}));break;case"63":f=h(e),Array.isArray(f)&&f.length&&a.splice(n,1,new Fm({id:63,tag:t.tag,substitution:f}));break;case"41":f=h(e),f&&a.splice(n,1,new Fm({id:41,tag:t.tag,substitution:f}));break;case"21":f=h(e.current),f&&a.splice(n,1,new Fm({id:21,tag:t.tag,substitution:f}));break}e=new h1(a,n),!(Array.isArray(f)&&!f.length)&&(f=null)}return a.length?a:null};Fu.prototype.supports=function(t){if(!t.script)return!1;this.getScriptFeatures(t.script);var e=this.features.hasOwnProperty(t.script);if(!t.tag)return e;var n=this.features[t.script].some(function(r){return r.tag===t.tag});return e&&n};Fu.prototype.getLookupSubtables=function(t){return t.subtables||null};Fu.prototype.getLookupByIndex=function(t){var e=this.font.tables.gsub.lookups;return e[t]||null};Fu.prototype.getFeatureLookups=function(t){return t.lookupListIndexes.map(this.getLookupByIndex.bind(this))};Fu.prototype.getFeature=T(function(t){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(t.script)||this.getScriptFeatures(t.script);var e=this.features[t.script];return e?e.tags[t.tag]?this.features[t.script].tags[t.tag]:null:{FAIL:"No feature for script "+t.script}},"getFeature");function ACe(t){var e=t.current,n=t.get(-1);return n===null&&cf(e)||!cf(n)&&cf(e)}T(ACe,"arabicWordStartCheck");function wCe(t){var e=t.get(1);return e===null||!cf(e)}T(wCe,"arabicWordEndCheck");var cbt={startCheck:ACe,endCheck:wCe};function DCe(t){var e=t.current,n=t.get(-1);return(cf(e)||Rf(e))&&!cf(n)}T(DCe,"arabicSentenceStartCheck");function ICe(t){var e=t.get(1);switch(!0){case e===null:return!0;case(!cf(e)&&!Rf(e)):var n=CCe(e);if(!n)return!0;if(n){var r=!1;if(r=t.lookahead.some(function(i){return cf(i)||Rf(i)}),!r)return!0}break;default:return!1}}T(ICe,"arabicSentenceEndCheck");var dbt={startCheck:DCe,endCheck:ICe};function PCe(t,e,n){e[n].setState(t.tag,t.substitution)}T(PCe,"singleSubstitutionFormat1$1");function MCe(t,e,n){e[n].setState(t.tag,t.substitution)}T(MCe,"singleSubstitutionFormat2$1");function TCe(t,e,n){t.substitution.forEach(function(r,i){var a=e[n+i];a.setState(t.tag,r)})}T(TCe,"chainingSubstitutionFormat3$1");function LCe(t,e,n){var r=e[n];r.setState(t.tag,t.substitution.ligGlyph);for(var i=t.substitution.components.length,a=0;a<i;a++)r=e[n+a+1],r.setState("deleted",!0)}T(LCe,"ligatureSubstitutionFormat1$1");var use={11:PCe,12:MCe,63:TCe,41:LCe};function jT(t,e,n){t instanceof Fm&&use[t.id]&&use[t.id](t,e,n)}T(jT,"applySubstitution");function xCe(t){for(var e=[].concat(t.backtrack),n=e.length-1;n>=0;n--){var r=e[n],i=FJ(r),a=Rf(r);if(!i&&!a)return!0;if(i)return!1}return!1}T(xCe,"willConnectPrev");function OCe(t){if(FJ(t.current))return!1;for(var e=0;e<t.lookahead.length;e++){var n=t.lookahead[e],r=Rf(n);if(!r)return!0}return!1}T(OCe,"willConnectNext");function NCe(t){var e=this,n="arab",r=this.featuresTags[n],i=this.tokenizer.getRangeTokens(t);if(i.length!==1){var a=new h1(i.map(function(s){return s.getState("glyphIndex")}),0),o=new h1(i.map(function(s){return s.char}),0);i.forEach(function(s,l){if(!Rf(s.char)){a.setCurrentIndex(l),o.setCurrentIndex(l);var u=0;xCe(o)&&(u|=1),OCe(o)&&(u|=2);var c;switch(u){case 1:c="fina";break;case 2:c="init";break;case 3:c="medi";break}if(r.indexOf(c)!==-1){var d=e.query.lookupFeature({tag:c,script:n,contextParams:a});if(d instanceof Error)return console.info(d.message);d.forEach(function(h,f){h instanceof Fm&&(jT(h,i,f),a.context[f]=h.substitution)})}}})}}T(NCe,"arabicPresentationForms");function ez(t,e){var n=t.map(function(r){return r.activeState.value});return new h1(n,0)}T(ez,"getContextParams");function kCe(t){var e=this,n="arab",r=this.tokenizer.getRangeTokens(t),i=ez(r);i.context.forEach(function(a,o){i.setCurrentIndex(o);var s=e.query.lookupFeature({tag:"rlig",script:n,contextParams:i});s.length&&(s.forEach(function(l){return jT(l,r,o)}),i=ez(r))})}T(kCe,"arabicRequiredLigatures");function FCe(t){var e=t.current,n=t.get(-1);return n===null&&y8(e)||!y8(n)&&y8(e)}T(FCe,"latinWordStartCheck");function VCe(t){var e=t.get(1);return e===null||!y8(e)}T(VCe,"latinWordEndCheck");var hbt={startCheck:FCe,endCheck:VCe};function tz(t,e){var n=t.map(function(r){return r.activeState.value});return new h1(n,0)}T(tz,"getContextParams$1");function BCe(t){var e=this,n="latn",r=this.tokenizer.getRangeTokens(t),i=tz(r);i.context.forEach(function(a,o){i.setCurrentIndex(o);var s=e.query.lookupFeature({tag:"liga",script:n,contextParams:i});s.length&&(s.forEach(function(l){return jT(l,r,o)}),i=tz(r))})}T(BCe,"latinLigature");function b1(t){this.baseDir=t||"ltr",this.tokenizer=new wo,this.featuresTags={}}T(b1,"Bidi");b1.prototype.setText=function(t){this.text=t};b1.prototype.contextChecks={latinWordCheck:hbt,arabicWordCheck:cbt,arabicSentenceCheck:dbt};function iR(t){var e=this.contextChecks[t+"Check"];return this.tokenizer.registerContextChecker(t,e.startCheck,e.endCheck)}T(iR,"registerContextChecker");function UCe(){return iR.call(this,"latinWord"),iR.call(this,"arabicWord"),iR.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}T(UCe,"tokenizeText");function HCe(){var t=this,e=this.tokenizer.getContextRanges("arabicSentence");e.forEach(function(n){var r=t.tokenizer.getRangeTokens(n);t.tokenizer.replaceRange(n.startIndex,n.endOffset,r.reverse())})}T(HCe,"reverseArabicSentences");b1.prototype.registerFeatures=function(t,e){var n=this,r=e.filter(function(i){return n.query.supports({script:t,tag:i})});this.featuresTags.hasOwnProperty(t)?this.featuresTags[t]=this.featuresTags[t].concat(r):this.featuresTags[t]=r};b1.prototype.applyFeatures=function(t,e){if(!t)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Fu(t));for(var n=0;n<e.length;n++){var r=e[n];this.query.supports({script:r.script})&&this.registerFeatures(r.script,r.tags)}};b1.prototype.registerModifier=function(t,e,n){this.tokenizer.registerModifier(t,e,n)};function $T(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}T($T,"checkGlyphIndexStatus");function jCe(){var t=this,e="arab";if(this.featuresTags.hasOwnProperty(e)){$T.call(this);var n=this.tokenizer.getContextRanges("arabicWord");n.forEach(function(r){NCe.call(t,r)})}}T(jCe,"applyArabicPresentationForms");function $Ce(){var t=this,e="arab";if(this.featuresTags.hasOwnProperty(e)){var n=this.featuresTags[e];if(n.indexOf("rlig")!==-1){$T.call(this);var r=this.tokenizer.getContextRanges("arabicWord");r.forEach(function(i){kCe.call(t,i)})}}}T($Ce,"applyArabicRequireLigatures");function WCe(){var t=this,e="latn";if(this.featuresTags.hasOwnProperty(e)){var n=this.featuresTags[e];if(n.indexOf("liga")!==-1){$T.call(this);var r=this.tokenizer.getContextRanges("latinWord");r.forEach(function(i){BCe.call(t,i)})}}}T(WCe,"applyLatinLigatures");b1.prototype.checkContextReady=function(t){return!!this.tokenizer.getContext(t)};b1.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(jCe.call(this),$Ce.call(this)),this.checkContextReady("latinWord")&&WCe.call(this),this.checkContextReady("arabicSentence")&&HCe.call(this)};b1.prototype.processText=function(t){(!this.text||this.text!==t)&&(this.setText(t),UCe.call(this),this.applyFeaturesToContexts())};b1.prototype.getBidiText=function(t){return this.processText(t),this.tokenizer.getText()};b1.prototype.getTextGlyphs=function(t){this.processText(t);for(var e=[],n=0;n<this.tokenizer.tokens.length;n++){var r=this.tokenizer.tokens[n];if(!r.state.deleted){var i=r.activeState.value;e.push(Array.isArray(i)?i[0]:i)}}return e};function Fa(t){t=t||{},t.tables=t.tables||{},t.empty||(i6(t.familyName,"When creating a new Font object, familyName is required."),i6(t.styleName,"When creating a new Font object, styleName is required."),i6(t.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),i6(t.ascender,"When creating a new Font object, ascender is required."),i6(t.descender<=0,"When creating a new Font object, negative descender value is required."),this.names={fontFamily:{en:t.familyName||" "},fontSubfamily:{en:t.styleName||" "},fullName:{en:t.fullName||t.familyName+" "+t.styleName},postScriptName:{en:t.postScriptName||(t.familyName+t.styleName).replace(/\s/g,"")},designer:{en:t.designer||" "},designerURL:{en:t.designerURL||" "},manufacturer:{en:t.manufacturer||" "},manufacturerURL:{en:t.manufacturerURL||" "},license:{en:t.license||" "},licenseURL:{en:t.licenseURL||" "},version:{en:t.version||"Version 0.1"},description:{en:t.description||" "},copyright:{en:t.copyright||" "},trademark:{en:t.trademark||" "}},this.unitsPerEm=t.unitsPerEm||1e3,this.ascender=t.ascender,this.descender=t.descender,this.createdTimestamp=t.createdTimestamp,this.tables=Object.assign(t.tables,{os2:Object.assign({usWeightClass:t.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:t.widthClass||this.usWidthClasses.MEDIUM,fsSelection:t.fsSelection||this.fsSelectionValues.REGULAR},t.tables.os2)})),this.supported=!0,this.glyphs=new Kd.GlyphSet(this,t.glyphs||[]),this.encoding=new bJ(this),this.position=new $7(this),this.substitution=new ku(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:T(function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new OJ(this)},"get")})}T(Fa,"Font$1");Fa.prototype.hasChar=function(t){return this.encoding.charToGlyphIndex(t)!==null};Fa.prototype.charToGlyphIndex=function(t){return this.encoding.charToGlyphIndex(t)};Fa.prototype.charToGlyph=function(t){var e=this.charToGlyphIndex(t),n=this.glyphs.get(e);return n||(n=this.glyphs.get(0)),n};Fa.prototype.updateFeatures=function(t){return this.defaultRenderOptions.features.map(function(e){return e.script==="latn"?{script:"latn",tags:e.tags.filter(function(n){return t[n]})}:e})};Fa.prototype.stringToGlyphs=function(t,e){var n=this,r=new b1,i=T(function(d){return n.charToGlyphIndex(d.char)},"charToGlyphIndexMod");r.registerModifier("glyphIndex",null,i);var a=e?this.updateFeatures(e.features):this.defaultRenderOptions.features;r.applyFeatures(this,a);for(var o=r.getTextGlyphs(t),s=o.length,l=new Array(s),u=this.glyphs.get(0),c=0;c<s;c+=1)l[c]=this.glyphs.get(o[c])||u;return l};Fa.prototype.nameToGlyphIndex=function(t){return this.glyphNames.nameToGlyphIndex(t)};Fa.prototype.nameToGlyph=function(t){var e=this.nameToGlyphIndex(t),n=this.glyphs.get(e);return n||(n=this.glyphs.get(0)),n};Fa.prototype.glyphIndexToName=function(t){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(t):""};Fa.prototype.getKerningValue=function(t,e){t=t.index||t,e=e.index||e;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,t,e):this.kerningPairs[t+","+e]||0};Fa.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};Fa.prototype.forEachGlyph=function(t,e,n,r,i,a){e=e!==void 0?e:0,n=n!==void 0?n:0,r=r!==void 0?r:72,i=Object.assign({},this.defaultRenderOptions,i);var o=1/this.unitsPerEm*r,s=this.stringToGlyphs(t,i),l;if(i.kerning){var u=i.script||this.position.getDefaultScriptName();l=this.position.getKerningTables(u,i.language)}for(var c=0;c<s.length;c+=1){var d=s[c];if(a.call(this,d,e,n,r,i),d.advanceWidth&&(e+=d.advanceWidth*o),i.kerning&&c<s.length-1){var h=l?this.position.getKerningValue(l,d.index,s[c+1].index):this.getKerningValue(d,s[c+1]);e+=h*o}i.letterSpacing?e+=i.letterSpacing*r:i.tracking&&(e+=i.tracking/1e3*r)}return e};Fa.prototype.getPath=function(t,e,n,r,i){var a=new ns;return this.forEachGlyph(t,e,n,r,i,function(o,s,l,u){var c=o.getPath(s,l,u,i,this);a.extend(c)}),a};Fa.prototype.getPaths=function(t,e,n,r,i){var a=[];return this.forEachGlyph(t,e,n,r,i,function(o,s,l,u){var c=o.getPath(s,l,u,i,this);a.push(c)}),a};Fa.prototype.getAdvanceWidth=function(t,e,n){return this.forEachGlyph(t,0,0,e,n,function(){})};Fa.prototype.draw=function(t,e,n,r,i,a){this.getPath(e,n,r,i,a).draw(t)};Fa.prototype.drawPoints=function(t,e,n,r,i,a){this.forEachGlyph(e,n,r,i,a,function(o,s,l,u){o.drawPoints(t,s,l,u)})};Fa.prototype.drawMetrics=function(t,e,n,r,i,a){this.forEachGlyph(e,n,r,i,a,function(o,s,l,u){o.drawMetrics(t,s,l,u)})};Fa.prototype.getEnglishName=function(t){var e=this.names[t];if(e)return e.en};Fa.prototype.validate=function(){var t=this;function e(r,i){}T(e,"assert");function n(r){var i=t.getEnglishName(r);i&&i.trim().length>0}T(n,"assertNamePresent"),n("fontFamily"),n("weightName"),n("manufacturer"),n("copyright"),n("version"),this.unitsPerEm>0};Fa.prototype.toTables=function(){return lbt.fontToTable(this)};Fa.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()};Fa.prototype.toArrayBuffer=function(){for(var t=this.toTables(),e=t.encode(),n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i<e.length;i++)r[i]=e[i];return n};Fa.prototype.download=function(t){var e=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");t=t||e.replace(/\s/g,"")+"-"+n+".otf";var r=this.toArrayBuffer();if(xve())if(window.URL=window.URL||window.webkitURL,window.URL){var i=new DataView(r),a=new Blob([i],{type:"font/opentype"}),o=document.createElement("a");o.href=window.URL.createObjectURL(a),o.download=t;var s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),o.dispatchEvent(s)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=require("fs"),u=Ove(r);l.writeFileSync(t,u)}};Fa.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};Fa.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};Fa.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function VJ(t,e){var n=JSON.stringify(t),r=256;for(var i in e){var a=parseInt(i);if(!(!a||a<256)){if(JSON.stringify(e[i])===n)return a;r<=a&&(r=a+1)}}return e[r]=t,r}T(VJ,"addName");function zCe(t,e,n){var r=VJ(e.name,n);return[{name:"tag_"+t,type:"TAG",value:e.tag},{name:"minValue_"+t,type:"FIXED",value:e.minValue<<16},{name:"defaultValue_"+t,type:"FIXED",value:e.defaultValue<<16},{name:"maxValue_"+t,type:"FIXED",value:e.maxValue<<16},{name:"flags_"+t,type:"USHORT",value:0},{name:"nameID_"+t,type:"USHORT",value:r}]}T(zCe,"makeFvarAxis");function qCe(t,e,n){var r={},i=new gr.Parser(t,e);return r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip("uShort",1),r.name=n[i.parseUShort()]||{},r}T(qCe,"parseFvarAxis");function YCe(t,e,n,r){for(var i=VJ(e.name,r),a=[{name:"nameID_"+t,type:"USHORT",value:i},{name:"flags_"+t,type:"USHORT",value:0}],o=0;o<n.length;++o){var s=n[o].tag;a.push({name:"axis_"+t+" "+s,type:"FIXED",value:e.coordinates[s]<<16})}return a}T(YCe,"makeFvarInstance");function XCe(t,e,n,r){var i={},a=new gr.Parser(t,e);i.name=r[a.parseUShort()]||{},a.skip("uShort",1),i.coordinates={};for(var o=0;o<n.length;++o)i.coordinates[n[o].tag]=a.parseFixed();return i}T(XCe,"parseFvarInstance");function GCe(t,e){var n=new nr.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:t.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:t.instances.length},{name:"instanceSize",type:"USHORT",value:4+t.axes.length*4}]);n.offsetToData=n.sizeOf();for(var r=0;r<t.axes.length;r++)n.fields=n.fields.concat(zCe(r,t.axes[r],e));for(var i=0;i<t.instances.length;i++)n.fields=n.fields.concat(YCe(i,t.instances[i],t.axes,e));return n}T(GCe,"makeFvarTable");function QCe(t,e,n){var r=new gr.Parser(t,e),i=r.parseULong();zr.argument(i===65536,"Unsupported fvar table version.");var a=r.parseOffset16();r.skip("uShort",1);for(var o=r.parseUShort(),s=r.parseUShort(),l=r.parseUShort(),u=r.parseUShort(),c=[],d=0;d<o;d++)c.push(qCe(t,e+a+d*s,n));for(var h=[],f=e+a+o*s,m=0;m<l;m++)h.push(XCe(t,f+m*u,c,n));return{axes:c,instances:h}}T(QCe,"parseFvarTable");var fbt={make:GCe,parse:QCe},mbt=T(function(){return{coverage:this.parsePointer(St.coverage),attachPoints:this.parseList(St.pointer(St.uShortList))}},"attachList"),gbt=T(function(){var t=this.parseUShort();if(zr.argument(t===1||t===2||t===3,"Unsupported CaretValue table version."),t===1)return{coordinate:this.parseShort()};if(t===2)return{pointindex:this.parseShort()};if(t===3)return{coordinate:this.parseShort()}},"caretValue"),pbt=T(function(){return this.parseList(St.pointer(gbt))},"ligGlyph"),vbt=T(function(){return{coverage:this.parsePointer(St.coverage),ligGlyphs:this.parseList(St.pointer(pbt))}},"ligCaretList"),_bt=T(function(){return this.parseUShort(),this.parseList(St.pointer(St.coverage))},"markGlyphSets");function KCe(t,e){e=e||0;var n=new St(t,e),r=n.parseVersion(1);zr.argument(r===1||r===1.2||r===1.3,"Unsupported GDEF table version.");var i={version:r,classDef:n.parsePointer(St.classDef),attachList:n.parsePointer(mbt),ligCaretList:n.parsePointer(vbt),markAttachClassDef:n.parsePointer(St.classDef)};return r>=1.2&&(i.markGlyphSets=n.parsePointer(_bt)),i}T(KCe,"parseGDEFTable");var Cbt={parse:KCe},pd=new Array(10);pd[1]=T(function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(e===1)return{posFormat:1,coverage:this.parsePointer(St.coverage),value:this.parseValueRecord()};if(e===2)return{posFormat:2,coverage:this.parsePointer(St.coverage),values:this.parseValueRecordList()};zr.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},"parseLookup1");pd[2]=T(function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();zr.assert(e===1||e===2,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(St.coverage),r=this.parseUShort(),i=this.parseUShort();if(e===1)return{posFormat:e,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(St.pointer(St.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))};if(e===2){var a=this.parsePointer(St.classDef),o=this.parsePointer(St.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:e,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:a,classDef2:o,class1Count:s,class2Count:l,classRecords:this.parseList(s,St.list(l,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))}}},"parseLookup2");pd[3]=T(function(){return{error:"GPOS Lookup 3 not supported"}},"parseLookup3");pd[4]=T(function(){return{error:"GPOS Lookup 4 not supported"}},"parseLookup4");pd[5]=T(function(){return{error:"GPOS Lookup 5 not supported"}},"parseLookup5");pd[6]=T(function(){return{error:"GPOS Lookup 6 not supported"}},"parseLookup6");pd[7]=T(function(){return{error:"GPOS Lookup 7 not supported"}},"parseLookup7");pd[8]=T(function(){return{error:"GPOS Lookup 8 not supported"}},"parseLookup8");pd[9]=T(function(){return{error:"GPOS Lookup 9 not supported"}},"parseLookup9");function ZCe(t,e){e=e||0;var n=new St(t,e),r=n.parseVersion(1);return zr.argument(r===1||r===1.1,"Unsupported GPOS table version "+r),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(pd)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(pd),variations:n.parseFeatureVariationsList()}}T(ZCe,"parseGposTable");var Sbt=new Array(10);function JCe(t){return new nr.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new nr.ScriptList(t.scripts)},{name:"features",type:"TABLE",value:new nr.FeatureList(t.features)},{name:"lookups",type:"TABLE",value:new nr.LookupList(t.lookups,Sbt)}])}T(JCe,"makeGposTable");var bbt={parse:ZCe,make:JCe};function eSe(t){var e={};t.skip("uShort");var n=t.parseUShort();zr.argument(n===0,"Unsupported kern sub-table version."),t.skip("uShort",2);var r=t.parseUShort();t.skip("uShort",3);for(var i=0;i<r;i+=1){var a=t.parseUShort(),o=t.parseUShort(),s=t.parseShort();e[a+","+o]=s}return e}T(eSe,"parseWindowsKernTable");function tSe(t){var e={};t.skip("uShort");var n=t.parseULong();n>1&&console.warn("Only the first kern subtable is supported."),t.skip("uLong");var r=t.parseUShort(),i=r&255;if(t.skip("uShort"),i===0){var a=t.parseUShort();t.skip("uShort",3);for(var o=0;o<a;o+=1){var s=t.parseUShort(),l=t.parseUShort(),u=t.parseShort();e[s+","+l]=u}}return e}T(tSe,"parseMacKernTable");function nSe(t,e){var n=new gr.Parser(t,e),r=n.parseUShort();if(r===0)return eSe(n);if(r===1)return tSe(n);throw new Error("Unsupported kern table version ("+r+").")}T(nSe,"parseKernTable");var ybt={parse:nSe};function rSe(t,e,n,r){for(var i=new gr.Parser(t,e),a=r?i.parseUShort:i.parseULong,o=[],s=0;s<n+1;s+=1){var l=a.call(i);r&&(l*=2),o.push(l)}return o}T(rSe,"parseLocaTable");var Ebt={parse:rSe};function nz(t,e){for(var n=[],r=12,i=0;i<e;i+=1){var a=gr.getTag(t,r),o=gr.getULong(t,r+4),s=gr.getULong(t,r+8),l=gr.getULong(t,r+12);n.push({tag:a,checksum:o,offset:s,length:l,compression:!1}),r+=16}return n}T(nz,"parseOpenTypeTableEntries");function iSe(t,e){for(var n=[],r=44,i=0;i<e;i+=1){var a=gr.getTag(t,r),o=gr.getULong(t,r+4),s=gr.getULong(t,r+8),l=gr.getULong(t,r+12),u=void 0;s<l?u="WOFF":u=!1,n.push({tag:a,offset:o,compression:u,compressedLength:s,length:l}),r+=20}return n}T(iSe,"parseWOFFTableEntries");function Po(t,e){if(e.compression==="WOFF"){var n=new Uint8Array(t.buffer,e.offset+2,e.compressedLength-2),r=new Uint8Array(e.length);if(ebt(n,r),r.byteLength!==e.length)throw new Error("Decompression error: "+e.tag+" decompressed length doesn't match recorded length");var i=new DataView(r.buffer,0);return{data:i,offset:0}}else return{data:t,offset:e.offset}}T(Po,"uncompressTable");function aSe(t,e){e=e??{};var n,r,i=new Fa({empty:!0}),a=new DataView(t,0),o,s=[],l=gr.getTag(a,0);if(l==="\0\0\0"||l==="true"||l==="typ1")i.outlinesFormat="truetype",o=gr.getUShort(a,4),s=nz(a,o);else if(l==="OTTO")i.outlinesFormat="cff",o=gr.getUShort(a,4),s=nz(a,o);else if(l==="wOFF"){var u=gr.getTag(a,4);if(u==="\0\0\0")i.outlinesFormat="truetype";else if(u==="OTTO")i.outlinesFormat="cff";else throw new Error("Unsupported OpenType flavor "+l);o=gr.getUShort(a,12),s=iSe(a,o)}else throw new Error("Unsupported OpenType signature "+l);for(var c,d,h,f,m,g,p,v,_,C,S,b,y=0;y<o;y+=1){var A=s[y],w=void 0;switch(A.tag){case"cmap":w=Po(a,A),i.tables.cmap=g8e.parse(w.data,w.offset),i.encoding=new yJ(i.tables.cmap);break;case"cvt ":w=Po(a,A),b=new gr.Parser(w.data,w.offset),i.tables.cvt=b.parseShortList(A.length/2);break;case"fvar":d=A;break;case"fpgm":w=Po(a,A),b=new gr.Parser(w.data,w.offset),i.tables.fpgm=b.parseByteList(A.length);break;case"head":w=Po(a,A),i.tables.head=G8e.parse(w.data,w.offset),i.unitsPerEm=i.tables.head.unitsPerEm,n=i.tables.head.indexToLocFormat;break;case"hhea":w=Po(a,A),i.tables.hhea=Z8e.parse(w.data,w.offset),i.ascender=i.tables.hhea.ascender,i.descender=i.tables.hhea.descender,i.numberOfHMetrics=i.tables.hhea.numberOfHMetrics;break;case"hmtx":p=A;break;case"ltag":w=Po(a,A),r=ove.parse(w.data,w.offset);break;case"maxp":w=Po(a,A),i.tables.maxp=uve.parse(w.data,w.offset),i.numGlyphs=i.tables.maxp.numGlyphs;break;case"name":C=A;break;case"OS/2":w=Po(a,A),i.tables.os2=TW.parse(w.data,w.offset);break;case"post":w=Po(a,A),i.tables.post=Eve.parse(w.data,w.offset),i.glyphNames=new FT(i.tables.post);break;case"prep":w=Po(a,A),b=new gr.Parser(w.data,w.offset),i.tables.prep=b.parseByteList(A.length);break;case"glyf":h=A;break;case"loca":_=A;break;case"CFF ":c=A;break;case"kern":v=A;break;case"GDEF":f=A;break;case"GPOS":m=A;break;case"GSUB":g=A;break;case"meta":S=A;break}}var P=Po(a,C);if(i.tables.name=vve.parse(P.data,P.offset,r),i.names=i.tables.name,h&&_){var M=n===0,L=Po(a,_),k=Ebt.parse(L.data,L.offset,i.numGlyphs,M),O=Po(a,h);i.glyphs=Bve.parse(O.data,O.offset,k,i,e)}else if(c){var $=Po(a,c);q8e.parse($.data,$.offset,i,e)}else throw new Error("Font doesn't contain TrueType or CFF outlines.");var B=Po(a,p);if(rve.parse(i,B.data,B.offset,i.numberOfHMetrics,i.numGlyphs,i.glyphs,e),_8e(i,e),v){var V=Po(a,v);i.kerningPairs=ybt.parse(V.data,V.offset)}else i.kerningPairs={};if(f){var X=Po(a,f);i.tables.gdef=Cbt.parse(X.data,X.offset)}if(m){var z=Po(a,m);i.tables.gpos=bbt.parse(z.data,z.offset),i.position.init()}if(g){var F=Po(a,g);i.tables.gsub=wve.parse(F.data,F.offset)}if(d){var H=Po(a,d);i.tables.fvar=fbt.parse(H.data,H.offset,i.names)}if(S){var W=Po(a,S);i.tables.meta=Pve.parse(W.data,W.offset),i.metas=i.tables.meta}return i}T(aSe,"parseBuffer");function oSe(t){const{family:e,style:n}=t;let r=0,i=400;switch(/italic/i.test(n)&&(r=1),!0){case/thin|hairline/i.test(n):{i=100;break}case/(extra|ultra) *light/i.test(n):{i=200;break}case/light/i.test(n):{i=300;break}case/medium/i.test(n):{i=500;break}case/(semi|demi) *bold/i.test(n):{i=600;break}case/bold/i.test(n):{i=700;break}case/(extra|ultra) *bold/i.test(n):{i=800;break}case/black|heavy/i.test(n):{i=900;break}}return{family:e,variant:{style:r,weight:i}}}T(oSe,"getFontInfoFromFontData");function sSe(t){const{ff:e,bl:n=at.FALSE,it:r=at.FALSE}=t;return{family:e??"Arial",variant:{style:r===at.TRUE?1:0,weight:n===at.TRUE?700:400}}}T(sSe,"getFontInfoFromTextStyle");function lSe(t,e){let n=Number.POSITIVE_INFINITY;t.variant.style===e.variant.style?n=0:t.variant.style!==0&&e.variant.style!==0?n=1:n=2;const r=Math.abs(t.variant.weight-e.variant.weight);return[n,r]}T(lSe,"fontInfoDistance");function uSe(t,e){return t[0]===e[0]&&t[1]===e[1]?0:t[0]===e[0]?t[1]>e[1]?1:2:t[0]>e[0]?1:2}T(uSe,"compareFontInfoDistance");async function cSe(){var t;return typeof window>"u"?void 0:window.navigator==null||((t=window.navigator)==null?void 0:t.permissions)==null?!1:(await window.navigator.permissions.query({name:"local-fonts"})).state==="granted"}T(cSe,"checkLocalFontsPermission");const dSe=class{constructor(){q(this,"isReady",!1),q(this,"_fontBook",new Map),this._loadFontsToBook()}async _loadFontsToBook(){if(!(this.isReady||!await cSe())&&"queryLocalFonts"in window)try{const e=await window.queryLocalFonts();for(const n of e){const{family:r,style:i}=n;let a=this._fontBook.get(r);a==null&&(a=new Map,this._fontBook.set(r,a));const o=await(await n.blob()).arrayBuffer();a.set(i,{font:n,buffer:o})}this.isReady=!0}catch(e){console.error(e)}}findBestMatchFontByStyle(e){const n=e.ff,r=this._fontBook.get(n);if(r==null)return;let i=null,a=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY];for(const o of r.values()){const{font:s}=o,l=oSe(s),u=sSe(e),c=lSe(l,u);(i==null||uSe(a,c)===1)&&(i=o,a=c)}return i}getValidFontFamilies(e){return e.filter(n=>this._fontBook.has(n))}};T(dSe,"FontLibrary");let Rbt=dSe;const ID=new Rbt;function hSe(t,e){const{dataStream:n,paragraphs:r=[],textRuns:i=[]}=t;let a=0;for(let s=0;s<r.length;s++){const l=r[s],{startIndex:u}=l;if(u===e)break;a=u+1}const o=[];for(const s of i){const{st:l,ed:u}=s;l>=a&&l<=e?o.push({...s,st:l-a,ed:Math.min(u,e)-a}):u>=a&&u<=e&&o.push({...s,st:Math.max(l,a)-a,ed:u-a})}return{dataStream:n.substring(a,e+1),textRuns:o}}T(hSe,"prepareParagraphBody");function fSe(t){const{dataStream:e,textRuns:n=[]}=t;let r=0;const i=[];for(const a of n){const{st:o,ed:s,ts:l={}}=a;o!==r&&i.push({content:e.substring(r,o)}),i.push({content:e.substring(o,s),style:l}),r=s}return r!==e.length&&i.push({content:e.substring(r)}),i}T(fSe,"prepareTextChunks");const cse=new Map,FN=new Map;function PD(t,e,n,r,i){var a,o,s,l;let u=0,c=r[u];for(;n.has(c);)u++,c=r[u];if(!c)return[{char:t,start:e,end:e+t.length,glyph:null,font:null,kerning:0,boundingBox:null}];n.add(c);const{font:d,buffer:h}=ID.findBestMatchFontByStyle({ff:c,bl:(a=i.bl)!=null?a:at.FALSE,it:(o=i.it)!=null?o:at.FALSE});let f=cse.get(d.fullName);f||(f=aSe(h),cse.set(d.fullName,f));const m=[],g=f.stringToGlyphs(t),p=(s=t.match(/[\s\S]/gu))!=null?s:[];let v=0,_=0;for(;v<g.length;){const C=g[v];if(C.index!==0)m.push({char:p[v],start:_+e,end:_+e+p[v].length,glyph:C,font:f,kerning:0,boundingBox:C.getBoundingBox()});else{const S=_,b=t.substring(S).match(eW);if(b){let y=0;do y+=p[v].length,_+=p[v].length,v++;while(y<b[0].length);m.push(...PD(t.slice(S,S+b[0].length),e+S,n,r,i));continue}else{let y=g[v+1],A=p[v+1];for(;(y==null?void 0:y.index)===0&&!eW.test(A);)_+=p[v].length,v++,y=g[v+1],A=p[v+1];m.push(...PD(t.slice(S,_+p[v].length),e+S,n,r,i))}}_+=(l=p[v])==null?void 0:l.length,v++}return n.delete(c),m}T(PD,"shapeChunk");function mSe(t){if(t.length<2)return;let e=t[0].font,n=t[0].glyph;for(let r=1;r<t.length;r++){const{font:i,glyph:a}=t[r];if(e!==i||i==null||n==null||a==null){e=i,n=a;continue}const o=i.getKerningValue(n,a);o!==0&&(t[r].kerning=o),e=i,n=a}}T(mSe,"kerningAdjustment");function gSe(t){var e;if(!ID.isReady)return[];const n=JSON.stringify(t);if(FN.has(n))return FN.get(n);const r=fSe(t),i=[];let a=0;for(const o of r){const{content:s,style:l={}}=o;let u=V7.split(",").map(c=>c.trim().replace(/["']/g,""));u.unshift((e=l.ff)!=null?e:"Arial"),u=ID.getValidFontFamilies(u),i.push(...PD(s,a,new Set,u,l)),a+=s.length}return mSe(i),FN.set(n,i),i}T(gSe,"textShape");function BJ(t){return t.length>0&&!/\s|(?![\'])[\!-\@\[-\`\{-\~\u2013-\u203C]/.test(t)}T(BJ,"isLetter");function pSe(t){let e="";for(let n=0;n<t.length&&BJ(t[n]);n++)e+=t[n];return e}T(pSe,"getWord");function UJ(t,e,n){let r=t;for(let i=0;i<=n;i++)r+=e[i].length;return r}T(UJ,"getSlicePosition");function vSe(t){return t.length>0&&t===t.toUpperCase()}T(vSe,"isUpperCase");const _Se=class{constructor(e,n,r,i=!1){q(this,"_curBreak",null),q(this,"_nextBreak",new Km(0)),q(this,"_isInWord",!1),q(this,"_word",""),q(this,"_hyphenIndex",-1),q(this,"_hyphenSlice",[]),q(this,"content",""),this._lineBreaker=e,this._hyphen=n,this._lang=r,this._doNotHyphenateCaps=i,this.content=e.content}nextBreakPoint(){if(this._isInWord)if(this._hyphenIndex<this._hyphenSlice.length-1){const e=UJ(this._curBreak.position,this._hyphenSlice,this._hyphenIndex);return this._hyphenIndex++,new Km(e,qs.Hyphen)}else return this._isInWord=!1,this._word="",this._hyphenSlice=[],this._hyphenIndex=-1,this._nextBreak;else{if(this._curBreak=this._nextBreak,this._nextBreak=this._lineBreaker.nextBreakPoint(),this._nextBreak==null||this._curBreak==null)return null;const e=pSe(this.content.slice(this._curBreak.position,this._nextBreak.position));return e.length&&!(vSe(e)&&this._doNotHyphenateCaps)&&this._nextBreak.type!==qs.Link?(this._isInWord=!0,this._word=e,this._hyphenSlice=this._hyphen.hyphenate(this._word,this._lang),this._hyphenIndex=0,this.nextBreakPoint()):this._nextBreak}}};T(_Se,"LineBreakerHyphenEnhancer");let Abt=_Se;var bi=(t=>(t.Af="af",t.As="as",t.Be="be",t.Bg="bg",t.Bn="bn",t.Ca="ca",t.Cop="cop",t.Cs="cs",t.Cu="cu",t.Cy="cy",t.Da="da",t.De1901="de-1901",t.De1996="de-1996",t.DeCh1901="de-ch-1901",t.ElMonoton="el-monoton",t.ElPolyton="el-polyton",t.EnGb="en-gb",t.EnUs="en-us",t.Es="es",t.Et="et",t.Eu="eu",t.Fi="fi",t.Fr="fr",t.Fur="fur",t.Ga="ga",t.Gl="gl",t.Grc="grc",t.Gu="gu",t.Hi="hi",t.Hr="hr",t.Hsb="hsb",t.Hu="hu",t.Hy="hy",t.Ia="ia",t.Id="id",t.Is="is",t.It="it",t.Ka="ka",t.Kmr="kmr",t.Kn="kn",t.LaXClassic="la-x-classic",t.LaXLiturgic="la-x-liturgic",t.La="la",t.Lt="lt",t.Lv="lv",t.Ml="ml",t.MnCyrlXLmc="mn-cyrl-x-lmc",t.MnCyrl="mn-cyrl",t.Mr="mr",t.MulEthi="mul-ethi",t.Nb="nb",t.Nl="nl",t.Nn="nn",t.No="no",t.Oc="oc",t.Or="or",t.Pa="pa",t.Pi="pi",t.Pl="pl",t.Pms="pms",t.Pt="pt",t.Rm="rm",t.Ro="ro",t.Ru="ru",t.Sa="sa",t.ShCyrl="sh-cyrl",t.ShLatn="sh-latn",t.Sk="sk",t.Sl="sl",t.SrCyrl="sr-cyrl",t.Sv="sv",t.Ta="ta",t.Te="te",t.Th="th",t.Tk="tk",t.Tr="tr",t.Uk="uk",t.ZhLatnPinyin="zh-latn-pinyin",t.UNKNOWN="unknown",t))(bi||{});const dse=8;function CSe(t){t.addRule("break_before_and_after_slash_b",(e,n)=>e===dse||n===dse)}T(CSe,"customBlockLineBreakExtension");function SSe(t){return/[a-z]/i.test(t)?"Alphabetic":/[0-9]/.test(t)?"Digit":t==="("||t==="["?"Open":"Other"}T(SSe,"ofLinkCharType");function bSe(t){const e=[];let n=0,r="Other";for(let i=0;i<t.length;i++){const a=t[i],o=SSe(a);if(i>0&&r!=="Open"&&(o==="Other"?o==="Other":o!==r)){const s=t.slice(n,i);if(s.length<16)e.push(s);else for(let l=0;l<s.length;l++)e.push(s[l]);n=i,r=o}}return e}T(bSe,"linebreakLink");const wbt=/[a-z\d!#$%&*+,-./:;=?@_~\\]/i,Dbt=/[!,.;:?']$/g;function ySe(t,e){let n="";for(let r=e;r<t.length;r++){const i=t[r];if(wbt.test(i))n+=i;else break}return n.replace(Dbt,""),n}T(ySe,"extractLink");const ESe=class{constructor(e){q(this,"_curBreak",null),q(this,"_nextBreak",new Km(0)),q(this,"_isInLink",!1),q(this,"_link",""),q(this,"_index",-1),q(this,"_linkSlice",[]),q(this,"content",""),this._lineBreaker=e,this.content=e.content}nextBreakPoint(){if(this._isInLink)if(this._index<this._linkSlice.length-1){const e=UJ(this._curBreak.position,this._linkSlice,this._index);return this._index++,new Km(e,qs.Link)}else return this._isInLink=!1,this._link="",this._linkSlice=[],this._index=-1,this._nextBreak;else{if(this._curBreak=this._nextBreak,this._nextBreak=this._lineBreaker.nextBreakPoint(),this._nextBreak==null||this._curBreak==null)return null;const e=this.content.slice(this._curBreak.position,this._nextBreak.position);if(e.length&&(e.endsWith("://")||e.startsWith("www."))){for(this._isInLink=!0,this._link=ySe(this.content,this._curBreak.position),this._linkSlice=bSe(this._link),this._index=0;this._nextBreak&&this._nextBreak.position<this._curBreak.position+this._link.length;)this._nextBreak=this._lineBreaker.nextBreakPoint();return this.nextBreakPoint()}else return this._nextBreak}}};T(ESe,"LineBreakerLinkEnhancer");let Ibt=ESe;function RSe(t,e,n,r,i,a){const o=[];let s=0;for(let l=0;l<e.length;l++){const u=e[l];if(x7e(u)||_D(e.substring(l)))break;const c=h0(t+l,n,r,i,a),d=Zm(u,c);o.push(d),s++}return{step:s,glyphGroup:o}}T(RSe,"otherHandler");function ASe(t,e,n,r,i,a){const o=h0(t,n,r,i,a),s=[];let l=0;for(let u=0;u<e.length;u++){const c=e[u];if(BZ(c))s.unshift(c),l++;else break}return{step:l,glyphGroup:[Zm(s.join(""),o)]}}T(ASe,"ArabicHandler");function wSe(t,e,n,r,i,a){const o=h0(t,n,r,i,a),s=e.match(eW);return{step:s[0].length,glyphGroup:[Zm(s[0],o)]}}T(wSe,"emojiHandler");function DSe(t,e,n,r,i,a){const o=h0(t,n,r,i,a),s=[];let l=0;for(let u=0;u<e.length;u++){const c=e[u];if(UZ(c))s.push(c),l++;else break}return{step:l,glyphGroup:[I9e(s.join(""),o)]}}T(DSe,"TibetanHandler");function ISe(t){const e=t.length;for(let n=0;n<e-1;n++){const r=t[n],i=t[n+1],{width:a,content:o}=r,s=a/2;if(J$(o)&&J$(i.content)&&r.adjustability.shrinkability[1]+i.adjustability.shrinkability[0]>=s){const l=Math.min(r.adjustability.shrinkability[1],s);KZ(r,l),ZZ(i,s-l)}}}T(ISe,"punctuationSpaceAdjustment");function PSe(t){const e=t.flatMap(a=>a.glyphs);let n=null;const r=e.length,i=/[a-z\d]/i;for(let a=0;a<r;a++){const o=e[a],s=a<r-1?e[a+1]:null,{width:l}=o;B4(o.content)&&s&&i.test(s.content)&&(o.width+=l/4,o.adjustability.shrinkability[1]+=l/8),B4(o.content)&&n&&i.test(n.content)&&(o.width+=l/4,o.xOffset+=l/4,o.adjustability.shrinkability[0]+=l/8),n=o}}T(PSe,"addCJKLatinSpacing");function MSe(t,e){const{suppressHyphenation:n=at.FALSE}=t,{autoHyphenation:r=at.FALSE}=e;return n===at.FALSE&&r===at.TRUE}T(MSe,"hyphenConfig");function TSe(t,e,n,r,i,a=!1){var o;const{gridType:s=Zo.LINES,charSpace:l=0,defaultTabStop:u=10.5,drawings:c={}}=i,d=[];let h=new KSt(e);const{endIndex:f}=r,m=n.getParagraph(f)||{},{paragraphStyle:g={}}=m,{snapToGrid:p=at.TRUE}=g;let v=0,_,C=0;const{hyphen:S,languageDetector:b}=t,y=hSe(n.getBody(),f);let A=[];a&&(A=gSe(y)),$5e(h),CSe(h),h=new Ibt(h);const w=b.detect(e),P=MSe(g,i),M=i.doNotHyphenateCaps===at.TRUE;for(w!==bi.UNKNOWN&&P&&(S.hasPattern(w)?h=new Abt(h,S,w,M):S.loadPattern(w));_=h.nextBreakPoint();){const L=e.slice(v,_.position),k=[];if(ID.isReady&&a){const B=[];let V=0;for(V=C;V<A.length;V++){const X=A[V],{end:z}=X;if(z>_.position)break;B.push(X)}C=V;for(const X of B){const{start:z,char:F}=X,H=h0(z,n,r,i,m);if(F===wt.TAB){const W=w0(l,u,s,p),K=iW(H,W);k.push(K)}else if(_D(F)){const W=Zm(F,H);k.push(W)}else{const W=Zm(F,H,void 0,X);k.push(W)}}}else{let B=L,V=v;for(;B.length>0;){const X=(o=B.match(/^[\s\S]/gu))==null?void 0:o[0];if(X==null)break;if(X===wt.CUSTOM_BLOCK){const z=h0(V,n,r,i,m);let F=null;const H=n.getCustomBlockWithoutSetCurrentIndex(r.startIndex+V);if(H!=null){const{blockId:W}=H,K=c[W];if(K.layoutType===Sl.INLINE){const{angle:G}=K.docTransform,{width:te=0,height:Y=0}=K.docTransform.size,ae=_S(G,0,te,0,Y);F=aW(z,ae.width,ae.height,K.drawingId)}else F=aW(z,0,0,K.drawingId)}F==null&&(F=Zm(X,z)),k.push(F),V+=X.length,B=B.substring(X.length)}else if(/\s/.test(X)||hS(X)){const z=h0(V,n,r,i,m);let F=null;if(X===wt.TAB){const H=w0(l,u,s,p);F=iW(z,H)}else F=Zm(X,z);k.push(F),V+=X.length,B=B.substring(X.length)}else if(_D(B)){const{step:z,glyphGroup:F}=wSe(V,B,n,r,i,m);k.push(...F),V+=z,B=B.substring(z)}else if(BZ(X)){const{step:z,glyphGroup:F}=ASe(V,B,n,r,i,m);k.push(...F),V+=z,B=B.substring(z)}else if(UZ(X)){const{step:z,glyphGroup:F}=DSe(V,B,n,r,i,m);k.push(...F),V+=z,B=B.substring(z)}else{const{step:z,glyphGroup:F}=RSe(V,B,n,r,i,m);k.push(...F),V+=z,B=B.substring(z)}}}ISe(k);const O=[[]];for(let B=0;B<k.length;B++){const V=O[O.length-1],X=k[B];X.streamType===wt.CUSTOM_BLOCK&&X.width!==0?(V.length===0&&O.pop(),O.push([X])):V.push(X)}const $=O[O.length-1];for(const B of O){const V=B.map(X=>X.content).join("");d.push({text:V,glyphs:B,breakPointType:B===$?_.type:qs.Normal})}v=_.position}return PSe(d),d}T(TSe,"shaping");function LSe(t,e,n){return xSe(t,e,n)}T(LSe,"getBulletOrderedSymbol");function xSe(t,e,n){return n===Er.DECIMAL?rz(t,e):n===Er.DECIMAL_ZERO?OSe(t,e):n===Er.UPPER_LETTER?NSe(t,e):n===Er.LOWER_LETTER?kSe(t,e):n===Er.UPPER_ROMAN?FSe(t,e):n===Er.LOWER_ROMAN?VSe(t,e):rz(t,e)}T(xSe,"generateOrderedSymbol");function rz(t,e){return(t+e).toString()}T(rz,"decimal");function OSe(t,e){const n=t+e;return n<10?`0${n}`:n.toString()}T(OSe,"zeroDecimal");function NSe(t,e){return GX(t+e-1,!0)}T(NSe,"upperAlpha");function kSe(t,e){return GX(t+e-1,!1)}T(kSe,"alpha");function FSe(t,e){return HJ(t+e,!0)}T(FSe,"upperRoman");function VSe(t,e){return HJ(t+e,!1)}T(VSe,"roman");function HJ(t,e=!1){const n={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let r={m:1e3,cm:900,d:500,cd:400,c:100,xc:90,l:50,xl:40,x:10,ix:9,v:5,iv:4,i:1};e&&(r=n);let i="";for(const a in r)for(;t>=r[a];)i+=a,t-=r[a];return i}T(HJ,"_convertRoman");function BSe(t,e,n,r){var i,a;if(!t||!e)return;const{listId:o,listType:s,nestingLevel:l=0,textStyle:u}=t,c=e[s];return!c||!c.nestingLevel?iz(o,(i=n==null?void 0:n[l])==null?void 0:i.startIndexItem):c.nestingLevel[l]?USe(o,l,c.nestingLevel,n,u):iz(o,(a=n==null?void 0:n[l])==null?void 0:a.startIndexItem)}T(BSe,"dealWithBullet");function iz(t,e=1){return{listId:t,symbol:"●",ts:{ff:"Arial",fs:9},startIndexItem:e,paragraphProperties:{indentFirstLine:{v:0},hanging:{v:21},indentStart:{v:0}}}}T(iz,"getDefaultBulletSke");function USe(t,e,n,r,i,a){var o,s;const l=n[e],{bulletAlignment:u,glyphFormat:c,textStyle:d={},glyphType:h,glyphSymbol:f}=l,m={...i,...d},g=rp(m);let p;f?p=f:p=HSe(c,e,n,r);const v=(s=(o=r==null?void 0:r[e])==null?void 0:o.startIndexItem)!=null?s:1;return{listId:t,symbol:p,ts:m,fontStyle:g,startIndexItem:v+1,nestingLevel:l,bulletAlign:u,bulletType:f?!1:!!h,paragraphProperties:l.paragraphProperties}}T(USe,"_getBulletSke");function HSe(t,e,n,r){var i;const a=t.split("%"),o=[a[0]];for(let s=1;s<a.length;s++){const l=a[s],{level:u,suffix:c}=$Se(l);let d=((i=r==null?void 0:r[u])==null?void 0:i.startIndexItem)||1;u!==e&&(r==null?void 0:r[u])!==null&&(d-=1);const h=jSe(d,n[u]);o.push(h,c)}return o.join("")}T(HSe,"__generateOrderedListSymbol");function jSe(t=1,e){const{startNumber:n,glyphType:r,glyphSymbol:i}=e;return i||(r?LSe(t,n,r):"●")}T(jSe,"___getSymbolByBesting");function $Se(t){if(t==="")return{level:0,suffix:""};const e=t.split("");let n="",r="",i=!1;const a=/[0-9]/g;return e.forEach(o=>{!i&&a.test(`${n}${o}`)?n+=o:(i=!0,r+=o)}),{level:Number.parseInt(n)-1,suffix:r}}T($Se,"___getLevelAndSuffix");function WSe(t,e){if(!t||!e)return;const{listId:n,nestingLevel:r}=t,i=e==null?void 0:e.get(n);let a=r;a<0&&(a=0);const o=[];for(let s=a;s>=0;s--){const l=i==null?void 0:i[s];o[s]=l||null}return o}T(WSe,"_getListLevelAncestors");function zSe(t,e,n){if(!t||!e)return;const{listId:r,nestingLevel:i}=t,a=[...(n==null?void 0:n.get(r))||[]];a[i]=e,a.splice(i+1),n==null||n.set(r,a)}T(zSe,"_updateListLevelAncestors");function az(t){const{drawingId:e}=t;return{drawingId:e,aLeft:0,aTop:0,width:0,height:0,angle:0,initialState:!1,drawingOrigin:t,columnLeft:0,lineHeight:0,lineTop:0,blockAnchorTop:0,isPageBreak:!1}}T(az,"_getDrawingSkeletonFormat");function oz(t){return t.pageNumber+1}T(oz,"_getNextPageNumber");function qSe(t,e,n,r,i,a,o){const{skeletonResourceReference:s}=t,{lists:l,drawings:u={},localeService:c}=a,{endIndex:d,blocks:h=[]}=i,{segmentId:f}=r,m=e.getParagraph(d)||{},{paragraphStyle:g={},bullet:p}=m,{skeHeaders:v,skeFooters:_,skeListLevel:C,drawingAnchor:S}=s,b=new Map,y=new Map;let A=S==null?void 0:S.get(f);A==null&&(A=new Map,S==null||S.set(f,A));const w={paragraphIndex:d,paragraphStyle:Ie.deepClone(g),paragraphAffectSkeDrawings:b,paragraphInlineSkeDrawings:y,skeTablesInParagraph:o?[{tableId:o.tableId,table:o,hasPositioned:!1}]:void 0,skeHeaders:v,skeFooters:_,pDrawingAnchor:A};let P=t.paragraphConfigCache.get(f);P==null&&(P=new Map,t.paragraphConfigCache.set(f,P)),P.set(d,w);const M=WSe(p,C),L=BSe(p,l,M);zSe(p,L,C),w.bulletSkeleton=L;for(let $=0,B=h.length;$<B;$++){const V=h[$],X=e.getCustomBlock(V);if(X==null)continue;const{blockId:z}=X,F=u[z];F.layoutType===Sl.INLINE?y.set(z,az(F)):b.set(z,az(F))}let k=[r],O=!0;for(const[$,{text:B,glyphs:V,breakPointType:X}]of n.entries()){const z=T(()=>{V.length!==0&&(k=z9e(t,V,k,a,w,O,X),O=!1)},"pushPending");if(B.endsWith(wt.PAGE_BREAK)){z(),k.push(D0(t,a,s,oz(k[k.length-1]),l_.PAGE)),b.clear(),y.clear();continue}else if(B.endsWith(wt.COLUMN_BREAK)){z();const F=k[k.length-1],H=d_(F);H&&!H.isLast?eJ(H.column,!0):k.push(D0(t,a,s,oz(F),l_.COLUMN));continue}z()}return k}T(qSe,"lineBreaking");function YSe(t){switch(t){case"–":case"—":return .2;case".":case",":return .8;case":":case";":return .3;case"،":case"۔":return .4;default:return 0}}T(YSe,"overhang");function XSe(t){const{glyphGroup:e}=t;let n=0;for(const r of e){const[i,a]=r.adjustability.shrinkability;n+=i+a}return n}T(XSe,"getDivideShrinkability");function GSe(t){const{glyphGroup:e}=t;let n=0;for(const r of e){const[i,a]=r.adjustability.stretchability;n+=i+a}return n}T(GSe,"getDivideStretchability");function QSe(t){const e=t.glyphGroup.filter(r=>r.isJustifiable).length,n=t.glyphGroup[t.glyphGroup.length-1];return hS(n.content)?e-1:e}T(QSe,"getJustifiables");function KSe(t,e,n){for(const r of t.glyphGroup){const i=e<0?r.adjustability.shrinkability[0]:r.adjustability.stretchability[0],a=e<0?r.adjustability.shrinkability[1]:r.adjustability.stretchability[1],o=i*e;let s=a*e;r.isJustifiable&&(s+=n),r.width+=o+s,r.xOffset+=o}xT(t.glyphGroup)}T(KSe,"adjustGlyphsInDivide");function ZSe(t,e){const{divides:n}=t;for(let r=0;r<n.length;r++){const i=n[r],{width:a}=i;let o=fW(i);if(a!==Number.POSITIVE_INFINITY){if(i.isFull){let s=a-o;if(i.glyphGroup.length>1){const h=i.glyphGroup[i.glyphGroup.length-1],f=YSe(h.content)*h.width;s+=f}let l=0,u=0;const c=XSe(i),d=GSe(i);if(s<0&&c>0)l=Math.max(s/c,-1),s=Math.min(s+c,0);else if(e===dr.JUSTIFIED){d>0&&(l=Math.min(s/d,1),s=Math.max(s-d,0));const h=QSe(i);h>0&&s>0&&(u=s/h,s=0)}(l!==0||u!==0)&&(KSe(i,l,u),o=fW(i))}e===dr.CENTER?i.paddingLeft=(a-o)/2:e===dr.RIGHT&&(i.paddingLeft=a-o)}}}T(ZSe,"horizontalAlignHandler");function JSe(t){for(const e of t.divides){const n=e.glyphGroup[e.glyphGroup.length-1];if(n&&e.isFull&&B4(n.content)&&n.width-n.xOffset>n.bBox.width){const r=n.width-n.xOffset-n.bBox.width;n.width-=r,n.adjustability.shrinkability[1]=0}}}T(JSe,"restoreLastCJKGlyphWidth");function ebe(t){for(const e of t.divides){const n=e.glyphGroup.length;if(n<2)continue;const r=e.glyphGroup[0],i=e.glyphGroup[n-1];if(TT(r.content)){const a=r.adjustability.shrinkability[0];ZZ(r,a)}if(MT(i.content)){const a=i.adjustability.shrinkability[1];KZ(i,a)}xT(e.glyphGroup)}}T(ebe,"shrinkStartAndEndCJKPunctuation");function tbe(t,e,n,r,i){for(const a of t.divides){const{glyphGroup:o,breakType:s}=a,l=o[o.length-1];if(l&&BJ(l.content)&&s===qs.Hyphen){const u=C5e(l,r,i),c=P9e(u);c.parent=l.parent,c.left=l.left+l.width,a.glyphGroup.push(c),a.width-=c.width}}}T(tbe,"addHyphenDash");function nbe(t,e,n,r){const{endIndex:i}=n,a=e.getParagraph(i,!0)||{startIndex:0};$4(t,o=>{if(o.paragraphIndex!==a.startIndex)return;const{paragraphStyle:s={}}=a,{horizontalAlign:l=dr.UNSPECIFIED}=s;ebe(o),JSe(o),tbe(o,e,n,r,s),ZSe(o,l)})}T(nbe,"lineAdjustment");function rbe(t,e,n,r,i){_5e();const{content:a="",children:o}=n;let s=null;o.length===1&&o[0].nodeType===Co.TABLE&&(s=j9e(t,r,e,o[0],i));const l=TSe(t,a,e,n,i),u=qSe(t,e,l,r,n,i,s);return nbe(u,e,n,i),u}T(rbe,"dealWidthParagraph");function WT(t,e,n,r,i,a){const o=[],s=new Map;let l=0;if(a!=null){const{startIndex:c,endIndex:d}=n;if(a>=c&&a<=d){for(let h=0;h<n.children.length;h++)if(n.children[h].endIndex===a){l=h;break}}}for(let c=l;c<n.children.length;c++){const d=n.children[c];let h=[],f=r;if(o.length>0&&(f=o[o.length-1]),d.nodeType===Co.PARAGRAPH?(t.paragraphsOpenNewPage.has(d.endIndex)&&(f=D0(t,i,t.skeletonResourceReference,f.pageNumber+1)),h=rbe(t,e,d,f,i)):(d.nodeType,Co.TABLE),h.length===0&&(h=D5e()),abe(o,h),t.isDirty)break}const{segmentId:u}=r;return t.isDirty&&t.layoutStartPointer[u]!=null&&ibe(t.layoutStartPointer[u],o),{pages:o,renderedBlockIdMap:s}}T(WT,"dealWithSection");function ibe(t,e){let n=!1;for(let r=0;r<e.length;r++){const i=e[r];for(let a=0;a<i.sections.length;a++){const o=i.sections[a];for(let s=0;s<o.columns.length;s++){const l=o.columns[s];for(let u=0;u<l.lines.length;u++)if(l.lines[u].paragraphIndex===t){n=!0,l.lines.splice(u);break}if(n){let u=l.lines.length?s+1:s;u=Math.max(u,1);const c=u-1;c>=0&&(o.columns[c].isFull=!1),o.columns.splice(u);break}}if(n){const s=a+1;i.sections.splice(s);break}}if(n){const a=r+1;e.splice(Math.max(a,1));break}}}T(ibe,"_rollbackPages");function abe(t,e){const n=t.length-1,r=t[n],i=e[0];r===i&&e.splice(0,1),t.push(...e)}T(abe,"_pushPage");const Pbt=T((t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},"__variableDynamicImportRuntimeHelper"),sz=["0004,004,001,003,005,0005,00005,000005,0002,002,0000005,0003,00003,00505,00034,0001,00055,00004,4,05,0055,04,42,03,02,2,404,3,044,01,0505,55,5,045,041,0033,000004,22,00504,5504,0042,1,21,41,402,405,4004,43,23,000054,303,3005,022,5004,000003,252,45,25,2004,000505,054,403,401,3002,0025,144,432,00054,34,12,234,0022,014,0304,012,143,503,0403,101,052,414,212,011,043,00002,0041,0024,05005,03003,00102,0404,04303,01004,0034,025,0044,00404,00025,0103,042,0205,412,104,54,344,433,5005,253,055,0402,3004,0043,204,505,454,0000004,00303,04004,552,201,4005,0255,52,444,14,44,02004,033,05004,00045,00013,0021,0405,00044,0054,50055,000303,00001,304,0204,11,301,232,122,00305,504,000043,0104,00052,000045,50004,0023,00033,00032,00202,5003,202,0401,0000505,214,102,032,000161,004101,00501,00301,0036,0052,00023,006101,006,00401,000521,0014,0063,00012,000501,000006,000604,000601,005001,005005,0010305,00006,003012,003005,0003011,0061,013,000021,000022,000105,00211,00062,00051,000112,006013,000011,0200306,1021,0050001,003003,2102,305,000015,01030005,000035,001011,00021,16330001,0234,030006,5020001,000001,00016,0031,021,21431,002305,0350014,0000012,000063,00101,106,105,00435,00063,0300061,00041,100306,003602,023,0503,0010011,10003,1005,30011,00031,0001001,0000061,0030003,30305,001201,0301,5000101,500101,00015,000401,000065,000016,0000402,0500002,000205,030201,500301,00014,5001,000002,00030011,01034,0300006,030213,00400304,050001,05003,000311,0634,00061,0006,00000604,00050013,00213,0030001,100003,000033,30002,00003632,0003004,050003,0000021,006303,0000006,00005005,30451,03001,00231,00056,00011,6,001001,00500001,03005,503005,0000010001,1002,003001,001065,300001,32011,32,0000003,0213001,0500053,021005,10001,0000011,0001041,0020016,100032,50011,0606,5002,3001,03002,0015001,0102,00003001,000000033,0000001,300101,300015,0101003,00000101,0100501,0101,0010033,00000362,000014,0005001,031",'{".":[{"a":[{"c":[{"h":0}],"d":[{"d":[{"e":[{"r":1}]}]}],"f":[{"t":2}],"l":[{"t":3}],"m":[{"a":[{"t":4}]}],"n":[{"c":4,"g":0,"i":[{"m":5}],"t":[{"e":3,"i":[{"s":6}]},0]}],"r":[{"s":4,"t":[{"i":[{"e":1}],"y":1}]}],"s":[{"c":3,"p":2,"s":2,"t":[{"e":[{"r":7}]}]}],"t":[{"o":[{"m":6}]}],"u":[{"d":2}],"v":[{"i":1}],"w":[{"n":0}]}],"b":[{"a":[{"g":1,"n":[{"a":4}],"s":[{"e":0}]}],"e":[{"r":[{"a":4},0],"s":[{"m":3,"t":[{"o":4}]}]}],"r":[{"i":8}],"u":[{"t":[{"t":[{"i":0}]}]}]}],"c":[{"a":[{"m":[{"p":[{"e":0}]}],"n":[{"c":5}],"p":[{"a":[{"b":6}]}],"r":[{"o":[{"l":5}]}],"t":1}],"e":[{"l":[{"a":1}]}],"h":[{"i":[{"l":[{"l":[{"i":7}]}]}]},1],"i":[{"t":[{"r":5}]},9],"o":[{"e":3,"r":[{"n":[{"e":[{"r":5}]}]},1],"n":[{"g":[{"r":5}]}]}]}],"d":[{"e":[{"m":[{"o":[{"i":1}]}],"o":3,"r":[{"a":3,"i":[{"v":[{"a":4}]},3]}],"s":[{"c":0}]}],"i":[{"c":[{"t":[{"i":[{"o":10}]}]}]}],"o":[{"t":1}],"u":[{"c":1,"m":[{"b":6}]}],"r":[{"i":[{"v":67}]}]}],"e":[{"a":[{"r":[{"t":[{"h":7}]}],"s":[{"i":11}]}],"b":1,"e":[{"r":0}],"g":9,"l":[{"d":4,"e":[{"m":3}]}],"n":[{"a":[{"m":12}],"g":3,"s":3}],"q":[{"u":[{"i":[{"t":13}]}]}],"r":[{"r":[{"i":1}]}],"s":3,"u":[{"l":[{"e":[{"r":1}]}]},3],"y":[{"e":5}],"t":[{"h":[{"y":[{"l":162}]}]}],"v":[{"e":[{"r":[{"s":[{"i":[{"b":158}]}]}]}]},9]}],"f":[{"e":[{"s":11}],"o":[{"r":[{"m":[{"e":[{"r":5}]}]}]}]}],"g":[{"a":[{"s":[{"o":[{"m":163}]}]},9],"e":[{"n":[{"t":14}],"o":[{"g":4,"m":[{"e":1}],"t":164}]},9],"i":[{"a":4,"b":1}],"o":[{"r":1}]}],"h":[{"a":[{"n":[{"d":[{"i":6}],"k":5}]}],"e":[{"r":[{"o":[{"i":6,"e":3}]}],"s":11,"t":11,"m":[{"o":165}],"p":[{"a":166}]},9],"i":[{"b":3,"e":[{"r":3}]}],"o":[{"n":[{"e":[{"y":5}],"o":11}],"v":5}]}],"i":[{"d":[{"l":1,"o":[{"l":12}]}],"m":[{"m":3,"p":[{"i":[{"n":4}]}]}],"n":[{"c":[{"i":3}],"e":8,"k":9,"s":3,"u":[{"t":167}]},2],"r":[{"r":4}],"s":[{"i":1}]}],"j":[{"u":[{"r":3}]}],"l":[{"a":[{"c":[{"y":1}],"m":1,"t":[{"e":[{"r":5}],"h":6}]}],"e":[{"g":[{"e":5}],"n":0,"p":5,"v":15,"i":[{"c":[{"e":[{"s":170}]}]}]},9],"i":[{"g":[{"a":5},1],"n":9,"o":3,"t":1}]}],"m":[{"a":[{"g":[{"a":16}],"l":[{"o":5}],"n":[{"a":5}],"r":[{"t":[{"i":5}]}]}],"e":[{"r":[{"c":11}],"t":[{"e":[{"r":4}],"a":[{"l":[{"a":0}]}]}],"g":[{"a":[{"l":171}]}]},9],"i":[{"s":[{"t":[{"i":6}],"e":[{"r":[{"s":173}]}]},15],"m":[{"i":[{"c":172}]}]}],"o":[{"n":[{"e":11}],"r":[{"o":3}]}],"u":[{"t":[{"a":[{"b":6},4]}]}]}],"n":[{"i":[{"c":1}],"e":[{"o":[{"f":174}]}],"o":[{"e":[{"t":[{"h":15}]}],"n":[{"e":[{"m":175}]}]}]}],"o":[{"d":[{"d":5},9],"f":[{"t":[{"e":4}]}],"r":[{"a":[{"t":[{"o":4}]}],"c":3,"d":2,"t":3}],"s":[{"t":[{"l":1}]},3],"t":[{"h":11}],"u":[{"t":11}]}],"p":[{"e":[{"d":[{"a":[{"l":5}]}],"t":[{"e":4,"i":[{"t":4}]}]}],"i":[{"e":1,"o":[{"n":5}],"t":9}],"r":[{"e":[{"m":11,"a":[{"m":15}]}]}],"o":[{"l":[{"y":[{"s":137}]}],"s":[{"t":[{"a":[{"m":137}]}]}]}]}],"r":[{"a":[{"c":1,"n":[{"t":0}],"t":[{"i":[{"o":[{"n":[{"a":7}]}]}]}],"v":[{"e":[{"n":[{"o":176}]}]}]}],"e":[{"e":[{"c":173},8],"m":[{"i":[{"t":4}]}],"s":[{"t":[{"a":[{"t":4}]}]},8]}],"i":[{"g":1,"t":[{"u":5}]}],"o":[{"q":1,"s":[{"t":5}],"w":[{"d":5}]}],"u":[{"d":1}]}],"s":[{"c":[{"i":[{"e":11}]}],"e":[{"l":[{"f":6,"l":6}],"n":9,"r":[{"i":[{"e":4}]}],"m":[{"i":[{"c":0,"d":177,"p":36,"r":36,"s":178,"v":36},6]}]}],"h":9,"i":[{"n":[{"g":17}]},9],"t":[{"a":[{"b":[{"l":5}]}]},1],"y":9,"p":[{"h":[{"i":[{"n":179}]}],"i":[{"n":[{"o":137}]}]}]}],"t":[{"a":[{"p":[{"e":[{"s":[{"t":[{"r":180}]}]}]}]},1],"e":[{"n":[{"a":[{"n":5}]}],"l":[{"e":[{"g":[{"r":3}]}]}]},1],"h":9,"i":[{"l":0,"m":[{"o":16}],"n":[{"g":17,"k":5}]},9],"o":[{"n":[{"a":0}],"p":[{"i":5,"o":[{"g":170}]},1],"u":[{"s":5}],"q":9}],"r":[{"i":[{"b":[{"u":[{"t":6}]}]}]}]}],"u":[{"n":[{"a":[{"t":[{"t":144}]},2],"c":[{"e":3}],"d":[{"e":[{"r":7}]}],"e":[{"r":[{"r":181}]},2],"k":4,"o":4,"u":3}],"p":3,"r":[{"e":11}],"s":[{"a":4}]}],"v":[{"e":[{"n":[{"d":[{"e":0}]}],"r":[{"a":4}]}],"i":[{"c":[{"a":[{"r":151}]}]}]}],"w":[{"i":[{"l":[{"i":5}]}],"e":[{"b":[{"l":131}]}]}],"y":[{"e":1}],"k":[{"i":[{"l":[{"n":[{"i":168}]}]}],"o":[{"r":[{"t":[{"e":169}]}]}]}]}],"a":[{"b":[{".":18,"a":[{"l":19,"n":19}],"e":[{"r":[{"d":4}]},8],"i":[{"a":5,"t":[{"a":[{"b":13}]}]}],"l":[{"a":[{"t":4}]}],"o":[{"l":[{"i":[{"z":20,"c":19}]}]}],"r":[{"o":[{"g":4}]},18],"u":[{"l":3}]}],"c":[{"a":[{"r":[{"d":4,"o":4},21],"b":[{"l":24}]}],"e":[{"o":[{"u":19}],"r":2}],"h":[{"e":[{"t":19}]}],"i":[{"e":23,"n":2,"o":23},22],"r":[{"o":[{"b":4}]}],"t":[{"i":[{"f":5}]}],"u":[{"l":3,"m":1}]}],"d":[{"d":[{"i":[{"n":1}]}],"e":[{"r":[{".":4}]}],"i":[{"a":23,"c":[{"a":3}],"e":[{"r":0}],"o":23,"t":23,"u":19},25],"l":[{"e":1}],"o":[{"w":3}],"r":[{"a":[{"n":4}]}],"s":[{"u":1}],"u":[{"c":23,"m":4},18]},24],"e":[{"r":[{"i":[{"e":17}]},1]}],"f":[{"f":[{"i":[{"s":[{"h":170}]}]},0]},24],"g":[{"a":[{"b":21,"n":0}],"e":[{"l":[{"l":4}],"o":0,"u":18}],"i":2,"l":26,"n":2,"o":[{"g":27,"n":[{"i":3}]},24],"u":[{"e":[{"r":19}],"l":4}],"y":21}],"h":[{"a":23,"e":23,"l":1,"o":23}],"i":[{"a":19,"c":[{".":23}],"l":[{"y":4}],"n":[{"i":[{"n":5}],"o":5},28],"t":[{"e":[{"n":5}]}]},9],"j":29,"k":[{"e":[{"n":2}]}],"l":[{"a":[{"b":4,"d":3,"r":21}],"d":[{"i":18}],"e":[{"n":[{"d":3,"t":[{"i":21}]}],"o":30},25],"i":[{"a":[{".":1}],"e":0},2],"l":[{"e":[{"v":4}],"i":[{"c":18}]}],"m":18,"o":[{"g":[{".":19}]}],"y":[{".":21,"s":[{"t":31},18],"t":32,"z":27}]}],"m":[{"a":[{"b":4,"g":3,"r":[{"a":5}],"s":[{"c":4}],"t":[{"i":[{"s":21}],"o":33}]},18],"e":[{"r":[{"a":4}],"n":[{"t":[{"a":[{"b":182}]}]}]}],"i":[{"c":3,"f":4,"l":[{"y":4}],"n":[{"o":0},2]}],"o":[{"n":19,"r":[{"i":6}]},24],"p":[{"e":[{"n":5}]}]}],"n":[{"a":[{"g":[{"e":3}],"l":[{"y":[{"s":183},27]}],"r":[{"c":3,"i":17},23],"t":[{"i":23}]}],"d":[{"e":[{"s":17}],"i":[{"s":3}],"l":2,"o":[{"w":1}]},18],"e":[{"e":19,"n":23,"s":[{"t":[{".":4}]}],"u":23}],"g":[{"i":[{"e":5}],"l":2},25],"i":[{"c":34,"e":[{"s":23}],"f":35,"m":[{"e":1,"i":19}],"n":[{"e":19}],"o":3,"p":23,"s":[{"h":3}],"t":3,"u":23}],"k":[{"l":[{"i":1}]}],"n":[{"i":[{"z":32}]}],"o":[{"t":[{"h":7},4],"a":[{"c":148}]},0],"s":[{"a":9,"c":[{"o":1}],"n":1,"p":[{"o":11},9],"t":1,"u":[{"r":1}],"g":[{"r":5}],"v":11}],"t":[{"a":[{"l":36}],"i":[{"e":1,"d":137,"n":184,"r":[{"e":137}]}],"o":18,"r":9,"w":1}],"u":[{"a":3,"l":3,"r":19}]},24],"o":18,"p":[{"a":[{"r":17,"t":4}],"e":[{"r":[{"o":4}],"a":[{"b":[{"l":[{"e":132}]}]}]}],"h":[{"e":[{"r":23}],"i":18}],"i":[{"l":[{"l":[{"a":[{"r":4},21]}]}],"n":3,"t":[{"a":3,"u":23}]}],"l":24,"o":[{"c":6,"l":[{"a":4}],"r":[{"i":6}],"s":[{"t":12}]}],"s":[{"e":[{"s":5}]}],"u":23}],"q":[{"u":[{"e":6}]}],"r":[{"a":[{"c":[{"t":3}],"d":[{"e":19,"i":[{"s":4}]}],"l":3,"m":[{"e":[{"t":[{"e":19}]}]}],"n":[{"g":17}],"p":11,"t":[{"i":[{"o":19,"v":4}]},1],"u":19,"v":38,"w":17}],"b":[{"a":[{"l":36}]}],"c":[{"h":[{"a":[{"n":1}],"e":[{"t":185}]}]}],"d":[{"i":[{"n":[{"e":4}]}],"r":1}],"e":[{"a":[{"s":4}],"e":23,"n":[{"t":3}],"s":[{"s":19}]}],"f":[{"i":1,"l":1}],"i":[{"a":[{"l":4,"n":3}],"e":[{"t":23}],"m":1,"n":[{"a":[{"t":4}]}],"o":3,"z":9},2],"m":[{"i":9}],"o":[{"d":20,"n":[{"i":19}],"o":23}],"p":9,"q":3,"r":[{"e":17,"a":[{"n":[{"g":[{"e":9}]}]}]}],"s":[{"a":1,"h":9}]},37],"s":[{".":18,"a":[{"b":1,"n":[{"t":3}]}],"h":[{"i":17}],"i":[{"a":[{".":19}],"b":23,"c":23,"t":39}],"k":[{"i":11}],"l":1,"o":[{"c":21}],"p":[{"h":4}],"s":[{"h":1}],"t":[{"e":[{"n":3}],"r":2}],"u":[{"r":[{"a":6}]}],"y":[{"m":[{"p":[{"t":[{"o":[{"t":4}]}]}]}]}]}],"t":[{"a":[{"b":[{"l":3}],"c":4,"l":[{"o":3}],"p":4},24],"e":[{"c":[{"h":4},5],"g":[{"o":3}],"n":[{".":3}],"r":[{"a":3,"n":[{"a":19},6]}],"s":[{"t":3}],"v":4}],"h":[{"e":[{"m":5,"n":19,"r":[{"o":[{"s":186}]}]}],"o":[{"m":5},1]},18],"i":[{".":18,"a":19,"b":20,"c":2,"f":3,"o":[{"n":[{"a":[{"r":7}]}]}],"t":[{"u":3}]}],"o":[{"g":21,"m":[{"i":[{"z":4}]},24],"p":21,"s":21}],"r":[{"o":[{"p":4}]},29],"s":[{"k":1}],"t":[{"a":[{"g":1}],"e":[{"s":[{".":170}]},4],"h":1}],"u":[{"a":4,"e":4,"l":3,"r":[{"a":3}]},24],"y":24}],"u":[{"b":1,"g":[{"h":[{"t":[{"l":17}]},12],"u":3}],"l":[{"i":[{"f":13}]},40],"n":[{"d":5}],"r":3,"s":[{"i":[{"b":4}]}],"t":[{"e":[{"n":5}],"h":2}]}],"v":[{"a":[{"g":3,"n":19},24],"e":[{"n":[{"o":0}],"r":[{"a":3,"n":4,"y":4}]}],"i":[{"e":[{"r":0}],"g":3,"o":[{"u":3}]},2],"o":[{"c":4,"r":29}]}],"w":[{"a":[{"y":27}],"i":3,"l":[{"y":1}],"s":0}],"x":[{"i":[{"c":1,"d":1}]}],"y":[{"a":[{"l":4}],"e":0,"s":0}],"z":[{"i":[{"e":[{"r":0}]}],"z":[{"i":5}]}]}],"b":[{"a":[{".":32,"d":[{"g":[{"e":[{"r":5}]}]}],"g":[{"e":1}],"l":[{"a":15}],"n":[{"d":[{"a":[{"g":5}]}],"e":0,"i":11}],"r":[{"b":[{"i":7}],"i":[{"a":17}],"o":[{"n":[{"i":[{"e":187}]}]}]}],"s":[{"s":[{"i":0}]}],"t":[{"h":[{"y":2}]},41],"z":1,"c":[{"k":[{"e":[{"r":[{".":84}]}]}]}]}],"b":[{"e":[{"r":23},24],"i":[{"n":[{"a":0}],"t":0}]},42],"d":43,"e":[{".":18,"a":[{"k":17,"t":12}],"d":[{"a":3,"e":3,"i":3},44],"g":[{"i":3,"u":4}],"l":[{"i":2,"o":3},41],"m":45,"n":[{"i":[{"g":4}],"u":4}],"s":[{"p":3,"t":[{"r":4}]},46],"t":[{"i":[{"z":5}],"r":4,"w":3},27],"w":3,"y":[{"o":4}],"v":[{"i":[{"e":9}]}]}],"f":25,"h":47,"i":[{"b":9,"d":[{"i":[{"f":167}]},1],"e":[{"n":4,"r":1},27],"f":48,"l":[{"i":[{"z":3}],"l":[{"a":[{"b":8}]}]},41],"n":[{"a":[{"r":49}],"d":0,"e":[{"t":4}]}],"o":[{"g":[{"r":3}],"u":4,"m":5,"r":[{"b":2,"h":15}]}],"t":[{"i":[{"o":50,"v":[{"e":188}]}],"r":3,"u":[{"a":51}],"z":19},9]}],"j":29,"k":1,"l":[{"a":[{"t":[{"h":7}],"n":[{"d":189}]}],"e":[{".":21,"n":17,"s":[{"p":32}]}],"i":[{"s":23,"n":[{"d":189}]}],"o":[{"n":[{"d":190}]},21],"u":[{"n":[{"t":17}]}]},52],"m":43,"n":[{"e":[{"g":5}]},47],"o":[{"d":[{"i":11},27],"e":1,"l":[{"i":[{"c":11}]}],"m":[{"b":[{"i":0}]}],"n":[{"a":[{"t":5},0]}],"o":27,"r":[{".":32,"a":43,"d":5,"e":32,"i":32,"n":[{"o":191}]}],"s":53,"t":[{"a":19,"h":6,"o":1,"u":[{"l":192}]}],"u":[{"n":[{"d":54}]}]}],"p":18,"r":[{"i":[{"t":18}],"o":[{"t":[{"h":54}]}],"u":[{"s":[{"q":17}]}]}],"s":[{"o":[{"r":17}]},55],"t":[{"l":1,"o":21,"r":23},25],"u":[{"f":[{"f":[{"e":[{"r":0}]}]}],"g":[{"a":1}],"l":[{"i":3}],"m":[{"i":17}],"n":[{"t":[{"i":17}]},1],"r":[{"e":3}],"s":[{"i":[{"e":[{"r":193,"s":193},5]}],"s":[{"e":17,"i":[{"n":[{"g":17}]}]}],"t":32}],"t":[{"a":18,"i":[{"o":27}],"o":19,"e":[{"d":[{".":8}]}],"t":[{"e":[{"d":0}]}]}]}],"v":29,"w":56,"y":[{".":32,"s":0}]}],"c":[{"a":[{"b":[{"i":[{"n":11}],"l":2}],"c":[{"h":17}],"d":[{"e":[{"n":4,"m":194}]}],"g":46,"h":57,"l":[{"a":[{"t":3}],"l":[{"a":0,"i":[{"n":6}]}],"o":18}],"n":[{"d":5,"e":0,"i":[{"c":0,"s":5,"z":11}],"t":[{"y":0}],"y":17}],"p":[{"e":[{"r":4}]}],"r":[{"o":[{"m":5}]}],"s":[{"t":[{"e":[{"r":6}],"i":[{"g":5}]}],"y":18}],"t":[{"h":1,"i":[{"v":18}],"a":[{"s":195}]}],"v":[{"a":[{"l":5}]}]},41],"c":[{"h":[{"a":6}],"i":[{"a":0}],"o":[{"m":[{"p":[{"a":10}]}],"n":17,"u":[{"t":12}]}]},23],"e":[{".":25,"d":[{".":18,"e":[{"n":18}]}],"i":27,"l":[{".":32,"l":27}],"n":[{"c":27,"e":58,"i":18,"t":27},41],"p":27,"r":[{"a":[{"m":4}]}],"s":[{"a":18,"s":[{"i":[{"b":59},27]}],"t":5}],"t":[{"a":60},0],"w":0}],"h":[{".":18,"a":[{"b":61,"n":[{"i":[{"c":32,"s":20}]}]}],"e":[{"a":[{"p":54}],"d":18,"l":[{"o":5}],"m":[{"i":27}],"n":[{"e":4}],"r":[{".":3,"s":3}]},8],"i":[{"n":[{"e":[{".":32,"s":[{"s":4}]}],"i":32},62],"o":32,"t":27,"z":8,"e":[{"v":[{"o":6}]}]}],"o":63,"t":[{"i":1}],"s":[{".":18,"h":[{"u":11}]}]},25],"i":[{"a":[{"b":64,"r":5},27],"c":4,"e":[{"r":18}],"f":[{"i":[{"c":[{".":32}]}]}],"i":18,"l":[{"a":1,"i":27}],"m":25,"n":[{"a":[{"t":27},21],"e":[{"m":11}],"g":[{".":19},29],"o":32,"q":8},25],"o":[{"n":17}],"p":[{"e":18,"h":3,"i":[{"c":18}]}],"s":[{"t":[{"a":18,"i":18}]}],"t":[{"i":[{"z":11}]},42],"z":32,"g":[{"a":[{"r":152}]}]},41],"k":[{"i":3},2],"l":[{"a":[{"r":[{"a":[{"t":[{"i":[{"o":19}]}]}],"e":32},18]}],"e":[{"m":0,"a":[{"r":0}]}],"i":[{"c":18,"m":17}],"y":0},65],"n":19,"o":[{"a":[{"g":4}],"e":8,"g":[{"r":1},25],"i":[{"n":[{"c":3}]},0],"l":[{"i":5,"o":[{"r":11},32]}],"m":[{"e":[{"r":5}]}],"n":[{"a":0,"e":21,"g":11,"t":5}],"p":[{"a":3,"i":[{"c":11}],"l":1,"h":[{"o":[{"n":196}]}]}],"r":[{"b":18,"o":[{"n":12}]}],"s":[{"e":0}],"v":[{"e":17},15],"w":[{"a":5}],"z":[{"e":5,"i":4}],"u":[{"s":[{"t":[{"i":84}]}]}]},41],"q":29,"r":[{"a":[{"s":[{"t":6}],"t":[{".":32,"i":[{"c":32}]}]}],"e":[{"a":[{"t":11}],"d":32,"t":[{"a":47}],"v":0}],"i":[{"f":5,"n":21,"s":17,"t":[{"i":[{"e":11},32]}]},8],"o":[{"p":[{"l":0,"o":6}],"s":[{"e":17}],"c":[{"o":[{"d":197}]}],"e":[{"c":[{"o":148}]}]}],"u":[{"d":0}]}],"s":66,"t":[{"a":[{"b":0,"n":[{"g":4,"t":19}]}],"e":[{"r":23},24],"i":[{"c":[{"u":21}],"m":[{"i":12}]}],"u":[{"r":0}],"w":21,"r":[{"o":[{"m":[{"e":[{"c":198}]}]}]}]},42],"u":[{"d":5,"f":21,"i":[{"t":[{"y":4}]},21],"l":[{"i":32,"t":[{"i":[{"s":0}],"u":27}]}],"m":[{"a":9,"e":23,"i":1}],"n":27,"p":[{"i":3,"y":4}],"r":[{"a":[{"b":67,"n":[{"c":[{"e":199}]}]}],"i":[{"a":4}]}],"s":[{"s":[{"i":17}]},41],"t":[{"i":[{"e":1,"v":56}],"r":18},68]}],"y":41,"z":[{"e":0}]}],"d":[{"a":[{".":32,"b":70,"c":[{"h":17}],"f":18,"g":25,"m":71,"n":[{"g":11}],"r":[{"d":6,"k":6,"y":18}],"t":[{"i":[{"v":18}],"o":18,"a":[{"b":137}]},27],"v":[{"e":5},53],"y":32,"l":[{"o":[{"n":[{"e":48}]}]}]},69],"b":29,"c":19,"d":[{"a":[{"b":20}],"i":[{"b":94}]},72],"e":[{".":25,"a":[{"f":6,"l":[{"s":[{".":1}]}]}],"b":[{"i":[{"t":5}],"o":[{"n":1}]}],"c":[{"a":[{"n":36}],"i":[{"l":1}],"o":[{"m":4}],"l":[{"a":[{"r":200}],"i":[{"n":[{"a":64}]}]}]}],"d":42,"e":[{".":18}],"i":[{"f":4}],"l":[{"i":[{"e":17,"q":16}],"o":4}],"m":[{".":32,"i":[{"c":[{".":5},27],"l":4}],"o":[{"n":[{"s":1}],"r":7,"s":9}]},21],"n":[{"a":[{"r":1}],"o":3,"t":[{"i":[{"f":7}]}],"u":3},41],"p":[{"a":3,"i":17,"u":9},2],"q":23,"r":[{"h":21,"m":32,"n":[{"i":[{"z":6}]}],"s":5}],"s":[{".":24,"c":2,"o":64,"t":[{"i":11,"r":3}],"u":1,"i":[{"c":11}]},8],"t":[{"o":9,"i":[{"c":9}]},2],"v":[{"i":[{"l":11}]},2],"y":18,"f":[{"i":[{"n":[{"i":[{"t":[{"i":201}]}]}]}]}]}],"f":43,"g":[{"a":21,"e":[{"t":73}],"i":2,"y":24}],"h":74,"i":[{".":32,"a":[{"b":5},75],"c":[{"a":[{"m":1,"i":[{"d":15}]}],"e":21,"t":27}],"d":27,"e":[{"n":76}],"f":[{"f":[{"r":[{"a":5}]}]},29],"g":[{"e":3}],"l":[{"a":[{"t":[{"o":1}]}]}],"n":[{"a":41,"e":[{".":27}],"i":[{"z":4},32]},29],"o":[{"g":5},41],"p":[{"l":1}],"r":[{"e":[{"n":9,"r":9},2],"t":[{"i":6}]},8],"s":[{"i":32,"t":77},15],"t":[{"i":24}],"v":78,"m":[{"e":[{"t":[{"h":[{"y":141}]}]}]}]}],"j":29,"k":79,"l":[{"a":56,"e":[{".":27,"d":27,"s":[{".":27,"s":18}],"a":[{"d":42}]}],"o":48,"u":56,"y":25,"i":[{"e":202}]}],"m":29,"n":80,"o":[{".":27,"d":[{"e":4}],"e":32,"f":57,"g":21,"l":[{"a":1,"i":17,"o":[{"r":4}]}],"m":[{"i":[{"z":5}]}],"n":[{"a":[{"t":3}],"i":17}],"o":[{"d":11}],"p":[{"p":0}],"r":21,"s":27,"u":[{"t":56}],"v":1,"x":27,"w":[{"o":[{"r":[{"d":203}]}]}]},41],"p":29,"r":[{"a":[{"g":[{"o":[{"n":6}]}],"i":18}],"e":[{"a":[{"r":6}],"n":[{"a":[{"l":204}]},32]},0],"i":[{"b":0,"l":17,"f":[{"t":[{"a":189}]}],"p":[{"l":[{"e":[{"g":205}]}]}]}],"o":[{"p":0,"w":18,"m":[{"e":[{"d":206}]}]}],"u":[{"p":[{"l":[{"i":32}]}]}],"y":18},41],"s":[{"p":1,"w":21,"y":21},81],"t":[{"h":24,"a":[{"b":23}]}],"u":[{"a":[{"l":[{".":9}]},82],"c":[{"a":29,"e":[{"r":5}],"t":[{".":18,"s":18}]},9],"e":[{"l":4}],"g":1,"l":[{"e":23}],"m":[{"b":[{"e":0}]}],"n":1,"p":[{"e":1},18],"o":[{"p":[{"o":[{"l":207}]}]}]},41],"v":29,"w":29,"y":[{"n":32,"s":[{"e":1,"p":5}]},24]}],"e":[{"a":[{"b":72,"c":[{"t":23}],"d":[{"i":[{"e":5}]},15],"g":[{"e":[{"r":4},1]}],"l":[{"e":[{"r":5}],"o":[{"u":11}]},1],"m":[{"e":[{"r":11}]}],"n":[{"d":19,"i":[{"e":[{"s":111}]}]}],"r":[{"a":11,"c":0,"e":[{"s":5}],"i":[{"c":0,"l":0}],"k":5,"t":[{"e":12},8]}],"s":[{"p":4,"s":23,"t":12}],"t":[{"e":[{"n":5}],"h":[{"i":12}],"i":[{"f":19}],"u":83},9],"v":[{"e":[{"n":11}],"i":5,"o":5},9]}],"b":[{"e":[{"l":[{".":21,"s":21}],"n":21}],"i":[{"t":21}],"r":23},42],"c":[{"a":[{"d":21,"n":[{"c":6}]}],"c":[{"a":6}],"e":[{"s":[{"s":[{"a":4}]}]},29],"i":[{"b":21,"f":[{"i":[{"c":[{"a":[{"t":4}]}],"e":4}],"y":4}],"m":3,"t":[{"e":19},0]},9],"l":[{"a":[{"m":21}],"u":[{"s":21}]}],"o":[{"l":24,"m":[{"m":21,"p":[{"e":21}]}],"n":[{"c":21}],"r":[{"a":3,"o":5},24]}],"r":[{"e":[{"m":21}]},29],"t":[{"a":[{"n":1}],"e":1}],"u":[{"l":[{"a":3},21]},29],"h":[{"a":[{"s":23}]}]}],"d":[{"a":37,"d":61,"e":[{"r":34,"s":0}],"i":[{"a":23,"b":3,"c":[{"a":3}],"m":3,"t":2,"z":5},18],"o":[{"l":21,"n":84},18],"r":[{"i":21}],"u":[{"l":[{"o":4,"i":[{"n":[{"g":2}]}]},21]}],"g":[{"l":15}]}],"e":[{"c":9,"d":[{"i":11}],"f":9,"l":[{"i":11,"y":1}],"m":9,"n":[{"a":1}],"p":85,"s":[{"t":17},86],"t":[{"y":1}],"x":19}],"f":[{"e":[{"r":[{"e":83}]}],"f":41,"i":[{"c":[{"i":32},21],"l":17,"n":[{"e":23,"i":[{"t":[{"e":20}]}]}],"t":27}],"o":[{"r":[{"e":[{"s":6}]}]}],"u":[{"s":[{"e":[{".":21}]}]}]},29],"g":[{"a":[{"l":18}],"e":[{"r":17}],"i":[{"b":4,"c":1,"n":[{"g":4}],"t":87}],"n":4,"o":[{".":21,"s":21}],"u":[{"l":2,"r":19}],"y":32}],"h":[{"e":[{"r":17}]},72],"i":[{"c":19,"d":4,"g":[{"l":4},8],"m":[{"b":23}],"n":[{"f":23,"g":29,"s":[{"t":19}]}],"r":[{"d":0}],"t":[{"e":11,"h":3,"y":19}]},9],"j":[{"u":[{"d":[{"i":4},21]}]},29],"k":[{"i":[{"n":0}],"l":[{"a":1}]}],"l":[{"a":[{".":21,"c":21,"n":[{"d":17}],"t":[{"i":[{"v":4}]}],"w":21,"x":[{"a":36}]},29],"e":[{"a":23,"b":[{"r":[{"a":4}]}],"c":32,"d":21,"g":[{"a":3}],"n":19,"r":34,"s":29}],"f":9,"i":[{"b":[{"e":23}],"c":[{".":33,"a":3}],"e":[{"r":23}],"g":[{"i":[{"b":4}]}],"m":19,"n":[{"g":83}],"o":23,"s":[{"h":4},24],"v":88,"t":[{"i":[{"s":208}]}]},9],"l":[{"a":[{"b":1},18],"o":17}],"o":[{"c":19,"g":4,"p":[{".":3}],"a":29}],"s":[{"h":9}],"t":[{"a":1}],"u":[{"d":19,"g":4}]}],"m":[{"a":[{"c":21,"g":21,"n":[{"a":4},19]}],"b":4,"e":[{"l":24,"t":21},29],"i":[{"c":[{"a":3}],"e":0,"g":[{"r":[{"a":4}]}],"n":[{"e":4,"i":35},89],"s":[{"h":4,"s":19},21],"z":3}],"n":[{"i":[{"z":32}]}],"o":[{"g":0,"n":[{"i":[{"o":7}]}]}],"p":[{"i":3}],"u":[{"l":[{"a":4},21],"n":11}],"y":23}],"n":[{"a":[{"m":[{"o":4}],"n":[{"t":21}]}],"c":[{"h":[{"e":[{"r":17}]}]}],"d":[{"i":[{"c":3,"x":2}]}],"e":[{"a":19,"e":19,"m":3,"r":[{"o":4}],"s":[{"i":4,"t":4}],"t":[{"r":3}],"w":23}],"i":[{"c":[{"s":4}],"e":19,"l":19,"o":23,"s":[{"h":3}],"t":3,"u":19,"z":32}],"n":18,"o":[{"g":0,"s":21,"v":3},18],"s":[{"w":1}],"t":[{"a":[{"g":[{"e":5}]}],"h":[{"e":[{"s":18}]}]}],"u":[{"a":3,"f":4}],"y":[{".":23}],"z":61}],"o":[{"f":19,"g":[{"r":[{"a":[{"p":3}]}]},9],"i":90,"l":23,"p":[{"a":[{"r":11}]}],"r":[{"e":3,"o":[{"l":4}]},29],"s":0,"t":[{"o":1},21],"u":[{"t":19}],"w":19}],"p":[{"a":[{"i":23,"n":[{"c":4}]},24],"e":[{"l":19,"n":[{"t":23}],"t":[{"i":[{"t":[{"i":[{"o":4}]}]}]}]}],"h":[{"e":17}],"l":[{"i":21}],"o":29,"r":[{"e":[{"c":[{"a":4},21],"d":21,"h":3}],"o":[{"b":21},23]}],"s":[{"h":1}],"t":[{"i":[{"b":13}]}],"u":[{"t":[{"a":4},21]}],"i":[{"n":[{"e":[{"p":[{"h":209}]}]}]}]}],"q":[{"u":[{"i":[{"l":12,"s":91}]}]},29],"r":[{"a":[{"b":0,"n":[{"d":18}],"r":3,"t":[{"i":[{".":18}]}]},2],"b":[{"l":1},25],"c":[{"h":[{"e":1},3]}],"e":[{".":25,"a":[{"l":23}],"c":[{"o":5}],"i":[{"n":11}],"l":[{".":4}],"m":[{"o":3}],"n":[{"a":4,"c":[{"e":4}],"e":18,"t":3}],"q":0,"s":[{"s":4,"t":3}],"t":17}],"h":2,"i":[{"a":[{"n":[{".":210}]},92],"c":[{"k":32}],"e":[{"n":23,"r":0}],"n":[{"e":3}],"o":29,"t":18,"u":1,"v":[{"a":21},0]},2],"m":93,"n":[{"i":[{"s":1,"t":18,"z":32}],"o":3}],"o":[{"b":4,"c":19,"r":0,"u":2},25],"s":[{"e":[{"t":3}]},2],"t":[{"e":[{"r":11}],"l":18,"w":3}],"u":[{"t":0},18],"w":[{"a":[{"u":32}]}]}],"s":[{"a":[{"g":[{"e":[{".":21,"s":21}]}]},72],"c":[{"a":[{"n":4},24],"r":23,"u":4},9],"e":[{"c":[{"r":4},24],"n":[{"c":4}],"r":[{"t":[{".":21,"s":21}],"v":[{"a":21}]}]},74],"h":[{"a":23,"e":[{"n":5}]},18],"i":[{"c":24,"d":[{"e":[{"n":4}]},24],"g":[{"n":[{"a":4}]}],"m":94,"n":95,"s":[{"t":[{"e":17}]}],"u":0},29],"k":[{"i":[{"n":19}]}],"m":[{"i":1}],"o":[{"l":[{"u":3},24],"n":[{"a":4},24]}],"p":[{"e":[{"r":3}],"i":[{"r":[{"a":4}]}],"r":[{"e":1}],"a":[{"c":[{"i":211}]}]},29],"s":[{"i":[{"b":96}]},25],"t":[{"a":[{"n":36}],"i":[{"g":3,"m":4}],"o":[{"n":23},44],"r":[{"o":19,"u":[{"c":10}]},25]}],"u":[{"r":[{"r":4},24]}],"w":1}],"t":[{"a":[{"b":0}],"e":[{"n":[{"d":17}],"o":23}],"h":[{"o":[{"d":54}],"y":[{"l":[{"e":[{"n":[{"e":162}]}]}]}]}],"i":[{"c":2,"d":[{"e":19}],"n":[{"o":0},17],"r":19,"t":[{"i":[{"o":19,"v":4}]}]}],"n":18,"o":[{"n":[{"a":4}]}],"r":[{"a":23,"e":23,"i":[{"c":3,"f":4}],"o":[{"g":3,"s":4}]}],"u":[{"a":3}],"y":[{"m":4}],"z":4}],"u":[{"n":19,"p":23,"r":[{"o":3}],"s":0,"t":[{"e":17,"i":[{"l":6}],"r":4}],"c":[{"l":[{"i":[{"d":212}]}]}]},18],"v":[{"a":[{"p":97,"s":[{"t":4},24]}],"e":[{"a":19,"l":[{"l":3,"o":12}],"n":[{"g":19,"i":17}],"r":[{"b":19},2]}],"i":[{"d":3,"l":0,"n":21,"v":0},29],"o":[{"c":19}],"u":19}],"w":[{"a":[{"g":21},29],"e":[{"e":19}],"h":23,"i":[{"l":6,"n":[{"g":3}],"t":23}]}],"x":[{"p":41}],"y":[{"c":32,"e":[{".":32}],"s":0}]}],"f":[{"a":[{"b":[{"l":3,"r":11}],"c":[{"e":1}],"g":18,"i":[{"n":17}],"l":[{"l":[{"e":6}]}],"m":[{"a":26,"i":[{"s":5}]}],"r":[{"t":[{"h":5}]},32],"t":[{"a":3,"h":[{"e":3}],"o":18}],"u":[{"l":[{"t":7}]}]},41],"b":56,"d":18,"e":[{".":18,"a":[{"s":17,"t":[{"h":54}]}],"b":[{"r":[{"u":[{"a":15}]}]},1],"c":[{"a":18,"t":32}],"d":25,"l":[{"i":3}],"m":[{"o":1}],"n":[{"d":[{"e":6},8]}],"r":[{"r":32,"m":[{"i":[{"o":213}]}]},15],"v":0}],"f":[{"e":[{"s":21}],"i":[{"e":21,"n":[{".":19}],"s":94}],"l":[{"y":21}],"y":24},43],"h":18,"i":[{"a":3,"c":[{".":48,"a":[{"l":47,"n":23,"t":[{"e":18}]}],"e":[{"n":23,"r":3}],"i":[{"a":32,"e":32},0],"s":18,"u":3,"h":27}],"d":[{"e":[{"l":4}]}],"g":[{"h":[{"t":7}]}],"l":[{"i":5,"l":[{"i":[{"n":6}]}],"y":18}],"n":[{"a":32,"d":97,"e":9,"g":98,"n":0},25],"s":[{"t":[{"i":0}]}],"t":[{"t":[{"e":[{"d":[{".":5}]}]}]}]},41],"l":[{"e":[{"s":[{"s":19}]}],"i":[{"n":17}],"o":[{"r":[{"e":11}],"w":[{"e":[{"r":[{".":84}]}]}]}],"y":100,"a":[{"g":[{"e":[{"l":214}]}]}],"u":[{"o":[{"r":27}]}]},99],"m":18,"n":18,"o":[{"n":[{"d":[{"e":0}],"t":0},32],"r":[{"a":[{"t":4,"y":5}],"e":[{"t":6}],"i":0,"t":[{"a":6}]},9],"s":5},41],"p":56,"r":[{"a":[{"t":0}],"e":[{"a":19,"s":[{"c":6}]}],"i":[{"l":17},8],"o":[{"l":6}]}],"s":48,"t":[{"o":21,"y":24},25],"u":[{"e":[{"l":4}],"g":18,"m":[{"i":[{"n":1}]}],"n":[{"e":4}],"r":[{"i":3}],"s":[{"i":17,"s":0}],"t":[{"a":18}]},27],"y":41}],"g":[{"a":[{"f":0,"l":[{".":32,"i":27,"o":3}],"m":[{"e":[{"t":4}],"o":19},25],"n":[{"i":[{"s":5,"z":[{"a":6},3]}],"o":18}],"r":[{"n":67}],"s":[{"s":17}],"t":[{"h":12,"i":[{"v":18}]}],"z":18},41],"b":23,"d":1,"e":[{".":25,"d":25,"e":[{"z":17}],"l":[{"i":[{"n":0,"s":4,"z":4}],"y":18}],"n":[{"a":[{"t":1}],"i":[{"z":4}],"o":18,"y":18,"c":[{"y":[{".":8}]}]},41],"o":[{"m":3,"d":215},41],"r":[{"y":21}],"s":[{"i":32}],"t":[{"h":6,"o":18,"y":1,"i":[{"c":[{".":8}]}]}],"v":1}],"g":[{"e":[{"r":23},24],"l":[{"u":6}],"o":0},101],"h":[{"i":[{"n":3}],"o":[{"u":[{"t":4}]}],"t":[{"o":1,"w":[{"e":15}]}]}],"i":[{".":32,"a":[{"r":5},102],"c":[{"i":[{"a":32}],"o":21},29],"e":[{"n":6,"s":[{".":32}]}],"l":0,"m":[{"e":[{"n":23}]}],"n":[{".":68,"g":[{"e":5}],"s":103}],"o":32,"r":[{"l":0},27],"s":[{"l":23}],"u":1,"v":32,"z":27}],"l":[{"a":[{"d":[{"i":6}],"s":32},0],"e":[{"a":[{"d":29}]},41],"i":[{"b":0,"g":23,"s":[{"h":43}]}],"o":[{"r":11,"b":[{"i":[{"n":106}]}]},27]},9],"m":[{"y":21},29],"n":[{"a":[{".":21,"c":69},1],"e":[{"t":[{"t":17,"i":[{"s":[{"m":137}]}]}]}],"i":[{"n":24,"o":21},29],"o":[{"n":21,"m":[{"o":5}],"r":[{".":216,"e":[{"s":[{"p":24}]}]}]},29]}],"o":[{".":27,"b":5,"e":32,"g":104,"i":[{"s":3}],"n":[{"a":105,"d":[{"o":7}],"i":[{"z":[{"a":217}]},3]},8],"o":32,"r":[{"i":[{"z":4}],"o":[{"u":5}]}],"s":[{".":32}],"v":15},41],"p":23,"r":[{"a":[{"d":[{"a":18}],"i":21,"n":84,"p":[{"h":[{".":32,"e":[{"r":[{".":7},19]}],"i":[{"c":32}],"y":18}]}],"y":18}],"e":[{"n":0,"s":[{"s":[{".":18}]}]}],"i":[{"t":18,"e":[{"v":213}]}],"o":21,"u":[{"f":17}]},41],"s":[{"t":[{"e":19}]},9],"t":[{"h":11}],"u":[{"a":[{"r":[{"d":27}]},1],"e":25,"i":[{"t":106}],"n":27,"s":27,"t":[{"a":[{"n":29}]},26]}],"w":23,"y":[{"n":107,"r":[{"a":4}]},41]}],"h":[{"a":[{"b":[{"l":73}],"c":[{"h":17}],"e":[{"m":0,"t":0}],"g":[{"u":19}],"l":[{"a":[{"m":12},3]}],"m":1,"n":[{"c":[{"i":0,"y":0}],"d":[{".":32}],"g":[{"e":[{"r":6}],"o":6},0],"i":[{"z":108}],"k":0,"t":[{"e":0}]}],"p":[{"l":11,"t":5,"a":[{"r":[{"r":218}]}]}],"r":[{"a":[{"n":3,"s":4}],"d":[{"e":12},8],"l":[{"e":0}],"p":[{"e":[{"n":6}]}],"t":[{"e":[{"r":5}]}]}],"s":[{"s":5}],"u":[{"n":17}],"z":[{"a":11},32],"i":[{"r":[{"s":137}]}],"t":[{"c":[{"h":213}]}]}],"b":29,"e":[{"a":[{"d":41,"r":27}],"c":[{"a":[{"n":1,"t":19}]}],"d":[{"o":13},21],"l":[{"i":93,"l":[{"i":[{"s":0}],"y":0}],"o":19}],"m":[{"p":0}],"n":[{"a":[{"t":5},17]},9],"o":[{"r":5}],"p":5,"r":[{"a":[{"p":12},21],"b":[{"a":0}],"e":[{"a":6}],"n":23,"o":[{"u":19}],"y":23}],"s":[{"p":64},29],"t":[{"e":[{"d":0}]},1],"u":0,"x":[{"a":168}]}],"f":29,"h":29,"i":[{"a":[{"n":4}],"c":[{"o":1}],"g":[{"h":6}],"l":109,"m":[{"e":[{"r":36}]}],"n":[{"a":21}],"o":[{"n":[{"e":17}]}],"p":[{"e":[{"l":[{"a":219}]}]},1],"r":[{"l":0,"o":3,"p":0,"r":0}],"s":[{"e":[{"l":11}],"s":0}],"t":[{"h":[{"e":[{"r":6}]}],"e":[{"s":[{"i":[{"d":12}]}]}]}],"v":9}],"k":18,"l":[{"a":[{"n":17}],"o":[{"r":[{"i":11}]},24]},80],"m":[{"e":[{"t":17}]},43],"n":[{"a":[{"u":[{"z":12}]}]},42],"o":[{"d":[{"i":[{"z":19}],"s":19}],"g":[{"e":17},1],"l":[{"a":[{"r":5}],"e":110}],"m":[{"a":1,"e":12}],"n":[{"a":0,"y":4}],"o":[{"d":27,"n":17}],"r":[{"a":[{"t":5}],"i":[{"s":4,"c":[{".":187}]}],"t":[{"e":12}],"u":4}],"s":[{"e":[{"n":4},0],"p":15}],"u":[{"s":[{"e":54},41]}],"v":[{"e":[{"l":5}]}]}],"p":56,"r":[{"e":[{"e":6}],"o":[{"n":[{"i":[{"z":5}]}],"p":[{"o":11}]}]},26],"s":[{"h":21},101],"t":[{"a":[{"r":21}],"e":[{"n":2,"s":4,"o":[{"u":216}]}],"y":21}],"u":[{"g":1,"m":[{"i":[{"n":1}]}],"n":[{"k":[{"e":5}],"t":0}],"s":[{"t":14}],"t":1}],"w":[{"a":[{"r":[{"t":21}]}]},29],"y":[{"p":[{"e":3,"h":3,"o":[{"t":[{"h":[{"a":137}]}]}]}],"s":9}]}],"i":[{"a":[{"l":24,"m":[{"e":[{"t":[{"e":5}]}]},0],"n":[{"c":18,"i":11,"t":46},24],"p":[{"e":4}],"s":[{"s":17}],"t":[{"i":[{"v":21}],"r":[{"i":[{"c":1}]}],"u":21}]},42],"b":[{"e":[{"r":[{"a":3,"t":4}]},0],"i":[{"a":4,"n":3,"t":[{".":4,"e":4}]}],"l":[{"i":3},29],"o":19,"r":[{"i":94},29],"u":[{"n":19}]}],"c":[{"a":[{"m":18,"p":32,"r":[{".":21,"a":21},18],"s":6,"y":21}],"c":[{"u":17}],"e":[{"o":18}],"h":18,"i":[{"d":19,"n":[{"a":4}],"p":[{"a":3},24]},25],"l":[{"y":21}],"o":[{"c":94}],"r":[{"a":32,"y":21},43],"t":[{"e":1,"u":[{"a":111},84]}],"u":[{"l":[{"a":3}],"m":1,"o":4,"r":23}]}],"d":[{"a":[{"i":21,"n":[{"c":4}]}],"d":4,"e":[{"a":[{"l":11}],"s":0}],"i":[{"a":[{"n":4,"r":0}],"e":19,"o":[{"u":5,"s":1},3],"t":2,"u":4},24],"l":[{"e":23}],"o":[{"m":21,"w":3}],"r":21,"u":[{"o":4},24]},25],"e":[{"d":[{"e":0}],"g":[{"a":113}],"l":[{"d":12}],"n":[{"a":67,"e":0,"n":19,"t":[{"i":23}]}],"r":[{".":29}],"s":[{"c":23,"t":29}],"t":23},112],"f":[{".":18,"e":[{"r":[{"o":4}]}],"f":[{"e":[{"n":5}],"r":1}],"i":[{"c":[{".":18}],"e":23}],"l":23,"t":18,"a":[{"c":[{"e":[{"t":137}]}]}]}],"g":[{"a":[{"b":5}],"e":[{"r":[{"a":3}]}],"h":[{"t":[{"i":12}]}],"i":[{"b":23,"l":3,"n":3,"t":3},18],"l":28,"o":[{"r":3,"t":4},24],"r":[{"e":19}],"u":[{"i":5,"r":2}],"n":[{"i":[{"t":[{"e":[{"r":213}]},0]}]}]},25],"h":23,"i":114,"j":[{"k":21},23],"k":18,"l":[{"a":[{"b":93,"d":[{"e":21}],"m":94,"r":[{"a":5}]},29],"e":[{"g":23,"r":2,"v":17}],"f":4,"i":[{"a":3,"b":9,"o":3,"s":[{"t":1}],"t":25,"z":9},2],"l":[{"a":[{"b":5}]}],"n":18,"o":[{"q":3}],"t":[{"y":1}],"u":[{"r":4}],"v":3}],"m":[{"a":[{"g":[{"e":3},21],"r":[{"y":5}]}],"e":[{"n":[{"t":[{"a":[{"r":10}]}]}],"t":18}],"i":[{"d":[{"a":4}],"l":[{"e":5}],"n":[{"i":19}],"t":18},2],"n":[{"i":1}],"o":[{"n":23}],"u":[{"l":[{"a":3}]},24],"p":[{"e":[{"d":[{"a":201}]}]}]}],"n":[{".":25,"a":[{"u":83,"v":18}],"c":[{"e":[{"l":36,"r":3}]}],"d":[{"l":[{"i":[{"n":[{"g":4}]}]}]},18],"e":[{"e":23,"r":[{"a":[{"r":17}]}],"s":[{"s":19}]},25],"g":[{"a":18,"e":[{"n":4},18],"i":18,"l":[{"i":[{"n":[{"g":4}]}]}],"o":18,"u":18}],"i":[{".":19,"a":21,"o":3,"s":2,"t":[{"e":[{".":19,"l":[{"y":[{".":19}]}]}],"i":[{"o":32}],"y":3}]},25],"k":18,"l":18,"n":25,"o":[{"c":90,"s":0,"t":21},42],"s":[{"e":3,"u":[{"r":[{"a":7}]}]},25],"t":[{".":25,"h":112}],"u":[{"s":19},2],"y":18,"f":[{"r":[{"a":[{"s":220}]}]}]}],"o":[{".":18,"g":[{"e":17,"r":9}],"l":29,"m":1,"n":[{"a":[{"t":11}],"e":[{"r":[{"y":0}]}],"i":11}],"p":[{"h":4}],"r":[{"i":11}],"s":21,"t":[{"h":4,"i":19,"o":1}],"u":[{"r":21}]},25],"p":[{"e":0,"h":[{"r":[{"a":[{"s":115}]}]}],"i":[{"c":1},3],"r":[{"e":96}],"u":[{"l":3}]},25],"q":[{"u":[{"a":23,"e":[{"f":4}],"i":[{"d":3,"t":116}]}]}],"r":[{"a":[{"b":0,"c":21},29],"d":[{"e":5}],"e":[{"d":[{"e":0}],"f":21,"l":117,"s":21}],"g":[{"i":4}],"i":[{"d":[{"e":5}],"s":1,"t":[{"u":11}],"z":118},2],"m":[{"i":[{"n":1}]}],"o":[{"g":0,"n":[{".":32}]}],"u":[{"l":4}],"r":[{"e":[{"v":[{"o":[{"c":221}]}]}]}]},18],"s":[{".":25,"a":[{"g":4,"r":3,"s":6}],"c":[{"h":3},119],"e":[{"r":3},18],"f":27,"h":[{"a":[{"n":4}],"o":[{"n":3,"p":5}]}],"i":[{"b":3,"d":0,"s":19,"t":[{"i":[{"v":4}]}]}],"k":26,"l":[{"a":[{"n":36}]}],"m":[{"s":18}],"o":[{"m":[{"e":[{"r":5}]}]},24],"p":[{"i":9,"y":1},2],"s":[{"a":[{"l":1}],"e":[{"n":36,"s":1}]},62],"t":[{"a":[{".":1}],"e":2,"i":2,"l":[{"y":0}],"r":[{"a":[{"l":18}]}]}],"u":[{"s":4},24]}],"t":[{"a":[{".":18,"b":[{"i":0}],"g":21,"m":120,"n":23,"t":23}],"e":[{"r":[{"a":3,"i":19}],"s":[{"i":[{"m":[{"a":29}]}]},1]},25],"h":[{"i":[{"l":148}]},25],"i":[{"a":18,"c":[{"a":3,"k":31},22],"g":3,"l":[{"l":4}],"m":24,"o":25,"s":[{"m":21},18],"n":[{"e":[{"r":[{"a":[{"r":158}]}]}]}]},29],"o":[{"m":121,"n":18}],"r":[{"a":[{"m":21}],"y":4}],"t":18,"u":[{"a":[{"t":3}],"d":19,"l":3}],"z":[{".":18}]}],"u":29,"v":[{"e":[{"l":[{"l":3}],"n":[{".":3}],"r":[{".":83,"s":[{".":21}]}]}],"i":[{"l":[{".":4}],"o":4,"t":2}],"o":[{"r":[{"e":19,"o":35}],"t":83}]},25],"w":56,"x":[{"o":1}],"y":18,"z":[{"a":[{"r":18}],"i":0,"o":[{"n":[{"t":32}]}]}]}],"j":[{"a":[{"c":[{"q":0}],"p":[{"a":[{"n":[{"e":[{"s":220}]}]}]},1],"n":[{"u":[{"a":12}]}]},32],"e":[{"r":[{"s":5,"e":[{"m":222}]}],"s":[{"t":[{"i":[{"e":18}],"y":18}]}],"w":11},41],"o":[{"p":1}],"u":[{"d":[{"g":32}]}]}],"k":[{"a":[{".":27,"b":23,"g":19,"i":[{"s":17}],"l":0}],"b":29,"e":[{"d":24,"e":41,"g":1,"l":[{"i":[{"n":[{"g":223}]},4]}],"n":[{"d":73}],"r":29,"s":[{"t":[{".":23}]},0],"t":[{"y":1}]}],"f":23,"h":1,"i":[{".":32,"c":122,"l":[{"l":21,"o":6}],"m":21,"n":[{".":21,"d":[{"e":0}],"e":[{"s":[{"s":19}],"t":[{"i":[{"c":224}]}]}],"g":0}],"p":1,"s":[{"h":19},0]},29],"k":1,"l":[{"e":[{"y":18}],"y":18},29],"m":29,"n":[{"e":[{"s":19}],"o":69}],"o":[{"r":4,"s":[{"h":17}],"u":23,"v":[{"i":[{"a":[{"n":41}]}]}]}],"r":[{"o":[{"n":5}]}],"s":[{"c":21,"l":1,"y":21,"h":[{"a":23}]},101],"t":19,"w":29}],"l":[{"a":[{"b":[{"i":[{"c":11}],"o":21}],"c":[{"i":[{"e":225},17]}],"d":[{"e":21,"y":3}],"g":[{"n":0}],"m":[{"o":11}],"n":[{"d":[{"l":0},27],"e":[{"t":5}],"t":[{"e":0}]}],"r":[{"g":0,"i":11,"c":[{"e":[{"n":176}]}]}],"s":[{"e":0}],"t":[{"a":[{"n":4}],"e":[{"l":[{"i":18}]}],"i":[{"v":18}]}],"v":[{"a":95},18],"i":[{"n":[{"e":[{"s":[{"s":226}]}]}]}]}],"b":[{"i":[{"n":17}]},42],"c":[{"e":0,"i":23,"h":[{"a":[{"i":23}],"i":[{"l":[{"d":227}]}]}]},101],"d":[{"e":[{"r":[{"e":1,"i":1}]},24],"i":[{"s":4},0],"r":[{"i":21},23]},25],"e":[{"a":[{"d":[{"e":[{"r":[{".":183}]}]}],"s":[{"a":228}]},9],"b":[{"i":1}],"f":[{"t":6}],"g":[{".":32,"g":32,"e":[{"n":[{"d":[{"r":[{"e":230}]}]}]}]}],"m":[{"a":[{"t":[{"i":[{"c":5}]},1]}]}],"n":[{".":18,"c":27,"e":[{".":32}],"t":41,"o":[{"i":[{"d":78}]}]}],"p":[{"h":3,"r":1}],"r":[{"a":[{"b":6}],"e":0,"g":27,"i":68,"o":21}],"s":[{"c":[{"o":4}],"q":32,"s":[{".":32},27]},8],"v":[{"a":23,"e":[{"r":[{".":0,"a":0,"s":0}]}]}],"y":[{"e":18},27],"c":[{"t":[{"a":[{"b":229}]}]}]}],"f":[{"r":19},25],"g":[{"a":[{"r":12},19],"e":[{"s":21}],"o":11},80],"h":48,"i":[{"a":[{"g":1,"m":9,"r":[{"i":[{"z":6}]}],"s":1,"t":[{"o":1}]}],"b":[{"i":4}],"c":[{"i":[{"o":32}],"o":[{"r":1}],"s":18,"t":[{".":18}],"u":21,"y":23}],"d":[{"a":23,"e":[{"r":5}],"i":27}],"f":[{"e":[{"r":11}],"f":21,"l":1}],"g":[{"a":[{"t":[{"e":32}]}],"h":27,"r":[{"a":1}]}],"k":27,"l":123,"m":[{"b":[{"l":0}],"i":11,"o":1,"p":90}],"n":[{"a":21,"e":[{"a":11},124],"i":11,"k":[{"e":[{"r":6}]}]}],"o":[{"g":4}],"q":125,"s":[{"p":0}],"t":[{".":24,"i":[{"c":[{"a":32,"s":108}]}],"h":[{"o":[{"g":204}]}]},29],"v":[{"e":[{"r":11}]}],"z":29}],"j":18,"k":[{"a":[{"l":23,"t":0},11]}],"l":[{"a":[{"w":21}],"e":[{"a":19,"c":23,"g":23,"l":23,"n":73,"t":73},24],"i":[{"n":[{"a":19},126],"s":[{"h":231}]},9],"o":[{"q":[{"u":[{"i":10}]}],"u":[{"t":4}],"w":19},1],"f":[{"l":2}]},29],"m":[{"e":[{"t":19}],"i":[{"n":[{"g":3}]}],"o":[{"d":21,"n":[{"e":[{"l":[{"l":232}]}]},17]}]},25],"n":81,"o":[{".":27,"b":[{"a":[{"l":5}],"o":[{"t":[{"o":233}]}]}],"c":[{"i":1}],"f":18,"g":[{"i":[{"c":27}],"o":19,"u":27,"e":[{"s":[{".":9}]}]}],"m":[{"e":[{"r":11}]}],"n":[{"g":32,"i":[{"z":127},0]}],"o":[{"d":6}],"p":[{"e":[{".":32}],"i":11,"m":23}],"r":[{"a":[{"t":[{"o":1}]},17],"i":[{"e":4}],"o":[{"u":5}]}],"s":[{".":32,"e":[{"t":5}],"o":[{"p":[{"h":[{"i":[{"z":32}],"y":32}]}]}],"t":0}],"t":[{"a":1}],"u":[{"n":[{"d":6}],"t":25}],"v":18,"a":[{"d":[{"e":[{"d":[{".":17}],"r":[{".":183}]}]}]}]}],"p":[{"a":[{"b":5}],"h":[{"a":23,"i":19}],"i":[{"n":[{"g":4}],"t":23}],"l":21,"r":19},25],"r":43,"s":[{"c":21,"e":24,"i":[{"e":21}]},81],"t":[{"a":[{"g":4,"n":[{"e":7}]}],"e":[{"n":17,"r":[{"a":36}],"a":23},29],"h":[{"i":[{"l":[{"y":148}]},11]}],"i":[{"e":[{"s":[{".":19}]}],"s":17}],"r":29,"u":[{"r":[{"a":12}]},8]},18],"u":[{"a":4,"b":[{"r":3}],"c":[{"h":17,"i":3}],"e":[{"n":3,"p":15}],"f":0,"i":[{"d":4}],"m":[{"a":1,"i":32,"n":[{".":19,"i":[{"a":32}]}],"b":[{"i":[{"a":[{".":235}]}]}]}],"o":[{"r":11},3],"p":18,"s":[{"s":17,"t":[{"e":11}]}],"t":41,"n":[{"k":[{"e":[{"r":234}]}]}]}],"v":[{"e":[{"n":19,"t":128}]}],"w":42,"y":[{"a":18,"b":18,"m":[{"e":4}],"n":[{"o":3}],"s":[{"e":19,"t":[{"y":[{"r":4}]}]},58],"g":[{"a":[{"m":[{"i":236}]}]}]},41]}],"m":[{"a":[{"b":25,"c":[{"a":9,"h":[{"i":[{"n":[{"e":4}]}]}],"l":1}],"g":[{"i":[{"n":5}],"n":32}],"h":25,"i":[{"d":6}],"l":[{"d":18,"i":[{"g":3,"n":4}],"l":[{"i":0}],"t":[{"y":0}],"a":[{"p":222}]}],"n":[{"i":[{"a":32,"s":5,"z":11}],".":24,"u":[{"s":[{"c":237}]}]}],"p":[{"h":[{"r":[{"o":244}]}]},18],"r":[{"i":[{"n":[{"e":[{".":4}]}],"z":4}],"l":[{"y":0}],"v":11,"g":[{"i":[{"n":238}]}]}],"s":[{"c":[{"e":4}],"e":0,"t":15}],"t":[{"e":32,"h":12,"i":[{"s":3,"z":[{"a":18}]}]}]},41],"b":[{"a":[{"t":129}],"i":[{"l":19,"n":[{"g":83}],"v":0}]},43],"c":56,"e":[{".":18,"d":[{".":18,"i":[{"a":32,"e":3,"c":[{"i":[{"n":152}]},84],"o":[{"c":239}]}],"y":108},25],"g":[{"r":[{"a":[{"n":240}]}]},9],"l":[{"o":[{"n":5}],"t":0}],"m":[{"o":130},9],"n":[{"a":[{"c":5},0],"d":[{"e":0}],"e":18,"i":0,"s":[{"u":7},17],"t":[{"e":0},27],".":24},41],"o":[{"n":4}],"r":[{"s":[{"a":19}]}],"s":[{"t":[{"i":27}]},25],"t":[{"a":[{"l":11},1],"e":2,"h":[{"i":4}],"r":[{"i":[{"c":32,"e":4}],"y":3},21]}],"v":1}],"f":43,"h":25,"i":[{".":32,"a":3,"d":[{"a":[{"b":241},0],"g":0}],"g":0,"l":[{"i":[{"a":27,"e":108,"t":[{"a":27}]}],"l":[{"a":[{"g":208}],"i":[{"l":[{"i":59}]}]},21]}],"n":[{"a":0,"d":27,"e":[{"e":19}],"g":[{"l":[{"i":5,"y":19},21]}],"t":0,"u":[{"t":[{"e":[{"r":242,"s":[{"t":242}]}]}]},21],"i":[{"s":[{".":174}]}]}],"o":[{"t":17}],"s":[{"e":[{"r":[{".":0}]}],"l":5,"t":[{"i":0,"r":[{"y":19}]}]},24],"t":[{"h":18}],"z":24}],"k":18,"l":43,"m":[{"a":[{"r":[{"y":5}],"b":243}]},29],"n":[{"a":1,"i":[{"n":21}],"o":1},43],"o":[{"c":[{"r":[{"a":[{"t":[{"i":[{"z":32}]},245]}]},18]}],"d":131,"g":[{"o":1}],"i":[{"s":[{"e":5},84]}],"k":18,"l":[{"e":[{"s":[{"t":4}],"c":246}]}],"m":[{"e":3}],"n":[{"e":[{"t":5,"y":[{"l":247}]}],"g":[{"e":5}],"i":[{"a":12,"s":[{"m":0,"t":0}],"z":3}],"o":[{"l":36,"c":[{"h":12}],"e":[{"n":171}],"s":249}],"y":[{".":3}]}],"r":[{"a":[{".":18}],"o":[{"n":[{"i":[{"s":248}]}]}]},9],"s":[{"e":[{"y":4}],"p":3},8],"t":[{"h":[{"e":[{"t":250}]},12]}],"u":[{"f":19,"s":[{"i":[{"n":98}]},27]}],"v":9,"e":[{"l":[{"a":[{"s":167}]}]}]},41],"p":[{"a":[{"r":[{"a":[{"b":5},7],"i":6}]}],"e":[{"t":23}],"h":[{"a":[{"s":36}]}],"i":[{"a":0,"e":[{"s":4}],"n":34,"r":19,"s":4},24],"o":[{"r":[{"i":11}],"s":[{"i":[{"t":[{"e":6}]}]}],"u":[{"s":21}],"v":6}],"t":[{"r":1}],"y":24},43],"r":47,"s":[{"h":[{"a":[{"c":[{"k":251}]}]},21],"i":19},101],"t":18,"u":[{"l":[{"a":[{"r":49}],"t":[{"i":[{"u":252},54]},32]}],"m":27,"n":8,"p":18,"u":1,"d":[{"r":[{"o":9}]}]},41],"w":18}],"n":[{"a":[{"b":[{"u":21},81],"c":[{".":18,"a":1,"t":19}],"g":[{"e":[{"r":[{".":5}]}]}],"k":0,"l":[{"i":[{"a":4},1],"t":18}],"m":[{"i":[{"t":4}]}],"n":[{"c":[{"i":36}],"i":[{"t":0}],"k":17},24],"r":[{"c":[{"h":[{"s":[{".":73}]}]},11],"e":18,"i":11,"l":0,"m":19}],"s":[{"c":0,"t":[{"i":5}]},21],"t":[{"a":[{"l":3}],"o":[{"m":[{"i":[{"z":6}]}]}]},24],"u":[{"s":[{"e":11}],"t":27},24],"v":[{"e":0}]},41],"b":80,"c":[{"a":[{"r":6}],"e":[{"s":[{".":21}]}],"h":[{"a":23,"e":[{"o":19,"s":[{"t":253}]}],"i":[{"l":19,"s":23}]}],"i":[{"n":2,"t":1}],"o":[{"u":[{"r":[{"a":7}]}]}],"r":29,"u":29}],"d":[{"a":[{"i":21,"n":19}],"e":[{"s":[{"t":[{".":4}]}]},29],"i":[{"b":0,"f":79,"t":29,"z":23,"e":[{"c":[{"k":29}]}]}],"u":[{"c":19,"r":0}],"w":[{"e":9}],"t":[{"h":[{"r":3}]}]}],"e":[{".":25,"a":[{"r":23}],"b":[{"u":11,"a":[{"c":[{"k":3}]}]},9],"c":[{"k":32},9],"d":25,"g":[{"a":[{"t":[{"i":[{"v":5}]},1]}],"e":32}],"l":[{"a":1,"i":[{"z":5}]}],"m":[{"i":4,"o":1}],"n":[{"e":18},41],"o":27,"p":[{"o":1}],"q":9,"r":[{"a":[{"b":6,"r":21}],"e":24,"i":132,"r":0},29],"s":[{".":25,"p":18,"t":25,"w":18,"k":[{"i":119}]},41],"t":[{"i":[{"c":27}]}],"v":[{"e":19},1],"w":1}],"f":[{"i":[{"n":[{"i":[{"t":[{"e":[{"s":226}]}]}]}]}]},23],"g":[{"a":[{"b":21}],"e":[{"l":23,"n":[{"e":[{"s":5},133]}],"r":[{"e":19,"i":23}]}],"h":[{"a":4,"o":2}],"i":[{"b":23,"n":2,"t":19}],"l":[{"a":21}],"o":[{"v":17}],"s":[{"h":4,"p":[{"r":2}]}],"u":[{"m":21},29],"y":24}],"h":[{"a":[{"b":12},0],"e":0},80],"i":[{"a":[{"n":[{".":114},3],"p":1},68],"b":[{"a":3,"l":1}],"d":[{"i":4},1],"e":[{"r":1}],"f":[{"i":[{"c":[{"a":[{"t":4}]}]},9]}],"g":[{"r":19}],"k":0,"m":[{"i":[{"z":3}]},29],"n":[{"e":[{".":32}],"g":0},29],"o":1,"s":[{".":32,"t":[{"a":0}]}],"t":[{"h":21,"i":[{"o":27}],"o":[{"r":23}],"r":3},24]}],"j":29,"k":[{"e":[{"r":[{"o":19}],"t":23}],"i":[{"n":3}],"l":29,"r":[{"u":[{"p":3}]}]},44],"l":[{"e":[{"s":[{"s":19}]}]},43],"m":[{"e":[{"t":17},0]},19],"n":[{"e":0,"i":[{"a":[{"l":11}],"v":0}]},101],"o":[{"b":[{"l":[{"e":3},0]}],"c":[{"l":19,"e":[{"r":[{"o":[{"s":254}]}]}]}],"d":66,"e":27,"g":[{"e":17},18],"i":[{"s":[{"i":6}]}],"l":[{"i":134,"o":[{"g":[{"i":[{"s":32}]}]}]}],"m":[{"i":[{"c":27,"z":108,"s":[{"t":82}]}],"o":1,"y":3,"a":[{"l":214}],"e":[{"n":[{"o":194}]}]}],"n":[{"a":[{"g":0}],"i":[{"z":19,"s":[{"o":255}]},5],"e":[{"q":15}]},1],"p":[{"o":[{"l":[{"i":135,"y":[{".":256}]}]}]},18],"r":[{"a":[{"b":5,"r":[{"y":1}]}]}],"s":[{"c":18,"e":0,"t":5}],"t":[{"a":4}],"u":[{"n":27},41],"v":[{"e":[{"l":136,"m":[{"b":2}]}]}],"w":[{"l":12}]}],"p":[{"i":0,"r":[{"e":[{"c":17}]}]},72],"q":29,"r":[{"u":0},29],"s":[{"a":[{"b":4,"t":[{"i":36}]}],"c":[{"e":[{"i":[{"v":4}]}]},1],"e":[{"s":83},24],"i":[{"d":137,"g":17}],"l":24,"m":[{"o":[{"o":1}]},3],"o":[{"c":21}],"p":[{"e":1,"i":19}],"t":[{"a":[{"b":[{"l":6}]}]}]},81],"t":[{"a":[{"b":0}],"e":[{"r":[{"s":12}]}],"i":[{"b":19,"e":[{"r":0}],"f":8,"n":[{"e":23,"g":83}],"p":0},9],"r":[{"o":[{"l":[{"l":[{"i":7}]}]}],"e":[{"p":137}]}],"s":1,"u":[{"m":[{"e":11}]}]},29],"u":[{"a":2,"d":1,"e":[{"n":4}],"f":[{"f":[{"e":0}]}],"i":[{"n":23,"t":50}],"m":[{"e":2,"i":19},21],"n":138,"o":23,"t":[{"r":3}]}],"v":74,"w":72,"y":[{"m":0,"p":0}],"z":[{"a":23},18]}],"o":[{"a":[{"d":11,"l":[{"e":[{"s":108}]}],"r":[{"d":12}],"s":[{"e":0,"t":[{"e":6}]}],"t":[{"i":5}]},18],"b":[{"a":[{"b":35,"r":19}],"e":[{"l":0}],"i":[{"n":[{"g":4},24]},29],"r":23,"u":[{"l":3}],"l":[{"i":[{"g":189}]}]}],"c":[{"e":29,"h":[{"e":[{"t":23}],"a":[{"s":23}]},0],"i":[{"f":12,"l":21}],"l":[{"a":[{"m":21}]}],"o":[{"d":21}],"r":[{"a":[{"c":3,"t":[{"i":[{"z":4}]}]}],"e":12,"i":[{"t":32}]}],"t":[{"o":[{"r":[{"a":7}]}]}],"u":[{"l":[{"a":3}],"r":[{"e":19}]}]}],"d":[{"d":[{"e":[{"d":4}]}],"i":[{"c":3,"o":11,"t":[{"i":[{"c":137}]}]}],"o":[{"r":12},139],"u":[{"c":[{"t":[{".":4,"s":4}]}]}],"e":[{"l":[{"l":[{"i":12}]}]}]}],"e":[{"l":21,"n":[{"g":19}],"r":[{"s":[{"t":257}]},23],"t":[{"a":1}],"v":23}],"f":[{"i":[{"t":[{"e":4,"t":17}]},24]}],"g":[{"a":[{"r":121,"t":[{"i":[{"v":4}],"o":21}]}],"e":[{"n":[{"e":19}],"o":19,"r":21},29],"i":[{"e":23,"s":140,"t":3}],"l":[{"y":79},21],"n":[{"i":[{"z":27}]}],"r":[{"o":21}],"u":[{"i":5}],"y":[{"n":25},41]}],"h":[{"a":[{"b":6}]},74],"i":[{"c":[{"e":[{"s":11}]}],"d":[{"e":[{"r":3}]}],"f":[{"f":17}],"g":0,"l":[{"e":[{"t":4}]}],"n":[{"g":23,"t":[{"e":[{"r":6}]}]}],"s":[{"m":19,"o":[{"n":4}],"t":[{"e":[{"n":6}]}]}],"t":[{"e":[{"r":3}]}]},9],"j":19,"k":[{"e":[{"n":23,"s":[{"t":15}]}],"i":[{"e":4}]},25],"l":[{"a":[{"n":21,"s":[{"s":36}]},29],"d":[{"e":15},9],"e":[{"r":3,"s":[{"c":23,"t":[{"e":[{"r":88}]}]}],"t":23}],"f":[{"i":1}],"i":[{"a":23,"c":[{"e":23}],"d":[{".":4}],"f":73,"l":19,"n":[{"g":3}],"o":19,"s":[{".":19,"h":3}],"t":[{"e":19,"i":[{"o":19}]}],"v":19,"g":[{"o":[{"p":[{"o":258}]}]}]},9],"l":[{"i":[{"e":17}]}],"o":[{"g":[{"i":[{"z":4}]}],"r":0,"n":[{"o":[{"m":259}]}]}],"p":[{"l":4}],"t":9,"u":[{"b":3,"m":[{"e":3}],"n":3,"s":19}],"v":9,"y":24}],"m":[{"a":[{"h":4,"l":5,"t":[{"i":[{"z":4}]}]}],"b":[{"e":9,"l":1}],"e":[{"n":[{"a":3}],"r":[{"s":[{"e":4}]}],"t":[{"r":[{"y":4}]},21],"c":[{"h":[{"a":260}]}]},24],"i":[{"a":23,"c":[{".":3,"a":3}],"d":19,"n":[{"i":19},2]}],"m":[{"e":[{"n":[{"d":32}]}]}],"o":[{"g":[{"e":0}],"n":21}],"p":[{"i":3,"r":[{"o":7}]}]}],"n":[{"a":[{"c":1,"n":23},2],"c":[{"i":[{"l":27}]},2],"d":[{"o":4},25],"e":[{"n":23,"s":[{"t":4}]}],"g":[{"u":1}],"i":[{"c":2,"o":23,"s":2,"u":19}],"k":[{"e":[{"y":3}]}],"o":[{"d":[{"i":1}],"m":[{"y":3,"i":[{"c":137}]}],"r":[{"m":[{"a":23}]}],"t":[{"o":[{"n":261}]}],"u":23}],"s":[{"p":[{"i":[{"r":[{"a":10}]},36]}],"u":17},3],"t":[{"e":[{"n":36}],"i":[{"f":7},93]}],"u":[{"m":4}],"v":[{"a":6}]},24],"o":[{"d":[{"e":5,"i":5}],"k":1,"p":[{"i":11}],"r":[{"d":23}],"s":[{"t":6}]},9],"p":[{"a":24,"e":[{"d":5,"r":[{"a":[{"g":18},27]},2]}],"h":[{"a":[{"n":19}],"e":[{"r":19}]},25],"i":[{"n":[{"g":3}],"t":23,"s":[{"m":[{".":2}]}]}],"o":[{"n":19,"s":[{"i":21}]}],"r":29,"u":2,"y":5}],"q":29,"r":[{"a":[{".":19,"g":83,"l":[{"i":[{"z":4}]}],"n":[{"g":[{"e":4}]}]},29],"e":[{"a":[{"l":19},5],"i":3,"s":[{"h":5,"t":[{".":4}]}],"w":17}],"g":[{"u":1}],"i":[{"a":56,"c":[{"a":3}],"l":19,"n":2,"o":29,"t":[{"y":3}],"u":23}],"m":[{"i":9}],"n":[{"e":8}],"o":[{"f":19,"u":[{"g":3}]}],"p":[{"e":4}],"r":[{"h":27}],"s":[{"e":[{"n":5},1],"t":17}],"t":[{"h":[{"i":3,"y":3,"o":[{"n":[{"i":[{"t":262}]}]}],"r":[{"i":137}]}],"y":1,"i":[{"v":[{"e":[{"l":[{"y":4}]}]}]}]}],"u":[{"m":19}],"y":29}],"s":[{"a":[{"l":3}],"c":[{"e":1,"o":[{"p":[{"i":18},23]}],"r":19},9],"i":[{"e":95,"t":[{"i":[{"v":4}],"o":3,"y":3}],"u":0}],"l":1,"o":24,"p":[{"a":1,"o":1,"h":[{"e":[{"r":83}]}]}],"t":[{"a":[{"t":[{"i":19}]},9],"i":[{"l":4,"t":4}]}]}],"t":[{"a":[{"n":21}],"e":[{"l":[{"e":[{"g":36}]}],"r":[{".":3,"s":4}],"s":[{"t":[{"e":[{"r":263}],"o":[{"r":264}]}]},21]}],"h":[{"e":[{"s":[{"i":5}],"o":[{"s":265}]}],"i":14},18],"i":[{"c":[{".":3,"a":4,"e":23}],"f":23,"s":23}],"o":[{"s":5}]}],"u":[{"b":[{"l":3,"a":[{"d":[{"o":116}]}]}],"c":[{"h":[{"i":6}]}],"e":[{"t":4}],"l":1,"n":[{"c":[{"e":[{"r":6}]}],"d":8}],"v":4},9],"v":[{"e":[{"n":1,"r":[{"n":[{"e":17}],"s":12,"t":1}]}],"i":[{"s":23,"t":[{"i":36}],"a":[{"n":[{".":266}]}]}],"o":[{"l":60}]}],"w":[{"d":[{"e":[{"r":3}]}],"e":[{"l":3,"s":[{"t":4}]}],"i":2,"n":[{"i":5}],"o":21}],"y":[{"a":2}],"x":[{"i":[{"d":[{"i":[{"c":267}]}]}]}]}],"p":[{"a":[{"c":[{"a":1,"e":1,"t":0}],"d":21,"g":[{"a":[{"n":32,"t":23}]}],"i":[{"n":17},21],"l":[{"m":[{"a":[{"t":268}]}]},21],"n":[{"a":0,"e":[{"l":11}],"t":[{"y":0}],"y":3}],"p":[{"u":1},2],"r":[{"a":[{"b":[{"l":6}],"g":[{"e":5,"r":[{"a":269}]}],"l":[{"e":228}],"m":[{"e":12},36]}],"d":[{"i":5}],"e":[{"l":5},27],"i":[{"s":0},28]}],"t":[{"e":[{"r":4},9],"h":[{"i":[{"c":32}],"y":4}],"r":[{"i":[{"c":1}]}]}],"v":0,"y":27},41],"b":43,"d":1,"e":[{".":18,"a":[{"r":[{"l":17}]},138],"c":9,"d":[{"e":27,"i":[{"a":36,"c":0},27]},37],"e":[{"d":0,"v":208},21],"k":0,"l":[{"a":1,"i":[{"e":17}]}],"n":[{"a":[{"n":1}],"c":21,"t":[{"h":0}]}],"o":[{"n":4}],"r":[{"a":[{".":21,"b":[{"l":6}],"g":21}],"i":[{"s":[{"t":6}]},21],"m":[{"a":[{"l":0}],"e":7}],"n":21,"o":11,"t":[{"i":11}],"u":4,"v":15}],"t":[{"e":[{"n":4}],"i":[{"z":4}]},9]}],"f":18,"g":18,"h":[{".":18,"a":[{"r":[{"i":6}]}],"e":[{"n":[{"o":11}],"r":1,"s":[{".":1}]}],"i":[{"c":2,"e":32,"n":[{"g":4}],"s":[{"t":[{"i":32}]}],"z":27,"l":[{"a":[{"n":[{"t":168}],"t":[{"e":[{"l":270}]}]}]}]}],"l":9,"o":[{"b":27,"n":[{"e":27,"i":32}],"r":0}],"s":18,"t":3,"u":32,"y":41}],"i":[{"a":[{"n":17},3],"c":[{"i":[{"e":1}],"y":1,"a":[{"d":271}]}],"d":[{"a":19,"e":3,"i":32},21],"e":[{"c":27,"n":3}],"g":[{"r":[{"a":[{"p":1}]}]}],"l":[{"o":3}],"n":[{".":21,"d":17,"o":21},9],"o":[{"n":17},141],"t":[{"h":[{"a":4},23],"u":9}]}],"k":142,"l":[{"a":[{"n":27,"s":[{"t":6}]}],"i":[{"a":11,"e":[{"r":5}],"g":18,"n":[{"a":[{"r":5}]},0],"c":[{"a":[{"b":208}]}]}],"o":[{"i":17}],"u":[{"m":[{"b":17},0]}]},143],"m":43,"n":48,"o":[{"c":1,"d":[{".":32}],"e":[{"m":4,"t":144}],"g":145,"i":[{"n":[{"t":32,"c":[{"a":12}]},84]}],"l":[{"y":[{"t":6,"e":137,"p":[{"h":[{"o":[{"n":[{"o":272}]}]}]}]}],"e":[{".":41}]}],"n":[{"i":1}],"p":1,"r":[{"y":1},124],"s":[{"s":15},41],"t":[{"a":1},21],"u":[{"n":32}]}],"p":[{"a":[{"r":[{"a":5}]}],"e":[{"d":21,"l":19,"n":23,"r":23,"t":23},24],"o":[{"s":[{"i":[{"t":[{"e":5}]}]}]}]},43],"r":[{"a":[{"y":[{"e":17}]}],"e":[{"c":[{"i":32,"o":5}],"e":[{"m":11}],"f":[{"a":[{"c":6}]}],"l":[{"a":0}],"r":11,"s":[{"e":23,"s":27,"p":[{"l":[{"i":84}]}]}],"t":[{"e":[{"n":5}]}],"v":11,"m":[{"a":[{"c":273}]}],"n":[{"e":[{"u":15}]}]}],"i":[{"e":53,"n":[{"t":146}],"s":[{"o":12},0]}],"o":[{"c":[{"a":23,"e":[{"s":[{"s":8}]}],"i":[{"t":[{"y":[{".":274}]}]}]}],"f":[{"i":[{"t":6}]}],"l":11,"s":[{"e":12}],"t":15,"g":[{"e":208}]}]},9],"s":[{"e":[{"u":[{"d":[{"o":[{"d":276,"f":276}]},275]}]},24],"h":1,"i":[{"b":21}]},81],"t":[{"a":[{"b":134}],"e":24,"h":24,"i":[{"m":11}],"u":[{"r":0}],"w":21,"o":[{"m":[{"a":[{"t":277}]}]}],"r":[{"o":[{"l":278}]}]},42],"u":[{"b":[{"e":[{"s":[{"c":181}]}]},11],"e":0,"f":0,"l":[{"c":11}],"m":1,"n":9,"r":[{"r":0}],"s":32,"t":[{"e":[{"r":11},32],"r":3,"t":[{"e":[{"d":0}],"i":[{"n":0}]}]},9]}],"w":23}],"q":[{"u":[{"a":[{"v":5,"i":[{"n":[{"t":[{"e":279}]}]}],"s":[{"i":[{"r":281,"s":281},280]}]}],"e":[{".":25,"r":27,"t":27}],"i":[{"n":[{"t":[{"e":[{"s":[{"s":282}]}]}]}],"v":[{"a":[{"r":14}]}]}]},9]}],"r":[{"a":[{"b":[{"i":3,"o":[{"l":[{"i":[{"c":29}],"o":[{"i":236}]}]}]},25],"c":[{"h":[{"e":17,"u":3}],"l":19}],"f":[{"f":[{"i":5}],"t":0}],"i":24,"l":[{"o":1}],"m":[{"e":[{"t":[{"r":[{"i":[{"z":283}]}]},11],"n":24}],"i":24,"o":[{"u":3}]}],"n":[{"e":[{"o":6}],"g":[{"e":0}],"i":21,"o":4,"h":[{"a":[{"s":167}]}]}],"p":[{"e":[{"r":11}],"h":[{"y":27}]}],"r":[{"c":5,"e":[{"f":5},17],"i":[{"l":18}]}],"s":24,"t":[{"i":[{"o":[{"n":115}]}]}],"u":[{"t":0}],"v":[{"a":[{"i":4}],"e":[{"l":11}]}],"z":[{"i":[{"e":4}]}],"d":[{"i":[{"g":127,"o":[{"g":249}]}]}],"o":[{"r":2}]}],"b":[{"a":[{"b":21,"g":21}],"i":[{"f":0,"n":[{"e":19,"g":[{".":4,"e":284}]},24]},8],"o":1},29],"c":[{"e":[{"n":17},24],"h":[{"a":23,"e":[{"r":0}]}],"i":[{"b":90,"t":1}],"u":[{"m":12}]},29],"d":[{"a":[{"l":21}],"i":[{"a":0,"e":[{"r":0}],"n":[{"g":3},17]},9]}],"e":[{".":25,"a":[{"l":2,"n":3,"r":[{"r":4}],"v":32,"w":1}],"b":[{"r":[{"a":[{"t":19}]}]}],"c":[{"o":[{"l":[{"l":5}],"m":[{"p":[{"e":5}]}]}],"r":[{"e":1}],"i":[{"p":[{"r":285}]}],"t":[{"a":[{"n":[{"g":286}]}]}]}],"d":[{"e":2,"i":[{"s":3,"t":5}]},37],"f":[{"a":[{"c":1}],"e":[{"r":[{".":4}]},9],"i":3,"y":1}],"g":[{"i":[{"s":11}]}],"i":[{"t":4}],"l":[{"i":2,"u":4}],"n":[{"t":[{"a":90,"e":0}]}],"o":2,"p":[{"i":[{"n":4}],"o":[{"s":[{"i":1}]}],"u":2}],"r":[{"i":21,"o":17,"u":4},147],"s":[{".":21,"p":[{"i":1}],"s":[{"i":[{"b":6}]}],"t":[{"a":[{"l":4}],"r":3},8]}],"t":[{"e":[{"r":1}],"i":[{"z":96}],"r":[{"i":[{"b":[{"u":85}]},3]}]}],"u":[{"t":[{"i":4}]},8],"v":[{"a":[{"l":1}],"e":[{"l":11,"r":[{".":30,"s":4,"t":4}]}],"i":[{"l":4}],"o":[{"l":[{"u":5}]}]},8],"w":[{"h":1}]}],"f":[{"u":0,"y":21},29],"g":[{"e":[{"r":3,"t":23}],"i":[{"c":23,"n":[{"g":3},0],"s":19,"t":19}],"l":29,"o":[{"n":0}],"u":23},9],"h":[{".":18,"a":[{"l":18}]},1],"i":[{"a":[{"b":0,"g":1,"l":[{".":23}]},3],"b":[{"a":11},21],"c":[{"a":[{"s":5}],"e":21,"i":[{"d":32,"e":1},18],"o":21}],"d":[{"e":[{"r":5}]}],"e":[{"n":[{"c":3,"t":3}],"r":2,"t":4}],"g":[{"a":[{"n":5}],"i":32}],"l":[{"i":[{"z":11}]}],"m":[{"a":[{"n":32}],"i":5,"o":27,"p":[{"e":0}]}],"n":[{"a":[{".":32},24],"d":0,"e":0,"g":0}],"o":2,"p":[{"h":[{"e":6},32],"l":[{"i":[{"c":5}]},9]}],"q":21,"s":[{".":21,"c":0,"h":23,"p":0},24],"t":[{"a":[{"b":116}],"e":[{"d":[{".":19}],"r":[{".":5,"s":5}]}],"i":[{"c":11}],"u":[{"r":5},9]}],"v":[{"e":[{"l":5,"t":11}],"i":11,"o":[{"l":287}]}]}],"j":23,"k":[{"e":[{"t":23}],"l":[{"e":1,"i":[{"n":1}]}],".":288,"h":[{"o":2}],"r":[{"a":[{"u":29}]}],"s":[{".":288}]}],"l":[{"e":[{"d":24,"q":[{"u":30}]},0],"i":[{"g":21,"s":[{"h":4},21]}],"o":73},29],"m":[{"a":[{"c":5}],"e":[{"n":23,"r":[{"s":4}]},24],"i":[{"n":[{"g":[{".":21},3]}],"o":21,"t":23}],"y":21},29],"n":[{"a":[{"r":21}],"e":[{"l":23,"r":21,"t":19,"y":23}],"i":[{"c":19,"s":92,"t":23,"v":23}],"o":[{"u":21},0],"u":23}],"o":[{"b":[{"l":11,"o":[{"t":289}]}],"c":[{"r":3},24],"e":[{"l":[{"a":[{"s":167}]}],"p":[{"i":[{"d":[{"e":290}]}]}]},1],"f":[{"e":2,"i":[{"l":4}]}],"k":[{"e":[{"r":4}]},8],"l":[{"e":[{".":32}]}],"m":[{"e":[{"t":[{"e":5}],"s":[{"h":3}]}],"i":0,"p":0}],"n":[{"a":[{"l":0}],"e":0,"i":[{"s":134}],"t":[{"a":0}]}],"o":[{"m":41,"t":32}],"p":[{"e":[{"l":3}],"i":[{"c":11}]}],"r":[{"i":11,"o":4}],"s":[{"p":[{"e":[{"r":5}]}],"s":0}],"t":[{"h":[{"e":1}],"y":1,"r":[{"o":[{"n":2}]}]}],"v":[{"a":1,"e":[{"l":5}]}],"x":5}],"p":[{"e":[{"a":21,"n":[{"t":19}],"r":[{".":4}],"t":23}],"h":95,"i":[{"n":[{"g":3}]}],"o":23,"a":[{"u":[{"l":[{"i":291}]}]}]},29],"r":[{"e":[{"c":0,"f":0,"o":21,"s":[{"t":0}]}],"i":[{"o":0,"v":0}],"o":[{"n":17,"s":17}],"y":[{"s":17}]},72],"s":[{"a":[{"t":[{"i":5}]},29],"c":1,"e":[{"c":[{"r":0},23],"r":[{".":4,"a":[{"d":[{"i":238}]}]}],"s":3,"v":148},24],"h":[{"a":19},29],"i":[{"b":90},29],"o":[{"n":12}],"p":29,"w":19},44],"t":[{"a":[{"c":[{"h":36}],"g":21}],"e":[{"b":23,"n":[{"d":17}],"o":5}],"i":[{"b":4,"d":0,"e":[{"r":21}],"g":23,"l":[{"i":12,"l":17,"y":21}],"s":[{"t":21}],"v":21},29],"r":[{"i":23,"o":[{"p":[{"h":115}]}],"e":[{"u":29}]}],"s":[{"h":1}],"h":[{"o":[{"u":29}]}]}],"u":[{"a":3,"e":[{"l":93,"n":3}],"g":[{"l":1}],"i":[{"n":3}],"m":[{"p":[{"l":11}]}],"n":[{"k":6,"t":[{"y":0}]},9],"s":[{"c":19}],"t":[{"i":[{"n":6}]}]}],"v":[{"e":[{"l":[{"i":17}],"n":23,"r":[{".":4}],"s":[{"t":19}],"y":23,"i":[{"l":29}]},1],"i":[{"c":23,"v":0}],"o":23}],"w":29,"y":[{"c":1,"n":[{"g":[{"e":32}]}],"t":3}],"z":[{"s":[{"c":2}]}]}],"s":[{"a":[{"b":42,"c":[{"k":32,"r":[{"i":11}],"t":23}],"i":32,"l":[{"a":[{"r":36}],"m":0,"o":4,"t":0,"e":[{"s":[{"c":54,"w":7}]}]}],"n":[{"c":27,"d":[{"e":0}]}],"p":[{"a":[{"r":[{"i":[{"l":292}]}]}]},29],"t":[{"a":4,"i":[{"o":76}],"u":11}],"u":0,"v":[{"o":[{"r":4}]}],"w":32},9],"b":56,"c":[{"a":[{"n":[{"t":149}],"p":[{"e":[{"r":267}]},0],"v":6,"t":[{"o":[{"l":208}]}]}],"e":[{"d":21,"i":18,"s":21}],"h":[{"o":21,"i":[{"t":[{"z":21}]}],"r":[{"o":[{"d":[{"i":[{"n":[{"g":293}]}]}]}]}]},8],"i":[{"e":68,"n":[{"d":150}],"u":[{"t":[{"t":294}]}]}],"l":[{"e":6,"i":21}],"o":[{"f":17,"p":[{"y":18}],"u":[{"r":[{"a":7}]}]}],"u":29,"r":[{"a":[{"p":[{"e":[{"r":[{".":36}]}]}]}]}],"y":[{"t":[{"h":247}]}]}],"d":56,"e":[{".":18,"a":[{"s":17,"w":5},1],"c":[{"o":151,"t":27}],"d":[{"e":95,"l":19},125],"g":[{"r":11},9],"i":32,"l":[{"e":2,"f":32,"v":32}],"m":[{"e":[{"s":[{"t":295}]},18],"o":[{"l":1}],"a":[{"p":[{"h":287}]}],"i":[{"t":[{"i":[{"c":296}]}]}]}],"n":[{"a":[{"t":5}],"c":18,"d":0,"e":[{"d":19}],"g":5,"i":[{"n":19}],"t":[{"d":18,"l":18}]}],"p":[{"a":152,"t":[{"e":[{"m":[{"b":11}]}]}]}],"r":[{".":43,"l":21,"o":0,"v":[{"o":18}]}],"s":[{"h":4,"t":5},72],"u":[{"m":113}],"v":[{"e":[{"n":11}]},32],"w":[{"i":0}],"x":32}],"f":47,"g":48,"h":[{".":25,"e":[{"r":2,"v":32}],"i":[{"n":2,"o":3,"p":27,"v":6}],"o":[{"l":[{"d":4}],"n":12,"r":[{"t":7},17],"e":[{"s":[{"t":137}]}]},0],"w":18},24],"i":[{"b":2,"c":[{"c":19}],"d":[{"e":[{".":27,"s":[{"t":6,"w":6},32],"d":[{".":8}]}],"i":[{"z":4},32]}],"g":[{"n":[{"a":18}]}],"l":[{"e":0,"y":18}],"n":[{"a":24,"e":[{".":32}],"g":23},42],"o":[{"n":[{"a":6},32]},41],"r":[{"a":5,"e":[{"s":[{"i":[{"d":4}]}]}]},9],"s":41,"t":[{"i":[{"o":27}]}],"u":32,"v":41,"z":32}],"k":[{"e":[{"t":23},18],"i":[{"n":[{"e":4,"g":4}]}],"y":[{"s":[{"c":15}]}]},9],"l":[{"a":[{"t":23}],"e":24,"i":[{"t":[{"h":7}]}],"o":[{"v":[{"a":[{"k":[{"i":[{"a":297}]}]}]}]}]},74],"m":[{"a":[{"l":[{"l":54}],"n":12},23],"e":[{"l":17,"n":19}],"i":[{"t":[{"h":32}]}],"o":[{"l":[{"d":49}]}]},42],"n":72,"o":[{"c":[{"e":1}],"f":[{"t":12}],"l":[{"a":[{"b":1}],"d":153,"i":[{"c":3}],"v":32,"u":[{"t":[{"e":9}]}]}],"m":27,"n":[{".":68,"a":17,"g":0}],"p":[{"h":[{"i":[{"c":32,"z":19}],"y":19}]},21],"r":[{"c":5,"d":5}],"v":[{"i":4},18],"g":[{"a":[{"m":[{"y":298}]}]}]},41],"p":[{"a":[{"i":32,"n":0,"c":[{"e":299,"i":[{"n":69}]}]},25],"e":[{"n":[{"d":17}],"o":57,"r":25,"c":[{"i":[{"o":11}]}]}],"h":[{"e":[{"r":[{"o":213},27]},24],"o":6}],"i":[{"l":17,"n":[{"g":4}],"o":18,"c":[{"i":[{"l":208}]}]}],"l":[{"y":21}],"o":[{"n":21,"r":[{"t":[{"s":[{"c":300,"w":300}]}]},17],"t":18,"k":[{"e":[{"s":[{"w":10}]}]}]}]}],"q":[{"u":[{"a":[{"l":[{"l":36}]}],"i":[{"t":[{"o":88}]}]}]}],"r":29,"s":[{"a":[{"s":12,"c":[{"h":[{"u":301}]}]},29],"c":94,"e":[{"l":23,"n":[{"g":19}],"s":[{".":21}],"t":19}],"i":[{"e":[{"r":0},21],"l":[{"y":4}],"a":[{"n":[{".":210}]}],"g":[{"n":[{"a":[{"b":302}]}]}]},29],"l":[{"i":1},21],"n":21,"p":[{"e":[{"n":[{"d":115}]}]}],"t":9,"u":[{"r":[{"a":6}]}],"w":4,"h":[{"a":[{"t":3}]}]},25],"t":[{".":25,"a":[{"g":24,"l":24,"m":[{"i":17,"p":69}],"n":[{"d":32,"t":[{"s":[{"h":[{"i":303}]}]}]}],"p":90,"t":[{".":32,"i":15}],"r":[{"t":[{"l":[{"i":12}]}]}]}],"e":[{"d":21,"r":[{"n":[{"i":7}],"o":19}],"w":[{"a":6},8]}],"h":[{"e":23}],"i":[{".":21,"a":19,"c":[{"k":32},29],"e":21,"f":23,"n":[{"g":3}],"r":32},9],"l":[{"e":29}],"o":[{"c":[{"k":32}],"m":[{"a":12}],"n":[{"e":32}],"p":21,"r":[{"e":27,"a":[{"b":304}]}]}],"r":[{"a":[{"d":21,"t":[{"u":32,"a":[{"g":305}]}],"y":21}],"i":[{"d":21,"b":[{"u":[{"t":7}]}]}],"y":18},1],"w":61,"y":[{"l":[{"i":[{"s":137}]}]},24],"b":4,"s":[{"c":[{"r":4}]}],"u":[{"p":[{"i":[{"d":306}]}]}]}],"u":[{"a":[{"l":2}],"b":111,"g":151,"i":[{"s":4,"t":12}],"l":21,"m":[{"i":11},9],"n":9,"r":9,"p":[{"e":[{"r":[{"e":307}]}]}]},41],"v":18,"w":[{"o":18,"i":[{"m":[{"m":177}]}]},9],"y":[{"c":18,"l":27,"n":[{"o":5,"c":41}],"r":[{"i":[{"n":4}]}],"t":[{"h":[{"i":308}]}]},21]}],"t":[{"a":[{".":27,"b":[{"l":[{"e":[{"s":4}]}],"o":[{"l":[{"i":[{"z":32,"s":[{"m":309}]}]}]}]},25],"c":[{"i":18}],"d":[{"o":4}],"f":46,"i":[{"l":[{"o":5}]}],"l":[{"a":4,"e":[{"n":5}],"i":11,"k":[{"a":204},18],"l":[{"i":[{"s":0}]}],"o":[{"g":4}]},9],"m":[{"o":4,"i":[{"n":82}]}],"n":[{"d":[{"e":0}],"t":[{"a":54}]}],"p":[{"e":[{"r":4}],"l":4,"a":[{"t":[{"h":310}]}]}],"r":[{"a":0,"c":18,"e":18,"i":[{"z":3}],"r":[{"h":311}]}],"s":[{"e":0,"y":4}],"t":[{"i":[{"c":18}],"u":[{"r":1}]}],"u":[{"n":17}],"v":0,"w":25,"x":[{"i":[{"s":0}]}],"g":[{"o":[{"n":[{".":3}]}]}]},41],"b":42,"c":[{"h":[{"e":[{"t":5}],"c":15,"i":[{"e":[{"r":237}]}]},21],"r":29},18],"d":43,"e":[{".":18,"a":[{"d":[{"i":17}],"t":18,"c":[{"h":[{"e":[{"r":[{".":36}]}]}]}]}],"c":[{"e":17,"t":32}],"d":[{"i":4},42],"e":41,"g":[{"e":[{"r":4}],"i":4},0],"l":[{".":27,"i":17,"s":32,"e":[{"g":84,"r":[{"o":249}]}]}],"m":[{"a":[{"t":11},154]}],"n":[{"a":[{"n":27}],"c":27,"d":27,"e":[{"s":18}],"t":[{"a":[{"g":0}]},41]}],"o":41,"p":[{"e":4},1],"r":[{"c":11,"d":155,"i":[{"e":[{"s":5}],"s":11,"z":[{"a":6}],"c":[{".":8}]},41],"n":[{"i":[{"t":32}]}],"v":5,"g":[{"e":[{"i":312}]}]}],"s":[{".":18,"s":[{".":23,"e":[{"s":313}]},18]}],"t":[{"h":[{"e":6}]}],"u":27,"x":27,"y":18}],"f":42,"g":43,"h":[{".":25,"a":[{"n":17,"l":[{"a":[{"m":228}]}]}],"e":[{"a":[{"s":3,"t":5},18],"i":[{"s":11}],"t":27},9],"i":[{"c":[{".":4,"a":4}],"l":18,"n":[{"k":32}]}],"l":18,"o":[{"d":[{"e":4,"i":[{"c":32}],"o":[{"n":11}]}],"o":18,"r":[{"i":[{"t":6,"z":5}]}],"g":[{"e":[{"n":[{"i":314}]}]}],"k":[{"e":[{"r":175}]}]}],"s":25,"y":[{"l":[{"a":[{"n":228}]}],"s":[{"c":11}]}]}],"i":[{"a":[{"b":1,"t":[{"o":1}],"n":[{".":70}]},41],"b":156,"c":[{"k":18,"o":21,"u":157}],"d":[{"i":32}],"e":[{"n":27}],"f":[{"y":4},8],"g":[{"u":32},25],"l":[{"l":[{"i":[{"n":6}]}]}],"m":[{"p":18,"u":[{"l":5}]},41],"n":[{"a":24,"e":[{".":27}],"i":27,"o":[{"m":285}]},42],"o":[{"c":4,"n":[{"e":[{"e":6}]}]},41],"q":32,"s":[{"a":3,"e":27,"m":0,"o":4,"p":0,"t":[{"i":[{"c":[{"a":32}]}]}]}],"t":[{"l":3}],"u":1,"v":[{"a":0},41],"z":[{"a":3,"e":[{"n":3}]},41]}],"l":[{"a":[{"n":17},19],"e":[{".":27,"d":27,"s":[{".":27}],"t":[{".":19}]}],"o":19,"i":[{"e":[{"r":315}]}]},25],"m":[{"e":0},43],"n":81,"o":[{"b":3,"c":[{"r":[{"a":[{"t":4}]}]}],"d":[{"o":18}],"f":25,"g":[{"r":9}],"i":[{"c":4}],"m":[{"a":9,"b":0,"y":3}],"n":[{"a":[{"l":[{"i":0}],"t":3}],"o":18,"y":18}],"r":[{"a":9,"i":[{"e":3,"z":5}]}],"s":8,"u":[{"r":32,"t":18}],"w":[{"a":[{"r":3}]}],"l":[{"o":[{"g":[{"y":84}]}]}],"t":[{"i":[{"c":11}]}]},41],"p":43,"r":[{"a":[{"b":11,"c":[{"h":5,"i":[{"t":17},36],"t":[{"e":17}]}],"s":17,"v":[{"e":[{"n":5,"s":158,"r":[{"s":[{"a":[{"b":317}]},15]}]}]}],"i":[{"t":[{"o":[{"r":316}]}]}]},41],"e":[{"f":5,"m":[{"i":6},0],"a":[{"c":[{"h":[{"e":318}]}]}]}],"i":[{"a":[{"l":[{".":1}]},32],"c":[{"e":[{"s":5}],"i":[{"a":32}],"s":18}],"m":25,"v":0}],"o":[{"m":[{"i":5}],"n":[{"i":6,"y":18}],"p":[{"h":[{"e":5}],"i":[{"s":175}],"o":[{"l":[{"e":[{"s":320}],"i":[{"s":320,"t":321}]}]}]}],"s":[{"p":11}],"v":11,"l":[{"e":[{"u":[{"m":319}]}]}],"f":[{"i":[{"c":[{".":17}],"t":11}]}]}],"u":[{"i":5,"s":17}]}],"s":[{"c":[{"h":[{"i":[{"e":12}]}]},21],"h":0,"w":21},101],"t":[{"e":[{"s":21}],"o":19,"u":0,"r":[{"i":[{"b":[{"u":[{"t":322}]}]}]}]},66],"u":[{"a":[{"r":3},2],"b":[{"i":1}],"d":8,"e":18,"f":46,"i":76,"m":27,"n":[{"i":[{"s":1}]}],"p":[{".":48}],"r":[{"e":27,"i":[{"s":11},32],"o":5,"y":4,"n":[{"a":[{"r":12}]}]}],"s":27},41],"v":18,"w":[{"a":43,"i":[{"s":17}],"o":18,"h":29},1],"y":[{"a":18,"l":25,"p":[{"e":12,"h":4,"a":[{"l":64}]}]},41],"z":[{"e":1},18]}],"u":[{"a":[{"b":18,"c":0,"n":[{"a":4,"i":0}],"r":[{"a":[{"n":[{"t":5}]}],"d":8,"i":11,"t":11}],"t":29,"v":0,"d":[{"r":[{"a":[{"t":[{"i":3,"u":15}]}]}]}]}],"b":[{"e":[{"l":21,"r":[{"o":21},23]},1],"i":[{"n":[{"g":33}]},72],"l":[{"e":[{".":23}]}]}],"c":[{"a":23,"i":[{"b":0,"t":1}],"l":[{"e":12}],"r":23,"u":23,"y":21}],"d":[{"d":4,"e":[{"r":3,"s":[{"t":4}],"v":17}],"i":[{"c":29,"e":[{"d":3,"s":3}],"s":4,"t":19}],"o":[{"n":[{"y":232},21]}],"s":[{"i":1}],"u":21}],"e":[{"n":[{"e":21,"s":17,"t":[{"e":0}]}],"r":[{"i":[{"l":0}]}],"a":[{"m":15}]}],"f":[{"a":27,"l":23}],"g":[{"h":[{"e":[{"n":11}]}],"i":[{"n":4}]}],"i":[{"l":[{"i":[{"z":5}]}],"n":[{"g":29},1],"r":[{"m":0}],"t":[{"a":17}],"v":[{"e":[{"r":[{".":0}]}]},11]},156],"j":19,"k":18,"l":[{"a":[{"b":5,"t":[{"i":19}]},29],"c":[{"h":[{"e":32},17]}],"d":[{"e":[{"r":3}]}],"e":[{"n":29},1],"g":[{"i":1}],"i":[{"a":19,"n":[{"g":3}],"s":[{"h":4}]},9],"l":[{"a":[{"r":1}],"i":[{"b":96,"s":1}]}],"m":61,"o":72,"s":[{"e":[{"s":5}]},18],"t":[{"i":2,"r":[{"a":54}],"u":18}],"u":[{"l":4},23],"v":4}],"m":[{"a":[{"b":4}],"b":[{"i":1,"l":[{"y":1}]}],"i":[{"n":[{"g":83}]},29],"o":[{"r":[{"o":6}]}],"p":9}],"n":[{"a":[{"t":17}],"e":[{"r":1},24],"i":[{"m":1,"n":24,"s":[{"h":4}],"v":11},29],"s":[{"w":1},93],"t":[{"a":[{"b":11}],"e":[{"r":[{".":1}],"s":1}]}],"u":0,"y":4,"z":4}],"o":[{"r":[{"s":21}],"s":19,"u":29}],"p":[{"e":[{"r":[{"s":6}]},29],"i":[{"a":19,"n":[{"g":3}]}],"l":23,"p":[{"o":[{"r":[{"t":10}]}]},3],"t":[{"i":[{"b":5}],"u":17}]}],"r":[{"a":[{".":18,"g":21,"s":21,"l":[{".":216}]},29],"b":[{"e":1}],"c":0,"d":2,"e":[{"a":[{"t":5}]}],"f":[{"e":[{"r":1}],"r":1}],"i":[{"f":[{"i":[{"c":0}]},23],"n":2,"o":23,"t":29,"z":3,"a":[{"l":[{".":0}]}]}],"l":[{"i":[{"n":[{"g":[{".":5}]}]}]},9],"n":[{"o":1}],"o":[{"s":17}],"p":[{"e":1,"i":1}],"s":[{"e":[{"r":5}]}],"t":[{"e":[{"s":4}],"h":[{"e":3}],"i":[{"e":1},17]}],"u":23}],"s":[{"a":[{"d":19,"n":19,"p":1}],"c":[{"i":3},8],"e":[{"a":5,"r":[{".":9}]}],"i":[{"a":19,"c":23}],"l":[{"i":[{"n":1}]}],"p":2,"s":[{"l":4}],"t":[{"e":[{"r":[{"e":4}]}],"r":2}],"u":[{"r":17},24]},25],"t":[{"a":[{"b":0,"t":23}],"e":[{".":18,"l":18,"n":[{"i":17},18]}],"i":[{"l":[{"i":[{"z":5}]}],"n":[{"e":23,"g":3}],"o":[{"n":[{"a":7}]}],"s":21,"z":31},101],"l":34,"o":[{"f":4,"g":5,"m":[{"a":[{"t":[{"i":[{"c":5}]}]}]}],"n":19,"u":21}],"s":0}],"u":[{"m":1},23],"v":74,"x":[{"u":11}],"z":[{"e":1}]}],"v":[{"a":[{".":32,"b":159,"c":[{"i":[{"l":5}],"u":11}],"g":[{"e":1,"u":[{"e":[{"r":170}]}]},0],"l":[{"i":[{"e":4}],"o":5,"u":15}],"m":[{"o":4}],"n":[{"i":[{"z":4}]}],"p":[{"i":4}],"r":[{"i":[{"e":[{"d":5}]}]}],"t":[{"i":[{"v":29}]},27],"u":[{"d":[{"e":[{"v":54}]}]}]},41],"e":[{".":18,"d":18,"g":11,"l":[{".":23,"l":[{"i":11}],"o":1,"y":21}],"n":[{"o":[{"m":11}],"u":[{"e":19}]}],"r":[{"d":21,"e":[{".":32,"l":[{"y":[{".":41}]},21],"n":[{"c":5},23],"s":21,"i":[{"g":324}]}],"i":[{"e":11}],"m":[{"i":[{"n":36}]}],"s":[{"e":27}],"t":[{"h":11}]}],"s":[{".":18,"t":[{"e":0,"i":[{"t":[{"e":15}]}]}]},99],"t":[{"e":[{"r":11},1],"y":1}]}],"i":[{"a":[{"l":[{"i":4}],"n":32}],"d":[{"e":[{".":32,"d":32,"n":47,"s":32}],"i":32}],"f":23,"g":[{"n":4}],"k":0,"l":[{"i":[{"t":32,"z":127}]},25],"n":[{"a":26,"c":24,"d":5,"g":18},29],"o":[{"l":11,"r":73,"u":2}],"p":1,"r":[{"o":4}],"s":[{"i":[{"t":11}],"o":3,"u":3}],"t":[{"i":18,"r":11,"y":18}],"v":[{"i":[{"p":[{"a":[{"r":325}]}]}]},27]}],"o":[{".":32,"i":[{"r":[{"d":[{"u":323}]}],"c":[{"e":[{"p":213}]}]},0],"k":27,"l":[{"a":1,"e":19,"t":32,"v":27}],"m":[{"i":5}],"r":[{"a":[{"b":5}],"i":17,"y":1}],"t":[{"a":1,"e":[{"e":18}]}]}],"v":26,"y":21}],"w":[{"a":[{"b":[{"l":19}],"c":25,"g":[{"e":[{"r":4}],"o":5}],"i":[{"t":6}],"l":[{".":19}],"m":0,"r":[{"t":0}],"s":[{"t":[{"e":[{"w":[{"a":326}]}]},0]}],"t":[{"e":2}],"v":[{"e":[{"r":4,"g":327}]}]}],"b":29,"e":[{"a":[{"r":[{"i":[{"e":5}]}],"t":[{"h":54}]}],"d":[{"n":0}],"e":[{"t":12,"v":5,"k":[{"n":137}]}],"l":[{"l":0}],"r":29,"s":[{"t":12}],"v":23}],"h":[{"i":0}],"i":[{"l":[{"l":[{"i":[{"n":6}]}]},8],"n":[{"d":[{"e":0}],"g":0}],"r":0,"s":[{"e":27}],"t":[{"h":12}],"z":5,"d":[{"e":[{"s":[{"p":6}]}]}]},9],"k":21,"l":[{"e":[{"s":1}],"i":[{"n":3}]}],"n":[{"o":21}],"o":[{"m":15,"v":[{"e":[{"n":4}]}],"k":[{"e":[{"n":85}]}]},160],"p":19,"r":[{"a":[{"p":[{"a":[{"r":[{"o":12}]}]}]},0],"i":[{"t":[{"a":36,"e":[{"r":[{".":183}]}]}]},0]}],"s":[{"h":23,"l":1,"p":[{"e":1}],"t":60}],"t":18,"y":1,"c":23}],"x":[{"a":[{"c":[{"e":5}],"g":[{"o":21}],"m":11,"p":21,"s":5},29],"c":161,"e":[{"c":[{"u":[{"t":[{"o":1}]}]}],"d":24,"r":[{"i":0,"o":4}]},29],"h":[{"i":[{"l":6},8],"u":0},29],"i":[{"a":4,"c":4,"d":[{"i":4}],"m":[{"e":21,"i":[{"z":4}]}]},23],"o":[{"b":21},23],"p":[{"a":[{"n":[{"d":17}]}],"e":[{"c":[{"t":[{"o":10}]}],"d":11}]},23],"t":[{"i":23},74],"u":[{"a":3},29],"x":1,"q":[{"u":[{"i":[{"s":54}]}]},29]}],"y":[{"a":[{"c":19,"r":110,"t":19}],"b":29,"c":[{"e":[{"r":4},24],"h":[{"e":[{"d":264},0]},23],"o":[{"m":17,"t":17}]},29],"d":29,"e":[{"e":19,"r":[{"f":21},29],"s":[{"t":[{"e":[{"r":[{"y":328}]}]}]},0],"t":1}],"g":[{"i":19}],"h":47,"i":29,"l":[{"a":23,"l":[{"a":[{"b":[{"l":6}]}]}],"o":23,"u":19}],"m":[{"b":[{"o":[{"l":7}]}],"e":[{"t":[{"r":[{"y":20}]}]},0],"p":[{"a":12}]}],"n":[{"c":[{"h":[{"r":3}]}],"d":4,"g":4,"i":[{"c":4}],"x":32}],"o":[{"d":4,"g":33,"m":0,"n":[{"e":[{"t":4}],"s":21}],"s":21},72],"p":[{"e":[{"d":21,"r":6}],"i":3,"o":[{"c":21},23],"t":[{"a":9}],"u":19}],"r":[{"a":[{"m":5}],"i":[{"a":4}],"o":23,"r":1}],"s":[{"c":1,"e":161,"i":[{"c":[{"a":3}],"o":3,"s":27}],"o":21,"s":0,"t":[{"a":3,"r":[{"o":29}]},2],"u":[{"r":17}]}],"t":[{"h":[{"i":[{"n":23}]}],"i":[{"c":3}]}],"w":29}],"z":[{"a":[{"b":79,"r":8},2],"b":18,"e":[{"n":1,"p":1,"r":[{"o":3},29],"t":0},25],"i":[{"l":21,"s":21,"a":[{"n":[{".":23}]}]},42],"l":32,"m":18,"o":[{"m":1,"o":[{"l":4}],"p":[{"h":[{"r":329}]}]},41],"t":[{"e":0}],"z":[{"y":21,"w":231},101]}]}',["as-so-ciate","as-so-ciates","dec-li-na-tion","oblig-a-tory","phil-an-thropic","present","presents","project","projects","reci-procity","re-cog-ni-zance","ref-or-ma-tion","ret-ri-bu-tion","ta-ble"]],Mbt=Object.freeze(Object.defineProperty({__proto__:null,EnUs:sz},Symbol.toStringTag,{value:"Module"}));function lz(t){const[e,n]=t;return{levelsTable:e.split(","),pattern:JSON.parse(n)}}T(lz,"parsePattern");function obe(t){return t.replace(/^[a-z]/,e=>e.toUpperCase()).replace(/-([a-z])/g,e=>e[1].toUpperCase())}T(obe,"snackToPascal");function sbe(t){let e=0,n=t;function r(){return n=t.slice(e++),n.length<3?[]:n}T(r,"next");function i(){return e===2}return T(i,"isFirstCharacter"),[r,i]}T(sbe,"createStringSlicer");function lbe(t){let e=0;function n(){return t[e++]}T(n,"nextChar");function r(){return t.length===e+1}return T(r,"isLastLetter"),[n,r]}T(lbe,"createCharIterator");const uz=class ube{constructor(){q(this,"_patterns",new Map),q(this,"_hyphenCache",new Map),this._preloadPatterns(),this.loadPattern(bi.EnGb)}static getInstance(){return this._instance==null&&(this._instance=new ube),this._instance}_preloadPatterns(){this._patterns.set(bi.EnUs,lz(sz)),this._loadExceptionsToCache(bi.EnUs,sz)}_loadExceptionsToCache(e,n){if(n.length<3)return;const r=n[2];for(const i of r){const a=i.replace(/-/g,""),o=i.split("-");let s=this._hyphenCache.get(e);s==null&&(s=new Map,this._hyphenCache.set(e,s)),s.set(a,o)}}async loadPattern(e){let n=await Pbt(Object.assign({"./patterns/af.ts":T(()=>Fn(()=>import("./af-Cp38c8Xu.1762932289438.js"),[]),"./patterns/af.ts"),"./patterns/as.ts":T(()=>Fn(()=>import("./as-BRA2d3pp.1762932289438.js"),[]),"./patterns/as.ts"),"./patterns/be.ts":T(()=>Fn(()=>import("./be-DuPPDo85.1762932289438.js"),[]),"./patterns/be.ts"),"./patterns/bg.ts":T(()=>Fn(()=>import("./bg-CREWvG4t.1762932289438.js"),[]),"./patterns/bg.ts"),"./patterns/bn.ts":T(()=>Fn(()=>import("./bn-D2KtSTkr.1762932289438.js"),[]),"./patterns/bn.ts"),"./patterns/ca.ts":T(()=>Fn(()=>import("./ca-4YYrF7D4.1762932289438.js"),[]),"./patterns/ca.ts"),"./patterns/cop.ts":T(()=>Fn(()=>import("./cop-C8rmq-mf.1762932289438.js"),[]),"./patterns/cop.ts"),"./patterns/cs.ts":T(()=>Fn(()=>import("./cs-D-GFbZkE.1762932289438.js"),[]),"./patterns/cs.ts"),"./patterns/cu.ts":T(()=>Fn(()=>import("./cu-B6XjYaXV.1762932289438.js"),[]),"./patterns/cu.ts"),"./patterns/cy.ts":T(()=>Fn(()=>import("./cy-Dz9q6g42.1762932289438.js"),[]),"./patterns/cy.ts"),"./patterns/da.ts":T(()=>Fn(()=>import("./da-C6piIYvN.1762932289438.js"),[]),"./patterns/da.ts"),"./patterns/de-1901.ts":T(()=>Fn(()=>import("./de-1901-BlrbOJIy.1762932289438.js"),[]),"./patterns/de-1901.ts"),"./patterns/de-1996.ts":T(()=>Fn(()=>import("./de-1996-DJBaU2Ij.1762932289438.js"),[]),"./patterns/de-1996.ts"),"./patterns/de-ch-1901.ts":T(()=>Fn(()=>import("./de-ch-1901-CD9ndUrR.1762932289438.js"),[]),"./patterns/de-ch-1901.ts"),"./patterns/el-monoton.ts":T(()=>Fn(()=>import("./el-monoton-C7Dj3t8L.1762932289438.js"),[]),"./patterns/el-monoton.ts"),"./patterns/el-polyton.ts":T(()=>Fn(()=>import("./el-polyton-3hQ3_5V8.1762932289438.js"),[]),"./patterns/el-polyton.ts"),"./patterns/en-gb.ts":T(()=>Fn(()=>import("./en-gb-BJlV3ZpD.1762932289438.js"),[]),"./patterns/en-gb.ts"),"./patterns/en-us.ts":T(()=>Promise.resolve().then(()=>Mbt),"./patterns/en-us.ts"),"./patterns/es.ts":T(()=>Fn(()=>import("./es-DVBhSqkX.1762932289438.js"),[]),"./patterns/es.ts"),"./patterns/et.ts":T(()=>Fn(()=>import("./et-Db4qA7uM.1762932289438.js"),[]),"./patterns/et.ts"),"./patterns/eu.ts":T(()=>Fn(()=>import("./eu-Cks5q4oj.1762932289438.js"),[]),"./patterns/eu.ts"),"./patterns/fi.ts":T(()=>Fn(()=>import("./fi-CloSDd5R.1762932289438.js"),[]),"./patterns/fi.ts"),"./patterns/fr.ts":T(()=>Fn(()=>import("./fr-B1BYHADY.1762932289438.js"),[]),"./patterns/fr.ts"),"./patterns/fur.ts":T(()=>Fn(()=>import("./fur-CBBh0qht.1762932289438.js"),[]),"./patterns/fur.ts"),"./patterns/ga.ts":T(()=>Fn(()=>import("./ga-BcR3t3dJ.1762932289438.js"),[]),"./patterns/ga.ts"),"./patterns/gl.ts":T(()=>Fn(()=>import("./gl-BBvFm_J1.1762932289438.js"),[]),"./patterns/gl.ts"),"./patterns/grc.ts":T(()=>Fn(()=>import("./grc-C45HXf-r.1762932289438.js"),[]),"./patterns/grc.ts"),"./patterns/gu.ts":T(()=>Fn(()=>import("./gu-wLi0mXrk.1762932289438.js"),[]),"./patterns/gu.ts"),"./patterns/hi.ts":T(()=>Fn(()=>import("./hi-0oXXR9W5.1762932289438.js"),[]),"./patterns/hi.ts"),"./patterns/hr.ts":T(()=>Fn(()=>import("./hr-qQvmVP7S.1762932289438.js"),[]),"./patterns/hr.ts"),"./patterns/hsb.ts":T(()=>Fn(()=>import("./hsb-Cfm_aA_B.1762932289438.js"),[]),"./patterns/hsb.ts"),"./patterns/hu.ts":T(()=>Fn(()=>import("./hu-DX3GX0Md.1762932289438.js"),[]),"./patterns/hu.ts"),"./patterns/hy.ts":T(()=>Fn(()=>import("./hy-CQNr6JSB.1762932289438.js"),[]),"./patterns/hy.ts"),"./patterns/ia.ts":T(()=>Fn(()=>import("./ia-C6a-e-Dj.1762932289438.js"),[]),"./patterns/ia.ts"),"./patterns/id.ts":T(()=>Fn(()=>import("./id-Dz9P_puV.1762932289438.js"),[]),"./patterns/id.ts"),"./patterns/is.ts":T(()=>Fn(()=>import("./is-i5pSEnjg.1762932289438.js"),[]),"./patterns/is.ts"),"./patterns/it.ts":T(()=>Fn(()=>import("./it-DW0whi0u.1762932289438.js"),[]),"./patterns/it.ts"),"./patterns/ka.ts":T(()=>Fn(()=>import("./ka-BLB-V1lz.1762932289438.js"),[]),"./patterns/ka.ts"),"./patterns/kmr.ts":T(()=>Fn(()=>import("./kmr-B-KiPlp3.1762932289438.js"),[]),"./patterns/kmr.ts"),"./patterns/kn.ts":T(()=>Fn(()=>import("./kn-DO8F4Tga.1762932289438.js"),[]),"./patterns/kn.ts"),"./patterns/la-x-classic.ts":T(()=>Fn(()=>import("./la-x-classic-DfZknpxy.1762932289438.js"),[]),"./patterns/la-x-classic.ts"),"./patterns/la-x-liturgic.ts":T(()=>Fn(()=>import("./la-x-liturgic-DTe6oXWw.1762932289438.js"),[]),"./patterns/la-x-liturgic.ts"),"./patterns/la.ts":T(()=>Fn(()=>import("./la-DHKd_s9q.1762932289438.js"),[]),"./patterns/la.ts"),"./patterns/lt.ts":T(()=>Fn(()=>import("./lt-DtlA9rsC.1762932289438.js"),[]),"./patterns/lt.ts"),"./patterns/lv.ts":T(()=>Fn(()=>import("./lv-DXaKRahI.1762932289438.js"),[]),"./patterns/lv.ts"),"./patterns/ml.ts":T(()=>Fn(()=>import("./ml-BGEScgvb.1762932289438.js"),[]),"./patterns/ml.ts"),"./patterns/mn-cyrl-x-lmc.ts":T(()=>Fn(()=>import("./mn-cyrl-x-lmc-BGezHEbR.1762932289438.js"),[]),"./patterns/mn-cyrl-x-lmc.ts"),"./patterns/mn-cyrl.ts":T(()=>Fn(()=>import("./mn-cyrl-BhdxkmdX.1762932289438.js"),[]),"./patterns/mn-cyrl.ts"),"./patterns/mr.ts":T(()=>Fn(()=>import("./mr-DEKWXvtC.1762932289438.js"),[]),"./patterns/mr.ts"),"./patterns/mul-ethi.ts":T(()=>Fn(()=>import("./mul-ethi-BJCO9BlO.1762932289438.js"),[]),"./patterns/mul-ethi.ts"),"./patterns/nb.ts":T(()=>Fn(()=>import("./nb-DXDxUDDo.1762932289438.js"),[]),"./patterns/nb.ts"),"./patterns/nl.ts":T(()=>Fn(()=>import("./nl-DVAPWIGp.1762932289438.js"),[]),"./patterns/nl.ts"),"./patterns/nn.ts":T(()=>Fn(()=>import("./nn-U4EJzxc1.1762932289438.js"),[]),"./patterns/nn.ts"),"./patterns/no.ts":T(()=>Fn(()=>import("./no-CYxBnhIW.1762932289438.js"),[]),"./patterns/no.ts"),"./patterns/oc.ts":T(()=>Fn(()=>import("./oc-DsUOXMQD.1762932289438.js"),[]),"./patterns/oc.ts"),"./patterns/or.ts":T(()=>Fn(()=>import("./or-CKqO0QN6.1762932289438.js"),[]),"./patterns/or.ts"),"./patterns/pa.ts":T(()=>Fn(()=>import("./pa-C289aRic.1762932289438.js"),[]),"./patterns/pa.ts"),"./patterns/pi.ts":T(()=>Fn(()=>import("./pi-BCynSWdr.1762932289438.js"),[]),"./patterns/pi.ts"),"./patterns/pl.ts":T(()=>Fn(()=>import("./pl-Dc8CHLY1.1762932289438.js"),[]),"./patterns/pl.ts"),"./patterns/pms.ts":T(()=>Fn(()=>import("./pms-D7eF7JvK.1762932289438.js"),[]),"./patterns/pms.ts"),"./patterns/pt.ts":T(()=>Fn(()=>import("./pt-BIKGx1hO.1762932289438.js"),[]),"./patterns/pt.ts"),"./patterns/rm.ts":T(()=>Fn(()=>import("./rm-CtXRfXwR.1762932289438.js"),[]),"./patterns/rm.ts"),"./patterns/ro.ts":T(()=>Fn(()=>import("./ro-Dgc3hCQP.1762932289438.js"),[]),"./patterns/ro.ts"),"./patterns/ru.ts":T(()=>Fn(()=>import("./ru-CfO_VOSH.1762932289438.js"),[]),"./patterns/ru.ts"),"./patterns/sa.ts":T(()=>Fn(()=>import("./sa-Ci_yq_nB.1762932289438.js"),[]),"./patterns/sa.ts"),"./patterns/sh-cyrl.ts":T(()=>Fn(()=>import("./sh-cyrl-B2Lh5Alp.1762932289438.js"),[]),"./patterns/sh-cyrl.ts"),"./patterns/sh-latn.ts":T(()=>Fn(()=>import("./sh-latn-B7Pprjwx.1762932289438.js"),[]),"./patterns/sh-latn.ts"),"./patterns/sk.ts":T(()=>Fn(()=>import("./sk-CertwDVR.1762932289438.js"),[]),"./patterns/sk.ts"),"./patterns/sl.ts":T(()=>Fn(()=>import("./sl-BDe1PmyZ.1762932289438.js"),[]),"./patterns/sl.ts"),"./patterns/sr-cyrl.ts":T(()=>Fn(()=>import("./sr-cyrl-Dw0eEBrg.1762932289438.js"),[]),"./patterns/sr-cyrl.ts"),"./patterns/sv.ts":T(()=>Fn(()=>import("./sv-BVAzsIUi.1762932289438.js"),[]),"./patterns/sv.ts"),"./patterns/ta.ts":T(()=>Fn(()=>import("./ta-Cai0wUPn.1762932289438.js"),[]),"./patterns/ta.ts"),"./patterns/te.ts":T(()=>Fn(()=>import("./te-DKbqLYh4.1762932289438.js"),[]),"./patterns/te.ts"),"./patterns/th.ts":T(()=>Fn(()=>import("./th-DJ6gR5Ug.1762932289438.js"),[]),"./patterns/th.ts"),"./patterns/tk.ts":T(()=>Fn(()=>import("./tk-DNRkC-pL.1762932289438.js"),[]),"./patterns/tk.ts"),"./patterns/tr.ts":T(()=>Fn(()=>import("./tr-BRmPg68h.1762932289438.js"),[]),"./patterns/tr.ts"),"./patterns/uk.ts":T(()=>Fn(()=>import("./uk-BS0jT5id.1762932289438.js"),[]),"./patterns/uk.ts"),"./patterns/zh-latn-pinyin.ts":T(()=>Fn(()=>import("./zh-latn-pinyin-UC2Ykr4P.1762932289438.js"),[]),"./patterns/zh-latn-pinyin.ts")}),`./patterns/${e}.ts`,3);n=n[obe(e)],this._patterns.set(e,lz(n)),this._loadExceptionsToCache(e,n)}fetchHyphenCache(e){return this._hyphenCache.get(e)}hasPattern(e){return this._patterns.has(e)}hyphenate(e,n){let r=this._hyphenCache.get(n);if(r!=null&&r.has(e))return r.get(e);if(!this._patterns.has(n))throw new Error(`Language pattern not found for ${n}, please load pattern before hyphenating`);const{levelsTable:i,pattern:a}=this._patterns.get(n),o=new Array(e.length+1).fill(0),s=`.${e.toLocaleLowerCase()}.`.split(""),[l,u]=sbe(s);let c,d,h,f,m,g,p=-1,v,_,C;for(;(c=l()).length>0;)for(p++,u()&&p--,h=a,v=lbe(c),_=v[0],C=v[1];(d=_())&&h[d]!==void 0;)if(f=h[d],h=f[0],m=f[1],h===void 0&&(h={},m=f),!C()&&m!==void 0){g=i[m];for(let y=0;y<g.length;y++)o[p+y]=Math.max(+g[y],o[p+y])}o[0]=o[1]=o[o.length-1]=o[o.length-2]=0;let S="";for(let y=0;y<o.length;y++)S+=(o[y]%2===1?"-":"")+e.charAt(y);r==null&&(r=new Map,this._hyphenCache.set(n,r));const b=S.split("-");return r.set(e,b),b}dispose(){this._patterns.clear(),this._hyphenCache.clear()}};T(uz,"Hyphen"),q(uz,"_instance",null);let Tbt=uz;jJ(2);const Lbt=jJ(3);function jJ(t){if(typeof t!="number"||Number.isNaN(t)||t<1||t===Number.POSITIVE_INFINITY)throw new Error("`"+t+"` is not a valid argument for `n-gram`");return e;function e(n){const r=[];if(n==null)return r;const i=typeof n.slice=="function"?n:String(n);let a=i.length-t+1;if(a<1)return r;for(;a--;)r[a]=i.slice(a,a+t);return r}}T(jJ,"nGram");const xbt=/\s+/g,Obt=/[\t\n\v\f\r ]+/g;function cbe(t,e){e?typeof e=="string"&&(e={style:e}):e={};const n=e.preserveLineEndings?dbe:hbe;return String(t).replace(e.style==="html"?Obt:xbt,e.trim?fbe(n):n)}T(cbe,"collapseWhiteSpace");function dbe(t){const e=/\r?\n|\r/.exec(t);return e?e[0]:" "}T(dbe,"replaceLineEnding");function hbe(){return" "}T(hbe,"replaceSpace");function fbe(t){return e;function e(n,r,i){return r===0||r+n.length===i.length?"":t(n)}}T(fbe,"trimFactory");const mbe={}.hasOwnProperty;function gbe(t){return t==null?"":cbe(String(t).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}T(gbe,"clean");function pbe(t){return Lbt(" "+gbe(t)+" ")}T(pbe,"trigrams");function vbe(t){const e=pbe(t),n={};let r=-1;for(;++r<e.length;)mbe.call(n,e[r])?n[e[r]]++:n[e[r]]=1;return n}T(vbe,"asDictionary");function _be(t){const e=vbe(t),n=[];let r;for(r in e)mbe.call(e,r)&&n.push([r,e[r]]);return n.sort(Cbe),n}T(_be,"asTuples");function Cbe(t,e){return t[1]-e[1]}T(Cbe,"sort$1");const Nbt={cmn:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]|\uD81B[\uDFE2\uDFE3\uDFF0\uDFF1]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]/g,Latin:/[A-Za-z\u00AA\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uAB66-\uAB69\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A]|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1C80-\u1C88\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69F\uFE2E\uFE2F]|\uD838[\uDC30-\uDC6D\uDC8F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u0870-\u088E\u0890\u0891\u0898-\u08E1\u08E3-\u08FF\uFB50-\uFBC2\uFBD3-\uFD3D\uFD40-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E\uDEFD-\uDEFF]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,ben:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE]/g,Devanagari:/[\u0900-\u0950\u0955-\u0963\u0966-\u097F\uA8E0-\uA8FF]|\uD806[\uDF00-\uDF09]/g,jpn:/[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[\u3400-\u4DB5\u4E00-\u9FAF]/g,jav:/[\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE\uA9DF]/g,kor:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,tel:/[\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C7F]/g,tam:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]|\uD807[\uDFC0-\uDFF1\uDFFF]/g,guj:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF]/g,kan:/[\u0C80-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3]/g,mal:/[\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F]/g,mya:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,pan:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76]/g,amh:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]/g,tha:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,sin:/[\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,ell:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]/g},VN={Latin:{spa:" de|de |os | la| a |la | y |ón |ión|es |ere|rec|ien|o a|der|ció|cho|ech|en |a p|ent|a l|aci|el |na |ona|e d| co|as |da | to|al |ene| en|tod| pe|e l| el|ho |nte| su|per|a t|ad | ti|ers|tie| se|rso|son|e s| pr|o d|oda|te |cia|n d| es|dad|ida| in|ne |est|ion|cio|s d|con|a e| po|men| li|n e|nci|res|su |to |tra| re| lo|tad| na|los|a s| o |ia |que| pa|rá |pro| un|s y|ual|s e|lib|nac|do |ra |er |a d|ue | qu|e e|sta|nal|ar |nes|ica|a c|ser|or |ter|se |por|cci|io |del|l d|des|ado|les|one|a a|ndi| so| cu|s p|ale|s n|ame|par|ici|oci|una|ber|s t|rta|com| di|dos|e a|imi|o s|e c|ert|las|o p|ant|dic|nto| al|ara|ibe|enc|o e|s l|cas| as|e p|ten|ali|o t|soc|y l|n c|nta|so |tos|y a|ria|n t|die|a u| fu|no |l p|ial|qui|dis|s o|hos|gua|igu| ig| ca|sar|l t| ma|l e|pre| ac|tiv|s a|re |nad|vid|era| tr|ier|cua|n p|ta |cla|ade|bre|s s|esa|ntr|ecc|a i| le|lid|das|d d|ido|ari|ind|ada|nda|fun|mie|ca |tic|eli|y d|nid|e i|odo|ios|o y|esp|iva|y e|mat|bli|r a|drá|tri|cti|tal|rim|ont|erá|us |sus|end|pen|tor|ito|ond|ori|uie|lig|n a|ist|rac|lar|rse|tar|mo |omo|ibr|n l|edi|med| me|nio|a y|eda|isf|lo |aso|l m|ias|ico|lic|ple|ste|act|tec|ote|rot|ele|ura| ni|ie |adi|u p|seg|s i|un |und|a n|lqu|alq|o i|inc|sti| si|n s|ern",eng:"the| th| an|he |nd |ion|and| to|to |tio| of|on |of | in|al |ati|or |ght|igh|rig| ri|ne |ent|one|ll |is |as |ver|ed | be|e r|in |t t|all|eve|ht | or|ery|s t|ty | ev|e h|yon| ha|ryo|e a|be |his| fr|ng |d t|has| sh|ing| hi|sha| pr| co| re|hal|nal|y a|s a|n t|ce |men|ree|fre|e s|l b|nat|for|ts |nt |n a|ity|ry |her|nce|ect|d i| pe|pro|n o|cti| fo|e e|ly |es | no|ona|ny |any|er |re |f t|e o| de|s o| wi|ter|nte|e i|ons| en| ar|res|ers|y t|per|d f| a | on|ith|l a|e t|oci|soc|lit| as| se|dom|edo|eed|nti|s e|t o|oth|wit| di|equ|t a|ted|st |y o|int|e p| ma| so| na|l o|e c|ch |d a|enc|th |are|ns |ic | un| fu|tat|ial|cia| ac|hts|nit|qua| eq| al|om |e w|d o|f h|ali|ote|n e| wh|r t|sta|ge |thi|o a|tit|ual|an |te |ess| ch|le |ary|e f|by | by|y i|tec|uni|o t|o o| li|no | la|s r| su|inc|led|rot|con| pu| he|ere|imi|r a|ntr| st| ot|eli|age|dis|s d|tle|itl|hou|son|duc|edu| wo|ate|ble|ces|at | at| fa|com|ive|o s|eme|o e|aw |law|tra|und|pen|nde|unt|oun|n s|s f|f a|tho|ms | is|act|cie|cat|uca| ed|anc|wor|ral|t i| me|o f|ily|pri|ren|ose|s c|en |d n|l c|ful|rar|nta|nst| ag|l p|min|din|sec|y e| tr|rso|ich|hic|whi|cou|ern|uri|r o|tic|iti|igi|lig|rat|rth|t f|oms|rit|d r|ee |e b|era|rou|se |ay |rs | ho|abl|e u",por:"de | de| se|ão |os |to |em | e |do |o d| di|er |ito|eit|ser|ent|ção| a |dir|ire|rei|o s|ade|dad|uma|as |no |e d| to|nte| co|o t|tod| ou|men|que|s e|man| pr| in| qu|es | te|hum|odo|e a|da | hu|ano|te |al |tem|o e|s d|ida|m d| pe| re|o a|ou |r h|e s|cia|a e| li|o p| es|res| do| da| à |ual| em| su|açã|dos|a p|tra|est|ia |con|pro|ar |e p|is | na|rá |qua|a d| pa|com|ais|o c|ame|erá| po|uer|sta|ber|ter| o |ess|ra |e e|das|o à|nto|nal|o o|a c|ido|rda|erd| as|nci|sua|ona|des|ibe|lib|e t|ado|s n|ua |s t|ue | so|ica|ma |lqu|alq|tos|m s|a l|per|ada|oci|soc|cio|a n|par|aci|s a|pre|ont|m o|ura|a s| um|ion|e o|or |e r|pel|nta|ntr|a i|io |nac|ênc|str|ali|ria|nst| tr|a q|int|o n|a o|ca |ela|uçã|lid|e l| at|sen|ese|r d|s p|egu|seg|vid|pri|sso|ém |ime|tic|dis|raç|eci|ara| ca|nid|tru|ões|ass|seu|por|a a|m p| ex|so |r i|eçã|teç|ote|rot| le| ma|ing|a t|ran|era|rio|l d|eli|ça |sti| ne|cid|ern|utr|out|r e|e c|tad|gua|igu| ig| os|s o|ruç|ins|çõe|ios| fa|e n|sse| no|re |art|r p|rar|u p|inc|lei|cas|ico|uém|gué|ngu|nin| ni|gur|la |pen|nça|na |içã|ião|cie|ist|sem|ta |ele|e f|om |tro| ao|rel|m a|s s|tar|eda|ied|uni|e m|s i|a f|ias| cu| ac|r a|á a|rem|ei |omo|rec|for|s f|esc|ant|à s| vi|o q|ver|a u|nda|und|fun",ind:"an |ang|ng | da|ak | pe|ata| se| ke| me|dan| di| be|ber|kan|ran|hak|per|yan| ya|nga|nya|gan| at|ara| ha|eng|asa|ora|men|n p|n k|erh|rha|n d|ya |ap |at |as |tan|n b|ala|a d| or|a s|san|tas|eti|uk |pen|g b|set|ntu|n y|tia|iap|k m|eba|aan| un|n s|tuk|k a|p o|am |lam| ma|unt| de|ter|bas|beb|dak|end|i d|pun|mem|tau|dal|ama|keb|aka|ika|n m| ba|di |ma | sa|den|au |nda|n h|eri| ti|ela|k d|un |n a|ebe|ana|ah |ra |ida|uka| te|al |ada|ri |ole|tid|ngg|lak|leh|dap|a p|dil|g d|ena|eh |gar|na |ert|apa|um |tu |atu|a m|sam|ila|har|n t|asi|ban|erl|t d|bat|uat|ta |lan|adi|h d|neg| ne|kum|mas|nan|pat|aha| in|l d|emp|sem|rus|sua|ser|uan|era|ari|erb|kat|man|a b|g s|rta|ai |nny|n u|ung|ndi|han|uku|huk| hu|sa |ers|in | la|ka | su|ann|car|kes|aku|dip|i s|a a|erk|n i|lai|rga|aru|k h|i m|rka|a u|us |nak|emb|gga|nta|iba| pu|ind|s p|ent|mel|ina|min|ian|dar|ni |rma|lua|rik|ndu|lin|sia|rbu|g p|k s|da |aya|ese|u d|ega|nas|ar |ipe|yar|sya|ik |aga| ta|ain|ua |arg|uar|iny|pem|ut |si |dun|eor|seo|rak|ngs|ami|kel|ini|g t|dik|mer|emu|aks|rat|uru|ewa|il |enu|any|kep|pel|asu|rli|ia |dir|jam|mba|mat|pan|g m|ses|sar|das|kuk|bol|ili|u k|gsa|u p|a k|ern|ant|raa|t p|ema|mua|idi|did|t s|i k|rin|erm|esu|ger|elu|nja|enj|ga |dit",fra:" de|es |de |ion|nt |tio|et |ne |on | et|ent|le |oit|e d| la|e p|la |it | à |t d|roi|dro| dr| le|té |e s|ati|te |re | to|s d|men|tou|e l|ns | pe| co|son|que| au| so|e a|onn|out| un| qu| sa| pr|ute|eme| l’|t à| a |e e|con|des| pa|ue |ers|e c| li|a d|per|ont|s e|t l|les|ts |tre|s l|ant| ou|cti|rso|ou |ce |ux |à l|nne|ons|ité|en |un | en|er |une|n d|sa |lle| in|nte|e t| se|lib|res|a l|ire| d’| re|é d|nat|iqu|ur |r l|t a|s s|aux|par|nal|a p|ans|dan|qui|t p| dé|pro|s p|air| ne| fo|ert|s a|nce|au |ui |ect|du |ond|ale|lit| po|san| ch|és | na|us |com|our|ali|tra| ce|al |e o|e n|rté|ber|ibe|tes|r d|e r|its| di|êtr|pou|été|s c|à u|ell|int|fon|oci|soc|ut |ter| da|aut|ien|rai| do|iss|s n| ma|bli|ge |est|s o| du|ona|n p|pri|rs |éga| êt|ous|ens|ar |age|s t| su|cia|u d|cun|rat| es|ir |n c|e m| ét|t ê|a c| ac|ote|n t|ein| tr|a s|ndi|e q|sur|ée |ser|l n| pl|anc|lig|t s|n e|s i|t e| ég|ain|omm|act|ntr|tec|gal|ul | nu| vi|me |nda|ind|soi|st | te|pay|tat|era|il |rel|n a|dis|n s|pré|peu|rit|é e|t é|bre|sen|ill|l’a|d’a| mo|ass|lic|art| pu|abl|nta|t c|rot| on| lo|ure|l’e|ava|ten|nul|ivi|t i|ess|ys |ays| fa|ine|eur|rés|cla|tés|oir|eut|e f|utr|doi|ibr|ais|ins|éra|’en|iét|l e|s é|nté| ré|ssi| as|nse|ces|é a",deu:"en |er |der|ein| un|nd |und|ung|cht|ich| de|sch|ng | ge|ine|ech|gen|rec|che|ie | re|eit| au|ht |die| di| ha|ch | da|ver| zu|lic|t d|in |auf| ei| in| be|hen|nde|n d|uf |ede| ve|it |ten|n s|sei|at |jed| je| se|and|rei|s r|den|ter|ne |hat|t a|r h|zu |das|ode| od|as |es | an|fre|nge| we|n u|run| fr|ere|e u|lle|ner|nte|hei|ese| so|rde|wer|ige| al|ers|n g|hte|d d| st|n j|lei|all|n a|nen|ege|ent|bei|g d|erd|t u|ren|nsc|chu| gr|kei|ens|le |ben|aft|haf|cha|tli|ges|e s| si|men| vo|lun|em |r s|ion|te |len|gru|gun|tig|unt|uch|spr|n e|ft |ei |e f| wi| sc|r d|n n|geh|r g|dar|sta|erk| er|r e|sen|eic|gle| gl|lie|e e|tz |fen|n i|nie|f g|t w|des|chl|ite|ihe|eih|ies|ruc|st |ist|n w|h a|n z|e a| ni|ang|rf |arf|gem|ale|ati|on |he |t s|ach| na|end|n o|pru|ans|sse|ern|aat|taa|ehe|e d|hli|hre|int|tio|her|nsp|de |mei| ar|r a|ffe|e b|wie|erf|abe|hab|ndl|n v|sic|t i|han|ema|nat|ber|ied|geg|d s|nun|d f|ind| me|gke|igk|ieß| fa|igu|hul|r v|dig|rch|urc|dur| du|utz|hut|tra|aus|alt|bes|str|ell|ste|ger|r o|esc|e g|rbe|arb|ohn|r b|mit|d g|r w|ntl|sow|n h|nne|etz|raf|dlu| ih|lte|man|iem|erh|eru| is|dem|lan|rt |son|isc|eli|rel|n r|e i|rli|r i| mi|e m|ild|bil| bi|eme| en|ins|für| fü|gel|öff| öf|owi|ill|wil|e v|ric|f e",jav:"ng |an | ka|ang|ing|kan| sa|ak |lan| la|hak| pa| ha|ara|ne |abe| in|n k|ngg|ong|ane|nga|ant|won|uwo| an| uw|nin|ata|n u|en |ra |tan| da|ran|ana| ma|nth|ake|ben|beb|hi |ke |sab|nda| ng|adi|thi|nan|a k| ba|san|asa|ni |e h|e k|g k| ut|pan|awa| be|eba|gan|g p|dan| wa|bas|aka|dha|yan|sa |arb|man| di|wa |g d| na|g n|ban| tu|n s|ung|wen|g s|rbe|dar|dak|di |g u|ora|aya|be |ah |a s|eni| or|han|as | pr|a n|na |iya|a a|kar|at |a l|mar|uwe|duw|uta|und|n p|asi|pa | si|ala|n n| un|kab|oni|ya |i h|gar|g b|yat|tum|ta |n m|i k|apa|taw| li|ani| ke|al |ka |kal|ngk|ega| ne|nal|n i|g a|ggo|ina|we |ena|dad|iba|awi|aga|a p| ta|sar|adh|awe|and|uju|ind|min|sin|ndu|uwa|gge|n l|ggu|ngs|n b|a b|pra|iji|n a|ha | bi|kat|go | ku|e p|ron|kak|ngu|a u|gsa|war|nya|g t|pad|bis|k b|i w|ae |wae| nd|ali|a m|er |sak|e s|ku |liy|ama|i l|eh |isa|arg|n t|a d|kap|i s|ayo|gay| pe|ndh|bad|pri|neg|tow|uto|eda|bed|il |ih | ik|ur |k k|rta|art|i p|rga|lak|ami|ro |aro|yom|r k|e d|a w|kon|rib|eng|ger|g l|ras|dil| ti|k l|rap|mra|uma| pi|k h|n d|gaw|wat|ga |k n|ar |per| we|oma|k p|jro|ajr|saj|ase|ini|ken|saw|ona|nas|kas|h k|i t| um|tin|wo | me|aba|rak|pag|yar|sya|t k| te| mu|ngl| ni|i b|men|ate|a i|aku|ebu|a t| du|g m|owo|mat| lu|amp",vie:"ng |̣c |́c | qu|à | th|nh | ng|̣i |̀n |và| va| nh|uyê| ph|quy| ca|ền|yề|̀nh|̀i |̣t | ch|ó | tr|ngư|i n| gi|gươ|ời|ườ|́t | co|ượ| cu|ác|ự |ợc| kh| đư|đươ| tư|có| ha|ông|c t| đê|n t|i đ|ìn|̀u |cá|gia|́i |ọi|mọ| mo|ều|iệ|đề|u c|như|pha| ba| bi|ất|̉a |ủa|củ|hôn| đô|g t|́ q|̃ng| ti|tự|t c|̣n | la|n đ|n c|n n|hiê|ch |ay |hay| vi|ân | đi| na|bả| ho|do | do| tô| hi|ội|há|ị |nà|̀ t|ới|hân| mô|́p |àn|̣ d|́ch|̣p |̀o |ào|khô|́n |ột|mộ| hô|ia |ốc|c h|hữ|i v|g n|́ng|uố|quô|h t|ôn |ên |n v|nhâ|̣ t| bâ|i c|g v|̉ng|iế|c c|ật|thư|hư |ướ|̉n | vơ| cô|c đ| đo| sư|t t|ộc|ữn|vớ| vê|ả |̣ng|g đ|̉o |ảo|uậ| đa|bị|là|sự|bấ|hà|hộ|i t|ản|hươ|̀ng|tro|̉m |o v| mi|ể |ục|i h|ức|áp|g c|̃ h|iá|n b|̉i |a m|h c|côn|ện|ớc|hạ|độ| du| cư|a c|n h|tha|ã | xa|́o |áo|ín|̀y |g b| hư|g h|ong|ron|̀ c|cho|̀ n|mì|ực|h v|c b| lu|i b|ệ |ai |ế |̣ c|xã|kha|c q|iể|tộ|ối|đố|á |hoa|o h|h đ|cả|n l|họ|tiê|y t|̉ c|ại|án|̀ đ|oà|y đ|chi|̉ n|phâ|ề |thu|iên|dụ|o c|i m|luâ|c p|ốn|c l|́ c|ũn|cũ|c g|c n|qua|n g|c m|o n|ải|hả|́ t|ho |về| tâ| hơ|o t|ở |hứ|hì|viê|̀m |̉ t|đó|thô|ứ |cứ|hí|́nh|ày|ởn|ưở| bă|tri| ta|m v|c v|ợp|hợ|h m| nư|ết|thi|ặc|ngh|uy ",ita:" di|to | in|ion|la | de|di |re |e d|ne | e |zio|rit|a d|one|o d|ni |le |lla|itt|ess| al|iri|dir|tto|ent|ell|i i|del|ndi|ere|ind|o a| co|te |tà |ti |a s|uo |e e|gni|azi| pr|idu|ivi|duo|vid|div|ogn| og| es|i e| ha|all|ale|nte|e a|men|ser| su| ne|e l|za |i d|per|a p|ha | pe| un|con|no |sse|li |e i| o | so| li| la|pro|ia |o i|e p|o s|i s|in |ato|o h|na |e s|a l|e o|nza|ali|tti|o p|ta |so |ber|ibe|lib|o e|un | a | ri|ua |il | il|nto|pri|el | po|una|are|ame| qu|a c|ro |oni|nel|e n| ad|ual|gli|sua|ond| re|a a|i c|ri |o o|sta|ita|i o| le|ad |i a|ers|enz|ssi|à e|ità|gua|i p|e c|io | pa|ter|soc|nal|ona|naz|ist|cia|rso|ver|a e|i r|tat|lle|sia| si|rio|tra|che| se|rtà|ert|anz|eri|tut|à d|he | da|al |ant|qua|on |ari|o c| st|oci|er |dis|tri|si |ed | ed|ono| tu|ei |dei|uzi|com|att|a n|opr|rop|par|nes|i l|zza|ese|res|ien|son| eg|n c|ont|nti|pos|int|ico|rà |sun|ial|lit|sen|pre|tta|dev|nit|era|eve|ll |l i| l |nda|ina|non| no|o n|ria|str|d a|art|se |ssu|ica|raz|ett|sci|gio|ati|egu| na|i u|utt|ve | ma|do |e r|ssa|sa |a f|n p|fon| ch|d u|rim| fo|a t| sc|trà|otr|pot|n i| cu|l p|ra |ezz|a o|ini|sso|dic|ltr|uni|cie| ra|i n|ruz|tru|ste| is|der|l m|a r|pie|lia|est|dal|nta| at|tal|ntr| pu|nno|ann|ten|vit|a v",tur:" ve| ha|ve |ir |ler|hak| he|her|in |lar|r h|bir|ya |er |ak |kkı|akk|eti| ka| bi|eya|an |eri|iye|yet|ara|ek | ol|de |vey|ın |ır |nda|arı|esi|ını|dır| ta|tle|e h|ası|etl|e k| va|ı v|sın|ile|ne |rke|erk|ard|ine| sa|ınd|ini|k h|kın|ama|le |tin|rdı|var|a v| me|e m|na |sin|ere|k v| şa| bu|lan|kes|dir|rin|dan| ma|kı |mak|şah|da | te|mek| ge|nı | hi|nin|en |n h| se|lik|rle|ana|lma|e a|ı h|r ş|ill|si | de|aya|zdi|izd|aiz|hai|ret|hiç|ına| iş|e b| ba|kla|et | hü|rın|n k|ola|nma|e t| ya|eme|riy|n v|e i|a h|li |mil|eli|ket|ik |kar|irl|hür|im |evl|mes|e d|ahs|ma |rak|ala|let|lle|un | ed|rri|ürr|bu | mi|i v|dil| il| eş|n i|la |el |mal| mü| ko|e g|se | ki|mas|lek|mle|mem|n b|ili|e e|ser| iç|n s|din| di|es |mel|eke|tir|şit|eşi|r b|akl|yla|n m|len| ke|edi|oru|nde|re |ele|ni |tür|a k|eye|ık |ken|uğu| uy|eml|erd|ede|ame| gö|e s|i m|tim|i b|rde|rşı|arş|a s|it |t v|siy|ar |rme|est|bes|rbe|erb|te |alı| an|ndi|end|hsı|unm|rı |kor|nın| ce|maz|mse|ims|kim|iç | ay|a m|lam|ri |sız|a b|ade|n t|nam|lme|ilm|k g|il |tme|etm|r v|e v|n e|ğre|öğr| öğ|al |ıyl|olm|vle|şma|i s|ger|me | da|ind|lem|i o|may|cak|çin|içi|nun|kan|ye |e y|r t|az |ç k|ece|sı |eni| mu|ulu|und|den|lun| fa|şı |ahi|l v|r a|san|kat| so|enm| ev|iş ",pol:" pr|nie|pra| i |nia|ie |go |ani|raw|ia | po|ego| do|wie|iek|awo| ni|owi|ch |ek |do | ma|wo |a p|ści|ci |ej | cz| za| w |ych|ośc|rze|prz| ka|wa |eni| na| je|ażd|każ|ma |zło|czł|noś|o d|łow|y c|dy |żdy|i p|wol| lu|ny |oln| wy|stw| wo|ub |lub|lno|rod|k m|twa|dzi|na | sw|rzy|ają|ecz|czn|sta| sp|owa|o p|spo|i w|kie|a w|zys|obo|est|neg|ać |mi |cze|e w|nyc|nic|jak| ja|wsz| z |jeg|wan|ńst|o s|a i|awa|e p|yst|pos|pow| ró|o o|jąc|ony|nej|owo|dow|ów | ko|kol|aki|bez|rac|sze|iej| in|zen|pod|i i|ni | ro|cy |o w|zan|eńs|no |zne|a s|lwi|olw|ez |odn|rów|odz|o u|ne |i n|i k|czy| be|acj|wob|inn| ob|ówn|zie| ws|aln|orz|nik|o n|icz|zyn|łec|ołe|poł|aro|nar|a j|i z|tęp|stę|ien|cza|o z|ym |zec|ron|i l|ami| os|kra| kr|owe| od|ji |cji|mie|a z|bod|swo|dni|zes|ełn|peł|iu |edn|iko|a n|raj| st|odo|zna|wyc|em |lni|szy|wia|nym|ą p|ją |zeń|iec|pie|st |jes| to|sob|któ|ale|y w|ieg|och|du |ini|war|zaw|nny|roz|i o|wej|ię |się| si|nau| or|o r|kor|e s|pop|zas|niu|z p|owy|w k|ywa| ta|ymi|hro|chr| oc|jed|ki |o t|ogo|oby|ran|any|oso|a o|tór| kt|w z|dne|to |tan|h i|nan|ejs|ada|a k|iem|aw |h p|wni|ucz|ora|a d| wł|ian| dz| mo|e m|awi|ć s|gan|zez|mu |taw|dst|wią|w c|y p|kow|o j|i m|y s|bow|kog|by |j o|ier|mow|sza|b o|ju |yna",swh:"a k| ya|na |wa |ya | ku|a m| na| ha|i y| wa|a h|a n|ana|aki|ki |la |hak| ka|kwa|tu | kw| ma|li |a a|ila|i k| ki|ni |a w|ali|a u| an| mt|ke |mtu|a y|ake|ati|kil|ka |ika|kat|ili|te |ote|we |a s|e k|ia |zi |u a|za |azi|ifa|ma |yak|yo |i n|ama| yo|au | au|e a|kut|amb|o y|ha |asi|fa |u w|hal|ara|sha|ish|ata|ayo| as|tik|u k| za|i z|ina|u n|mba|uhu|hi |hur|cha|yot|ru |uru|wat| ch|eri|ngi|e y|u y|i a|aif|tai| sh|nay|chi|ra |ani| bi| uh|sa | hi|i h|awa|iwa|a j|ti |mu |o k|ja |kan|uli|iwe|any|i w| am|e n|end|atu|kaz|o h|ria|her|she|shi|nch| nc|uta|ye |wak|ii |ele|ami|adh|eza| wo|iki|oja|moj|jam| ja|aka|bu |kam|kul|mat|fan|a l|agu|ind|ne |iri|lim|wen|da |kup|uto|i m|a b|ini|wan|bil| ta|sta|dha| sa| ni|ao | hu|e w|wot| zi|rik|kuf|aji|ta |wez|nya|har| ye|e m|si |lin| ut|ine|gin|ing| la|a t|zim|imu|ima|tak|e b|uni|ibu|azo|kos|yan|nye|uba|ari|ahi|nde|asa|ri |ham|dhi|eli|hir|ush|pat| nd|kus|maa|di |nda|oa |bar|bo |mbo|oka|tok|ndw|ala|wal| si|uzi|hii|tah|i s|o n|liw| el|upa|zin|hag|a c|ndi|ais|mai|eny|mwe|aa |ewe| al|ndo|e h|lo |umi|kuh|jib|osa|mam|a z|ufu|dwa|u i| in|iyo|nyi| ny|u m|sil|ang|o w|guz|zwa|uwa|kuw|hil|saw|uch|ufa|laz|und|aha|ua | mw|bal| lo|o l|a i|del|nun|anu|nji| ba|lik|le |uku|i i",sun:"an |na |eun|ng | ka|ana| sa| di|ang|ung|un |nga|ak | ha|keu| ba|a b| an|nu |hak| bo|anu|ata|nan|a h|ina| je|aha|ga |ah |awa|jeu| na|ara|ing|oga|bog|gan| ng|asa|kan|a s|ha |ae |bae|n k|a k| pa|a p|sah|g s|sar| si|sin|a n|din|n s|ma | at|aga|a a|tan| ku| ma|n a|san|man|wa |lah|pan|taw|u d|ra |ari|eu | pi|gar| pe|kat| te|n p|sa |per|a d|a m|e b|aan|ban|ran|ala|ike|n n|kum| ti|ama|a j|pik|ima|n d|al |at | ja|ila|ta |nda|bas|rim|teu|n b|eba|beb|udu|aya|ika|ngg|nag|kab|rta|art| me|ola|k n|uma|atu|aba|g k|adi|aca| po|ngt|nar|una|ate|oh |boh|awe|di |tin|asi|uku|n h|dan|aka|iba|car|sac|gaw|are|ent|um |jen|abe|u s|dil|pol|ar |ku |kud|u m|upa|han| hu|ake|bar|ur |hna|aru|h s|a t|sak|wat|kaw| so|n t|pa |mpa|du |ngk|g d|ena|huk| mi|mas|ngs|ti |n j|ka |aku|ren|n m| ta|law|isa| tu|und|a u|h a|tay|ula|aja|ali|nte|gsa|en |gam| wa|ieu|ere|k h|jal|h b|il |dit|ngu|lan|asu|yun|ayu|gta|k d|a r|g n|mah|uda|dip|kas|rup|geu| be|ter|sej|min|ri |ern|u p|k k|amp|ura|kal|e a|k a|ut |g b|nak|bis| bi|k p|tes|end|we |h k|tun|uan| un| de|u n|h t|ksa|u k|ian|wil|u b|ona|nas|uka|rak|eje| se|ami| ke|war| ra| ie|k j|eh |ya |lma|alm|pen|tur|wan|lak|h j|g a|ean|up |rga|arg|r k|u t| ne|deu|gal|gke|e t|h p| ge|g t| da|i n",ron:" de|re | în|și |are|de | și|te |ul | sa|rep|e d|ea |ept|dre|tul|e a| dr|ie |în |ptu|le |ate|la |e p| la| pe|ori| pr|ce |e s| or|au |tat| ar|ice|ii |or |a s| fi| a |ric|ale|per| co|nă |ă a|rea|ers|i s| li|sau| ca|rso|ent|lor|ați|al |a d|e o|men|l l|ei |e c|pri|ană| ac| re|uri|ber|ibe|lib|a p|oan|soa| in|i l|ter| al| să|tea|lă |car|tăț|să |tur|i a|i d|nal| ni|ri |ita|e î|e ș|se |ilo|in |ia |ție|pre|fie|ții|ăți|con|ere|e f|a o|eni|nte| nu| se|ace|ire|ici| cu|i î|a c|i n|a l|pen|ui |nu |ări|ală|ona|l d|ră |ert|ril| su|ntr|n c|rin| as|ni |i o|eri|tă |că |ile|ă d|i c|e n|ele|sa | mo|i p|fi |sal|tor|va |oci|soc|nic|pro| un| tr|est|inț|a î|uni|n m|a a| di|ecu|lui|sta|lit| po|tre|gal|ega|oat|ra |act|ă î|leg|u d|e l|nde|int|a f|n a| so|naț|ara|i f|uie|iun| to|tar|ste|ces|rar|at | ce|eme|i ș|rec|dep| că| o | îm|bui|ebu|reb| eg| na|mân|ntu|ili|văț|ând|iei|r ș|bil|pli|od |mod|res|din|e e|cți| au|ali|ă p|ă f|împ|ial|cia|ion|ă c|dec|nta| om|ită| fa|ță |cu |tra|ăță|nvă|înv|ât |ite|i i|lic| pu| ex|riv|tri|rot|ța |ți |l c|rta|imi|ulu|țio|ică|lig|rel|ta |cla|t î|nt |nit|e m|ânt|ămâ|țăm|ger|nța|ru |tru|gur|u c|bli|abi|ată|art|par|ar |rim|iva|l ș| sc|ime|nim|era|sup|ind|u a|dic|ic | st| va|ini|igi|e r",hau:"da | da|in |a k|ya |a d| ya|an |a a| ko| wa|na | a |sa | ha|kin|wan|ta | ba|a s| ta|a y|a h|wa |ko | na|n d|a t|ba |ma |n a| ma|iya|hak|asa| sa|ar |ata|yan| za|akk|a w|ama| ka|i d|iki|a m|owa|a b| ci| mu| sh|anc|nci|kow|a z|ai |nsa|a c|shi| ƙa|cik|ne |ana|i k|ci |kki|e d|a ƙ| ku|su |n y|uma|ka |uwa|kum|hi |a n|utu| yi|ani| ga| ra|aka|ali|mut|‘ya|tar| do|ɗan|ars| ‘y|sam|ƙas|nda|ane|man|tum|i a|yi |ni | du|ada| su|and|a g|cin| ad|a i|ke | ɗa|n k|yin|um |e m| ab|ins|nan|ki |mi |ami|yar|min|oka|re |i b|kam|mas|i y|mat|za |ann|en |aɗa| ja|m n|li |duk|dai|e s|n s|ra |n w|n h|aik| ai|ida|ga |san|rsa|aba|sar|ce |nin| la|o n|ban|nna|kan|abi|una|dam|me |ara|i m|hal|a r|add|are|n j|abu| ne|zai|a ɗ|wat|ari| ƙu|on |ans|waɗ|ame|ake|kar|din|zam| fa|a l|ƙun|buw|r d| hu|oki|kok|a ‘|u d|n t|abb|aur| id|rin|yak|dok|kiy|ray|jam|n b|ubu|bub|n m|i s| an|am |ili|bba|omi|dan|gam|ayu|ash|nce|tsa|ayi|har|yya|ika|bin|han|kko|rsu|aif|imi|fa | am|i i|dom| ki|yuw|dun|o a|fan|n ƙ|aya|fi |n r|she|uni|bay|riy|n ‘|sab| iy|bat|tab|aga| ir|mar|o w|i w|sha|awa| ak|uns|unc|tun|u k| il|ɗin|mfa|amf|aci|ewa|kas|lin|n n|don|n i|ure|ifi|lai|dda| ts|iri|aye|un |tan|wad|gwa|afi| ay|ace|mba|amb|aid|nta|ant|war|lim|kya| al|aɗi",fuv:"de | e |e n| ha|nde|la | wa|ina| ka|akk| nd|ɗo |na | in|e e|hak|al |di |i h|kke|ii |um |ko |ala|ndi| mu| ne|lla| jo|wal|eɗɗ|neɗ|all|mum| fo|kal|jog|ke |aaw|taa| ko|eed|ɗɗo|aa | le|ji |ade|aad|laa|o k| ng|e h| ta|re |ogi|a j|e w|e m|nnd|gii|e l|ley|awa|aag|ede|waa|e k|gu |e d| go|gal|ɓe |ti |fot|aan|eyd|ydi|ɗe |ee | re|ol |oto|i e|oti|m e|taw|nga|a i|kee|to |ann|eji|am |ni | wo|een|goo|eej|e f| he|enn|gol|agu|pot| po|dee|ay | fa|ka |a k|ond|oot| de|a f|o f|a n|wa |maa|ota|le |hay|i k|o n|ngo|e j|o t| ja|ñaa|hee|nka|i w|awi|a w|ngu|der| to|e t|dim|i n|fof|i f|e g|tee|naa|aak| do|too|a e|ndo|ren|dii|oor|er |o e|i m|of | sa| so|gaa|ani|kam| ma| ña|o w|i l|u m|kaa|ima|dir| ba|igg|lig| li|aar| ɓe|o i|e s| o |e r|so |ooj| nj| la|won|awo|dow|woo|faw|and|e i|ore|nge|nan|are|a t|tin|aam| mo|ɗee|ita|ira|aaɗ|e p|nng|ma |ank|yan|nda|oo |e ɓ|njo|ude|nee|e y|e a|je | ya|en |ine|iin| di|ral| na|ɗi |und| hu|inn|ŋde|aŋd|jaŋ|a d|den| fe| te|go | su|a h|haa|tal|eɗe|e b|y g|baa|tde| yi|ɗɗa|o h|iiɗ|ow | da|do |l n|alt| ho|l e|aga|mii| aa|a a|ama|nna|m t| ke|edd|oga|m w|l m|o j|aɗe|ree|oje|yee| no|ele|ne |ago| pa| al|guu|wi |ge |aaɓ|daa|ind|dew|i j|jey| je|ent|tan|o ɗ|geɗ| ge|ñee|a l| ɗu|kko|mak|a s| ga",bos:" pr| i |je |rav|na |ma |pra| na|ima| sv|a s|da |a p|vo |nje|ko |ako|anj|o i| po|avo|ja |e s|a i|ti | im| da| u |sva|no |ju | za|o n|va |i p|ili|vak|li | ko|ne | il|koj| ne|nja| dr|ost| sl|van|im |i s|u s|i i|a n|ava|ije|a u| bi|stv|se |a d|om |jed|bod|obo|lob|slo| se| ra|ih |sti| ob| je|pri|enj|dru|u i|o d|iti|voj|raz|ova|dje| os|e i|lo |e p| nj|uje|i d|bra|tre| tr| su|jeg|i n|u z|a k|og |u p|oje|cij|reb|a o|a b|lju|i u|ran|mij|ni |nos|jen|ba |edn|svo| iz|jel|pro|e d|žav|bit| ni|i o|sta|a z|avn|vje| ka|bil|ovo|a j|aju|ist|nih|tu |red|gov| od|e o|oji| sm|lje|o k|ilo|ji |aci|e u|e n|pre|o p|eba|u o|su |vim|ičn| sa|u n| dj|a t|ija|čno|jem|rža|drž|elj|stu|dna|odn|eni|za |iva|olj|šti|nom|em |du |vno|smi|jer|e b|de |pos|m i| do|u d|nak|a r|obr| mo|lja|nim|ego| kr|tit|kri|ve |nju|an |iko|nik|nu |i m|nog|eno|sno| st|e k|tup|rug|ka |oda|riv|vol|aln|m s|itu|ašt|zaš|ani|sam|akv|ovi|osn|rod|aro| mi|tva|dno|nst|jan|ak |ite|vič|rad|u m| ta|dst|tiv|nac|rim|kon|ku |odu|živ|amo|tvo|tel|pod|g p|nov|ina|nar| vj|o s|i b|oj | ov|ave|vu |ans|oja|zov|azo|ude|bud| bu|e t|i v|din|edi|nic|tan|nap|mje| is|jal|slu|pun|eds|o o|zak|jav|i k|m p|tno|ivo|ere|nič|m n|jim|kak|ada|vni|ugi| ro|mov|ven|pol|to |te | vr",hrv:" pr| i |ma |rav|ima|pra|je |na | sv|ti | na|a p|vo |vat|ko |a s|nje| po|anj|avo|o i|tko| im|a i|sva|no |i p|e s|ja |o n| za|ju |ili| u |va |li | bi|ne |i s|atk| il|iti|da | ne| ko| dr| sl|van|nja|koj|ije| ra|ova| os|u s|i i|ost|bod|obo|lob|slo|pri|a n|om |jed|ati|ih |im |voj|ava| ob|stv|se | mo|i u|bit|dru| je| se|dje|i o|enj| ka|i n|sti|lo |u i|svo|mij|ni |e i|raz|a o|e n|bra|o p| su|a b|u p|ran|a k|og |i d|bil|ako|e p|a d|edn|aju|mor|eni| nj|iva|jel|žav| ni|a z|avn|ovi|eno|ra |oje|a j| da|a u|ora|jeg| iz|nih|rža|drž|oji|sno|nit|jen|vje|ilo|cij|oda|nim| dj|pro|tit|u z|e d|red|nom|jem| od|nos|sta|nov|osn| sm|lje|o s|ji |ovo|stu|pos|vim| do|odn|rad|ist| sa|e o|tu |nju|em |gov|o d|rod|i m|jer|aci|oj |pre|m i|nak|dna|a r|lju|uje|e m|obr|za |olj|ve |o o|m s|an |nu |du |aro|vno|smi|aln|e k|o k|i b|e u|tva|u u|tup|rug|dno|u o|su |u d|ka |vol| ta|ija|itu|šti|ašt|zaš|itk|živ|ani|sam|elj| st|sob|oso|nar|akv|ada| mi|te |ona|nst|jan|lja|i v|ite|ego|elo|rim|ku |odu|amo|tvo|tel|jim|pod|nog|vi |ina| vj|to |e b|ans|zov|azo|ak | sk|edi|tan|oju|pun|pot|oti|kon|zak|i k|m p|tno|ivo|ere|nič|kak|vni|ugi| ro|mov|ven|štv| be|ara|kla|ave|u b|avi|oja|jal|u m|dni|mje|rak|din|ći |juč|klj|nic|u k|nap|obi|atn",nld:"en |an |de | de| he|ing|cht| en|der|van| va|ng |een|et |ech| ge| ee|n e|rec| re|n v|n d|nde|ver| be|er |ede|den| op|het|n i| te|lij|gen|zij| zi|ht |ijk|eli| in|t o| ve|op |and|ten|ke |ijn|e v|jn |ied| on|eft| ie|sch|n z|n o|aan|ft |eid|te |oor| we|ond|eef|ere|hee|id |in |rde|n w|t r|aar|rij|ord|wor|ens|of | of|hei|n g| vr| vo| aa|r h|hte| wo|n h|al |nd |vri|e o|ren|le |or |n a|jke|lle|eni|n b|ij |e e|g v| st|ige|die|e g|men|nge|t h|e b| za|e s|om |t e|ati|wel|erk|sta|ers| al| om|n t|zal|dig| me|ste|voo|ter|gin|re |ege|ge |g e|bes|nat| na|eke|che|ig |gel|nie|nst|e a|nig|est|e w|erw|r d|end|ona|d v|jhe|ijh|d e|ele| di|ie | do|del|n n|at |it | da|tie|e r|elk|ich|jk |vol|ijd|tel|min|len|str|lin|n s|per|t d|han| zo|hap|cha|wet| to|ven| ni|aat|ion|tio|taa|lke|eze|met|ard|waa|uit|sti|e n|doo|pen|eve|el |toe|ale|ien|ach|st |ns | wa|eme|nin|e d|bij| gr|n m|p v|esc|t w|ont|ite|man|ema| ma|nal|g o|rin|hed|t a|t v|beg|all|ijs|wij|rwi|e h| bi|gro|p d|rmi|erm|her|oon| pe|eit|kin|t z|iet|iem|e i|gem|igi| an|d o|r e|ete|e m|js | hu|oep|g z|edi|arb|zen|tin|ron|daa|teg|g t|raf|tra|eri|soo|nsc|t b| er|lan| la|ern|ar |lit|zon|d z|ze |dez|eho|d m|tig|loo|mee|ger|ali|gev|ije|ezi|gez|nli|l v|tij|eer| ar",srp:" pr| i |rav|na |pra| na|ma | sv|ima|da |ja |a p|vo |je |ko |ti |avo| po|a i|ako|a s| za| u |ju |o i| im|nje|i p|va |sva|anj|vak| da|o n|nja|e s|ost| ko|a n|li |ili|ne |om | ne|i s| sl| il| dr|no |koj|u s|ava| ra|og |slo|im |enj|sti|bod|obo|lob|iti|a o|stv|i u|a d|ni |jed|u p|pri|edn| bi|i i|a k|o d|sta|ih |dru|a u| je| os| ni|nos|pro|aju|i o|ran| de| su|u i|se |van|ova|i d|cij| ob|uje|red|žav|e i|i n|voj|e p|a j|dna| se| od|ve | ka|eni|rža|drž|a z|avn|aci|ovo|u u|m i|oja| iz|lja| nj|ija|u z|e o|rod|jen|lje|e b|raz|jan|lju|svo|za |gov|ičn| st|nov|sno|osn|du |ji |pre| tr|su |vu |odn|a b|jeg|nim|nih|tu |tit|šti|ku |nom|bit|e d|me |iko|čno|oji|lo |vno|nik|e n|đen|ika|bez|ara|de |u o|vim|nak| sa|u n|riv|ave|an |olj|vol| kr|o p|sme|e k|nog| ov|e u|tva|bra|rug|reb|tre|u d|oda| mo| vr|vlj|avl|ego|jav|del|m s|kri|o k|ašt|zaš|nju| sm|ani| li|dno|eđu|aln|la |akv|oj |šen|kom|stu|ugi|avi|a r|ka |rad|oju|tan|odi|vič|tav|itu|ude|bud| bu|pot|odu|živ|ere|m n|tvo|ilo|bil|aro|ovi|por|eno|štv|nac|ove|m p|tup|pos|rem|dni|ba |nst|a t|ast|iva|e m|vre|nu |beđ|ist|pun|en |te |dst|rot|zak|ao |kao|i k|juć|o s|st |sam|ter|nar| me|i m|kol|e r|ušt|ruš|ver|kak| be|i b|kla|ada|eba|ena|ona| on|tvu|ans| do|rak|slu",ckb:" he| û |ên | bi| ma|na |in |maf| di|an |xwe| xw|ku | ku|kes| de| ji|her|kir|iya|ya |rin|iri|ji |bi |es | ne|ye |yên|e b|er |afê|tin|ke | an|iyê|eye|rke|erk|we | be|e h|de | we|hey|fê |i b|yê |ina| bê| li|diy|ber|li |re |î û|nê |ê d| se| ci|eke|di |wî | na|î y|af |ete|hem| wî|sti| ki|rî |kî |î a|yek|n d|kar| te|ne |yî |i h|e k|tî |tê |a w|e d|î b|s m|ast|n b|be |yan|ser|tew|net| tu| ew|hev|aza|ara|û b|n k|adi|ev |zad| az|ras|est|anê| ya|n h|n û|wed| tê|wek|bat|bo | bo| yê|st |n n|ê k|dan|ê h|ema|ê b|iye|î h|din|bûn|r k|ekî| me|par|ûna|ta |wle|ewl|î m| ke|nav|ewe|man|ê t|dî |û m|mû |emû|a m|ika|e û|n w|a x|ê m|e n| ta|ela|n j|eyê|n x|civ|wey|ana| re|khe|ekh|bik|kê |jî |f h|erî| pa|îna|bin|erb|vak|iva|a s| ni|cih|vê |e j|ari| pê|î d|nên|ike|e t|a k|ê x| ye|n a|eyî|n e|ama|bê |ar |ewa|atê|bes|rbe|av |ibe|ist|mî |tem|awa|are|hî |geh|nge|ing|nek|nûn|anû|qan| qa|vî |rti|uke|tuk| şe|eza| da|u d|û a|f û|edi| ra|tu |tiy|tên| mi|xeb| ge|hîn| hî|etê|î j|stî|mal|bib|ra |i d|e m|mam|i a|nik|i m|î k| wi|ûn | ko|a ş|ê j|riy|lat|wel|e e|ine|ane|û h|în |a d|siy|end|aye| za|ija|a n|î n|ek |tek|yet|mbe|emb|û d|rov|iro|mir|eba| xe|mên| ên| hu|nîn|anî|t û|ten|n m|dem|ê û|enê|te |art|i r| jî|u j|ekê|dew",yor:" ní|ti |ọ́ |ní | lá| ẹ̀|àn |ẹ́ |kan|tí | tí|an |ẹ̀ |tọ́|ọ̀ | ẹn|ọn |wọn|í ẹ|bí |áti|lát|̀tọ|ẹ̀t| gb| àt| àw|n l|àti| a |lẹ̀|ẹnì| ó |kọ̀| ló|ì k|sí |ọ̀k| kọ|ra |ni |àbí|tàb| tà|nì | sí|̀ka|ọ̀ọ|n ẹ|àwọ|n t|ó n|̀ọ̀|ílẹ|orí|ló | wọ|tó |dè |ìyà|ún | tó| or|í ì|èdè|kò |‐èd|̀‐è|ẹ̀‐|ríl|í ó|rẹ̀|í à| sì|yàn|gbo|ṣe | kò|í a| rẹ| jẹ|sì | bá|ràn| ṣe|wọ́|nìy|fún| fú|n à|ba |n n|gbà|gbọ|jẹ́|un |ìí | kí|gba|ènì| èn|bá |́ l|a k| ka|dọ̀|kí | òm|in | fi|bò |fi |bẹ́|ọdọ|bọd|́ s|hun|nú |nín|wà |ira|nir|òmì|ìgb| ìg|́ t|ẹni|ínú|i l|ìni|mìn|bà |áà |i ì|ohu| oh|í i|ara| ti|bo |ò l| pé|rú |írà| ọ̀|í ò|ogb|kọ́|pọ̀|ó b|à t|i n|lọ́|ẹ́n| ìb|yìí|gbé|gẹ́|bog|óò |yóò| yó|n k|pé |dá |́wọ|ọ́w|à l|í k| wà|n o|jọ | ir|ọ̀r|ú ì|́ à|ó s|i t|ṣẹ́|̀kọ|í t|yé |lè | lè|fin|àbò| lọ|à n|ùjọ|wùj|irú|ó j| ar|í w|a w| ìm|ú à|̀ t|òfi| òf| àà|fẹ́|àwù|́ni|wù |ìír|mìí| mì|láì| yì|í g|ọ́n|n s|i ẹ|ẹ̀k|àgb|ígb|níg|a n| kú|láà|í o|náà| ná|kẹ́|ípa|níp|ìn | ìk|bé |i g|ọmọ| ọm|i à|iṣẹ|̀ à|ìmọ|n a|n f|jẹ |yí |́ ọ|ó d|́ ò| dá| mú|ààb|ábẹ|láb|ìbá|ò g|jú |i o|lú | èt|̀ ẹ|tọ̀|de |̀ n|i ò| ìy|kàn|́n | bí| iṣ|mọ̀|e ẹ|̀ l| fà|èyí| èy| ìd|mọ́|dé |̀ k|́ p|ò t|mú | fẹ| ìj|rí |ìkẹ|nìk|ìní|n ì|n è|sìn|è ẹ| i |rọ̀| àn|́ b|ùn |́gb|ọ́g|dọ́| dọ|í n|rin|̀ j",uzn:"ish|an |lar|ga |ir | bi|ar | va|da |iga| hu|va |bir|sh |uqu|quq|huq| ha|shi| bo|r b|gan|a e|ida| ta|ini|lis|adi|ng |dir|lik|iy |ili|oʻl|har|ari| oʻ|uqi|ins|lan|hi |ing|dan|nin|kin| yo|son|nso| in| mu|on |qig| ma|ega|r i|boʻ| eg|oʻz|ni |gad|ash|i b|ki |oki|ila|yok|a b|n b|osh|ala|at |in |r h|erk| er|lga| qa|rki|h h| sh|i h|ara|n m| ba|nis|ik |igi|lig|bos|ri |qil|a t|bil|las|eti| et|n o|ani|nli|kla|i v|a q|a h|a o|yat| qo|im |a s|i m|iya|atl|oli|osi|siy|qla|cha|til| ol|ati|a y|mas|qar|inl|lat| qi|taʼ|ham|gi |ib |ʻli|mla|h v|ʻz |hun|n e|mum| da| bu| to|un |mki|umk|sha|tla|ris|iro|ha |rch|bar|iri|oya|ali| be|i o|asi|aro| ke|i t|rla| te|arc|hda|shu|tis|n h|tga| sa| xa|rak|lin|ada|ola|imo|hqa|shq|li | tu|aml|lla|sid| as|nid|a i| ki|ch |n t|nda|k b|era|siz|or |hla|a m|r v|eng|ten|mat|mda|amd|lim|miy|y t|ayo|i a|ino|ilg|tni| is|ana|as |ema| em|ech|a a|tar|kat|aka|ak |rat| de|aza|ill| si| so|gʻi|uql|n q|oda|ʼli|aʼl|nik| ni|tda|uch|gin|a u|him|uni|sit|ay |qon| ja|atn|kim|h k|hec| he|ʻzi|lak|ker|ikl| ch|liy|lli|chi|ur |zar|shl|rig|irl|dam|koh|iko|a d|am |n v|rti|tib|yot|tal|chu| uc|sla|rin|sos|aso| un|na | ka|muh|dig|asl|lma|ra |bu |ush|xal|ʻlg|i k|ekl|r d|qat|aga|i q|oiy|mil| mi|qa |i s|jin",zlm:"an |ang| ke|ng | se| da|ada|ara|dan| pe|ran| be|ak |ber|hak|ata|ala|a s|ah |nya| me|da |per|n s|ya | di|kan|lah|n k|aan|gan|dal|pad|kep|a p|n d|erh|eba|nga|yan|rha| ya|nda|ora|tia|asa| ha|ama|epa| or|iap|ap |a b| at| ma|eti|ra |tau|n a|set|au | ba|pa | ad|n p|tan|p o|eng|a d|men|apa|h b|h d|dak|man|a a|ter| te|k k| sa|n b|ana|g a|end|leh|ole|a k|am |n y|aka|eh |lam|bas|beb|n m| un|pen|sa |keb|sam|n t| ti|ela|san|car|uan|ma |di |han|ega|ban|eri|at |sia|a m|ika|kes|ian|gar|seb|ta |mas|und|neg|nan|ngs|i d|erl|na |epe|emb|bar| la|atu|kla|pem|mem|emu|eca|sec|ngg|nny|any|bol|al |aha|gsa|ebe|ind|akl|n h|erk|ung|ena| bo|a t| ap|ers| de|in |tu |pun|as |agi|ann|g b|bag| ne|ain|hen| he|era|rat|sem| su|adi|lan|g s|dia|mat|ses|iad| ta|iha|g t|tin|k m|k h|i k|gi |i s|ing|uka|enu|den|lai|k d|ert|ti |rka|aja|rga|lua|ker|mel|dun|ndu|lin|rli|nak|ntu|esi|aya|un |uat|jua| in|rma|erm|ai |emp|kem|ri |dil|ua |uk |h m|l d|g m|mba|kat|ese|tik|ni |ini| an|mpu|ka |dar|mar|rja|erj|arg|u k|sua| ol|esa|dap|ar |g u|si |ent|g d| pu|awa|iri|dir|sal|gam|mbe|n i|har|a h|raa|ema|tar|i a|saa|ira|ari|pel|jar|laj|uju|tuj|rak|ura|uar|elu|t d|unt|il |wen|asi|gga|ipa|ksa|tuk|ula|sek|sas|ibu|rta|sep|rsa|nta|ati|ila|mua|yar",ibo:"a n|e n|ke | na| ọ |na | bụ|ọ b|nwe|nye|ere|re | n |ya |la | nk|ye | nw| ma|e ọ| ya| ik|a o|a ọ|ma |ụla|bụl|ike| on|nke|e i|a m|ony|ụ n|kik|iki|bụ | a |ka |wer|ta |i n|do |di | nd| ga|a a|e a|a i|he |kwa| ok| ob|e o|hi |any|ga‐|ha |dụ | mm|ndi|ọ n|wa |rụ |e m|che|a e|oke|wu |aka|ite|o n|a g|odo|bod|obo| dị| ez|ara|we | ih|a‐e|hị |ri |n o|zi |mma|chi|dị |ghi|ụta|iri|ihe| an| oh|a y|gba|ụ ọ| ọz| ak| iw|nya|te |iwu| nt|ro |oro|e ị|zọ |ezi|me |e e|u n|her|ohe| si|a‐a|i m|ala|ụ i| ka|akw| in|ghị|kpe|n e|pụt| e |i i|i o|ide|inw|ụ o|hụ |ahụ|weg|ra |o i|kpa|adụ|mad|si |sit|a s| me|sor|i ọ|gid|edo|u o|e y|n a| en|tar|ozu|toz|bi |be |ụ m|ụrụ|ọrụ| ọr|mak|uso|ama|de |ị o| ọn|ọzọ|chị|egh|enw|apụ|ru | to|i a|a ụ|osi|rị |wet|hed|nch| nc| eb| al|nọd|ọnọ|uru|sir| kw|yer|ji |eny| mk|ịrị|eta| us|tu |ọ d|u ọ| o |ba | mb|ọdụ|ịch| ch|a d|pa | ag|kwe| ha|a u|e s|mkp|n u|nta|ebe|n ọ|o m|kwu|nkw|nwa|obi| ịk|esi|i e|nha| nh|le |ile|nil| ni|eme| og|e k|n i|chọ|o y|asị|otu| ot|ram|u m|ịgh|dịg|zu |nọ |mba| gb|e g|ị m|ọch|ich|pe |agb|i ị|uch|zụz|uny|wun|ọrọ| nn|na‐| di|ge |oge|iji| ij|ọha| ọh|ikp|egi|meg|o o|ụhụ|hụh|mah|n ụ|ọ g|ọta|ekọ|ị n|kwụ|agh|ụmụ|ban|kpu|okp| ah|ịkp|a k|ime| im|zụ |ụzụ|ọzụ| ụz|lit|ali|nat",ceb:"sa | sa|ng |ang| ka| pa|an |ga |nga| ma|pag| ng|on |a p|od |kat|ay | an|g m|a k|ug |ana| ug|ung|ata|ngo|atu|n s|ala|san|d s|tun|ag |a m|god|g s|a a|a s|g k|g p|yon|n u|ong|tag|usa|pan|ing|una|mat|g u|mga| mg|y k| us|ali|syo| o |aga|tan|iya|kin|dun|nay|man|nan|a i| na|ina|nsa|isa|bis|a b|adu| ad|n n| bi|asy|asa|lay|awa|lan|non|a n|nas|o s|al |agp|lin|nal|wal| wa|ili|was|gaw|han| iy| ki|nah|ban|nag|yan|ahi|n k|gan| gi|him| di|a u| ba| un|ini|ama|ya |kas|asu|n a|g a|gka|agk|kan|ags|agt|l n|a g|kag| ta|imo|uns|sam| su|g n|n o|gal|kal|og |taw|aho|uka|gpa|ipo|ika|o p|a t| og| si|gsa|g t|aba|ano|gla|y s|o a|aki|hat|kau|sud|gpi|a w|g i|aha|ot |ran|i s|n m|bal|lip|gon|ud | ga|li |uba|ig |ara|g d|na |kab|aka|gba|ngl|ayo| la| hu|a h|ati|d a|d n| pu| in|uga|ok |ihi|d u|ma |may|awo|agb|ami|say|apa|pod|uha|t n|agh|buh|ins|ad | ub| bu|at |iin|a d|ip |uta|sal|hon|wo |ho |tra|lak|iko|as |aod|bah|mo |aug|ona|dil|gik|sos|lih|pin| pi|k s|nin|oon|abu|la |rab|hun| ti|mah|tar|t s|ngb|uma|hin|bat|lao|mak|it | at|s s|sno|asn|ni |aan|ahu| hi|agi|n p|inu|ulo|y p| ni|iha|mag|o n|duk|edu| ed|a e|til|ura|tin|kip|agl|gay|g h|g b|ato|ghi|nab|kon|in |ter|o u|o o|yal|sya|osy| so|tik| re| tr|hig|a o|ha |but|pak|aya",tgl:"ng |ang| pa|an |sa | ka| sa|at | ma| ng|apa|ala|ata|g p|pan|pag|ay | an| na|ara| at|tan|a p|pat|n a| ba|ga |awa|rap|kar|g k|aya|lan|g m|n n|g b|nga|mga| mg|a k|na |ama|n s|a a|gan|yan|gka| ta|may|tao|agk|asa|man|aka|ao |y m|ana|g a|nan|aha|kan|y k|baw|kal|a m|g n|ing|wat| y |t t|pam|a n|o y|ban| la|ali|san|wal|mag| o |g i|aga|lay|any|g s|in |nya|yon|kas|a s|isa|una|ong|aan|kat|t p| wa|ina|tay|ya |on |o m|ila|ag |nta|t n|aba|ili| ay|o a| ga|no |a i|gal|ant|han|t s|kap|kak|lah|ari|agt|agp|ran|g l|lin|as |lal|gaw|ans|to |ito| it|hay|wa |t m| is|pap|mam|nsa|ahi|nag|bat|lip|gta| di|gay|gpa|pin| si|ngk|ung|aki|y n|iti|tat|ano|yaa|y s|mal|hat|kai|sal|hin|uma|mak|di |agi|pun|ihi|a l|i a|ira|gga|nah|s n|ap | ha|usa|nin|o p|gin|ipu|ika|ngi|i n|lag|la |y p|ini|g t|uka|nap| tu|a g|tas|aru|ipa| ip|li |al |n o|a o|t k|alo| pi|sin|syo|asy|ita|aho|nar|par|o s|pak|t a|uha|sas|gsa|ags|kin|a h|iba|lit|ula|o n|nak|a t| bu|duk|kab|sam|g e|ain|ami|mas|lab|ani|kil|it | al|agb|buh|a b|g g|ba | ib|iyo|ri |yag|ad | da|edu| ed|anl|ma |ais|iga|mba|tun|ipi| ki|od |ayu| li|lih|sar|gi |g w|pah|wir|oob|loo|agg|nli|bay|map|git|mil|ok |hon|ngg|sah|iya|pas|g h|agl|tar|ngu|amb|uku|ayo|s a|p n|n m|rus|i m|l a|abu| aa",hun:"en | sz| va| a |és |min|ek | és| mi|jog| jo|an |ind|nek|sze|ság|nde|a v|den|oga|sza|val|ga |mél|ala|emé|gy |n a|van|zem|ele| me|egy|ély| eg|zab|tás| az|n s|bad|aba|ni |az |gye| el|ak | se|meg|sen|ény|ség|k j|yne|lyn| ne|ben|lam|tt |t a|et |agy|oz |hoz|vag|zet| te|n m|ez |nak|int|re |eté|tet|mel|tel|s a|em |ely|let|hez| al|s s| ki|ete|atá|z a| le|yen|es |ra |tés|ell|nt |sem|t s|len|nem|a s|ese|nki|enk|a m|ásá|i m|ban|kin|k m|szt| ál|ame|köz|k a|dsá|ads|ló | kö|ás |ly |on |ébe|tat|a t|n v|áll|mén| vé|nye|kül|lő |a n| cs|i é|ok |ész|ért|lla|lap|ágo|gok|nyi|tek| ke|nd |éte|ami|zés|yes|szo|t m|a a|het|fel|lat|lem|lle|el |z e|s e|k é|mbe|emb|elé|ot |lis|vet|kor|ág |olg| am|szá|ehe|leh|ogo|ott|ül |nte|éle|i v|ogy|hog| ho|kel|n k|tes|nlő|enl|ssá|áza|ház|ég |vel|ába|lek|ége| ha|a h|rés| fe|ány|del|elő|át |alá|art|tar|zto|zás|tő |yil|koz|tko|aló|s k|i e|árs|tár|mze|emz| ny|más|ett|ny |fej|ass|zas| há|d a|t é|is |ésé|ezé|téb| mu|áso|sít|lye|elm|éde|véd|ine|t k|os |it |izt|biz| bi|y a|m l|tot|a j|atk|nél|t n|ti | má|ai |lás|eve|nev|zte| bá|sel|ll |al |ere|n e|unk|mun|t e| ak|ife|kif|ako|s é| ér|ána| es|s t|got|sül| be|vál|csa|se |ése|ad |ges|tos|ja | gy|asz|ten|lmé| tá|eze|árm|bár|ess|l s|üle",azj:" və|və |ər |ir | hə| bi| hü| ol|üqu|hüq|quq|na |in |lar|hər|də | şə|bir|lər|lik|mal|r b|lma|r h| tə|əxs|şəx|ən |dir|uqu|una|an |ali|a m| ma|ikd|ini|r ş|dən|ar |ilə|qun|aq |ası| ya|mək|yət| mə| mü|kdi|əsi|ək |ilm|nin|ndə|olm|əti|ə y|sin|xs |nda|lmə|yyə|i v| qa| az|olu|iyy|ya |ind|zad|qla|ün |ni |lə |tin|n m|aza|arı|ət |n t|maq|lun|lıq|ə b|un |nun|q v|n h|dan|ın | et|tmə|ərə| öz|da |ə v| on|ə a|ına|ını|bil|a b|sı |il |əmi|ara|si | di|ə m|əri|rlə| va|ə h|etm|ığı|ama|dlı|adl|rin|bər|rın|n i|müd|nın| he|mas|ik |n a|dil|alı|irl|ələ|üda|sın|ınd|xsi|li |ə d|nə | bə|əya| in|ə i|lət| sə|nı | iş|anı|eç |heç|q h|eyn|ə e|dır| da|asi|rı |iş |ifa|lığ|i s|fiə|afi|daf| ed|məz|u v|kil| ha|ola|n v|əni|ır |uq |unm| bu| as|sia|osi|sos|ili|ıdı|lıd|nma|ıq |inə|əra|sil|xil|axi|dax|adə|man|a h|ə o|onu|a q|əz | ki|seç| se|ı h|min|lan|ədə|bu |raq|lı |ılı|al |ə q|r v|nla|hsi|əhs|təh|öz |ist| is|məs| əs|ina|ə t|ətl|a v|iə |n b|tər| ta| cə|edi|ala|kim|qu |i t|ulm|məh|n o|aya|ı o|ial| so|ill|siy| də|var|ins|mi |ğı |nik|r i|aql|k h|təm|tam|çün|üçü| üç|ğın|sas|əsa|z h|əmə|zam| za|sti|rəf|n e|r a|ild|həm|ıql|yan|may|n ə|mən|mil| mi|əqi|din|n d|tün| dö|miy|kah|ika| ni|fad|tif|l o|sər|yni| ey|ana|lən|am |ril|ayə|aşı",ces:" pr|ní | a | ne|prá|ráv|na |ost| po|ho | sv|o n| na|vo |neb|ávo|bo |ebo|nos|má | má|ažd|kaž| ka| ro|ch |dý |ždý|ti |ou |a s| př| za|ání|á p| je| v |svo|ého| st|ý m|sti|ně | by|obo|vob|ter|pro|ení|bod| zá| sp|í a|rod|kte|by |mu |u p|o p| ná|ván|jak| ja|a p|o v|í n|ová|oli|ví |spo|roz| kt|mi |í p|ny | ma|ím |i a|do | so|odn|áro|nár|li |né |tví|at |ých|a z| vy|byl|vol|en |ýt |být| bý|t s|tní|stn|o s|í b|to | do|své|vé |ran|ejn|zák|eho|jeh|nes|pří|mí |čin|kol|ají|sou| vš|ích|it |ným|ým |nu |hra|nou|u s|ému| k |du |žen|pod| ze|kla|a v|stv|pol|dní|eré|m p|stá|je |ci |ečn| ni|néh|a n|aké|áva|maj|em |rov|í m|ké |ole|nýc|ova| ve|ako| ta|i k|chr|och| oc|kon|i p|í v|smí|esm|kdo|st |i n|o z|ave|odu|bez| to|sta|ech|jí |o d|sob|se | se|í s|ými|i s| i |i v| vz|ním|pra|lně|při|tát|ste|a j|aby| ab| s |oln|a o|m n|čen|slu|řís| os|zem|mez| či|lní|áln|oci|jin| ji|y b|í z|y s|va |vše|t v|ovn|chn|děl|níc|leč| pl|vat| vo|vin|rav|vou|lad|inn|é v|anu|tej|u k|stu|est| tr|ky |ikd|nik|ivo|nit|zen|u o|ném|nez|iál|ího|len|ens|ože|oko|kéh|rac|ven|í k|e s|lán|ělá|zdě|vzd|t k|din|odi|tí | od|ré |tup|pov|pln|ště|ákl|nno|tak|erá|řed|o a|a t|res|jíc| mu|u z|rok| ob|čno|u a|y k|i j|é n|luš|ísl|oso|ciá|soc|níh|o j|cké",run:"ra |we |wa |e a| mu|a k|se | n | um| ku|ira|ash|tu |ntu|a i|mu |umu|mun|unt|ere|zwa|ege|ye |ora|teg|a n|a a|ing|ko | bi|sho|iri| ar| we|shi|aba|e n|ese|go |a m|o a|gu |uba|ngo|nga|hir| ca|ugu|obo|hob|za |ndi|ish|gih| at|ara|wes| kw|ger|ate|a b| ba| gu|e k|can|ama|ung|bor|u w|mwe|di | ab|nke|ke |kwi|ka |ank|yo |ezw|n u|na |iwe|e m|rez|ri |a g|gir| am|igi|e i|ro |a u|ngi|e b|ban| ak| in|ari|n i|hug|ihu|e u|riz|ang|nta| vy|ata| ub|and|aka|rwa| nt|kur|ta |iki|kan|iza|u b|ran|sha|o n|i n| ig|ivy| iv|ahi|bah|u n|ana| bu| as|aku|ga |uko|o u|ho | ka|ose|ubu|ako|guk|ite|o y|ba |i b|any|kir|o k|aho|iye|kub|amw|nye|aha| ng|o m|nya| it|re | im|o b|izw|kun|hin|e c|vyo|o i|vyi|ngu|uri|imi|imw|gin|ene|u m|zi |ha |kug|bur|uru|jwe| zi|u g|era|aga|ron|abi| y |e y| uk|gek|ani| gi|eye|ind|wo |u a|i a| ib|i i|ras|bat|gan|amb|n a|onk|rik|ne |ihe|agi|kor| ic|ze |tun|ibi|wub|nge|o z|tse|nka|he |rek|twa|gen|eko|mat|ber| ah|ni |ush|umw| bw|mak|bik|ury|yiw|bwo| nk|ma |no |kiz|uro|gis|aro|ika| ya|gus|y i|wir|ugi|uki| ki|a c|ryo|bir| ma| yi|iro|bwa|mur|eng|ukw|hat|tan|utu|wit|w i| mw|y a|mbe| ha|uza|ham|rah| is|irw|o v|umv|ura|eny|him|eka|bak|bun| ny|bo |yig|kuv|wab|key|eke|yer|vye|i y|ita|ya |a r| ko|kwa|o c",plt:"ny |na |ana| ny|a n|sy |y f|a a|aha|ra | ma|nan|n n|any|y n|a m|y m|y a| fi|an |tra|han|ara| fa| am|ka | ts| na|in |ami| mi|a t|olo|min|man|iza|lon| iz|fan| ol| ha| sy|aka|a i|reh|ay |ian|tsy|ina| ar|on |o a|etr|het|ona|y o|o h|zan|y t|a h|ala| hi|a f|y h|ehe|ira|a s|zo |y i|ndr|jo | jo|n j| an| az|ran|dia| dr|y s|fah|ena|ire|tan|dre| zo|mba| ka|m p|afa| di|n d|and|azo|zy |amp|ia |ren|iny|rah|y z|ry |ika|oan|ao |amb|lal|ho | ho|isy|ony|tsa|asa|a d|ha |fia|mis|ava|ray| pi|am |dra| to|rin| ta|ant|eo |zay|rai|tsi|itr|sa | fo| ra|van|ova|nen|azy| vo|mpi|ari|o f|tok|a k| ir|kan|oto|mah|ly |sia| la|n i|voa|haf|a r|ito|y k|oka|y r|y l|ano|ita|ene|its|ial|zon|aza|ain| re| as|fot|aro|fit|nat|nin|aly|har| ko|ham| no|fa |ary|atr|ila|ata|iha|nam|kon|oko| sa|elo|nja|anj|ive|isa|oa |dy |y d|o m|nto|ank|o n|otr|pan|fir|air|sir|ty |a v|sam|o s|tov|mit|rak|reo|o t|pia|tao| ao|no |y v|iar|a e|a z|hit|hoa| it|to |za |ton|eha|end|vy |idi|tin|ati|adi|lna|aln|rov|ban| za|nga|hah|oni|osi|sos|vah|ino|ity| at|hia|pir|ifa|omb|ame|era|vel|kar|va |tso|jak|fid|ifi|ais|o i|idy|la |ama|ba | pa|tot|ani|rar|mpa|haz|kam| eo| il|iva|aho|nao|n k|ato|lah|ovy| te|dro|lan|ela| mo| si|fin|miv|san|koa| he|aso| mb|sak|kav",qug:"ta | ka|ka |na |una|cha|ash|ari|a k|ana|pak|ish|ach|hka|shk|mi |kta|hay|man| ch|apa|ak |rin|ata|kun|har|akt|ita| ha|ami|lla| pa|ama|pas|shp| ma|tak|ayñ|yñi|in |sh |ina|uku|nka|chi|aka|a c|yta|kuy|all|tap|a h|kan| tu|ñit|tuk| ru|run|chu|an |pay|ayt|ris| ki|aku|hpa|ank|a p|kam| sh|nam|a s|uy |i k|ayp|nak|pi |nta|a m| li|ay |lia|hin|kaw|nap|ant|tam|a t|iri|nat| wa|y r|kay|aws| ya|n t|ypa|wsa|pa |lak|shi|a a|lli|iku|hu |n k|iak|yay|kis| al|shu|a w|ipa| sa| il|api|kas|yku|yac|kat|a r|huk|i c|wan|hik|a i|ill|ush| ti|ayk|hpi| ku|kac|say|hun|uya|ila|ika|yuy|pir|ich|mac|ima|a y|yll|ayl|i p|kin|a l| wi|kus| yu|lan|tan|llu|kpi| ta| pi|aya|la |yan|awa| ni|kak|lat|rik|war|ull|kll|li |ink|nch|un |akp|n s|may| ay|uch|i s|nac|sha|iki|kik|h m|ukt|pip|tin|n p|iya|nal|aki| ri|ura|tik|mak|ypi|i m|i w|n m|his|k i|riy|iwa|y h| hu|han|akl|k t|mas|pik|kap| ña|u t|nmi|nis|k a|i y|k l|kar| im|i i|wil|yma|aym|ksi|iks|uma| su|h k|has| ak|unk|huc|kir|anc|k m|pal|k k|ik |iñi| iñ|ma |n y|mun| mu|mam|tac|a n|i t|k r|sam|ian|asi|k h|was|ywa|iyt|llp|san|sum|ray|si |pan|nki|tar| ii|u k|ñik|uk |iña|kuk|wpa|awp|akk|a u|wat|uri| mi|yar|uyk|ayw|h c|ha |tay|rmi|arm|uta|las|yka|llk|kul|wiñ|ati|ska| ll|kit|n h|uti|kic|mat",mad:"an |eng|ng |ban| sa| ka|dha|ren| se| ba|ak | ha|adh|hak| dh|ang|se | pa|aba|a s|na |aga|ha | or|n s|ore|ara| ag|gad|are|ana|n o|ngg|ale|gan|a k|ala|dhu|tab|sar|ota|asa|eba| ot| ke|sab|ba |wi |uwi|abb|i h|huw|aan|n k|a b|bba| ta| ma|pan|hal|bas|ako|dhi|ra |kab|em |beb|ka |lak|gi |lem|g a|eka|n b|ama|nga|san|at |ong|ran|nge|a o|ggu|sa |a d|ane|n p|ken|par|aja|man|gar|ata|nek|apa| na|agi|abe| ga|e e|sal|a a|tan|g s|al |kal|gen|ta |i s|aka|e a|a p|a e| la| pe|nan| an|era|e d| e | be|n a| al|ena|uy |guy|n n|ate| bi|mas|e k|kat|uan|oan|kon|k k|a m|i d|g e|n t|g k|ada|koa|lan|ela| da|bad|ma |ne |as |lab|ega| mo|ar |car|one|i p|bi |kaa|bat|ri |on |pon| so|e b|le |ah |abi|ase|adi|epa| ep|k h|and|pam|te |ok |ste|aon|om |oko|aha|ari|ona|asi|ter| di|di |pad|e s|sad|yar|neg|ton|set|rga|ost|mos|gap|nda|a l|har|i k|ina| a | ng|kom|isa|si |a t|a h| kl|jan|daj|iga|hig|idh|hid|ndh|n m|ngs|tto|ett|arg|la |k b|ler|k d|nna| to|nao|n d|mat| ca|tad|bis|aya|epo|aen| po|bin|nya|kas|k s|n h|sya|nta|gsa|en |ant|n g|kar|i e|das|e t|e p|iba| pr|g p| ho| el|i a|hi |os |sao|uwa|tes| ja|nag|nas|lae|sia|t s|k o|nto|int|yat|arn|m p|duw|adu|eta| ko|i b|ni |g n|kla|rak|ame|mpo|jua|sok|aso|ggi|eja|pel|jam|ele| et|dil",nya:"ali|ndi|a m|a k| nd|wa |na | al|yen| ku|nth|ra |di |se |nse| mu|a n|thu|hu |nga| wa|la |mun|u a|unt|iye| ka|ce |ace| lo|a l|ang|e a| la| pa|liy|a u|ens| ma|idw|ons|dwa|e m|i n|ala|kha|lo |li |ira|era|ene|ga |ana|za |o m| mo|yo |o w| ci|we |dzi|ko |o l|and|dan|hal|zik|chi|oyo|pa |ner|ulu|ena|moy| um|a p| da|ape|kap|ka |iko| an|pen|a c|to |ito|hit|nch| nc|iri|lir|wac|umo|e k|lu |a a|aye| dz|kuk|a z|dwe|tha|mal| za|ing|ufu|mu |ro |ful| uf|o c|i d|lin|e l|zo |edw| zo|o a|mwa|u w|iro|o n|lan|amu|ere| mw|nzi|dza|alo|ri | li|fun|lid|gan|so | ca|kul|ofu|nso|o z|ulo|unz|o k|mul|lam|i c|san|a b|kwa| na|a d| a |una|u k|i l|nkh|ant|aku|ca |cit|oli|ipo|dip|ama|lac|wir|han|yan|osa|uli|tsa|i m|pon|kup|u d|ti |gwi|ukh|ung|hun|lon|ank|nda|iki|ina| ko|ao |diz|phu|ati|oma|i a|tsi|pat|iya|siy|kut| ya|zid|eze|ma |i k|mer|ome|mol|u n|u o|aph|ogw|izo|mba|sid|ku |sam|awi|adz| ad|izi|ula|say|e n|khu| kh|rez|vom|bvo|okh|lok|win|akh|o o| am| on|zir|map| zi|eza|ja |go |ngo|ika|its|ats|osi|gwe| co|isa|ya |haw|ani|o p|zi |ndu|kho|ezo|kir|uni|i u| ay|lal|gal|sa |bom| bo|ola|amb|wak|ha |ba |nja|anj|ban| ba|iza| bu|udz|ngw|bun|oye|o d|nal|kus|i p|i o|i y|wi | nt|e p| si|aka|ne |men|jir|nji|sed|ets|end|eka|uma|du ",zyb:"bou|iz |aeu|enz|eng|uz | bo|ih |oux|nz | di|ing|z g|ux |uq |dih|ngh| ca|ng |gen|ung|z c| mi|miz|ij |cae|z d| gi| de| ge|euq|you| ci|ngz|ouj|aen|uj | yi|ien|gya| gu|ngj|mbo| mb|zli|dae|gij|cin|ang|j d|nae| se| ba|z y|euz| cu|de |x m|oz |j g|ouz|x b|li |z b|h g| da| yo|nj |xna|oxn|rox| ro|h c|nzl|vei|yau|wz |z m|ix | si|i c|iq |gh |j b| cw|nda|yin| hi| nd|dan|vun|inh| ga|can|ei |cun|yie|q g|hoz|bau| li| gy|wyo|cwy|z h|gue|gz |gun|faz|unz|yen|uh |den|ciz| go|q c|gj | bi|ej |aej| fa|hin|zci| wn|j n|goz|gai|au |z s|q d| vu|h m|gva|hu |auj|ouq|az |h d|ya |uek|ci |nh |u d|ou |sou|jso|gjs|din|awz|enj| do|h s|eve|sev|z r|nq |sin|nhy|g g|g b|liz|kgy|ekg|sen|eix|wng|lij|ngq|bin|i d|ghc| ha|bae|hix|h y|j c|ghg|i b|ouh|en |n d|h f|j s|z v|j y|law|hci|anh|inz|q y|nei|anj|ozc|ez |enh|q s|aiq|uen|zsi|zda|hye|ujc|e c|siz|eiz|anz|g y|i g|q n|bie| ne| ae|giz|u c|hgy|g d|gda|ngd|cou| la|z l|auy|ai |in |iuz|zdi|jhu|ujh|yuz| du|j m| fu|cuz|eiq|g c|gzd| co|uyu|coz|zbi|biu| dw|i s|i n|aw |dun|yun|izy|daw| he|nho| ho|enq|x l|cie|q b|cij|uzl|x d|iuj|awj| ya|eij|dei|nde|sae|izc|wnq|wnh|sei|h b|aih|gzs|bwn|a d|u g|ngg|jca|e b|ran| ra|hcu| me|iet|van| bu|guh|hen|si |wnj| ve|u b|azl|inj|gak|gan|ozg|siu|yaw|i m",kin:"ra | ku|se | mu|a k|ntu|tu |nga|umu|ye | um|unt|mun|e n| gu|we |ira|a n| n |wa |ere|mu |ko |gom|a b|e a| ab|li |e k|mba|a a|e b|aba|ga |e u|ba |omb|o k| ba|a u|ose|u b|o a| cy|ash|eng| ag|kwi| bu|za |gih|ren|ndi| ub|ang|yo |aka|gu |igi| ib|a g|a m| nt|uli|o b|ama|ihu|e i|nta| ak|ago|ro |ora| ka|ugu|hug|di |iye|ban| am|cya|ku |ta | bw|and|sha|re | ig|gan|ubu|na | kw|obo| by| bi|a i|yan|ka |sho|kub|era|ese| we|kan|aga|hob|bor|ana|byo|ura|uru|ibi|rwa|wes|u w|no |uko|i m|mo |u a|ure|ili|uba|o n|uha|uga|n a| im|ish|bwa|bwo|wiy|ali|ber|ze |ne |ush|are|o i|u m|ger|bur|ran| ki| no|ane|bye| y |ege|teg|guh| uk|n i|rag|i a|ya |u g|e m|anz|bo |abo|gar|wo |y i|ho |age|ind|o m|eke|a s|ara|zir|ite|kug|kim|aci| as|u n|ani|kir|mbe| gi|yos|kur|ugo|gir|e c|iza|aho|i b|tur|ata|o u| se|u u|zo |i i|aha|nge|mwe|iro|akw|any|eza|uki|imi|o y|ate|u k|iki|atu|bat| in|go |tan|n u|bos| bo| na|hak|iby| at|ihe|ung|ha |bul|kar|eye|eko|gek|nya|o g|shy|e y|awe|ngo|bit|mul|nzi|rer|bag|ge |imw|bah|cir|gac|bak|je |gez|imu|eze|tse|ets|mat| ru|irw|he | ni| ur| yi|ako|ngi| ng|i n|rez|ubi|gus|fit|afi|ugi|uka|amb|o c|utu|ufa|ruk|mug|bas|bis|uku|hin|e g|ige|amo|ing| af|yem|ni | ry|a r|gaz|te |erw|bwe|ubw|hwa|iko| al|ant|zi ",zul:"nge|oku| ng|a n|lo |ung|nga|la |le | no|elo|lun| um|e n|wa |we |gel|e u|ele|nel|thi|ke |nom|ezi|ma |ntu|oma|hi |o n|ngo|tu |nke|onk|o l|uth|ni |a u|lek|unt| wo|o e| lo|mun|umu|pha| ku|ang|ho |kwe|ulu| ne|won|une|lul|elu| un|a i|gok|kul|ath|hla|lok|khe|eni|tho|ela|zwe|akh|kel|a k|enz|ana|ban|aka|u u|ing|ule|elw|kho|uku|ala|lwa|gen| uk|wen|ama|na |e k|ko |gan|a e|he |zin|enk|o y| ez|kat| kw|lan|eth|het|o o| ok|okw|i n|nzi|aba|e a|hak|lel|lwe|eko|ane|ka |so |yo |ayo|o a|uhl|nku|nye| na|thu|mph|do |ben|ise|kut|ike|kun| is| im|hol|obu|fan|i k|e w|nhl|nok|ini|and|kuh|ukh|kuk| ak|e i|isi|aph|zi |ile|eki|ekh| ba|eka|the|a a| le| ye|kwa|e e|fut| fu|za |mal| ab|ebe|isa| em|o w|kub|mth|i w|ndl|emp|any|olo|ga | ko|nen|nis|alu|ith|eli|ndo|seb|nda| ya|i i|eke|vik|ake|uba|abe|ezw|yok|ba |ale|zo |olu|ume|ye |esi|kil|khu|yen|emi|nez|hlo|a l|ase|ula|kek|a o|iph|o u|no |azw|kan|mel|uny|ne |ufa|ahl|lin|hul|ant|und|sa |enh|kus|kuv|lak| in|o i|din|kom|amb|zis|ind|ola|uph|wez|eng|yez|phe|phi|mba|nya|han|kuf|nem|isw|ani|iyo| iy|fun| yo|uvi|i a|ene|izi| el|cal|i e|eze|ano|nay|hwe|kup|lal|uyo|ubu|kol|oko|ulo| la|e l|tha|nan|mfu|hon|nza|hin| ey|omp|da |bo |ilu|wak|lon|iso|kug|nka|ink|i l|sek|eku| ek|thw|gez",swe:"ar |er |tt |ch |och| oc|ing|ätt|ill|rät|en | ti|til|för|ll | rä|nde| fö|var|et |and| en|ell| ha|om |het|lle|lig|de |nin| de|ng | in| fr|as |ler| el|gen|nva|und|att|env|r h| i |r r|ska|fri| so|har|der| at|ör |ter|all|t t| ut|den|ka |lla|som|av |sam|ghe|ga | sk| vi| av|ete|la |ens|t a| si|r s|iga|igh|tig| va|ig |a s| st|ion|ra |tti|a o| är|ten|ns |t e|na | be|han| un| an| sa|a f| la| gr| må|nge|n s|vis|lan|må |ati|nat| åt|an |nna| li| al|t f|ans|nsk|sni|gru|äll|tio|ad | me|isk|kli|s f|t i|stä|t s|ri |med|sta|h r|lik|da |dig|ta |r o|run|on | re|lag|tta|är |kap|a i|a r|änd|erv|n e|kte|n f|rvi|nom|itt|id | mo|sky|r e|ver|äns|vil|gt |igt| na|tan|uta|dra|t o|ro |isn| fa|kal|ihe|rih|erk|r u|e s|per|l v|vid|one|rel|ber|ran|ot |mot|ndl|d f|ed |ika|män|l s|bet|t b|dd |ydd|kyd|n o|s s|str|n m|tet|sin|r f| om|rna|int|r i|end|nad|l a|ap |ers|nda|t v|ent|rbe|arb| hä|ets|häl|amh|ckl|gar|nga|r m|je |rje|arj|n i|s e|lin|r t|i s|rän| pe|ilk|t l|ern|på | på|täl|d e|dom|ege|g e|tni|r a|lit|ras| så|lln|kil|ski|enn|i o|a d|erä|n a|ara| ge|äro|a m| ar|t d|ilj|els|yck| ve|g o|frå|nas|tra|ess|del|m s|liv|l l|in |v s|g a|ast|e e|val|son|rso|e t|age|nd | eg|ial|cia|oci|soc|upp|igi|eli|g s|rkl|gad|ndr|nte|öra",lin:"na | na| ya|ya |a m| mo|to | ko|li |a b| li|o n| bo|i n|a y|a n|ki |a l|kok|la | ma|zal|i y|oki| pe|ngo|ali|pe |so |nso|oto|ons| ba|ala|mot|a k|eng|nyo|eko|o e|nge|yon| ny|kol|lik|iko|a e|o y|ang|ye | ye|oko|ma |o a|go | ek|ko |e m|aza|te |olo|sal|ama|si | az|mak|e b|lo | te|ta |isa|ako|amb|sen|ong|e n|ela|oyo|i k|ani| es|o m|ni |osa| to|ban|bat|a t|mba|ing|yo | oy|eli|a p|mbo|o p|mi | mi| nd|ba |i m|bok|i p|isi|mok|lis|nga|ge |nde|koz|bo |gel|ato|o t|mos|aka|oba|ese|lam|kop| ez|lon|den|omb|o b|ota|sa |ga |e a|e y|eza|kos|lin|esa|e e|kob|e k|sam|kot|kan|bot|ika|ngi|kam|ka | po|gom|oli|ope|yan|elo| lo|ata| el|bon|oka|po |bik|ate| bi|a s|i t|i b|omi|pes|wa | se|oza|lok|bom|oke|som|zwa|mis|i e|bek|iki| at|ola|ti |ozw|lib|o l|osu|oso|e t|nda|ase|ele|kel|omo|bos|su |usu|sus|bal|i l|ami|o o|bak| nz|pon|tel|mob|mu | ep|nza|asi|mbi|ati|kat|le |gi |ana|oti|ndi|tan|a o|wan|obe|kum|nya|mab|bis|nis|opo|tal|mat| ka|bol|and|aye|baz|u y|eta| ta|ne |ene|emb|sem|e l|gis|ben| ak| en|mal|obo|gob|ike|se |ibo|’te| ’t|umb| so|mik|oku|be |mbe|bi |i a|eni|i o| mb|tey|san| et|abo|ebe|geb|eba|yeb|bu | as|ote|sik|ema|eya|ibe|mib|ai |pai|mwa|kes|da |may|boz|amu|a a|kom|mel|ona|ebi|ia |ina|tin| ti|bwa|sol|son",som:" ka|ka |ay |uu |an |yo |oo |aan|aha| wa|da | qo| in| u |sha| xa|a i|ada|iyo| iy|ma |ama| ah| la|qof|aa |hay|ga |a a|a w|ah | dh|a s| da|in |xaq| oo|a d|aad|yah|eey| le|isa|lee|u l|q u|aq | si|taa|eya|ast|la |of |iya|sa |y i|u x|sta|kas|xuu|uxu|wux| wu|iis|nuu|inu|ro | am| ma|a q|wax|dha|ala|kal|nay|f k|a k|le |ku | ku| sh|o i|a l|ta |maa|a u|dii|loo| lo|o a|ale|ara|ana|iga|o d| uu|ha |lo |o m|o x|doo|aro|kar|yaa|gu |si |ima|na | xo| fa|adk|do |a x|ad |aas| qa| so|a o| ba|lag| aa| he|dka|adi|soo|o k|aqa| is|ash|u d|had| ga|eed|san|u k|a m|iin|i k| ca|u s|n l|yad|rka|axa|elo|hel|aga|hii|o h|o q| ha|id |n k| mi|baa| xu|har|xor|aar|ax |mad|add|nta|mid|aal|waa|haa|ina|qaa|daa|agu|ark|o w|nka|u h|dad|ihi| bu| ho|naa|n a|ays|haq|a h|o l| gu|o s|aya|saa|lka| ee| sa|dda|ab |nim|quu|gga|ank|kii|rci|arc|n s|a g| ji|gel| ge|eli|ysa|a f|siy|int|laa|uuq|uqu|xuq| mu|i a|uur|mar|ra |iri|o u| ci|riy|ya |ado|alk|dal|ee |al |rri|ayn|asa| di|ooc|aam|ofk|oon|to |ayo|dar| xi|dhi|jee|a c| ay|yih|a j|ban|caa|lad|sho|d k|ida|uqd|agg|sag|ras|bar|ar | ko| ra|o f|gaa|gal|fal|u a| de| ya|o c|ii |xay|eel|aab|sig|aba|orr|hoo|u q|y d|ed |ho |sad|qda|h q|fka|n i|xag|n x|qay|lsh|uls|bul|u w|jin| do|raa| ug|ido|ood",hms:"ang|gd |ngd|ib | na|nan|ex | ji|eb |id |d n|b n|ud | li|nl |ad | le|jid|leb|l l| ga|ot | me|x n|anl|aot|mex|d g|b l|d d|ob |gs |ngs|jan| ne|ul | ni|nja| nj|lib|ong|nd | zh|jex| je|b j| sh|ngb| gh|gb | gu|gao|l n|han| ad|gan| da|t n| wu|il |x g|nb |b m| nh|she|is |l j|d l|nha|l g|d j|b g|el |end|wud|nex|gho|d s|d z|oul|hob|ub |nis| ch| ya|it |b y|eib| gi|s g|lie| yo| zi|oud|s j|d b|nx | de|es |d y| hu|uel|gue|ies|aob|you| ba|d m|chu|gia|dao|b d|s n|zib| go|zha|eit|hei|al |hud| do|nt |ol | fa|t g|hen|ut |gx |ngx|ab |fal|x j|b z|ian|d h|don|b w|t j|iad|nen| xi|gou|d c|b h|hao|x z|nib|anx|ant|gua| mi|s z|dan|ox |inl|hib|lil|uan|and| xa|b x| se|x m|uib|hui|d x|anb|enl| we|od |enb| du|at |ix |s m|bao| ho|hub| ng|zhi|jil|l s|yad|t m|t l|yan| ze| ju|heb|had|os |aos|t h|l d|nga| he|b a|xan|b s|sen|xin|dud|jul|d a|lou| lo|dei|d w| bi|b c| di|zhe|gt |ngt|x l|bad|x b| ja|hon|zho|blo| bl|d k| ma|deb|l z|wei| yi| qi|b b|x d|d p|eud| ge|x a|can| ca|t w|lol| si|hol|s w|aod|pao| pa|ren| re|x s|eut|pud| pu|aox|mis|gl |ngl|x w|zei|gon|enx|gha|s a|b f|l y|oub|eab|hea| to|did| ko|unb|ghu|t p|x c|geu|t s|x x|jao|ed |t c|l m|l h|jib|ax |l c|d f|nia| pi|eul|d r| no|min|l t|heu|ux |tou|ns |s y|iel|s l|hun",hnj:"it | zh| ni|ab |at |ang| sh|nit| do|uat|os |ax |ox |ol |nx |ob | nd|t d|zhi|nf |x n|if |uax| mu|d n|tab| ta| cu|mua|cua|as |ad |ef |uf |id |dos|gd |ngd|hit|ib |us |enx|f n|she|s d|t l|nb |ux |x z|ed |inf|b n|l n|t n|aob|b z| lo|ong|ix |dol| go|zhe|f g| ho| yi|t z|d z|b d| le|euf|d s|ut |yao| yo| zi|gb |ngb|ndo|enb|len| dr|zha|uab|dro|hox| ge|nen| ne|han| ja|das|x d|x c|x j|f z|shi|f h|il | da|oux|nda|s n|nd |s z|b g| ny|heu| de|gf |ngf| du|od |gox| na|uad| gu|inx|b c| ya|uef| xa| ji|ous| ua| hu|xan|hen|zhu|nil|jai|rou|t g|f d| la|enf|ged|ik | bu|nya|you|f y|lob|af |bua|uk |is |yin|out|of |l m|ud |hua| qi|ot |t s| ba|ait| kh|s s|nad| di|aib|x l|lol| id|dou|ex |aod|bao| re| ga|d d|b y|las|hed|b h|b s|f b|t y|jua| ju| dl|x s|hue|b l| xi|zif|dus|b b|x g|hif|x y|hai| nz|sha| li|x t| be|d j|und|hun|ren|d y|hef|xin| ib|b t|l d|aos|s l| ha|gai|nzh|gx |ngx| ao|s b|s x|el |gt |ngt|hik|aid|s t|x m|f l|f t| pi|aof|t r|eb | gh|s y|d l|gua| bi| za| fu|t h| zu|hou|deu|lb | lb|d g| mo|b k| bo|iao|ros|gon|eut|x h|al |uaf|hab|t t|k n|f x|hix|pin|yua| no|t b|ak | zo|s m| nb| we|d b|gha|f s|mol|euk|dax|l b|nof| ko|lou|guk|end|uas|t k|dis|dan|yol|uan|d t|x b|lan|t m| ch|jix|x x| hl|aox|zis|x i|et | ro",ilo:"ti |iti|an |nga|ga | ng| it| pa|en | ma| ka| a | ke| ti|ana|pan|ken|ang|a n|agi|a k|n a|gan|a m|a a|lin|ali|aya|man|int|teg|n t|i p|nte| na|awa|a p|na |kal|ng |dag|git|ega|sa |da |add|way|n i|n n|no |ysa|al |dda|n k|ada|aba|nag|nna|ngg|eys| me|a i|i a|mey|ann|pag|wen|i k|gal|gga| tu|enn| da| sa|nno| we|ung| ad|tun|mai| ba|l m| ag|ya |i s|i n|yan|nan|ata|nak| si|aka|kad|aan|kas|asa|wan|ami|aki|ay |li |i m|apa|yaw|a t|mak| an|i t|g k|a s|ina|eng|ala|ika|ama|ong|ara|ili|dad| aw|gpa|nai|et |yon|ani|aik|on |at |oma|sin|bal|ipa|n d|uma|g i|ket|ag |in |aen|n p|ram|sab|aga|nom|ino|lya|ily|syo|i b| ki|nia|agp|gim|kab|asi|kin|iam|ags|bab|oy |toy|n m|agt| ta|bag|sia|g a|gil|mil| um|o p|ngi|n w|i i|pad|pap|daa|iwa|naa|eg |ias|ed |nat|bae|o k|saa|san|pam|gsa|ta |kit|ma |dum|yto|tan|i e|t n|uka|t k|apu|lan|sta|sal| li|a b|ari|g n|den|mid|ad |o i|y a|ida|ar |aar|y n|dey| de| wa|a d|ak |bia|ao |tao|min|asy|mon|imo| gi|maa|sap|abi|i u|aib|kni|i l|gin|ged|o a| ar|kap|pul|eyt|abs|ibi| am|akn|i g|kip|isu|g t|bas|nay|ing|i d|kar|ban|iba|nib|t i|as |d n|y i|ura|a w|nal|aad|i w|lak|adu|kai|bsa|duk|edu| ed|may|agb|agk|tra|gge|sol|aso|agr|ngs|ian|ila|dde|edd|tal|aip|kua|umi|pay|sas|ita|pak|g d|ulo|inn|aw "},Cyrillic:{rus:" пр| и |рав| на|пра|ств|го |ени|во |ове| ка|на |ть | по|ия |о н| об|ет | в |сво| св|аво|ани|ост|ого|ый |ажд|лов|т п| им|ния| че| со|ело|име| не|льн|ли |чел|каж|ест|век|ать|ова|или| ра|ек |й ч|дый|жды| до|ие |еет|мее|но | ил|ии |ся |его|обо|и п|ние|к и| бы|и с|и и|ми |бод|воб|ван| за|ой |ых |ом |лен|аци|енн|о с|о п|ьно|тва|тво|при|ног|аль|ако|ва |и н|сти|ных|то |бра|олж|дол|сто|и в|ным|ое | ег|нов|их |ель|тел|ти |нос|не |пол|раз| вс|и о| ли|и р|ыть|быт|вле|ред|ию |тор| ос|ься|тьс|оди|щес|я и|как|про|жен|ым |пре|а с|сно|е д|нно|о и|ий | ко|о в| ни| де|сту|лжн|сов|е в|ном|оль|ран|оже|иче|ей |аст|нны| от|туп|м и|одн|зов|рес| мо|осу|ля |осн|а о|вен| то|о б|шен|тве|общ|а и|е м|ьны|обр|вер|чен|я н|жно|чес|ак |лич|нии|е и|все|бще|ват|есп|мож|й и|ное|о д|бес| во|я в|ду | ст|дно|она|нац|ден|ежд|х и| бе|и д|ны |дос|для| дл| та|льс|ате|ции|я п|ую |ите|е о|ной|под|ото|стр|ста| ме|ели| ре|я к|тоя|ами|ен |ь в|ю и|азо|гос|м п|ь п|т б|жет|уча|суд|ьст|дст|щит|ащи|защ|кон|нию|ам |оду|ере|гра|печ|о о|оро|кот|и к|тра|ник|уще|циа|оци|соц|нал|еск|о р|ког|дру| др|ни |ава|нст|ем |авн|ыми|едс|дин|дов| го| вы|в к|ые |обе|му |я е|слу|уда|так|кой|ту |иту|зак|ход|вол|раб|кто|икт|ичн|нич|от |ина| к |тер|род|нар",ukr:"на | пр|пра| і |рав| на| по|ня |ння| за|ого|ти |во |го | ко|аво| ма|люд|о н| не| лю|юди|ожн|кож|льн|жна|дин|ати|ає |их |ина|пов|сво| св|анн|є п|має|або|а л| бу|не |енн|бо | аб|а м|ови|ні | ви| ос|аці|вин| та|без|обо| ві| як|ере| до|і п|ува|о п|аль|них|ом |ми |іль|ног|та |ий |при|ою |ть |ста| об|ван|инн|ті |ост| у |ся |ват|бут|ист| мо|езп|ути|нов|пер|ії |и п|бод|воб|ств| в |о в|від| бе|ако|під|тис|кон|но |ва |нні|і с|а п|сті| сп|ний|ду |ьно|она| ін|дно|ним|ій |а з|ну |мож|її | її|ля |соб|му |ої |яко| пе| ра|ід | де|і в|и і|чин|вно|ому|ном|у п|і н|а с| су|а о|нен|ися|ово|нан|одн|у в|і д|ава|ідн|рів| рі|і р|ими|віл|им |ції|о д|а в|сту|оду|буд|ова| пі| ні|я н|е п|нац|и с|нна| од| ро|нос|ьни|ють|и з|ки |і з|а б|спр|чен|же |оже|е м|овн|рим|е б|то |ніх|осо|удь|ві | ре| ст|рац|до | со|роз|лен|вни|івн|род| вс|спі|ков|зпе|ів |для| дл|ї о|хис|ахи|зах|‐як|ь‐я|дь‐|я і|так|зна|заб|сть|ту |ною|а н|тор|сно|о с|жен|ціа|оці|соц|інш|і м|кла|и в|тер| ді|іст|ові|у с|я в|аро|сі |віт|сві|осв|роб|піл|рес|за |печ|абе|ку |лив|ерж|дер|в і|авн|тав|ав |ами|ком|вле|о б|ь п| що|їх |тво|хто|іхт|ког| кр|ано|тан|іал|нал|нь |х п|жно|леж|але|про|тва|рат|о о|х в|нар|льс|цій|кор|час|ржа|ї с|ину|дст|о з|раз|мін|а р|зак",bos:" пр| и |рав|на |ма |пра| на|има| св|а с|да |а п|во |је |ко |ако|о и| по|аво|е с|а и|ти | им| да| у |сва|но | за|о н|ва |и п|или|вак|ли | ко|не | ил|кој| не| др|ост| сл|ња |им |и с|у с|и и|ава|ије|а у| би|ств|се |вањ|а д|ом |јед|бод|обо|лоб|сло| се| ра|их |сти|а н|ње | об| је|при|дру|у и|ју |о д|ити|вој|раз|ање|ова|дје| ос|е и|ло |е п|ања|ује|и д|бра|тре| тр| су|у з|а к|ог |у п|оје|циј|реб|а о|а б| ње|и у|миј|ни |нос|ба |едн|сво|њег| из|про|е д|жав|бит| ни|и о|ста|а з|авн|вје| ка|бил|ово|а ј|ају|ист|и н|них|јел|ту |ред|гов| од|е о|оји| см|ја |о к|ило|аци|е у|пре|о п|еба|у о|су |вим|ичн| са| дј|а т|ија|шти|чно|ржа|држ|сту|дна|одн|ени|за |ива|ном|ем |ду |ран|вно|сми|јер|е б|е н|де |пос|м и| до|у д|нак|а р|обр| мо|ним|его| кр|тит|кри|ве |ан |ико|ник|ну |и м|ног|ено|сно|е к|туп|руг|ка |ода|рив|вољ|алн|м с|иту|ашт|заш|ани|сам| ст|акв|ови|осн|род|аро| ми|ји |тва|дно|нст|ак |ите|љу |вич|рад|у н|у м| та|дст|тив|нац|рим|кон|ку |њу |оду|жив|амо|тво|тељ|под|ећу|г п|нов|ина|нар| вј|и б|ој | ов|аве|ву |анс|оја|зов|азо|уде|буд| бу|е т|и в|ења|еди|ниц|нап|мје| ис|слу|едс|о о|зак|и к|м п|тно|иво|ере|нич|как|ада|вни|уги| ро|мов|вен|о с|то |те | вр| бе|ара|кла| бр|у б|у у|и т|она| он|ави|јал|дни| ск",srp:" пр| и |рав|на |пра| на|ма | св|има|да |а п|во |ко |ти |аво| по|а и|ако|а с| за| у |о и| им|и п|ва |сва|вак| да|о н|е с|ост| ко|ња |ли |или|не |ом | не|а н| сл| ил|је | др|и с|но |кој|у с|ава| ра|ог |сло|ју |им |сти|бод|обо|лоб|ити|а о|ств|и у|а д|ни |јед|у п|при|едн| би|и и|а к|о д|ста|их |дру|а у| је|ања| ос| ни|нос|про|ају|и о| де| су|у и|се |ње |ја |ова|и д|циј| об|ује|ред|жав|е и|е п|а ј|дна| се| од|ве | ка|ени|ржа|држ|а з|авн|ења|аци|вој|ово|у у|м и|оја|вањ| из|ија|у з|ање|ран|е о|род|и н|е б|раз|за | ње|гов|ичн| ст|нов|сно|осн|ду |пре| тр|су |ву |одн|а б|сво|њег|ним|них|ту |тит|шти|ку |ном|бит|е д|ме |ико|чно|оји|ло |вно|ник|ика|без|ара|де |у о|вим|нак| са|рив|аве|ан |вољ| кр|о п|сме|е к|ног|ји | ов|е у|тва|бра|руг|реб|тре|у д|ода| мо| вр|ављ|у н|его|дел|м с|кри|о к|ашт|заш|њу | см|ани| ли|дно|еђу|алн|ла |акв|ој |ком|сту|уги|ави|а р|ка |рад|оди|вич|тав|иту|уде|буд| бу|пот|оду|жив|ере|тво|ило|бил|аро|е н|ови|пор|ено|штв|нац|ове|м п|туп|пос|рем|дни|ба |нст|а т|оју|аст|ива|е м|вре|вља|ну |беђ|ист|ен |те |дст|рот|зак|ао |као|и к|јућ|о с|ст |сам|м н|тер|нар| ме|и м|кол|е р|ушт|руш|вер|как| бе|и б|кла|ада|еба|ена|она| он|тву|анс| до|рак|слу|и в|ниц|у к|мен|врш|еме|едс|иви|о о|јав",uzn:"ан |лар|га |ир | би|ар | ва|да |ига| ҳу|ва |бир|уқу|қуқ|ҳуқ| ҳа|р б|ган|иш |ида| та|а э|ини|ади|нг |дир|иши|лик|лиш|ий |или|ари|уқи|ҳар|лан|инг|ши |дан|нин|инс|кин|сон|нсо| ин| му|қиг| ма|он |р и| бў|эга| эг| ўз|ни |бўл|гад|и б|ки |ила|ёки| ёк|а б|н б|ин |р ҳ|ала|эрк| эр|лга| қа|рки|ш ҳ|и ҳ|н м| бо| ба|ик |ара|иги|лиг|ри |қил|а т|бил| эт|ниш|нли|кла|и в|бош|эти|ани|им |и м|оли|қла|а ҳ|лаш|атл|тил|а қ| ол|оси|мас|қар|инл|лат| қи|таъ|ҳам|ги |иб |мла|ўз |н э|мум| да| бу|ат |ш в|ун |ати|мки|умк|тла|иро|ўли|бар|ири|риш|ият|али| бе| қо|а ш|аро| ке|и т|рла| те|ча |рча|арч|а ў| шу|тиш|н ҳ|тга| са|аси| ха|рак|лин|ола|имо|шқа|ли | ту|амл|лла|сид|н ў| ас|нид|а и| ки|н т|нда|к б|ера|ошқ|сиз|ор |а м|р в|енг|тен|мат|мда|амд|лим|й т|ят |и а|ино|илг| то|тни|ана|ас |эма| эм|а ё| ша|аш |а а|тар|кат|ака|ак | де|аза|илл|сий| си| со|уқл|н қ|ода|ъли|аъл|ник|ада| ни|тда|гин|уни|сит|ай |қон|н о| жа|ким|еч |ҳеч| ҳе|ўзи|лак|кер|икл|лли|ур |зар|шла|риг|ирл|дам|коҳ|ико|а д|ам |н в|рти|тиб|тал| иш|чун|учу| уч|сла|а у|рин|сос|асо| ун|на | ка|муҳ|диг|ч к|асл|лма|ра |бу |хал|ўлг|и к|екл|р д|қат|ага|и қ|оий|мил| ми|қа |и с|жин| жи|син|рор|а в|лад|а о|тли|мия|н и|аб |тир|з м|дав|рга|аги|а к|нла|ақт|вақ|арт|аёт|лаб",azj:" вә|вә |әр |ир | һә| би| һү| ол|үгу|һүг|гуг|на |ин |лар|һәр|дә | шә|бир|ләр|лик|мал|р б|лма|р һ| тә|әхс|шәх|ән |дир|угу|уна|ан |али|а м| ма|икд|ини|р ш|дән|ар |илә|гун|аг |асы| ја|мәк|јәт| мә| мү|кди|әси|әк |илм|нин|ндә|олм|әти|ә ј|син|хс |нда|лмә|јјә|и в| га| аз|олу|ијј|ја |инд|зад|гла|үн |ни |лә |тин|н м|аза|ары|әт |н т|маг|лун|лыг|ә б|ун |нун|г в|н һ|дан|ын | ет|тмә|әрә| өз|да |ә в| он|ә а|ына|ыны|бил|а б|сы |ил |әми|ара|си | ди|ә м|әри|рлә| ва|ә һ|етм|ығы|ама|длы|адл|рин|бәр|рын|н и|мүд|нын| һе|мас|ик |н а|дил|алы|ирл|әлә|үда|сын|ынд|хси|ли |ә д|нә | бә|әја| ин|ә и|ләт| сә|ны | иш|аны|еч |һеч|г һ|ејн|ә е|дыр| да|аси|ры |иш |ифа|лығ|и с|фиә|афи|даф| ед|мәз|у в|кил| һа|ола|н в|әни|ыр |уг |унм| бу| ас|сиа|оси|сос|или|ыды|лыд|нма|ыг |инә|әра|сил|хил|ахи|дах|адә|ман|а һ|ә о|ону|а г|әз | ки|сеч| се|ы һ|мин|лан|әдә|бу |раг|лы |ылы|ал |ә г|р в|нла|һси|әһс|тәһ|өз |ист| ис|мәс| әс|ина|ә т|әтл|а в|иә |н б|тәр| та| ҹә|еди|ала|ким|гу |и т|улм|мәһ|н о|аја|ы о|иал| со|илл|сиј| дә|вар|инс|ми |ғы |ник|р и|агл|к һ|тәм|там|чүн|үчү| үч|ғын|сас|әса|з һ|әмә|зам| за|сти|рәф|н е|р а|илд|һәм|ыгл|јан|мај|н ә|мән|мил| ми|әги|дин|н д|түн| дө|миј|каһ|ика| ни|фад|тиф|л о|сәр|јни| еј|ана|лән|ам |рил|ајә|ашы",koi:"ны |ӧн | бы|да | пр|лӧн|рав| мо|пра| да|быд| ве|орт|лӧ |ӧй |мор|ӧм |аво| не|во |ыд |ыс |нӧй|ын |м п|д м|ыны|тны| ас|тӧм|льн| эм|вер|сь |ьнӧ|эм |н э|тлӧ| кы|сӧ | по|ерм|сьӧ|ртл|аль| кӧ|эз | ӧт|ӧ в|то |ето|нет|ылӧ| ко|тшӧ| от| и |ы с|бы |ӧ б|ств|кӧр| вӧ|шӧм|кыт|та |на |з в| се| до|вол|ӧс | сы|ы а|ола|рмӧ|ас |оз | оз| сі|а с|тво|с о| вы|ліс|ӧ к|ытш|ӧ д|ис |ісь|ӧтн|ась| ол| на|аци| эт|а в|злӧ|сет| во| чу|лас|лан|мӧ |тыс|рты|ӧрт|ы п|ӧтл|о с|эта|дз |кӧт|ӧдн|вны| мы|н н|удж| уд|выл|ӧ м|рті|орй|ись| со|воэ|ыдӧ|й о|кол| го|с с|сси|сыл|ысл|йын|кин|олӧ|тӧн| сь|ана|ӧр |ция|а д|ӧмӧ| ви|з к| эз|ы б|тӧг|ӧт |мӧд|ест|ост|ӧны|тир|оти|укӧ|чук|н п|онд|пон|слӧ|кер| ке| об|сис|суд|а н|дор|кон|нек|н б|лӧт|с в|ті |ьӧр|тра| ст|нал|она|нац|н к|кӧд|ӧг |скӧ|ть |етӧ|дӧс|быт|рны|ӧ н|тсӧ|рре|а б|нда|с д|асс|ы к|асл| ло|ьны|сьн|ы м|еки|ы д| мӧ|ь м|ы н|ытӧ| ме|рйӧ|иал|й д|итӧ|а к|ӧсь|мӧс|овн|зын|а п|отс| ли|оля|ӧ а|осу|ӧя |нӧя|езл|рез|мед|с м| сэ|ь к|рйы|ако|зак| за|ьын|ннё|мӧл|умӧ| ум|ы у|н в|м д|н с| дз|н о|ран|стр|озь|поз|з п|о д|циа|оци|соц|ион|а м|еск|чес|нӧ |з д|тсь|бӧр| бӧ| ов|вес|кыд|ӧ с|воы|код|тко|ӧтк|оль|дбы|едб|сьы|чын|тчы|ӧтч|тла|мӧн|сла|йӧз| йӧ|т в|ы и|ез |о в|оны|йӧ |анн|ӧль| пы|ан |нӧс|нит| су|м с",bel:" пр|пра| і |ава|на |рав| на| па|ны |ва |або|ць | аб|ае | ма|аве|анн|ацы|сва| св|е п|льн| ча|не |ння|ала|а н|ай |лав|чал| ко| ад| не|га |ожн|кож|век|ня | як|жны|ы ч|мае|а п|ага|бо |ек |а а|ца |цца| ў | за|ых |пав|а с|го |він|дна|бод|мі |ваб|ван|ам | вы| са| да|ста|аві|нне|асц|най|цыя|наг|ара|і н|к м|яго| яг|ьна|пры|аць|і п|одн|ств|ама|ных| бы|тва|дзе|аль| ра|ні |і с|і а|ыць|а б|енн|лен|ці |оўн|ым |рац|інн|іх | ас| та|то |нас|які| дз|чын|оль|і д|аво|ад | ні|сці|ымі|ным|быц|я п|ьны|ыя |аро|ана|іна|і і|рад| гр|ля |ўле|о п|а ў|рым|пад|ыі | ін|амі|дзя|рам|цыі|аба|а і|ду |жна|ўна|нал|нац|ры |эта|гэт| гэ|нен|да |ах |гра|кац|ука|а з|кі |адс|ў і|нст|энн|я а|нні|оду|а р|нна|ход|нан|пер|х п| у |адз|і р|мад|м п|е м|аду|дст|для| дл|оў |нае|і м|ако| ка|ы ў|бар|е а|ацц|ую |ыцц|сам|яўл|але|род|раб| пе|што| ўс|адн| су|роў| ро|дук|люб|ь с| шл|раз|нав|зна|вол|удз|ада|жыц|чна|ве |а т|асн|сац|ера| рэ|яко|кла|аны| шт|ь у|аюц|нар| ус|соб|асо|пам|я ў|авя|чэн|воў|так|ну |ю а|ь п|зак|кар|е і|ь а|бес|ія |кія|х і|заб|аса|ім |жав|і з|леж|тан|ахо|яль|ыял|о с|яна|кан|ака|інш|алі|вы | мо|нах|я я|м н|ога| бе|й д|о а| ст|ены|і ў|а д|есп|шлю|цця|ы і|ыст|рыс|люч|клю|тац|уль|ынс|ачы|спр| сп|аў |ыма|ары|кам|е ў|і к|кон",bul:" на|на | пр|то | и |рав|да | да|пра|ств|ва |а с|а п|во |но |ите|та |о и|ени| за|не | не|а н| вс|ван|аво|ото|е н|о н|а и|ки |ие |те |ни |има| им|ли |или|ия | по|ове|ане|чов|ма | чо|и ч|а д|ние|и д|ест| ил|ани|век|все| об|ек |еки|сек|ава|тво|сво| св|вот|а в|и с|ост| ра|ова|а о|е и|ват|и н|е п|к и|а б| в |и п|лно|о д| се|раз|ето|ъде|бъд| бъ|при|ата| ко| тр| ос| съ|бод|обо|воб|ат |за |тел| е |аци|о с|де |о п|ен |бра|и в| от|се |ния|алн| де|его|нег| из|от |ран|ята|как|оди|е с|и и|ден|пре|бва|ябв|ряб|тря|нит| ка|ява|про|ст |а з|гов|вен|тве|о о|а р|акв|о в|и з|ред|нос|ият|е д|щес|нов| ни|ция| до|йст|о т|е т|ржа|ърж|дър|ено|пол| с |обр|тва|нот|рес|ейс|и о|е в|кой|общ|лен|она|нац|иче|ез |без| бе|ежд|ува|вит|ри |зак|и к| ли|а е|под|ели|ник|си |е о|а т|авн|и р|т с|ка |оет|елн|нен|ой |гра|жен|дру| ре|а к|сно|осн|лич|зи | та|са |нст|вни|чки|ичк|сич|вси|люч|клю|дно| мо|еме|а у|изв|тви|дей|я н|кри|ато|о р|й н|ико|ичн|жав| дъ| то|бще|иал| со|лит|т н| си|т и|одн|жда|зов|азо|уча| гр|кое|тъп|стъ|вол|лни|сре| ср|ква|кон|тно|ака|и у|ко |ган|ода|чен|лст|елс|стр| къ|ста|род|нар|и м|нал|руг| др|чес|въз|ди | са| те|сто|дос|раж|рез|чре|гат|еоб|а м|о е|ине|аст|ово|чно|аве|му | му|ано|ита|ими|ако|нак|лаг|ови",kaz:"не | құ|ен |ұқы| ба| қа|құқ|ық |ға | жә|әне|жән| не| бо|де |дам|ада|а қ|тар|ына| ад|ылы| әр|ың |ан |ін |қыл|ар |еме|на |р а|лық|уға|ала|ықт| өз|мес|әр | жа|мен|ығы|лы | де|қта|ның|н қ|ған|іне|бас|ары| ме| қо|еке|ын |да |е қ|ды |асы|се |есе|ам |бол|анд|нем| бі|ара|ы б|ста|тан|нды|н б|ің |е б|ілі|тиі| ти|бар|ғы |нде|етт|иіс|қығ|іс |лар|ге |ы т|інд|ік |бір| бе| ке|алу|е а|алы|луы|а ж|ері|олы| те|қық|н к| та|н ж|ғын|тті|іні|тын| ер|нда|ім | са|е ж|аты| ар|рға|еті|ана|ы ә|уын|лға|өзі|ост|егі|тік|қа |сқа|рын|кін|луғ|ң қ|нің|уы |бос|асқ|қар|дық|нан|мыс|мны|амн|ы м|айд|ке | же|зін|рде|рін|е т|ген|ып |ры |ті |сын|қам|ден|і б|гіз|рал|е ө|лан|сы |ама|тта|тық|бер|ді |біл|ркі|өз |зде|кет|қор|дай|уге|ы е|ынд|нег|оны|ей |мет|аны|а т|жас|ауы|лге|аса|еге|дар|ру |ау |ерк|ы ж|рыл| то|н н|е н|тін|ір |сіз|тер|лма|і т|кім| ал|р м|лік| мү|е м|түр| тү|кел|лып|ең |тең|рлы|лім|рды|ард|атт|с б|ыры|сыз|ыс |елг|дал|йда|орғ|рқы|арқ| жү|тал|ылм|а б|ігі|лде|із |қты| еш|дей|ай |жағ|кті|ікт|гін| әл|тты|ұлт| ұл|е д|ыны|лін|р б|еле|кұқ| кұ|амд|м б| ет|оға|құр| кө|аға|тол|шін|айы| қы|қал|жек|і н|ес |ағы|е о|елі| ел|н е|зі |шкі|ешк|олу|ция|мас|ғда|ағд|лтт|імд|ным| да|а д|әсі|с ә|қат|ірі| со|ң б|аза|мда|айл| ас|ғам|қоғ"},Arabic:{arb:" ال|ية |في | في|الح| أو|أو | وا|وال|حق |ة ا|لحق|الت|كل |الم|لكل| لك|لى |ق ف|ته |و ا|ة و|شخص|ة ل|ات |الأ|ي أ|ون | شخ|م ا|أي | أي|ان |أن |مة |ي ا|الا|لا |ها |اء | أن| عل|خص |ن ا| لل|د ا|من |فرد|ما |الع|ت ا|حري|على|ل ف|رد |ل ش| لا|رية| إل|ة أ|ا ا|ن ي| ول|ا ل|ا ي| فر| من|ة م|الق|جتم|ن أ|ق ا|الإ| حر|له |ه ل|اية|لك |ه ا| دو|دة |اً |ين |ه و|لة |ي ح| عن|ماع|ي ت|ذا | حق|قوق|حقو|، و|ن ت|مع |ص ا|ام |د أ| كا|هذا|الو| إن|مل |امة|ع ا|إلى|ة ع|ماي|حما|ن و|لتع| وي|ير |نون|ي و|اسي|الج| هذ|نسا|وق |ترا|عية|ه أ| له|سية| يج| با|دول|انو|قان|لقا|ة ب|ة ت|تما|الد|يات|ع ب|سان|إنس|هم |علي| مت|لمج|ذلك|عمل|لأس|وز |جوز|يجو|بال|غير|ك ا|كان|ساس|أسا|دم |لاد|اعي|الر|تمي|دون|تمت|لتم| يع|ليه|ساو|اجت|ي م|لعا|لجم|تعل|ر و|تمع|مجت| مع|يه |ى أ|فيه|ى ا| كل|لات|ملا|ود |انت|الف|يها|ي إ|تي |الب|لي |قدم|ال |اد |ل ا|يز |ييز|ميي| تم|لحر|تع |متع|ا ب|عام|ا و|ق و|رام|ل ل|لاج|را |الش| وإ|يم |ليم|شتر|ا ح|واج|لزو|ول |ا ف|ولة|لحم|أسر| ذل|ه ف|اته|مسا|لمس| تع|عن |ه ع|وله|يته|ن ل|رة | وس|اة |يد | تح| مس|ي ي|لتي|عة |ولي|لدو| أس| وف|ل و|أية|ني |الس|لان|لإع|ة ف|ريا|ل إ|م ب|امل|كرا|تسا|ميع|جمي| جم|أول|بية|عيش|تحق|ادة|س ا| مم|معي|جما|عات|اعا|ارس|مار|مما|م و|راك|اشت|الط|اج |زوا|الز| وم|حدة|تحد|لمت|مم |لأم|ده |بلا| بل|ار |يار|تيا|ختي|اخت|ن م| مر",urd:"ور | او|اور|کے | کے| کی| کا|یں | حق|کی |کا | کو|ئے |ے ک|یا |سے |کو |شخص| شخ|نے | اس| ہے|میں|حق | ہو| می|خص |ے ا| جا|اس | سے| یا|ہر |ی ا| کر| ہر|ے۔ |سی |ہیں|ا ح|ص ک|وں |ے م| ان|ر ش|۔ ہ|ائے|زاد|آزا| آز|ام |ر ا|ق ہ|ادی|جائ|ں ک|ہے۔|م ک| کس|ا ج|ی ک|س ک|کسی| پر|ے گ|ہے |ار |ت ک|دی |پر |و ا| حا| جو| ہی|ان |ی ج|ری | نہ| مع|جو |ل ک|ی ت|ن ک|کرن|ئی |ل ہ|تی |ہو |ہ ا| ای|صل |اصل|حاص|رنے|ی ش|نہ |۔ ا|ں۔ |یں۔|ر ک|ر م| مل|وہ |معا|رے |ں ا|نہی|ے ہ|ے ب|ایس|ے ل| تع| گا|یت |ی ح|ا ا|ی م|اپن| اپ|کیا|می |ی س| جس|ہ ک|نی |اشر|عاش| دو|لئے| لئ|انہ|وق |قوق|حقو|مل | قا|کہ | گی|ر ب|ہ م| وہ| بن|ی ب|ملک|جس |ا۔ |ریق|ر ن|ے ج|اد |ات |گی |د ک|ے ح|دار|ر ہ|گا۔|قوم| قو|ے، |ا س|دوس|ر پ| و | شا|ی آ|ں م|ق ح| پو| با|خلا|انے|یم |لیم|و ت|ون | کہ|ی، |۔ ک|ا پ|ن ا|لک |علا|ا م|ق ک|ائی|وسر|ی ہ|وئی|یر |ا ہ|علی|و گ|وری|دگی|ندگ|و ک|یسے| من|ائد|رائ| مر|پور| طر|ومی|ے خ|سب |نون|انو|قان| سک|وام|ین | رک|تعل|لاق|غیر|دان|، ا| بی| مس|یوں|نا | بھ| بر|رتی|ادا|امل|یہ | یہ|ہ و| عا|ی پ| بچ|اف |لاف| خل|ی۔ |گی۔| دی|ھی |بھی|دہ |جا |پنی|قوا|اقو|رکھ|ے ی| عل|کوئ|، م| چا|ے س|ر ع| پی|برا|ر س|ر ح|سان|م ا|کام|شرت| را|شام|من |زند| زن|ب ک|ت م|اہ |اری|س م|ر ج| مح|ورا|ے پ|طری|ہوں|ال |ں س|ی ن|کرے| مق|ت س|تحف| تح|و۔ |ہو۔|بند| اق|د ہ| ام|امی|الا|لت |شرے|ے ع|ا ک|فری",pes:" و | حق| با|ند |رد |دار| دا|که |هر | در| که|در | هر|ر ک|حق |د ه|از |یت | از|یا |کس |ود |ارد| یا| کس|ای |د و| بر| خو|ق د|باش|شد |د ک|ار |د ب| را|ه ب|ان |آزا| آز|را |اشد|ی و|ه ا|ین |ید |زاد|س ح|خود|ی ب| اس|ده |دی |ور |اید|ه د|ری |و ا|تما|ات | نم|ی ک|ادی|نه |رای|د ا| آن|است|ر ا|ر م| اج|مای|ون |قوق|حقو|و م| ان|انه| هم|وق |ایت| شو|ی ا| مو| بی|با | تا|ورد|انو|ست |وان|برا|ام |شود|آن |جتم|ی ی| کن|ر ب|کند| مر|ت م|های|ت ا| مس|ی، |ماع|اجت|توا|یگر|و ب|دان|ت و|ا م| بد|عی |کار| من|مور| مق|ی د| زن|ی م|ن ب|ر خ|اه |ا ب|اری|د آ|مل | به|اعی|د، |دیگ|ت ب|بای|این| می|ن و|ق م| عم| کا|ن ا|و آ| حم|نون|ه و|و د|د ش| ای|شور|کشو| کش|لی |نی |ه م|بعی|ر ش|یه | مل|میت|ی ر|رند| شر|می |وی |ساو|قان| قا|مقا|او | او|د م|گی |نمی| اح| مح|مین|ئی |ادا| آم|خوا|گرد| گر|مند| شد|ائی| دی|ز ح|هیچ| هی|اده| مت|نما|ت ک|ران| بم|ن ح|ر ت|حما|ارن|مسا|دگی|ومی|ن ت|ملل|بر |هد |واه|بهر| اع|ها|ق و|، ا|عیت|یتو|ا ر|ن م| عق|همه|ا ه|زش |وزش|موز|آمو|انت|تی |جام|موم|عمو|تخا| فر|طور|د د|ه ح|ردا|اوی|نوا|انی|رار| مج|ی ن|حدی|احد|ندگ|زند|شخص| شخ|من|هم|ره|هره|شده|ع ا|و ه|اسی|هٔ |یده|عقی|ا ا|مه | بش|اد |دیه|ا د|دوا|ی ح|ابع|ی ت|خاب|نتخ|رور|و ر|شرا| خا|ٔمی|أم|تأ|اً |امل|له |د ر|اسا|خور|بل |ابل|قاب|یک |سان|قرا|ا ن|خصی| ام| بو|یر |الم|بین|اهد|تبع| تب",zlm:" دا|ان |دان| بر| او|ن س|رڠ |دال| ڤر|له |كن | كڤ|ن ا|ن ك|ن د|يڠ | يڠ|ڤد |حق |ورڠ|تيا|ياڤ|ارا|كڤد|اور|رحق|برح|اله|أن |ولي| ات|اتا|ڠن |تاو|اڤ |ستي|ليه|او | ست|ڤ ا|يه |را |ه ب|ه د|عدا| عد|ن ڤ|ن ب|ين | تر|ق ك|ن ي|يبس|بيب| تي| سو| كب| سا|ن م|ن ت|لم |الم|د س|ڠ ع| من|چار|د ڤ|رن |سام| ما|ڽ س|ن، | بو| اي|ندق| حق|ڬار|نڬا|بول|سبا| سب|اتو|ا س|قله| ڤم| مم|وان|سچا| سچ| كس|ا ب|سن | سم|ڤرل|اون|نڽ |تن | با|هن |سيا|ا ڤ|ارڠ|بار|ڤا |بسن|كبي|ام |يند|ي د|اڬي|ڠ ب|باڬ|ي ا|مان| لا| د |دقل|هند| هن|ت د|ادي|وين|يكن| نڬ|، ك|ن٢ | ڤو|بڠس|ق٢ |ات |اول|اكن|اڽ | سس|ون |اد | كو|اين|دڠن| دڠ|ائن|تو |تي |ن ه|ڬي |سي |ق م|وڠن|دوڠ|ندو|لين|رلي|نتو|ڤون|وات|ياد|تيك|ڠسا|ڤمب|ترم|٢ د|حق٢|وا |لوا|ماس|وق |ه م|ل د| مل|وند| ڤڠ|ا، |، ت|لائ|اي |مڤو|يك |ي ك|رات|مرا| بي|سمو|و ك|، د|سوا|ڠ م|ڠ س|ڠ٢ |ڤري|يري|دير|ا ا|اسا|ڤ٢ |تا |سوس|، س|جوا|ڠ ت|رأن| ان|سأن|ريك|يأن|ري | در|امر|كرج| ڤل|ا د|جرن|اجر|ارك|لاج|د ك|وار|برس|ونت|منو|سال|ينڠ|دڠ٢|ندڠ| مڠ|اڤا|سسي|ساس|نن |ڤول|اڬا| بڠ| سڤ|مبي| اڤ|ڠ ا|ارأ|ڤرا|ي س|بس | دل|ا م|موا|ڤلا|ملا|ڤرك|كور|وبو| كأ|وكن|أنڽ|كسا|ڠڬو|ادڤ|هاد|رها|تره|كوم|توق|م س|ڠ د|دي | دي|٢ س|ندي|اس |ادا|بوا| دب|ڠ ڤ|ڽ، |اڤ٢|رتا|ال |يال|وسي| كت|أن،|نڤا|تنڤ| تن|م ڤ|رسا|ممڤ| مر|ن ح| كم|نسي|جأن|ؤي |لؤي|الؤ|لال|كڤر|كت |ركت|شار|مشا| مش|جاد|رڬا",skr:"تے |اں |دی |دے | ۔ |وں | تے| دا| کو|کوں| حق|دا | دی|یاں| دے|یں |ے ا|شخص| شخ|ہر |ے ۔|اصل| حا|حق |خص | ہر|صل |حاص|ہے | ہے|ال |ق ح|ل ہ| نا| کی| وچ|۔ ہ|یا |سی |ے م| او|وچ |اتے|کیت|ا ح|ادی|نال|ص ک| ات|ر ش|ہیں| یا|ں د| ای|یسی| مل|وند|کہی| کہ|ی ت|زاد|ازا| از|ندے|ں ک|ار | وی|ے ک|ئے | ان|ڻ د|نہ | کر|اون|ے و|دیا|ی د|ں ا|ے ب|ویس|وڻ |ی ن| ہو|تی |ی ۔| نہ|ی ا|یند|و ڄ|آپڻ| آپ|ا و|ے ج| کن|ے ن|ندی|ت د|ے ح|ی ک|ئی |ملک|یتے|ن ۔|تھی| تھ|ون |ں م| بچ|۔ ا|نوں|کنو|ڻے |اری|ا ا|ے ہ|ل ت| ڄئ|وق |قوق|حقو|ل ک|خلا| جی|لک |دار|یت |کرڻ|انہ|کو |ہکو| ہک|ن ا|مل | وس|ں و|پڻے| تع|ی م|اف |ے خ|نون|قنو| قن| لو|۔ ک|ری |لے |تا |یتا| قو| چا|ہاں|ڄئے|ق ت|ایہ|رڻ |ے د|ر ک| و |لاف| خل| جو|ی و|او |ہو |ئو |چئو|بچئ|یر |ہوو|ا م|ی ج|الا|ین | جا|می |نہا|ان |ات |سڱد| سڱ|یب |سیب|وسی| شا|ب د|یوڻ|ام |اوڻ|ے ت|ڻ ک| مط|ں ت| ون| کم|ن د|رکھ| رک|ڻی |ں آ|ریا|ی ہ|اد |یاد|علا|ر ہ|ں س|ی ح|جھی|ائد|ہی |لوک| ڋو| سم| سا| من| مع|بق |ابق|طاب|مطا|ھیو|ں ف|ہن | ہن|جو |و ک|ں ش|ر ت|کار|م د|ھیا| ٻا|غیر|و ل|وئی|جیا|وام|قوا|ی س| جھ|ل ا|قوم| سی|ذہب|مذہ| مذ|اے | اے|دن |ا ت|سان|نسا|انس|رے |لیم|علی|تعل|امل|ہ د|ے ر|د ا|کم |یہو|فائ|چ ا| کھ|م ت|را |ورا|پور|ں ب|ق د|ے ق|وکو|کھی|ا ک|و د|ے ذ|پڻی|بند| فر|کوئ|امی|ی ی|ائی|لاق|ایں|ہ ا| نظ|سما|ومی|ی، |ے س|ت و|ھین|ے ع|یم |سہو| سہ",pbu:" د | او|او |په | په|ي۔ | حق|چې | چې|ره |ي ا|ې د| هر|نه |هر |حق | څو|وک |څوک|و ا|ه د|ه ا|۔ ه|ه و| شي| لر|ي چ|و د|ري |لري|ق ل| کښ|وي |ښې |کښې|ه ک|غه |لو |ر څ|سره| سر|ه پ| ټو|و پ|له |يت |ټول|يا |کړي| کو|خه |ي، |دي | له| از|د م| هي| وا| يا| څخ|ازا|د ا|ولو|ه ت|څخه| کړ|ول |هغه|ه ش|ي د| هغ|کول|زاد|نو | وي|و ي|ه ب|شي۔|دې |يو | دي|ته |خپل| پر|اد |د د|ک ح| تو|ه م|ګه |ه ه|قوق|حقو|و م|ه ح|د ه| تر| مس|شي | نه|ړي۔|ني |د پ|واد|ې پ|ادي|ولن| يو|د ت|ونو|وګه|ي و|لي | دا|يد | با|تون| خپ|ي پ|توګ|ار |اند|يوا|ې و|دان| بر|ړي | عم|انه| ده|يڅ |هيڅ|امي|لني|بعي|ډول| ډو|ه ل|ايد|باي|اتو|ه ګ| تا|پل | مل|ايت|وم |ون | لا|هيو| شو| دغ|م د|ده |ې ا|ان | ته|کار|تو |مي |اره|اوي|ساو|مسا|نون|دهغ|و ت|ي ش|انو| مح|ين |اخل| ګټ|شوي|دغه|و ح|وي،|نيز|سي |اسي|وند|قو |وقو|و ک|ونه|ومي| وک|ي ت| ان|قان|ندې|و ر|ک د|ه ي|مين|پر |ټه |لام|غو |هغو|د ټ|و ه|ل ت|لے |ولے|وون|کي |رو |ن ک|موم|وکړ|پار|ن ش|من | نو| وړ| قا|ې چ| وس|څ څ|شخص| شخ|ژون| ژو|تر |ګټه|و څ|هم |عقي|رته| ور|بل | بل|و ب|ه س|ښوو| ښو| کا|ې ک|و س|اده|ونک| غو|دو |و ن|ت ک|مل |عمو|ل ه| پي|وسي|ړان|وړا|يز |خصي|ي م|ا ب|ادا|ه ن|خلي|واخ|ديو|، د|د ق| هم|ا د| بي|تبع| تب|ه چ| عق|پلو|و ل| را|د ب|راي| دخ|نې |نکي|ت د|ابع| مق|د خ|وره|شرا| شر|ر م|رسر|تام|ه ټ| من|طه |سطه|اسط|واس|لې | اس|۔ د|برخ|ې ن"},Devanagari:{hin:"के |प्र| प्| का| के| । |और | और|का | को|कार|ार |ति |या |को |ने |ों |िका|्रत| है| कि|ं क|है |धिक|व्य|अधि| अध|्ति| सम|्यक|ि क|क्त|ा अ|की |ा क| व्|ें | हो|यक्|सी |से |े क| या| की|में|न्त| मे|त्य|ै ।|ता |रत्|क्ष|ेक |येक|्ये|िक |र ह|भी |किस| जा| स्|क व|ा ज|िसी|मान| वि|र स|त्र|ी स|। प| कर|्रा|गा |ित | अप| पर|स्व|ी क| से|ा स|्य | अन|्त्|िया|ा ह| सा|ना |्त |प्त|समा|ान |र क|ाप्|तन्| भी| उस|राप|वतन|्वत|रों|वार|े स|था |हो |े अ|ा ।|न क| न |देश| रा|षा |अन्|त ह|्षा|्वा|जाए|ी प|करन|ा प|अपन|ष्ट| सं|े व|होग|िवा|ट्र|्ट्|ाष्|राष|सके| मा|ओं |ाओं|री |क स|े प| नि|ीय |रक्|ो स|ाएग|रने| इस|व क|पर |रता|र अ| सभ|तथा| तथ| ऐस|रा |पने|्री|िक्|किय|ा व|माज|ं औ|र उ|द्ध|सभी|श्य| जि|ाने|ार्|ारा|द्व| द्|एगा|सम्|ेश |िए |ाव |र प| दे|्तर|ा औ|ारो|यों|परा|पूर|चित|्ध |रूप| रू| सु| लि|त क|ो प|ं स|े ल|शिक| शि|वाह|े औ|जो |राध|जिस|ूर्|ी भ|ूप |ोगा|स्थ|रीय|तिक|्र |। इ|इस | उन|ले |े म|लिए|म क|कता|े य| जो|न म|अपर| पू|ो क|ा उ|ाह |नून|ानू|गी |दी |ारी|ं म|। क|तर्|ी र|श क|परि|स्त|ोई |कोई|र्य|ी अ|हित|भाव| भा|ताओ|ास |साम|विक|विव|म्म| सक|कर |ाना|ध क|निक|य क|उसक|कृत| क़ा|न स|जीव|्या|रका|्रक|ाज |न्य|्म |र्ण|क़ ह|हक़ | हक़|ी म|जिक|ाजि|ामा|क औ|मिल|ेने|लेन| ले|ये |ो अ|े ज|रिव|मय |समय|वश्|आवश| आव|ऐसी|ाध |र द|र्व|सार|प स|बन्| सह|िधा|विध|ी न|ून |क़ान",mar:"्या|या |त्य|याच|चा |ण्य|ाचा| व |कार|प्र| प्|िका|धिक|ार | अध|अधि|च्य|आहे| आह|ा अ|हे |ा क|ास |वा |्ये|्रत| स्|ता |ा स| अस| कर|स्व| का|ल्य|रत्|ाहि|कोण| को|िक |येक|्वा|ा व| त्|र आ|्य |त्र|ेका|क्ष|ा न| सं|ामा|ाच्|ंवा|िंव|किं| कि|ात |ष्ट|कास| या|यां|ांच|र्य|मिळ| मि| सा|व्य|ोणत|ने |े प|काम| सम|ंत्|ये | रा|समा|तंत|करण|ा आ|े क|हि |े स|ना |िळण|ून |ा प|ट्र|्ट्|ाष्|राष|ीय |व स|क्त|मान|र्व| आप|ळण्|्र्|ातं|वात|चे | वि|्षण|रण्| दे| व्|आपल|ही |ार्|नये| नय|मा |यास| जा|लेल| नि|े अ| पा|ा म|ले |ाही|बंध|े व|्यक| मा|शिक| शि|देश|ा द|माज|्री|ली |ान |ांन|पल्| हो|ा ह|षण |जे |िजे|हिज|पाह|ारा|यात|सर्| सर|रां|असल|ंबं|संब|िक्|ी प|ंच्|रक्|णत्| आण|ला |स्थ|रीय|ीत |ंना|त व|्व |क व|णे |ाचे|न क|त क|रता|्रा|याह|्त |ची |य क|द्ध|्वत|यक्|णि |आणि|स स|ंधा|क स|च्छ|य अ|त स|ीने|ोणा|करत|त्व|ील |ी अ|सार|र व|भाव|व त|थवा|अथव| अथ|े त|े ज|याय|ंचा|ेल्|ाने|ेण्|क आ|क्क|हक्| हक|ण म|ंरक|संर|न्य|ायद|ा त|त आ| उप|वस्|िवा|ेशा|साम|े य|े आ|ी व|व म|तीन|व आ|ध्य| अश|धात|कृत|्क |द्य|ित |सले|ेश |तो |ेल |ती |्ती|असे|इतर| इत|स्त|र्ण|ा ब|ेले| के|हीर|जाह|ा ज|ेत |ूर्|पूर|ेच | वा|ाजा|ी स|शा |य व| न्|याव|द्द|्ध |रून|यद्|काय|ा श|गण्|क क|राध| शा|यत्|ल अ|्यव|ी क|ाव |ा य|त्त|जिक|ाजि|रणा| धर|ा ध|भेद| बा|रका|्रक|केल|ि व|िष्|तील|योग|साध|ांत|विव|श्र| धे| मु|वतः",mai:"ाक |प्र|कार| प्|ार |िका|्यक|धिक|क अ|्रत|्ति|व्य| अध|ेँ |अधि|िक | व्|आʼ | आʼ|क्त|यक्|तिक|केँ|क व|बाक|क स|छैक| छै|त्य|मे |ेक | सम|क्ष|हि |रत्|र छ|येक|्ये|न्त|वा |िके|क। |ैक।|। प| अप| स्| वि| जा|ित |सँ | हो|कोन| को|त्र|स्व| वा|क आ|ष्ट| कर|अपन|मान| का| अन|ति |्त्|नो |नहि| पर|ट्र|्य | एह|ि क|्ट्|ाष्|राष| रा|समा|ोनो|ल ज| नह|ताक|ार्|पन |तन्|वतन|्वत|्षा| कए| सा|्री| नि|ा आ|िवा| सं| दे|जाए|ीय |करब|था |एबा|ा प|ना |्वा|देश|त। |रक |क ह|ँ अ| सभ| आ |त क|चित|्त |वार|ता |ारक|माज|ा स|रीय|न्य|रता|ान |्रा|्या|रक्|ारण|परि|एल |कएल|अन्|रबा|क प|ओर |आओर| आओ|अछि| अछ|िर्|ान्|नक |होए|कर |धार|स्थ|ा अ|िमे|र आ|एहि| एक|े स|तथा| तथ| मा|िक्|शिक| शि|प्त|र्व|निर|च्छ|र्य|ँ स|क क|हो |ाहि|एत।|र प|ामा|साम|षा |ʼ स|ँ ए|ैक |द्ध|र अ|क ज|स्त|ाप्|ँ क| सक|यक |कान|हन |एहन|ेल |ोएत|त आ|ा व|। क|्तर|ाएत|्रक|हु |क उ|पूर|विव|ʼ अ|छि | ले|न प|ास |राप|धक |पएब| पए|रा |यता|रूप|न व| के|षाक|य प|त ह|जाह| ओ |भाव|पर |थवा|अथव| अथ|सम्|जिक|ाजि|ूर्|रति| दो|सभक|। स| जन|सभ |बाध|अनु|िसँ| सह|ँ व|ए स|रिव|तु |ेतु|हेत| हे|ाध |ेबा|न स|िष्|राध| अव|ित्|वास|चार| उच|ारा|न क|वक |ा क|नून|ानू|एत |री |ेओ |केओ|रण |्रस|ि द|ओ व| भे|नहु|ोनह|्थि|पत्|म्प|राज| भा|हिम| हक|ामे|्ण |र्ण|हार|ि स|क द|न अ|त अ|लेब| अभ|िश्|जक |ाजक|न आ|वाह|काज|श्य|वस्|ओहि| ओह|योग|। ए|कए |े ओ|अपर",bho:" के|के |े क|ार |कार|िका|धिक|अधि| अध|ओर |आओर| आओ|े अ|े स|ा क| सं|िक |र ह|ा स| हो|र स|ें |में| मे| कर| से|नो |क्ष|से | का|। स|खे |ा। |रा | सम| सब|्रा| सक|र क|न क|वे |ौनो|कौन| कौ|चाह| चा| बा|प्र| प्|था |ि क|ति | जा| सा|े आ|पन |करे|ता |होख|त क|े। |े ब|तथा| तथ| आप|केल|सके| स्|रे |सबह|कर |आपन|े ओ|जा | पर|ष्ट| रा|ना |हवे| हव|ला |ेला|बहि| ओक|ोखे|र ब|ह। | ह।|न स|ाष्|राष|्त | और|े च|। क|संग|र आ|ट्र|्ट्|षा |मान|ा आ|ं क|ा प|्षा|रक्|हे |ाहे|ाति|ावे| जे|ही |ओकर|मिल|ित |ो स|ल ज|इखे|नइख| नइ|त्र|माज| बि|वे।|े ज|क स|िं |हिं|करा|और |े म|समा|हु | ओ |पर |े न|स्थ|रीय|्री|ला।|ाज |ान |कान|े त|िर |तिर|खात| खा|े उ|नून|ानू|ाम | सु| दे|ी क| मा|र म|प्त|िया|ाही|बा।|योग|ी स|ल ह|ून |व्य|ु क|ए क|े व|ंत्|स्व|केह|ीय |खल |साम|यता|तिक|े ह|ाप्|राप|र प|र अ| लो| सह|जे |ोग |म क|ले | नि|ेकर|ा ह|पूर|र न|ेहु|्य |या | या|देश|दी |ा म|ाव | दो|े द| पा|हि |िक्|शिक| शि|बा |िल | उप|्रत| वि| ही| ले|रो |े ख|ठन |गठन|ंगठ| मि|षण |्षण|ंरक|संर| आद| एक|ने | अप|तंत|वतं|्वत|्तर|्या|ेश |ादी|्ति|जिक|ाजि|क आ|्म |चार| उच| शा|री |ाह |याह|बिय|चित|क्त|पयो|उपय|रता|र व|न म|लोग|ह क|न प|काम| पू| इ |आदि|ईल | कई| व्|मी |ुरक|सुर| जी|धार|य स|तर्|भे |सभे| सभ|भाव|्थि|ामा|सर |र्म| को| बे|ोसर|दोस|ण क|ास |े प|जाद|आजा| आज|उचि|ग क|ारी| जर|गे |ज क|ी ब|सन |हो |ा त",npi:"को |ने | र |ार |क्त|कार|प्र| प्|्यक|व्य| गर|िका| व्|्रत|धिक|्ति|यक्|अधि| अध|ाई |मा |लाई|त्य|िक | । | सम|वा | वा|क व|्ने|र्न|गर्|न्त|छ ।|तिल|रत्|त्र|ेक |येक|्ये|िला|र स|ो स| स्|मान|क्ष| वि|हुन|ा स| हु| छ |र छ|्त्|समा|स्व|। प| सं|नेछ|ुने|हरु|तन्|वतन|े अ|िने|ो अ|्वत| का|े छ|गरि| रा|्र |ति |ाको| कु|ष्ट|ना |स्त|क स|ुनै|कुन|ट्र|ले | नि|ान |छैन| छै|्ट्|ाष्|राष|तिक|छ। |ार्|ता |ित |नै |ा अ| सा|ा व|रु | मा| अन|ा र|रता|र र|हरू|ेछ |ा प|रक्|्त | पर|था | ला|परि|देश|सको| यस|माज|ामा|्रा|िवा|ाहर|ो प|्य |वार|न स|। क|नि |्षा| त्|द्ध|र ह|तथा| तथ|यस्|्यस|री |र व|पनि|रिन|ंरक|संर|भाव|ै व|सबै| सब| शि| सह|ताक|े र|त र|लाग| सु|्षण|द्द| अप|ैन |ो व|िक्|ाव |धार|्या|्रि|ा भ|एको|र म|न अ|ो ल| उस|शिक|ात्|स्थ|वाह|ूर्|श्य|ित्|रको|ारक|ुद्|तो |्तो|ाउन|कान|िएक|ा न| पन|न। |ैन।|का |ेछ।| भे|र्य|सम्|त्प|साम|रिय|चार|निज|ुन |गि |ागि|उसक| मत| अभ|पूर|र त| सक|सार|राध|परा|अपर|ुक्|जको| उप|रा |ारा|्वा|विध|्न |ा त|न ग|णको| पा| दि|क र|र प|अन्|भेद|ारम|ो आ| अर|जिक|ाजि|िय |षा |ाट |बाट| बा|ि र| छ।|त्व|त स|रू |छ र|रका|विक|र उ|ोग |्दे|रिव|सकि|ै प|रति|अनु| आव|युक|ा ग|नमा|योग|ग ग|क अ|द्व|्ध |रुद| बि|। स|उने|ान्|ा म|िको|र्द|ारी|्तर|ो ह|हित| दे|रिक|ा क| आध|राज|र्म|्ण |र्ण|ि व|्यव|विच|बै |सहि|रोज|र्स|ई उ|्प |रात|निक|मिक|च्छ|्था|विव|कता|अभि|्धा",mag:" के|के |ार | हई|कार|ई। |हई।|िका|े अ|धिक|अधि| अध|र ह|े क|और | और|ा क|े स|सब | सब| कर|ें |था |में| मे|तथा| तथ|िक | हो| सम|क्ष|ना |ब क|र स| सं|ा स|कर | भी|। स| सा| से| का| अप|्रा|प्र| प्|से |भी | को|त क| पर|रा |क ह|पन |अपन| सक|या |ति |र क|ी क| या|करे| जा|रे | ओक|्त |सक |नो |ान |मान|ओकर|ा प|न क|ेल | ना|। क|रक्| स्|ही |होए| एक|पर |दी |ट्र|ता |व्य|हई | शा|े उ| दे|त्र|ादी| रा| ही|कान|ित |म क|ल ज|ाम |ी स|े भ|न स|माज|ष्ट|षा | ले|क स|बे |वे |ावे|मिल|र म|्य |ा ह|ला |प्त|नून|ानू|जा |ेकर|्षा|्रत|ंत्|र औ|ोई |कोई|्ट्|ाष्|राष| मा|रो | जे|करा|ोए |ाप्|राप|समा|ून |ो स|स्व|्ति|साम|ोनो|कोन| व्|र अ|्म | वि| सह|े म|क्त|योग|र व|काम|ल ह| नि|देश|पूर|वार| इ |ंरक|संर|ए क|र प| सु|तंत|वतं|्वत|ा म|व क|े व|ाथ |साथ| दो|होब| पा|ो क|े ब|ोग | उप|स्त|परि|न प|े त|्तर|लेल|े ओ|चाह| चा|य क|वा |ेश |य स|न ह|षण |ा ब|। त|एक |एल |ीय |केक|े ह|र आ|ि क|स्थ|जिक|ाजि|ामा|रीय|्री|तिक|ाति| बि|चार|े आ|ास | उच|ा त|यक्|्यक|िल |मय |समय|शाद|पयो|उपय|े ख|रिव| पू|े ल|े च|ौनो|कौन| कौ|ं क|संग|न द|ं स|ण प|्षण|र न|े न|ो भ|करो|ा औ|रता|ाव |भाव|क औ|र्म|ोसर|दोस|ण क|े प|न औ|ब ह|िक्|शिक| शि|ाबे|निय|चित|उचि|ित्|ग क|े। |त स|ी श|ं श|एकर|। ए|तन | ओ |री |्र |जे |क क| सी|सन |िवा| अन|ूरा| बच|ए। | बे|त ह| तक| मि|धार|थवा|अथव| अथ|िला|्वा|ि म| आद|ने |कएल| कए|्या"}},kbt=2048,Fbt=10,Sbe=300,MD={}.hasOwnProperty;let W9;const TD={};for(W9 in VN)if(MD.call(VN,W9)){const t=VN[W9];let e;TD[W9]={};for(e in t)if(MD.call(t,e)){const n=t[e].split("|"),r={};let i=n.length;for(;i--;)r[n[i]]=i;TD[W9][e]=r}}function bbe(t,e){return ybe(t,e)[0][0]}T(bbe,"franc");function ybe(t,e={}){const n=[...e.whitelist||[],...e.only||[]],r=[...e.blacklist||[],...e.ignore||[]],i=e.minLength!==null&&e.minLength!==void 0?e.minLength:Fbt;if(!t||t.length<i)return LD();t=t.slice(0,kbt);const a=Rbe(t,Nbt);return!a[0]||!(a[0]in TD)?!a[0]||a[1]===0||!$J(a[0],n,r)?LD():WJ(a[0]):Ebe(t,wbe(_be(t),TD[a[0]],n,r))}T(ybe,"francAll");function Ebe(t,e){const n=e[0][1],r=t.length*Sbe-n;let i=-1;for(;++i<e.length;)e[i][1]=1-(e[i][1]-n)/r||0;return e}T(Ebe,"normalize");function Rbe(t,e){let n=-1,r,i;for(i in e)if(MD.call(e,i)){const a=Abe(t,e[i]);a>n&&(n=a,r=i)}return[r,n]}T(Rbe,"getTopScript");function Abe(t,e){const n=t.match(e);return(n?n.length:0)/t.length||0}T(Abe,"getOccurrence");function wbe(t,e,n,r){e=Ibe(e,n,r);const i=[];let a;if(e)for(a in e)MD.call(e,a)&&i.push([a,Dbe(t,e[a])]);return i.length===0?LD():i.sort(Pbe)}T(wbe,"getDistances");function Dbe(t,e){let n=0,r=-1;for(;++r<t.length;){const i=t[r];let a=Sbe;i[0]in e&&(a=i[1]-e[i[0]]-1,a<0&&(a=-a)),n+=a}return n}T(Dbe,"getDistance");function Ibe(t,e,n){if(e.length===0&&n.length===0)return t;const r={};let i;for(i in t)$J(i,e,n)&&(r[i]=t[i]);return r}T(Ibe,"filterLanguages");function $J(t,e,n){return e.length===0&&n.length===0?!0:(e.length===0||e.includes(t))&&!n.includes(t)}T($J,"allow");function LD(){return WJ("und")}T(LD,"und");function WJ(t){return[[t,1]]}T(WJ,"singleLanguageTuples");function Pbe(t,e){return t[1]-e[1]}T(Pbe,"sort");const Vbt={spa:bi.Es,eng:bi.EnUs,rus:bi.Ru,ben:bi.Bn,hin:bi.Hi,por:bi.Pt,ind:bi.Id,fra:bi.Fr,deu:bi.De1901,tel:bi.Te,mar:bi.Mr,ita:bi.It,tam:bi.Ta,tur:bi.Tr,guj:bi.Gu,pol:bi.Pl,ukr:bi.Uk,kan:bi.Kn,mal:bi.Ml,ron:bi.Ro,pan:bi.Pa,hrv:bi.Hr,nld:bi.Nl,srp:bi.SrCyrl,tha:bi.Th,uzn:bi.Kmr,zlm:bi.Ml,hun:bi.Hu,ell:bi.ElMonoton,ces:bi.Cs,bel:bi.Be,bul:bi.Bg,swe:bi.Sv,und:bi.UNKNOWN},cz=class Mbe{constructor(){q(this,"_detectCache",new Map)}static getInstance(){return this._instance==null&&(this._instance=new Mbe),this._instance}detect(e){var n;let r=this._detectCache.get(e);if(r)return r;const i=bbe(e);return r=(n=Vbt[i])!=null?n:bi.UNKNOWN,this._detectCache.set(e,r),r}dispose(){this._detectCache.clear()}};T(cz,"LanguageDetector"),q(cz,"_instance",null);let Bbt=cz;function Tbe(t){const e=new Set;t.skeleton.pages=t.skeleton.pages.filter(n=>{const r=e.has(n);return e.add(n),!r})}T(Tbe,"removeDupPages");function dz(t){const e=[];let n=t,r=n.parent;for(;r;){if(r.pages){const i=r.pages.indexOf(n);i!==-1&&e.unshift("pages",i)}else if(r.cells){const i=r.cells.indexOf(n);i!==-1&&e.unshift("cells",i)}else if(r.rows){const i=r.rows.indexOf(n);i!==-1&&e.unshift("rows",i)}else r.skeTables&&r.skeTables.has(n.tableId)&&e.unshift("skeTables",n.tableId);n=r,r=r==null?void 0:r.parent}return e}T(dz,"getPagePath");const Lbe=class xbe extends CD{constructor(e,n){super(n),q(this,"_dirty$",new Zt),q(this,"dirty$",this._dirty$.asObservable()),q(this,"_skeletonData"),q(this,"_findLiquid",new pS),q(this,"_hyphen",Tbt.getInstance()),q(this,"_languageDetector",Bbt.getInstance()),q(this,"_iteratorCount",0),this._docViewModel=e}static create(e,n){return new xbe(e,n)}dispose(){super.dispose(),this._skeletonData=null,this._findLiquid=null,this._docViewModel.dispose()}getViewModel(){return this._docViewModel}calculate(e){if(!this.dirty)return;const n=this._prepareLayoutContext();this._skeletonData=this._createSkeleton(n,e),this._dirty$.next(!0)}getSkeletonData(){return this._skeletonData}getActualSize(){const e=this.getSkeletonData();let n=Number.NEGATIVE_INFINITY,r=0;return e==null||e.pages.forEach(i=>{const{width:a,height:o}=i;n=Math.max(n,a),r+=o}),{actualWidth:n,actualHeight:r}}_getPageActualWidth(e){let n=Number.NEGATIVE_INFINITY;for(const r of e.sections)for(const i of r.columns)for(const a of i.lines){let o=0;for(const s of a.divides)for(const l of s.glyphGroup)o+=l.width;n=Math.max(n,o)}return n}getPageSize(){return this.getViewModel().getDataModel().documentStyle.pageSize}findPositionByGlyph(e,n){const r=e.parent,i=r==null?void 0:r.parent,a=i==null?void 0:i.parent,o=a==null?void 0:a.parent,s=o==null?void 0:o.parent,l=this.getSkeletonData();if(!r||!a||!o||!s||!l)return;const u=s.type,c=r.glyphGroup.indexOf(e),d=i.divides.indexOf(r),h=a.lines.indexOf(i),f=o.columns.indexOf(a),m=s.sections.indexOf(o);let g=-1;const p=dz(s);switch(u){case Lr.HEADER:case Lr.FOOTER:{g=0;break}case Lr.BODY:{g=l.pages.indexOf(s);break}case Lr.CELL:{g=p[1];break}default:throw new Error("Invalid page type")}return{glyph:c,divide:d,line:h,column:f,section:m,page:g,segmentPage:n,pageType:u,path:p}}findCharIndexByPosition(e){const n=this.findGlyphByPosition(e),r=n==null?void 0:n.parent;if(r==null)return;const{st:i,glyphGroup:a}=r;let o=i;for(const s of a){if(s===n)break;o+=s.count}return e.isBack?o:o+n.count}findNodePositionByCharIndex(e,n=!0,r="",i=-1){const a=this._findNodeByIndex(e,r,i);if(a==null)return;const o=this.getSkeletonData();if(!o)return;const s=o.pages,{glyph:l,divide:u,line:c,column:d,section:h,page:f,segmentPageIndex:m,pageType:g}=a,p=dz(f);let v=-1;switch(g){case Lr.HEADER:case Lr.FOOTER:{v=0;break}case Lr.BODY:{v=s.indexOf(f);break}case Lr.CELL:{v=p[1];break}default:throw new Error("Invalid page type")}return{glyph:u.glyphGroup.indexOf(l),divide:c.divides.indexOf(u),line:d.lines.indexOf(c),column:h.columns.indexOf(d),section:f.sections.indexOf(h),page:v,pageType:g,segmentPage:m,isBack:n,path:p}}findNodeByCharIndex(e,n="",r=-1){const i=this._findNodeByIndex(e,n,r);return i==null?void 0:i.glyph}findGlyphByPosition(e){var n,r;if(e==null)return;const i=this.getSkeletonData();if(i==null)return;const{pages:a,skeFooters:o,skeHeaders:s}=i,{divide:l,line:u,column:c,section:d,segmentPage:h,pageType:f,path:m}=e;let{glyph:g}=e,p=null;if(f===Lr.HEADER||f===Lr.FOOTER){p=a[h];const{headerId:_,footerId:C,pageWidth:S}=p;if(f===Lr.HEADER){const b=(n=s.get(_))==null?void 0:n.get(S);if(b==null)return;p=b}else if(f===Lr.FOOTER){const b=(r=o.get(C))==null?void 0:r.get(S);if(b==null)return;p=b}}else p=f_(i,m);if(p==null)return;const v=p.sections[d].columns[c].lines[u].divides[l].glyphGroup;return g=Math.min(g,v.length-1),v[g].glyphType===Ql.LIST&&(g+=1),v[g]}findEditAreaByCoord(e,n,r,i){const{x:a,y:o}=e;let s=Ya.BODY,l=-1,u=null;const c=this.getSkeletonData();if(c==null)return{editArea:s,page:u,pageNumber:l};this._findLiquid.reset();const{pages:d}=c;for(let h=0,f=d.length;h<f;h++){const m=d[h],{marginTop:g,marginBottom:p,pageWidth:v,pageHeight:_}=m;if(a>this._findLiquid.x&&a<this._findLiquid.x+v&&o>this._findLiquid.y&&o<this._findLiquid.y+g){s=Ya.HEADER,u=m,l=h;break}if(a>this._findLiquid.x&&a<this._findLiquid.x+v&&o>this._findLiquid.y+g&&o<this._findLiquid.y+_-p){s=Ya.BODY,u=m,l=h;break}if(a>this._findLiquid.x&&a<this._findLiquid.x+v&&o>this._findLiquid.y+_-p&&o<this._findLiquid.y+_){s=Ya.FOOTER,u=m,l=h;break}this._translatePage(m,n,r,i)}return{editArea:s,page:u,pageNumber:l}}findNodeByCoord(e,n,r,i,a){var o,s,l,u,c,d;const{x:h,y:f}=e,m=this.getSkeletonData();if(m==null)return;const g={nearestNodeList:[],nearestNodeDistanceList:[]},{pages:p,skeHeaders:v,skeFooters:_}=m,C=this.findEditAreaByCoord(e,n,r,i).editArea;if(this._findLiquid.reset(),a==null)for(let S=0,b=p.length;S<b;S++){const y=p[S],{headerId:A,footerId:w,pageWidth:P}=y;let M=null;if(C===Ya.HEADER||C===Ya.FOOTER){const L=(o=v.get(A))==null?void 0:o.get(P);L&&(M=this._collectNearestNode(L,Lr.HEADER,y,A,S,g,h,f));const k=(s=_.get(w))==null?void 0:s.get(P);k&&(M=M??this._collectNearestNode(k,Lr.FOOTER,y,w,S,g,h,f))}else M=this._collectNearestNode(y,Lr.BODY,y,"",S,g,h,f);if(M)return M;this._translatePage(y,n,r,i)}else{const{segmentId:S,segmentPage:b,strict:y}=a;let A=null;if(y===!1)for(let w=0,P=p.length;w<P;w++){const M=p[w],{headerId:L,footerId:k,pageWidth:O}=M;if(S!==""){const $=(l=v.get(L))==null?void 0:l.get(O);$&&(A=this._collectNearestNode($,Lr.HEADER,M,L,w,g,h,f));const B=(u=_.get(k))==null?void 0:u.get(O);B&&(A=A??this._collectNearestNode(B,Lr.FOOTER,M,k,w,g,h,f))}else A=this._collectNearestNode(M,Lr.BODY,M,"",w,g,h,f);if(A)return A;this._translatePage(M,n,r,i)}else for(let w=0,P=p.length;w<P;w++){const M=p[w];if(S){if(b!==w){this._translatePage(M,n,r,i);continue}const{headerId:L,pageWidth:k}=M,O=S===L?(c=v.get(S))==null?void 0:c.get(k):(d=_.get(S))==null?void 0:d.get(k);O&&(A=this._collectNearestNode(O,S===L?Lr.HEADER:Lr.FOOTER,M,S,b,g,h,f))}else A=this._collectNearestNode(M,Lr.BODY,M,"",w,g,h,f);if(A)return A;this._translatePage(M,n,r,i)}}return this._getNearestNode(g.nearestNodeList,g.nearestNodeDistanceList)}_collectNearestNode(e,n,r,i,a,o,s,l,u=0){var c,d,h,f,m,g,p,v,_;const{sections:C,skeTables:S}=e;this._findLiquid.translateSave();const b=this._findLiquid.x,y=b+r.pageWidth,A=this._findLiquid.y+(n===Lr.FOOTER?r.pageHeight-e.pageHeight:0),w=A+e.pageHeight,P=s>=b&&s<=y&&l>=A&&l<=w;switch(n){case Lr.HEADER:{this._findLiquid.translatePagePadding({...e,marginLeft:r.marginLeft});break}case Lr.FOOTER:{const L=r.pageHeight-e.height-e.marginBottom;this._findLiquid.translate(r.marginLeft,L);break}default:{this._findLiquid.translatePagePadding(r);break}}if(P){let L=Number.POSITIVE_INFINITY;for(const k of C){const{columns:O}=k;this._findLiquid.translateSave(),this._findLiquid.translateSection(k);for(const $ of O){const{lines:B}=$;this._findLiquid.translateSave(),this._findLiquid.translateColumn($);for(let V=0;V<B.length;V++){const X=B[V],{divides:z,type:F,lineHeight:H=0}=X;if(F!==Q6.BLOCK){this._findLiquid.translateSave(),this._findLiquid.translateLine(X);const{y:W}=this._findLiquid,K=W,G=W+H,te=Math.abs(l-G),Y=z.length;for(let ae=0;ae<Y;ae++){const ie=z[ae],{glyphGroup:ne}=ie;this._findLiquid.translateSave(),this._findLiquid.translateDivide(ie);const{x:de}=this._findLiquid;for(const _e of ne){if(!_e.content||_e.content.length===0)continue;const{width:Pe,left:De}=_e,Ee=de+De,ye=de+De+Pe,Ve=Math.abs(s-ye);if(l>=K&&l<=G){if(s>=Ee&&s<=ye)return{node:_e,segmentPage:n===Lr.BODY?-1:a,segmentId:i,ratioX:s/(Ee+ye),ratioY:l/(K+G)};L!==Number.NEGATIVE_INFINITY&&(o.nearestNodeList=[],o.nearestNodeDistanceList=[]),o.nearestNodeList.push({node:_e,segmentPage:n===Lr.BODY?-1:a,segmentId:i,ratioX:s/(Ee+ye),ratioY:l/(K+G)}),o.nearestNodeDistanceList.push({coordInPage:P,distance:Ve,nestLevel:u}),L=Number.NEGATIVE_INFINITY;continue}te<L&&(L=te,o.nearestNodeList=[],o.nearestNodeDistanceList=[]),te===L&&(o.nearestNodeList.push({node:_e,segmentPage:n===Lr.BODY?-1:a,segmentId:i,ratioX:s/(Ee+ye),ratioY:l/(K+G)}),o.nearestNodeDistanceList.push({coordInPage:P,distance:Ve,nestLevel:u}))}this._findLiquid.translateRestore()}this._findLiquid.translateRestore()}}this._findLiquid.translateRestore()}this._findLiquid.translateRestore()}}let M=null;if(S.size>0)for(const L of S.values()){const{top:k,left:O,rows:$}=L;(c=this._findLiquid)==null||c.translateSave(),(d=this._findLiquid)==null||d.translate(O,k);for(const B of $){const{top:V,cells:X}=B;(h=this._findLiquid)==null||h.translateSave(),(f=this._findLiquid)==null||f.translate(0,V);for(const z of X){const{left:F}=z;(m=this._findLiquid)==null||m.translateSave(),(g=this._findLiquid)==null||g.translate(F,0),M=M??this._collectNearestNode(z,Lr.CELL,z,i,a,o,s,l,u+1),(p=this._findLiquid)==null||p.translateRestore()}(v=this._findLiquid)==null||v.translateRestore()}(_=this._findLiquid)==null||_.translateRestore()}if(M)return this._findLiquid.translateRestore(),M;this._findLiquid.translateRestore()}_getNearestNode(e,n){if(n.length===0)return;if(n.length===1)return e[0];let r=n[0];for(let a=1;a<n.length;a++){const{distance:o,nestLevel:s,coordInPage:l}=n[a];if(s>r.nestLevel){r=n[a];continue}if(s===r.nestLevel){if(l===r.coordInPage){if(o<r.distance){r=n[a];continue}}else if(l){r=n[a];continue}}}const i=n.indexOf(r);return e[i]}_getPageBoundingBox(e,n){const{pageWidth:r,pageHeight:i}=e,{x:a,y:o}=this._findLiquid;let s=-1,l=-1;return n===cc.VERTICAL?(s=r,l=o+i):n===cc.HORIZONTAL&&(s=a+r,l=i),{startX:a,startY:o,endX:s,endY:l}}_translatePage(e,n,r,i){this._findLiquid.translatePage(e,n,r,i)}_prepareLayoutContext(){const e=this.getViewModel(),n=e.getDataModel(),{headerTreeMap:r,footerTreeMap:i}=e,{documentStyle:a,drawings:o,lists:s={}}=n,l={...Z0,...s},{paragraphLineGapDefault:u=0,defaultTabStop:c=10.5,textStyle:d={}}=a,h={headerTreeMap:r,footerTreeMap:i,lists:l,drawings:o,localeService:this._localService,paragraphLineGapDefault:u,defaultTabStop:c,documentTextStyle:d},f=b5e(),{skeHeaders:m,skeFooters:g,skeListLevel:p,drawingAnchor:v}=f;return{viewModel:e,dataModel:n,skeleton:f,skeletonResourceReference:{skeHeaders:m,skeFooters:g,skeListLevel:p,drawingAnchor:v},docsConfig:h,layoutStartPointer:{"":null},isDirty:!1,drawingsCache:new Map,paragraphConfigCache:new Map,sectionBreakConfigCache:new Map,paragraphsOpenNewPage:new Set,hyphen:this._hyphen,languageDetector:this._languageDetector}}_createSkeleton(e,n){var r;const{viewModel:i,skeleton:a,skeletonResourceReference:o}=e,s=a.pages;i.resetCache();let l=0;const u=e.layoutStartPointer[""];if(e.layoutStartPointer[""]=null,u!=null)for(let c=0;c<i.children.length;c++){const d=i.children[c],{endIndex:h,startIndex:f}=d;if(u>=f&&u<=h){l=c;break}}for(let c=l,d=i.children.length;c<d;c++){const h=i.children[c],f=E5e(e,c),{sectionType:m,columnProperties:g,columnSeparatorType:p,sectionTypeNext:v,pageNumberStart:_=1}=f;let C=ap(s),S=!1;e.sectionBreakConfigCache.set(h.endIndex,f),m===ow.CONTINUOUS?(h_(s),this._addNewSectionByContinuous(C,g,p),S=!0):(u==null||C==null)&&(C=D0(e,f,o,(r=C==null?void 0:C.pageNumber)!=null?r:_));const{pages:b}=WT(e,i,h,C,f,u);if(v===ow.CONTINUOUS&&g.length>0,S&&b.splice(0,1),s.push(...b),e.isDirty)break}if(e.isDirty&&this._iteratorCount<10)return this._iteratorCount++,lJ(e),this._createSkeleton(e,n);this._iteratorCount=0,Tbe(e),h_(a.pages),$E(e,a.pages);for(const c of a.skeHeaders.values())for(const d of c.values())$E(e,[d]);for(const c of a.skeFooters.values())for(const d of c.values())$E(e,[d]);return y5e(a.pages,a),a}_addNewSectionByContinuous(e,n,r){const i=e.sections,a=i[i.length-1],{pageWidth:o,pageHeight:s,marginTop:l,marginBottom:u,marginLeft:c,marginRight:d}=e,h=o-c-d,f=s-l-u,m=((a==null?void 0:a.top)||0)+((a==null?void 0:a.height)||0),g=JZ(n,r,m,0,h,f-m);g.parent=e,i.push(g)}_findNodeByIndex(e,n="",r=-1){var i,a;const o=this.getSkeletonData();if(o==null)return;const{pages:s,skeFooters:l,skeHeaders:u}=o;for(const c of s){const d=s.indexOf(c);if(n&&d!==r)continue;const{pageWidth:h,skeTables:f}=c;let m=c;if(n){const _=(i=u.get(n))==null?void 0:i.get(h),C=(a=l.get(n))==null?void 0:a.get(h);if(_)m=_;else if(C)m=C;else continue}if(n===""){let _=!1;for(const C of f.values()){const{rows:S}=C;for(const b of S){const{cells:y}=b;for(const A of y){const{st:w,ed:P}=A;if(e>=w&&e<=P){m=A,_=!0;break}}if(_)break}if(_)break}}const{sections:g,st:p,ed:v}=m;if(!(e<p||e>v))for(const _ of g){const{columns:C,st:S,ed:b}=_;if(!(e<S||e>b))for(const y of C){const{lines:A,st:w,ed:P}=y;if(!(e<w||e>P))for(const M of A){const{divides:L,st:k,ed:O}=M,$=L.length;if(!(e<k||e>O))for(let B=0;B<$;B++){const V=L[B],{glyphGroup:X,st:z,ed:F}=V;if(e<z||e>F)continue;let H=e-z;for(const W of X)if(H-=W.count,H<0)return{page:m,pageType:m.type,section:_,column:y,line:M,divide:V,glyph:W,segmentPageIndex:r}}}}}}}};T(Lbe,"DocumentSkeleton");let X4=Lbe;var Ubt=Object.defineProperty,Hbt=Object.getOwnPropertyDescriptor,jbt=T((t,e,n,r)=>{for(var i=r>1?void 0:r?Hbt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ubt(e,n,i),i},"__decorateClass$3"),hse=T((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3");function Obe(t,e,n){var r;const i=t.getBody();if((r=i.customRanges)!=null&&r.some(o=>o.rangeType===cd.HYPERLINK))return;const a=Aa.customRange.add({range:{startOffset:0,endOffset:i.dataStream.length-1,collapsed:!1},rangeId:n,rangeType:cd.HYPERLINK,body:i,properties:{url:e,refId:n}});a&&Vi.apply(i,a.serialize())}T(Obe,"addLinkToDocumentModel");function ef(t,e=0){const n=t==null?void 0:t.getSkeletonData(),r=uc(e);if(!n)return null;const{pages:i}=n,a=i[i.length-1],{width:o,height:s}=a;if(r===0)return{width:o,height:s};if(Math.abs(r)===Math.PI/2)return{width:s,height:o};let l=0,u=0;const c=[];g5e([a],h=>{const{lines:f,width:m,spaceWidth:g}=h,{rotatedHeight:p,rotatedWidth:v}=XZ(f,m,r);u+=p,c.push({rotatedWidth:v,spaceWidth:g})});const d=c.length;for(let h=0;h<d;h++){const{rotatedWidth:f}=c[h];h===0&&(l+=f)}return{width:l,height:u}}T(ef,"getDocsSkeletonPageSize");const fse={isDeepClone:!1,displayRawFormula:!1,ignoreTextRotation:!1},hz={t:0,b:1,l:2,r:2},Nbe="RENDER_RAW_FORMULA";var BN;let fz=(BN=class extends CD{constructor(t,e,n,r,i,a){super(i),q(this,"_rowHeightAccumulation",[]),q(this,"_columnWidthAccumulation",[]),q(this,"_rowTotalHeight",0),q(this,"_columnTotalWidth",0),q(this,"_rowHeaderWidth",0),q(this,"_columnHeaderHeight",0),q(this,"_rowColumnSegment",{startRow:-1,endRow:-1,startColumn:-1,endColumn:-1}),q(this,"_overflowCache",new Ct),q(this,"_stylesCache",{background:{},backgroundPositions:new Ct,font:{},border:new Ct}),q(this,"_cellBgAndBorderCache",new Ct),q(this,"_showGridlines",at.TRUE),q(this,"_marginTop",0),q(this,"_marginLeft",0),q(this,"_renderRawFormula",!1),this.worksheet=t,this._worksheetData=e,this._cellData=n,this._styles=r,this._contextService=a,this._updateLayout(),this._initContextListener()}get rowHeightAccumulation(){return this._rowHeightAccumulation}get rowTotalHeight(){return this._rowTotalHeight}get columnWidthAccumulation(){return this._columnWidthAccumulation}get columnTotalWidth(){return this._columnTotalWidth}get rowHeaderWidth(){return this._rowHeaderWidth}get columnHeaderHeight(){return this._columnHeaderHeight}get rowColumnSegment(){return this._rowColumnSegment}get stylesCache(){return this._stylesCache}get overflowCache(){return this._overflowCache}get showGridlines(){return this._showGridlines}get mergeData(){return this._worksheetData.mergeData}get rowHeaderWidthAndMarginLeft(){return this.rowHeaderWidth+this._marginLeft}get columnHeaderHeightAndMarginTop(){return this.columnHeaderHeight+this._marginTop}dispose(){super.dispose(),this._rowHeightAccumulation=[],this._columnWidthAccumulation=[],this._rowTotalHeight=0,this._columnTotalWidth=0,this._rowHeaderWidth=0,this._columnHeaderHeight=0,this._rowColumnSegment=null,this._stylesCache={background:{},backgroundPositions:new Ct,font:{},border:new Ct},this._cellBgAndBorderCache=null,this._overflowCache=null,this._worksheetData=null,this._cellData=null,this._styles=null}getsStyles(){return this._styles}getLocation(){return[this.worksheet.getUnitId(),this.worksheet.getSheetId()]}_initContextListener(){this.disposeWithMe(this._contextService.subscribeContextValue$(Nbe).pipe(Du(!1),Hl()).subscribe(t=>{this._renderRawFormula=t,this._resetCache(),this.makeDirty(!0)}))}setOverflowCache(t){this._overflowCache=t}setMarginLeft(t){this._marginLeft=t}setMarginTop(t){this._marginTop=t}getFont(t,e){const n=this.stylesCache.font;if(!n)return null;for(const r in n){const i=n[r].getValue(t,e);if(i)return i}return null}calculateSegment(t){return!this._worksheetData||(this._updateLayout(),!this._rowHeightAccumulation||!this._columnWidthAccumulation)?!1:(t!=null&&(this._rowColumnSegment=this.getRowColumnSegment(t)),!0)}calculateWithoutClearingCache(t){if(this.calculateSegment(t))return this._calculateStylesCache(),this}calculate(t){return this._resetCache(),this.calculateWithoutClearingCache(t),this}calculateAutoHeightInRange(t){var e;if(!Ie.isArray(t))return[];const n=[],{rowData:r}=this._worksheetData,i=r,a=new Set;for(const o of t){const{startRow:s,endRow:l,startColumn:u,endColumn:c}=o;for(let d=s;d<=l;d++)if(!(a.has(d)||((e=i[d])==null?void 0:e.ia)===at.FALSE)&&this._hasUnMergedCellInRow(d,u,c)){const h=this._calculateRowAutoHeight(d);a.add(d),n.push({row:d,autoHeight:h})}}return n}_hasUnMergedCellInRow(t,e,n){if(!this.worksheet.getMergeData())return!1;for(let r=e;r<=n;r++){const{isMerged:i,isMergedMainCell:a}=this._getCellMergeInfo(t,r);if(!i&&!a)return!0}return!1}_calculateRowAutoHeight(t){var e,n,r;const{columnCount:i,columnData:a,defaultRowHeight:o,defaultColumnWidth:s}=this._worksheetData;let l=o;const u=this.worksheet;if(!u)return l;for(let c=0;c<i;c++){const{isMerged:d,isMergedMainCell:h}=this._getCellMergeInfo(t,c);if(d||h)continue;const f=u.getCell(t,c);if(f!=null&&f.interceptorAutoHeight){const A=f.interceptorAutoHeight();if(A){l=Math.max(l,A);continue}}const m=f&&this._getCellDocumentModel(f);if(m==null)continue;const{documentModel:g,textRotation:p,wrapStrategy:v}=m;if(g==null)continue;const _=new H4(g),{vertexAngle:C}=Qm(p),S=(n=(e=a[c])==null?void 0:e.w)!=null?n:s;typeof S=="number"&&v===Li.WRAP&&g.updateDocumentDataPageSize(S);const b=X4.create(_,this._localService);b.calculate();let{height:y=0}=(r=ef(b,C))!=null?r:{};if(b){const A=b.getSkeletonData(),{marginTop:w,marginBottom:P,marginLeft:M,marginRight:L}=A.pages[A.pages.length-1],k=Math.abs(uc(C));y+=w*Math.cos(k)+L*Math.sin(k)+P*Math.cos(k)+M*Math.sin(k)}l=Math.max(l,y)}return Math.min(l,Uht)}_updateLayout(){if(!this.dirty)return;const{rowData:t,columnData:e,defaultRowHeight:n,defaultColumnWidth:r,rowCount:i,columnCount:a,rowHeader:o,columnHeader:s,showGridlines:l}=this._worksheetData,{rowTotalHeight:u,rowHeightAccumulation:c}=this._generateRowMatrixCache(i,t,n),{columnTotalWidth:d,columnWidthAccumulation:h}=this._generateColumnMatrixCache(a,e,r);this._rowHeaderWidth=o.hidden!==at.TRUE?this._dynamicallyUpdateRowHeaderWidth(o):0,this._columnHeaderHeight=s.hidden!==at.TRUE?s.height:0,this._rowTotalHeight=u,this._rowHeightAccumulation=c,this._columnTotalWidth=d,this._columnWidthAccumulation=h,this._showGridlines=l,this.makeDirty(!1)}_dynamicallyUpdateRowHeaderWidth(t){const e=`${this.worksheet.getRowCount()}`.length*8;return Math.max(t.width,e)}getRowColumnSegment(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t==null?void 0:t.cacheBound)}getWorksheetConfig(){return this._worksheetData}getRowColumnSegmentByViewBound(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t)}getMergeBounding(t,e,n,r){const i=this._worksheetData.mergeData;if(!i)return{startRow:t,startColumn:e,endRow:n,endColumn:r};let a=!0;const o=new Ct;for(;a;){a=!1;for(let s=0;s<i.length;s++){const{startRow:l,startColumn:u,endRow:c,endColumn:d}=i[s];o.getValue(l,u)||F7e({left:e,top:t,right:r,bottom:n},{left:u,top:l,right:d,bottom:c})&&(t=Math.min(t,l),e=Math.min(e,u),n=Math.max(n,c),r=Math.max(r,d),o.setValue(l,u,!0),a=!0)}}return{startRow:t,startColumn:e,endRow:n,endColumn:r}}appendToOverflowCache(t,e,n,r){this._overflowCache.setValue(t,e,{startRow:t,endRow:t,startColumn:n,endColumn:r})}getColumnCount(){return this._columnWidthAccumulation.length}getRowCount(){return this._rowHeightAccumulation.length}getOverflowPosition(t,e,n,r,i){var a;const o=(a=t==null?void 0:t.width)!=null?a:0;let s=r,l=r;return e===dr.CENTER?(s=this._getOverflowBound(n,r,0,o/2,e),l=this._getOverflowBound(n,r,i-1,o/2,e)):e===dr.RIGHT?s=this._getOverflowBound(n,r,0,o):l=this._getOverflowBound(n,r,i-1,o),{startColumn:s,endColumn:l}}getNoMergeCellPositionByIndex(t,e){const{rowHeightAccumulation:n,columnWidthAccumulation:r,rowHeaderWidthAndMarginLeft:i,columnHeaderHeightAndMarginTop:a}=this;let{startY:o,endY:s,startX:l,endX:u}=Gm(t,e,n,r);return o+=a,s+=a,l+=i,u+=i,{startY:o,endY:s,startX:l,endX:u}}getNoMergeCellPositionByIndexWithNoHeader(t,e){const{rowHeightAccumulation:n,columnWidthAccumulation:r}=this,{startY:i,endY:a,startX:o,endX:s}=Gm(t,e,n,r);return{startY:i,endY:a,startX:o,endX:s}}calculateCellIndexByPosition(t,e,n,r,i){const{row:a,column:o}=this.getCellPositionByOffset(t,e,n,r,i);return this.getCellByIndex(a,o)}getCellPositionByOffset(t,e,n,r,i,a){const o=this.getRowPositionByOffsetY(e,r,i,a),s=this.getColumnPositionByOffsetX(t,n,i,a);return{row:o,column:s}}getColumnPositionByOffsetX(t,e,n,r){var i;t=this.getTransformOffsetX(t,e,n);const{columnWidthAccumulation:a}=this;let o=Nh(a,t);return o===Number.POSITIVE_INFINITY?o=a.length-1:o===-1&&(o=0),r&&Math.abs(a[o]-t)<Math.abs(t-((i=a[o-1])!=null?i:0))&&(o=o+1),o}getRowPositionByOffsetY(t,e,n,r){var i;const{rowHeightAccumulation:a}=this;t=this.getTransformOffsetY(t,e,n);let o=Nh(a,t);return o===Number.POSITIVE_INFINITY?o=a.length-1:o===-1&&(o=0),r&&Math.abs(a[o]-t)<Math.abs(t-((i=a[o-1])!=null?i:0))&&(o=o+1),o}getTransformOffsetX(t,e,n){const{x:r}=n;return t=t/e+r-this.rowHeaderWidthAndMarginLeft,t}getTransformOffsetY(t,e,n){const{y:r}=n;return t=t/e+r-this.columnHeaderHeightAndMarginTop,t}getOffsetByPositionX(t){const{columnWidthAccumulation:e,rowHeaderWidthAndMarginLeft:n}=this,r=e.length-1,i=e[t];return i!=null?i+n:t<0?n:e[r]+n}getOffsetByPositionY(t){const{rowHeightAccumulation:e,columnHeaderHeightAndMarginTop:n}=this,r=e.length-1,i=e[t];return i!=null?i+n:t<0?n:e[r]+n}getCellByIndex(t,e){const{rowHeightAccumulation:n,columnWidthAccumulation:r,rowHeaderWidthAndMarginLeft:i,columnHeaderHeightAndMarginTop:a}=this,o=j5(t,e,n,r,this._getCellMergeInfo(t,e)),{isMerged:s,isMergedMainCell:l}=o;let{startY:u,endY:c,startX:d,endX:h,mergeInfo:f}=o;return u+=a,c+=a,d+=i,h+=i,f=tW(f,i,a),{actualRow:t,actualColumn:e,startY:u,endY:c,startX:d,endX:h,isMerged:s,isMergedMainCell:l,mergeInfo:f}}getCellByIndexWithNoHeader(t,e){const{rowHeightAccumulation:n,columnWidthAccumulation:r}=this,i=j5(t,e,n,r,this._getCellMergeInfo(t,e)),{isMerged:a,isMergedMainCell:o}=i,{startY:s,endY:l,startX:u,endX:c,mergeInfo:d}=i,h=tW(d,0,0);return{actualRow:t,actualColumn:e,startY:s,endY:l,startX:u,endX:c,isMerged:a,isMergedMainCell:o,mergeInfo:h}}convertTransformToOffsetX(t,e,n){const{x:r}=n;return t=(t-r)*e,t}convertTransformToOffsetY(t,e,n){const{y:r}=n;return t=(t-r)*e,t}getSelectionMergeBounding(t,e,n,r){return this.getMergeBounding(t,e,n,r)}getBlankCellDocumentModel(t){const e=this._getCellDocumentModel(t,{ignoreTextRotation:!0}),n=this._styles.getStyleByCell(t),r=this._getFontFormat(n);if(e!=null)return e.documentModel==null&&(e.documentModel=this._getDocumentDataByStyle("",r,{})),e;const i="";let a="document";const o=ba.tr,s=ba.ht,l=ba.vt,u=ba.tb,c=hz;return a=rp({},this._localService).fontCache,{documentModel:this._getDocumentDataByStyle(i,r,{}),fontString:a,textRotation:o,wrapStrategy:u,verticalAlign:l,horizontalAlign:s,paddingData:c}}getCellDocumentModelWithFormula(t){return this._getCellDocumentModel(t,{isDeepClone:!0,displayRawFormula:!0,ignoreTextRotation:!0})}_getCellDocumentModel(t,e=fse){var n;const{isDeepClone:r,displayRawFormula:i,ignoreTextRotation:a}={...fse,...e},o=this._styles.getStyleByCell(t);if(!t)return;let s,l="document";const u=this._getOtherStyle(o),c=a?ba.tr:u.textRotation||ba.tr;let d=u.horizontalAlign||ba.ht;const h=u.verticalAlign||ba.vt,f=u.wrapStrategy||ba.tb,m=u.paddingData||hz;if(t.f&&i)s=this._getDocumentDataByStyle(t.f.toString(),{},{verticalAlign:h}),d=ba.ht;else if(t.p){const{centerAngle:g,vertexAngle:p}=Qm(c);s=this._updateConfigAndGetDocumentModel(r?Ie.deepClone(t.p):t.p,d,m,{horizontalAlign:d,verticalAlign:h,centerAngle:g,vertexAngle:p,wrapStrategy:f})}else if(t.v!=null){const g=this._getFontFormat(o);l=rp(g,this._localService).fontCache;let p=rM(t);t.t===rr.FORCE_STRING&&i&&(p=`'${p}`),s=this._getDocumentDataByStyle(p,g,{...u,textRotation:c,cellValueType:t.t})}return s&&t.linkUrl&&t.linkId&&Obe(s,t.linkUrl,t.linkId),{documentModel:s,fontString:l,textRotation:c,wrapStrategy:f,verticalAlign:h,horizontalAlign:d,paddingData:m,fill:(n=o==null?void 0:o.bg)==null?void 0:n.rgb}}getDecomposedOffset(t,e){let n=Nh(this._columnWidthAccumulation,t),r=0;n===-1||n===0?(n=0,r=t):r=t-this._columnWidthAccumulation[n-1];let i=Nh(this._rowHeightAccumulation,e),a=0;return i===-1||i===0?(i=0,a=e):a=e-this._rowHeightAccumulation[i-1],{row:i,column:n,columnOffset:r,rowOffset:a}}_calculateOverflowCell(t,e,n){const{documentSkeleton:r,vertexAngle:i=0,centerAngle:a=0,horizontalAlign:o,wrapStrategy:s}=n,l=this._cellData.getValue(t,e),{t:u=rr.STRING}=l||{};let c=o;if(o===dr.UNSPECIFIED&&(a===vu&&i===vu?c=dr.CENTER:(i>0&&i!==vu||i===-vu)&&(c=dr.RIGHT)),(s===Li.OVERFLOW||s===Li.UNSPECIFIED)&&u!==rr.NUMBER&&u!==rr.BOOLEAN&&o!==dr.JUSTIFIED){if(this.intersectMergeRange(t,e))return!0;let d=ef(r,i);if(!d)return!0;if(i!==0){const{startY:g,endY:p,startX:v,endX:_}=j5(t,e,this.rowHeightAccumulation,this.columnWidthAccumulation,this._getCellMergeInfo(t,e)),C=_-v,S=p-g;d.height>S&&(d={width:S/Math.tan(Math.abs(i))+C,height:S})}const h=this.getOverflowPosition(d,c,t,e,this.getColumnCount()),{startColumn:f,endColumn:m}=h;if(f===m)return!0;this.appendToOverflowCache(t,e,f,m)}else if(s===Li.WRAP&&i!==0){if(this.intersectMergeRange(t,e))return!0;const{startY:d,endY:h}=j5(t,e,this.rowHeightAccumulation,this.columnWidthAccumulation,this._getCellMergeInfo(t,e)),f=h-d;r.getViewModel().getDataModel().updateDocumentDataPageSize(f),r.calculate();const m=ef(r,i);if(!m)return!0;const{startColumn:g,endColumn:p}=this.getOverflowPosition(m,c,t,e,this.getColumnCount());if(g===p)return!0;this.appendToOverflowCache(t,e,g,p)}return!1}_getBounding(t,e,n){const r=t.length,i=e.length;if(!n)return{startRow:0,endRow:r-1,startColumn:0,endColumn:i-1};let a=-1,o=-1,s=-1,l=-1;const u=Nh(t,Math.round(n.top)-this.columnHeaderHeightAndMarginTop),c=Nh(t,Math.round(n.bottom)-this.columnHeaderHeightAndMarginTop);u===-1&&c===0?(a=0,o=0):(u===-1?a=0:a=u,c===Number.POSITIVE_INFINITY||c>=r?o=r-1:o=c);const d=Nh(e,Math.round(n.left)-this.rowHeaderWidthAndMarginLeft),h=Nh(e,Math.round(n.right)-this.rowHeaderWidthAndMarginLeft);return d===-1&&h===0?(s=0,l=0):(d===-1?s=0:s=d,h===Number.POSITIVE_INFINITY||h>=i?l=i-1:l=h),{startRow:a,endRow:o,startColumn:s,endColumn:l}}_generateRowMatrixCache(t,e,n){let r=0;const i=[],a=e;for(let o=0;o<t;o++){let s=n;if(this.worksheet.getRowFiltered(o))s=0;else if(a[o]!=null){const l=a[o];if(!l)continue;const{h:u=n,ah:c,ia:d}=l;(d==null||d===at.TRUE)&&typeof c=="number"?s=c:s=u,l.hd===at.TRUE&&(s=0)}r+=s,i.push(r)}return{rowTotalHeight:r,rowHeightAccumulation:i}}_generateColumnMatrixCache(t,e,n){let r=0;const i=[],a=e;for(let o=0;o<t;o++){let s=n;if(a[o]!=null){const l=a[o];if(!l)continue;l.w!=null&&(s=l.w),l.hd===at.TRUE&&(s=0)}r+=s,i.push(r)}return{columnTotalWidth:r,columnWidthAccumulation:i}}_getOverflowBound(t,e,n,r,i=dr.LEFT){let a=0;if(e>n){const o=this._columnWidthAccumulation.length-1;for(let s=e;s>=n;s--){const l=s,u=this.worksheet.getCell(t,l);if(!EH(u)&&l!==e||this.intersectMergeRange(t,l))return l===e?l:l+1>o?o:l+1;const{startX:c,endX:d}=Gm(t,l,this.rowHeightAccumulation,this.columnWidthAccumulation);if(i===dr.CENTER&&l===e?a+=(d-c)/2:a+=d-c,r<a)return l}return e}for(let o=e;o<=n;o++){const s=o,l=this.worksheet.getCell(t,s);if(!EH(l)&&s!==e||this.intersectMergeRange(t,s))return s===e?s:s-1<0?0:s-1;const{startX:u,endX:c}=Gm(t,s,this.rowHeightAccumulation,this.columnWidthAccumulation);if(i===dr.CENTER&&s===e?a+=(c-u)/2:a+=c-u,r<a)return s}return n}intersectMergeRange(t,e){return!!this.worksheet.getMergedCell(t,e)}getCurrentRowColumnSegmentMergeData(t){const e=this.columnWidthAccumulation.length-1;return t?t={startRow:t.startRow,endRow:t.endRow,endColumn:e,startColumn:0}:t={startRow:0,startColumn:0,endRow:this.rowHeightAccumulation.length-1,endColumn:e},this.worksheet.getSpanModel().getMergedCellRangeForSkeleton(t.startRow,t.startColumn,t.endRow,t.endColumn)}_calculateStylesCache(){const t=this._rowColumnSegment,e=this.columnWidthAccumulation,{startRow:n,endRow:r,startColumn:i,endColumn:a}=t;if(a===-1||r===-1)return;const o=this.getCurrentRowColumnSegmentMergeData(this._rowColumnSegment);for(const s of o)this._setStylesCache(s.startRow,s.startColumn,{mergeRange:s});for(let s=n;s<=r;s++)if(this.worksheet.getRowVisible(s)!==!1){for(let l=i;l<=a;l++)this._setStylesCache(s,l,{cacheItem:{bg:!0,border:!0}});for(let l=0;l<i;l++)this._setStylesCache(s,l,{cacheItem:{bg:!1,border:!1}});if(a!==0)for(let l=a+1;l<e.length;l++)this._setStylesCache(s,l,{cacheItem:{bg:!1,border:!1}})}}_resetCache(){this._stylesCache={background:{},backgroundPositions:new Ct,font:{},border:new Ct},this._cellBgAndBorderCache=new Ct,this._overflowCache.reset()}resetCache(){this._resetCache()}_makeDocumentSkeletonDirty(t,e){if(this._stylesCache.font==null)return;const n=Object.keys(this._stylesCache.font);for(const r of n){const i=this._stylesCache.font[r];if(i!=null&&i.getValue(t,e)){i.getValue(t,e).documentSkeleton.makeDirty(!0);return}}}_setStylesCache(t,e,n){var r;if(t===-1||e===-1)return;if(this._cellBgAndBorderCache.getValue(t,e)===!0){this._makeDocumentSkeletonDirty(t,e);return}const i=this.worksheet.getCell(t,e)||this.worksheet.getCellRaw(t,e);if(!i)return;if(this.worksheet.getColVisible(e)===!1||this.worksheet.getRowVisible(t)===!1){const{isMerged:p,isMergedMainCell:v}=this._getCellMergeInfo(t,e);if(p&&!v||!v)return}const a=(n==null?void 0:n.cacheItem)||{bg:!0,border:!0},o=this._styles.getStyleByCell(i);if(a.bg&&o&&o.bg&&o.bg.rgb){const p=o.bg.rgb;this._stylesCache.background[p]||(this._stylesCache.background[p]=new Ct),this._stylesCache.background[p].setValue(t,e,p);const v=this.getCellByIndexWithNoHeader(t,e);(r=this._stylesCache.backgroundPositions)==null||r.setValue(t,e,v)}if(a.border&&o&&o.bd){const p=n==null?void 0:n.mergeRange;p?(this._setMergeBorderProps(wr.TOP,this._stylesCache,p),this._setMergeBorderProps(wr.BOTTOM,this._stylesCache,p),this._setMergeBorderProps(wr.LEFT,this._stylesCache,p),this._setMergeBorderProps(wr.RIGHT,this._stylesCache,p)):this.intersectMergeRange(t,e)||(this._setBorderProps(t,e,wr.TOP,o,this._stylesCache),this._setBorderProps(t,e,wr.BOTTOM,o,this._stylesCache),this._setBorderProps(t,e,wr.LEFT,o,this._stylesCache),this._setBorderProps(t,e,wr.RIGHT,o,this._stylesCache)),this._setBorderProps(t,e,wr.TL_BR,o,this._stylesCache),this._setBorderProps(t,e,wr.TL_BC,o,this._stylesCache),this._setBorderProps(t,e,wr.TL_MR,o,this._stylesCache),this._setBorderProps(t,e,wr.BL_TR,o,this._stylesCache),this._setBorderProps(t,e,wr.ML_TR,o,this._stylesCache),this._setBorderProps(t,e,wr.BC_TR,o,this._stylesCache)}if(a.bg||a.border?this._cellBgAndBorderCache.setValue(t,e,!0):this._cellBgAndBorderCache.setValue(t,e,!1),pg(i))return;const s=this._getCellDocumentModel(i,{displayRawFormula:this._renderRawFormula});if(s==null)return;const{documentModel:l}=s;if(l==null)return;const{fontString:u,textRotation:c,wrapStrategy:d,verticalAlign:h,horizontalAlign:f}=s;this._stylesCache.font[u]||(this._stylesCache.font[u]=new Ct);const m=this._stylesCache.font[u];if(m.getValue(t,e))return;const g=new H4(l);if(g){const{vertexAngle:p,centerAngle:v}=Qm(c),_=X4.create(g,this._localService);_.calculate();const C={documentSkeleton:_,vertexAngle:p,centerAngle:v,verticalAlign:h,horizontalAlign:f,wrapStrategy:d};m.setValue(t,e,C),this._calculateOverflowCell(t,e,C)}}_updateConfigAndGetDocumentModel(t,e,n,r){var i,a,o,s,l;if(!r||!((i=t.body)!=null&&i.dataStream))return;t.documentStyle||(t.documentStyle={}),t.documentStyle.marginTop=(a=n.t)!=null?a:0,t.documentStyle.marginBottom=(o=n.b)!=null?o:2,t.documentStyle.marginLeft=(s=n.l)!=null?s:2,t.documentStyle.marginRight=(l=n.r)!=null?l:2,t.documentStyle.pageSize={width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},t.documentStyle.renderConfig=r;const u=t.body.paragraphs||[];for(const c of u)c.paragraphStyle||(c.paragraphStyle={}),c.paragraphStyle.horizontalAlign=e;return new sh(t)}_getDocumentDataByStyle(t,e,n){const r=t.length,{textRotation:i,paddingData:a={t:0,r:2,b:2,l:2},horizontalAlign:o=dr.UNSPECIFIED,verticalAlign:s=ea.UNSPECIFIED,wrapStrategy:l=Li.UNSPECIFIED,cellValueType:u}=n,{t:c,r:d,b:h,l:f}=a||{},{vertexAngle:m,centerAngle:g}=Qm(i),p={id:"d",body:{dataStream:`${t}${Sd}`,textRuns:[{ts:e,st:0,ed:r}],paragraphs:[{startIndex:r,paragraphStyle:{horizontalAlign:o}}],sectionBreaks:[{startIndex:r+1}]},documentStyle:{pageSize:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},marginTop:c,marginBottom:h,marginRight:d,marginLeft:f,renderConfig:{horizontalAlign:o,verticalAlign:s,centerAngle:g,vertexAngle:m,wrapStrategy:l,cellValueType:u}},drawings:{},drawingsOrder:[]};return new sh(p)}_setMergeBorderProps(t,e,n){var r;if(!this.worksheet||!e.border)return;const i=[];let a=!0,o=n.startRow,s=n.endRow,l=n.startRow,u=n.startColumn;t===wr.TOP?(l=n.startRow,o=n.startColumn,s=n.endColumn):t===wr.BOTTOM?(l=n.endRow,o=n.startColumn,s=n.endColumn):t===wr.LEFT?(u=n.startColumn,o=n.startRow,s=n.endRow):t===wr.RIGHT&&(u=n.endColumn,o=n.startRow,s=n.endRow);for(let c=o;c<=s;c++){t===wr.TOP||t===wr.BOTTOM?u=c:(t===wr.LEFT||t===wr.RIGHT)&&(l=c);const d=this.worksheet.getCell(l,u);if(!d){a=!1;break}const h=this._styles.getStyleByCell(d);if(!h){a=!1;break}const f=(r=h.bd)==null?void 0:r[t];if(f){const m=js(f.cl)||F4;i.push({r:l,c:u,style:f.s,color:m})}else a=!1}a&&i.forEach(c=>{const{r:d,c:h,style:f,color:m}=c;e.border.getValue(d,h)||e.border.setValue(d,h,{}),e.border.getValue(d,h)[t]={type:t,style:f,color:m}})}_setBorderProps(t,e,n,r,i){var a,o,s;const l=(a=r.bd)==null?void 0:a[n];if(!l||!i.border)return;const u=js(l.cl)||F4,c=i.border;if(c.getValue(t,e)||c.setValue(t,e,{[n]:{}}),n===wr.TOP){if((o=c.getValue(t-1,e))!=null&&o[wr.BOTTOM]&&yH(u))return}else if(n===wr.LEFT&&((s=c.getValue(t,e-1))!=null&&s[wr.RIGHT])&&yH(u))return;c.getValue(t,e)[n]={type:n,style:l.s,color:u}}_getFontFormat(t){if(!t)return{};const{ff:e,fs:n,it:r,bl:i,ul:a,st:o,ol:s,cl:l}=t,u={};return e&&(u.ff=e),n&&(u.fs=n),r&&(u.it=r),i&&(u.bl=i),a&&(u.ul=a),o&&(u.st=o),s&&(u.ol=s),l&&(u.cl=l),u}_getOtherStyle(t){if(!t)return{};const{tr:e,td:n,ht:r,vt:i,tb:a,pd:o}=t;return{textRotation:e,textDirection:n,horizontalAlign:r,verticalAlign:i,wrapStrategy:a,paddingData:o}}_getCellMergeInfo(t,e){return this.worksheet.getCellInfoInMergeData(t,e)}_getMergeCells(t,e){const n=this.columnWidthAccumulation.length-1;e?e={startRow:e.startRow,endRow:e.endRow,endColumn:n,startColumn:0}:e={startRow:0,startColumn:0,endRow:this.rowHeightAccumulation.length-1,endColumn:n};const{startRow:r,startColumn:i,endRow:a,endColumn:o}=e,s=[];for(let l=0;l<t.length;l++){const{startRow:u,endRow:c,startColumn:d,endColumn:h}=t[l];for(let f=r;f<=a;f++){let m=!1;for(let g=i;g<=o;g++)if(f>=u&&f<=c&&g>=d&&g<=h){s.push({startRow:u,endRow:c,startColumn:d,endColumn:h}),m=!0;break}if(m)break}}return s}},T(BN,"SpreadsheetSkeleton"),BN);fz=jbt([hse(4,se(sn)),hse(5,ui)],fz);const $bt="DefaultFontExtension",Wbt=45,kbe=class extends Jf{constructor(){super(...arguments),q(this,"uKey",$bt),q(this,"Z_INDEX",Wbt)}getDocuments(){const e=this.parent;return e==null?void 0:e.getDocuments()}draw(e,n,r,i,a){const{stylesCache:o,overflowCache:s,worksheet:l}=r,{font:u}=o;if(!r||!l||!u)return;const{rowHeightAccumulation:c,columnTotalWidth:d,columnWidthAccumulation:h,rowTotalHeight:f}=r;if(!c||!h||d===void 0||f===void 0||!l)return;e.save();const m=this._getScale(n),g=T(p=>{const v=u[p],{viewRanges:_=[],checkOutOfViewBound:C}=a;v.forValue((S,b,y)=>{var A,w,P,M,L;if(!C&&!s_(_,S,b))return!0;const k=r.getCellByIndexWithNoHeader(S,b);let{startY:O,endY:$,startX:B,endX:V}=k;const{isMerged:X,isMergedMainCell:z,mergeInfo:F}=k;if(X)return!0;{const Ee=r.worksheet.getRowVisible(S),ye=r.worksheet.getColVisible(b);if(!Ee||!ye)return!0}const H=i&&i.length>0?i:_,W=$Z([...H],[F]);if(!H7e(W,S)||(z&&(O=F.startY,$=F.endY,B=F.startX,V=F.endX),i&&!this.isRowInRanges(F.startRow,F.endRow,i)))return!0;const K=s.getValue(S,b),{horizontalAlign:G,vertexAngle:te=0,centerAngle:Y=0}=y;if(!K&&!s_(W,S,b))return!0;let ae=G;G===dr.UNSPECIFIED&&(Y===vu&&te===vu?ae=dr.CENTER:(te>0&&te!==vu||te===-vu)&&(ae=dr.RIGHT));const ie=l.getCell(S,b)||{};if((A=ie.fontRenderExtension)!=null&&A.isSkip)return!0;e.save(),e.beginPath();const ne=(P=(w=ie.fontRenderExtension)==null?void 0:w.rightOffset)!=null?P:0,de=(L=(M=ie.fontRenderExtension)==null?void 0:M.leftOffset)!=null?L:0;let _e=!0;te===0&&(B=B+de,V=V-ne,(ne!==0||de!==0)&&(_e=!1));const Pe=V-B,De=$-O;if(K&&_e){const{startColumn:Ee,startRow:ye,endColumn:Ve,endRow:ke}=K;Ee===Ve&&Ee===b?(e.rectByPrecision(B+1/m,O+1/m,Pe-2/m,De-2/m),e.clip()):ae===dr.CENTER?this._clipRectangleForOverflow(e,ye,ke,Ee,Ve,m,c,h):ae===dr.RIGHT?this._clipRectangleForOverflow(e,ye,S,Ee,b,m,c,h):this._clipRectangleForOverflow(e,S,ke,b,Ve,m,c,h)}else e.rectByPrecision(B+1/m,O+1/m,Pe-2/m,De-2/m),e.clip();e.translate(B+Lo,O+Lo),this._renderDocuments(e,y,B,O,V,$,S,b,s),e.closePath(),e.restore()})},"renderFontByCell");Object.keys(u).forEach(g),e.restore()}_renderDocuments(e,n,r,i,a,o,s,l,u){const c=this.getDocuments();if(c==null)throw new Error("documents is null");const{documentSkeleton:d,vertexAngle:h=0,wrapStrategy:f}=n,m=o-i,g=a-r;f===Li.WRAP&&h===0?(d.getViewModel().getDataModel().updateDocumentDataPageSize(g),d.calculate()):d.getViewModel().getDataModel().updateDocumentDataPageSize(Number.POSITIVE_INFINITY);const p=u.getValue(s,l);if(!(f===Li.WRAP&&!p&&h===0)){const v=ef(d),_=d.getViewModel().getDataModel().getSnapshot().documentStyle;if(v&&_){const{width:C}=v,{marginRight:S=0,marginLeft:b=0}=_;d.getViewModel().getDataModel().updateDocumentDataPageSize(C+b+S),d.calculate()}}d.makeDirty(!1),c.resize(g,m),c.changeSkeleton(d).render(e)}_clipRectangleForOverflow(e,n,r,i,a,o,s,l){const u=s[n-1]||0,c=s[r]||s[s.length-1],d=l[i-1]||0,h=l[a]||l[l.length-1];e.rectByPrecision(d,u,h-d,c-u),e.clip()}};T(kbe,"Font");let zbt=kbe;U7.add(zbt);const qbt="DefaultRowHeaderLayoutExtension",R2={fontSize:13,fontFamily:V7,fontColor:"#000000",backgroundColor:pu([248,249,250]),borderColor:pu([217,217,217]),textAlign:"center",textBaseline:"middle"},Fbe=class extends Jf{constructor(e){super(),q(this,"uKey",qbt),q(this,"Z_INDEX",10),q(this,"rowsCfg",[]),q(this,"headerStyle",{fontSize:R2.fontSize,fontFamily:R2.fontFamily,fontColor:R2.fontColor,backgroundColor:R2.backgroundColor,borderColor:R2.borderColor,textAlign:R2.textAlign,textBaseline:R2.textBaseline}),e&&this.configHeaderRow(e)}configHeaderRow(e){this.rowsCfg=e.rowsCfg||[],this.headerStyle={...this.headerStyle,...e.headerStyle}}getCfgOfCurrentRow(e){let n,r;const i=this.rowsCfg||[];i[e]?(typeof i[e]=="string"&&(i[e]={text:i[e]}),r=i[e],n={...this.headerStyle,...r}):n={...this.headerStyle,text:`${e+1}`};const a=Object.keys(r||{}).length>1;return[n,a]}setStyleToCtx(e,n){n.textAlign&&(e.textAlign=n.textAlign),n.textBaseline&&(e.textBaseline=n.textBaseline),n.fontColor&&(e.fillStyle=n.fontColor),n.borderColor&&(e.strokeStyle=n.borderColor),n.fontSize&&(e.font=`${n.fontSize}px ${V7}`)}draw(e,n,r){const{rowColumnSegment:i,rowHeaderWidth:a=0}=r,{startRow:o,endRow:s}=i;if(!r||a===0)return;const{rowHeightAccumulation:l,columnTotalWidth:u,columnWidthAccumulation:c,rowTotalHeight:d}=r;if(!l||!c||u===void 0||d===void 0)return;const h=this._getScale(n);this.setStyleToCtx(e,this.headerStyle),e.save(),e.fillStyle=this.headerStyle.backgroundColor,e.fillRectByPrecision(0,0,a,d),e.restore(),e.setLineWidthByPrecision(1),e.translateWithPrecisionRatio(Lo,Lo);let f=0;const m=l.length;for(let p=o-1;p<=s;p++){if(p<0||p>m-1)continue;const v=l[p];if(f===v)continue;const _={left:0,top:f,right:a,bottom:v,width:a,height:v-f},[C,S]=this.getCfgOfCurrentRow(p);S&&C.backgroundColor&&(e.save(),e.fillStyle=C.backgroundColor,e.fillRectByPrecision(_.left,_.top,_.width,_.height),e.restore()),e.beginPath(),e.moveToByPrecision(_.left,_.bottom),e.lineToByPrecision(_.right,_.bottom),e.stroke();const b=(()=>{switch(C.textAlign){case"center":return _.left+(_.right-_.left)/2;case"right":return _.right-X6;case"left":return _.left+X6;default:return _.left+(_.right-_.left)/2}})(),y=f+(v-f)/2+X6;S&&(e.save(),e.beginPath(),this.setStyleToCtx(e,C),e.rectByPrecision(_.left,_.top,_.width,_.height),e.clip()),e.fillText(C.text,b,y),S&&e.restore(),f=v}const g=a-.5/h;e.beginPath(),e.moveToByPrecision(g,0),e.lineToByPrecision(g,d),e.stroke()}};T(Fbe,"RowHeaderLayout");let Ybt=Fbe;g9e.add(new Ybt);const Xbt="DefaultMarkerExtension",Gbt=60,Qbt=T(t=>{const{startRow:e,endRow:n,startColumn:r,endColumn:i}=t;return`${e}-${n}-${r}-${i}`},"stringifyRange$1"),Vbe=class extends Jf{constructor(){super(...arguments),q(this,"Z_INDEX",Gbt),q(this,"uKey",Xbt)}draw(e,n,r,i){if(e.__mode==="printing")return;const{worksheet:a,rowColumnSegment:o}=r;if(!a)return;const s=new Set;Gn.foreach(o,(l,u)=>{var c,d,h,f;if(!a.getRowVisible(l)||!a.getColVisible(u))return;let m=a.getCell(l,u);const g=r.getCellByIndexWithNoHeader(l,u),{isMerged:p,isMergedMainCell:v,mergeInfo:_}=g;let{startY:C,endY:S,startX:b,endX:y}=g;if((v||p)&&(C=_.startY,S=_.endY,b=_.startX,y=_.endX),p){const A={row:_.startRow,col:_.startColumn};m=a.getCell(A.row,A.col)}if(!this.isRenderDiffRangesByRow(_.startRow,_.endRow,i))return!0;if(g.isMerged||g.isMergedMainCell){const A=Qbt(_);if(s.has(A))return;s.add(A)}if(m){if((c=m.markers)!=null&&c.tr){e.save();const A=m.markers.tr,w=y,P=C;e.fillStyle=A.color,e.moveTo(w,P),e.beginPath(),e.lineTo(w-A.size,P),e.lineTo(w,P+A.size),e.lineTo(w,P),e.closePath(),e.fill(),e.restore()}if((d=m.markers)!=null&&d.tl){e.save();const A=m.markers.tl,w=b,P=C;e.fillStyle=A.color,e.moveTo(w,P),e.beginPath(),e.lineTo(w+A.size,P),e.lineTo(w,P+A.size),e.lineTo(w,P),e.closePath(),e.fill(),e.restore()}if((h=m.markers)!=null&&h.br){e.save();const A=m.markers.br,w=y,P=S;e.fillStyle=A.color,e.moveTo(w,P),e.beginPath(),e.lineTo(w-A.size,P),e.lineTo(w,P-A.size),e.lineTo(w,P),e.closePath(),e.fill(),e.restore()}if((f=m.markers)!=null&&f.bl){e.save();const A=m.markers.bl,w=b,P=S;e.fillStyle=A.color,e.moveTo(w,P),e.beginPath(),e.lineTo(w+A.size,P),e.lineTo(w,P-A.size),e.lineTo(w,P),e.closePath(),e.fill(),e.restore()}}})}};T(Vbe,"Marker");let Kbt=Vbe;U7.add(Kbt);const Zbt="DefaultCustomExtension",Jbt=55,eyt=T(t=>{const{startRow:e,endRow:n,startColumn:r,endColumn:i}=t;return`${e}-${n}-${r}-${i}`},"stringifyRange"),Bbe=class extends Jf{constructor(){super(...arguments),q(this,"Z_INDEX",Jbt),q(this,"uKey",Zbt)}draw(e,n,r,i){const{worksheet:a,rowColumnSegment:o}=r;if(!a)return;const s=new Set,l=a.getSheetId();Gn.foreach(o,(u,c)=>{if(!a.getRowVisible(u)||!a.getColVisible(c))return;let d=a.getCell(u,c);if(!(d!=null&&d.customRender))return;let h=r.getCellByIndexWithNoHeader(u,c);const{mergeInfo:f}=h;if(!this.isRenderDiffRangesByRow(f.startRow,f.endRow,i))return!0;if(h.isMerged||h.isMergedMainCell){const p=eyt(f);if(s.has(p))return;s.add(p)}if(h.isMerged){const p={row:f.startRow,col:f.startColumn};if(d=a.getCell(p.row,p.col),!(d!=null&&d.customRender))return;h=r.getCellByIndex(p.row,p.col)}const m={data:d,style:r.getsStyles().getStyleByCell(d),primaryWithCoord:h,subUnitId:l,row:u,col:c,worksheet:a,unitId:a.unitId},g=d.customRender.sort(Ol);e.save(),g.forEach(p=>{p.drawWith(e,m,r,this.parent)}),e.restore()})}};T(Bbe,"Custom");let tyt=Bbe;U7.add(tyt);var an=(t=>(t.VIEW_MAIN="viewMain",t.VIEW_MAIN_LEFT_TOP="viewMainLeftTop",t.VIEW_MAIN_TOP="viewMainTop",t.VIEW_MAIN_LEFT="viewMainLeft",t.VIEW_ROW_TOP="viewRowTop",t.VIEW_ROW_BOTTOM="viewRowBottom",t.VIEW_COLUMN_LEFT="viewColumnLeft",t.VIEW_COLUMN_RIGHT="viewColumnRight",t.VIEW_LEFT_TOP="viewLeftTop",t))(an||{});const Ube=class extends S9e{constructor(e,n){super(e,n),q(this,"_rowHeaderLayoutExtension"),this._initialDefaultExtension(),this.makeDirty(!0)}getDocuments(){throw new Error("Method not implemented.")}getNoMergeCellPositionByIndex(e,n){throw new Error("Method not implemented.")}getSelectionBounding(e,n,r,i){throw new Error("Method not implemented.")}get rowHeaderLayoutExtension(){return this._rowHeaderLayoutExtension}draw(e,n){const r=this.getSkeleton();if(!r)return;const i=this.getParentScale();r.calculateSegment(n);const a=r.rowColumnSegment;if(!a||a.startRow===-1&&a.endRow===-1)return;const{columnHeaderHeight:o}=r;e.translateWithPrecision(0,o);const s=this.getExtensionsByOrder();for(const l of s)l.draw(e,i,r)}isHit(e){const n=this.getInverseCoord(e),r=this.getSkeleton();if(!r)return!1;const{rowHeaderWidth:i,columnHeaderHeight:a}=r;return n.x>=0&&n.x<=i&&n.y>a}_initialDefaultExtension(){g9e.getData().forEach(e=>{this.register(e)}),this._rowHeaderLayoutExtension=this.getExtensionByKey("DefaultRowHeaderLayoutExtension")}setCustomHeader(e){this.makeDirty(!0),this._rowHeaderLayoutExtension.configHeaderRow(e)}};T(Ube,"SpreadsheetRowHeader");let nyt=Ube;var G5=(t=>(t[t.SPAN=0]="SPAN",t[t.LINE=1]="LINE",t))(G5||{});const Hbe=class extends m9e{constructor(){super(...arguments),q(this,"type",0),q(this,"translateX",0),q(this,"translateY",0)}};T(Hbe,"docExtension");let zT=Hbe;const ryt="DefaultDocsBackgroundExtension",iyt=10,jbe=class extends zT{constructor(){super(...arguments),q(this,"uKey",ryt),q(this,"Z_INDEX",iyt),q(this,"_preBackgroundColor","")}draw(e,n,r){var i;const a=(i=r.parent)==null?void 0:i.parent;if(a==null)return;const{contentHeight:o=0}=a,{ts:s,width:l,content:u}=r;if((s==null?void 0:s.bg)==null)return;const{bg:c}=s,d=js(c),{spanStartPoint:h=cn.create(0,0)}=this.extensionOffset,f=1.5;d&&u!=="\r"&&(e.fillStyle=d,e.fillRectByPrecision(h.x-.5,h.y-1,l+1,o+2*f))}clearCache(){this._preBackgroundColor=""}};T(jbe,"Background");let ayt=jbe;gS.add(new ayt);const oyt="DefaultDocsBorderExtension",$be=class extends zT{constructor(){super(...arguments),q(this,"uKey",oyt),q(this,"Z_INDEX",50),q(this,"_preBorderStyle"),q(this,"_preBorderColor","")}draw(e,n,r){var i;const a=(i=r.parent)==null?void 0:i.parent;if(!a)return;const{asc:o=0,lineHeight:s=0}=a,{ts:l,left:u,width:c}=r;if(!l)return;const{bd:d}=l;if(!d)return;const h=this._getScale(e.getScale()),f=this._createBorderCache(d);e.save(),e.translateWithPrecisionRatio(Lo,Lo);const{spanStartPoint:m=cn.create(0,0)}=this.extensionOffset;for(const g of f.keys()){const p=f.get(g);if(!p)continue;const{s:v,cl:_}=p,C=js(_)||F4,S=YZ(v);v!==this._preBorderStyle&&(qZ(e,v),e.setLineWidthByPrecision(S),this._preBorderStyle=v),C!==this._preBorderColor&&(e.strokeStyle=C,this._preBorderColor=C),bg(e,g,(S-1)/2/h,{startX:m.x,startY:m.y,endX:m.x+c,endY:m.y+s})}e.restore()}clearCache(){this._preBorderStyle=null,this._preBorderColor=""}_createBorderCache(e){const{t:n,b:r,l:i,r:a}=e,o=new Map;return n&&o.set(wr.TOP,n),r&&o.set(wr.BOTTOM,r),i&&o.set(wr.LEFT,i),a&&o.set(wr.RIGHT,a),o}};T($be,"Border");let syt=$be;gS.add(new syt);const lyt=["hoverCursor","moveCursor","fillRule","globalCompositeOperation","paintFirst","stroke","strokeScaleEnabled","fill","fillAfterStrokeEnabled","hitStrokeWidth","strokeLineJoin","strokeLineCap","shadowColor","shadowBlur","shadowOffset","shadowOffsetX","shadowOffsetY","shadowOpacity","shadowEnabled","shadowForStrokeEnabled","strokeDashArray","strokeDashOffset","strokeMiterLimit"],Wbe=class extends A0{constructor(e,n){super(e),q(this,"_hoverCursor"),q(this,"_moveCursor",null),q(this,"_fillRule","nonzero"),q(this,"_globalCompositeOperation","source-over"),q(this,"_paintFirst","fill"),q(this,"_stroke"),q(this,"_strokeScaleEnabled",!1),q(this,"_fill"),q(this,"_fillAfterStrokeEnabled",!1),q(this,"_hitStrokeWidth",0),q(this,"_strokeLineJoin","round"),q(this,"_strokeLineCap","round"),q(this,"_shadowColor"),q(this,"_shadowBlur",0),q(this,"_shadowOffset"),q(this,"_shadowOffsetX",0),q(this,"_shadowOffsetY",0),q(this,"_shadowOpacity",0),q(this,"_shadowEnabled",!1),q(this,"_shadowForStrokeEnabled",!1),q(this,"_strokeDashArray"),q(this,"_strokeDashOffset",0),q(this,"_strokeMiterLimit",0),q(this,"_type",m7e.RECT),q(this,"objectType",B7.SHAPE),this._initialProps(n)}get hoverCursor(){return this._hoverCursor}get moveCursor(){return this._moveCursor}get fillRule(){return this._fillRule}get globalCompositeOperation(){return this._globalCompositeOperation}get paintFirst(){return this._paintFirst}get stroke(){return this._stroke}get strokeScaleEnabled(){return this._strokeScaleEnabled}get fill(){return this._fill}get fillAfterStrokeEnabled(){return this._fillAfterStrokeEnabled}get hitStrokeWidth(){return this._hitStrokeWidth}get strokeLineJoin(){return this._strokeLineJoin}get strokeLineCap(){return this._strokeLineCap}get shadowColor(){return this._shadowColor}get shadowBlur(){return this._shadowBlur}get shadowOffset(){return this._shadowOffset}get shadowOffsetX(){return this._shadowOffsetX}get shadowOffsetY(){return this._shadowOffsetY}get shadowOpacity(){return this._shadowOpacity}get shadowEnabled(){return this._shadowEnabled}get shadowForStrokeEnabled(){return this._shadowForStrokeEnabled}get strokeDashArray(){return this._strokeDashArray}get strokeDashOffset(){return this._strokeDashOffset}get strokeMiterLimit(){return this._strokeMiterLimit}static drawWith(e,n){}static _renderPaintInOrder(e,n){n.paintFirst==="stroke"?(this._renderStroke(e,n),this._renderFill(e,n)):(this._renderFill(e,n),this._renderStroke(e,n))}static _renderFill(e,n){n.fill&&(e.save(),this._setFillStyles(e,n),n.fillRule==="evenodd"?e.fill("evenodd"):e.fill(),e.restore())}static _renderStroke(e,n){const{stroke:r,strokeWidth:i,strokeScaleEnabled:a}=n;!r||i===0||(e.save(),this._setStrokeStyles(e,n),e.stroke(),e.restore())}static _removeShadow(e){}static _setFillStyles(e,n){e.fillStyle=n.fill}static _setStrokeStyles(e,n){const{strokeWidth:r,strokeLineCap:i,strokeDashOffset:a,strokeLineJoin:o,strokeMiterLimit:s,stroke:l}=n;e.lineWidth=r,e.lineCap=i,e.lineDashOffset=a,e.lineJoin=o,e.miterLimit=s,e.strokeStyle=l}render(e,n){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender(n)){const{top:i,left:a,bottom:o,right:s}=n.viewBound;if(this.width+this.strokeWidth+this.left<a||s<this.left||this.height+this.strokeWidth+this.top<i||o<this.top)return this}const r=this.transform.getMatrix();return e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this._draw(e,n),e.restore(),this.makeDirty(!1),this}setProps(e){if(!e)return this;const n=Object.keys(e);return n.length===0?this:(n.forEach(r=>{if(e[r]===void 0)return!0;nW.indexOf(r)===-1&&(this[`_${r}`]=e[r])}),this.makeDirty(!0),this)}toJson(){const e={};return lyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}_draw(e,n){}_initialProps(e){if(!e)return;const n=Object.keys(e);if(n.length===0)return;const r={};let i=!1;n.forEach(a=>{if(e[a]===void 0)return!0;nW.indexOf(a)>-1?(r[a]=e[a],i=!0):this[`_${a}`]=e[a]}),i&&this.transformByState(r),this.makeDirty(!0)}};T(Wbe,"Shape");let Ed=Wbe;const uyt=["radius"],cyt=class zbe extends Ed{constructor(e,n){super(e,n),q(this,"_radius"),q(this,"objectType",B7.CIRCLE),this._radius=(n==null?void 0:n.radius)||10,this._setFixBoundingBox(),this.onTransformChange$.subscribeEvent(r=>{const{type:i,value:a,preValue:o}=r;if(i===fo.resize||i===fo.all){const s=Math.min(this.width,this.height);this._radius=s/2,this.width=s,this.height=s,this._setTransForm()}})}get radius(){return this._radius}static drawWith(e,n){let{radius:r}=n;r=r??10,e.beginPath(),n.strokeDashArray&&e.setLineDash(n.strokeDashArray),e.beginPath(),e.arc(r,r,r||0,0,Math.PI*2,!1),e.closePath(),this._renderPaintInOrder(e,n)}toJson(){const e={};return uyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}_draw(e){zbe.drawWith(e,this)}_setFixBoundingBox(){this.transformByState({width:this._radius*2,height:this._radius*2})}};T(cyt,"Circle");const dyt=class{};T(dyt,"Control");const hyt=class{};T(hyt,"Drawing");const fyt=["dataArray"],qbe=class k1 extends Ed{constructor(e,n){super(e,n),q(this,"_dataArray",[]),q(this,"_pathLength",0),q(this,"_selfRectCache",{left:0,top:0,width:0,height:0}),q(this,"_reCalculateCache",!0),n!=null&&n.data?this._dataArray=k1.parsePathData(n.data):n!=null&&n.dataArray&&(this._dataArray=n.dataArray);for(let r=0;r<this.dataArray.length;++r)this._pathLength+=this.dataArray[r].pathLength;this._setFixBoundingBox(),this.onTransformChange$.subscribeEvent(r=>{const{type:i,preValue:a}=r;if(i===fo.resize||i===fo.all){this._reCalculateCache=!0;const{left:o,top:s,width:l,height:u}=this._getSelfRect(),{width:c,height:d}=a;let h,f;c?h=this.width-c:h=0,d?f=this.height-d:f=0;const m=h/l,g=f/u;this.scaleX+=m,this.scaleY+=g,this.left=this.left-o*m,this.top=this.top-s*g,this._setTransForm()}})}get dataArray(){return this._dataArray}static drawWith(e,n){const r=n.dataArray;if(r){e.beginPath();for(let i=0;i<r.length;i++){const a=r[i].command,o=r[i].points;switch(a){case"L":e.lineTo(o[0],o[1]);break;case"M":e.moveTo(o[0],o[1]);break;case"C":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":e.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":{const s=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],f=o[6],m=o[7],g=u>c?u:c,p=u>c?1:u/c,v=u>c?c/u:1;e.translate(s,l),e.rotate(f),e.scale(p,v),e.arc(0,0,g,d,d+h,!!(1-m)),e.scale(1/p,1/v),e.rotate(-f),e.translate(-s,-l);break}case"z":e.closePath();break}}this._renderPaintInOrder(e,n)}}static getLineLength(e,n,r,i){return Math.sqrt((r-e)*(r-e)+(i-n)*(i-n))}static getPointOnLine(e,n,r,i,a,o,s){o===void 0&&(o=n),s===void 0&&(s=r);const l=(a-r)/(i-n+1e-8);let u=Math.sqrt(e*e/(1+l*l));i<n&&(u*=-1);let c=l*u,d;if(i===n)d={x:o,y:s+c};else if((s-r)/(o-n+1e-8)===l)d={x:o+u,y:s+c};else{const h=this.getLineLength(n,r,i,a);let f=(o-n)*(i-n)+(s-r)*(a-r);f/=h*h;const m=n+f*(i-n),g=r+f*(a-r),p=this.getLineLength(o,s,m,g),v=Math.sqrt(e*e-p*p);u=Math.sqrt(v*v/(1+l*l)),i<n&&(u*=-1),c=l*u,d={x:m+u,y:g+c}}return d}static getPointOnCubicBezier(e,n,r,i,a,o,s,l,u){function c(p){return p*p*p}T(c,"CB1");function d(p){return 3*p*p*(1-p)}T(d,"CB2");function h(p){return 3*p*(1-p)*(1-p)}T(h,"CB3");function f(p){return(1-p)*(1-p)*(1-p)}T(f,"CB4");const m=l*c(e)+o*d(e)+i*h(e)+n*f(e),g=u*c(e)+s*d(e)+a*h(e)+r*f(e);return{x:m,y:g}}static getPointOnQuadraticBezier(e,n,r,i,a,o,s){function l(f){return f*f}T(l,"QB1");function u(f){return 2*f*(1-f)}T(u,"QB2");function c(f){return(1-f)*(1-f)}T(c,"QB3");const d=o*l(e)+i*u(e)+n*c(e),h=s*l(e)+a*u(e)+r*c(e);return{x:d,y:h}}static getPointOnEllipticalArc(e,n,r,i,a,o){const s=Math.cos(o),l=Math.sin(o),u={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:e+(u.x*s-u.y*l),y:n+(u.x*l+u.y*s)}}static parsePathData(e){if(!e)return[];let n=e;const r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(let d=0,h=r.length;d<h;d++)n=n.replace(new RegExp(r[d],"g"),`|${r[d]}`);const i=n.split("|"),a=[],o=[];let s=0,l=0;const u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let c;for(let d=1,h=i.length;d<h;d++){let f=i[d],m=f.charAt(0);for(f=f.slice(1),o.length=0;c=u.exec(f);)o.push(c[0]);const g=[];for(let p=0,v=o.length;p<v;p++){if(o[p]==="00"){g.push(0,0);continue}const _=Number.parseFloat(o[p]);isNaN(_)?g.push(0):g.push(_)}for(;g.length>0&&!isNaN(g[0]);){let p,v=[];const _=s,C=l;let S,b,y,A,w,P,M,L,k,O;switch(m){case"l":s+=g.shift()||0,l+=g.shift()||0,p="L",v.push(s,l);break;case"L":s=g.shift()||0,l=g.shift()||0,v.push(s,l);break;case"m":{const $=g.shift()||0,B=g.shift()||0;if(s+=$,l+=B,p="M",a.length>2&&a[a.length-1].command==="z"){for(let V=a.length-2;V>=0;V--)if(a[V].command==="M"){s=a[V].points[0]+$,l=a[V].points[1]+B;break}}v.push(s,l),m="l";break}case"M":s=g.shift()||0,l=g.shift()||0,p="M",v.push(s,l),m="L";break;case"h":s+=g.shift()||0,p="L",v.push(s,l);break;case"H":s=g.shift()||0,p="L",v.push(s,l);break;case"v":l+=g.shift()||0,p="L",v.push(s,l);break;case"V":l=g.shift()||0,p="L",v.push(s,l);break;case"C":v.push(g.shift()||0,g.shift()||0,g.shift()||0,g.shift()||0),s=g.shift()||0,l=g.shift()||0,v.push(s,l);break;case"c":v.push(s+(g.shift()||0),l+(g.shift()||0),s+(g.shift()||0),l+(g.shift()||0)),s+=g.shift()||0,l+=g.shift()||0,p="C",v.push(s,l);break;case"S":b=s,y=l,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),y=l+(l-S.points[3])),v.push(b,y,g.shift()||0,g.shift()||0),s=g.shift()||0,l=g.shift()||0,p="C",v.push(s,l);break;case"s":b=s,y=l,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),y=l+(l-S.points[3])),v.push(b,y,s+(g.shift()||0),l+(g.shift()||0)),s+=g.shift()||0,l+=g.shift()||0,p="C",v.push(s,l);break;case"Q":v.push(g.shift()||0,g.shift()||0),s=g.shift()||0,l=g.shift()||0,v.push(s,l);break;case"q":v.push(s+(g.shift()||0),l+(g.shift()||0)),s+=g.shift()||0,l+=g.shift()||0,p="Q",v.push(s,l);break;case"T":b=s,y=l,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),y=l+(l-S.points[1])),s=g.shift()||0,l=g.shift()||0,p="Q",v.push(b,y,s,l);break;case"t":b=s,y=l,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),y=l+(l-S.points[1])),s+=g.shift()||0,l+=g.shift()||0,p="Q",v.push(b,y,s,l);break;case"A":A=g.shift()||0,w=g.shift()||0,P=g.shift()||0,M=g.shift()||0,L=g.shift()||0,k=s,O=l,s=g.shift()||0,l=g.shift()||0,p="A",v=this.convertEndpointToCenterParameterization(k,O,s,l,M,L,A,w,P);break;case"a":A=g.shift()||0,w=g.shift()||0,P=g.shift()||0,M=g.shift()||0,L=g.shift()||0,k=s,O=l,s+=g.shift()||0,l+=g.shift()||0,p="A",v=this.convertEndpointToCenterParameterization(k,O,s,l,M,L,A,w,P);break}a.push({command:p||m,points:v,start:{x:_,y:C},pathLength:this.calcLength(_,C,p||m,v)})}(m==="z"||m==="Z")&&a.push({command:"z",points:[],start:{x:0,y:0},pathLength:0})}return a}static calcLength(e,n,r,i){let a,o,s,l;const u=k1;switch(r){case"L":return u.getLineLength(e,n,i[0],i[1]);case"C":for(a=0,o=u.getPointOnCubicBezier(0,e,n,i[0],i[1],i[2],i[3],i[4],i[5]),l=.01;l<=1;l+=.01)s=u.getPointOnCubicBezier(l,e,n,i[0],i[1],i[2],i[3],i[4],i[5]),a+=u.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case"Q":for(a=0,o=u.getPointOnQuadraticBezier(0,e,n,i[0],i[1],i[2],i[3]),l=.01;l<=1;l+=.01)s=u.getPointOnQuadraticBezier(l,e,n,i[0],i[1],i[2],i[3]),a+=u.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case"A":{a=0;const c=i[4],d=i[5],h=i[4]+d;let f=Math.PI/180;if(Math.abs(c-h)<f&&(f=Math.abs(c-h)),o=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),d<0)for(l=c-f;l>h;l-=f)s=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),a+=u.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(l=c+f;l<h;l+=f)s=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),a+=u.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),a+=u.getLineLength(o.x,o.y,s.x,s.y),a}}return 0}static convertEndpointToCenterParameterization(e,n,r,i,a,o,s,l,u){const c=u*(Math.PI/180),d=Math.cos(c)*(e-r)/2+Math.sin(c)*(n-i)/2,h=-1*Math.sin(c)*(e-r)/2+Math.cos(c)*(n-i)/2,f=d*d/(s*s)+h*h/(l*l);f>1&&(s*=Math.sqrt(f),l*=Math.sqrt(f));let m=Math.sqrt((s*s*(l*l)-s*s*(h*h)-l*l*(d*d))/(s*s*(h*h)+l*l*(d*d)));a===o&&(m*=-1),isNaN(m)&&(m=0);const g=m*s*h/l,p=m*-l*d/s,v=(e+r)/2+Math.cos(c)*g-Math.sin(c)*p,_=(n+i)/2+Math.sin(c)*g+Math.cos(c)*p,C=T(M=>Math.sqrt(M[0]*M[0]+M[1]*M[1]),"vMag"),S=T((M,L)=>(M[0]*L[0]+M[1]*L[1])/(C(M)*C(L)),"vRatio"),b=T((M,L)=>(M[0]*L[1]<M[1]*L[0]?-1:1)*Math.acos(S(M,L)),"vAngle"),y=b([1,0],[(d-g)/s,(h-p)/l]),A=[(d-g)/s,(h-p)/l],w=[(-1*d-g)/s,(-1*h-p)/l];let P=b(A,w);return S(A,w)<=-1&&(P=Math.PI),S(A,w)>=1&&(P=0),o===0&&P>0&&(P-=2*Math.PI),o===1&&P<0&&(P+=2*Math.PI),[v,_,s,l,y,P,c,o]}toJson(){const e={};return fyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}getState(){const{left:e,top:n,width:r,height:i}=this.getRect();return{left:e,top:n,width:r,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:e,top:n,width:r,height:i}=this._getSelfRect();return{left:e*this.scaleX+this.left,top:n*this.scaleY+this.top,width:r*this.scaleX,height:i*this.scaleY}}getLength(){return this._pathLength}getPointAtLength(e){let n,r=0;const i=this.dataArray.length;if(!i)return null;for(;r<i&&e>this.dataArray[r].pathLength;)e-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};const a=this.dataArray[r],o=a.points;switch(a.command){case"L":return k1.getPointOnLine(e,a.start.x,a.start.y,o[0],o[1]);case"C":return k1.getPointOnCubicBezier(e/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case"Q":return k1.getPointOnQuadraticBezier(e/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3]);case"A":{const s=o[0],l=o[1],u=o[2],c=o[3];let d=o[4];const h=o[5],f=o[6];return d+=h*e/a.pathLength,k1.getPointOnEllipticalArc(s,l,u,c,d,f)}}return null}_draw(e){k1.drawWith(e,this)}_setFixBoundingBox(){const{left:e,top:n,width:r,height:i}=this._getSelfRect(),a=this.width/r,o=this.height/i;this.left=this.left-e*a,this.top=this.top-n*o,this.scaleX=a,this.scaleY=o,this.width=r,this.height=i,this._setTransForm()}_getSelfRect(){if(!this._reCalculateCache)return this._selfRectCache;let e=[];this.dataArray.forEach(u=>{if(u.command==="A"){const c=u.points[4],d=u.points[5],h=u.points[4]+d;let f=Math.PI/180;if(Math.abs(c-h)<f&&(f=Math.abs(c-h)),d<0)for(let m=c-f;m>h;m-=f){const g=k1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],m,0);e.push(g.x,g.y)}else for(let m=c+f;m<h;m+=f){const g=k1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],m,0);e.push(g.x,g.y)}}else if(u.command==="C")for(let c=0;c<=1;c+=.01){const d=k1.getPointOnCubicBezier(c,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);e.push(d.x,d.y)}else e=e.concat(u.points)});let n=e[0],r=e[0],i=e[1],a=e[1],o,s;for(let u=0;u<e.length/2;u++)o=e[u*2],s=e[u*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(s)||(i=Math.min(i,s),a=Math.max(a,s));const l={left:n,top:i,width:r-n,height:a-i};return this._selfRectCache=l,l}};T(qbe,"Path");let y_=qbe;const myt=class extends Ed{constructor(e,n){super(e,n),q(this,"_props"),q(this,"_native"),q(this,"_renderByCropper",!1),q(this,"_transformCalculateSrcRect",!0),q(this,"objectType",B7.IMAGE),this._props={...n},n.image?(this._native=n.image,this._native.crossOrigin="anonymous",this.makeDirty(!0)):n.url&&(this._native=document.createElement("img"),this._native.src=n.url,this._native.crossOrigin="anonymous",this._native.onload=()=>{var r,i,a;(r=n.success)==null||r.call(n),this.makeDirty(!0),(a=(i=this.getEngine())==null?void 0:i.activeScene)==null||a.onFileLoaded$.emitEvent(e)},this._native.onerror=()=>{n.fail?n.fail():(this._native.src="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMwNC4xMjggNDU2LjE5MmM0OC42NCAwIDg4LjA2NC0zOS40MjQgODguMDY0LTg4LjA2NHMtMzkuNDI0LTg4LjA2NC04OC4wNjQtODguMDY0LTg4LjA2NCAzOS40MjQtODguMDY0IDg4LjA2NCAzOS40MjQgODguMDY0IDg4LjA2NCA4OC4wNjR6bTAtMTE2LjIyNGMxNS4zNiAwIDI4LjE2IDEyLjI4OCAyOC4xNiAyOC4xNnMtMTIuMjg4IDI4LjE2LTI4LjE2IDI4LjE2LTI4LjE2LTEyLjI4OC0yOC4xNi0yOC4xNiAxMi4yODgtMjguMTYgMjguMTYtMjguMTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PHBhdGggZD0iTTg4Ny4yOTYgMTU5Ljc0NEgxMzYuNzA0Qzk2Ljc2OCAxNTkuNzQ0IDY0IDE5MiA2NCAyMzIuNDQ4djU1OS4xMDRjMCAzOS45MzYgMzIuMjU2IDcyLjcwNCA3Mi43MDQgNzIuNzA0aDE5OC4xNDRMNTAwLjIyNCA2ODguNjRsLTM2LjM1Mi0yMjIuNzIgMTYyLjMwNC0xMzAuNTYtNjEuNDQgMTQzLjg3MiA5Mi42NzIgMjE0LjAxNi0xMDUuNDcyIDE3MS4wMDhoMzM1LjM2QzkyNy4yMzIgODY0LjI1NiA5NjAgODMyIDk2MCA3OTEuNTUyVjIzMi40NDhjMC0zOS45MzYtMzIuMjU2LTcyLjcwNC03Mi43MDQtNzIuNzA0em0tMTM4Ljc1MiA3MS42OHYuNTEySDg1Ny42YzE2LjM4NCAwIDMwLjIwOCAxMy4zMTIgMzAuMjA4IDMwLjIwOHYzOTkuODcyTDY3My4yOCA0MDguMDY0bDc1LjI2NC0xNzYuNjR6TTMwNC42NCA3OTIuMDY0SDE2NS44ODhjLTE2LjM4NCAwLTMwLjIwOC0xMy4zMTItMzAuMjA4LTMwLjIwOHYtOS43MjhsMTM4Ljc1Mi0xNjQuMzUyIDEwNC45NiAxMjQuNDE2LTc0Ljc1MiA3OS44NzJ6bTgxLjkyLTM1NS44NGwzNy4zNzYgMjI4Ljg2NC0uNTEyLjUxMi0xNDIuODQ4LTE2OS45ODRjLTMuMDcyLTMuNTg0LTkuMjE2LTMuNTg0LTEyLjI4OCAwTDEzNS42OCA2NTIuOFYyNjIuMTQ0YzAtMTYuMzg0IDEzLjMxMi0zMC4yMDggMzAuMjA4LTMwLjIwOGg0NzQuNjI0TDM4Ni41NiA0MzYuMjI0em01MDEuMjQ4IDMyNS42MzJjMCAxNi44OTYtMTMuMzEyIDMwLjIwOC0yOS42OTYgMzAuMjA4SDY4MC45Nmw1Ny4zNDQtOTMuMTg0LTg3LjU1Mi0yMDIuMjQgNy4xNjgtNy42OCAyMjkuODg4IDI3Mi44OTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PC9zdmc+",this.makeDirty(!0))}),this._init()}get srcRect(){return this._props.srcRect}get prstGeom(){return this._props.prstGeom}get opacity(){var e;return(e=this._props.opacity)!=null?e:1}setOpacity(e){this._props.opacity=e,this.makeDirty(!0)}get classType(){return ar.IMAGE}transformByStateCloseCropper(e){this._transformCalculateSrcRect=!1,this.transformByState(e),this._transformCalculateSrcRect=!0}changeSource(e){this._native==null&&(this._native=document.createElement("img")),this._native.src=e,this._native.onload=()=>{this.makeDirty(!0)}}resetSize(){this._native!=null&&(this.transformByState({width:this._native.width,height:this._native.height}),this.setSrcRect(null))}setPrstGeom(e){this._props.prstGeom=e}setSrcRect(e){this._props.srcRect=e,this.makeDirty(!0)}getProps(){return this._props}getNative(){return this._native}getNativeSize(){return this._native==null?{width:this.width,height:this.height}:{width:this._native.width,height:this._native.height}}closeRenderByCropper(){this._renderByCropper=!1}openRenderByCropper(){this._renderByCropper=!0,this._transformBySrcRect()}calculateTransformWithSrcRect(){const{left:e,top:n,width:r,height:i}=this;if(this.srcRect==null)return{left:e,top:n,width:r,height:i,angle:this.angle};const{left:a=0,top:o=0,right:s=0,bottom:l=0}=this.srcRect,u=e-a,c=n-o,d=r+s+a,h=i+l+o;return{left:u,top:c,width:d,height:h,angle:this.angle}}_transformBySrcRect(){if(this.srcRect==null)return;const{left:e=0,top:n=0,right:r=0,bottom:i=0}=this.srcRect,{width:a,height:o}=this;let{left:s,top:l,width:u,height:c}=this.calculateTransformWithSrcRect();if(this.angle!==0){const d=(a+this.strokeWidth)/2,h=(o+this.strokeWidth)/2,f=u/2-e,m=c/2-n,g=LT(new cn(d,h),this.angle,new cn(s,l),new cn(f,m));s=g.x,l=g.y}this.transformByState({left:s,top:l,width:u,height:c})}render(e,n){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender(n)){const{top:i,left:a,bottom:o,right:s}=n.viewBound;if(this.width+this.strokeWidth+this.left<a||s<this.left||this.height+this.strokeWidth+this.top<i||o<this.top)return this}const r=this.transform.getMatrix();return e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this.opacity!==1&&(e.globalAlpha=this.opacity),this._draw(e),e.restore(),this.makeDirty(!1),this}_draw(e){if(this._native!=null)if(!this._renderByCropper&&this.srcRect){const{left:n=0,top:r=0,right:i=0,bottom:a=0}=this.srcRect;e.beginPath(),e.rect(0,0,this.width,this.height),e.clip(),e.drawImage(this._native,-n,-r,this.width+i+n,this.height+a+r)}else e.drawImage(this._native,0,0,this.width,this.height)}_init(){this.onTransformChange$.subscribeEvent(e=>{this._updateSrcRectByTransform(e)})}_updateSrcRectByTransform(e){if(this.srcRect==null||!this._transformCalculateSrcRect)return;const{width:n,height:r,left:i,top:a,angle:o}=this,{width:s=0,height:l=0,left:u=0,top:c=0,angle:d}=e.preValue,{left:h=0,top:f=0,right:m=0,bottom:g=0}=this.srcRect;let p=h,v=f,_=m,C=g,S=!1;if(s!==0&&s!==n){const b=h/s,y=m/s;p=n*b,_=n*y,S=!0}if(l!==0&&l!==r){const b=f/l,y=g/l;v=r*b,C=r*y,S=!0}S&&this.setSrcRect({left:p,top:v,right:_,bottom:C})}};T(myt,"Image");const gyt=["radius"],Ybe=class Xbe extends Ed{constructor(e,n){super(e,n),q(this,"objectType",B7.RECT),q(this,"_radius",0),q(this,"_visualHeight"),q(this,"_visualWidth"),n!=null&&n.radius&&(this._radius=n.radius),n!=null&&n.visualHeight&&(this._visualHeight=n.visualHeight),n!=null&&n.visualWidth&&(this._visualWidth=n.visualWidth)}get visualHeight(){return this._visualHeight}get visualWidth(){return this._visualWidth}get radius(){return this._radius}static drawWith(e,n){let{radius:r,width:i,height:a}=n;if(r=r??0,i=i??0,a=a??0,e.save(),e.beginPath(),n.strokeDashArray&&e.setLineDash(n.strokeDashArray),n.visualHeight&&(e.translate(0,(a-(n.visualHeight||0))/2),a=n.visualHeight),n.visualWidth&&(e.translate((i-(n.visualWidth||0))/2,0),i=n.visualWidth),!r)e.rect(0,0,i,a);else{let o=0,s=0,l=0,u=0;o=s=l=u=Math.min(r,i/2,a/2),e.moveTo(o,0),e.lineTo(i-s,0),e.arc(i-s,s,s,Math.PI*3/2,0,!1),e.lineTo(i,a-u),e.arc(i-u,a-u,u,0,Math.PI/2,!1),e.lineTo(l,a),e.arc(l,a-l,l,Math.PI/2,Math.PI,!1),e.lineTo(0,o),e.arc(o,o,o,Math.PI,Math.PI*3/2,!1)}e.closePath(),this._renderPaintInOrder(e,n),e.restore()}toJson(){const e={};return gyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}_draw(e){Xbe.drawWith(e,this)}};T(Ybe,"Rect");let ur=Ybe;const pyt=["pointsGroup"],Gbe=class Qbe extends Ed{constructor(e,n){super(e,n),q(this,"_pointsGroup"),this._pointsGroup=(n==null?void 0:n.pointsGroup)||[[]],this._setFixBoundingBox(),this.onTransformChange$.subscribeEvent(r=>{const{type:i,value:a,preValue:o}=r;(i===fo.resize||i===fo.all)&&this.resizePolygon(o)})}get pointsGroup(){return this._pointsGroup}static drawWith(e,n){let{pointsGroup:r}=n;r=r??[[]],n.strokeDashArray&&e.setLineDash(n.strokeDashArray),e.beginPath();for(const i of r){e.moveTo(i[0].x,i[0].y);for(let a=1;a<i.length;a++){const o=i[a];e.lineTo(o.x,o.y)}}e.closePath(),this._renderPaintInOrder(e,n)}isHit(e){const n=this.getInverseCoord(e);return!!(n.x>=-this.strokeWidth/2&&n.x<=this.width+this.strokeWidth/2&&n.y>=-this.strokeWidth/2&&n.y<=this.height+this.strokeWidth/2&&this._contains(n))}_contains(e){let n=!1;for(const r of this._pointsGroup){let i=0;const a=r.length;for(let o=0;o<a;o++){const s=r[o],l=r[(o+1)%a];if(this._isOnLine(e,s,l))return!0;if(s.y>e.y!=l.y>e.y){const u=s.x+(e.y-s.y)*(l.x-s.x)/(l.y-s.y);e.x<u&&i++}}i%2!==0&&(n=!n)}return n}_isOnLine(e,n,r){return(n.x-e.x)*(r.y-e.y)-(r.x-e.x)*(n.y-e.y)!==0?!1:e.x>=Math.min(n.x,r.x)&&e.x<=Math.max(n.x,r.x)&&e.y>=Math.min(n.y,r.y)&&e.y<=Math.max(n.y,r.y)}updatePointGroup(e){this._pointsGroup=e,this._setFixBoundingBox()}resizePolygon(e){const{left:n,top:r,width:i,height:a}=this._getSelfRect(),{width:o,height:s}=e;let l,u;o?l=this.width-o:l=0,s?u=this.height-s:u=0;const c=l/i,d=u/a;this.scaleX+=c,this.scaleY+=d,this.left=this.left-n*c,this.top=this.top-r*d,this._setTransForm()}toJson(){const e={};return pyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}getState(){const{left:e,top:n,width:r,height:i}=this.getRect();return{left:e,top:n,width:r,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:e,top:n,width:r,height:i}=this._getSelfRect();return{left:e*this.scaleX+this.left,top:n*this.scaleY+this.top,width:r*this.scaleX,height:i*this.scaleY}}_draw(e){Qbe.drawWith(e,this)}_setFixBoundingBox(){const{width:e,height:n,left:r,top:i}=this._getSelfRect();this.left=this.left+r,this.top=this.top+i,this.width=e,this.height=n;const a=this.pointsGroup;for(const o of a)for(const s of o)s.x-=r,s.y-=i;this._setTransForm()}_getSelfRect(){const e=this.pointsGroup;let n=e[0][0].x,r=e[0][0].x,i=e[0][0].y,a=e[0][0].y;for(const o of e)for(const s of o)n=Math.min(n,s.x),r=Math.max(r,s.x),i=Math.min(i,s.y),a=Math.max(a,s.y);return{left:n,top:i,width:r-n,height:a-i}}};T(Gbe,"RegularPolygon");let Z1=Gbe;const mse=["text","richText","fs"],vyt=class extends A0{constructor(e,n,r){super(n),q(this,"_documentData"),q(this,"_documentSkeleton"),q(this,"_documents"),q(this,"documentModel"),q(this,"_ff"),q(this,"_fs",12),q(this,"_it",at.FALSE),q(this,"_bl",at.FALSE),q(this,"_ul",{s:at.FALSE}),q(this,"_st",{s:at.FALSE}),q(this,"_ol",{s:at.FALSE}),q(this,"_bg"),q(this,"_bd"),q(this,"_cl"),q(this,"objectType",B7.RICH_TEXT),this._localeService=e,r!=null&&r.richText?this._documentData=r.richText:r&&(this._fs=r.fs,this._ff=r.ff,this._it=r.it,this._bl=r.bl,this._ul=r.ul,this._st=r.st,this._ol=r.ol,this._bg=r.bg,this._bd=r.bd,this._cl=r.cl,this._documentData=this._convertToDocumentData(r.text||""));const i=this.documentModel=new sh(this._documentData),a=new H4(i);this._documentSkeleton=X4.create(a,this._localeService),this._documents=new E_(`${this.oKey}_DOCUMENTS`,this._documentSkeleton,{pageMarginLeft:0,pageMarginTop:0}),this._initialProps(r),this.onTransformChange$.subscribeEvent(o=>{const{type:s}=o;if(s===fo.resize||s===fo.all){i.updateDocumentDataPageSize(this.width),this._documentSkeleton.makeDirty(!0),this._documentSkeleton.calculate();const l=this.getDocsSkeletonPageSize();this.height=(l==null?void 0:l.height)||this.height,this._setTransForm(),this.refreshDocumentByDocData()}})}get fs(){return this._fs}get text(){const e=this._documentData.body;if(!e)return"";const n=[];if(e.textRuns)for(const r of e.textRuns){const i=r.st||0,a=r.ed||0;n.push(e.dataStream.slice(i,a))}return n.join("")}get documentData(){return this._documentData}getDocsSkeletonPageSize(){var e;const n=(e=this._documentSkeleton)==null?void 0:e.getSkeletonData();if(!n)return;const{pages:r}=n,i=r[r.length-1],{width:a,height:o}=i;return{width:a,height:o}}setProps(e){if(!e)return;const n=Object.keys(e);if(n.length!==0)return n.forEach(r=>{if(e[r]===void 0)return!0;mse.indexOf(r)===-1&&(this[`_${r}`]=e[r])}),this.makeDirty(!0),this}render(e,n){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender(n)){const{top:i,left:a,bottom:o,right:s}=n.viewBound;if(this.width+this.strokeWidth<a||s<0||this.height+this.strokeWidth<i||o<0)return this}const r=this.transform.getMatrix();return e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this._draw(e),e.restore(),this.makeDirty(!1),this}toJson(){const e={};return mse.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}_draw(e){this._documents.render(e)}_convertToDocumentData(e){const n=e.length;return{id:"d",body:{dataStream:`${e}${Sd}`,textRuns:[{ts:{fs:this._fs||14,ff:this._ff,it:this._it,bl:this._bl,ul:this._ul,st:this._st,ol:this._ol,bg:this._bg,bd:this._bd,cl:this._cl},st:0,ed:n}]},documentStyle:{pageSize:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY}}}}_initialProps(e){this._documentSkeleton.getViewModel().getDataModel().updateDocumentDataPageSize(e==null?void 0:e.width,e==null?void 0:e.height),this._documentSkeleton.calculate();const n=this.getDocsSkeletonPageSize();this.transformByState({width:(n==null?void 0:n.width)||0,height:(n==null?void 0:n.height)||0,left:(e==null?void 0:e.left)||0,top:(e==null?void 0:e.top)||0,angle:e==null?void 0:e.angle}),this.setProps(e),this.makeDirty(!0)}refreshDocumentByDocData(){const e=this.documentModel=new sh(this._documentData),n=new H4(e);this._documentSkeleton=X4.create(n,this._localeService),this._documents=new E_(`${this.oKey}_DOCUMENTS`,this._documentSkeleton,{pageMarginLeft:0,pageMarginTop:0}),this._documentSkeleton.getViewModel().getDataModel().updateDocumentDataPageSize(this.width,1/0),this._documentSkeleton.calculate()}resizeToContentSize(){const e=this.getDocsSkeletonPageSize();e&&e.width!==0&&e.height!==0&&this.transformByState({height:(e==null?void 0:e.height)||0})}};T(vyt,"RichText");const Kbe=class extends et{constructor(){super(...arguments),q(this,"enableHorizontal",!0),q(this,"enableVertical",!0),q(this,"horizontalThumbWidth",0),q(this,"horizontalMinusMiniThumb",0),q(this,"horizontalBarWidth",0),q(this,"verticalThumbHeight",0),q(this,"verticalBarHeight",0),q(this,"verticalMinusMiniThumb",0),q(this,"horizonScrollTrack"),q(this,"horizonThumbRect"),q(this,"verticalScrollTrack"),q(this,"verticalThumbRect"),q(this,"placeholderBarRect")}get limitX(){var e;return(e=this.horizonThumbRect)!=null&&e.visible?this.horizontalBarWidth-this.horizontalThumbWidth:0}get limitY(){var e;return(e=this.verticalThumbRect)!=null&&e.visible?this.verticalBarHeight-this.verticalThumbHeight:0}get ratioScrollX(){if(this.enableHorizontal===!1||this.horizontalThumbWidth===void 0||this.horizontalBarWidth===void 0)return 1;const e=(this.horizontalThumbWidth-this.horizontalMinusMiniThumb)*this.miniThumbRatioX/this.horizontalBarWidth;return Number.isNaN(e)?1:e}get ratioScrollY(){if(this.enableVertical===!1||this.verticalThumbHeight===void 0||this.verticalBarHeight===void 0)return 1;const e=(this.verticalThumbHeight-this.verticalMinusMiniThumb)*this.miniThumbRatioY/this.verticalBarHeight;return Number.isNaN(e)?1:e}get miniThumbRatioX(){const e=this.horizontalBarWidth-this.horizontalThumbWidth;if(e===0)return 0;const n=this.horizontalBarWidth-(this.horizontalThumbWidth-this.horizontalMinusMiniThumb);return n===0?0:e/n}get miniThumbRatioY(){const e=this.verticalBarHeight-this.verticalThumbHeight;if(e===0)return 0;const n=this.verticalBarHeight-(this.verticalThumbHeight-this.verticalMinusMiniThumb);return n===0?0:e/n}pick(e){var n,r,i,a;return(n=this.horizonThumbRect)!=null&&n.isHit(e)?this.horizonThumbRect:(r=this.verticalThumbRect)!=null&&r.isHit(e)?this.verticalThumbRect:(i=this.horizonScrollTrack)!=null&&i.isHit(e)?this.horizonScrollTrack:(a=this.verticalScrollTrack)!=null&&a.isHit(e)?this.verticalScrollTrack:null}dispose(){var e,n,r,i,a;(e=this.horizonScrollTrack)==null||e.dispose(),(n=this.horizonThumbRect)==null||n.dispose(),(r=this.verticalScrollTrack)==null||r.dispose(),(i=this.verticalThumbRect)==null||i.dispose(),(a=this.placeholderBarRect)==null||a.dispose(),this.horizonScrollTrack=null,this.horizonThumbRect=null,this.verticalScrollTrack=null,this.verticalThumbRect=null,this.placeholderBarRect=null}hasHorizonThumb(){var e;return((e=this.horizonThumbRect)==null?void 0:e.visible)||!1}hasVerticalThumb(){var e;return((e=this.verticalThumbRect)==null?void 0:e.visible)||!1}};T(Kbe,"BaseScrollBar");let _yt=Kbe;const P3=17,Zbe=class Jbe extends _yt{constructor(e,n){super(),q(this,"_viewport"),q(this,"_mainScene"),q(this,"_lastX",-1),q(this,"_lastY",-1),q(this,"_isHorizonMove",!1),q(this,"_isVerticalMove",!1),q(this,"_horizonPointerMoveSub"),q(this,"_horizonPointerUpSub"),q(this,"_verticalPointerMoveSub"),q(this,"_verticalPointerUpSub"),q(this,"barSize",14),q(this,"barBorder",1),q(this,"thumbMargin",2),q(this,"thumbLengthRatio",1),q(this,"thumbBackgroundColor","#cccccc"),q(this,"thumbHoverBackgroundColor","#b2b2b2"),q(this,"thumbActiveBackgroundColor","#999999"),q(this,"barBackgroundColor","rgba(255,255,255,0.5)"),q(this,"barBorderColor","rgba(255,255,255,0.7)"),q(this,"_eventSub",new bl),e||console.warn("Missing viewport"),this.setProps(n),this._viewport=e,this._initialScrollRect(),this._initialVerticalEvent(),this._initialHorizontalEvent(),this._viewport.setScrollBar(this)}static attachTo(e,n){return new Jbe(e,n)}dispose(){var e,n,r,i;super.dispose(),(e=this._horizonPointerMoveSub)==null||e.unsubscribe(),(n=this._horizonPointerUpSub)==null||n.unsubscribe(),(r=this._verticalPointerMoveSub)==null||r.unsubscribe(),(i=this._verticalPointerUpSub)==null||i.unsubscribe(),this._eventSub.unsubscribe(),this._mainScene=null,this._viewport.removeScrollBar()}render(e,n=0,r=0){const{scrollX:i,scrollY:a}=this._viewport;e.save();const o=new a1([1,0,0,1,n,r]).getMatrix();e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this.enableHorizontal&&(this.horizonScrollTrack.render(e),this.horizonThumbRect.translate(i).render(e)),this.enableVertical&&(this.verticalScrollTrack.render(e),this.verticalThumbRect.translate(void 0,a).render(e)),this.enableHorizontal&&this.enableVertical&&this.placeholderBarRect.render(e),e.restore()}resize(e=0,n=0,r=0,i=0){var a;e===0&&e===0||(this._resizeHorizontal(e,n,r),this._resizeVertical(e,n,i),this.enableHorizontal&&this.enableVertical&&((a=this.placeholderBarRect)==null||a.transformByState({left:e-this.barSize,top:n-this.barSize,width:this.barSize-this.barBorder,height:this.barSize-this.barBorder})))}makeDirty(e){var n,r,i,a,o;(n=this.horizonScrollTrack)==null||n.makeDirty(e),(r=this.horizonThumbRect)==null||r.makeDirty(e),(i=this.verticalScrollTrack)==null||i.makeDirty(e),(a=this.verticalThumbRect)==null||a.makeDirty(e),(o=this.placeholderBarRect)==null||o.makeDirty(e),this.makeViewDirty(e)}makeViewDirty(e){(this._mainScene||this._viewport.scene).makeDirty(e)}pick(e){var n,r,i,a;return(n=this.horizonThumbRect)!=null&&n.isHit(e)?this.horizonThumbRect:(r=this.verticalThumbRect)!=null&&r.isHit(e)?this.verticalThumbRect:(i=this.horizonScrollTrack)!=null&&i.isHit(e)?this.horizonScrollTrack:(a=this.verticalScrollTrack)!=null&&a.isHit(e)?this.verticalScrollTrack:null}setProps(e){if(!e)return;const n=Object.keys(e);n.length!==0&&n.forEach(r=>{e[r]!==void 0&&(this[`${r}`]=e[r])})}_resizeHorizontal(e,n,r){var i,a,o,s,l;this.enableHorizontal&&(this.horizontalMinusMiniThumb=0,this.horizontalBarWidth=e-(this.enableVertical?this.barSize:0)-this.barBorder,this.horizontalThumbWidth=this.horizontalBarWidth*(this.horizontalBarWidth-this.barBorder)/r*this.thumbLengthRatio,this.horizontalThumbWidth<P3&&(this.horizontalMinusMiniThumb=P3-this.horizontalThumbWidth,this.horizontalThumbWidth=P3),(i=this.horizonScrollTrack)==null||i.transformByState({left:0,top:n-this.barSize,width:this.horizontalBarWidth,height:this.barSize-this.barBorder}),this.horizontalThumbWidth>=e-this.barSize?(a=this.horizonThumbRect)==null||a.setProps({visible:!1}):((o=this.horizonThumbRect)!=null&&o.visible||(s=this.horizonThumbRect)==null||s.setProps({visible:!0}),(l=this.horizonThumbRect)==null||l.transformByState({left:this._viewport.scrollX,top:n-this.barSize+this.thumbMargin,width:this.horizontalThumbWidth,height:this.barSize-this.thumbMargin*2})))}_resizeVertical(e,n,r){var i,a,o,s,l;this.enableVertical&&(this.verticalMinusMiniThumb=0,this.verticalBarHeight=n-(this.enableHorizontal?this.barSize:0)-this.barBorder,this.verticalThumbHeight=this.verticalBarHeight*this.verticalBarHeight/r*this.thumbLengthRatio,this.verticalThumbHeight<P3&&(this.verticalMinusMiniThumb=P3-this.verticalThumbHeight,this.verticalThumbHeight=P3),(i=this.verticalScrollTrack)==null||i.transformByState({left:e-this.barSize,top:0,width:this.barSize-this.barBorder,height:this.verticalBarHeight}),this.verticalThumbHeight>=n-this.barSize?(a=this.verticalThumbRect)==null||a.setProps({visible:!1}):((o=this.verticalThumbRect)!=null&&o.visible||(s=this.verticalThumbRect)==null||s.setProps({visible:!0}),(l=this.verticalThumbRect)==null||l.transformByState({left:e-this.barSize+this.thumbMargin,top:this._viewport.scrollY,width:this.barSize-this.thumbMargin*2,height:this.verticalThumbHeight})))}_initialScrollRect(){this.enableHorizontal&&(this.horizonScrollTrack=new ur("__horizonBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.horizonThumbRect=new ur("__horizonThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableVertical&&(this.verticalScrollTrack=new ur("__verticalBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.verticalThumbRect=new ur("__verticalThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableHorizontal&&this.enableVertical&&(this.placeholderBarRect=new ur("__placeholderBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}))}_initialVerticalEvent(){if(!this.enableVertical)return;const e=this._mainScene||this._viewport.scene;this.verticalThumbRect&&this._eventSub.add(this.verticalThumbRect.onPointerEnter$.subscribeEvent((n,r)=>{this._hoverFunc(this.thumbHoverBackgroundColor,this.verticalThumbRect)})),this.verticalThumbRect&&this._eventSub.add(this.verticalThumbRect.onPointerLeave$.subscribeEvent((n,r)=>{this._hoverFunc(this.thumbHoverBackgroundColor,this.verticalThumbRect)})),this.verticalScrollTrack&&this._eventSub.add(this.verticalScrollTrack.onPointerDown$.subscribeEvent((n,r)=>{const i=n;this._viewport.scrollToBarPos({y:i.offsetY-this._viewport.top-this.verticalThumbHeight/2}),r.stopPropagation()})),this.verticalThumbRect&&this._eventSub.add(this.verticalThumbRect.onPointerDown$.subscribeEvent((n,r)=>{const i=n,a=this.verticalThumbRect;this._isVerticalMove=!0,this._lastX=i.offsetX,this._lastY=i.offsetY,a==null||a.setProps({fill:this.thumbActiveBackgroundColor}),e.disableObjectsEvent(),this.makeViewDirty(!0),r.stopPropagation()})),this._verticalPointerMoveSub=e.onPointerMove$.subscribeEvent((n,r)=>{var i;const a=n;this._isVerticalMove&&(this._viewport.scrollToBarPos({y:a.offsetY}),this._lastY=a.offsetY,(i=e.getEngine())==null||i.setRemainCapture())}),this._verticalPointerUpSub=e.onPointerUp$.subscribeEvent((n,r)=>{const i=this.verticalThumbRect;this._isVerticalMove=!1,e.enableObjectsEvent(),i==null||i.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}_hoverFunc(e,n){return(r,i)=>{this._isHorizonMove||this._isVerticalMove||(n.setProps({fill:e}),this.makeViewDirty(!0))}}_initialHorizontalEvent(){if(!this.enableHorizontal)return;const e=this._mainScene||this._viewport.scene;this.horizonThumbRect&&this._eventSub.add(this.horizonThumbRect.onPointerEnter$.subscribeEvent((n,r)=>{this._hoverFunc(this.thumbHoverBackgroundColor,this.horizonThumbRect)})),this.horizonThumbRect&&this._eventSub.add(this.horizonThumbRect.onPointerLeave$.subscribeEvent((n,r)=>{this._hoverFunc(this.thumbHoverBackgroundColor,this.horizonThumbRect)})),this.horizonScrollTrack&&this._eventSub.add(this.horizonScrollTrack.onPointerDown$.subscribeEvent((n,r)=>{const i=n;this._viewport.scrollToBarPos({x:i.offsetX-this._viewport.left-this.horizontalThumbWidth/2}),r.stopPropagation()})),this.horizonThumbRect&&this._eventSub.add(this.horizonThumbRect.onPointerDown$.subscribeEvent((n,r)=>{var i;const a=n;this._isHorizonMove=!0,this._lastX=a.offsetX,this._lastY=a.offsetY,(i=this.horizonThumbRect)==null||i.setProps({fill:this.thumbActiveBackgroundColor}),this.makeViewDirty(!0),e.disableObjectsEvent(),r.stopPropagation()})),this._horizonPointerMoveSub=e.onPointerMove$.subscribeEvent((n,r)=>{var i;const a=n;this._isHorizonMove&&(this._viewport.scrollToBarPos({x:a.offsetX}),this._lastX=a.offsetX,(i=e.getEngine())==null||i.setRemainCapture())}),this._horizonPointerUpSub=e.onPointerUp$.subscribeEvent((n,r)=>{const i=this.horizonThumbRect;this._isHorizonMove=!1,e.enableObjectsEvent(),i==null||i.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}};T(Zbe,"ScrollBar");let G4=Zbe;const Cyt=["checked"],eye=class tye extends Ed{constructor(e,n){super(e,n),q(this,"_checked",!1),Ie.isDefine(n.checked)&&(this._checked=n.checked)}get checked(){return this._checked}static drawWith(e,n){const{width:r=16,height:i=16,fill:a,checked:o,top:s=0,left:l=0}=n,u=new Path2D("M12 2.65381H4C3.17157 2.65381 2.5 3.32538 2.5 4.15381V12.1538C2.5 12.9822 3.17157 13.6538 4 13.6538H12C12.8284 13.6538 13.5 12.9822 13.5 12.1538V4.15381C13.5 3.32538 12.8284 2.65381 12 2.65381ZM4 1.65381C2.61929 1.65381 1.5 2.7731 1.5 4.15381V12.1538C1.5 13.5345 2.61929 14.6538 4 14.6538H12C13.3807 14.6538 14.5 13.5345 14.5 12.1538V4.15381C14.5 2.7731 13.3807 1.65381 12 1.65381H4Z"),c=new Path2D("M3.99243 1.65381C2.61172 1.65381 1.49243 2.77295 1.49243 4.15381V12.1538C1.49243 13.5347 2.61172 14.6538 3.99243 14.6538H11.9924C13.3731 14.6538 14.4924 13.5347 14.4924 12.1538V4.15381C14.4924 2.77295 13.3731 1.65381 11.9924 1.65381H3.99243ZM12.3779 6.3623C12.6317 6.1084 12.6317 5.69678 12.3779 5.44287C12.1241 5.18896 11.7125 5.18896 11.4586 5.44287L7.21062 9.69092L5.00681 7.4873C4.75296 7.2334 4.3414 7.2334 4.08755 7.4873C3.83372 7.74072 3.83372 8.15234 4.08757 8.40625L6.85709 11.1758C7.05234 11.3711 7.36893 11.3711 7.56418 11.1758L12.3779 6.3623Z");e.save(),e.translate(l,s),e.scale(r/16,i/16),a&&(e.fillStyle=a),o?e.fill(c,"evenodd"):e.fill(u,"evenodd"),e.restore()}_draw(e){tye.drawWith(e,this)}toJson(){const e={};return Cyt.forEach(n=>{this[n]&&(e[n]=this[n])}),{...super.toJson(),...e}}};T(eye,"Checkbox");let nye=eye;const rye=class iye extends ur{static drawWith(e,n){let{radius:r,left:i,top:a,width:o,height:s}=n;if(r=r??0,o=o??0,s=s??0,i=i??0,a=a??0,e.beginPath(),e.setLineDash(n.strokeDashArray),!r)e.rect(i,a,o,s);else{let l=0,u=0,c=0,d=0;l=u=c=d=Math.min(r,o/2,s/2),e.moveTo(l,0),e.lineTo(o-u,0),e.arc(o-u,u,u,Math.PI*3/2,0,!1),e.lineTo(o,s-d),e.arc(o-d,s-d,d,0,Math.PI/2,!1),e.lineTo(c,s),e.arc(c,s-c,c,Math.PI/2,Math.PI,!1),e.lineTo(0,l),e.arc(l,l,l,Math.PI,Math.PI*3/2,!1)}e.closePath(),this._renderPaintInOrder(e,n)}_draw(e,n){const{radius:r,paintFirst:i,stroke:a,strokeWidth:o,fill:s,strokeScaleEnabled:l,fillRule:u,strokeLineCap:c,strokeDashOffset:d,strokeLineJoin:h,strokeMiterLimit:f,strokeDashArray:m}=this,g=this.getParent().transform,p=g.getMatrix()[4],v=g.getMatrix()[5],_=p+this.width,C=v+this.height,S={left:p,top:v,right:_,bottom:C};let{left:b,top:y,right:A,bottom:w}=S,P=A-b,M=w-y;if(n){const L=ft.getIntersectionBetweenTwoRect(S,n.cacheBound);L&&(b=L.left-p,y=L.top-v,A=L.right,w=L.bottom,P=L.width,M=L.height)}iye.drawWith(e,{radius:r,paintFirst:i,stroke:a,strokeWidth:o,fill:s,strokeScaleEnabled:l,fillRule:u,strokeLineCap:c,strokeDashOffset:d,strokeLineJoin:h,strokeMiterLimit:f,strokeDashArray:m,width:P,height:M,left:b,top:y})}};T(rye,"DashedRect");let Syt=rye;const byt="DefaultDocsFontAndBaseLineExtension",yyt=20,aye=class extends zT{constructor(){super(...arguments),q(this,"uKey",byt),q(this,"Z_INDEX",yyt),q(this,"_preFontString",""),q(this,"_preFontColor","")}draw(e,n,r){var i;if(!((i=r.parent)!=null&&i.parent))return;const{ts:a,content:o,fontStyle:s,bBox:l}=r,{spanPointWithFont:u=cn.create(0,0)}=this.extensionOffset;if(o==null)return;if(!a){this._fillText(e,r,u);return}this._preFontString!==(s==null?void 0:s.fontString)&&(e.font=this._preFontString=(s==null?void 0:s.fontString)||"");const{cl:c,va:d}=a,h=js(c)||F4;this._preFontColor!==h&&(e.fillStyle=h),d===ca.SUPERSCRIPT?u.y+=-l.spo:d===ca.SUBSCRIPT&&(u.y+=l.sbo),this._fillText(e,r,u)}_fillText(e,n,r){var i,a;const{renderConfig:o,spanStartPoint:s,centerPoint:l}=this.extensionOffset,{content:u,width:c,bBox:d}=n,{aba:h,abd:f}=d;if(u==null||s==null||l==null)return;const{vertexAngle:m,centerAngle:g}=o??{},p=90;if(m===p&&g===p&&!hS(u))e.save(),e.translate(s.x+l.x,s.y+l.y),e.rotate(Math.PI/2),e.translate(-c/2,(h+f)/2-f),e.fillText(u,0,0),e.restore();else{const v="☑";if((u==="☐"||u===v)&&n.glyphType===Ql.LIST){e.save();const _=Math.ceil(((a=(i=n.ts)==null?void 0:i.fs)!=null?a:12)*1.2);e.translate(r.x,r.y-_),nye.drawWith(e,{width:_,height:_,checked:u===v}),e.restore()}else e.fillText(u,r.x,r.y)}}clearCache(){this._preFontString="",this._preFontColor=""}};T(aye,"FontAndBaseLine");let Eyt=aye;gS.add(new Eyt);const Ryt="DefaultDocsLineExtension",Ayt=40,oye=class extends zT{constructor(){super(...arguments),q(this,"uKey",Ryt),q(this,"Z_INDEX",Ayt),q(this,"_preBackgroundColor","")}draw(e,n,r){var i;const a=(i=r.parent)==null?void 0:i.parent,{ts:o,bBox:s,content:l}=r;if(a==null||o==null||l==="\r")return;const{asc:u,dsc:c}=a,{sp:d,spo:h,sbo:f,bd:m}=s,g=jZ(n),p=.5,{ul:v,st:_,ol:C,va:S,bbl:b}=o;if(v){const y=u+c;this._drawLine(e,r,v,y,g)}if(b){const y=u+c+3;this._drawLine(e,r,b,y,g,2)}if(_){let y=u+m-d-p;S===ca.SUPERSCRIPT?y-=h:S===ca.SUBSCRIPT&&(y+=f),this._drawLine(e,r,_,y,g)}if(C){const y=-1-p;this._drawLine(e,r,C,y,g)}}clearCache(){this._preBackgroundColor=""}_drawLine(e,n,r,i,a,o=1){var s;let{s:l,cl:u,t:c,c:d=at.TRUE}=r;if(l!==at.TRUE)return;d==null&&(d=at.TRUE);const{originTranslate:h=cn.create(0,0),alignOffset:f=cn.create(0,0),renderConfig:m={}}=this.extensionOffset,{left:g,width:p}=n,{centerAngle:v=0,vertexAngle:_=0}=m,C=uc(v),S=uc(_);e.save(),e.translateWithPrecisionRatio(Lo,Lo);const b=(d===at.TRUE?js((s=n.ts)==null?void 0:s.cl):js(u))||F4;e.strokeStyle=b,e.lineWidth=o,this._setLineType(e,c||Fc.SINGLE);const y=jc(h.addByPoint(g,i),cn.create(0,0),C,S,f),A=jc(h.addByPoint(g+p,i),cn.create(0,0),C,S,f);e.beginPath(),e.moveToByPrecision(y.x,y.y),e.lineToByPrecision(A.x,A.y),e.stroke(),e.restore()}_setLineType(e,n){n===Fc.DASH_DOT_DOT_HEAVY||n===Fc.DOT_DOT_DASH?e.setLineDash([2,2,5,2,2]):n===Fc.DASH_DOT_HEAVY||n===Fc.DOT_DASH?e.setLineDash([2,5,2]):n===Fc.DOTTED||n===Fc.DOTTED_HEAVY?e.setLineDash([2]):n===Fc.DASH||n===Fc.DASHED_HEAVY?e.setLineDash([3]):n===Fc.DASH_LONG||n===Fc.DASH_LONG_HEAVY?e.setLineDash([6]):e.setLineDash([0])}};T(oye,"Line");let wyt=oye;gS.add(new wyt);const sye=class extends h9e{constructor(e,n,r){super(e),q(this,"pageMarginLeft",0),q(this,"pageMarginTop",0),q(this,"pageLayoutType",cc.VERTICAL),this._skeleton=n,this._setConfig(r)}getSkeleton(){return this._skeleton}setSkeleton(e){this._skeleton=e}_setConfig(e){(e==null?void 0:e.pageMarginLeft)!=null?this.pageMarginLeft=e==null?void 0:e.pageMarginLeft:this.pageMarginLeft=17,(e==null?void 0:e.pageMarginTop)!=null?this.pageMarginTop=e==null?void 0:e.pageMarginTop:this.pageMarginTop=14,(e==null?void 0:e.pageLayoutType)!=null?this.pageLayoutType=e==null?void 0:e.pageLayoutType:this.pageLayoutType=cc.VERTICAL}render(e,n){if(!this.visible)return this.makeDirty(!1),this;if(!this._skeleton)return;const r=this.transform.getMatrix();e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this._draw(e,n),e.restore()}getParentScale(){if(!this.parent)return{scaleX:1,scaleY:1};let{scaleX:e=1,scaleY:n=1}=this.parent;return this.parent.classType===ar.SCENE&&(e=this.parent.ancestorScaleX||1,n=this.parent.ancestorScaleY||1),{scaleX:e,scaleY:n}}isSkipByDiffBounds(e,n,r,i){if(i==null)return!1;const{pageWidth:a,pageHeight:o,marginBottom:s,marginTop:l,marginLeft:u,marginRight:c}=e,d=r+a+u+c,h=n+o+s+l,{left:f,top:m,right:g,bottom:p}=i.viewBound;return d<f||h<m||r>g&&a!==Number.POSITIVE_INFINITY||n>p&&o!==Number.POSITIVE_INFINITY}};T(sye,"DocComponent");let lye=sye;const uye=class cye extends lye{constructor(e,n,r){super(e,n,r),q(this,"_pageRender$",new Zt),q(this,"pageRender$",this._pageRender$.asObservable()),q(this,"docsLeft",0),q(this,"docsTop",0),q(this,"_drawLiquid",new pS),this._initialDefaultExtension(),this.makeDirty(!0)}static create(e,n,r){return new cye(e,n,r)}dispose(){super.dispose(),this._pageRender$.complete(),this._drawLiquid=null}getOffsetConfig(){const{transform:e,pageLayoutType:n,pageMarginLeft:r,pageMarginTop:i,left:a,top:o}=this;return{documentTransform:e,pageLayoutType:n,pageMarginLeft:r,pageMarginTop:i,docsLeft:a,docsTop:o}}getEngine(){return this.getScene().getEngine()}changeSkeleton(e){return this.setSkeleton(e),this}_draw(e,n){this.draw(e,n)}draw(e,n){var r,i,a,o;const s=(r=this.getSkeleton())==null?void 0:r.getSkeletonData();if(s==null||this._drawLiquid==null)return;this._drawLiquid.reset();const{pages:l,skeHeaders:u,skeFooters:c}=s,d=this.getParentScale(),h=this.getExtensionsByOrder();for(const v of h)v.clearCache();const f=h.find(v=>v.uKey==="DefaultDocsBackgroundExtension"),m=h.filter(v=>v.type===G5.SPAN&&v.uKey!=="DefaultDocsBackgroundExtension");let g=0,p=0;for(let v=0,_=l.length;v<_;v++){const C=l[v],{sections:S,marginTop:b=0,marginBottom:y=0,marginLeft:A=0,marginRight:w=0,width:P,height:M,pageWidth:L,headerId:k,footerId:O,renderConfig:$={},skeTables:B}=C,{verticalAlign:V=ea.TOP,horizontalAlign:X=dr.LEFT,centerAngle:z=0,vertexAngle:F=0,wrapStrategy:H=Li.UNSPECIFIED,cellValueType:W}=$,K=this._horizontalHandler(P,A,w,X,F,z,W),G=this._verticalHandler(M,b,y,V),te=cn.create(K,G),Y=uc(z),ae=uc(F),ie=ae-Y;if(this.isSkipByDiffBounds(C,g,p,n)){const{x:Ee,y:ye}=this._drawLiquid.translatePage(C,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);p+=Ee,g+=ye;continue}B.size>0&&this._drawTable(e,C,B,h,f,m,te,Y,ae,$,d);const ne=(i=u.get(k))==null?void 0:i.get(L),de=cn.create(K,(a=ne==null?void 0:ne.marginTop)!=null?a:0);ne&&this._drawHeaderFooter(ne,e,h,f,m,de,Y,ae,$,d,C,!0),this._startRotation(e,ie);for(const Ee of S){const{columns:ye}=Ee;this._drawLiquid.translateSection(Ee);for(const Ve of ye){const{lines:ke,width:Ke}=Ve;this._drawLiquid.translateSave(),this._drawLiquid.translateColumn(Ve);const $e=ke.length;let Fe=te,He=null;if(ae!==0){const{rotateTranslateXList:ct,rotatedHeight:_t,rotatedWidth:Ye,fixOffsetX:Ot,fixOffsetY:An,rotateTranslateY:Ut}=XZ(ke,Ke,ae);let Jt=Ye;_t>this.height&&H!==Li.WRAP&&(H===Li.OVERFLOW||ae>0)&&(Jt=this.height/Math.tan(Math.abs(ae)));const dn=this._horizontalHandler(Jt,A,w,X,F,z);let Sn=this._verticalHandler(_t,b,y,V)-An;_t>this.height&&(ae<0?Sn=this.height-(_t+An):Sn=-An),Fe=cn.create(dn+Ot,Sn),this._drawLiquid.translate(0,-Ut),He=ct}else H===Li.WRAP&&(X!==dr.UNSPECIFIED||W!==rr.NUMBER)&&(Fe.x=A);for(let ct=0;ct<$e;ct++){const _t=ke[ct],{divides:Ye,asc:Ot=0,type:An,lineHeight:Ut=0}=_t,Jt=Ot,dn=Jt*Math.sin(Y),Sn=Jt*Math.cos(Y);if(An===Q6.BLOCK)for(const hn of h)hn.type===G5.LINE&&(hn.extensionOffset={alignOffset:Fe,renderConfig:$},hn.draw(e,d,_t));else{this._drawLiquid.translateSave(),this._drawLiquid.translateLine(_t,!0,!0),He&&this._drawLiquid.translate(He[ct]);const hn=Ye.length;for(let tr=0;tr<hn;tr++){const en=Ye[tr],{glyphGroup:bt}=en;this._drawLiquid.translateSave(),this._drawLiquid.translateDivide(en);for(const ue of bt){if(!ue.content||ue.content.length===0)continue;const{width:ce,left:pe}=ue,{x:Ae,y:je}=this._drawLiquid,tt=cn.create(Ae,je),Qe=cn.create(ce/2,Ut/2),nt={spanStartPoint:jc(tt.addByPoint(pe,0),Qe,Y,ae,Fe)};f&&(f.extensionOffset=nt,f.draw(e,d,ue))}for(const ue of bt){if(!ue.content||ue.content.length===0)continue;const{width:ce,left:pe,xOffset:Ae}=ue,{x:je,y:tt}=this._drawLiquid,Qe=cn.create(je,tt),nt=cn.create(ce/2,Ut/2),we=jc(Qe.addByPoint(pe+Ae,0),nt,Y,ae,Fe),Ze=jc(Qe.addByPoint(pe+dn+Ae,Sn),nt,Y,ae,Fe),ht={originTranslate:Qe,spanStartPoint:we,spanPointWithFont:Ze,centerPoint:nt,alignOffset:Fe,renderConfig:$};for(const pt of m)pt.extensionOffset=ht,pt.draw(e,d,ue)}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}this._drawLiquid.translateRestore()}}this._resetRotation(e,ie);const _e=(o=c.get(O))==null?void 0:o.get(L);if(_e){const Ee=cn.create(K,C.pageHeight-(_e==null?void 0:_e.height)-_e.marginBottom);this._drawHeaderFooter(_e,e,h,f,m,Ee,Y,ae,$,d,C,!1)}this._pageRender$.next({page:C,pageLeft:p,pageTop:g,ctx:e});const{x:Pe,y:De}=this._drawLiquid.translatePage(C,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);p+=Pe,g+=De}}_drawTable(e,n,r,i,a,o,s,l,u,c,d){var h,f,m,g,p,v,_,C,S;for(const[b,y]of r){const{top:A,left:w,rows:P}=y;(h=this._drawLiquid)==null||h.translateSave(),(f=this._drawLiquid)==null||f.translate(w,A);for(const M of P){const{top:L,cells:k}=M;(m=this._drawLiquid)==null||m.translateSave(),(g=this._drawLiquid)==null||g.translate(0,L);for(const O of k){const{left:$}=O;(p=this._drawLiquid)==null||p.translateSave(),(v=this._drawLiquid)==null||v.translate($,0),this._drawTableCell(e,n,O,i,a,o,s,l,u,c,d),(_=this._drawLiquid)==null||_.translateRestore()}(C=this._drawLiquid)==null||C.translateRestore()}(S=this._drawLiquid)==null||S.translateRestore()}}_drawTableCell(e,n,r,i,a,o,s,l,u,c,d){if(this._drawLiquid==null)return;this._drawTableCellBorders(e,n,r);const{sections:h,marginLeft:f,marginTop:m}=r;s=cn.create(s.x+f,s.y+m);for(const g of h){const{columns:p}=g;this._drawLiquid.translateSave(),this._drawLiquid.translateSection(g);for(const v of p){const{lines:_}=v;this._drawLiquid.translateSave(),this._drawLiquid.translateColumn(v);const C=_.length,S=s;for(let b=0;b<C;b++){const y=_[b],{divides:A,asc:w=0,type:P,lineHeight:M=0}=y,L=w,k=L*Math.sin(l),O=L*Math.cos(l);if(P===Q6.BLOCK)for(const $ of i)$.type===G5.LINE&&($.extensionOffset={alignOffset:S,renderConfig:c},$.draw(e,d,y));else{this._drawLiquid.translateSave(),this._drawLiquid.translateLine(y,!0,!0);const $=A.length;for(let B=0;B<$;B++){const V=A[B],{glyphGroup:X}=V;this._drawLiquid.translateSave(),this._drawLiquid.translateDivide(V);for(const z of X){if(!z.content||z.content.length===0)continue;const{width:F,left:H}=z,{x:W,y:K}=this._drawLiquid,G=cn.create(W,K),te=cn.create(F/2,M/2),Y={spanStartPoint:jc(G.addByPoint(H,0),te,l,u,S)};a&&(a.extensionOffset=Y,a.draw(e,d,z))}for(const z of X){if(!z.content||z.content.length===0)continue;const{width:F,left:H,xOffset:W}=z,{x:K,y:G}=this._drawLiquid,te=cn.create(K,G),Y=cn.create(F/2,M/2),ae=jc(te.addByPoint(H+W,0),Y,l,u,S),ie=jc(te.addByPoint(H+k+W,O),Y,l,u,S),ne={originTranslate:te,spanStartPoint:ae,spanPointWithFont:ie,centerPoint:Y,alignOffset:S,renderConfig:c};for(const de of o)de.extensionOffset=ne,de.draw(e,d,z)}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}_drawTableCellBorders(e,n,r){const{marginLeft:i,marginTop:a}=n,{pageWidth:o,pageHeight:s}=r;if(this._drawLiquid==null)return;let{x:l,y:u}=this._drawLiquid;l+=i,u+=a,bg(e,wr.LEFT,0,{startX:l,startY:u,endX:l+o,endY:u+s}),bg(e,wr.TOP,0,{startX:l,startY:u,endX:l+o,endY:u+s}),bg(e,wr.RIGHT,0,{startX:l,startY:u,endX:l+o,endY:u+s}),bg(e,wr.BOTTOM,0,{startX:l,startY:u,endX:l+o,endY:u+s})}_drawHeaderFooter(e,n,r,i,a,o,s,l,u,c,d,h=!0){if(this._drawLiquid==null)return;const{sections:f}=e,{y:m}=this._drawLiquid;for(const g of f){const{columns:p}=g;this._drawLiquid.translateSave(),this._drawLiquid.translateSection(g);for(const v of p){const{lines:_}=v;this._drawLiquid.translateSave(),this._drawLiquid.translateColumn(v);const C=_.length,S=o;for(let b=0;b<C;b++){const y=_[b],{divides:A,asc:w=0,type:P,lineHeight:M=0}=y,L=w,k=L*Math.sin(s),O=L*Math.cos(s);if(P===Q6.BLOCK)for(const $ of r)$.type===G5.LINE&&($.extensionOffset={alignOffset:S,renderConfig:u},$.draw(n,c,y));else{this._drawLiquid.translateSave(),this._drawLiquid.translateLine(y,!0,!0);const{y:$}=this._drawLiquid;if(h){if($-m+S.y>(d.pageHeight-100)/2){this._drawLiquid.translateRestore();continue}}else if($-m+S.y+M<(d.pageHeight-100)/2+100){this._drawLiquid.translateRestore();continue}const B=A.length;for(let V=0;V<B;V++){const X=A[V],{glyphGroup:z}=X;this._drawLiquid.translateSave(),this._drawLiquid.translateDivide(X);for(const F of z){if(!F.content||F.content.length===0)continue;const{width:H,left:W}=F,{x:K,y:G}=this._drawLiquid,te=cn.create(K,G),Y=cn.create(H/2,M/2),ae={spanStartPoint:jc(te.addByPoint(W,0),Y,s,l,S)};i&&(i.extensionOffset=ae,i.draw(n,c,F))}for(const F of z){if(!F.content||F.content.length===0)continue;const{width:H,left:W,xOffset:K}=F,{x:G,y:te}=this._drawLiquid,Y=cn.create(G,te),ae=cn.create(H/2,M/2),ie=jc(Y.addByPoint(W+K,0),ae,s,l,S),ne=jc(Y.addByPoint(W+k+K,O),ae,s,l,S),de={originTranslate:Y,spanStartPoint:ie,spanPointWithFont:ne,centerPoint:ae,alignOffset:S,renderConfig:u};for(const _e of a)_e.extensionOffset=de,_e.draw(n,c,F)}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}_horizontalHandler(e,n,r,i,a=0,o=0,s){i===dr.UNSPECIFIED&&(o===vu&&a===vu?i=dr.CENTER:a>0&&a!==vu||a===-vu||s===rr.NUMBER?i=dr.RIGHT:s===rr.BOOLEAN?i=dr.CENTER:i=dr.LEFT);let l=0;return i===dr.CENTER?l=(this.width-e)/2:i===dr.RIGHT?l=this.width-e-r:l=n,l}_verticalHandler(e,n,r,i){let a=0;return i===ea.MIDDLE?a=(this.height-e)/2:i===ea.TOP?a=n:a=this.height-e-r,a}_startRotation(e,n){e.rotate(n||0)}_resetRotation(e,n){e.rotate(-n||0)}_initialDefaultExtension(){gS.getData().forEach(e=>{this.register(e)})}};T(uye,"Documents");let E_=uye;const Dyt="__SHEET_EXTENSION_FONT_DOCUMENT_INSTANCE__",dye=class extends _9e{constructor(e,n,r=!0){super(e,n),q(this,"_backgroundExtension"),q(this,"_borderExtension"),q(this,"_fontExtension"),q(this,"_refreshIncrementalState",!1),q(this,"_dirtyBounds",[]),q(this,"_forceDisableGridlines",!1),q(this,"_documents",new E_(Dyt,void 0,{pageMarginLeft:0,pageMarginTop:0})),q(this,"isPrinting",!1),this._allowCache=r,this._initialDefaultExtension(),this.makeDirty(!0)}get backgroundExtension(){return this._backgroundExtension}get borderExtension(){return this._borderExtension}get fontExtension(){return this._fontExtension}getDocuments(){return this._documents}get allowCache(){return this._allowCache}get forceDisableGridlines(){return this._forceDisableGridlines}dispose(){var e;super.dispose(),(e=this._documents)==null||e.dispose(),this._documents=null,this._backgroundExtension=null,this._borderExtension=null,this._fontExtension=null}draw(e,n){var r;const i=this.getSkeleton();if(!i)return;this._drawAuxiliary(e);const a=this.getParentScale(),o=this._refreshIncrementalState&&n!=null&&n.diffBounds?(r=n==null?void 0:n.diffBounds)==null?void 0:r.map(c=>i.getRowColumnSegmentByViewBound(c)):[],s=[i.getRowColumnSegmentByViewBound(n==null?void 0:n.cacheBound)],l=this.getExtensionsByOrder(),u=this.getScene();for(const c of l){const d=`${rW}${c.uKey}`,h=Ie.now();c.draw(e,a,i,o,{viewRanges:s,checkOutOfViewBound:!0,viewportKey:n.viewportKey}),this.addRenderFrameTimeMetricToScene(d,Ie.now()-h,u)}}addRenderFrameTimeMetricToScene(e,n,r){r=r??this.getScene(),r.getEngine().renderFrameTimeMetric$.next([e,n])}addRenderTagToScene(e,n,r){r=r??this.getScene(),r.getEngine().renderFrameTags$.next([e,n])}getScene(){return super.getScene()}isHit(e){const n=this.getInverseCoord(e),r=this.getSkeleton();if(!r)return!1;const{rowHeaderWidth:i,columnHeaderHeight:a}=r;return n.x>i&&n.y>a}getNoMergeCellPositionByIndex(e,n){const r=this.getSkeleton();if(!r)return;const{rowHeightAccumulation:i,columnWidthAccumulation:a,rowHeaderWidth:o,columnHeaderHeight:s}=r;let{startY:l,endY:u,startX:c,endX:d}=Gm(e,n,i,a);return l+=s,u+=s,c+=o,d+=o,{startY:l,endY:u,startX:c,endX:d}}getScrollXYByRelativeCoords(e){const n=this.getParent();let r=0,i=0;const a=n.findViewportByPosToViewport(e);if(a){const o=a.viewportScrollX||0,s=a.viewportScrollY||0;r+=o,i+=s}return{x:r,y:i}}isForceDirty(){return this._forceDirty}makeForceDirty(e=!0){this.makeDirty(e),this._forceDirty=e}setForceDisableGridlines(e){this._forceDisableGridlines=e}getSelectionBounding(e,n,r,i){var a;return(a=this.getSkeleton())==null?void 0:a.getMergeBounding(e,n,r,i)}makeDirty(e=!0){var n;return(n=this.getParent())==null||n.getViewports().forEach(r=>r.markDirty(e)),super.makeDirty(e),e===!1&&(this._dirtyBounds=[]),this}setDirtyArea(e){this._dirtyBounds=e}renderByViewport(e,n,r){const{diffBounds:i,diffX:a,diffY:o,viewPortPosition:s,cacheCanvas:l,leftOrigin:u,topOrigin:c,bufferEdgeX:d,bufferEdgeY:h,isDirty:f,isForceDirty:m}=n,{rowHeaderWidth:g,columnHeaderHeight:p}=r,{a:v=1,d:_=1}=e.getTransform(),C=d*v/window.devicePixelRatio,S=h*_/window.devicePixelRatio,b=l.getContext();b.save();const{left:y,top:A,right:w,bottom:P}=s,M=w-y+g,L=P-A+p,k=m||this.isForceDirty(),O=f||this.isDirty();i.length===0||a===0&&o===0||k||O?(O||k)&&(this.addRenderTagToScene("scrolling",!1),this.refreshCacheCanvas(n,{cacheCanvas:l,cacheCtx:b,mainCtx:e,topOrigin:c,leftOrigin:u,bufferEdgeX:d,bufferEdgeY:h})):(i.length!==0||a!==0||o!==0)&&(this.addRenderTagToScene("scrolling",!0),this.paintNewAreaForScrolling(n,{cacheCanvas:l,cacheCtx:b,mainCtx:e,topOrigin:c,leftOrigin:u,bufferEdgeX:d,bufferEdgeY:h,scaleX:v,scaleY:_,columnHeaderHeight:p,rowHeaderWidth:g}));const $=C*Math.min(1,window.devicePixelRatio),B=S*Math.min(1,window.devicePixelRatio);this._applyCache(l,e,$,B,M,L,y,A,M,L),b.restore()}paintNewAreaForScrolling(e,n){const{cacheCanvas:r,cacheCtx:i,mainCtx:a,topOrigin:o,leftOrigin:s,bufferEdgeX:l,bufferEdgeY:u,scaleX:c,scaleY:d,columnHeaderHeight:h,rowHeaderWidth:f}=n,{shouldCacheUpdate:m,diffCacheBounds:g,diffX:p,diffY:v}=e;i.save(),i.setTransform(1,0,0,1,0,0),i.globalCompositeOperation="copy",i.drawImage(r.getCanvasEle(),p*c,v*d),i.restore(),this._refreshIncrementalState=!0;const _=a.getTransform();if(i.setTransform(_.a,_.b,_.c,_.d,0,0),i.translateWithPrecision(_.e/_.a-s+l,_.f/_.d-o+u),m)for(const C of g){const{left:S,right:b,bottom:y,top:A}=C,w=S-f,P=A-h,M=b-S,L=y-A;i.clearRectByPrecision(w,P,M,L),i.save(),i.beginPath(),i.rectByPrecision(w,P,M,L),i.closePath(),i.clip(),this.draw(i,{...e,diffBounds:[C]}),i.restore()}this._refreshIncrementalState=!1}refreshCacheCanvas(e,n){const{cacheCanvas:r,cacheCtx:i,mainCtx:a,topOrigin:o,leftOrigin:s,bufferEdgeX:l,bufferEdgeY:u}=n;i.save(),i.setTransform(1,0,0,1,0,0),r.clear(),i.restore(),i.save();const c=a.getTransform();i.setTransform(c.a,c.b,c.c,c.d,0,0),i.translateWithPrecision(c.e/c.a-s+l,c.f/c.d-o+u),this.draw(i,e),i.restore()}render(e,n){if(!this.visible)return this.makeDirty(!1),this;const r=this.getSkeleton();if(!r)return;r.calculateWithoutClearingCache(n);const i=r.rowColumnSegment;if(!i||i.startRow===-1&&i.endRow===-1||i.startColumn===-1&&i.endColumn===-1)return;e.save();const{rowHeaderWidth:a,columnHeaderHeight:o}=r;e.translateWithPrecision(a,o);const{viewportKey:s}=n;return this.sheetContentViewport().includes(s)?n&&n.cacheCanvas?this.renderByViewport(e,n,r):this._draw(e,n):this.sheetHeaderViewport().includes(s)||(n&&n.cacheCanvas?this.renderByViewport(e,n,r):this._draw(e,n)),e.restore(),this}_applyCache(e,n,r=0,i=0,a=0,o=0,s=0,l=0,u=0,c=0){if(!n)return;const d=e.getPixelRatio(),h=e.getContext();h.save(),n.save(),n.setTransform(1,0,0,1,0,0),h.setTransform(1,0,0,1,0,0);const f=T((m,g)=>Math.round(m*g),"fn");n.imageSmoothingEnabled=!1,n.drawImage(e.getCanvasEle(),f(r,d),f(i,d),a*d,o*d,f(s,d),f(l,d),u*d,c*d),n.restore(),h.restore()}_draw(e,n){this.draw(e,n)}_getAncestorSize(){const e=this._getAncestorParent();if(e){if(e.classType===ar.ENGINE){const n=e.getCanvas();return{width:n.getWidth(),height:n.getHeight()}}if(e.classType===ar.SCENE_VIEWER)return{width:e.width,height:e.height}}}_getAncestorParent(){let e=this.parent;for(;e;){if(e.classType===ar.ENGINE||e.classType===ar.SCENE_VIEWER)return e;e=(e==null?void 0:e.getParent)&&(e==null?void 0:e.getParent())}}_initialDefaultExtension(){U7.getData().sort(Ol).forEach(e=>{this.register(new e)}),this._backgroundExtension=this.getExtensionByKey("DefaultBackgroundExtension"),this._borderExtension=this.getExtensionByKey("DefaultBorderExtension"),this._fontExtension=this.getExtensionByKey("DefaultFontExtension")}_drawAuxiliary(e){const n=this.getSkeleton();if(n==null)return;const{rowColumnSegment:r,overflowCache:i,showGridlines:a}=n,o=n.getCurrentRowColumnSegmentMergeData(r),{startRow:s,endRow:l,startColumn:u,endColumn:c}=r;if(!n||a===at.FALSE||this._forceDisableGridlines)return;const{rowHeightAccumulation:d,columnTotalWidth:h,columnWidthAccumulation:f,rowTotalHeight:m}=n;if(!d||!f||h===void 0||m===void 0)return;e.save(),e.setLineWidthByPrecision(1),e.strokeStyle=pu([214,216,219]);const g=f.length,p=d.length,v=.4,_=l-s+1,C=c-u+1,S=Math.ceil(_*v),b=Math.ceil(C*v),y=Math.max(Math.floor(s-S),0),A=Math.min(Math.ceil(l+S),p-1),w=Math.min(Math.ceil(c+b),g-1),P=Math.max(Math.floor(u-b),0),M=f[P-1]||0,L=d[y-1]||0,k=f[w],O=d[A];e.translateWithPrecisionRatio(Lo,Lo),e.beginPath(),e.moveToByPrecision(M,L),e.lineToByPrecision(k,L),e.moveToByPrecision(M,L),e.lineToByPrecision(M,O),e.closePathByEnv(),e.stroke();for(let $=y;$<=A;$++){if($<0||$>p-1)continue;const B=d[$];e.beginPath(),e.moveToByPrecision(M,B),e.lineToByPrecision(k,B),e.closePathByEnv(),e.stroke()}for(let $=P;$<=w;$++){if($<0||$>g-1)continue;const B=f[$];e.beginPath(),e.moveToByPrecision(B,L),e.lineToByPrecision(B,O),e.closePathByEnv(),e.stroke()}this._clearRectangle(e,d,f,o),this._clearRectangle(e,d,f,i.toNativeArray()),e.restore()}_clearRectangle(e,n,r,i){var a,o,s,l;if(i!=null)for(const u of i){const{startRow:c,endRow:d,startColumn:h,endColumn:f}=u,m=(a=n[c-1])!=null?a:0,g=(o=n[d])!=null?o:n[n.length-1],p=(s=r[h-1])!=null?s:0,v=(l=r[f])!=null?l:r[r.length-1];e.clearRectByPrecision(p,m,v-p,g-m),e.beginPath(),e.moveToByPrecision(p,m),e.lineToByPrecision(v,m),e.lineToByPrecision(v,g),e.lineToByPrecision(p,g),e.lineToByPrecision(p,m),e.stroke(),e.closePath()}}_clearBackground(e,n){n==null||n.forValue((r,i,a)=>{let{startY:o,endY:s,startX:l,endX:u}=a;const{isMerged:c,isMergedMainCell:d,mergeInfo:h}=a;if(c)return!0;d&&(o=h.startY,s=h.endY,l=h.startX,u=h.endX),e.clearRectForTexture(l,o,u-l+.5,s-o+.5)})}sheetContentViewport(){return[an.VIEW_MAIN,an.VIEW_MAIN_LEFT_TOP,an.VIEW_MAIN_TOP,an.VIEW_MAIN_LEFT]}sheetHeaderViewport(){return[an.VIEW_ROW_TOP,an.VIEW_ROW_BOTTOM,an.VIEW_COLUMN_LEFT,an.VIEW_COLUMN_RIGHT,an.VIEW_LEFT_TOP]}testShowRuler(e,n){const{cacheBound:r}=n,i=this.getSkeleton(),{rowHeaderWidth:a,columnHeaderHeight:o}=i,{left:s,top:l,right:u,bottom:c}=r,d=T(p=>{const v=p%100;return p+(100-v)},"findClosestHundred"),h=d(s),f=d(u),m=d(l),g=d(c);e.save(),e.beginPath(),e.strokeStyle="#000000",e.fillStyle="#000000",e.font="16px Arial",e.lineWidth=1,e.textAlign="center",e.textBaseline="middle";for(let p=h;p<=f;p+=50)e.beginPath(),e.strokeStyle=p%100===0?"red":"#aaa",e.moveTo(p-a,l-o),e.lineTo(p-a,c-o),e.stroke(),e.closePath();for(let p=m;p<=g;p+=50)e.beginPath(),e.strokeStyle=p%100===0?"red":"#aaa",e.moveTo(s-a,p-o),e.lineTo(u-a,p-o),e.stroke(),e.closePath();e.fillStyle="#666";for(let p=h;p<=f;p+=100)for(let v=m;v<=g;v+=100)e.fillText(`${p},${v}`,p-a,v-o);e.closePath(),e.restore()}testGetRandomLightColor(){const e="ABCDEF";let n="#";for(let o=0;o<6;o++)n+=e[Math.floor(Math.random()*6)];const r=Number.parseInt(n.substring(1,3),16),i=Number.parseInt(n.substring(3,5),16),a=Number.parseInt(n.substring(5,7),16);return r+i+a<610?this.testGetRandomLightColor():n}};T(dye,"Spreadsheet");let hye=dye;function mz(t,e,n){t.onPointerEnter$.subscribeEvent(r=>{e(t,r)}),t.onPointerLeave$.subscribeEvent(r=>{n(t,r)})}T(mz,"attachObjectHover");const fye=class extends A0{constructor(e,n){super(e),q(this,"_subScenes",new Map),q(this,"_activeSubScene"),q(this,"_allowSelectedClipElement",!1),this._initialProps(n)}get classType(){return ar.SCENE_VIEWER}render(e,n){var r;if(!this.visible)return this.makeDirty(!1),this;if(n){const{left:a,top:o,right:s,bottom:l}=n.cacheBound||n.viewBound;if(this.width+this.strokeWidth+this.left<a||s<this.left||this.height+this.strokeWidth+this.top<o||l<this.top)return this}const i=this.transform.getMatrix();return e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),(r=this._activeSubScene)==null||r.makeDirtyNoParent(!0).render(e),e.restore(),this.makeDirty(!1),this}getSubScenes(){return this._subScenes}getActiveSubScene(){return this._activeSubScene}getSubScene(e){for(const[n,r]of this._subScenes)if(n===e)return r}addSubScene(e){this._activeSubScene=e,this._subScenes.set(e.sceneKey,e),this.makeDirty()}removeSubScene(e){const n=this._subScenes.get(e);this._subScenes.delete(e),this._activeSubScene===n&&(this._activeSubScene=this._subScenes.values().next().value),this.makeDirty()}activeSubScene(e){if(e==null)return;const n=this._subScenes.get(e);this._activeSubScene!==n&&(this._activeSubScene=n,this.makeDirty())}enableSelectedClipElement(){this._allowSelectedClipElement=!0}disableSelectedClipElement(){this._allowSelectedClipElement=!1}allowSelectedClipElement(){return this._allowSelectedClipElement}pick(e){var n;if(this._activeSubScene===void 0)return;const r=this.transform.invert().applyPoint(e);return(n=this._activeSubScene)==null?void 0:n.pick(r)}dispose(){super.dispose(),this._subScenes.forEach(e=>{e.dispose()})}_initialProps(e){if(!e)return;const n=Object.keys(e);if(n.length===0)return;const r={};let i=!1;n.forEach(a=>{if(e[a]===void 0)return!0;r[a]=e[a],i=!0}),i&&this.transformByState(r),this.makeDirty(!0)}};T(fye,"SceneViewer");let Iyt=fye;const gse="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m200.746667-478.506667l1.749333-1.664 30.165333-30.165333-330.496-330.581333a42.837333 42.837333 0 0 0-60.288 0 42.538667 42.538667 0 0 0 0 60.330666l270.08 270.165334-270.08 269.952a42.496 42.496 0 0 0 0 60.288c16.64 16.64 43.861333 16.469333 60.288 0.042666l298.581334-298.368z",Pyt=class extends Iyt{constructor(){super(...arguments),q(this,"slideChangePageByNavigation$",new si),q(this,"subSceneChanged$",new si),q(this,"_navigationEnabled",!1)}activeFirstPage(){const e=this.getSubScenes().keys().next().value;e!=null&&this.changePage(e)}addPageScene(e){const n=e.sceneKey;this.getSubScene(n)||this.addSubScene(e),this.addNavigation(),this.subSceneChanged$.emitEvent(e)}changePage(e){e!==null&&(this.removeNavigation(),this.activeSubScene(e),this.addNavigation())}hasPage(e){return this.getSubScene(e)}addNavigation(){const e=this.getActiveSubScene();if(e==null||this._navigationEnabled===!1)return;const n=new y_("__slideNavigationLeft__",{data:gse,width:60,height:60,left:90,top:(this.height-30)/2,fill:this._getArrowColor(),flipX:!0}),r=new y_("__slideNavigationRight__",{data:gse,width:60,height:60,left:this.width-90,top:(this.height-30)/2,fill:this._getArrowColor()}),i=T((o,s)=>{o.setCursor(Yn.POINTER),o.setProps({fill:this._getArrowColor(!0)})},"hoverIn"),a=T((o,s)=>{o.setCursor(Yn.DEFAULT),o.setProps({fill:this._getArrowColor()})},"hoverOut");mz(n,i,a),mz(r,i,a),this._addNavTrigger(n,r),e.addObjects([n,r],7)}removeNavigation(){var e,n;const r=this.getActiveSubScene();r==null||this._navigationEnabled===!1||((e=r.getObject("__slideNavigationLeft__"))==null||e.dispose(),(n=r.getObject("__slideNavigationRight__"))==null||n.dispose())}enableNav(){this._navigationEnabled=!0}disableNav(){this._navigationEnabled=!1}hiddenNav(){var e,n;const r=this.getActiveSubScene();r==null||this._navigationEnabled===!1||((e=r.getObject("__slideNavigationLeft__"))==null||e.hide(),(n=r.getObject("__slideNavigationRight__"))==null||n.hide())}showNav(){var e,n;const r=this.getActiveSubScene();r==null||this._navigationEnabled===!1||((e=r.getObject("__slideNavigationLeft__"))==null||e.show(),(n=r.getObject("__slideNavigationRight__"))==null||n.show())}renderToThumb(e,n,r=1,i=1){const a=this.getSubScene(n);a!=null&&(e.save(),e.scale(r,i),a.makeDirtyNoParent(!0).render(e),e.restore())}_getSubScenesIndex(e){if(e==null)return;const n=Array.from(this.getSubScenes()),r=n.length;let i=0;for(let s=0;s<r;s++){const[l]=n[s];if(e===l){i=s;break}}let a=i+1,o=i-1;return a=a>=r?0:a,o=o<0?r-1:o,{nextScene:n[a][1],previousScene:n[o][1]}}_addNavTrigger(e,n){e.onPointerDown$.subscribeEvent(()=>{var r;const i=this._getSubScenesIndex((r=this.getActiveSubScene())==null?void 0:r.sceneKey),a=i==null?void 0:i.previousScene.sceneKey;this.changePage(a),this.slideChangePageByNavigation$.emitEvent(a)}),n.onPointerDown$.subscribeEvent(()=>{var r;const i=this._getSubScenesIndex((r=this.getActiveSubScene())==null?void 0:r.sceneKey),a=i==null?void 0:i.nextScene.sceneKey;this.changePage(a),this.slideChangePageByNavigation$.emitEvent(a)})}_getArrowColor(e=!1){return e?pu(Gh.white,.8):pu(Gh.white,.5)}};T(Pyt,"Slide");const Myt="rgba(198, 198, 198, 1)",Tyt="rgba(255, 255, 255, 1)",Lyt="rgba(158, 158, 158, 1)",mye=class gye extends lye{constructor(e,n,r){super(e,n,r),q(this,"_drawLiquid"),this._drawLiquid=new pS,this.makeDirty(!0)}static create(e,n,r){return new gye(e,n,r)}draw(e,n){var r,i;const a=(r=this.getSkeleton())==null?void 0:r.getSkeletonData(),o=(i=this.getSkeleton())==null?void 0:i.getViewModel().getDataModel();if(a==null||o==null)return;const s=o.getSnapshot().documentStyle.documentFlavor;this._drawLiquid.reset();const{pages:l}=a;let u=0,c=0;for(let d=0,h=l.length;d<h;d++){const f=l[d];if(this.isSkipByDiffBounds(f,u,c,n)){const{x:P,y:M}=this._drawLiquid.translatePage(f,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);c+=P,u+=M;continue}const{width:m,pageWidth:g,height:p,pageHeight:v,originMarginTop:_,originMarginBottom:C,marginLeft:S,marginRight:b}=f;e.save(),e.translate(c-.5,u-.5);const y={width:g??m,height:v??p,strokeWidth:1,stroke:Myt,fill:Tyt,zIndex:3};if(ur.drawWith(e,y),s===Gg.TRADITIONAL){const P={dataArray:[{command:"M",points:[S-15,_]},{command:"L",points:[S,_]},{command:"L",points:[S,_-15]},{command:"M",points:[g-b+15,_]},{command:"L",points:[g-b,_]},{command:"L",points:[g-b,_-15]},{command:"M",points:[S-15,v-C]},{command:"L",points:[S,v-C]},{command:"L",points:[S,v-C+15]},{command:"M",points:[g-b+15,v-C]},{command:"L",points:[g-b,v-C]},{command:"L",points:[g-b,v-C+15]}],strokeWidth:1.5,stroke:Lyt};y_.drawWith(e,P)}e.restore();const{x:A,y:w}=this._drawLiquid.translatePage(f,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);c+=A,u+=w}}changeSkeleton(e){return this.setSkeleton(e),this}_draw(e,n){this.draw(e,n)}};T(mye,"DocBackground");let xyt=mye;const Oyt=class extends A0{constructor(e,n=i=>{},r){super(e),this._render=n,this._isHitCustom=r}toJson(){return{...super.toJson()}}render(e,n){if(!this.visible)return this.makeDirty(!1),this;if(n&&!this.isInGroup){const{top:i,left:a,bottom:o,right:s}=n.viewBound;if(this.width+this.strokeWidth<a||s<0||this.height+this.strokeWidth<i||o<0)return this}const r=this.transform.getMatrix();return e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),this._render(e),e.restore(),this.makeDirty(!1),this}isHit(e){return this._isHitCustom?this._isHitCustom(e):super.isHit(e)}};T(Oyt,"CustomObject");const Nyt=Math.min,kyt=Math.max,Cy=Math.floor;function zJ(t){return YJ(t)?(t.nodeName||"").toLowerCase():"#document"}T(zJ,"getNodeName");function Y7(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}T(Y7,"getWindow");function qJ(t){var e;return(e=(YJ(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}T(qJ,"getDocumentElement");function YJ(t){return t instanceof Node||t instanceof Y7(t).Node}T(YJ,"isNode");function pye(t){return t instanceof HTMLElement||t instanceof Y7(t).HTMLElement}T(pye,"isHTMLElement");function gz(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Y7(t).ShadowRoot}T(gz,"isShadowRoot");function XJ(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=_ye(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}T(XJ,"isOverflowElement");function vye(t){return["html","body","#document"].includes(zJ(t))}T(vye,"isLastTraversableNode");function _ye(t){return Y7(t).getComputedStyle(t)}T(_ye,"getComputedStyle$1");function Cye(t){if(zJ(t)==="html")return t;const e=t.assignedSlot||t.parentNode||gz(t)&&t.host||qJ(t);return gz(e)?e.host:e}T(Cye,"getParentNode");function GJ(t){const e=Cye(t);return vye(e)?t.ownerDocument?t.ownerDocument.body:t.body:pye(e)&&XJ(e)?e:GJ(e)}T(GJ,"getNearestOverflowAncestor");function xD(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=GJ(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),o=Y7(i);if(a){const s=Sye(o);return e.concat(o,o.visualViewport||[],XJ(i)?i:[],s&&n?xD(s):[])}return e.concat(i,xD(i,[],n))}T(xD,"getOverflowAncestors");function Sye(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}T(Sye,"getFrameElement");function bye(t){return new On(e=>{const n=Eye(t,()=>e.next());return()=>n()})}T(bye,"observeClientRect");function yye(t,e){let n=null,r;const i=qJ(t);function a(){clearTimeout(r),n==null||n.disconnect(),n=null}T(a,"cleanup");function o(s=!1,l=1){a();const{left:u,top:c,width:d,height:h}=t.getBoundingClientRect();if(s||e(),!d||!h)return;const f=Cy(c),m=Cy(i.clientWidth-(u+d)),g=Cy(i.clientHeight-(c+h)),p=Cy(u),v={rootMargin:`${-f}px ${-m}px ${-g}px ${-p}px`,threshold:kyt(0,Nyt(1,l))||1};let _=!0;function C(S){const b=S[0].intersectionRatio;if(b!==l){if(!_)return o();b?o(!1,b):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_=!1}T(C,"handleObserve");try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(t)}return T(o,"refresh"),o(!0),a}T(yye,"observeMove");function Eye(t,e){const n=t,r=[...n?xD(n):[]];r.forEach(o=>{o.addEventListener("scroll",e,{passive:!0}),o.addEventListener("resize",e)});const i=n?yye(n,e):null;let a=null;return e(),()=>{r.forEach(o=>{o.removeEventListener("scroll",e),o.removeEventListener("resize",e)}),i==null||i(),a==null||a.disconnect(),a=null}}T(Eye,"autoClientRect");const Rye=class extends et{constructor(){super(...arguments),q(this,"onInputChanged$",new si),q(this,"onTransformChange$",new si),q(this,"_scenes",{}),q(this,"_activeScene",null)}get classType(){return ar.ENGINE}get activeScene(){return this._activeScene}get width(){return 0}get height(){return 0}getScenes(){return this._scenes}getScene(e){return this._scenes[e]}hasScene(e){return e in this._scenes}addScene(e){const n=e.sceneKey;return this.hasScene(n)&&console.warn("Scenes has similar key, it will be covered"),this._scenes[n]=e,e}setActiveScene(e){const n=this.getScene(e);return n&&(this._activeScene=n),n}hasActiveScene(){return this._activeScene!=null}dispose(){super.dispose();const e={...this.getScenes()};Object.keys(e).forEach(n=>{e[n].dispose()}),this._scenes={}}getParent(){}remainScene(e){const n=this.getScenes();if(n[e]){const r=n[e];return delete n[e],r}}};T(Rye,"ThinEngine");let Fyt=Rye;const Aye=class extends Fyt{constructor(e=1,n=1,r,i){super(),q(this,"renderEvenInBackground",!0),q(this,"_beginFrame$",new Zt),q(this,"beginFrame$",this._beginFrame$.asObservable()),q(this,"_endFrame$",new Zt),q(this,"endFrame$",this._endFrame$.asObservable()),q(this,"renderFrameTimeMetric$",new Zt),q(this,"renderFrameTags$",new Zt),q(this,"_renderStartTime",0),q(this,"_rect$",null),q(this,"_container"),q(this,"_canvas"),q(this,"_renderingQueueLaunched",!1),q(this,"_renderFrameTasks",new Array),q(this,"_renderFunction",T(a=>{},"_renderFunction")),q(this,"_requestNewFrameHandler",-1),q(this,"_frameId",-1),q(this,"_usingSafari",gCt()),q(this,"_resizeObserver"),q(this,"_fps",60),q(this,"_deltaTime",0),q(this,"_performanceMonitor"),q(this,"_pointerMoveEvent"),q(this,"_pointerDownEvent"),q(this,"_pointerUpEvent"),q(this,"_pointerOutEvent"),q(this,"_pointerCancelEvent"),q(this,"_pointerBlurEvent"),q(this,"_pointerWheelEvent"),q(this,"_pointerEnterEvent"),q(this,"_pointerLeaveEvent"),q(this,"_dragEnterEvent"),q(this,"_dragLeaveEvent"),q(this,"_dragOverEvent"),q(this,"_dropEvent"),q(this,"_remainCapture",-1),q(this,"_pointer",{}),q(this,"_mouseId",-1),q(this,"_isUsingFirefox",navigator.userAgent.indexOf("Firefox")!==-1),q(this,"_previousWidth",-1e3),q(this,"_previousHeight",-1e3),this._canvas=new mS({mode:i,width:e,height:n,pixelRatio:r}),this._init(),this._handleKeyboardAction(),this._handlePointerAction(),this._handleDragAction(),i!==u9e.Printing&&this._matchMediaHandler()}get clientRect$(){return this._rect$||(this._rect$=new On(e=>{if(!this._container)throw new Error("[Engine]: cannot subscribe to rect changes when container is not set!");const n=bye(this._container).subscribe(()=>e.next());return()=>{n.unsubscribe(),this._rect$=null}})).pipe(VP(1))}_init(){this._performanceMonitor=new GCt}get elapsedTime(){return Ie.now()-this._renderStartTime}get width(){return this.getCanvas().getWidth()}get height(){return this.getCanvas().getHeight()}get requestNewFrameHandler(){return this._requestNewFrameHandler}get frameId(){return this._frameId}setCanvasCursor(e){const n=this.getCanvas().getCanvasEle();n.style.cursor=e}clearCanvas(){this.getCanvas().clear()}getCanvas(){return this._canvas}getCanvasElement(){return this.getCanvas().getCanvasEle()}setRemainCapture(){try{this.getCanvasElement().setPointerCapture(this._remainCapture)}catch{console.warn("no capture")}}getPixelRatio(){return this.getCanvas().getPixelRatio()}setContainer(e,n=!0){var r;if(this._container!==e&&(this._container=e,this._container.appendChild(this.getCanvasElement()),n)){this.resize(),(r=this._resizeObserver)==null||r.unobserve(this._container),this._resizeObserver=null;let i;this._resizeObserver=new ResizeObserver(()=>{i||(i=window.requestIdleCallback(()=>{this.resize(),i=void 0}))}),this._resizeObserver.observe(this._container),this.disposeWithMe(()=>{var a;(a=this._resizeObserver)==null||a.unobserve(this._container),i!==void 0&&window.cancelIdleCallback(i)})}}resize(){if(!this._container)return;const{width:e,height:n}=V7e(this._container);e===this._previousWidth&&n===this._previousHeight||(this._previousWidth=e,this._previousHeight=n,this.resizeBySize(e,n))}resizeBySize(e,n){const r=this.width,i=this.height;this.getCanvas().setSize(e,n),this.onTransformChange$.emitEvent({type:fo.resize,value:{width:e,height:n},preValue:{width:r,height:i}})}dispose(){var e;super.dispose();const n=Goe(),r=this.getCanvasElement();r.removeEventListener(`${n}leave`,this._pointerLeaveEvent),r.removeEventListener(`${n}enter`,this._pointerEnterEvent),r.removeEventListener(`${n}move`,this._pointerMoveEvent),r.removeEventListener(`${n}down`,this._pointerDownEvent),r.removeEventListener(`${n}up`,this._pointerUpEvent),r.removeEventListener(`${n}out`,this._pointerOutEvent),r.removeEventListener(`${n}cancel`,this._pointerCancelEvent),r.removeEventListener("blur",this._pointerBlurEvent),r.removeEventListener("dragenter",this._dragEnterEvent),r.removeEventListener("dragleave",this._dragLeaveEvent),r.removeEventListener("dragover",this._dragOverEvent),r.removeEventListener("drop",this._dropEvent),r.removeEventListener(this._getWheelEventName(),this._pointerWheelEvent),this._renderFrameTasks=[],this._performanceMonitor.dispose(),this.getCanvas().dispose(),this.onTransformChange$.complete(),this.onTransformChange$.complete(),this._beginFrame$.complete(),this._endFrame$.complete(),(e=this._resizeObserver)==null||e.disconnect(),this._container=null}addFunction2RenderLoop(e){this._renderFrameTasks.indexOf(e)===-1&&this._renderFrameTasks.push(e)}startRenderLoop(){this._renderingQueueLaunched||(this._renderStartTime=performance.now(),this._renderingQueueLaunched=!0,this._renderFunction=this._renderFunctionCore.bind(this),this._requestNewFrameHandler=o_(this._renderFunction))}runRenderLoop(e){this.addFunction2RenderLoop(e),this.startRenderLoop()}stopRenderLoop(e){if(!e){this._renderFrameTasks.length=0,this._cancelFrame();return}const n=this._renderFrameTasks.indexOf(e);n>=0&&(this._renderFrameTasks.splice(n,1),this._renderFrameTasks.length===0&&this._cancelFrame())}_beginFrame(e){this._frameId++,this._beginFrame$.next(this._frameId)}_endFrame(e){this._performanceMonitor.endFrame(e),this._fps=this._performanceMonitor.averageFPS,this._deltaTime=this._performanceMonitor.instantaneousFrameTime||0,this._endFrame$.next({FPS:this.getFps(),frameTime:this.getDeltaTime(),elapsedTime:this.elapsedTime})}getFps(){return this._fps}getDeltaTime(){return this._deltaTime}_renderFrame(e){for(let n=0;n<this._renderFrameTasks.length;n++){const r=this._renderFrameTasks[n];r()}}_cancelFrame(){if(this._renderingQueueLaunched&&this._requestNewFrameHandler){if(this._renderingQueueLaunched=!1,typeof window>"u"){if(typeof cancelAnimationFrame=="function")return cancelAnimationFrame(this._requestNewFrameHandler)}else{const{cancelAnimationFrame:e}=this._getHostWindow()||window;if(typeof e=="function")return e(this._requestNewFrameHandler)}return clearTimeout(this._requestNewFrameHandler)}}_getHostWindow(){var e;return typeof window>"u"?null:(e=this.getCanvasElement().ownerDocument)!=null&&e.defaultView?this.getCanvasElement().ownerDocument.defaultView:window}_renderFunctionCore(e){let n=!0;this.renderEvenInBackground||(n=!1),n&&(this._beginFrame(e),this._renderFrame(e),this._endFrame(e)),this._renderFrameTasks.length>0?this._requestNewFrameHandler=o_(this._renderFunction):this._renderingQueueLaunched=!1}_handleKeyboardAction(){const e=T(i=>{const a=i;a.deviceType=$c.Keyboard,a.inputIndex=i.keyCode,a.previousState=0,a.currentState=1,this.onInputChanged$.emitEvent(a)},"keyboardDownEvent"),n=T(i=>{const a=i;a.deviceType=$c.Keyboard,a.inputIndex=i.keyCode,a.previousState=1,a.currentState=0,this.onInputChanged$.emitEvent(a)},"keyboardUpEvent"),r=this.getCanvasElement();r.addEventListener("keydown",e),r.addEventListener("keyup",n)}_handlePointerAction(){const e=Goe();this._pointerMoveEvent=r=>{const i=r,a=this._getPointerType(i);this._pointer[Kn.Horizontal]=i.clientX,this._pointer[Kn.Vertical]=i.clientY,this._pointer[Kn.DeltaHorizontal]=i.movementX,this._pointer[Kn.DeltaVertical]=i.movementY;const o=i;o.deviceType=a,o.inputIndex=Kn.Horizontal,this.onInputChanged$.emitEvent(o),!this._usingSafari&&i.button!==-1&&(o.inputIndex=i.button+2,o.previousState=this._pointer[i.button+2],this._pointer[i.button+2]=this._pointer[i.button+2]?0:1,o.currentState=this._pointer[i.button+2],this.onInputChanged$.emitEvent(o))},this._pointerDownEvent=r=>{const i=r,a=this._getPointerType(i),o=this._pointer[Kn.Horizontal],s=this._pointer[Kn.Vertical],l=this._pointer[i.button+2];a===$c.Mouse?(this._mouseId===-1&&(i.pointerId===void 0?this._mouseId=this._isUsingFirefox?0:1:this._mouseId=i.pointerId),document.pointerLockElement||(this._remainCapture=this._mouseId,this.getCanvasElement().setPointerCapture(this._mouseId))):i.pointerId&&!document.pointerLockElement&&(this._remainCapture=i.pointerId,this.getCanvasElement().setPointerCapture(i.pointerId)),this._pointer[Kn.Horizontal]=i.clientX,this._pointer[Kn.Vertical]=i.clientY,this._pointer[i.button+2]=1;const u=i;u.deviceType=a,o!==i.clientX&&(u.inputIndex=Kn.Horizontal,u.previousState=o,u.currentState=this._pointer[Kn.Horizontal],this.onInputChanged$.emitEvent(u)),s!==i.clientY&&(u.inputIndex=Kn.Vertical,u.previousState=s,u.currentState=this._pointer[Kn.Vertical],this.onInputChanged$.emitEvent(u)),u.inputIndex=i.button+2,u.previousState=l,u.currentState=this._pointer[i.button+2],this.onInputChanged$.emitEvent(u)},this._pointerUpEvent=r=>{const i=r,a=this._getPointerType(i),o=this._pointer[Kn.Horizontal],s=this._pointer[Kn.Vertical],l=this._pointer[i.button+2];this._pointer[Kn.Horizontal]=i.clientX,this._pointer[Kn.Vertical]=i.clientY,this._pointer[i.button+2]=0;const u=i;u.deviceType=a,o!==i.clientX&&(u.inputIndex=Kn.Horizontal,u.previousState=o,u.currentState=this._pointer[Kn.Horizontal],this.onInputChanged$.emitEvent(u)),s!==i.clientY&&(u.inputIndex=Kn.Vertical,u.previousState=s,u.currentState=this._pointer[Kn.Vertical],this.onInputChanged$.emitEvent(u)),u.inputIndex=i.button+2,u.previousState=l,u.currentState=this._pointer[i.button+2];const c=this.getCanvasElement();a===$c.Mouse&&this._mouseId>=0&&c.hasPointerCapture(this._mouseId)?(this._remainCapture=this._mouseId,c.releasePointerCapture(this._mouseId)):u.pointerId&&c.hasPointerCapture(u.pointerId)&&(this._remainCapture=u.pointerId,c.releasePointerCapture(u.pointerId)),this.onInputChanged$.emitEvent(u),a!==$c.Mouse&&(this._pointer={})},this._pointerEnterEvent=r=>{const i=this._getPointerType(r),a=r;a.deviceType=i,a.currentState=2,this.onInputChanged$.emitEvent(a)},this._pointerLeaveEvent=r=>{const i=this._getPointerType(r),a=r;a.deviceType=i,a.currentState=3,this.onInputChanged$.emitEvent(a)},this._pointerOutEvent=r=>{const i=this._getPointerType(r),a=r;a.deviceType=i,a.currentState=3,this.onInputChanged$.emitEvent(a)},this._pointerCancelEvent=r=>{const i=this._getPointerType(r),a=r;a.deviceType=i,a.currentState=3,this.onInputChanged$.emitEvent(a)},this._pointerBlurEvent=()=>{this._mouseId>=0&&this.getCanvasElement().hasPointerCapture(this._mouseId),this._pointer={}},this._pointerWheelEvent=r=>{const i=$c.Mouse,a=this._pointer[Kn.MouseWheelX],o=this._pointer[Kn.MouseWheelY],s=this._pointer[Kn.MouseWheelZ];this._pointer[Kn.MouseWheelX]=r.deltaX||0,this._pointer[Kn.MouseWheelY]=r.deltaY||r.wheelDelta||0,this._pointer[Kn.MouseWheelZ]=r.deltaZ||0;const l=r;l.deviceType=i,this._pointer[Kn.MouseWheelX]!==0&&(l.inputIndex=Kn.MouseWheelX,l.previousState=a,l.currentState=this._pointer[Kn.MouseWheelX],this.onInputChanged$.emitEvent(l)),this._pointer[Kn.MouseWheelY]!==0&&(l.inputIndex=Kn.MouseWheelY,l.previousState=o,l.currentState=this._pointer[Kn.MouseWheelY],this.onInputChanged$.emitEvent(l)),this._pointer[Kn.MouseWheelZ]!==0&&(l.inputIndex=Kn.MouseWheelZ,l.previousState=s,l.currentState=this._pointer[Kn.MouseWheelZ],this.onInputChanged$.emitEvent(l))};const n=this.getCanvasElement();n.addEventListener(`${e}enter`,this._pointerEnterEvent),n.addEventListener(`${e}leave`,this._pointerLeaveEvent),n.addEventListener(`${e}move`,this._pointerMoveEvent),n.addEventListener(`${e}down`,this._pointerDownEvent),n.addEventListener(`${e}up`,this._pointerUpEvent),n.addEventListener(`${e}out`,this._pointerOutEvent),n.addEventListener(`${e}cancel`,this._pointerCancelEvent),n.addEventListener("blur",this._pointerBlurEvent),n.addEventListener(this._getWheelEventName(),this._pointerWheelEvent,this._getPassive()?{passive:!1}:!1)}_handleDragAction(){this._dragEnterEvent=n=>{const r=this._getPointerType(n),i=n;i.deviceType=r,i.currentState=4,this.onInputChanged$.emitEvent(i)},this._dragLeaveEvent=n=>{const r=this._getPointerType(n),i=n;i.deviceType=r,i.currentState=5,this.onInputChanged$.emitEvent(i)},this._dragOverEvent=n=>{n.preventDefault();const r=this._getPointerType(n),i=this._pointer[Kn.Horizontal],a=this._pointer[Kn.Vertical],o=this._pointer[Kn.DeltaHorizontal],s=this._pointer[Kn.DeltaVertical];this._pointer[Kn.Horizontal]=n.clientX,this._pointer[Kn.Vertical]=n.clientY,this._pointer[Kn.DeltaHorizontal]=n.movementX,this._pointer[Kn.DeltaVertical]=n.movementY;const l=n;l.deviceType=r,i!==n.clientX&&(l.inputIndex=Kn.Horizontal,l.previousState=i,l.currentState=this._pointer[Kn.Horizontal],this.onInputChanged$.emitEvent(l)),a!==n.clientY&&(l.inputIndex=Kn.Vertical,l.previousState=a,l.currentState=this._pointer[Kn.Vertical],this.onInputChanged$.emitEvent(l)),this._pointer[Kn.DeltaHorizontal]!==0&&(l.inputIndex=Kn.DeltaHorizontal,l.previousState=o,l.currentState=this._pointer[Kn.DeltaHorizontal],this.onInputChanged$.emitEvent(l)),this._pointer[Kn.DeltaVertical]!==0&&(l.inputIndex=Kn.DeltaVertical,l.previousState=s,l.currentState=this._pointer[Kn.DeltaVertical],this.onInputChanged$.emitEvent(l)),!this._usingSafari&&n.button!==-1&&(l.inputIndex=n.button+2,l.previousState=this._pointer[n.button+2],this._pointer[n.button+2]=this._pointer[n.button+2]?0:1,l.currentState=this._pointer[n.button+2],this.onInputChanged$.emitEvent(l))},this._dropEvent=n=>{const r=this._getPointerType(n),i=n;i.deviceType=r,i.currentState=6,this.onInputChanged$.emitEvent(i)};const e=this.getCanvasElement();e.addEventListener("dragenter",this._dragEnterEvent),e.addEventListener("dragleave",this._dragLeaveEvent),e.addEventListener("dragover",this._dragOverEvent),e.addEventListener("drop",this._dropEvent)}_getWheelEventName(){return"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll"}_getPassive(){let e=!1;const n=T(()=>{},"noop");try{const r={passive:{get(){e=!0}}},i=this.getCanvasElement();i.addEventListener("test",n,r),i.removeEventListener("test",n,r)}catch{}return e}_getPointerType(e){let n=$c.Mouse;return(e.pointerType==="touch"||e.pointerType==="pen"||e.touches)&&(n=$c.Touch),n}_matchMediaHandler(){if(!(window!=null&&window.matchMedia))return;const e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),n=T(()=>{this.resize()},"_handleMediaChange");e.addEventListener("change",n),this.disposeWithMe($t(()=>{e.removeEventListener("change",n)}))}};T(Aye,"Engine");let pz=Aye;const wye=class extends A0{constructor(e,...n){super(e),q(this,"_objects",[]),q(this,"_selfSizeMode",!1),this.addObjects(...n)}get classType(){return ar.GROUP}set cursor(e){this.setCursor(e)}getState(){return this._selfSizeMode?super.getState():n9e(this.left,this.top,this._objects.map(e=>e.getState()))}get width(){return this._selfSizeMode?super.width:this.getState().width||0}get height(){return this._selfSizeMode?super.height:this.getState().height||0}set width(e){if(this._selfSizeMode){super.width=e;return}const n=this.width,r=e-n;this._objects.forEach(i=>{i.resize(i.width+r)})}set height(e){if(this._selfSizeMode){super.height=e;return}const n=this.height,r=e-n;this._objects.forEach(i=>{i.resize(void 0,i.height+r)})}get maxZIndex(){let e=0;for(const n of this._objects)e=Math.max(e,n.zIndex);return e}openSelfSizeMode(){this._selfSizeMode=!0}closeSelfSizeMode(){this._selfSizeMode=!1}reCalculateObjects(){if(this._selfSizeMode)return;const e=this.getState(),{left:n=0,top:r=0}=e;for(const i of this._objects)i.transformByState({left:i.left-n,top:i.top-r});this.transformByState({left:n,top:r})}addObjects(...e){for(const n of e)this.addObject(n)}addObject(e){let n=e;if(Z$(e)){const r=this.getScene();if(n=r==null?void 0:r.getObject(e),!n)return;n.parent=this,n.isInGroup=!0,n.groupKey=this.oKey,this._objects.push(n)}else e.parent=this,e.isInGroup=!0,e.groupKey=this.oKey,this._objects.push(e)}removeObject(e){const n=this.getObjects(),r=n.length;if(Z$(e))for(let i=0;i<r;i++){const a=n[i];if(a.oKey===e){n.splice(i,1),this.parent.removeObject(a);return}}else for(let i=0;i<r;i++){const a=n[i];if(a===e){n.splice(i,1),this.parent.removeObject(a);return}}}removeSelfObjectAndTransform(e,n,r,i=!1){const a=[...this.getObjects()],o=a.length;n==null&&(n=this.width),r==null&&(r=this.height);for(let s=0;s<o;s++){const l=a[s];if(l.oKey===e){a.splice(s,1),i&&this._transformObject(l,n,r),l.parent=this.parent,l.groupKey=void 0,l.isInGroup=!1,this._objects=a;return}}}_transformObject(e,n,r){const i=r9e(e.getState(),this.getState(),n,r);e.classType===ar.GROUP?e.transformByState({left:i.left,top:i.top}):e.transformByState(i)}getObjectsByOrder(){const e=[];this._objects.sort(Ol);for(const n of this._objects)n.visible&&e.push(n);return e}getObjects(){return this._objects}render(e,n){e.save();const r=this.transform.getMatrix();e.transform(r[0],r[1],r[2],r[3],r[4],r[5]);const i=this.getObjectsByOrder();for(let a=0;a<i.length;a++)i[a].render(e,n);e.restore()}resize(e,n){return this}scale(e,n){return this}skew(e,n){return this}flip(e,n){return this}isHit(e){return!0}_clear(){this._objects=[]}dispose(){[...this.getObjects()].forEach(e=>{e.dispose()}),this._clear(),super.dispose()}_transformBounds(e){return e}};T(wye,"Group");let E8=wye;const Dye=class extends et{constructor(e,n=[],r=1,i=!1){super(),q(this,"_objects",[]),q(this,"_cacheCanvas"),q(this,"_dirty",!0),q(this,"_debounceDirtyFunc"),this._scene=e,this._zIndex=r,this._allowCache=i,this.addObjects(n),this._allowCache&&this._initialCacheCanvas()}get scene(){return this._scene}get zIndex(){return this._zIndex}enableCache(){this._allowCache=!0,this._initialCacheCanvas()}disableCache(){var e;this._allowCache=!1,(e=this._cacheCanvas)==null||e.dispose(),this._cacheCanvas=null}isAllowCache(){return this._allowCache}getObjectsByOrder(){const e=[];this._objects.sort(Ol);for(const n of this._objects)!n.isInGroup&&n.visible&&e.push(n);return e}getObjectsByOrderForPick(){const e=[];this._objects.sort(Ol);for(const n of this._objects)n.classType!==ar.GROUP&&n.visible&&n.evented&&e.push(n);return e}getObjects(){return this._objects}addObject(e){if(e.classType===ar.GROUP){const n=e.getObjects();for(const r of n)this.scene.getObject(r.oKey)||(this._objects.push(r),this.scene.setObjectBehavior(r),this._layerBehavior(r))}return this._objects.push(e),this.scene.setObjectBehavior(e),this._layerBehavior(e),this}removeObject(e){const n=this.getObjects(),r=n.length;if(e instanceof A0){for(let i=0;i<r;i++)if(n[i]===e){n.splice(i,1);return}}else for(let i=0;i<r;i++)if(n[i].oKey===e){n.splice(i,1);return}}addObjects(e){return e.forEach(n=>{this.addObject(n)}),this}removeObjects(e){const n=this.getObjects(),r=n.length;for(let i=r-1;i>=0;i--){let a=n[i];const o=e.length;if(o===0)break;for(let s=0;s<o;s++){const l=e[s];if(a=l instanceof A0?a:a.oKey,a===l){n.splice(i,1);break}}}}makeDirty(e=!0){this._dirty=e;const n=this.scene.getParent();return n.classType===ar.SCENE_VIEWER&&n.makeDirty(!0),this}makeDirtyWithDebounce(e=!0){this._debounceDirtyFunc&&this._debounceDirtyFunc(),this._debounceDirtyFunc=zP(()=>{this.makeDirty(e),this._debounceDirtyFunc=null})}isDirty(){return this._dirty}render(e,n=!1){var r;const i=e||((r=this._scene.getEngine())==null?void 0:r.getCanvas().getContext());if(i)if(this._allowCache&&this._cacheCanvas){if(this.isDirty()){const a=this._cacheCanvas.getContext();this._cacheCanvas.clear(),a.save(),a.setTransform(i.getTransform()),this._draw(a,n),a.restore()}this._applyCache(i)}else i.save(),this._draw(i,n),i.restore();return this.makeDirty(!1),this}_layerBehavior(e){this.disposeWithMe($t(e.onTransformChange$.subscribeEvent(()=>{this.makeDirty(!0)}))),e.layer=this}_initialCacheCanvas(){this._cacheCanvas=new mS;const e=this.scene.getEngine();e&&this.disposeWithMe(e.onTransformChange$.subscribeEvent(()=>{this._resizeCacheCanvas()}))}_draw(e,n){const r=this._scene.getViewports().filter(a=>a.shouldIntoRender()),i=this.getObjectsByOrder();for(const[a,o]of r.entries())o.render(e,i,n);i.forEach(a=>{var o;a.makeDirty(!1),(o=a.makeForceDirty)==null||o.call(a,!1)})}_applyCache(e){if(!e||this._cacheCanvas==null)return;const n=this._cacheCanvas.getWidth(),r=this._cacheCanvas.getHeight();n!==0&&r!==0&&e.drawImage(this._cacheCanvas.getCanvasEle(),0,0,n,r)}_resizeCacheCanvas(){var e;const n=this._scene.getEngine();n&&((e=this._cacheCanvas)==null||e.setSize(n.width,n.height)),this.makeDirty(!0)}clear(){this._objects=[]}dispose(){var e,n;super.dispose(),[...this.getObjects()].forEach(r=>{r.dispose()}),this.clear(),(e=this._debounceDirtyFunc)==null||e.call(this),this._debounceDirtyFunc=null,(n=this._cacheCanvas)==null||n.dispose(),this._cacheCanvas=null}};T(Dye,"Layer");let OD=Dye;const ig=class Q5 extends et{constructor(e){super(),q(this,"_scene"),q(this,"_alreadyAttached",!1),q(this,"_onInput$"),q(this,"_onPointerMove"),q(this,"_onPointerDown"),q(this,"_onPointerUp"),q(this,"_onPointerOut"),q(this,"_onPointerCancel"),q(this,"_onPointerEnter"),q(this,"_onPointerLeave"),q(this,"_onMouseWheel"),q(this,"_onKeyDown"),q(this,"_onKeyUp"),q(this,"_onDragEnter"),q(this,"_onDragLeave"),q(this,"_onDragOver"),q(this,"_onDrop"),q(this,"_currentMouseEnterPicked"),q(this,"_startingPosition",new cn(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),q(this,"_delayedTimeout",-1),q(this,"_delayedTripeTimeout",-1),q(this,"_doubleClickOccurred",0),q(this,"_tripleClickState",!1),q(this,"_currentObject"),this._scene=e}dispose(){super.dispose(),this.detachControl(),this._scene=null,this._currentMouseEnterPicked=null,this._currentObject=null,this._startingPosition=null,clearTimeout(this._delayedTimeout),clearTimeout(this._delayedTripeTimeout),this._onPointerMove=null,this._onPointerDown=null,this._onPointerUp=null,this._onPointerEnter=null,this._onPointerLeave=null,this._onMouseWheel=null,this._onKeyDown=null,this._onKeyUp=null,this._onDragEnter=null,this._onDragLeave=null,this._onDragOver=null,this._onDrop=null}mouseLeaveEnterHandler(e){var n;const r=this._currentObject;if(r==null)(n=this._currentMouseEnterPicked)==null||n.triggerPointerLeave(e),this._currentMouseEnterPicked=null;else if(r!==this._currentMouseEnterPicked){const i=this._currentMouseEnterPicked;this._currentMouseEnterPicked=r,i==null||i.triggerPointerLeave(e),r==null||r.triggerPointerEnter(e)}}dragLeaveEnterHandler(e){var n;const r=this._currentObject;if(r==null)(n=this._currentMouseEnterPicked)==null||n.triggerDragLeave(e),this._currentMouseEnterPicked=null;else if(r!==this._currentMouseEnterPicked){const i=this._currentMouseEnterPicked;this._currentMouseEnterPicked=r,i==null||i.triggerDragLeave(e),r==null||r.triggerDragEnter(e)}}attachControl(e=!0,n=!0,r=!0,i=!0,a=!0,o=!0){const s=this._scene.getEngine();s&&(this._onPointerEnter=l=>{var u;l.pointerId===void 0&&(l.pointerId=0),this._currentObject=this._getObjectAtPos(l.offsetX,l.offsetY),(u=this._currentObject)==null||u.triggerPointerMove(l),this.mouseLeaveEnterHandler(l)},this._onPointerLeave=l=>{l.pointerId===void 0&&(l.pointerId=0),this._currentObject=null,this.mouseLeaveEnterHandler(l)},this._onPointerMove=l=>{var u;l.pointerId===void 0&&(l.pointerId=0);const c=this._currentObject=this._getObjectAtPos(l.offsetX,l.offsetY),d=c==null?void 0:c.triggerPointerMove(l);this.mouseLeaveEnterHandler(l),this._checkDirectSceneEventTrigger(!d,this._currentObject)&&(this._scene.onPointerMove$.emitEvent(l),(u=this._scene.getEngine())==null||u.setRemainCapture())},this._onPointerDown=l=>{l.pointerId===void 0&&(l.pointerId=0);const u=this._getObjectAtPos(l.offsetX,l.offsetY),c=u==null?void 0:u.triggerPointerDown(l);this._checkDirectSceneEventTrigger(!c,u)&&this._scene.onPointerDown$.emitEvent(l)},this._onPointerUp=l=>{l.pointerId===void 0&&(l.pointerId=0);const u=this._getObjectAtPos(l.offsetX,l.offsetY),c=u==null?void 0:u.triggerPointerUp(l);this._checkDirectSceneEventTrigger(!c,u)&&this._scene.onPointerUp$.emitEvent(l),this._prePointerDoubleOrTripleClick(l)},this._onPointerCancel=l=>{this._scene.onPointerCancel$.emitEvent(l)},this._onPointerOut=l=>{this._scene.onPointerOut$.emitEvent(l)},this._onMouseWheel=l=>{const u=this._getObjectAtPos(l.offsetX,l.offsetY),c=u==null?void 0:u.triggerMouseWheel(l);this._scene.getViewports().forEach(d=>{d.onMouseWheel$.emitEvent(l)}),this._checkDirectSceneEventTrigger(!c,u)&&this._scene.onMouseWheel$.emitEvent(l)},this._onKeyDown=l=>{this._scene.onKeyDown$.emitEvent(l)},this._onKeyUp=l=>{this._scene.onKeyUp$.emitEvent(l)},this._onDragEnter=l=>{var u;this._currentObject=this._getObjectAtPos(l.offsetX,l.offsetY),(u=this._currentObject)==null||u.triggerDragOver(l),this.dragLeaveEnterHandler(l)},this._onDragLeave=l=>{this._currentObject=null,this.dragLeaveEnterHandler(l)},this._onDragOver=l=>{var u,c;this._currentObject=this._getObjectAtPos(l.offsetX,l.offsetY);const d=(u=this._currentObject)==null?void 0:u.triggerDragOver(l);this.dragLeaveEnterHandler(l),this._checkDirectSceneEventTrigger(!d,this._currentObject)&&(this._scene.onDragOver$.emitEvent(l),(c=this._scene.getEngine())==null||c.setRemainCapture())},this._onDrop=l=>{const u=this._getObjectAtPos(l.offsetX,l.offsetY),c=u==null?void 0:u.triggerDrop(l);this._checkDirectSceneEventTrigger(!c,u)&&this._scene.onDrop$.emitEvent(l)},this._onInput$=s.onInputChanged$.subscribeEvent(l=>{const u=l;if(l.deviceType===$c.Keyboard&&(l.currentState===1&&this._onKeyDown(u),l.currentState===0&&this._onKeyUp(u)),l.dataTransfer){r&&(l.inputIndex===Kn.Horizontal||l.inputIndex===Kn.Vertical||l.inputIndex===Kn.DeltaHorizontal||l.inputIndex===Kn.DeltaVertical)?this._onDragOver(u):a&&l.currentState===4?this._onDragEnter(u):o&&l.currentState===5?this._onDragLeave(u):n&&l.currentState===6&&this._onDrop(u);return}if(l.deviceType===$c.Mouse||l.deviceType===$c.Touch)switch(e&&l.inputIndex>=Kn.LeftClick&&l.inputIndex<=Kn.RightClick&&l.currentState===1&&this._onPointerDown(u),n&&l.inputIndex>=Kn.LeftClick&&l.inputIndex<=Kn.RightClick&&l.currentState===0&&this._onPointerUp(u),r&&l.type==="pointermove"?this._onPointerMove(u):i&&(l.inputIndex===Kn.MouseWheelX||l.inputIndex===Kn.MouseWheelY||l.inputIndex===Kn.MouseWheelZ)?this._onMouseWheel(u):a&&l.currentState===2?this._onPointerEnter(u):o&&l.currentState===3&&this._onPointerLeave(u),u.type){case"pointerout":this._onPointerOut(u);break;case"pointercancel":this._onPointerCancel(u);break}}),this.disposeWithMe($t(this._onInput$)),this._alreadyAttached=!0)}detachControl(){var e;!this._alreadyAttached||!this._scene.getEngine()||((e=this._onInput$)==null||e.unsubscribe(),this._alreadyAttached=!1)}_getObjectAtPos(e,n){var r;return(r=this._scene)==null?void 0:r.pick(cn.FromArray([e,n]))}_checkDirectSceneEventTrigger(e,n){let r=!1;n==null&&(r=!0);let i=!0;if(n&&n.classType===ar.BASE_OBJECT){const a=n.getScene();a&&(i=a.getParent().classType!==ar.SCENE_VIEWER)}return!this._scene.objectsEvented&&e&&i||r}_isPointerSwiping(e,n){return Math.abs(this._startingPosition.x-e)>Q5.DragMovementThreshold||Math.abs(this._startingPosition.y-n)>Q5.DragMovementThreshold}_prePointerDoubleOrTripleClick(e){var n,r,i,a;const{clientX:o,clientY:s}=e;this._isPointerSwiping(o,s)&&this._resetDoubleClickParam(),this._delayedTimeout=setTimeout(()=>{this._resetDoubleClickParam()},Q5.DoubleClickDelay),this._doubleClickOccurred+=1,this._tripleClickState&&((r=(n=this._scene)==null?void 0:n.pick(cn.FromArray([e.offsetX,e.offsetY])))==null||r.triggerTripleClick(e),this._scene.onTripleClick$.emitEvent(e)),this._doubleClickOccurred===2&&((a=(i=this._scene)==null?void 0:i.pick(cn.FromArray([e.offsetX,e.offsetY])))==null||a.triggerDblclick(e),this._scene.onDblclick$.emitEvent(e),this._resetDoubleClickParam(),this._tripleClickState=!0,clearTimeout(this._delayedTripeTimeout),this._delayedTripeTimeout=setTimeout(()=>{this._tripleClickState=!1},Q5.TripleClickDelay)),this._startingPosition.x=o,this._startingPosition.y=s}_resetDoubleClickParam(){this._doubleClickOccurred=0,clearTimeout(this._delayedTimeout)}};T(ig,"InputManager"),q(ig,"DragMovementThreshold",2),q(ig,"LongPressDelay",500),q(ig,"DoubleClickDelay",500),q(ig,"TripleClickDelay",300),q(ig,"ExclusiveDoubleClickMode",!1);let Vyt=ig;var Rs=(t=>(t[t.NONE=0]="NONE",t[t.X=1]="X",t[t.Y=2]="Y",t[t.ALL=3]="ALL",t))(Rs||{});const Iye=class Pye{constructor(e,n=3,r){q(this,"_requestNewFrameNumber",-1),q(this,"_viewport"),q(this,"_offsetX",0),q(this,"_offsetY",0),q(this,"_moveX",0),q(this,"_moveY",0),q(this,"_scrollX",0),q(this,"_scrollY",0),q(this,"_scrollFunction"),this._scene=e,this._scrollTimerType=n,this._padding=r,this._padding||(this._padding={t:0,b:15,l:0,r:60})}static create(e,n=3,r){return new Pye(e,n,r)}set scrollTimerType(e){this._scrollTimerType=e}get scrollTimerType(){return this._scrollTimerType}setActiveViewport(e){this._viewport=e}getActiveViewport(){return this._viewport}startScroll(e,n,r){this._offsetX=e,this._offsetY=n,this._moveX=e,this._moveY=n,r!=null?this._viewport=r:this._viewport=this.getViewportByCoord(this._scene),this._runRenderLoop()}_autoScroll(e){const n=(e==null?void 0:e.top)||0,r=n+((e==null?void 0:e.height)||0),i=(e==null?void 0:e.left)||0,a=i+((e==null?void 0:e.width)||0),{t:o=0,b:s=0,r:l=0,l:u=0}=this._padding;let c=0,d=0,h=!1;if(this._scrollTimerType&1&&(this._moveX<i+u&&(c=this._moveX-i-u,h=!0),this._moveX>a-l&&(c=this._moveX-a+l,h=!0)),this._scrollTimerType&2&&(this._moveY<n+o&&(d=this._moveY-n-o,h=!0),this._moveY>r-s&&(d=this._moveY-r+s,h=!0)),!h)return;const f=e==null?void 0:e.scrollByViewportDeltaVal({viewportScrollX:c,viewportScrollY:d}),m=e==null?void 0:e.transScroll2ViewportScrollValue(c,d);if(this._scrollX=(m==null?void 0:m.x)||0,this._scrollY=(m==null?void 0:m.y)||0,f){const g=this._findAncestorScene(e==null?void 0:e.scene),p=this.getViewportByCoord(g);p&&this._autoScroll(p)}}scrolling(e,n,r){this._moveX=e,this._moveY=n,this._scrollFunction=r}stopScroll(){M7e(this._requestNewFrameNumber)}dispose(){this.stopScroll(),delete this._scrollFunction}getViewportByCoord(e){return e==null?void 0:e.findViewportByPosToViewport(cn.FromArray([this._offsetX,this._offsetY]))}getScene(){return this._scene}_runRenderLoop(){this._autoScroll(this._viewport),this._scrollFunction&&this._scrollFunction(this._scrollX,this._scrollY),this._requestNewFrameNumber=o_(this._runRenderLoop.bind(this))}_findAncestorScene(e){let n=e==null?void 0:e.getParent();for(;n;){if(n.classType===ar.SCENE)return n;n=(n==null?void 0:n.getParent)&&(n==null?void 0:n.getParent())}}};T(Iye,"ScrollTimer");let df=Iye;const Byt=["__SpreadsheetTransformerResizeLT__","__SpreadsheetTransformerResizeCT__","__SpreadsheetTransformerResizeRT__","__SpreadsheetTransformerResizeLM__","__SpreadsheetTransformerResizeRM__","__SpreadsheetTransformerResizeLB__","__SpreadsheetTransformerResizeCB__","__SpreadsheetTransformerResizeRB__"],Uyt=2,ru=20,$u=20,Hyt=5e3,Mye=class extends et{constructor(e,n){super(),q(this,"isCropper",!1),q(this,"hoverEnabled",!1),q(this,"hoverEnterFunc"),q(this,"hoverLeaveFunc"),q(this,"resizeEnabled",!0),q(this,"rotateEnabled",!0),q(this,"rotationSnaps",[]),q(this,"rotationSnapTolerance",5),q(this,"rotateAnchorOffset",50),q(this,"rotateSize",10),q(this,"rotateCornerRadius",10),q(this,"borderEnabled",!0),q(this,"borderStroke","rgb(97, 97, 97)"),q(this,"borderStrokeWidth",1),q(this,"borderDash",[]),q(this,"borderSpacing",0),q(this,"anchorFill","rgb(255, 255, 255)"),q(this,"anchorStroke","rgb(185, 185, 185)"),q(this,"anchorStrokeWidth",1),q(this,"anchorSize",10),q(this,"anchorCornerRadius",10),q(this,"keepRatio",!0),q(this,"centeredScaling",!1),q(this,"zeroLeft",0),q(this,"zeroTop",0),q(this,"enabledAnchors",[1,1,1,1,1,1,1,1]),q(this,"flipEnabled",!1),q(this,"ignoreStroke",!1),q(this,"boundBoxFunc"),q(this,"useSingleNodeRotation",!1),q(this,"shouldOverdrawWholeArea",!1),q(this,"_changeStart$",new Zt),q(this,"changeStart$",this._changeStart$.asObservable()),q(this,"_changing$",new Zt),q(this,"changing$",this._changing$.asObservable()),q(this,"_changeEnd$",new Zt),q(this,"changeEnd$",this._changeEnd$.asObservable()),q(this,"_clearControl$",new Zt),q(this,"clearControl$",this._clearControl$.asObservable()),q(this,"_createControl$",new Zt),q(this,"createControl$",this._createControl$.asObservable()),q(this,"_startOffsetX",-1),q(this,"_startOffsetY",-1),q(this,"_startStateMap",new Map),q(this,"_viewportScrollX",-1),q(this,"_viewportScrollY",-1),q(this,"_topScenePointerMoveSub"),q(this,"_topScenePointerUpSub"),q(this,"_cancelFocusSubscription"),q(this,"_transformerControlMap",new Map),q(this,"_selectedObjectMap",new Map),q(this,"_subscriptionObjectMap",new Map),q(this,"_copperControl"),q(this,"_copperSelectedObject"),q(this,"_moveBufferSkip",!1),q(this,"_debounceClearFunc"),this._scene=e,this._initialProps(n)}changeNotification(){return this._changing$.next({objects:this._selectedObjectMap,type:0}),this}getSelectedObjectMap(){return this._selectedObjectMap}resetProps(e){this._initialProps(e)}getScene(){return this._scene}clearControls(e=!1){this._clearControls(e)}updateControl(){this._updateControl()}debounceRefreshControls(){this._debounceClearFunc&&this._debounceClearFunc(),this._debounceClearFunc=zP(()=>{this.refreshControls(),this._debounceClearFunc=null})}clearSelectedObjects(){var e;this._selectedObjectMap.clear(),(e=this._cancelFocusSubscription)==null||e.unsubscribe(),this._cancelFocusSubscription=null,this._clearControls(!0)}refreshControls(){return this._clearControlMap(),this._selectedObjectMap.forEach(e=>{this._createControl(e)}),this}createControlForCopper(e){this._createControl(e,!1)}clearCopperControl(){var e;(e=this._copperControl)==null||e.dispose(),this._copperControl=null}setSelectedControl(e){e=this._findGroupObject(e),this._selectedObjectMap.set(e.oKey,e),this._createControl(e)}_getConfig(e){var n,r,i,a,o,s,l,u,c,d,h,f,m,g,p,v,_,C,S,b,y,A,w,P,M,L,k,O,$;const B=e.transformerConfig;let{isCropper:V,hoverEnabled:X,hoverEnterFunc:z,hoverLeaveFunc:F,resizeEnabled:H,rotateEnabled:W,rotationSnaps:K,rotationSnapTolerance:G,rotateAnchorOffset:te,rotateSize:Y,rotateCornerRadius:ae,borderEnabled:ie,borderStroke:ne,borderStrokeWidth:de,borderDash:_e,borderSpacing:Pe,anchorFill:De,anchorStroke:Ee,anchorStrokeWidth:ye,anchorSize:Ve,anchorCornerRadius:ke,keepRatio:Ke,centeredScaling:$e,enabledAnchors:Fe,flipEnabled:He,ignoreStroke:ct,boundBoxFunc:_t,useSingleNodeRotation:Ye,shouldOverdrawWholeArea:Ot}=this;return B!=null&&(V=(n=B.isCropper)!=null?n:V,X=(r=B.hoverEnabled)!=null?r:X,z=(i=B.hoverEnterFunc)!=null?i:z,F=(a=B.hoverLeaveFunc)!=null?a:F,H=(o=B.resizeEnabled)!=null?o:H,W=(s=B.rotateEnabled)!=null?s:W,K=(l=B.rotationSnaps)!=null?l:K,G=(u=B.rotationSnapTolerance)!=null?u:G,te=(c=B.rotateAnchorOffset)!=null?c:te,Y=(d=B.rotateSize)!=null?d:Y,ae=(h=B.rotateCornerRadius)!=null?h:ae,ie=(f=B.borderEnabled)!=null?f:ie,ne=(m=B.borderStroke)!=null?m:ne,de=(g=B.borderStrokeWidth)!=null?g:de,_e=(p=B.borderDash)!=null?p:_e,Pe=(v=B.borderSpacing)!=null?v:Pe,De=(_=B.anchorFill)!=null?_:De,Ee=(C=B.anchorStroke)!=null?C:Ee,ye=(S=B.anchorStrokeWidth)!=null?S:ye,Ve=(b=B.anchorSize)!=null?b:Ve,ke=(y=B.anchorCornerRadius)!=null?y:ke,Ke=(A=B.keepRatio)!=null?A:Ke,$e=(w=B.centeredScaling)!=null?w:$e,Fe=(P=B.enabledAnchors)!=null?P:Fe,He=(M=B.flipEnabled)!=null?M:He,ct=(L=B.ignoreStroke)!=null?L:ct,_t=(k=B.boundBoxFunc)!=null?k:_t,Ye=(O=B.useSingleNodeRotation)!=null?O:Ye,Ot=($=B.shouldOverdrawWholeArea)!=null?$:Ot),{isCropper:V,hoverEnabled:X,hoverEnterFunc:z,hoverLeaveFunc:F,resizeEnabled:H,rotateEnabled:W,rotationSnaps:K,rotationSnapTolerance:G,rotateAnchorOffset:te,rotateSize:Y,rotateCornerRadius:ae,borderEnabled:ie,borderStroke:ne,borderStrokeWidth:de,borderDash:_e,borderSpacing:Pe,anchorFill:De,anchorStroke:Ee,anchorStrokeWidth:ye,anchorSize:Ve,anchorCornerRadius:ke,keepRatio:Ke,centeredScaling:$e,enabledAnchors:Fe,flipEnabled:He,ignoreStroke:ct,boundBoxFunc:_t,useSingleNodeRotation:Ye,shouldOverdrawWholeArea:Ot}}attachTo(e){this.hoverEnabled&&(this.hoverEnterFunc&&e.onPointerEnter$.subscribeEvent(this.hoverEnterFunc),this.hoverLeaveFunc&&e.onPointerLeave$.subscribeEvent(this.hoverLeaveFunc));const n=e.onPointerDown$.subscribeEvent((r,i)=>{const{offsetX:a,offsetY:o}=r;this._startOffsetX=a,this._startOffsetY=o;const{isCropper:s}=this._getConfig(e),l=this._getTopScene();if(!l)return;this._addCancelObserver(l),l.disableObjectsEvent();const u=df.create(l);u.startScroll(a,o);const{scrollX:c,scrollY:d}=$5(u);this._viewportScrollX=c,this._viewportScrollY=d,s?(this._copperSelectedObject=e,this._changeStart$.next({target:e,objects:new Map([[e.oKey,e]]),type:0})):(this._updateActiveObjectList(e,r),this._changeStart$.next({target:e,objects:this._selectedObjectMap,type:0})),this._moveBufferSkip=!1;const h=l.onPointerMove$.subscribeEvent(m=>{const{offsetX:g,offsetY:p}=m;this._moving(g,p,u,s),!s&&this._clearControlMap(),u.scrolling(g,p,()=>{this._moving(g,p,u,s)})}),f=l.onPointerUp$.subscribeEvent(m=>{h==null||h.unsubscribe(),f==null||f.unsubscribe(),l.enableObjectsEvent(),!s&&this.refreshControls(),u.dispose();const{offsetX:g,offsetY:p}=m;s?this._changeEnd$.next({objects:new Map([[e.oKey,e]]),type:2,offsetX:g,offsetY:p}):this._changeEnd$.next({objects:this._selectedObjectMap,type:2,offsetX:g,offsetY:p})});i.stopPropagation()});return this.disposeWithMe($t(n)),this._subscriptionObjectMap.set(e.oKey,n),e}detachFrom(e){const n=this._subscriptionObjectMap.get(e.oKey);return n&&(n.unsubscribe(),this._subscriptionObjectMap.delete(e.oKey)),e}dispose(){var e,n,r;super.dispose(),(e=this._topScenePointerMoveSub)==null||e.unsubscribe(),(n=this._topScenePointerUpSub)==null||n.unsubscribe(),(r=this._cancelFocusSubscription)==null||r.unsubscribe(),this._cancelFocusSubscription=null,this._topScenePointerMoveSub=null,this._topScenePointerUpSub=null,this._cancelFocusSubscription=null,this._transformerControlMap.forEach(i=>i.dispose()),this._selectedObjectMap.forEach(i=>i.dispose()),this._changeStart$.complete(),this._changing$.complete(),this._changeEnd$.complete()}_initialProps(e){if(!e)return;const n=Object.keys(e);n.length!==0&&n.forEach(r=>{if(e[r]===void 0)return!0;this[r]=e[r]})}_checkMoveBoundary(e,n,r,i,a,o,s){const{left:l,top:u,width:c,height:d}=e;return n+l+i<this.zeroLeft&&(n=-i),r+u+a<this.zeroTop&&(r=-a),n+l+c+i>o+this.zeroLeft&&(n=this.zeroLeft+o-c-l-i),r+u+d+a>s+this.zeroTop&&(r=this.zeroTop+s-d-u-a),{moveLeft:n,moveTop:r}}_moving(e,n,r,i=!1){const{scrollX:a,scrollY:o}=$5(r),s=e-this._viewportScrollX+a,l=n-this._viewportScrollY+o,{ancestorScaleX:u,ancestorScaleY:c,ancestorLeft:d,ancestorTop:h}=this._scene;let f=this._smoothAccuracy((s-this._startOffsetX)/u,i),m=this._smoothAccuracy((l-this._startOffsetY)/c,i);if(this._moveBufferBlocker(e,n))return;const g=this._getTopScene();if(!g)return;const{width:p,height:v}=g;if(i){if(this._copperSelectedObject){const _=this._copperSelectedObject,C=this._checkMoveBoundary(_,f,m,d,h,p,v);f=C.moveLeft,m=C.moveTop,_.translate(f+_.left,m+_.top),this._changing$.next({objects:new Map([[_.oKey,_]]),moveX:f,moveY:m,type:1,offsetX:e,offsetY:n})}}else{const _=Array.from(this._selectedObjectMap.values());for(let C=0;C<_.length;C++){const S=_[C],b=this._checkMoveBoundary(S,f,m,d,h,p,v);f=b.moveLeft,m=b.moveTop}this._selectedObjectMap.forEach(C=>{C.translate(f+C.left,m+C.top)}),this._changing$.next({objects:this._selectedObjectMap,moveX:f,moveY:m,type:1,offsetX:e,offsetY:n})}this._startOffsetX=s,this._startOffsetY=l}_moveBufferBlocker(e,n){return!this._moveBufferSkip&&Math.abs(e-this._startOffsetX)<d6&&Math.abs(n-this._startOffsetY)<d6?!0:(this._moveBufferSkip=!0,!1)}_anchorMoving(e,n,r,i,a,o=!1,s){const{scrollX:l,scrollY:u}=$5(i),c=n-this._viewportScrollX+l,d=r-this._viewportScrollY+u;if(this._moveBufferBlocker(n,r))return;const h=s instanceof E8;o?(this._moveFunc(s,e,c,d,a,o,h),this._changing$.next({objects:new Map([[s.oKey,s]]),type:1,offsetX:n,offsetY:r})):(this._selectedObjectMap.forEach(f=>{this._moveFunc(f,e,c,d,a,o,h)}),this._changing$.next({objects:this._selectedObjectMap,type:1,offsetX:n,offsetY:r})),a&&e!=="__SpreadsheetTransformerResizeCT__"&&e!=="__SpreadsheetTransformerResizeCB__"&&e!=="__SpreadsheetTransformerResizeLM__"&&e!=="__SpreadsheetTransformerResizeRM__"&&!h||(this._startOffsetX=c,this._startOffsetY=d)}_moveFunc(e,n,r,i,a,o=!1,s=!1){const{left:l,top:u,width:c,height:d,angle:h}=e,f=this._startStateMap.get(e.oKey)||{};let m={};const{moveLeft:g,moveTop:p}=this._getMovePoint(r,i,e);if(a&&n!=="__SpreadsheetTransformerResizeCT__"&&n!=="__SpreadsheetTransformerResizeCB__"&&n!=="__SpreadsheetTransformerResizeLM__"&&n!=="__SpreadsheetTransformerResizeRM__"&&!s)switch(n){case"__SpreadsheetTransformerResizeLT__":m=this._resizeLeftTop(e,g,p,f);break;case"__SpreadsheetTransformerResizeRT__":m=this._resizeRightTop(e,g,p,f);break;case"__SpreadsheetTransformerResizeLB__":m=this._resizeLeftBottom(e,g,p,f);break;case"__SpreadsheetTransformerResizeRB__":m=this._resizeRightBottom(e,g,p,f);break}else m=this._updateCloseKeepRatioState(n,l,u,c,d,g,p);e.transformByState(this._applyRotationForResult(m,{left:l,top:u,width:c,height:d},h,o))}_getMovePoint(e,n,r){const{ancestorScaleX:i,ancestorScaleY:a}=this._scene,{left:o,top:s,width:l,height:u,angle:c}=r,d=o+l/2,h=s+u/2,f=new cn(d,h),m=new cn(e,n);m.rotateByPoint(uc(-c),f);const g=new cn(this._startOffsetX,this._startOffsetY);g.rotateByPoint(uc(-c),f);const p=(m.x-g.x)/i,v=(m.y-g.y)/a;return{moveLeft:p,moveTop:v}}_applyRotationForResult(e,n,r,i=!1){if(r===0)return e;const{left:a=0,top:o=0,width:s=0,height:l=0}=e,{left:u=0,top:c=0,width:d=0,height:h=0}=n,f=d/2,m=h/2,g=s/2+a-u,p=l/2+o-c,v=LT(new cn(f,m),r,new cn(a,o),new cn(g,p));return{width:this._smoothAccuracy(s,i),height:this._smoothAccuracy(l,i),left:this._smoothAccuracy(v.x,i),top:this._smoothAccuracy(v.y,i)}}_updateCloseKeepRatioState(e,n,r,i,a,o,s){const l={left:n,top:r,width:i,height:a};switch(e){case"__SpreadsheetTransformerResizeLT__":l.width=i-o<ru?ru:i-o,l.height=a-s<$u?$u:a-s,l.left=n+i-l.width,l.top=r+a-l.height;break;case"__SpreadsheetTransformerResizeCT__":l.height=a-s<$u?$u:a-s,l.top=r+a-l.height;break;case"__SpreadsheetTransformerResizeRT__":l.width=i+o<ru?ru:i+o,l.height=a-s<$u?$u:a-s,l.top=r+a-l.height;break;case"__SpreadsheetTransformerResizeLM__":l.width=i-o<ru?ru:i-o,l.left=n+i-l.width;break;case"__SpreadsheetTransformerResizeRM__":l.width=o+i<ru?ru:o+i;break;case"__SpreadsheetTransformerResizeLB__":l.width=i-o<ru?ru:i-o,l.height=a+s<$u?$u:a+s,l.left=l.width<=ru?n:n+o;break;case"__SpreadsheetTransformerResizeCB__":l.height=s+a<$u?$u:s+a;break;case"__SpreadsheetTransformerResizeRB__":l.width=o+i<ru?ru:o+i,l.height=s+a<$u?$u:s+a;break}return l}_getLimitedSize(e,n){let r=ru,i=$u;return e>n?r=r*Math.abs(e/n):i=i*Math.abs(n/e),{limitWidth:r,limitHeight:i}}_resizeLeftTop(e,n,r,i){const{left:a=0,top:o=0,width:s=0,height:l=0}=e.getState(),{width:u=s,height:c=l,left:d=a,top:h=o}=i,f=u/c,{moveLeft:m,moveTop:g}=this._fixMoveLtRb(n,r,u,c,f);let p=u-m,v=c-g;const{limitWidth:_,limitHeight:C}=this._getLimitedSize(u,c);return p<_&&(p=_),v<C&&(v=C),{left:a+s-p,top:o+l-v,width:p,height:v}}_resizeRightBottom(e,n,r,i){const{left:a=0,top:o=0,width:s=0,height:l=0}=e.getState(),{width:u=s,height:c=l,left:d=a,top:h=o}=i,f=u/c,{moveLeft:m,moveTop:g}=this._fixMoveLtRb(n,r,u,c,f);let p=u+m,v=c+g;const{limitWidth:_,limitHeight:C}=this._getLimitedSize(u,c);return p<_&&(p=_),v<C&&(v=C),{left:a,top:o,width:p,height:v}}_resizeLeftBottom(e,n,r,i){const{left:a=0,top:o=0,width:s=0,height:l=0}=e.getState(),{width:u=s,height:c=l,left:d=a,top:h=o}=i,f=u/c,{moveLeft:m,moveTop:g}=this._fixMoveLbRt(n,r,u,c,f);let p=u-m,v=c+g;const{limitWidth:_,limitHeight:C}=this._getLimitedSize(u,c);return p<_&&(p=_),v<C&&(v=C),{left:a+s-p,top:o,width:p,height:v}}_resizeRightTop(e,n,r,i){const{left:a=0,top:o=0,width:s=0,height:l=0}=e.getState(),{width:u=s,height:c=l,left:d=a,top:h=o}=i,f=u/c,{moveLeft:m,moveTop:g}=this._fixMoveLbRt(n,r,u,c,f);let p=u+m,v=c-g;const{limitWidth:_,limitHeight:C}=this._getLimitedSize(u,c);return p<_&&(p=_),v<C&&(v=C),{left:a,top:o+l-v,width:p,height:v}}_fixMoveLtRb(e,n,r,i,a){let o=e,s=n;return(r+o)/(i+s)>a?s=o/a:o=s*a,{moveLeft:o,moveTop:s}}_fixMoveLbRt(e,n,r,i,a){let o=e,s=n;return Math.abs((r-o)/(i+s))>a?s=-o/a:o=-s*a,{moveLeft:o,moveTop:s}}_attachEventToAnchor(e,n="__SpreadsheetTransformerResizeLT__",r){this.disposeWithMe($t(e.onPointerDown$.subscribeEvent((i,a)=>{const{offsetX:o,offsetY:s}=i;this._startOffsetX=o,this._startOffsetY=s;const l=this._getTopScene(),{keepRatio:u,isCropper:c}=this._getConfig(r);if(l==null)return;l.disableObjectsEvent();const d=df.create(l);d.startScroll(o,s);const{scrollX:h,scrollY:f}=$5(d);this._viewportScrollX=h,this._viewportScrollY=f;const{ancestorLeft:m,ancestorTop:g}=this._scene,{width:p,height:v}=l,_=this._getRotateAnchorCursor(n);if(!c)this._clearControlMap(),this._changeStart$.next({objects:this._selectedObjectMap,type:0}),this._selectedObjectMap.forEach(C=>{const{width:S,height:b,left:y,top:A}=C.getState();this._startStateMap.set(C.oKey,{width:S,height:b,left:y,top:A})});else{this._changeStart$.next({objects:new Map([[r.oKey,r]]),type:0});const{width:C,height:S,left:b,top:y}=r.getState();this._startStateMap.set(r.oKey,{width:C,height:S,left:b,top:y})}this._moveBufferSkip=!1,this._topScenePointerMoveSub=l.onPointerMove$.subscribeEvent(C=>{const{offsetX:S,offsetY:b}=C;this._anchorMoving(n,S,b,d,u,c,r),d.scrolling(S,b,()=>{this._anchorMoving(n,S,b,d,u,c,r)}),l.setCursor(_)}),this._topScenePointerUpSub=l.onPointerUp$.subscribeEvent(C=>{var S,b;(S=this._topScenePointerMoveSub)==null||S.unsubscribe(),(b=this._topScenePointerUpSub)==null||b.unsubscribe(),l.enableObjectsEvent(),l.resetCursor(),d.dispose(),this._startStateMap.clear();const{offsetX:y,offsetY:A}=C;c?(this._recoverySizeBoundary([r],m,g,p,v),this._changeEnd$.next({objects:new Map([[r.oKey,r]]),type:2,offsetX:y,offsetY:A})):(this._recoverySizeBoundary(Array.from(this._selectedObjectMap.values()),m,g,p,v),this._changeEnd$.next({objects:this._selectedObjectMap,type:2,offsetX:y,offsetY:A})),this.refreshControls()}),a.stopPropagation()})))}_recoverySizeBoundary(e,n,r,i,a){for(let o=0;o<e.length;o++){const s=e[o],{left:l,top:u,width:c,height:d}=s,h={};l+n<this.zeroLeft?(h.left=this.zeroLeft-n,h.width=c+l):l+c+n>i+this.zeroLeft&&(h.width=this.zeroLeft+i-l-n),u+r<this.zeroTop?(h.top=this.zeroTop-r,h.height=d+u):u+d+r>a+this.zeroTop&&(h.height=this.zeroTop+a-u-r),s.transformByState(h)}}_attachEventToRotate(e,n){this.disposeWithMe($t(e.onPointerDown$.subscribeEvent((r,i)=>{const{offsetX:a,offsetY:o}=r;this._startOffsetX=a,this._startOffsetY=o;const s=this._getTopScene();if(s==null)return;s.disableObjectsEvent();const l=s.getVpScrollXYInfoByPosToVp(cn.create(a,o));this._viewportScrollX=l.x,this._viewportScrollY=l.y;const u=this._getRotateAnchorCursor("__SpreadsheetTransformerRotateLine__"),{ancestorLeft:c,ancestorTop:d,width:h,height:f,angle:m}=n,g=h/2+c,p=f/2+d;this._clearControlMap(),this._changeStart$.next({objects:this._selectedObjectMap,type:0}),this._moveBufferSkip=!1;const v=s.onPointerMove$.subscribeEvent(C=>{const{offsetX:S,offsetY:b}=C;this._rotateMoving(S,b,g,p,m),s.setCursor(u)}),_=s.onPointerUp$.subscribeEvent(C=>{v==null||v.unsubscribe(),_==null||_.unsubscribe(),s.enableObjectsEvent(),s.resetCursor(),this.refreshControls();const{offsetX:S,offsetY:b}=C;this._changeEnd$.next({objects:this._selectedObjectMap,type:2,offsetX:S,offsetY:b})});i.stopPropagation()})))}_rotateMoving(e,n,r,i,a){const{ancestorScaleX:o,ancestorScaleY:s}=this._scene;if(this._moveBufferBlocker(e,n))return;const l=Math.atan2((n-i)/s+this._viewportScrollY,(e-r)/o+this._viewportScrollX),u=Math.atan2((this._startOffsetY-i)/s+this._viewportScrollY,(this._startOffsetX-r)/o+this._viewportScrollX);let c=a+L7e(l-u);c<0&&(c=360+c),c%=360,c=this._smoothAccuracy(c),this._selectedObjectMap.forEach(d=>{d.transformByState({angle:c})}),this._changing$.next({objects:this._selectedObjectMap,angle:c,type:1,offsetX:e,offsetY:n})}_getOutlinePosition(e,n,r,i){return{left:r-i,top:-r-this.borderStrokeWidth,width:e+r*2,height:n+r*2}}_getRotateAnchorCursor(e){let n=Yn.NORTH_WEST_RESIZE;switch(e){case"__SpreadsheetTransformerRotate__":n=Yn.MOVE;break;case"__SpreadsheetTransformerRotateLine__":n=Yn.MOVE;break;case"__SpreadsheetTransformerResizeLT__":break;case"__SpreadsheetTransformerResizeCT__":n=Yn.NORTH_RESIZE;break;case"__SpreadsheetTransformerResizeRT__":n=Yn.NORTH_EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLM__":n=Yn.WEST_RESIZE;break;case"__SpreadsheetTransformerResizeRM__":n=Yn.EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLB__":n=Yn.SOUTH_WEST_RESIZE;break;case"__SpreadsheetTransformerResizeCB__":n=Yn.SOUTH_RESIZE;break;case"__SpreadsheetTransformerResizeRB__":n=Yn.SOUTH_EAST_RESIZE;break}return n}_getCopperAnchorPosition(e,n,r,i){const{borderStrokeWidth:a,borderSpacing:o,anchorSize:s}=this._getConfig(i);let l=0,u=0;const c=s,d=s/4;switch(e){case"__SpreadsheetTransformerResizeLT__":l+=-o-a,u+=-o-a;break;case"__SpreadsheetTransformerResizeCT__":l+=r/2-c/2,u+=-o-a;break;case"__SpreadsheetTransformerResizeRT__":l+=r+o-a-c,u+=-o-a;break;case"__SpreadsheetTransformerResizeLM__":l+=o-a,u+=n/2-c/2;break;case"__SpreadsheetTransformerResizeRM__":l+=r+o-a-d,u+=n/2-c/2;break;case"__SpreadsheetTransformerResizeLB__":l+=-this.borderSpacing-a,u+=n+o-a-c;break;case"__SpreadsheetTransformerResizeCB__":l+=r/2-c/2,u+=n+o-a-d;break;case"__SpreadsheetTransformerResizeRB__":l+=r+o-a-c,u+=n+o-a-c;break}return{left:l,top:u}}_getRotateAnchorPosition(e,n,r,i){const{rotateAnchorOffset:a,rotateSize:o,borderStrokeWidth:s,borderSpacing:l,anchorSize:u}=this._getConfig(i);let c=-u/2,d=-u/2;switch(e){case"__SpreadsheetTransformerRotate__":c=r/2-o/2,d=-a-l-s*2-o;break;case"__SpreadsheetTransformerRotateLine__":c=r/2,d=-a-l-s;break;case"__SpreadsheetTransformerResizeLT__":c+=-l-s,d+=-l-s;break;case"__SpreadsheetTransformerResizeCT__":c+=r/2,d+=-l-s;break;case"__SpreadsheetTransformerResizeRT__":c+=r+l-s,d+=-l-s;break;case"__SpreadsheetTransformerResizeLM__":c+=l-s,d+=n/2;break;case"__SpreadsheetTransformerResizeRM__":c+=r+l-s,d+=n/2;break;case"__SpreadsheetTransformerResizeLB__":c+=-this.borderSpacing-s,d+=n+l-s;break;case"__SpreadsheetTransformerResizeCB__":c+=r/2,d+=n+l-s;break;case"__SpreadsheetTransformerResizeRB__":c+=r+l-s,d+=n+l-s;break}return{left:c,top:d}}_createResizeAnchor(e,n,r){const{height:i=0,width:a=0,scaleX:o=1,scaleY:s=1}=n.getState(),{anchorFill:l,anchorStroke:u,anchorStrokeWidth:c,anchorCornerRadius:d,anchorSize:h}=this._getConfig(n),{left:f,top:m}=this._getRotateAnchorPosition(e,i,a,n),g=this._getRotateAnchorCursor(e),p=new ur(`${e}_${r}`,{zIndex:r-1,fill:l,stroke:u,strokeWidth:c,width:h,height:h,radius:d,left:f,top:m});return this._attachHover(p,g,Yn.DEFAULT),p}_createCopperResizeAnchor(e,n,r){const{height:i=0,width:a=0,scaleX:o=1,scaleY:s=1}=n.getState(),{anchorFill:l,anchorStroke:u,anchorStrokeWidth:c,anchorSize:d}=this._getConfig(n),{left:h,top:f}=this._getCopperAnchorPosition(e,i,a,n),m=this._getRotateAnchorCursor(e);let g;const p=`${e}_${r}`,v={zIndex:r-1,fill:l,stroke:u,strokeWidth:c,width:d,height:d,left:h,top:f},_=d,C=d/4;return m===Yn.EAST_RESIZE?(v.width=C,v.height=_,g=new ur(p,v)):m===Yn.WEST_RESIZE?(v.width=C,v.height=_,g=new ur(p,v)):m===Yn.NORTH_RESIZE?(v.width=_,v.height=C,g=new ur(p,v)):m===Yn.SOUTH_RESIZE?(v.width=_,v.height=C,g=new ur(p,v)):m===Yn.NORTH_EAST_RESIZE?(v.pointsGroup=this._getNorthEastPoints(_,C),g=new Z1(p,v)):m===Yn.NORTH_WEST_RESIZE?(v.pointsGroup=this._getNorthWestPoints(_,C),g=new Z1(p,v)):m===Yn.SOUTH_EAST_RESIZE?(v.pointsGroup=this._getSouthEastPoints(_,C),g=new Z1(p,v)):m===Yn.SOUTH_WEST_RESIZE&&(v.pointsGroup=this._getSouthWestPoints(_,C),g=new Z1(p,v)),this._attachHover(g,m,Yn.DEFAULT),g}_getNorthEastPoints(e,n){const r=e-n;return[[{x:0,y:0},{x:e,y:0},{x:e,y:e},{x:r,y:e},{x:r,y:n},{x:0,y:n}]]}_getNorthWestPoints(e,n){return[[{x:0,y:0},{x:e,y:0},{x:e,y:n},{x:n,y:n},{x:n,y:e},{x:0,y:e}]]}_getSouthEastPoints(e,n){const r=e-n;return[[{x:r,y:0},{x:e,y:0},{x:e,y:e},{x:0,y:e},{x:0,y:r},{x:r,y:r},{x:r,y:0}]]}_getSouthWestPoints(e,n){const r=e-n;return[[{x:0,y:0},{x:n,y:0},{x:n,y:r},{x:e,y:r},{x:e,y:e},{x:0,y:e},{x:0,y:0}]]}_checkTransformerType(e){if(e.indexOf("__SpreadsheetTransformerOutline__")>-1)return"__SpreadsheetTransformerOutline__";if(e.indexOf("__SpreadsheetTransformerRotate__")>-1)return"__SpreadsheetTransformerRotate__";if(e.indexOf("__SpreadsheetTransformerRotateLine__")>-1)return"__SpreadsheetTransformerRotateLine__";if(e.indexOf("__SpreadsheetTransformerResizeLT__")>-1)return"__SpreadsheetTransformerResizeLT__";if(e.indexOf("__SpreadsheetTransformerResizeCT__")>-1)return"__SpreadsheetTransformerResizeCT__";if(e.indexOf("__SpreadsheetTransformerResizeRT__")>-1)return"__SpreadsheetTransformerResizeRT__";if(e.indexOf("__SpreadsheetTransformerResizeLM__")>-1)return"__SpreadsheetTransformerResizeLM__";if(e.indexOf("__SpreadsheetTransformerResizeRM__")>-1)return"__SpreadsheetTransformerResizeRM__";if(e.indexOf("__SpreadsheetTransformerResizeLB__")>-1)return"__SpreadsheetTransformerResizeLB__";if(e.indexOf("__SpreadsheetTransformerResizeCB__")>-1)return"__SpreadsheetTransformerResizeCB__";if(e.indexOf("__SpreadsheetTransformerResizeRB__")>-1)return"__SpreadsheetTransformerResizeRB__"}_updateControlIterator(e){this._transformerControlMap.forEach((n,r)=>{const i=this._selectedObjectMap.get(r);if(!i)return!0;e(n,i)})}_updateControl(){this._updateControlIterator((e,n)=>{const{left:r,top:i,height:a,width:o,angle:s}=n.getState();e.transformByState({left:r,top:i,height:a,width:o,angle:s}),e.show(),e.makeDirty(!0)})}_hideControl(){this._transformerControlMap.forEach(e=>{e.hide(),e.makeDirty(!0)})}_attachHover(e,n,r){this.disposeWithMe($t(e.onPointerEnter$.subscribeEvent(()=>{e.cursor=n}))),this.disposeWithMe($t(e.onPointerLeave$.subscribeEvent(()=>{e.cursor=r})))}_clearControls(e=!1){this._clearControlMap(),this._clearControl$.next(e)}_clearControlMap(){this._transformerControlMap.forEach(e=>{e.dispose()}),this._transformerControlMap.clear()}_createControl(e,n=!0){const{left:r=0,top:i=0,height:a=0,width:o=0}=e.getState(),s=e.angle,{isCropper:l,resizeEnabled:u,rotateAnchorOffset:c,rotateSize:d,rotateCornerRadius:h,borderEnabled:f,borderStroke:m,borderStrokeWidth:g,borderSpacing:p,enabledAnchors:v}=this._getConfig(e);if(n&&l)return;const _=e.oKey,C=this._selectedObjectMap.size+e.maxZIndex+Hyt,S=e.getLayerIndex()||Uyt,b=[];if(f&&!l){const A=new ur(`__SpreadsheetTransformerOutline___${C}`,{zIndex:C-1,evented:!1,strokeWidth:g,stroke:m,...this._getOutlinePosition(o,a,p,g)});b.push(A)}if(u&&!l){const{left:A,top:w}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotateLine__",a,o,e),P=new ur(`__SpreadsheetTransformerRotateLine___${C}`,{zIndex:C-1,evented:!1,left:A,top:w,height:c,width:1,strokeWidth:g,stroke:m}),{left:M,top:L}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__",a,o,e),k=this._getRotateAnchorCursor("__SpreadsheetTransformerRotate__"),O=new ur(`__SpreadsheetTransformerRotate___${C}`,{zIndex:C-1,left:M,top:L,height:d,width:d,radius:h,strokeWidth:g*2,stroke:m});this._attachEventToRotate(O,e),this._attachHover(O,k,Yn.DEFAULT),b.push(P,O)}if(u)for(let A=0,w=v.length;A<w;A++){if(v[A]!==1)continue;const P=Byt[A];let M;l?M=this._createCopperResizeAnchor(P,e,C):M=this._createResizeAnchor(P,e,C),this._attachEventToAnchor(M,P,e),b.push(M)}const y=new E8(`__SpreadsheetTransformer___${_}`,...b);return y.zIndex=C,y.evented=!1,y.openSelfSizeMode(),y.transformByState({left:r,top:i,angle:s,width:o,height:a}),this.getScene().addObject(y,S),l?this._copperControl=y:(this._transformerControlMap.has(_)&&this._transformerControlMap.get(_).dispose(),this._transformerControlMap.set(_,y),this._createControl$.next(y)),y}_getTopScene(){var e;return(e=this.getScene().getEngine())==null?void 0:e.activeScene}activeAnObject(e){this._updateActiveObjectList(e,{}),this._changeStart$.next({target:e,objects:this._selectedObjectMap,type:0})}_updateActiveObjectList(e,n){const{isCropper:r}=this._getConfig(e);e=this._findGroupObject(e),!this._selectedObjectMap.has(e.oKey)&&(n.ctrlKey||(this._selectedObjectMap.clear(),this._clearControlMap()),r||this._selectedObjectMap.set(e.oKey,e),this._createControl(e))}_findGroupObject(e){return e.isInGroup&&e.ancestorGroup||e}_addCancelObserver(e){var n;(n=this._cancelFocusSubscription)==null||n.unsubscribe(),this._cancelFocusSubscription=e.onPointerDown$.subscribeEvent(()=>{this.clearSelectedObjects()})}_smoothAccuracy(e,n=!1,r=1){return n?V4(e,3):V4(e,r)}};T(Mye,"Transformer");let jyt=Mye;const Tye=class extends et{constructor(e){super(),q(this,"onTransformChange$",new si),q(this,"onFileLoaded$",new si),q(this,"onPointerDown$",new si),q(this,"onPointerMove$",new si),q(this,"onPointerUp$",new si),q(this,"onPointerEnter$",new si),q(this,"onPointerOut$",new si),q(this,"onPointerCancel$",new si),q(this,"onPointerLeave$",new si),q(this,"onDragEnter$",new si),q(this,"onDragOver$",new si),q(this,"onDragLeave$",new si),q(this,"onDrop$",new si),q(this,"onDblclick$",new si),q(this,"onTripleClick$",new si),q(this,"onMouseWheel$",new si),q(this,"onKeyDown$",new si),q(this,"onKeyUp$",new si),q(this,"debounceParentTimeout",-1),q(this,"_sceneKey",""),q(this,"_width",100),q(this,"_height",100),q(this,"_scaleX",1),q(this,"_scaleY",1),q(this,"_transform",new a1),q(this,"_evented",!0),this._sceneKey=e}get classType(){return ar.SCENE}get transform(){return this._transform}get width(){return this._width}get height(){return this._height}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get sceneKey(){return this._sceneKey}get objectsEvented(){return this._evented}set transform(e){this._transform=e}set width(e){this._width=e}set height(e){this._height=e}set scaleX(e){this._scaleX=e}set scaleY(e){this._scaleY=e}enableObjectsEvent(){this._evented=!0}disableObjectsEvent(){this._evented=!1}triggerKeyDown(e){this.onKeyDown$.emitEvent(e)}triggerKeyUp(e){this.onKeyUp$.emitEvent(e)}dispose(){this.onTransformChange$.complete(),this.onFileLoaded$.complete(),this.onPointerDown$.complete(),this.onPointerMove$.complete(),this.onPointerUp$.complete(),this.onPointerEnter$.complete(),this.onPointerLeave$.complete(),this.onDragEnter$.complete(),this.onDragOver$.complete(),this.onDragLeave$.complete(),this.onDrop$.complete(),this.onDblclick$.complete(),this.onTripleClick$.complete(),this.onMouseWheel$.complete(),this.onKeyDown$.complete(),this.onKeyUp$.complete(),this.onPointerOut$.complete(),this.onPointerCancel$.complete(),super.dispose()}attachTransformerTo(e){}detachTransformerFrom(e){}makeDirtyNoParent(e=!0){return this}makeDirty(e=!0){return this}getViewports(){return[]}getAncestorScale(){return{scaleX:1,scaleY:1}}getPrecisionScale(){return{scaleX:1,scaleY:1}}};T(Tye,"ThinScene");let $yt=Tye;const Lye=class extends $yt{constructor(e,n,r){var i;if(super(e),q(this,"_layers",[]),q(this,"_viewports",[]),q(this,"_cursor",Yn.DEFAULT),q(this,"_defaultCursor",Yn.DEFAULT),q(this,"_addObject$",new Pn(this)),q(this,"addObject$",this._addObject$.asObservable()),q(this,"_transformer"),q(this,"_inputManager"),this._parent=n,r&&this.transformByState(r),this._parent.classType===ar.ENGINE){const a=this._parent;a.addScene(this),a.hasActiveScene()||a.setActiveScene(e),this._inputManager=new Vyt(this)}else this._parent.classType===ar.SCENE_VIEWER&&this._parent.addSubScene(this);this.disposeWithMe($t((i=this._parent)==null?void 0:i.onTransformChange$.subscribeEvent(a=>{this._setTransForm()})))}get ancestorScaleX(){const e=this.getParent();let n=1;return e.classType===ar.SCENE_VIEWER&&(n=e.ancestorScaleX),this.scaleX*n}get ancestorScaleY(){const e=this.getParent();let n=1;return e.classType===ar.SCENE_VIEWER&&(n=e.ancestorScaleY),this.scaleY*n}get ancestorLeft(){const e=this.getParent();let n=0;return e.classType===ar.SCENE_VIEWER&&(n=e.ancestorLeft),n}get ancestorTop(){const e=this.getParent();let n=0;return e.classType===ar.SCENE_VIEWER&&(n=e.ancestorTop),n}set cursor(e){this.setCursor(e)}attachControl(e=!0,n=!0,r=!0,i=!0){var a;if(this._parent.classType===ar.ENGINE)return(a=this._inputManager)==null||a.attachControl(e,n,r,i),this}detachControl(){var e;return(e=this._inputManager)==null||e.detachControl(),this}makeDirty(e=!0){var n;return this._layers.forEach(r=>{r.makeDirty(e)}),this._parent.classType===ar.SCENE_VIEWER&&((n=this._parent)==null||n.makeDirty(e)),this}makeDirtyNoParent(e=!0){return this._layers.forEach(n=>{n.makeDirty(e)}),this}enableLayerCache(...e){e.forEach(n=>{this.getLayer(n).enableCache()})}disableLayerCache(...e){e.forEach(n=>{this.getLayer(n).disableCache()})}isDirty(){for(let e=0;e<this._layers.length;e++)if(this._layers[e].isDirty()===!0)return!0;return!1}getCursor(){return this._cursor}resetCursor(){this.setCursor(this._defaultCursor)}setCursor(e){this._cursor=e;const n=this.getEngine();n&&n.setCanvasCursor(e)}setDefaultCursor(e){this._defaultCursor=e,this.resetCursor()}resize(e,n){const r=this.width;e!==void 0&&(this.width=e);const i=this.height;return n!==void 0&&(this.height=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.resize,value:{width:this.width,height:this.height},preValue:{width:r,height:i}}),this}setScaleValue(e,n){e!==void 0&&(this.scaleX=e),n!==void 0&&(this.scaleY=n)}scale(e,n){const r=this.scaleX;e!==void 0&&(this.scaleX=e);const i=this.scaleY;return n!==void 0&&(this.scaleY=n),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:r,scaleY:i}}),this}scaleBy(e,n){const r=this.scaleX;e!==void 0&&(this.scaleX+=e);const i=this.scaleY;return n!==void 0&&(this.scaleY+=n),this.scaleX=V4(this.scaleX,1),this.scaleY=V4(this.scaleY,1),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:r,scaleY:i}}),this}transformByState(e){const n=Object.keys(e),r={};n.length!==0&&(n.forEach(i=>{e[i]!==void 0&&(r[i]=this[i],this[i]=e[i])}),this._setTransForm(),this.onTransformChange$.emitEvent({type:fo.all,value:e,preValue:r}))}getParent(){return this._parent}getEngine(){if(this._parent.classType===ar.ENGINE)return this._parent;let e=this._parent;for(;e;){if(e.classType===ar.ENGINE)return e;e=e==null?void 0:e.getParent()}return null}getLayers(){return this._layers}getLayer(e=1){for(const n of this._layers)if(n.zIndex===e)return n;return this._createDefaultLayer(e)}findLayerByZIndex(e=1){for(const n of this.getLayers())if(n.zIndex===e)return n}getLayerMaxZIndex(){let e=Number.MIN_VALUE;for(let n=0;n<this._layers.length;n++){const r=this._layers[n];r.zIndex>=e&&(e=r.zIndex)}return e}addLayer(...e){this._layers.push(...e)}addObjects(e,n=1){var r;return(r=this.getLayer(n))==null||r.addObjects(e),this._addObject$.next(this),this}addObject(e,n=1){var r;return(r=this.getLayer(n))==null||r.addObject(e),this._addObject$.next(this),this}setObjectBehavior(e){e.parent||(e.parent=this),e.onIsAddedToParent$.emitEvent(this)}removeObject(e){if(e==null)return;const n=this.getLayers();for(const r of n)r.removeObject(e);return this}removeObjects(e){if(e==null)return;const n=this.getLayers();for(const r of n)r.removeObjects(e);return this}getObjectsByLayer(e){const n=[];this._layers.sort(Ol);for(const r of this._layers)r.zIndex===e&&n.push(...r.getObjects());return n}getAllObjects(){const e=[];this._layers.sort(Ol);for(const n of this._layers)e.push(...n.getObjects());return e}getAllObjectsByOrder(){const e=[];this._layers.sort(Ol);for(const n of this._layers)e.push(...n.getObjectsByOrder());return e}getAllObjectsByDescOrder(e=!1){const n=[],r=e?DH:Ol;this._layers.sort(r);for(const i of this._layers)n.push(...i.getObjectsByOrder().sort(r));return n}getAllObjectsByOrderForPick(e=!1){const n=[],r=e?DH:Ol;this._layers.sort(r);for(const i of this._layers)n.push(...i.getObjectsByOrderForPick().sort(r));return n}getObject(e){for(const n of this._layers){const r=n.getObjectsByOrder();for(const i of r)if(i.oKey===e)return i}}getObjectIncludeInGroup(e){for(const n of this._layers){const r=n.getObjects();for(const i of r)if(i.oKey===e)return i}}fuzzyMathObjects(e,n=!1){const r=[];for(const i of this._layers){const a=i.getObjectsByOrder();for(const o of a)(n?o.oKey.startsWith(e):o.oKey.indexOf(e)>-1)&&r.push(o)}return r}addViewport(...e){return this._viewports.push(...e),this}removeViewport(e){for(let n=0,r=this._viewports.length;n<r;n++){const i=this._viewports[n];if(i.viewportKey===e)return this._viewports.splice(n,1),i}}getViewports(){return this._viewports}getViewport(e){for(const n of this._viewports)if(n.viewportKey===e)return n}render(e){var n;if(!this.isDirty())return;!e&&((n=this.getEngine())==null||n.clearCanvas());const r=this._layers.sort(Ol);for(let i=0,a=r.length;i<a;i++)r[i].render(e,i===a-1)}async requestRender(e){return new Promise((n,r)=>{this.render(e),o_(n)})}attachTransformerTo(e){var n;this._transformer||this.initTransformer(),(n=this._transformer)==null||n.attachTo(e)}detachTransformerFrom(e){var n;(n=this._transformer)==null||n.detachFrom(e)}initTransformer(e){if(this._transformer){this._transformer.resetProps(e);return}this._transformer=new jyt(this,e)}getTransformerByCreate(){return this._transformer||this.initTransformer(),this._transformer}getTransformer(){return this._transformer}findViewportByPosToViewport(e){return this._viewports.find(n=>n.isHit(e))}getActiveViewportByCoord(e){return e=this.getRelativeToViewportCoord(e),this.findViewportByPosToViewport(e)}getVpScrollXYInfoByPosToVp(e,n){return n||(n=this.findViewportByPosToViewport(e)),n?this.getViewportScrollXY(n):{x:0,y:0}}getViewportScrollXY(e){let n=0,r=0;if(e){const i=e.viewportScrollX||0,a=e.viewportScrollY||0;n+=i,r+=a}return{x:n,y:r}}getRelativeToViewportCoord(e){let n=this.getParent();const r=[];for(;n;)(n.classType===ar.SCENE||n.classType===ar.SCENE_VIEWER)&&r.push(n),n=(n==null?void 0:n.getParent)&&(n==null?void 0:n.getParent());r.reverse();for(const i of r)if(i.classType===ar.SCENE){const a=i.getActiveViewportByCoord(e);if(a){const o=a.viewportScrollX||0,s=a.viewportScrollY||0;e=e.addByPoint(o,s)}}else i.classType===ar.SCENE_VIEWER&&(e=i.transform.clone().invert().applyPoint(e));return e}clearLayer(){this._layers=[]}clearViewports(){this._viewports=[]}getAncestorScale(){let{scaleX:e=1,scaleY:n=1}=this;return this.classType===ar.SCENE_VIEWER&&(e=this.ancestorScaleX||1,n=this.ancestorScaleY||1),{scaleX:e,scaleY:n}}getPrecisionScale(){var e;const n=((e=this.getEngine())==null?void 0:e.getPixelRatio())||1,{scaleX:r,scaleY:i}=this.getAncestorScale();return{scaleX:r*n,scaleY:i*n}}dispose(){var e,n,r;let i=[...this.getLayers()];i.forEach(o=>{o.dispose()}),i=[];let a=[...this.getViewports()];a.forEach(o=>{o.dispose()}),a=[],this.clearLayer(),this.clearViewports(),this.detachControl(),(e=this.onTransformChange$)==null||e.complete(),(n=this._inputManager)==null||n.dispose(),this._inputManager=null,(r=this._transformer)==null||r.dispose(),this._transformer=null,this.onPointerDown$.complete(),this.onPointerMove$.complete(),this.onPointerUp$.complete(),this.onPointerEnter$.complete(),this.onPointerLeave$.complete(),this.onDblclick$.complete(),this.onTripleClick$.complete(),this.onMouseWheel$.complete(),this.onKeyDown$.complete(),this.onKeyUp$.complete(),this._addObject$.complete(),super.dispose()}pick(e){let n=this.getActiveViewportByCoord(e);if(n||(n=this._viewports[0]),!this.objectsEvented||!n)return null;const r=n.pickScrollBar(e);if(r)return r;const i=n.transformVector2SceneCoord(e);let a=null;const o=this.getAllObjectsByOrderForPick().reverse(),s=o.length;for(let l=0;l<s;l++){const u=o[l];if(!u.visible||!u.evented||u.classType===ar.GROUP)continue;const c=i;if(u.isHit(c)){if(u.classType===ar.SCENE_VIEWER){const d=u.pick(c);d?a=d:a=u.getActiveSubScene()}else a=u;break}else if(u.classType===ar.SCENE_VIEWER&&u.allowSelectedClipElement()){const d=u.pick(c);if(d){a=d;break}}}return!a&&this._parent.classType===ar.ENGINE?this:a}triggerKeyDown(e){this.onKeyDown$.emitEvent(e)}triggerKeyUp(e){this.onKeyUp$.emitEvent(e)}triggerPointerUp(e){var n,r;return!((n=this.onPointerUp$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerPointerUp(e),!1):!0}triggerMouseWheel(e){var n,r;return!((n=this.onMouseWheel$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerMouseWheel(e),!1):!0}triggerPointerMove(e){var n,r;return!((n=this.onPointerMove$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerPointerMove(e),!1):!0}triggerDblclick(e){var n,r;return!((n=this.onDblclick$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerDblclick(e),!1):!0}triggerTripleClick(e){var n,r;return!((n=this.onTripleClick$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerTripleClick(e),!1):!0}triggerPointerDown(e){var n,r;return!((n=this.onPointerDown$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerPointerDown(e),!1):!0}triggerPointerOut(e){var n;return this._parent.classType===ar.SCENE_VIEWER?((n=this._parent)==null||n.triggerPointerOut(e),!1):!0}triggerPointerLeave(e){var n,r;return!((n=this.onPointerLeave$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerPointerLeave(e),!1):!0}triggerPointerOver(e){var n;return this._parent.classType===ar.SCENE_VIEWER?((n=this._parent)==null||n.triggerPointerOver(e),!1):!0}triggerPointerEnter(e){var n,r;return!((n=this.onPointerEnter$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerPointerEnter(e),!1):!0}triggerDragLeave(e){var n,r;return!((n=this.onDragLeave$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerDragLeave(e),!1):!0}triggerDragOver(e){var n,r;return!((n=this.onDragOver$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerDragOver(e),!1):!0}triggerDragEnter(e){var n,r;return!((n=this.onDragEnter$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerDragEnter(e),!1):!0}triggerDrop(e){var n,r;return!((n=this.onDrop$.emitEvent(e))!=null&&n.stopPropagation)&&this._parent.classType===ar.SCENE_VIEWER?((r=this._parent)==null||r.triggerDrop(e),!1):!0}_createDefaultLayer(e=1){const n=new OD(this,[],e);return this.addLayer(n),n}_setTransForm(){const e=a1.create().composeMatrix({scaleX:this.scaleX,scaleY:this.scaleY});this.transform=e,this.getViewports().forEach(n=>{n.resetCanvasSizeAndUpdateScroll()}),this.makeDirty(!0)}_getGroupCumLeftRight(e){let n=e.parent,r=0,i=0;for(;n.classType===ar.GROUP;){const{left:a,top:o}=n;r+=a,i+=o,n=n.parent}return{cumLeft:r,cumTop:i}}};T(Lye,"Scene");let Wyt=Lye;var zyt=Object.defineProperty,qyt=Object.getOwnPropertyDescriptor,Yyt=T((t,e,n,r)=>{for(var i=r>1?void 0:r?qyt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zyt(e,n,i),i},"__decorateClass$2"),Xyt=T((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),UN;let ND=(UN=class extends et{constructor(t,e){super(),q(this,"isRenderUnit",!0),q(this,"_injector"),q(this,"_renderContext"),this._injector=e.createChild(),this._renderContext={unit:t.unit,unitId:t.unit.getUnitId(),type:t.unit.type,components:new Map,mainComponent:null,isMainScene:t.isMainScene,engine:t.engine,scene:t.scene}}get unitId(){return this._renderContext.unitId}get type(){return this._renderContext.type}set isMainScene(t){this._renderContext.isMainScene=t}get isMainScene(){return this._renderContext.isMainScene}set engine(t){this._renderContext.engine=t}get engine(){return this._renderContext.engine}set mainComponent(t){this._renderContext.mainComponent=t}get mainComponent(){return this._renderContext.mainComponent}set scene(t){this._renderContext.scene=t}get scene(){return this._renderContext.scene}get components(){return this._renderContext.components}dispose(){this._injector.dispose(),super.dispose()}with(t){return this._injector.get(t)}addRenderDependencies(t){this._initDependencies(t)}_initDependencies(t){const e=this._injector;t.forEach(n=>{const[r,i]=Array.isArray(n)?n:[n,null];if(!i)e.add([r,{useFactory:T(()=>e.createInstance(r,this._renderContext),"useFactory")}]);else if(QA(i))e.add([r,{useFactory:T(()=>e.createInstance(i.useClass,this._renderContext),"useFactory")}]);else throw new Error("[RenderUnit]: render dependency could only be an class!")}),t.forEach(n=>{const[r]=Array.isArray(n)?n:[n,null];e.get(r)})}},T(UN,"RenderUnit"),UN);ND=Yyt([Xyt(1,se(Wn))],ND);var Gyt=Object.defineProperty,Qyt=Object.getOwnPropertyDescriptor,Kyt=T((t,e,n,r)=>{for(var i=r>1?void 0:r?Qyt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Gyt(e,n,i),i},"__decorateClass$1"),pse=T((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const Zyt={width:1500,height:1e3},Jyt="_UNIVER_SCENE_";var HN;let vz=(HN=class extends et{constructor(t,e){super(),q(this,"_defaultEngine"),q(this,"_currentUnitId",""),q(this,"_renderMap",new Map),q(this,"_currentRender$",new Pn(this._currentUnitId)),q(this,"currentRender$",this._currentRender$.asObservable()),q(this,"_createRender$",new Zt),q(this,"createRender$",this._createRender$.asObservable()),q(this,"_renderCreated$",new Zt),q(this,"created$",this._renderCreated$.asObservable()),q(this,"_renderDisposed$",new Zt),q(this,"disposed$",this._renderDisposed$.asObservable()),q(this,"_renderDependencies",new Map),this._injector=t,this._univerInstanceService=e}get defaultEngine(){return this._defaultEngine||(this._defaultEngine=new pz),this._defaultEngine}dispose(){super.dispose(),this._renderMap.forEach(t=>this._disposeItem(t)),this._renderDependencies.clear(),this._renderMap.clear(),this._currentRender$.complete(),this._renderCreated$.complete(),this._renderDisposed$.complete()}registerRenderModules(t,e){this._renderDependencies.has(t)||this._renderDependencies.set(t,[]);const n=this._renderDependencies.get(t);n.push(...e);for(const[r,i]of this._renderMap)i.type===t&&this._tryAddRenderDependencies(i,e);return $t(()=>{e.forEach(r=>Zu(n,r))})}registerRenderModule(t,e){this._renderDependencies.has(t)||this._renderDependencies.set(t,[]);const n=this._renderDependencies.get(t);n.push(e);for(const[r,i]of this._renderMap)i.type===t&&this._tryAddRenderDependencies(i,[e]);return $t(()=>Zu(n,e))}_getRenderDepsByType(t){var e;return Array.from((e=this._renderDependencies.get(t))!=null?e:[])}create(t){this._createRender$.next(t)}createRender(t){const e=this._createRender(t,new pz);return this._renderCreated$.next(e),e}getAllRenderersOfType(t){const e=[];for(const[n,r]of this._renderMap)r.type===t&&e.push(r);return e}getCurrentTypeOfRenderer(t){const e=this._univerInstanceService.getCurrentUnitForType(t);return e?this.getRenderById(e.getUnitId()):null}withCurrentTypeOfUnit(t,e){var n;const r=this._univerInstanceService.getCurrentUnitForType(t);return r?(n=this.getRenderById(r.getUnitId()))==null?void 0:n.with(e):null}_tryAddRenderDependencies(t,e){t instanceof ND&&t.addRenderDependencies(e)}_createRender(t,e,n=!0){const r=this.getRenderById(t);let i=!0;r!=null&&r.engine===e&&(i=!1),this._disposeItem(r,i);const{width:a,height:o}=Zyt,s=new Wyt(Jyt+t,e,{width:a,height:o}),l=this._univerInstanceService.getUnit(t);let u;if(l){const c=this._univerInstanceService.getUnitType(t),d=this._getRenderDepsByType(c);u=this._injector.createInstance(ND,{unit:l,engine:e,scene:s,isMainScene:n}),this._addRenderUnit(t,u),this._tryAddRenderDependencies(u,d)}else u={isThumbNail:!0,type:le.UNIVER_SLIDE,unitId:t,engine:e,scene:s,mainComponent:null,components:new Map,isMainScene:n,with(c){return null}},this._addRenderUnit(t,u);return u}addRender(t,e){this._addRenderUnit(t,e)}_addRenderUnit(t,e){this._renderMap.set(t,e)}removeRender(t){const e=this._renderMap.get(t);e!=null&&this._disposeItem(e),this._renderMap.delete(t)}has(t){return this._renderMap.has(t)}setCurrent(t){this._currentUnitId=t,this._currentRender$.next(t)}getCurrent(){return this._renderMap.get(this._currentUnitId)}getFirst(){return[...this.getRenderAll().values()][0]}getRenderById(t){return this._renderMap.get(t)}getRenderAll(){return this._renderMap}_disposeItem(t,e=!0){if(t==null)return;const{engine:n,scene:r,components:i}=t;i==null||i.forEach(a=>a.dispose()),r.dispose(),xye(t)&&t.dispose(),e&&n.dispose(),this._renderDisposed$.next(t.unitId)}},T(HN,"RenderManagerService"),HN);vz=Kyt([pse(0,se(Wn)),pse(1,Ce)],vz);const Sr=er("engine-render.render-manager.service");function xye(t){return!!t&&typeof t.dispose=="function"}T(xye,"isDisposable");const eEt="engine-render.config",tEt={};var nEt=Object.defineProperty,rEt=Object.getOwnPropertyDescriptor,iEt=T((t,e,n,r)=>{for(var i=r>1?void 0:r?rEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&nEt(e,n,i),i},"__decorateClass"),vse=T((t,e)=>(n,r)=>e(n,r,t),"__decorateParam");const aEt=er("univer.render-engine"),oEt="UNIVER_RENDER_ENGINE_PLUGIN";var Sy;let kD=(Sy=class extends Cs{constructor(t=tEt,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(eEt,r),this._injector.add([aEt,{useFactory:T(()=>new pz,"useFactory")}]),this._injector.add([Sr,{useClass:vz}])}},T(Sy,"UniverRenderEnginePlugin"),q(Sy,"pluginName",oEt),Sy);kD=iEt([vse(1,se(Wn)),vse(2,Za)],kD);function Oye(t,e){if(e.startRow>=t.endRow||e.endRow<=t.startRow||e.startColumn>=t.endColumn||e.endColumn<=t.startColumn)return[t];const n=[];e.startRow>t.startRow&&n.push({startRow:t.startRow,startColumn:t.startColumn,endRow:e.startRow,endColumn:t.endColumn}),e.endRow<t.endRow&&n.push({startRow:e.endRow,startColumn:t.startColumn,endRow:t.endRow,endColumn:t.endColumn});const r=Math.max(t.startRow,e.startRow),i=Math.min(t.endRow,e.endRow);return e.startColumn>t.startColumn&&n.push({startRow:r,startColumn:t.startColumn,endRow:i,endColumn:e.startColumn}),e.endColumn<t.endColumn&&n.push({startRow:r,startColumn:e.endColumn,endRow:i,endColumn:t.endColumn}),n}T(Oye,"subtractViewportRange");const sEt=3,Nye=class{constructor(e,n,r){q(this,"scrollX",0),q(this,"scrollY",0),q(this,"_preScrollX",0),q(this,"_preScrollY",0),q(this,"_viewportScrollX",0),q(this,"_viewportScrollY",0),q(this,"_preViewportScrollX",0),q(this,"_preViewportScrollY",0),q(this,"_sceneWCurrVpAfterScale",0),q(this,"_sceneHCurrVpAfterScale",0),q(this,"_sceneWidthAfterScale"),q(this,"_sceneHeightAfterScale"),q(this,"onMouseWheel$",new si),q(this,"onScrollAfter$",new si),q(this,"onScrollEnd$",new si),q(this,"onScrollByBar$",new si),q(this,"_viewportKey",""),q(this,"_topOrigin",0),q(this,"_leftOrigin",0),q(this,"_bottomOrigin",0),q(this,"_rightOrigin",0),q(this,"_widthOrigin"),q(this,"_heightOrigin"),q(this,"_top",0),q(this,"_left",0),q(this,"_bottom",0),q(this,"_right",0),q(this,"_width"),q(this,"_height"),q(this,"_scene"),q(this,"_scrollBar"),q(this,"_isWheelPreventDefaultX",!1),q(this,"_isWheelPreventDefaultY",!1),q(this,"_scrollStopNum",0),q(this,"_clipViewport",!0),q(this,"_active",!0),q(this,"_paddingStartX",0),q(this,"_paddingEndX",0),q(this,"_paddingStartY",0),q(this,"_paddingEndY",0),q(this,"_explicitViewportWidthSet",!1),q(this,"_explicitViewportHeightSet",!1),q(this,"_cacheBound"),q(this,"_preCacheBound"),q(this,"_preCacheVisibleBound"),q(this,"_viewBound"),q(this,"_preViewBound"),q(this,"_isDirty",!0),q(this,"_cacheCanvas",null),q(this,"_allowCache",!1),q(this,"bufferEdgeX",0),q(this,"bufferEdgeY",0),q(this,"_isForceDirty",!0);var i;this._viewportKey=e,this._scene=n,this._scene.addViewport(this),this._active=Ie.isDefine(r==null?void 0:r.active)?r==null?void 0:r.active:!0,this._explicitViewportWidthSet=(r==null?void 0:r.explicitViewportWidthSet)||!1,this._explicitViewportHeightSet=(r==null?void 0:r.explicitViewportHeightSet)||!1,this._setViewportSize(r),this.initCacheCanvas(r),this._isWheelPreventDefaultX=(r==null?void 0:r.isWheelPreventDefaultX)||!1,this._isWheelPreventDefaultY=(r==null?void 0:r.isWheelPreventDefaultY)||!1,this.resetCanvasSizeAndUpdateScroll(),this.getBounding(),(i=this.scene.getEngine())==null||i.onTransformChange$.subscribeEvent(()=>{this._mainCanvasResizeHandler()}),this._mainCanvasResizeHandler()}initCacheCanvas(e){this._allowCache=(e==null?void 0:e.allowCache)||!1,this._allowCache&&(this._cacheCanvas=new mS,this.bufferEdgeX=(e==null?void 0:e.bufferEdgeX)||0,this.bufferEdgeY=(e==null?void 0:e.bufferEdgeY)||0)}_testDisplayCache(){const e=window;e.cacheSet||(e.cacheSet=new Set);const n=T(r=>{r.getCanvasEle().classList.remove("univer-render-canvas"),r.getCanvasEle().classList.add("viewport-cache-canvas"),r.getCanvasEle().classList.add("cache-canvas",this.viewportKey),r.getCanvasEle().style.zIndex="100",r.getCanvasEle().style.position="fixed",r.getCanvasEle().style.background="pink",r.getCanvasEle().style.pointerEvents="none",r.getCanvasEle().style.border="1px solid black",r.getCanvasEle().style.transformOrigin="100% 100%",r.getCanvasEle().style.transform="scale(0.5)",r.getCanvasEle().style.translate="-20% 0%",r.getCanvasEle().style.opacity="1",document.body.appendChild(r.getCanvasEle())},"showCache");["viewMain","viewMainLeftTop","viewMainTop","viewMainLeft"].includes(this.viewportKey)&&this._cacheCanvas&&n(this._cacheCanvas),this.viewportKey==="spreadInSlideViewMaintable1"&&this._cacheCanvas&&n(this._cacheCanvas)}get scene(){return this._scene}get width(){return this._width}get height(){return this._height}get viewportKey(){return this._viewportKey}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get bottomOrigin(){return this._bottomOrigin}get rightOrigin(){return this._rightOrigin}get top(){return this._top}get left(){return this._left}get bottom(){return this._bottom}get right(){return this._right}get isWheelPreventDefaultX(){return this._isWheelPreventDefaultX}get isWheelPreventDefaultY(){return this._isWheelPreventDefaultY}set width(e){this._width=e}set height(e){const n=this.scene.getParent().height;Ie.isDefine(e)?this._height=Ie.clamp(e,0,n):this._height=e}get isActive(){return this._active===!1||(this.height||0)<=0||(this.width||0)<=0?!1:this._active}set viewportScrollX(e){this._viewportScrollX=e}get viewportScrollX(){return this._viewportScrollX}set viewportScrollY(e){this._viewportScrollY=e}get viewportScrollY(){return this._viewportScrollY}set top(e){var n,r;this._topOrigin=e,this._top=Xm(e,(r=(n=this._scene)==null?void 0:n.getParent())==null?void 0:r.height)}set left(e){var n;this._leftOrigin=e,this._left=Xm(e,(n=this.scene.getParent())==null?void 0:n.width)}set bottom(e){var n;this._bottomOrigin=e,this._bottom=Xm(e,(n=this.scene.getParent())==null?void 0:n.height)}set right(e){var n;this._rightOrigin=e,this._right=Xm(e,(n=this.scene.getParent())==null?void 0:n.width)}get viewBound(){return this._viewBound}get cacheBound(){return this._cacheBound}set cacheBound(e){this._cacheBound=e}get preCacheBound(){return this._preCacheBound}set preCacheBound(e){this._preCacheBound=e,this._preCacheVisibleBound=Object.assign({},e)}get _deltaScrollX(){return this.scrollX-this._preScrollX}get _deltaScrollY(){return this.scrollY-this._preScrollY}get _deltaViewportScrollX(){return this.viewportScrollX-this._preViewportScrollX}get _deltaViewportScrollY(){return this.viewportScrollY-this._preViewportScrollY}enable(){this._active=!0}disable(){this._active=!1}resetCanvasSizeAndUpdateScroll(){this._resizeCacheCanvas(),this._updateScrollByViewportScrollValue()}setScrollBar(e){this._scrollBar=e,this._updateScrollByViewportScrollValue()}removeScrollBar(){this._scrollBar=null}resizeWhenFreezeChange(e){Object.keys(e).length!==0&&(this._setViewportSize(e),this.resetCanvasSizeAndUpdateScroll())}setPadding(e){const{startX:n=0,startY:r=0,endX:i=0,endY:a=0}=e;this._paddingStartX=n,this._paddingEndX=i,this._paddingStartY=r,this._paddingEndY=a,this.resetCanvasSizeAndUpdateScroll()}resetPadding(){this.setPadding({startX:0,endX:0,startY:0,endY:0})}scrollToBarPos(e){return this._scrollToBarPosCore(e)}scrollByBarDeltaValue(e,n=!0){const r=this.scrollX+(e.x||0),i=this.scrollY+(e.y||0);return this._scrollToBarPosCore({x:r,y:i},n)}scrollToViewportPos(e,n=!0){if(!this._scrollBar)return;const{viewportScrollX:r,viewportScrollY:i}=e;return this._scrollToViewportPosCore({viewportScrollX:r,viewportScrollY:i},n)}scrollByViewportDeltaVal(e,n=!0){if(!this._scrollBar||this.isActive===!1)return;const r=this.viewportScrollX+(e.viewportScrollX||0),i=this.viewportScrollY+(e.viewportScrollY||0);return this._scrollToViewportPosCore({viewportScrollX:r,viewportScrollY:i},n)}transViewportScroll2ScrollValue(e,n){let r=e-this._paddingStartX,i=n-this._paddingStartY;if(this._scrollBar){r*=this._scrollBar.ratioScrollX,i*=this._scrollBar.ratioScrollY;const{scaleX:a,scaleY:o}=this.scene;r*=a,i*=o}else this.scrollX!==void 0&&(r=this.scrollX),this.scrollY!==void 0&&(i=this.scrollY);return{x:r,y:i}}transScroll2ViewportScrollValue(e,n){let r=e,i=n;if(this._scrollBar){const{scaleX:s,scaleY:l}=this.scene;this._scrollBar.ratioScrollX!==0?(r/=this._scrollBar.ratioScrollX,r/=s):this.viewportScrollX!==void 0?r=this.viewportScrollX:r=0,this._scrollBar.ratioScrollY!==0?(i/=this._scrollBar.ratioScrollY,i/=l):this.viewportScrollY!==void 0?i=this.viewportScrollY:i=0}else this.viewportScrollX!==void 0?r=this.viewportScrollX:r=0,this.viewportScrollY!==void 0?i=this.viewportScrollY:i=0;const{scaleX:a,scaleY:o}=this._scene.getPrecisionScale();return{x:Rr(r+this._paddingStartX,a),y:Rr(i+this._paddingStartY,o)}}getViewportScrollByScrollXY(){const e=this.scrollX,n=this.scrollY;return this.transScroll2ViewportScrollValue(e,n)}getScrollBar(){return this._scrollBar}updateScrollVal(e){this._preScrollX=this.scrollX,this._preScrollY=this.scrollY;const{scrollX:n,scrollY:r,viewportScrollX:i,viewportScrollY:a}=e;return n!==void 0&&(this.scrollX=n),r!==void 0&&(this.scrollY=r),i!==void 0&&(this._preViewportScrollX=this.viewportScrollX,this.viewportScrollX=i),a!==void 0&&(this._preViewportScrollY=this.viewportScrollY,this.viewportScrollY=a),this}getScrollBarTransForm(){const e=a1.create();return e.multiply(a1.create([1,0,0,1,this._left,this._top])),e}shouldIntoRender(){return!(this.isActive===!1||this.width==null||this.height==null||this.width<=1||this.height<=1)}render(e,n=[],r=!1){var i;if(!this.shouldIntoRender())return;const a=e||((i=this._scene.getEngine())==null?void 0:i.getCanvas().getContext()),o=this._scene.transform.clone();o.multiply(a1.create([1,0,0,1,-this.viewportScrollX||0,-this.viewportScrollY||0]));const s=o.getMatrix();a.save(),this._clipViewport&&(a.beginPath(),a.rect(this.left,this.top,this.width||0,this.height||0),a.clip()),a.transform(s[0],s[1],s[2],s[3],s[4],s[5]);const l=this._calcViewportInfo();for(let u=0,c=n.length;u<c;u++)n[u].render(a,l);if(this.markDirty(!1),this.markForceDirty(!1),this._preViewBound=this._viewBound,l.shouldCacheUpdate&&(this.preCacheBound=this._cacheBound),a.restore(),this._scrollBar&&r){a.save();const u=this.getScrollBarTransForm().getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawScrollbar(a),a.restore()}this._afterRender()}_makeDefaultViewport(){return{viewBound:{left:-1,top:-1,right:-1,bottom:-1},diffBounds:[],diffX:-1,diffY:-1,viewPortPosition:{top:0,left:0,bottom:0,right:0},viewportKey:this.viewportKey,isDirty:0,isForceDirty:this.isForceDirty,allowCache:!1,cacheBound:{left:-1,top:-1,right:-1,bottom:-1},diffCacheBounds:[],cacheViewPortPosition:{top:0,left:0,bottom:0,right:0},shouldCacheUpdate:0,sceneTrans:a1.create([1,0,0,1,0,0]),leftOrigin:0,topOrigin:0,bufferEdgeX:this.bufferEdgeX,bufferEdgeY:this.bufferEdgeY}}_calcViewportInfo(){if(this.isActive===!1)return this._makeDefaultViewport();const e=this._scene.transform.clone();let n=this._width,r=this._height;const i=this._getViewPortSize();n=i.width,r=i.height;const a=this.left,o=(n||0)+this.left,s=this.top,l=(r||0)+this.top,u=this.transformVector2SceneCoord(cn.FromArray([a,s])),c=this.transformVector2SceneCoord(cn.FromArray([o,l])),d={left:u.x,right:c.x,top:u.y,bottom:c.y};this._viewBound=d;const h=this._preViewBound,f=this._diffViewBound(d,h),m=((h==null?void 0:h.left)||0)-d.left,g=((h==null?void 0:h.top)||0)-d.top,p={top:s,left:a,bottom:l,right:o},v=this.expandBounds(d);this.cacheBound=v,this.preCacheBound||(this.preCacheBound=this.expandBounds(d));let _=[];this._preCacheVisibleBound&&(m<0?this._preCacheVisibleBound.left-=m:m>0&&(this._preCacheVisibleBound.right-=m),g<0?this._preCacheVisibleBound.top-=g:g>0&&(this._preCacheVisibleBound.bottom-=g));const C=this.expandBounds(p),S=this._calcCacheUpdate(d,this._preCacheVisibleBound,m,g);return S&&(_=this._calcDiffCacheBound(this._preCacheBound,v)),{viewBound:d,diffBounds:f,diffX:m,diffY:g,viewPortPosition:p,viewportKey:this.viewportKey,isDirty:this.isDirty?2:0,isForceDirty:this.isForceDirty,allowCache:this._allowCache,cacheBound:v,diffCacheBounds:_,cacheViewPortPosition:C,shouldCacheUpdate:S,sceneTrans:e,cacheCanvas:this._cacheCanvas,leftOrigin:this._leftOrigin,topOrigin:this._topOrigin,bufferEdgeX:this.bufferEdgeX,bufferEdgeY:this.bufferEdgeY,updatePrevCacheBounds:T(b=>{this.updatePrevCacheBounds(b)},"updatePrevCacheBounds")}}getBounding(){return this._calcViewportInfo()}transformVector2SceneCoord(e){const n=this.scene.transform.clone().invert(),r=this.getViewportScrollByScrollXY();return n.applyPoint(e).add(cn.FromArray([r.x,r.y]))}getAbsoluteVector(e){const n=this.scene.transform.clone(),r=this.getViewportScrollByScrollXY();return n.applyPoint(e.subtract(cn.FromArray([r.x,r.y])))}onMouseWheel(e,n){if(!this._scrollBar||this.isActive===!1)return;let r;if(e.inputIndex===Kn.MouseWheelX){const i=Math.abs(e.deltaX),a=this._scene.width,o=(this.width||1)/a*i;e.deltaX>0?r=this.scrollByBarDeltaValue({x:o}):r=this.scrollByBarDeltaValue({x:-o}),this._scene.getParent().classType===ar.SCENE_VIEWER?r!=null&&r.isLimitedX||n.stopPropagation():this._isWheelPreventDefaultX?e.preventDefault():r!=null&&r.isLimitedX||e.preventDefault()}if(e.inputIndex===Kn.MouseWheelY){const i=Math.abs(e.deltaY),a=this._scene.height;let o=(this.height||1)/a*i;e.shiftKey?(o*=sEt,e.deltaY>0?r=this.scrollByBarDeltaValue({x:o}):r=this.scrollByBarDeltaValue({x:-o}),this._scene.getParent().classType===ar.SCENE_VIEWER?r!=null&&r.isLimitedX||n.stopPropagation():this._isWheelPreventDefaultX?e.preventDefault():r!=null&&r.isLimitedX||e.preventDefault()):(e.deltaY>0?r=this.scrollByBarDeltaValue({y:o}):r=this.scrollByBarDeltaValue({y:-o}),this._scene.getParent().classType===ar.SCENE_VIEWER?r!=null&&r.isLimitedY||n.stopPropagation():this._isWheelPreventDefaultY?e.preventDefault():r!=null&&r.isLimitedY||e.preventDefault())}e.inputIndex,Kn.MouseWheelZ,this._scene.makeDirty(!0)}isHit(e){if(this.isActive===!1)return;const{width:n,height:r}=this._getViewPortSize();return e.x>=this.left&&e.x<=this.left+(n||0)&&e.y>=this.top&&e.y<=this.top+(r||0)}pickScrollBar(e){if(!this._scrollBar)return;const n=this.getScrollBarTransForm().invert().applyPoint(e);return this._scrollBar.pick(n)}openClip(){this._clipViewport=!0}closeClip(){this._clipViewport=!1}dispose(){var e,n;this.onMouseWheel$.complete(),this.onScrollAfter$.complete(),this.onScrollEnd$.complete(),(e=this._scrollBar)==null||e.dispose(),(n=this._cacheCanvas)==null||n.dispose(),this._scene.removeViewport(this._viewportKey)}limitedScroll(e,n){var r,i;if(!this._scrollBar)return{scrollX:0,scrollY:0,isLimitedX:!1,isLimitedY:!1};e=e??this.scrollX,n=n??this.scrollY;const{height:a,width:o}=this._getViewPortSize();this._sceneWCurrVpAfterScale<=o&&(e=0),this._sceneHCurrVpAfterScale<=a&&(n=0);const s=(r=this._scrollBar)==null?void 0:r.limitX,l=(i=this._scrollBar)==null?void 0:i.limitY;let u=!1,c=!1;return(e<0||e>s)&&(u=!0),(n<0||n>l)&&(c=!0),e=Ie.clamp(e,0,s),n=Ie.clamp(n,0,l),{scrollX:e,scrollY:n,isLimitedX:u,isLimitedY:c}}_limitViewportScroll(e,n){const{width:r,height:i}=this._getViewPortSize(),a=this._paddingEndY-this._paddingStartY,o=this._paddingEndX-this._paddingStartX,s=this.scene.scaleY,l=this.scene.scaleX,u=this._sceneWidthAfterScale-o*l-r,c=this._sceneHeightAfterScale-a*s-i;return{viewportScrollX:Ie.clamp(e,this._paddingStartX,u/l),viewportScrollY:Ie.clamp(n,this._paddingStartY,c/s),isLimitedX:e>u,isLimitedY:n>c}}markDirty(e){e===void 0&&(e=!0),this._isDirty=e}get isDirty(){return this._isDirty}markForceDirty(e){e===void 0&&(e=!0),this._isForceDirty=e}resetPrevCacheBounds(){this._preCacheBound=null}get isForceDirty(){return this._isForceDirty}_resizeCacheCanvas(){var e;const{width:n,height:r}=this._getViewPortSize();this.width=n,this.height=r;const i=this.scene.scaleX,a=this.scene.scaleY,o=n!==0?n+this.bufferEdgeX*2*i:0,s=r!==0?r+this.bufferEdgeY*2*a:0;(e=this._cacheCanvas)==null||e.setSize(o,s),this.cacheBound=this._viewBound,this.preCacheBound=null,this.markForceDirty(!0)}_updateScrollByViewportScrollValue(){if(!this.width||this.width<0||!this.height||this.height<0)return;const{width:e,height:n}=this._getViewPortSize(),r=(this._scene.width-this._paddingEndX)*this._scene.scaleX,i=(this._scene.height-this._paddingEndY)*this._scene.scaleY;if(this._sceneWCurrVpAfterScale=r,this._sceneHCurrVpAfterScale=i,this._sceneWidthAfterScale=this._scene.width*this._scene.scaleX,this._sceneHeightAfterScale=this._scene.height*this._scene.scaleY,this._scrollBar){this._scrollBar.resize(e,n,r,i);const a=this.viewportScrollX,o=this.viewportScrollY;this.scrollToViewportPos({viewportScrollX:a,viewportScrollY:o})}this.markForceDirty(!0)}_getViewPortSize(){const e=this._scene.getParent(),{width:n,height:r}=e,{scaleX:i=1,scaleY:a=1}=this._scene;let o,s;const l=this._leftOrigin*i,u=this._topOrigin*a;return this._left=l,this._top=u,this._explicitViewportWidthSet?o=(this._widthOrigin||0)*i:o=n-(this._left+this._right),this._explicitViewportHeightSet?s=(this._heightOrigin||0)*a:s=r-(this._top+this._bottom),{width:o,height:s,parentHeight:r}}_afterRender(){}_emitScrollEnd$(e){clearTimeout(this._scrollStopNum),this._scrollStopNum=setTimeout(()=>{var n,r;this.onScrollEnd$.emitEvent({rawScrollX:e.rawScrollX,rawScrollY:e.rawScrollY,viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,viewportScrollX:this.viewportScrollX,viewportScrollY:this.viewportScrollY,limitX:(n=this._scrollBar)==null?void 0:n.limitX,limitY:(r=this._scrollBar)==null?void 0:r.limitY,isTrigger:!1})},2)}_scrollToBarPosCore(e,n=!0){var r,i,a,o,s;if(this._scrollBar==null)return;let l=e.x,u=e.y;const c=this.limitedScroll(l,u),d=this.transScroll2ViewportScrollValue(c.scrollX,c.scrollY);this.scrollX=l=c.scrollX,this.scrollY=u=c.scrollY,this.viewportScrollX=d.x,this.viewportScrollY=d.y;const h={viewport:this,scrollX:l,scrollY:u,viewportScrollX:d.x,viewportScrollY:d.y,rawScrollX:e.x,rawScrollY:e.y,limitX:(r=this._scrollBar)==null?void 0:r.limitX,limitY:(i=this._scrollBar)==null?void 0:i.limitY,isTrigger:n};return(a=this._scrollBar)==null||a.makeDirty(!0),this.onScrollAfter$.emitEvent(h),this._emitScrollEnd$(h),this.onScrollByBar$.emitEvent({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,viewportScrollX:this.viewportScrollX,viewportScrollY:this.viewportScrollY,limitX:(o=this._scrollBar)==null?void 0:o.limitX,limitY:(s=this._scrollBar)==null?void 0:s.limitY,isTrigger:n}),c}_scrollToViewportPosCore(e,n=!0){var r,i,a,o,s;if(this._scrollBar==null)return;let l=(r=e.viewportScrollX)!=null?r:this.viewportScrollX,u=(i=e.viewportScrollY)!=null?i:this.viewportScrollY;const c=this.transViewportScroll2ScrollValue(l,u),d=this._limitViewportScroll(l,u);l=d.viewportScrollX,u=d.viewportScrollY;const h=this.transViewportScroll2ScrollValue(l,u),f=h.x,m=h.y;this._preScrollX=this.scrollX,this._preScrollY=this.scrollY,this._preViewportScrollX=this.viewportScrollX,this._preViewportScrollY=this.viewportScrollY,this.scrollX=f,this.scrollY=m,this.viewportScrollX=l,this.viewportScrollY=u;const g={isTrigger:n,viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,viewportScrollX:l,viewportScrollY:u,rawScrollX:c.x,rawScrollY:c.y,limitX:(a=this._scrollBar)==null?void 0:a.limitX,limitY:(o=this._scrollBar)==null?void 0:o.limitY};return(s=this._scrollBar)==null||s.makeDirty(!0),this.onScrollAfter$.emitEvent(g),this._emitScrollEnd$(g),d}expandBounds(e){const n=Lo*2;return{left:e.left-this.bufferEdgeX-n,right:e.right+this.bufferEdgeX+n,top:e.top-this.bufferEdgeY-n,bottom:e.bottom+this.bufferEdgeY+n}}updatePrevCacheBounds(e){e&&(this.preCacheBound=this.cacheBound=this.expandBounds(e))}_calcCacheUpdate(e,n,r,i){if(!this._cacheCanvas)return 0;if(!n)return 1;const a=e.right>n.right||e.top<n.top||e.left<n.left||e.bottom>n.bottom?1:0,o=this.bufferEdgeX/50,s=this.bufferEdgeY/50;return(n.right-e.right<o||e.left-n.left<o||e.top-n.top<s||n.bottom-e.bottom<s?5:0)|a}_diffViewBound(e,n){if(n==null)return[e];const r={startRow:e.top,endRow:e.bottom,startColumn:e.left,endColumn:e.right},i={startRow:n.top,endRow:n.bottom,startColumn:n.left,endColumn:n.right};return Oye(r,i).map(a=>{const{startRow:o,endRow:s,startColumn:l,endColumn:u}=a;return{left:l,top:o,right:u,bottom:s}})}_calcDiffCacheBound(e,n){if(!e)return[n];const r=[];n.left<e.left&&r.push({top:n.top,bottom:n.bottom,left:n.left,right:e.left}),n.right>e.right&&r.push({top:n.top,bottom:n.bottom,left:e.right,right:n.right}),n.top<e.top&&r.push({top:n.top,bottom:e.top,left:Math.max(e.left,n.left),right:Math.min(e.right,n.right)}),n.bottom>e.bottom&&r.push({top:e.bottom,bottom:n.bottom,left:Math.max(e.left,n.left),right:Math.min(e.right,n.right)});const i=this.bufferEdgeX,a=this.bufferEdgeY;for(const o of r)o.left=o.left-i,o.right=o.right+i,o.top=o.top-a,o.bottom=o.bottom+a;return r}_drawScrollbar(e){if(!this._scrollBar)return;const n=this._scene.getParent();n.classType===ar.SCENE_VIEWER?this._scrollBar.render(e):n.classType===ar.ENGINE&&this._scrollBar.render(e)}_setViewportSize(e){Ie.isDefine(e==null?void 0:e.top)&&(this.top=e.top),Ie.isDefine(e==null?void 0:e.left)&&(this.left=e.left),Ie.isDefine(e==null?void 0:e.bottom)&&(this.bottom=e.bottom),Ie.isDefine(e==null?void 0:e.right)&&(this.right=e.right),Ie.isDefine(e==null?void 0:e.width)&&this._explicitViewportWidthSet?(this.width=e==null?void 0:e.width,this._widthOrigin=this.width):(this.width=null,this._widthOrigin=null),Ie.isDefine(e==null?void 0:e.height)&&this._explicitViewportHeightSet?(this.height=e==null?void 0:e.height,this._heightOrigin=this.height):(this.height=null,this._heightOrigin=null)}_mainCanvasResizeHandler(){this.markForceDirty(!0)}};T(Nye,"Viewport");let xd=Nye;var kye=Object.defineProperty,lEt=(t,e,n)=>e in t?kye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xo=(t,e)=>kye(t,"name",{value:e,configurable:!0}),hs=(t,e,n)=>lEt(t,typeof e!="symbol"?e+"":e,n);const jo={id:"doc.operation.set-selections",type:Se.OPERATION,handler:xo((t,e)=>!0,"handler")};var uEt=Object.defineProperty,cEt=Object.getOwnPropertyDescriptor,dEt=xo((t,e,n,r)=>{for(var i=r>1?void 0:r?cEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&uEt(e,n,i),i},"__decorateClass$4"),_se=xo((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),jN;let Or=(jN=class extends Da{constructor(t,e){super(),hs(this,"_currentSelection",null),hs(this,"_textSelectionInfo",new Map),hs(this,"_textSelection$",new Pn(null)),hs(this,"textSelection$",this._textSelection$.asObservable()),hs(this,"_refreshSelection$",new Pn(null)),hs(this,"refreshSelection$",this._refreshSelection$.asObservable()),this._commandService=t,this._univerInstanceService=e,this._listenCurrentUnit()}_listenCurrentUnit(){this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_DOC).pipe(_a(this.dispose$)).subscribe(t=>{if(t==null)return;const e=t.getUnitId();this._setCurrentSelectionNotRefresh({unitId:e,subUnitId:e})})}getCurrentSelection(){return this._currentSelection}getCurrentSelectionInfo(){return this._getTextRanges(this._currentSelection)}refreshSelection(){this._currentSelection!=null&&this._refresh(this._currentSelection)}setCurrentSelection(t){this._currentSelection=t,this._refresh(t)}getCurrentTextRanges(){var t;return(t=this._getTextRanges(this._currentSelection))==null?void 0:t.textRanges}getCurrentRectRanges(){var t;return(t=this._getTextRanges(this._currentSelection))==null?void 0:t.rectRanges}getDocRanges(){var t,e;const n=(t=this.getCurrentTextRanges())!=null?t:[],r=(e=this.getCurrentRectRanges())!=null?e:[];return[...n,...r].filter(i=>i.startOffset!=null&&i.endOffset!=null).sort((i,a)=>i.startOffset>a.startOffset?1:i.startOffset<a.startOffset?-1:0)}getActiveTextRange(){const t=this._getTextRanges(this._currentSelection);if(t==null)return;const{textRanges:e}=t;return e.find(n=>n.isActive)}getActiveRectRange(){const t=this._getTextRanges(this._currentSelection);if(t==null)return;const{rectRanges:e}=t;return e.find(n=>n.isActive)}add(t,e=!0){this._currentSelection!=null&&this._addByParam({...this._currentSelection,textRanges:t,rectRanges:[],segmentId:"",segmentPage:-1,isEditing:e,style:U4})}replaceTextRanges(t,e=!0,n){if(this._currentSelection==null)return;const{unitId:r,subUnitId:i}=this._currentSelection;this._refreshSelection$.next({unitId:r,subUnitId:i,docRanges:t,isEditing:e,options:n})}__replaceTextRangesWithNoRefresh(t){if(this._currentSelection==null)return;const e={...this._currentSelection,...t};this._replaceByParam(e),this._textSelection$.next(e);const{unitId:n,subUnitId:r,segmentId:i,style:a,textRanges:o,rectRanges:s,isEditing:l}=e,u=[...o,...s].filter(c=>c.startOffset!=null&&c.endOffset!=null).sort((c,d)=>c.startOffset>d.startOffset?1:c.startOffset<d.startOffset?-1:0);this._commandService.executeCommand(jo.id,{unitId:n,subUnitId:r,segmentId:i,style:a,isEditing:l,ranges:u})}dispose(){this._textSelection$.complete()}_setCurrentSelectionNotRefresh(t){var e;const{unitId:n,subUnitId:r}=(e=this._currentSelection)!=null?e:{},{unitId:i,subUnitId:a}=t;(n!==i||r!==a)&&(n&&r&&this._refreshSelection$.next({unitId:n,subUnitId:r,docRanges:[],isEditing:!1}),this._currentSelection=t)}_getTextRanges(t){var e;if(t==null)return;const{unitId:n,subUnitId:r=""}=t;return(e=this._textSelectionInfo.get(n))==null?void 0:e.get(r)}_refresh(t){const e=this._getTextRanges(t);if(e==null)return;const{textRanges:n,rectRanges:r}=e,i=[...n,...r],{unitId:a,subUnitId:o}=t;this._refreshSelection$.next({unitId:a,subUnitId:o,docRanges:i,isEditing:!1})}_replaceByParam(t){const{unitId:e,subUnitId:n,...r}=t;this._textSelectionInfo.has(e)||this._textSelectionInfo.set(e,new Map),this._textSelectionInfo.get(e).set(n,{...r})}_addByParam(t){const{unitId:e,subUnitId:n,...r}=t;this._textSelectionInfo.has(e)||this._textSelectionInfo.set(e,new Map);const i=this._textSelectionInfo.get(e);i.has(n)?i.get(n).textRanges.push(...t.textRanges):i.set(n,{...r})}},xo(jN,"DocSelectionManagerService"),jN);Or=dEt([_se(0,me),_se(1,Ce)],Or);var hEt=Object.defineProperty,fEt=Object.getOwnPropertyDescriptor,mEt=xo((t,e,n,r)=>{for(var i=r>1?void 0:r?fEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&hEt(e,n,i),i},"__decorateClass$3"),Cse=xo((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),$N;let zi=($N=class extends Da{constructor(t,e,n){super(),hs(this,"_skeleton"),hs(this,"_docViewModel"),hs(this,"_currentSkeleton$",new Pn(null)),hs(this,"currentSkeleton$",this._currentSkeleton$.asObservable()),hs(this,"_currentSkeletonBefore$",new Pn(null)),hs(this,"currentSkeletonBefore$",this._currentSkeletonBefore$.asObservable()),hs(this,"_currentViewModel$",new Pn(null)),hs(this,"currentViewModel$",this._currentViewModel$.asObservable()),this._context=t,this._localeService=e,this._univerInstanceService=n,this._init(),this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_DOC).pipe(_a(this.dispose$)).subscribe(r=>{r&&r.getUnitId()===this._context.unitId&&this._update(r)})}dispose(){super.dispose(),this._currentSkeletonBefore$.complete(),this._currentSkeleton$.complete()}getSkeleton(){return this._skeleton}getViewModel(){return this._docViewModel}_init(){const t=this._context.unit;this._update(t)}_update(t){const e=this._context.unitId;if(t.getBody()==null)return;this._docViewModel&&oh(e)?(this._docViewModel.reset(t),this._context.unit=t):this._docViewModel||(this._docViewModel=this._buildDocViewModel(t)),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(t){return X4.create(t,this._localeService)}_buildDocViewModel(t){return new H4(t)}},xo($N,"DocSkeletonManagerService"),$N);zi=mEt([Cse(1,se(sn)),Cse(2,Ce)],zi);const Fye=class extends Da{constructor(){super(),hs(this,"_docStateChangeParams$",new Pn(null)),hs(this,"docStateChangeParams$",this._docStateChangeParams$.asObservable())}emitStateChangeInfo(e){this._docStateChangeParams$.next(e)}dispose(){super.dispose(),this._docStateChangeParams$.complete()}};xo(Fye,"DocStateEmitService");let QJ=Fye;const Sse="doc.mutation.rich-text-editing",Oi={id:Sse,type:Se.MUTATION,handler:xo((t,e)=>{var n,r;const{unitId:i,segmentId:a="",actions:o,textRanges:s,prevTextRanges:l,trigger:u,noHistory:c,isCompositionEnd:d,noNeedSetTextRange:h,debounce:f}=e,m=t.get(Ce),g=t.get(Sr),p=t.get(QJ),v=m.getUniverDocInstance(i),_=(n=g.getRenderById(i))==null?void 0:n.with(zi).getViewModel();if(v==null||_==null)throw new Error(`DocumentDataModel or documentViewModel not found for unitId: ${i}`);const C=t.get(Or),S=(r=C.getDocRanges())!=null?r:[],b=!!v.getSnapshot().disabled;if(Ir.isNoop(o)||o&&o.length===0||b)return{unitId:i,actions:[],textRanges:S};const y=Ir.invertWithDoc(o,v.getSnapshot());v.apply(o),_.reset(v),!h&&s&&u!=null&&queueMicrotask(()=>{C.replaceTextRanges(s,!0,e.options)});const A={commandId:Sse,unitId:i,segmentId:a,trigger:u,noHistory:c,debounce:f,redoState:{actions:o,textRanges:s},undoState:{actions:y,textRanges:l??S},isCompositionEnd:d};return p.emitStateChangeInfo(A),{unitId:i,actions:y,textRanges:S}},"handler")},gEt={id:"doc.mutation.rename-doc",type:Se.MUTATION,handler:xo((t,e)=>{const n=t.get(Ce).getUnit(e.unitId,le.UNIVER_DOC);return n?(n.setName(e.name),!0):!1},"handler")},pEt="docs.config",vEt={};var _Et=Object.defineProperty,CEt=Object.getOwnPropertyDescriptor,SEt=xo((t,e,n,r)=>{for(var i=r>1?void 0:r?CEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&_Et(e,n,i),i},"__decorateClass$2"),WN=xo((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),zN;let aR=(zN=class extends et{constructor(t,e,n){super(),this._commandService=t,this._textSelectionManagerService=e,this._univerInstanceService=n,this._initSelectionChange()}_transformCustomRange(t,e){var n;const{startOffset:r,endOffset:i,collapsed:a}=e,o=(n=t.getCustomRanges())==null?void 0:n.filter(s=>!s.wholeEntity||r<=s.startIndex&&i>s.endIndex?!1:a?s.startIndex<r&&s.endIndex>=i:Aa.range.isIntersects(r,i-1,s.startIndex,s.endIndex));if(o!=null&&o.length){let s=r,l=i;return o.forEach(u=>{s=Math.min(u.startIndex,s),l=Math.max(u.endIndex+1,l)}),{...e,startOffset:s,endOffset:l,collapsed:s===l}}return e}_initSelectionChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===jo.id){const e=t.params,{unitId:n,ranges:r,isEditing:i}=e,a=this._univerInstanceService.getUnit(n);if(!a)return;const o=r.map(s=>this._transformCustomRange(a,s));o.some((s,l)=>r[l]!==s)&&this._textSelectionManagerService.replaceTextRanges(o,i)}}))}},xo(zN,"DocCustomRangeController"),zN);aR=SEt([yn(Vt.Ready,aR),WN(0,me),WN(1,se(Or)),WN(2,Ce)],aR);var bEt=Object.defineProperty,yEt=Object.getOwnPropertyDescriptor,EEt=xo((t,e,n,r)=>{for(var i=r>1?void 0:r?yEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bEt(e,n,i),i},"__decorateClass$1"),bse=xo((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const REt="DOCS_PLUGIN";var z9;let _z=(z9=class extends Cs{constructor(t=vEt,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(pEt,r),this._initializeDependencies(e),this._initializeCommands()}_initializeCommands(){[Oi,gEt,jo].forEach(t=>{this._injector.get(me).registerCommand(t)})}_initializeDependencies(t){[[Or],[QJ],[aR]].forEach(e=>t.add(e))}},xo(z9,"UniverDocsPlugin"),hs(z9,"pluginName",REt),hs(z9,"type",le.UNIVER_DOC),z9);_z=EEt([bse(1,se(Wn)),bse(2,Za)],_z);const AEt=_s("CUSTOM_RANGE"),wEt=_s("CUSTOM_DECORATION"),qN={CUSTOM_RANGE:AEt,CUSTOM_DECORATION:wEt};var DEt=Object.defineProperty,IEt=Object.getOwnPropertyDescriptor,PEt=xo((t,e,n,r)=>{for(var i=r>1?void 0:r?IEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&DEt(e,n,i),i},"__decorateClass"),MEt=xo((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),YN;let oR=(YN=class extends et{constructor(t,e){super(),hs(this,"_interceptorsByName",new Map),this._context=t,this._docSkeletonManagerService=e;const n=this._docSkeletonManagerService.getViewModel(),r=n.getDataModel().getUnitId();if(r===Yo||r===Ki)return;this.disposeWithMe(this.interceptDocumentViewModel(n)),this.disposeWithMe(this.intercept(qN.CUSTOM_RANGE,{priority:-1,handler:xo((a,o,s)=>s(a),"handler")}));let i=new Gi;n.segmentViewModels$.subscribe(a=>{i.dispose(),i=new Gi,a.forEach(o=>{i.add(this.interceptDocumentViewModel(o))})}),this.disposeWithMe(i)}intercept(t,e){const n=t;this._interceptorsByName.has(n)||this._interceptorsByName.set(n,[]);const r=this._interceptorsByName.get(n);return r.push(e),this._interceptorsByName.set(n,r.sort((i,a)=>{var o,s;return((o=a.priority)!=null?o:0)-((s=i.priority)!=null?s:0)})),this.disposeWithMe($t(()=>Zu(this._interceptorsByName.get(n),e)))}fetchThroughInterceptors(t){const e=t,n=this._interceptorsByName.get(e);return NX(n||[])}interceptDocumentViewModel(t){const e=new Gi;return e.add(t.registerCustomRangeInterceptor({getCustomRange:xo(n=>{var r;return this.fetchThroughInterceptors(qN.CUSTOM_RANGE)(t.getCustomRangeRaw(n),{index:n,unitId:t.getDataModel().getUnitId(),customRanges:(r=t.getDataModel().getCustomRanges())!=null?r:[]})},"getCustomRange"),getCustomDecoration:xo(n=>{var r;return this.fetchThroughInterceptors(qN.CUSTOM_DECORATION)(t.getCustomDecorationRaw(n),{index:n,unitId:t.getDataModel().getUnitId(),customDecorations:(r=t.getDataModel().getCustomDecorations())!=null?r:[]})},"getCustomDecoration")})),e}},xo(YN,"DocInterceptorService"),YN);oR=PEt([yn(Vt.Starting,oR),MEt(1,se(zi))],oR);var Vye=Object.defineProperty,TEt=(t,e,n)=>e in t?Vye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ma=(t,e)=>Vye(t,"name",{value:e,configurable:!0}),Ru=(t,e,n)=>TEt(t,typeof e!="symbol"?e+"":e,n),LEt=Object.defineProperty,xEt=Object.getOwnPropertyDescriptor,Bye=ma((t,e,n,r)=>{for(var i=r>1?void 0:r?xEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&LEt(e,n,i),i},"__decorateClass$3"),sR=ma((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3");const KJ="rpc.remote-sync.service",FD=er(KJ);var XN;let Cz=(XN=class{constructor(t){this._commandService=t}async syncMutation(t){return this._commandService.syncExecuteCommand(t.mutationInfo.id,t.mutationInfo.params,{onlyLocal:!0,fromSync:!0})}},ma(XN,"RemoteSyncPrimaryService"),XN);Cz=Bye([sR(0,me)],Cz);const ZJ="univer.remote-instance-service",VD=er(ZJ);var GN;let Sz=(GN=class{constructor(t,e,n){this._univerInstanceService=t,this._commandService=e,this._logService=n}whenReady(){return Promise.resolve(!0)}async syncMutation(t){return this._applyMutation(t.mutationInfo)}async createInstance(t){const{type:e,snapshot:n}=t;try{switch(e){case le.UNIVER_SHEET:return this._univerInstanceService.createUnit(le.UNIVER_SHEET,n),!0;default:throw new Error(`[WebWorkerRemoteInstanceService]: cannot create replica for document type: ${e}.`)}}catch(r){throw r instanceof Error?r:new TypeError(`${r}`)}}async disposeInstance(t){return this._univerInstanceService.disposeUnit(t.unitID)}_applyMutation(t){const{id:e,params:n}=t;return this._commandService.syncExecuteCommand(e,n,{onlyLocal:!0,fromSync:!0})}},ma(GN,"WebWorkerRemoteInstanceService"),GN);Sz=Bye([sR(0,Ce),sR(1,me),sR(2,Ra)],Sz);function qT(t){const e=t;return new class{call(n,r){const i=e[n];if(typeof i=="function"){let a=i.apply(e,[r]);return a instanceof Promise||(a=Promise.resolve(a)),a}throw new Error(`[RPC]: method not found for ${n}!`)}subscribe(n,r){const i=e[n];if(typeof i=="function"){const a=i.apply(e,r);return bv(a)?a:Hr(a)}throw new Error(`[RPC]: observable method not found for ${n}!`)}}}ma(qT,"fromModule");function YT(t){return new Proxy({},{get(e,n){if(n!=="dispose")return function(...r){return Uye(n)?t.subscribe(n,r[0]):t.call(n,r[0])}}})}ma(YT,"toModule");function Uye(t){return t.endsWith("$")}ma(Uye,"propertyIsEventSource");const Hye=class extends Da{constructor(e){super(),Ru(this,"_initialized",new Pn(!1)),Ru(this,"_lastRequestCounter",0),Ru(this,"_pendingRequests",new Map),this._protocol=e,this._protocol.onMessage.pipe(_a(this.dispose$)).subscribe(n=>this._onMessage(n))}dispose(){this._pendingRequests.clear()}getChannel(e){const n=this;return{call(r,i){return n._disposed?Promise.reject():n._remoteCall(e,r,i)},subscribe(r,i){if(n._disposed)throw new Error("[ChannelClient]: client is disposed!");return n._remoteSubscribe(e,r,i)}}}_whenReady(){return CQe(this._initialized.pipe(mo(e=>e),Rce(1)))}async _remoteCall(e,n,r){await this._whenReady();const i=++this._lastRequestCounter,a={seq:i,type:100,channelName:e,method:n,args:r},o=this;return new Promise((s,l)=>{const u={handle(c){switch(c.type){case 201:o._pendingRequests.delete(i),s(c.data);break;case 202:o._pendingRequests.delete(i),l(c.data);break;default:throw new Error("[ChannelClient]: unknown response type!")}}};this._pendingRequests.set(i,u),this._sendRequest(a)})}_remoteSubscribe(e,n,r){return new On(i=>{let a=-1;return this._whenReady().then(()=>{a=++this._lastRequestCounter;const o={seq:a,type:101,channelName:e,method:n,args:r},s={handle(l){switch(l.type){case 300:i.next(l.data);break;case 301:i.error(l.data);break;case 302:i.complete();break;default:throw new Error("[ChannelClient]: unknown response type!")}}};this._pendingRequests.set(a,s),this._sendRequest(o)}),()=>{if(a===-1)return;const o={type:102,seq:a,channelName:e,method:n};this._sendRequest(o)}})}_sendRequest(e){this._protocol.send(e)}_onMessage(e){var n;switch(e.type){case 0:this._initialized.next(!0);break;case 201:case 202:case 300:case 302:case 301:(n=this._pendingRequests.get(e.seq))==null||n.handle(e);break}}};ma(Hye,"ChannelClient");let OEt=Hye;const jye=class extends Da{constructor(e){super(),Ru(this,"_channels",new Map),Ru(this,"_subscriptions",new Map),this._protocol=e,this._protocol.onMessage.pipe(_a(this.dispose$)).subscribe(n=>this._onRequest(n)),this._sendResponse({seq:-1,type:0})}dispose(){super.dispose(),this._subscriptions.clear(),this._channels.clear()}registerChannel(e,n){this._channels.set(e,n)}_onRequest(e){switch(e.type){case 100:this._onMethodCall(e);break;case 101:this._onSubscribe(e);break;case 102:this._onUnsubscribe(e);break}}_onMethodCall(e){const{channelName:n,method:r,args:i}=e,a=this._channels.get(n);let o;try{if(!a)throw new Error(`[ChannelServer]: Channel ${n} not found!`);o=a.call(r,i)}catch(s){o=Promise.reject(s)}o.then(s=>{this._sendResponse({seq:e.seq,type:201,data:s})}).catch(s=>{s instanceof Error?this._sendResponse({seq:e.seq,type:202,data:s.message}):this._sendResponse({seq:e.seq,type:202,data:String(s)})})}_onSubscribe(e){const{channelName:n,seq:r}=e,i=this._channels.get(n);try{if(!i)throw new Error(`[ChannelServer]: Channel ${n} not found!`);const a=i.subscribe(e.method,e.args).subscribe({next:ma(o=>{this._sendResponse({seq:r,type:300,data:o})},"next"),error:ma(o=>{this._sendResponse({seq:r,type:301,data:o.message}),this._sendResponse({seq:r,type:302})},"error"),complete:ma(()=>{this._sendResponse({seq:r,type:302})},"complete")});this._subscriptions.set(e.seq,a)}catch(a){a instanceof Error?this._sendResponse({seq:e.seq,type:301,data:a.message}):this._sendResponse({seq:e.seq,type:301,data:String(a)})}}_onUnsubscribe(e){const n=this._subscriptions.get(e.seq);n&&(n.unsubscribe(),this._subscriptions.delete(e.seq))}_sendResponse(e){this._protocol.send(e)}};ma(jye,"ChannelServer");let NEt=jye;const X7=er("IRPCChannelService"),$ye=class{constructor(e){Ru(this,"_client"),Ru(this,"_server"),this._client=new OEt(e),this._server=new NEt(e)}dispose(){this._client.dispose(),this._server.dispose()}requestChannel(e){return this._client.getChannel(e)}registerChannel(e,n){this._server.registerChannel(e,n)}};ma($ye,"ChannelService");let Wye=$ye;var kEt=Object.defineProperty,FEt=Object.getOwnPropertyDescriptor,VEt=ma((t,e,n,r)=>{for(var i=r>1?void 0:r?FEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kEt(e,n,i),i},"__decorateClass$2"),q9=ma((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),QN;let Lg=(QN=class extends Da{constructor(t,e,n,r,i){super(),Ru(this,"_remoteInstanceService"),Ru(this,"_syncingUnits",new Set),Ru(this,"_syncingMutations",new Set),this._injector=t,this._commandService=e,this._univerInstanceService=n,this._rpcChannelService=r,this._remoteSyncService=i,this._initRPCChannels(),this._init()}registerSyncingMutations(t){this._syncingMutations.add(t.id)}syncUnit(t){return this._syncingUnits.add(t),$t(()=>this._syncingUnits.delete(t))}_initRPCChannels(){this._rpcChannelService.registerChannel(KJ,qT(this._remoteSyncService)),this._injector.add([VD,{useFactory:ma(()=>YT(this._rpcChannelService.requestChannel(ZJ)),"useFactory")}]),this._remoteInstanceService=this._injector.get(VD)}_init(){this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(t=>{this._syncingUnits.add(t.getUnitId()),this._remoteInstanceService.createInstance({unitID:t.getUnitId(),type:le.UNIVER_SHEET,snapshot:t.getSnapshot()})}),this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(t=>{this._syncingUnits.delete(t.getUnitId()),this._remoteInstanceService.disposeInstance({unitID:t.getUnitId()})}),this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{const{type:n,params:r,id:i}=t,a=(r==null?void 0:r.unitId)||"";n===Se.MUTATION&&(!a||this._syncingUnits.has(a))&&!(e!=null&&e.fromSync)&&this._syncingMutations.has(i)&&this._remoteInstanceService.syncMutation({mutationInfo:t})}))}},ma(QN,"DataSyncPrimaryController"),QN);Lg=VEt([yn(Vt.Starting,Lg),q9(0,se(Wn)),q9(1,me),q9(2,Ce),q9(3,X7),q9(4,FD)],Lg);var BEt=Object.defineProperty,UEt=Object.getOwnPropertyDescriptor,HEt=ma((t,e,n,r)=>{for(var i=r>1?void 0:r?UEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&BEt(e,n,i),i},"__decorateClass$1"),by=ma((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),KN;let R8=(KN=class extends et{constructor(t,e,n,r){super(),Ru(this,"_remoteSyncService"),this._injector=t,this._remoteInstanceService=e,this._commandService=n,this._rpcChannelService=r,this._initRPCChannels(),this._init()}_initRPCChannels(){this._rpcChannelService.registerChannel(ZJ,qT(this._remoteInstanceService)),this._injector.add([FD,{useFactory:ma(()=>YT(this._rpcChannelService.requestChannel(KJ)),"useFactory")}]),this._remoteSyncService=this._injector.get(FD)}_init(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{t.type===Se.MUTATION&&!(e!=null&&e.fromSync)&&this._remoteSyncService.syncMutation({mutationInfo:t})}))}},ma(KN,"DataSyncReplicaController"),KN);R8=HEt([yn(Vt.Starting,R8),by(0,se(Wn)),by(1,VD),by(2,me),by(3,X7)],R8);function zye(){return{send(t){postMessage(t)},onMessage:new On(t=>{const e=ma(n=>{t.next(n.data)},"handler");return addEventListener("message",e),()=>removeEventListener("message",e)}).pipe(VP(1))}}ma(zye,"createWebWorkerMessagePortOnWorker");function qye(t){return{send(e){t.postMessage(e)},onMessage:new On(e=>{const n=ma(r=>{e.next(r.data)},"handler");return t.addEventListener("message",n),()=>t.removeEventListener("message",n)}).pipe(VP(1))}}ma(qye,"createWebWorkerMessagePortOnMain");const jEt="rpc.main-thread.config",$Et={},WEt="rpc.worker-thread.config",zEt={};var qEt=Object.defineProperty,YEt=Object.getOwnPropertyDescriptor,Yye=ma((t,e,n,r)=>{for(var i=r>1?void 0:r?YEt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&qEt(e,n,i),i},"__decorateClass"),BD=ma((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),yy;let yse=(yy=class extends Cs{constructor(t=$Et,e,n){super(),Ru(this,"_internalWorker",null),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(jEt,r)}dispose(){super.dispose(),this._internalWorker&&(this._internalWorker.terminate(),this._internalWorker=null)}onStarting(){const{workerURL:t}=this._config;if(!t)throw new Error("[UniverRPCMainThreadPlugin]: The workerURL is required for the RPC main thread plugin.");const e=t instanceof Worker?t:new Worker(t);this._internalWorker=t instanceof Worker?null:e;const n=qye(e);[[X7,{useFactory:ma(()=>new Wye(n),"useFactory")}],[Lg],[FD,{useClass:Cz}]].forEach(r=>this._injector.add(r)),this._injector.get(Lg)}},ma(yy,"UniverRPCMainThreadPlugin"),Ru(yy,"pluginName","UNIVER_RPC_MAIN_THREAD_PLUGIN"),yy);yse=Yye([BD(1,se(Wn)),BD(2,Za)],yse);var Ey;let Ese=(Ey=class extends Cs{constructor(t=zEt,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(WEt,r)}onStarting(){[[R8],[X7,{useFactory:ma(()=>new Wye(zye()),"useFactory")}],[VD,{useClass:Sz}]].forEach(t=>this._injector.add(t)),this._injector.get(R8)}},ma(Ey,"UniverRPCWorkerThreadPlugin"),Ru(Ey,"pluginName","UNIVER_RPC_WORKER_THREAD_PLUGIN"),Ey);Ese=Yye([BD(1,se(Wn)),BD(2,Za)],Ese);var Xye=Object.defineProperty,XEt=(t,e,n)=>e in t?Xye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e)=>Xye(t,"name",{value:e,configurable:!0}),x=(t,e,n)=>XEt(t,typeof e!="symbol"?e+"":e,n);function Gye(t,e,n,r,i){for(let a=0,o=t.length;a<o;a++){const s=t[a];if(e!==s.unitId||n!==s.sheetId)continue;const{startRow:l,startColumn:u,endRow:c,endColumn:d}=s.range;if(r>=l&&r<=c&&i>=u&&i<=d)return!0}return!1}U(Gye,"isInDirtyRange");var D=(t=>(t.DIV_BY_ZERO="#DIV/0!",t.NAME="#NAME?",t.VALUE="#VALUE!",t.NUM="#NUM!",t.NA="#N/A",t.CYCLE="#CYCLE!",t.REF="#REF!",t.SPILL="#SPILL!",t.CALC="#CALC!",t.ERROR="#ERROR!",t.CONNECT="#GETTING_DATA",t.NULL="#NULL!",t))(D||{});const Wp=new Set(Object.values(D)),Rse=[...new Set(Object.values(D).map(t=>t.length))];var Z=(t=>(t[t.Financial=0]="Financial",t[t.Date=1]="Date",t[t.Math=2]="Math",t[t.Statistical=3]="Statistical",t[t.Lookup=4]="Lookup",t[t.Database=5]="Database",t[t.Text=6]="Text",t[t.Logical=7]="Logical",t[t.Information=8]="Information",t[t.Engineering=9]="Engineering",t[t.Cube=10]="Cube",t[t.Compatibility=11]="Compatibility",t[t.Web=12]="Web",t[t.Array=13]="Array",t[t.Univer=14]="Univer",t[t.User=15]="User",t[t.DefinedName=16]="DefinedName",t))(Z||{}),di=(t=>(t.PLUS="+",t.MINUS="-",t.MULTIPLY="*",t.DIVIDED="/",t.CONCATENATE="&",t.POWER="^",t.EQUALS="=",t.NOT_EQUAL="<>",t.GREATER_THAN=">",t.GREATER_THAN_OR_EQUAL=">=",t.LESS_THAN="<",t.LESS_THAN_OR_EQUAL="<=",t))(di||{}),bn=(t=>(t.EQUALS="=",t.NOT_EQUAL="<>",t.GREATER_THAN=">",t.GREATER_THAN_OR_EQUAL=">=",t.LESS_THAN="<",t.LESS_THAN_OR_EQUAL="<=",t))(bn||{});const lR=new Map([["<>",3],["<",3],[">=",3],["=",3],[">",3],["<=",3],["&",2],["+",2],["-",2],["/",1],["*",1],["^",0]]),Pm=new Set(lR.keys()),GEt=new Set(["=","<>",">",">=","<","<="]);var mr=(t=>(t.OPEN_BRACKET="(",t.CLOSE_BRACKET=")",t.COMMA=",",t.SINGLE_QUOTATION="'",t.DOUBLE_QUOTATION='"',t.OPEN_BRACES="{",t.CLOSE_BRACES="}",t.COLON=":",t.OPEN_SQUARE_BRACKET="[",t.CLOSE_SQUARE_BRACKET="]",t))(mr||{}),ch=(t=>(t.PERCENTAGE="%",t.POUND="#",t))(ch||{});const Ase=new Set(["%","#"]);var zo=(t=>(t.AT="@",t.MINUS="-",t))(zo||{});const QEt=" ",Qye=[...Object.values(bn),...Object.values(di),...Object.values(mr),...Object.values(ch),...Object.values(zo)];function A8(t){return Qye.includes(t)}U(A8,"isFormulaLexerToken");function Kye(t){for(const e of Qye)if(t.indexOf(e)>-1)return!0;return!1}U(Kye,"includeFormulaLexerToken");function Zye(t){return t[0]==="'"&&t[t.length-1]==="'"?t.substring(1,t.length-1):t}U(Zye,"normalizeSheetName");function bz(t){return A8(t)&&t!==mr.CLOSE_BRACES&&t!==mr.CLOSE_BRACKET&&t!==mr.SINGLE_QUOTATION&&t!==mr.DOUBLE_QUOTATION||t===" "}U(bz,"matchRefDrawToken");function JJ(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(r==null)return!0;e[n]==null&&(e[n]={}),Object.keys(r).forEach(i=>{const a=r[i];e[n][i]=new Ct(a)})}),e}U(JJ,"convertUnitDataToRuntime");function Jye(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(r==null)return!0;e[n]==null&&(e[n]={}),Object.keys(r).forEach(i=>{const a=r[i];e[n][i]=a.getData()})}),e}U(Jye,"convertRuntimeToUnitData");const Uh="P_1",f0="R_1",Q4="L_1",bS="LR_1",eEe="LO_1",KEt="LET",R_="LAMBDA",ZEt="CUBE",tEe=class nEe{constructor(){x(this,"_parent"),x(this,"_token",f0),x(this,"_children",[]),x(this,"_lambdaId"),x(this,"_functionDefinitionPrivacyVar"),x(this,"_lambdaParameter",""),x(this,"_startIndex",-1),x(this,"_endIndex",-1),x(this,"_definedNames",[])}dispose(){var e;this._children.forEach(n=>{typeof n!="string"&&n.dispose()}),(e=this._functionDefinitionPrivacyVar)==null||e.clear(),this._parent=null}getDefinedNames(){return this._definedNames}getStartIndex(){return this._startIndex}getLambdaId(){return this._lambdaId}setLambdaId(e){this._lambdaId=e}getFunctionDefinitionPrivacyVar(){return this._functionDefinitionPrivacyVar}setLambdaPrivacyVar(e){this._functionDefinitionPrivacyVar=e}getLambdaParameter(){return this._lambdaParameter}setLambdaParameter(e){this._lambdaParameter=e}getParent(){return this._parent}setParent(e){this._parent=e}getChildren(){return this._children}setChildren(e){this._children=e}addChildren(e){this._children.push(e)}addChildrenFirst(e){this._children.unshift(e)}getToken(){return this._token}setToken(e){this._token=e}setIndex(e,n){this._startIndex=e,this._endIndex=n}setDefinedNames(e){this._definedNames=e}hasDefinedNames(){return this._definedNames.length>0}replaceChild(e,n){const r=this._getIndexInParent(e);r!=null&&(this.getChildren().splice(r,1,n),n.setParent(this))}changeToParent(e){const n=this.getParent();n&&n.removeChild(this),this.setParent(e),e.getChildren().push(this)}removeChild(e){const n=this._getIndexInParent(e);n!=null&&this.getChildren().splice(n,1)}serialize(){const e=this.getToken(),n=this.getChildren(),r=[],i=n.length;for(let a=0;a<i;a++){const o=n[a];o instanceof nEe?r.push(o.serialize()):r.push(o)}return{token:e,st:this._startIndex,ed:this._endIndex,children:r}}_getIndexInParent(e){const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++)if(n[i]===e)return i}};U(tEe,"LexerNode");let Jr=tEe;const rEe=class{constructor(e){x(this,"_cache"),this._cache=new Yg(e)}set(e,n){const r=this._hash(e);this._cache.set(r,n)}get(e){const n=this._hash(e);return this._cache.get(n)}clear(){this._cache.clear()}_hash(e){return x1e(e)}};U(rEe,"FormulaAstLRU");let zp=rEe;const yz='\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]',JEt="((?![\\[\\]\\/?*\\\\]).)*!",I0="$",eee="\\s*?:\\s*?",UD="[A-Za-z]+",HD="[1-9][0-9]*",G7=`'?(${yz})?(${JEt})?'?`,Ez=`\\${I0}?${UD}\\${I0}?${HD}`,eRt=`^(${zo.AT})?${G7}${Ez}${eee}${Ez}$`,yS=`^${G7}\\s*?${Ez}(${ch.POUND})?$`,iEe=`^${G7}\\${I0}?${HD}${eee}\\${I0}?${HD}$`,aEe=`^${G7}\\${I0}?${UD}${eee}\\${I0}?${UD}$`,oEe=`^${G7}\\s*?\\${I0}?${HD}$`,sEe=`^${G7}\\s*?\\${I0}?${UD}$`,lEe="[.*?]",tRt="{.*?}";function ES(t){return new RegExp(yS).test(t)||new RegExp(eRt).test(t)||new RegExp(iEe).test(t)||new RegExp(aEe).test(t)}U(ES,"isReferenceString");var ya=(t=>(t[t.NORMAL=0]="NORMAL",t[t.NUMBER=1]="NUMBER",t[t.STRING=2]="STRING",t[t.FUNCTION=3]="FUNCTION",t[t.REFERENCE=4]="REFERENCE",t[t.ARRAY=5]="ARRAY",t[t.DEFINED_NAME=6]="DEFINED_NAME",t))(ya||{});function K4(t){let e="";for(const n of t)typeof n=="string"?e+=n:e+=n.token;return e}U(K4,"generateStringWithSequence");const nRt=/[^0-9]/g,rRt=/[^A-Za-z]/g;function w8(t){let e=t[0]==="$";const n=t.substring(1);let r=n.indexOf("$")>-1;return Ie.isStringNumber(n)&&e&&!r&&(e=!1,r=!0),e&&r?yr.ALL:e?yr.COLUMN:r?yr.ROW:yr.NONE}U(w8,"getAbsoluteRefTypeWithSingleString");function uEe(t){const e=t.split("!");e.length>1&&(t=e[e.length-1]);const n=t.split(":");return n.length>1?{startAbsoluteRefType:w8(n[0]),endAbsoluteRefType:w8(n[1])}:{startAbsoluteRefType:w8(n[0])}}U(uEe,"getAbsoluteRefTypeWitString");function Rz(t=yr.NONE){let e="",n="";return t===yr.ROW?e="$":t===yr.COLUMN?n="$":t===yr.ALL&&(e="$",n="$"),{rowAbsoluteString:e,columnAbsoluteString:n}}U(Rz,"_getAbsoluteToken");function Jo(t){const{startColumn:e,startRow:n,endColumn:r,endRow:i,startAbsoluteRefType:a,endAbsoluteRefType:o,rangeType:s=it.NORMAL}=t,l=Rz(a),u=Rz(o);if(s===it.ROW||s===it.ALL){const h=`${l.rowAbsoluteString}${n+1}`,f=`${u.rowAbsoluteString}${i+1}`;return`${h}:${f}`}if(s===it.COLUMN){const h=`${l.columnAbsoluteString}${Ie.chatAtABC(e)}`,f=`${u.columnAbsoluteString}${Ie.chatAtABC(r)}`;return`${h}:${f}`}const c=`${l.columnAbsoluteString}${Ie.chatAtABC(e)}${l.rowAbsoluteString}${n+1}`,d=`${u.columnAbsoluteString}${Ie.chatAtABC(r)}${u.rowAbsoluteString}${i+1}`;return c===d?c:`${c}:${d}`}U(Jo,"serializeRange");function Q7(t,e){return A_(t)?`'${t}'!${Jo(e)}`:`${t}!${Jo(e)}`}U(Q7,"serializeRangeWithSheet");function XT(t,e,n){return A_(t)||A_(e)?`'[${t}]${e}'!${Jo(n)}`:`[${t}]${e}!${Jo(n)}`}U(XT,"serializeRangeWithSpreadsheet");function tc(t){const{unitId:e,sheetName:n,range:r}=t;return e!=null&&e.length>0&&n!=null&&n.length>0?XT(e,n,r):n!=null&&n.length>0?Q7(n,r):Jo(r)}U(tc,"serializeRangeToRefString");function uR(t){const e=Number.parseInt(t.replace(nRt,""))-1,n=Ie.ABCatNum(t.replace(rRt,"")),r=w8(t);return{row:e,column:n,absoluteRefType:r}}U(uR,"singleReferenceToGrid");function tee(t){const e=new RegExp(yz).exec(t);let n="";e!=null&&(n=e[0].trim(),n=n.slice(1,n.length-1),t=t.replace(new RegExp(yz),""));const r=t.indexOf("!");let i="",a="";return r>-1?(i=t.substring(0,r),i[0]==="'"&&i[i.length-1]==="'"&&(i=i.substring(1,i.length-1)),a=t.substring(r+1)):a=t,{refBody:a,sheetName:i,unitId:n}}U(tee,"handleRefStringInfo");function Uo(t){const{refBody:e,sheetName:n,unitId:r}=tee(t),i=e.indexOf(":");if(i===-1){const m=uR(e),g=m.row,p=m.column,v=m.absoluteRefType;return{unitId:r,sheetName:n,range:{startRow:g,startColumn:p,endRow:g,endColumn:p,startAbsoluteRefType:v,endAbsoluteRefType:v}}}const a=e.substring(0,i),o=e.substring(i+1),s=uR(a),l=uR(o),u=s.row,c=s.column,d=l.row,h=l.column;let f=it.NORMAL;return Number.isNaN(u)&&Number.isNaN(d)?f=it.COLUMN:Number.isNaN(c)&&Number.isNaN(h)&&(f=it.ROW),{unitId:r,sheetName:n,range:{startRow:u,startColumn:c,endRow:d,endColumn:h,startAbsoluteRefType:s.absoluteRefType,endAbsoluteRefType:l.absoluteRefType,rangeType:f}}}U(Uo,"deserializeRangeWithSheet");const iRt=["LOG10"];function sp(t){if(!ES(t)||iRt.includes(t.toUpperCase().trim()))return!1;const{range:e}=Uo(t);return!(e.endColumn>=16384)}U(sp,"isReferenceStringWithEffectiveColumn");function cEe(t,e){const n=(t==null?void 0:t.split(","))||[];return t===""||n.length===0?[]:K7(t)?n.map(r=>{const i=Uo(r);return{unitId:i.unitId,sheetId:e(i.sheetName),range:i.range,sheetName:i.sheetName}}):[]}U(cEe,"getRangeWithRefsString");function K7(t){return((t==null?void 0:t.split(","))||[]).every(e=>sp(e.trim()))}U(K7,"isReferenceStrings");function A_(t){return t.length===0?!1:!!(Kye(t)||dEe(t)||hEe(t)||fEe(t)||/[\s!$%^&*()+\-=\[\]{};':"\\|,.<>\/?]/.test(t))}U(A_,"needsQuoting");function dEe(t){const e=t.match(/[1-9][0-9]{0,6}/);return/^[A-Z]+[1-9][0-9]{0,6}$/.test(t)&&e!==null}U(dEe,"isA1Notation");function hEe(t){return/^(R(-?[0-9]+)?C(-?[0-9]+)?|C(-?[0-9]+)?|R(-?[0-9]+)?)$/.test(t)}U(hEe,"isR1C1Notation");function fEe(t){return!new RegExp("^\\p{Letter}","u").test(t.charAt(0))}U(fEe,"startsWithNonAlphabetic");const mEe=1e5,ZN=new zp(mEe),JN=new zp(mEe),gEe=class extends et{constructor(){super(...arguments),x(this,"_currentLexerNode",new Jr),x(this,"_upLevel",0),x(this,"_segment",""),x(this,"_bracketState",[]),x(this,"_squareBracketState",0),x(this,"_bracesState",0),x(this,"_singleQuotationState",0),x(this,"_doubleQuotationState",0),x(this,"_lambdaState",!1),x(this,"_colonState",!1),x(this,"_tableBracketState",!1)}dispose(){this._resetTemp(),this._currentLexerNode.dispose(),ZN.clear(),JN.clear()}getUpLevel(){return this._upLevel}isColonClose(){return this._colonState===!1}isColonOpen(){return this._colonState===!0}isDoubleQuotationClose(){return this._doubleQuotationState===0}isLambdaOpen(){return this._lambdaState===!0}isLambdaClose(){return this._lambdaState===!1}isSingleQuotationClose(){return this._singleQuotationState===0}isBracesClose(){return this._bracesState===0}isBracketClose(){return this._bracketState.length===0}isSquareBracketClose(){return this._squareBracketState===0}getCurrentLexerNode(){return this._currentLexerNode}getFunctionAndParameter(e,n){const r=this._getCurrentParamIndex(e,n);if(r==null||r===D.VALUE)return;const i=r[0];if(typeof i=="string")return;let a=i.getParent(),o=i;for(;a;){const s=a.getToken();if(s!==Uh&&!A8(s)&&a.getStartIndex()!==-1){const l=a.getChildren().indexOf(o);return{functionName:s,paramIndex:l}}o=a,a=a.getParent()}}checkIfAddBracket(e){let n=0,r=e.length-1,i=e[r];for(;(i===mr.CLOSE_BRACKET||i===" ")&&r>=0;)i===mr.CLOSE_BRACKET&&n++,i=e[--r];const a=this._getCurrentParamIndex(e,e.length-2);if(a==null||a===D.VALUE)return 0;const o=a[0];if(typeof o=="string")return 0;let s=o.getParent(),l=0;for(a[1]===mr.OPEN_BRACKET&&l++;s;){const u=s.getToken();u!==Uh&&u!==mr.COLON&&s.getStartIndex()!==-1&&u.toUpperCase()!==R_&&(n===0?l+=1:n--),s=s.getParent()}return l}sequenceNodesBuilder(e){const n=JN.get(e);if(n)return[...n];const r=this._getSequenceArray(e);if(r.length===0)return;const i=this.getSequenceNode(r);return JN.set(e,[...i]),i}convertRefersToAbsolute(e,n,r){const i=this.sequenceNodesBuilder(e);if(i==null)return e;let a="";e.substring(0,1)===di.EQUALS&&(a=di.EQUALS);for(let o=0,s=i.length;o<s;o++){const l=i[o];if(typeof l!="string"&&l.nodeType===ya.REFERENCE){const{token:u,endIndex:c}=l,d=Uo(u);if(d==null)continue;const{range:h,sheetName:f,unitId:m}=d,g={...h,startAbsoluteRefType:n,endAbsoluteRefType:r},p=tc({range:g,unitId:m,sheetName:f}),v=p.length-u.length;i[o]={...l,token:p,endIndex:c+v};for(let _=o+1;_<s;_++){const C=i[_];typeof C!="string"&&(C.startIndex+=v,C.endIndex+=v)}}}return`${a}${K4(i)}`}moveFormulaRefOffset(e,n,r,i=!1){const a=this.sequenceNodesBuilder(e);if(a==null)return e;const o=[];for(let s=0,l=a.length;s<l;s++){const u=a[s];if(typeof u=="string"||u.nodeType!==ya.REFERENCE){o.push(u);continue}const{token:c}=u,d=Uo(c),{sheetName:h,unitId:f}=d;let m=d.range;if(!i&&m.startAbsoluteRefType===yr.ALL&&m.endAbsoluteRefType===yr.ALL){o.push(u);continue}else m=XX(m,n,r,i);let g="";QP(m)?g=tc({range:m,unitId:f,sheetName:h}):g=D.REF,o.push({...u,token:g})}return`=${K4(o)}`}_formulaSpellCheck(){if(this._currentLexerNode.getChildren().length===0)return!0;const e=this._currentLexerNode.getChildren()[0];return!!(e instanceof Jr||Pm.has(e)||Ase.has(e)||e===zo.AT||e===mr.COMMA||e===mr.COLON||e===mr.OPEN_BRACKET)}getSequenceNode(e){const n=[];let r=!1;for(let i=0,a=e.length;i<a;i++){const o=e[i],s=e[i-1],{segment:l,currentString:u}=o;if(u===mr.DOUBLE_QUOTATION&&(r=!0),(l!==""||i===0)&&i!==a-1){n.push(u);continue}let c=(s==null?void 0:s.segment)||"",d=i-c.length,h=i-1,f=i-1;if(i===a-1&&this._isLastMergeString(u)&&(c+=u,h+=1),c===""||lR.has(c)){n.push(u);continue}const m=c.trim(),g=this._replacePrefixString(m);if(r===!0&&m[m.length-1]===mr.DOUBLE_QUOTATION&&m[0]!==mr.OPEN_BRACES)r=!1,this._processPushSequenceNode(n,ya.STRING,c,d,h,f);else if(new RegExp(yS).test(g)&&sp(g)){if(g.length!==m.length){const p=m.length-g.length;f+=p,d+=p,c=this._replacePrefixString(c)}this._processPushSequenceNode(n,ya.REFERENCE,c,d,h,f)}else Ie.isStringNumber(m)?this._processPushSequenceNode(n,ya.NUMBER,c,d,h,f):m.length>0&&this._processPushSequenceNode(n,ya.FUNCTION,c,d,h,f);(i!==a-1||!this._isLastMergeString(u))&&n.push(u)}return this._mergeSequenceNodeReference(n)}_processPushSequenceNode(e,n,r,i,a,o){this._pushSequenceNode(e,{nodeType:n,token:r,startIndex:i,endIndex:a},o)}_getCurrentParamIndex(e,n){return this._nodeMaker(e,void 0,n)}_isLastMergeString(e){return e===mr.DOUBLE_QUOTATION||Ie.isStringNumber(e)||!A8(e)}_mergeSequenceNodeReference(e){const n=[],r=e.length;let i=0;for(;i<r;){const a=e[i];if(typeof a=="string"){const o=e[i-1];if(a.trim()===mr.CLOSE_BRACES&&o!=null&&typeof o!="string"&&o.nodeType===ya.FUNCTION&&o.token.trim().substring(0,1)===mr.OPEN_BRACES){o.nodeType=ya.ARRAY,o.token+=a,o.endIndex+=a.length,i++;continue}n.push(a)}else{const o=e[i+1],s=e[i+2];o===mr.COLON&&typeof a!="string"&&s!=null&&typeof s!="string"&&sp((a.token+o+s.token).trim())&&(a.nodeType=ya.REFERENCE,a.token+=o+s.token,a.endIndex=s.endIndex,i+=2),n.push(a)}i++}return n}_pushSequenceNode(e,n,r){const i=r-n.startIndex+1;e.splice(e.length-i,i,n)}_replacePrefixString(e){const n=[];let r=!1;for(let i=0,a=e.length;i<a;i++){const o=e[i];if(o===QEt&&!r)n.push(o);else{if(!r&&(o===zo.AT||o===zo.MINUS))continue;n.push(o),r=!0}}return n.join("")}nodeMakerTest(e){return this._nodeMaker(e)}treeBuilder(e,n=!0,r,i){if(n===!0){const d=ZN.get(e),h=i==null?void 0:i(e);if(d&&!h)return d}this._resetCurrentLexerNode(),this._currentLexerNode.setToken(f0);const a=[];let o=this._nodeMaker(e,a);if(o===D.VALUE||a.length===0)return o;let s=!1,l="",u=[];if(r){const{hasDefinedName:d,sequenceString:h,definedNames:f}=r(a);s=d,l=h,u=f}if(s&&(this._resetCurrentLexerNode(),this._currentLexerNode.setToken(f0),o=this._nodeMaker(`=${l}`),o===D.VALUE))return o;const c=this._getTopNode(this._currentLexerNode);if(c&&(this._currentLexerNode=c),n){if(!this._suffixExpressionHandler(this._currentLexerNode))return D.VALUE;ZN.set(e,this._currentLexerNode)}return s&&this._currentLexerNode.setDefinedNames(u),this._currentLexerNode}_suffixExpressionHandler(e){var n;const r=e.getChildren();if(!r)return!1;const i=r.length,a=[],o=[];let s=!0;for(let l=0;l<i;l++){const u=r[l];if(u instanceof Jr)s=this._suffixExpressionHandler(u),a.push(u);else{const c=u.trim();if(c==="")continue;if(Pm.has(c)){if(c===di.PLUS&&this._deletePlusForPreNode(r[l-1]))continue;if(c!==di.PLUS&&c!==di.MINUS&&this._deletePlusForPreNode(r[l-1]))return!1;for(;o.length>0;){const d=(n=o[o.length-1])==null?void 0:n.trim();if(!d||d===mr.OPEN_BRACKET)break;const h=lR.get(d),f=lR.get(c);if(!h||!f)break;if(f>=h)a.push(o.pop());else break}o.push(u)}else if(c===mr.OPEN_BRACKET)o.push(u);else if(c===mr.CLOSE_BRACKET)this._processSuffixExpressionCloseBracket(a,o,r,l);else{if(this._checkCloseBracket(r[l-1]))return!1;a.push(u)}}}return s?this._processSuffixExpressionRemain(a,o,e):!1}_processSuffixExpressionRemain(e,n,r){const i=e.length,a=e[i-1];for(;n.length>0;){const o=n.pop();if(!(a instanceof Jr)&&(o===mr.OPEN_BRACKET||o===mr.CLOSE_BRACKET))return!1;e.push(o)}return r.setChildren(e),!0}_processSuffixExpressionCloseBracket(e,n,r,i){var a;if(this._checkOpenBracket(r[i-1])||this._checkOperator(r[i-1]))return!1;for(;n.length>0;){const o=(a=n[n.length-1])==null?void 0:a.trim();if(!o)break;if(o===mr.OPEN_BRACKET){n.pop();break}e.push(n.pop())}}_checkCloseBracket(e){return e===mr.CLOSE_BRACKET||e instanceof Jr}_checkOpenBracket(e){return e===mr.OPEN_BRACKET}_checkOperator(e){return e==null||e instanceof Jr?!1:Pm.has(e)}_deletePlusForPreNode(e){if(e==null)return!0;if(!(e instanceof Jr)){const n=e.trim();if(Pm.has(n)||n===mr.OPEN_BRACKET)return!0}return!1}_resetCurrentLexerNode(){this._currentLexerNode=new Jr}_resetSegment(){this._segment=""}_openBracket(e=0){this._bracketState.push(e)}_closeBracket(){this._bracketState.pop()}_openSquareBracket(){this._squareBracketState+=1}_closeSquareBracket(){this._squareBracketState-=1}_getCurrentBracket(){const e=this._bracketState;return e[e.length-1]}_changeCurrentBracket(e){const n=this._bracketState;n[n.length-1]=e}_openBraces(){this._bracesState+=1}_closeBraces(){this._bracesState-=1}_openSingleQuotation(){this._singleQuotationState+=1}_closeSingleQuotation(){this._singleQuotationState-=1}_openDoubleQuotation(){this._doubleQuotationState+=1}_closeDoubleQuotation(){this._doubleQuotationState-=1}_openLambda(){this._lambdaState=!0}_closeLambda(){this._lambdaState=!1}_openColon(e){this._upLevel=e,this._colonState=!0}_closeColon(){this._upLevel=0,this._colonState=!1}_isTableBracket(){return this._tableBracketState}_openTableBracket(){this._tableBracketState=!0}_closeTableBracket(){this._tableBracketState=!1}_getLastChildCurrentLexerNode(){const e=this._currentLexerNode.getChildren();if(e&&e.length>0){const n=e[e.length-1];if(n instanceof Jr)return n}return!1}_getLastChildCurrent(){const e=this._currentLexerNode.getChildren();return e&&e.length>0?e[e.length-1]:!1}_setParentCurrentLexerNode(){const e=this._currentLexerNode.getParent();return e?(this._currentLexerNode=e,!0):!1}_setAncestorCurrentLexerNode(){var e,n,r,i,a,o;const s=(e=this._currentLexerNode)==null?void 0:e.getParent();let l=!1;if(s&&s.getToken()===Q4){if((n=s==null?void 0:s.getParent())!=null&&n.getParent()){const u=(i=(r=this._currentLexerNode.getParent())==null?void 0:r.getParent())==null?void 0:i.getParent();u&&(this._currentLexerNode=u),l=!0}}else if(s!=null&&s.getParent()){const u=(a=this._currentLexerNode.getParent())==null?void 0:a.getParent();u&&(this._currentLexerNode=u),l=!0}for(let u=0;u<this._upLevel;u++){const c=(o=this._currentLexerNode)==null?void 0:o.getParent();c&&(this._currentLexerNode=c),this._currentLexerNode?l=!0:l=!1}return l}_segmentCount(){return this._segment.trim().length}_pushSegment(e){this._segment+=e}_pushNodeToChildren(e,n=!1){let r=e;if(r!==""){const i=this._currentLexerNode.getChildren();if(!(r instanceof Jr)&&this.isColonOpen()){const a=new Jr;a.setToken(r),a.setParent(this._currentLexerNode),r=a}n?i.unshift(r):i.push(r)}this.isColonOpen()&&(this._setAncestorCurrentLexerNode(),this._closeColon())}_setCurrentLexerNode(e,n=!1){this._pushNodeToChildren(e,n),e.setParent(this._currentLexerNode),this._currentLexerNode=e}_newAndPushCurrentLexerNode(e,n,r=!1){const i=new Jr;i.setToken(e),i.setIndex(n-e.length,n-1),this._setCurrentLexerNode(i,r)}_getTopNode(e){let n=e;for(;n!=null&&n.getParent();)n=n.getParent();return n}_removeLastChild(){this._currentLexerNode.getChildren().splice(-1)}_findPreviousToken(e,n){let r=n;for(;r>=0;){const i=e[r];if(i!==" ")return i;r--}}_negativeCondition(e){return!!(Pm.has(e)||e===mr.OPEN_BRACKET||e===mr.COMMA||e==="")}_getSequenceArray(e){const n=[];return this._nodeMaker(e,n),n}_resetTemp(){this._currentLexerNode=new Jr,this._upLevel=0,this._segment="",this._bracketState=[],this._bracesState=0,this._singleQuotationState=0,this._doubleQuotationState=0,this._lambdaState=!1,this._colonState=!1}_checkErrorState(){return this._bracketState.length>0||this._bracesState>0||this._singleQuotationState>0||this._doubleQuotationState>0}_checkSimilarErrorToken(e,n,r){let i=n;if(e!==ch.POUND)return!0;let a=r[++i];for(;a===" ";)a=r[++i];return!!A8(a)}_checkIfErrorObject(e,n){return!!this._findErrorObject(e,n)}_findErrorObject(e,n){for(let r=0;r<Rse.length;r++){const i=Rse[r],a=n.slice(e,e+i).join("").toUpperCase();if(Wp.has(a))return a}}_nodeMaker(e,n,r){let i=e.replace(/\r/g," ").replace(/\n/g," ");i.substring(0,1)===di.EQUALS&&(i=i.substring(1));let a=!1;i.substring(0,1)===di.MINUS&&(i=`0${i}`,a=!0);const o=i.split(""),s=o.length;let l=0;for(this._resetTemp();l<s;){const u=o[l];if(r===l)return[this._currentLexerNode,u];if(u===ch.POUND&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()&&this.isBracesClose()&&this.isSquareBracketClose()&&this._checkIfErrorObject(l,o)){const c=this._findErrorObject(l,o);if(c==null)return D.VALUE;this._pushNodeToChildren(c);for(let d=0;d<c.length;d++){const h=o[l];this._pushSegment(h),this._addSequenceArray(n,h,l,a),l++}this._resetSegment();continue}else if(u===mr.OPEN_BRACKET&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose())if(this._segmentCount()>0||this.isLambdaOpen()){this.isLambdaClose()&&(this._newAndPushCurrentLexerNode(this._segment,l),this._resetSegment()),this._openBracket(1),this._closeLambda();const c=o[l+1];if(c&&c===mr.CLOSE_BRACKET){if(!this._setParentCurrentLexerNode()&&l!==s-1)return D.VALUE;this._addSequenceArray(n,u,l,a),l++,this._addSequenceArray(n,c,l,a),l++,this._closeBracket();continue}else c&&this._newAndPushCurrentLexerNode(Uh,l)}else this._pushNodeToChildren(u),this._openBracket(0),this._resetSegment();else if(u===mr.CLOSE_BRACKET&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()){this._pushNodeToChildren(this._segment),this._resetSegment();const c=this._getCurrentBracket();if(c===0)this._pushNodeToChildren(u);else if(c===1){const d=o[l+1];if(d&&d===mr.OPEN_BRACKET){if(!this._setParentCurrentLexerNode()&&l!==s-1)return D.VALUE;this._newAndPushCurrentLexerNode(Q4,l,!0),this._openLambda()}else if(!this._setAncestorCurrentLexerNode()&&l!==s-1)return D.VALUE}else return D.VALUE;this._closeBracket()}else if(u===mr.OPEN_BRACES&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()){if(this._pushSegment(u),this._openBraces(),!this._formulaSpellCheck())return D.VALUE}else if(u===mr.CLOSE_BRACES&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose())this._pushSegment(u),this._pushNodeToChildren(this._segment),this._resetSegment(),this._closeBraces();else if(u===mr.OPEN_SQUARE_BRACKET&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose())this._segment.length>0&&this._openTableBracket(),this._pushSegment(u),this._openSquareBracket();else if(u===mr.CLOSE_SQUARE_BRACKET&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose())this._closeSquareBracket(),this.isSquareBracketClose()?(this._pushSegment(u),this._isTableBracket()&&(this._pushNodeToChildren(this._segment),this._resetSegment()),this._closeTableBracket()):this._pushSegment(u);else if(u===mr.DOUBLE_QUOTATION&&this.isSingleQuotationClose()&&this.isSquareBracketClose()){if(this.isDoubleQuotationClose())this._openDoubleQuotation();else{const c=o[l+1];c&&c===mr.DOUBLE_QUOTATION?l++:this._closeDoubleQuotation()}this._pushSegment(u)}else if(u===mr.SINGLE_QUOTATION&&this.isDoubleQuotationClose()){if(this.isSingleQuotationClose())this._openSingleQuotation();else{const c=o[l+1];c&&c===mr.SINGLE_QUOTATION?l++:this._closeSingleQuotation()}this._pushSegment(u)}else if(u===mr.COMMA&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()&&this.isBracesClose()&&this.isSquareBracketClose()){const c=this._getCurrentBracket();if(c===1||c==null){if(this._pushNodeToChildren(this._segment),this._resetSegment(),!this._setParentCurrentLexerNode()&&l!==s-1&&c!=null)return D.VALUE;this._newAndPushCurrentLexerNode(Uh,l)}else{const d=new Jr;d.setToken(ZEt);const h=new Jr;h.setToken(Uh),h.changeToParent(d);const f=this._currentLexerNode.getParent();if(f&&f.getToken()===mr.COLON){const m=f.getParent();if(!m)return D.VALUE;f.changeToParent(h),m.setChildren([]),d.changeToParent(m)}else return D.VALUE;this._changeCurrentBracket(1),this._pushNodeToChildren(this._segment),this._resetSegment(),this._currentLexerNode=d,this._newAndPushCurrentLexerNode(Uh,l)}}else if(u===mr.COLON&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()&&this.isBracesClose()&&this.isSquareBracketClose()){const c=new Jr;c.setToken(u);const d=new Jr;d.setToken(Uh),d.setParent(c);const h=new Jr;h.setToken(Uh),h.setParent(c),c.getChildren().push(d,h);let f=c,m=0;if(this._segmentCount()>0){let g,p,v=0;const _=this._segment.trim(),C=_[0],S=_[1];if(C===zo.MINUS&&(g=new Jr,g.setToken(zo.MINUS),v++),(C===zo.AT||S===zo.AT)&&(p=new Jr,p.setToken(zo.AT),g&&(g.addChildren(p),p.setParent(g)),v++),v>0&&(this._segment=_.slice(v)),m=v,p)if(p.addChildren(c),c.setParent(p),p.getParent()){const y=p.getParent();y&&(f=y)}else f=p;else g&&(f=g,g.addChildren(c),c.setParent(g));const b=new Jr;b.setToken(this._segment),b.setParent(d),d.getChildren().push(b),this._resetSegment()}else{const g=this._getLastChildCurrentLexerNode();g&&g.changeToParent(d)}this._setCurrentLexerNode(f),this._currentLexerNode=h,this._openColon(m)}else if(Ase.has(u)&&this._checkSimilarErrorToken(u,l,o)&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()&&this.isSquareBracketClose()&&this.isBracesClose()){this._pushNodeToChildren(this._segment);const c=new Jr;c.setToken(u);const d=this._getLastChildCurrent();d instanceof Jr?d.changeToParent(c):d!==!1&&(c.getChildren().push(d),this._removeLastChild()),this._pushNodeToChildren(c),c.setParent(this._currentLexerNode),this._resetSegment()}else if(Pm.has(u)&&this.isSingleQuotationClose()&&this.isDoubleQuotationClose()&&this.isSquareBracketClose()&&this.isBracesClose()){let c=this._segment.trim();if(u===di.MINUS&&c===""){const d=this._findPreviousToken(o,l-1)||"";if(this._negativeCondition(d)){this._pushSegment(di.MINUS),this._addSequenceArray(n,u,l,a),l++;continue}}else if(this._segment.length>0&&this._isScientificNotation(o,l,u)){this._pushSegment(u),this._addSequenceArray(n,u,l,a),l++;continue}else this._segment.length>0&&c===""?c=this._segment:(this._pushNodeToChildren(this._segment),c="");if(u===di.LESS_THAN||u===di.GREATER_THAN){const d=o[l+1];if(d&&Pm.has(u+d)){this._pushNodeToChildren(c+u+d),this._resetSegment(),this._addSequenceArray(n,u,l,a),l++,this._addSequenceArray(n,d,l,a),l++;continue}else this._pushNodeToChildren(c+u)}else this._pushNodeToChildren(c+u);this._resetSegment()}else this._pushSegment(u);this._addSequenceArray(n,u,l,a),l++}if(this._pushNodeToChildren(this._segment),this._checkErrorState())return D.VALUE}_isScientificNotation(e,n,r){const i=e[n-2];if(i&&Number.isNaN(Number(i))||!(r===di.MINUS||r===di.PLUS))return!1;const a=e[n+1];if(a&&Number.isNaN(Number(a)))return!1;const o=e[n-1];return o&&o.toUpperCase()==="E"}_addSequenceArray(e,n,r,i){i&&r===0||e==null||e.push({segment:this._segment,currentString:n,cur:r,currentLexerNode:this._currentLexerNode})}};U(gEe,"LexerTreeBuilder");let Kl=gEe;const pEe=class extends et{constructor(){super(...arguments),x(this,"pattern","")}getPattern(){return this.pattern}setPattern(e){this.pattern=e}isError(){return!1}isAsyncObject(){return!1}isAsyncArrayObject(){return!1}isReferenceObject(){return!1}isArray(){return!1}isValueObject(){return!1}isEqualType(e){return!1}};U(pEe,"ObjectClassType");let GT=pEe;function vEe(t){if(t===null)return 0;if(t!=null&&t.p){const e=t==null?void 0:t.p.body;if(e==null)return 0;const n=e.dataStream;return Aa.transform.getPlainText(n)}return(t==null?void 0:t.v)||0}U(vEe,"getCellValue");function nee(t,e,n,r,i){var a;const o=Object.keys(i);for(const s of o){const l=i[s],u=(a=l==null?void 0:l[r])==null?void 0:a[n];if(u==null)continue;const c=u.getValue(t,e);if(c!=null)return c}}U(nee,"getRuntimeFeatureCell");var lp=(t=>(t.FALSE="FALSE",t.TRUE="TRUE",t))(lp||{}),yg=(t=>(t[t.SUCCESS=0]="SUCCESS",t[t.ERROR=1]="ERROR",t))(yg||{}),ag=(t=>(t.ALL="#All",t.DATA="#Data",t.HEADERS="#Headers",t.TOTALS="#Totals",t))(ag||{}),J1=(t=>(t[t.FRONT=0]="FRONT",t[t.BACK=1]="BACK",t))(J1||{});const _Ee=class{constructor(){x(this,"_cache",new Map),x(this,"_continueBuildingCache",new Map)}set(e,n,r,i,a){if(!this.shouldContinueBuildingCache(e,n,r,a))return;let o=this._cache.get(e);o==null&&(o=new Map,this._cache.set(e,o));let s=o.get(n);s==null&&(s=new Map,o.set(n,s));let l=s.get(r);l==null&&(l=new Map,s.set(r,l));let u=l.get(i);u==null&&(u=new Set,l.set(i,u)),u.add(a)}getCellValuePositions(e,n,r){var i,a;return(a=(i=this._cache.get(e))==null?void 0:i.get(n))==null?void 0:a.get(r)}getCellPositions(e,n,r,i){var a,o,s;return(s=(o=(a=this._cache.get(e))==null?void 0:a.get(n))==null?void 0:o.get(r))==null?void 0:s.get(i)}getCellPosition(e,n,r,i,a,o){const s=this.getCellPositions(e,n,r,i);if(s!=null){for(const l of s)if(l>=a&&l<=o)return l}}setContinueBuildingCache(e,n,r,i,a){let o=this._continueBuildingCache.get(e);o==null&&(o=new Map,this._continueBuildingCache.set(e,o));let s=o.get(n);s==null&&(s=new Map,o.set(n,s));let l=s.get(r);if(l==null){l={startRow:i,endRow:a},s.set(r,l);return}l.startRow=Math.min(l.startRow,i),l.endRow=Math.max(l.endRow,a)}shouldContinueBuildingCache(e,n,r,i){var a,o;const s=(o=(a=this._continueBuildingCache.get(e))==null?void 0:a.get(n))==null?void 0:o.get(r);if(s==null)return!0;const{startRow:l,endRow:u}=s;return!(i>=l&&i<=u)}canUseCache(e,n,r,i,a){var o,s;if(r===-1||i===-1||a===-1)return!1;const l=(s=(o=this._continueBuildingCache.get(e))==null?void 0:o.get(n))==null?void 0:s.get(r);if(l==null)return!1;const{startRow:u,endRow:c}=l;return!(i>c||a<u)}clear(){this._cache.clear(),this._continueBuildingCache.clear()}};U(_Ee,"InvertedIndexCache");let aRt=_Ee;const og=new aRt;var sg=(t=>(t[t.MIN=0]="MIN",t[t.MAX=1]="MAX",t))(sg||{}),qo=(t=>(t[t.NORMAL=0]="NORMAL",t[t.MIN=1]="MIN",t[t.MAX=2]="MAX",t))(qo||{});function w_(){return Intl&&Intl.Collator?new Intl.Collator(void 0,{numeric:!1}).compare:(t,e)=>t.localeCompare(e)}U(w_,"getCompare");function CEe(t){return t.indexOf("*")>-1||t.indexOf("?")>-1}U(CEe,"isWildcard");function cR(t,e){const n=bEe(e).replace(/~?[*?]/g,r=>r.startsWith("~")?`\\${r.substring(1)}`:r==="*"?".*":r==="?"?".":r);return new RegExp(`^${n}$`).test(t)}U(cR,"isMatchWildcard");function Az(t){return t.replace(/~?[*?]/g,e=>e.startsWith("~")?e.substring(1):" ")}U(Az,"replaceWildcard");function SEe(t,e,n){let r=!1;switch(n){case bn.EQUALS:r=cR(t,e);break;case bn.NOT_EQUAL:r=!cR(t,e);break;case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:r=cR(t,e)||t>Az(e);break;case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:r=t<Az(e);break}return r}U(SEe,"compareWithWildcard");function bEe(t){return t.replace(/[.+^${}()|[\]\\]/g,"\\$&")}U(bEe,"escapeRegExp");function jD(t){switch(t){case 1:return 2;case 0:return 0;case-1:return 1;default:return 0}}U(jD,"getMatchModeValue");function $D(t){return t===-2?1:0}U($D,"getSearchModeValue");const yEe=class extends GT{constructor(e){super(),this._rawValue=e}isValueObject(){return!0}toUnitRange(){return{range:{startColumn:-1,startRow:-1,endRow:-1,endColumn:-1},sheetId:"",unitId:""}}getValue(){return 0}getArrayValue(){return[]}setValue(e){}setArrayValue(e){}isCube(){return!1}isString(){return!1}isNumber(){return!1}isBoolean(){return!1}isLambda(){return!1}isError(){return!1}isNull(){return!1}sum(){return I.create(D.VALUE)}max(){return I.create(D.VALUE)}min(){return I.create(D.VALUE)}count(){return I.create(D.VALUE)}countA(){return I.create(D.VALUE)}countBlank(){return I.create(D.VALUE)}getNegative(){return I.create(D.VALUE)}getReciprocal(){return I.create(D.VALUE)}plus(e){return I.create(D.VALUE)}minus(e){return I.create(D.VALUE)}multiply(e){return I.create(D.VALUE)}divided(e){return I.create(D.VALUE)}mod(e){return I.create(D.VALUE)}map(e){return I.create(D.NAME)}mapValue(e){return I.create(D.NAME)}compare(e,n,r=!1){return I.create(D.NAME)}isEqual(e){return this.compare(e,bn.EQUALS)}isNotEqual(e){return this.compare(e,bn.NOT_EQUAL)}isGreaterThanOrEqual(e){return this.compare(e,bn.GREATER_THAN_OR_EQUAL)}isLessThanOrEqual(e){return this.compare(e,bn.LESS_THAN_OR_EQUAL)}isLessThan(e){return this.compare(e,bn.LESS_THAN)}isGreaterThan(e){return this.compare(e,bn.GREATER_THAN)}concatenateFront(e){return I.create(D.NAME)}concatenateBack(e){return I.create(D.NAME)}plusBy(e){return I.create(D.VALUE)}minusBy(e){return I.create(D.VALUE)}multiplyBy(e){return I.create(D.VALUE)}dividedBy(e){return I.create(D.VALUE)}modInverse(e){return I.create(D.VALUE)}compareBy(e,n){return I.create(D.NAME)}concatenate(e,n=J1.FRONT){let r=this.getValue().toString();if(typeof e=="string")n===J1.FRONT?r=e+r:r+=e;else if(typeof e=="number")n===J1.FRONT?r=e.toString()+r:r+=e.toString();else if(typeof e=="boolean"){const i=e?"TRUE":"FALSE";n===J1.FRONT?r=i+r:r+=i}return r}pow(e){return I.create(D.VALUE)}powInverse(e){return I.create(D.VALUE)}sqrt(){return I.create(D.VALUE)}cbrt(){return I.create(D.VALUE)}cos(){return I.create(D.VALUE)}cosh(){return I.create(D.VALUE)}acos(){return I.create(D.VALUE)}acosh(){return I.create(D.VALUE)}sin(){return I.create(D.VALUE)}sinh(){return I.create(D.VALUE)}asin(){return I.create(D.VALUE)}asinh(){return I.create(D.VALUE)}tan(){return I.create(D.VALUE)}tanh(){return I.create(D.VALUE)}atan(){return I.create(D.VALUE)}atan2(e){return I.create(D.VALUE)}atan2Inverse(e){return I.create(D.VALUE)}atanh(){return I.create(D.VALUE)}mean(){return this}median(){return this}var(){return this}std(){return this}log(){return I.create(D.VALUE)}log10(){return I.create(D.VALUE)}exp(){return I.create(D.VALUE)}abs(){return I.create(D.VALUE)}round(e){return I.create(D.VALUE)}roundInverse(e){return I.create(D.VALUE)}floor(e){return I.create(D.VALUE)}floorInverse(e){return I.create(D.VALUE)}ceil(e){return I.create(D.VALUE)}ceilInverse(e){return I.create(D.VALUE)}convertToNumberObjectValue(){return I.create(D.VALUE)}convertToBooleanObjectValue(){return I.create(D.VALUE)}};U(yEe,"BaseValueObject");let o2=yEe;const oRt=1e3,wse=new zp(oRt),EEe=class REe extends o2{constructor(e,n=""){super(e),this._errorType=e,this._errorContent=n}static create(e,n=""){const r=`${e}-${n}`,i=wse.get(r);if(i)return i;const a=new REe(e,n);return wse.set(r,a),a}getValue(){return this._errorType}getErrorType(){return this._errorType}getErrorContent(){return this._errorContent}isEqualType(e){return e.getErrorType()===this.getErrorType()}isError(){return!0}};U(EEe,"ErrorValueObject");let I=EEe;function QT(t){let e;switch(t){case bn.EQUALS:e=bn.EQUALS;break;case bn.GREATER_THAN:e=bn.LESS_THAN;break;case bn.GREATER_THAN_OR_EQUAL:e=bn.LESS_THAN_OR_EQUAL;break;case bn.LESS_THAN:e=bn.GREATER_THAN;break;case bn.LESS_THAN_OR_EQUAL:e=bn.GREATER_THAN_OR_EQUAL;break;case bn.NOT_EQUAL:e=bn.NOT_EQUAL;break}return e}U(QT,"reverseCompareOperator");/*! |
|
|
* decimal.js v10.4.3 |
|
|
* An arbitrary-precision Decimal type for JavaScript. |
|
|
* https://github.com/MikeMcl/decimal.js |
|
|
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com> |
|
|
* MIT Licence |
|
|
*/var M6=9e15,s2=1e9,wz="0123456789abcdef",WD="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",zD="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Dz={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-M6,maxE:M6,crypto:!1},AEe,tf,Qr=!0,KT="[DecimalError] ",P0=KT+"Invalid argument: ",wEe=KT+"Precision limit exceeded",DEe=KT+"crypto unavailable",IEe="[object Decimal]",wl=Math.floor,fs=Math.pow,sRt=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,lRt=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,uRt=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,PEe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sd=1e7,Br=7,cRt=9007199254740991,dRt=WD.length-1,Iz=zD.length-1,nn={toStringTag:IEe};nn.absoluteValue=nn.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),Dr(t)};nn.ceil=function(){return Dr(new this.constructor(this),this.e+1,2)};nn.clampedTo=nn.clamp=function(t,e){var n,r=this,i=r.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(P0+e);return n=r.cmp(t),n<0?t:r.cmp(e)>0?e:new i(r)};nn.comparedTo=nn.cmp=function(t){var e,n,r,i,a=this,o=a.d,s=(t=new a.constructor(t)).d,l=a.s,u=t.s;if(!o||!s)return!l||!u?NaN:l!==u?l:o===s?0:!o^l<0?1:-1;if(!o[0]||!s[0])return o[0]?l:s[0]?-u:0;if(l!==u)return l;if(a.e!==t.e)return a.e>t.e^l<0?1:-1;for(r=o.length,i=s.length,e=0,n=r<i?r:i;e<n;++e)if(o[e]!==s[e])return o[e]>s[e]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1};nn.cosine=nn.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+Br,r.rounding=1,n=MEe(r,see(r,n)),r.precision=t,r.rounding=e,Dr(tf==2||tf==3?n.neg():n,t,e,!0)):new r(1):new r(NaN)};nn.cubeRoot=nn.cbrt=function(){var t,e,n,r,i,a,o,s,l,u,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(Qr=!1,a=c.s*fs(c.s*c,1/3),!a||Math.abs(a)==1/0?(n=ws(c.d),t=c.e,(a=(t-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=fs(n,1/3),t=wl((t+1)/3)-(t%3==(t<0?-1:2)),a==1/0?n="5e"+t:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+t),r=new d(n),r.s=c.s):r=new d(a.toString()),o=(t=d.precision)+3;;)if(s=r,l=s.times(s).times(s),u=l.plus(c),r=Ua(u.plus(c).times(s),u.plus(l),o+2,1),ws(s.d).slice(0,o)===(n=ws(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n=="9999"||!i&&n=="4999"){if(!i&&(Dr(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(Dr(r,t+1,1),e=!r.times(r).times(r).eq(c));break}return Qr=!0,Dr(r,t,d.rounding,e)};nn.decimalPlaces=nn.dp=function(){var t,e=this.d,n=NaN;if(e){if(t=e.length-1,n=(t-wl(this.e/Br))*Br,t=e[t],t)for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n};nn.dividedBy=nn.div=function(t){return Ua(this,new this.constructor(t))};nn.dividedToIntegerBy=nn.divToInt=function(t){var e=this,n=e.constructor;return Dr(Ua(e,new n(t),0,1,1),n.precision,n.rounding)};nn.equals=nn.eq=function(t){return this.cmp(t)===0};nn.floor=function(){return Dr(new this.constructor(this),this.e+1,3)};nn.greaterThan=nn.gt=function(t){return this.cmp(t)>0};nn.greaterThanOrEqualTo=nn.gte=function(t){var e=this.cmp(t);return e==1||e===0};nn.hyperbolicCosine=nn.cosh=function(){var t,e,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(t=Math.ceil(i/3),e=(1/AS(4,t)).toString()):(t=16,e="2.3283064365386962890625e-10"),a=up(o,1,a.times(e),new o(1),!0);for(var l,u=t,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return Dr(a,o.precision=n,o.rounding=r,!0)};nn.hyperbolicSine=nn.sinh=function(){var t,e,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(e=a.precision,n=a.rounding,a.precision=e+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=up(a,2,i,i,!0);else{t=1.4*Math.sqrt(r),t=t>16?16:t|0,i=i.times(1/AS(5,t)),i=up(a,2,i,i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);t--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=e,a.rounding=n,Dr(i,e,n,!0)};nn.hyperbolicTangent=nn.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,Ua(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)};nn.inverseCosine=nn.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,a=n.rounding;return r!==-1?r===0?e.isNeg()?o1(n,i,a):new n(0):new n(NaN):e.isZero()?o1(n,i+4,a).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=o1(n,i+4,a).times(.5),n.precision=i,n.rounding=a,t.minus(e))};nn.inverseHyperbolicCosine=nn.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Qr=!1,n=n.times(n).minus(1).sqrt().plus(n),Qr=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)};nn.inverseHyperbolicSine=nn.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Qr=!1,n=n.times(n).plus(1).sqrt().plus(n),Qr=!0,r.precision=t,r.rounding=e,n.ln())};nn.inverseHyperbolicTangent=nn.atanh=function(){var t,e,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=a.precision,e=a.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?Dr(new a(i),t,e,!0):(a.precision=n=r-i.e,i=Ua(i.plus(1),new a(1).minus(i),n+t,1),a.precision=t+4,a.rounding=1,i=i.ln(),a.precision=t,a.rounding=e,i.times(.5))):new a(NaN)};nn.inverseSine=nn.asin=function(){var t,e,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(e=i.abs().cmp(1),n=a.precision,r=a.rounding,e!==-1?e===0?(t=o1(a,n+4,r).times(.5),t.s=i.s,t):new a(NaN):(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)))};nn.inverseTangent=nn.atan=function(){var t,e,n,r,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&d+4<=Iz)return o=o1(c,d+4,h).times(.25),o.s=u.s,o}else{if(!u.s)return new c(NaN);if(d+4<=Iz)return o=o1(c,d+4,h).times(.5),o.s=u.s,o}for(c.precision=s=d+10,c.rounding=1,n=Math.min(28,s/Br+2|0),t=n;t;--t)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(Qr=!1,e=Math.ceil(s/Br),r=1,l=u.times(u),o=new c(u),i=u;t!==-1;)if(i=i.times(l),a=o.minus(i.div(r+=2)),i=i.times(l),o=a.plus(i.div(r+=2)),o.d[e]!==void 0)for(t=e;o.d[t]===a.d[t]&&t--;);return n&&(o=o.times(2<<n-1)),Qr=!0,Dr(o,c.precision=d,c.rounding=h,!0)};nn.isFinite=function(){return!!this.d};nn.isInteger=nn.isInt=function(){return!!this.d&&wl(this.e/Br)>this.d.length-2};nn.isNaN=function(){return!this.s};nn.isNegative=nn.isNeg=function(){return this.s<0};nn.isPositive=nn.isPos=function(){return this.s>0};nn.isZero=function(){return!!this.d&&this.d[0]===0};nn.lessThan=nn.lt=function(t){return this.cmp(t)<0};nn.lessThanOrEqualTo=nn.lte=function(t){return this.cmp(t)<1};nn.logarithm=nn.log=function(t){var e,n,r,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding,f=5;if(t==null)t=new c(10),e=!0;else{if(t=new c(t),n=t.d,t.s<0||!n||!n[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:u.s!=1?NaN:n?0:1/0);if(e)if(n.length>1)a=!0;else{for(i=n[0];i%10===0;)i/=10;a=i!==1}if(Qr=!1,s=d+f,o=nf(u,s),r=e?D_(c,s+10):nf(t,s),l=Ua(o,r,s,1),Z4(l.d,i=d,h))do if(s+=10,o=nf(u,s),r=e?D_(c,s+10):nf(t,s),l=Ua(o,r,s,1),!a){+ws(l.d).slice(i+1,i+15)+1==1e14&&(l=Dr(l,d+1,0));break}while(Z4(l.d,i+=10,h));return Qr=!0,Dr(l,d,h)};nn.minus=nn.sub=function(t){var e,n,r,i,a,o,s,l,u,c,d,h,f=this,m=f.constructor;if(t=new m(t),!f.d||!t.d)return!f.s||!t.s?t=new m(NaN):f.d?t.s=-t.s:t=new m(t.d||f.s!==t.s?f:NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(u=f.d,h=t.d,s=m.precision,l=m.rounding,!u[0]||!h[0]){if(h[0])t.s=-t.s;else if(u[0])t=new m(f);else return new m(l===3?-0:0);return Qr?Dr(t,s,l):t}if(n=wl(t.e/Br),c=wl(f.e/Br),u=u.slice(),a=c-n,a){for(d=a<0,d?(e=u,a=-a,o=h.length):(e=h,n=c,o=u.length),r=Math.max(Math.ceil(s/Br),o)+2,a>r&&(a=r,e.length=1),e.reverse(),r=a;r--;)e.push(0);e.reverse()}else{for(r=u.length,o=h.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(u[r]!=h[r]){d=u[r]<h[r];break}a=0}for(d&&(e=u,u=h,h=e,t.s=-t.s),o=u.length,r=h.length-o;r>0;--r)u[o++]=0;for(r=h.length;r>a;){if(u[--r]<h[r]){for(i=r;i&&u[--i]===0;)u[i]=sd-1;--u[i],u[r]+=sd}u[r]-=h[r]}for(;u[--o]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=RS(u,n),Qr?Dr(t,s,l):t):new m(l===3?-0:0)};nn.modulo=nn.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?Dr(new r(n),r.precision,r.rounding):(Qr=!1,r.modulo==9?(e=Ua(n,t.abs(),0,3,1),e.s*=t.s):e=Ua(n,t,0,r.modulo,1),e=e.times(t),Qr=!0,n.minus(e))};nn.naturalExponential=nn.exp=function(){return qD(this)};nn.naturalLogarithm=nn.ln=function(){return nf(this)};nn.negated=nn.neg=function(){var t=new this.constructor(this);return t.s=-t.s,Dr(t)};nn.plus=nn.add=function(t){var e,n,r,i,a,o,s,l,u,c,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return!d.s||!t.s?t=new h(NaN):d.d||(t=new h(t.d||d.s===t.s?d:NaN)),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(u=d.d,c=t.d,s=h.precision,l=h.rounding,!u[0]||!c[0])return c[0]||(t=new h(d)),Qr?Dr(t,s,l):t;if(a=wl(d.e/Br),r=wl(t.e/Br),u=u.slice(),i=a-r,i){for(i<0?(n=u,i=-i,o=c.length):(n=c,r=a,o=u.length),a=Math.ceil(s/Br),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=u.length,i=c.length,o-i<0&&(i=o,n=c,c=u,u=n),e=0;i;)e=(u[--i]=u[i]+c[i]+e)/sd|0,u[i]%=sd;for(e&&(u.unshift(e),++r),o=u.length;u[--o]==0;)u.pop();return t.d=u,t.e=RS(u,r),Qr?Dr(t,s,l):t};nn.precision=nn.sd=function(t){var e,n=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(P0+t);return n.d?(e=ree(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e};nn.round=function(){var t=this,e=t.constructor;return Dr(new e(t),t.e+1,e.rounding)};nn.sine=nn.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+Br,r.rounding=1,n=LEe(r,see(r,n)),r.precision=t,r.rounding=e,Dr(tf>2?n.neg():n,t,e,!0)):new r(NaN)};nn.squareRoot=nn.sqrt=function(){var t,e,n,r,i,a,o=this,s=o.d,l=o.e,u=o.s,c=o.constructor;if(u!==1||!s||!s[0])return new c(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(Qr=!1,u=Math.sqrt(+o),u==0||u==1/0?(e=ws(s),(e.length+l)%2==0&&(e+="0"),u=Math.sqrt(e),l=wl((l+1)/2)-(l<0||l%2),u==1/0?e="5e"+l:(e=u.toExponential(),e=e.slice(0,e.indexOf("e")+1)+l),r=new c(e)):r=new c(u.toString()),n=(l=c.precision)+3;;)if(a=r,r=a.plus(Ua(o,a,n+2,1)).times(.5),ws(a.d).slice(0,n)===(e=ws(r.d)).slice(0,n))if(e=e.slice(n-3,n+1),e=="9999"||!i&&e=="4999"){if(!i&&(Dr(a,l+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(Dr(r,l+1,1),t=!r.times(r).eq(o));break}return Qr=!0,Dr(r,l,c.rounding,t)};nn.tangent=nn.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,n=n.sin(),n.s=1,n=Ua(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,Dr(tf==2||tf==4?n.neg():n,t,e,!0)):new r(NaN)};nn.times=nn.mul=function(t){var e,n,r,i,a,o,s,l,u,c=this,d=c.constructor,h=c.d,f=(t=new d(t)).d;if(t.s*=c.s,!h||!h[0]||!f||!f[0])return new d(!t.s||h&&!h[0]&&!f||f&&!f[0]&&!h?NaN:!h||!f?t.s/0:t.s*0);for(n=wl(c.e/Br)+wl(t.e/Br),l=h.length,u=f.length,l<u&&(a=h,h=f,f=a,o=l,l=u,u=o),a=[],o=l+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(e=0,i=l+r;i>r;)s=a[i]+f[r]*h[i-r-1]+e,a[i--]=s%sd|0,e=s/sd|0;a[i]=(a[i]+e)%sd|0}for(;!a[--o];)a.pop();return e?++n:a.shift(),t.d=a,t.e=RS(a,n),Qr?Dr(t,d.precision,d.rounding):t};nn.toBinary=function(t,e){return ZT(this,2,t,e)};nn.toDecimalPlaces=nn.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),t===void 0?n:(jl(t,0,s2),e===void 0?e=r.rounding:jl(e,0,8),Dr(n,t+n.e+1,e))};nn.toExponential=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=vd(r,!0):(jl(t,0,s2),e===void 0?e=i.rounding:jl(e,0,8),r=Dr(new i(r),t+1,e),n=vd(r,!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n};nn.toFixed=function(t,e){var n,r,i=this,a=i.constructor;return t===void 0?n=vd(i):(jl(t,0,s2),e===void 0?e=a.rounding:jl(e,0,8),r=Dr(new a(i),t+i.e+1,e),n=vd(r,!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n};nn.toFraction=function(t){var e,n,r,i,a,o,s,l,u,c,d,h,f=this,m=f.d,g=f.constructor;if(!m)return new g(f);if(u=n=new g(1),r=l=new g(0),e=new g(r),a=e.e=ree(m)-f.e-1,o=a%Br,e.d[0]=fs(10,o<0?Br+o:o),t==null)t=a>0?e:u;else{if(s=new g(t),!s.isInt()||s.lt(u))throw Error(P0+s);t=s.gt(e)?a>0?e:u:s}for(Qr=!1,s=new g(ws(m)),c=g.precision,g.precision=a=m.length*Br*2;d=Ua(s,e,0,1,1),i=n.plus(d.times(r)),i.cmp(t)!=1;)n=r,r=i,i=u,u=l.plus(d.times(i)),l=i,i=e,e=s.minus(d.times(i)),s=i;return i=Ua(t.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=f.s,h=Ua(u,r,a,1).minus(f).abs().cmp(Ua(l,n,a,1).minus(f).abs())<1?[u,r]:[l,n],g.precision=c,Qr=!0,h};nn.toHexadecimal=nn.toHex=function(t,e){return ZT(this,16,t,e)};nn.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),t==null){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),e===void 0?e=r.rounding:jl(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Qr=!1,n=Ua(n,t,0,e,1).times(t),Qr=!0,Dr(n)):(t.s=n.s,n=t),n};nn.toNumber=function(){return+this};nn.toOctal=function(t,e){return ZT(this,8,t,e)};nn.toPower=nn.pow=function(t){var e,n,r,i,a,o,s=this,l=s.constructor,u=+(t=new l(t));if(!s.d||!t.d||!s.d[0]||!t.d[0])return new l(fs(+s,u));if(s=new l(s),s.eq(1))return s;if(r=l.precision,a=l.rounding,t.eq(1))return Dr(s,r,a);if(e=wl(t.e/Br),e>=t.d.length-1&&(n=u<0?-u:u)<=cRt)return i=iee(l,s,n,r),t.s<0?new l(1).div(i):Dr(i,r,a);if(o=s.s,o<0){if(e<t.d.length-1)return new l(NaN);if(t.d[e]&1||(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return n=fs(+s,u),e=n==0||!isFinite(n)?wl(u*(Math.log("0."+ws(s.d))/Math.LN10+s.e+1)):new l(n+"").e,e>l.maxE+1||e<l.minE-1?new l(e>0?o/0:0):(Qr=!1,l.rounding=s.s=1,n=Math.min(12,(e+"").length),i=qD(t.times(nf(s,r+n)),r),i.d&&(i=Dr(i,r+5,1),Z4(i.d,r,a)&&(e=r+10,i=Dr(qD(t.times(nf(s,e+n)),e),e+5,1),+ws(i.d).slice(r+1,r+15)+1==1e14&&(i=Dr(i,r+1,0)))),i.s=o,Qr=!0,l.rounding=a,Dr(i,r,a))};nn.toPrecision=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=vd(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(jl(t,1,s2),e===void 0?e=i.rounding:jl(e,0,8),r=Dr(new i(r),t,e),n=vd(r,t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n};nn.toSignificantDigits=nn.toSD=function(t,e){var n=this,r=n.constructor;return t===void 0?(t=r.precision,e=r.rounding):(jl(t,1,s2),e===void 0?e=r.rounding:jl(e,0,8)),Dr(new r(n),t,e)};nn.toString=function(){var t=this,e=t.constructor,n=vd(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n};nn.truncated=nn.trunc=function(){return Dr(new this.constructor(this),this.e+1,1)};nn.valueOf=nn.toJSON=function(){var t=this,e=t.constructor,n=vd(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};function ws(t){var e,n,r,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)r=t[e]+"",n=Br-r.length,n&&(a+=qh(n)),a+=r;o=t[e],r=o+"",n=Br-r.length,n&&(a+=qh(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}U(ws,"digitsToString");function jl(t,e,n){if(t!==~~t||t<e||t>n)throw Error(P0+t)}U(jl,"checkInt32");function Z4(t,e,n,r){var i,a,o,s;for(a=t[0];a>=10;a/=10)--e;return--e<0?(e+=Br,i=0):(i=Math.ceil((e+1)/Br),e%=Br),a=fs(10,Br-e),s=t[i]%a|0,r==null?e<3?(e==0?s=s/100|0:e==1&&(s=s/10|0),o=n<4&&s==99999||n>3&&s==49999||s==5e4||s==0):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(t[i+1]/a/100|0)==fs(10,e-2)-1||(s==a/2||s==0)&&(t[i+1]/a/100|0)==0:e<4?(e==0?s=s/1e3|0:e==1?s=s/100|0:e==2&&(s=s/10|0),o=(r||n<4)&&s==9999||!r&&n>3&&s==4999):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(t[i+1]/a/1e3|0)==fs(10,e-3)-1,o}U(Z4,"checkRoundingDigits");function D8(t,e,n){for(var r,i=[0],a,o=0,s=t.length;o<s;){for(a=i.length;a--;)i[a]*=e;for(i[0]+=wz.indexOf(t.charAt(o++)),r=0;r<i.length;r++)i[r]>n-1&&(i[r+1]===void 0&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}U(D8,"convertBase");function MEe(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?(n=Math.ceil(r/3),i=(1/AS(4,n)).toString()):(n=16,i="2.3283064365386962890625e-10"),t.precision+=n,e=up(t,1,e.times(i),new t(1));for(var a=n;a--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=n,e}U(MEe,"cosine");var Ua=function(){function t(r,i,a){var o,s=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+s,r[l]=o%a|0,s=o/a|0;return s&&r.unshift(s),r}U(t,"multiplyInteger");function e(r,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}U(e,"compare");function n(r,i,a,o){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*o+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return U(n,"subtract"),function(r,i,a,o,s,l){var u,c,d,h,f,m,g,p,v,_,C,S,b,y,A,w,P,M,L,k,O=r.constructor,$=r.s==i.s?1:-1,B=r.d,V=i.d;if(!B||!B[0]||!V||!V[0])return new O(!r.s||!i.s||(B?V&&B[0]==V[0]:!V)?NaN:B&&B[0]==0||!V?$*0:$/0);for(l?(f=1,c=r.e-i.e):(l=sd,f=Br,c=wl(r.e/f)-wl(i.e/f)),L=V.length,P=B.length,v=new O($),_=v.d=[],d=0;V[d]==(B[d]||0);d++);if(V[d]>(B[d]||0)&&c--,a==null?(y=a=O.precision,o=O.rounding):s?y=a+(r.e-i.e)+1:y=a,y<0)_.push(1),m=!0;else{if(y=y/f+2|0,d=0,L==1){for(h=0,V=V[0],y++;(d<P||h)&&y--;d++)A=h*l+(B[d]||0),_[d]=A/V|0,h=A%V|0;m=h||d<P}else{for(h=l/(V[0]+1)|0,h>1&&(V=t(V,h,l),B=t(B,h,l),L=V.length,P=B.length),w=L,C=B.slice(0,L),S=C.length;S<L;)C[S++]=0;k=V.slice(),k.unshift(0),M=V[0],V[1]>=l/2&&++M;do h=0,u=e(V,C,L,S),u<0?(b=C[0],L!=S&&(b=b*l+(C[1]||0)),h=b/M|0,h>1?(h>=l&&(h=l-1),g=t(V,h,l),p=g.length,S=C.length,u=e(g,C,p,S),u==1&&(h--,n(g,L<p?k:V,p,l))):(h==0&&(u=h=1),g=V.slice()),p=g.length,p<S&&g.unshift(0),n(C,g,S,l),u==-1&&(S=C.length,u=e(V,C,L,S),u<1&&(h++,n(C,L<S?k:V,S,l))),S=C.length):u===0&&(h++,C=[0]),_[d++]=h,u&&C[0]?C[S++]=B[w]||0:(C=[B[w]],S=1);while((w++<P||C[0]!==void 0)&&y--);m=C[0]!==void 0}_[0]||_.shift()}if(f==1)v.e=c,AEe=m;else{for(d=1,h=_[0];h>=10;h/=10)d++;v.e=d+c*f-1,Dr(v,s?a+v.e+1:a,o,m)}return v}}();function Dr(t,e,n,r){var i,a,o,s,l,u,c,d,h,f=t.constructor;e:if(e!=null){if(d=t.d,!d)return t;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=e-i,a<0)a+=Br,o=e,c=d[h=0],l=c/fs(10,i-o-1)%10|0;else if(h=Math.ceil((a+1)/Br),s=d.length,h>=s)if(r){for(;s++<=h;)d.push(0);c=l=0,i=1,a%=Br,o=a-Br+1}else break e;else{for(c=s=d[h],i=1;s>=10;s/=10)i++;a%=Br,o=a-Br+i,l=o<0?0:c/fs(10,i-o-1)%10|0}if(r=r||e<0||d[h+1]!==void 0||(o<0?c:c%fs(10,i-o-1)),u=n<4?(l||r)&&(n==0||n==(t.s<0?3:2)):l>5||l==5&&(n==4||r||n==6&&(a>0?o>0?c/fs(10,i-o):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,u?(e-=t.e+1,d[0]=fs(10,(Br-e%Br)%Br),t.e=-e||0):d[0]=t.e=0,t;if(a==0?(d.length=h,s=1,h--):(d.length=h+1,s=fs(10,Br-a),d[h]=o>0?(c/fs(10,i-o)%fs(10,o)|0)*s:0),u)for(;;)if(h==0){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(t.e++,d[0]==sd&&(d[0]=1));break}else{if(d[h]+=s,d[h]!=sd)break;d[h--]=0,s=1}for(a=d.length;d[--a]===0;)d.pop()}return Qr&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e<f.minE&&(t.e=0,t.d=[0])),t}U(Dr,"finalise");function vd(t,e,n){if(!t.isFinite())return oee(t);var r,i=t.e,a=ws(t.d),o=a.length;return e?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+qh(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(t.e<0?"e":"e+")+t.e):i<0?(a="0."+qh(-i-1)+a,n&&(r=n-o)>0&&(a+=qh(r))):i>=o?(a+=qh(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+qh(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=qh(r))),a}U(vd,"finiteToString");function RS(t,e){var n=t[0];for(e*=Br;n>=10;n/=10)e++;return e}U(RS,"getBase10Exponent");function D_(t,e,n){if(e>dRt)throw Qr=!0,n&&(t.precision=n),Error(wEe);return Dr(new t(WD),e,1,!0)}U(D_,"getLn10");function o1(t,e,n){if(e>Iz)throw Error(wEe);return Dr(new t(zD),e,n,!0)}U(o1,"getPi");function ree(t){var e=t.length-1,n=e*Br+1;if(e=t[e],e){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}U(ree,"getPrecision");function qh(t){for(var e="";t--;)e+="0";return e}U(qh,"getZeroString");function iee(t,e,n,r){var i,a=new t(1),o=Math.ceil(r/Br+4);for(Qr=!1;;){if(n%2&&(a=a.times(e),Mz(a.d,o)&&(i=!0)),n=wl(n/2),n===0){n=a.d.length-1,i&&a.d[n]===0&&++a.d[n];break}e=e.times(e),Mz(e.d,o)}return Qr=!0,a}U(iee,"intPow");function Pz(t){return t.d[t.d.length-1]&1}U(Pz,"isOdd");function aee(t,e,n){for(var r,i=new t(e[0]),a=0;++a<e.length;)if(r=new t(e[a]),r.s)i[n](r)&&(i=r);else{i=r;break}return i}U(aee,"maxOrMin");function qD(t,e){var n,r,i,a,o,s,l,u=0,c=0,d=0,h=t.constructor,f=h.rounding,m=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(e==null?(Qr=!1,l=m):l=e,s=new h(.03125);t.e>-2;)t=t.times(s),d+=5;for(r=Math.log(fs(2,d))/Math.LN10*2+5|0,l+=r,n=a=o=new h(1),h.precision=l;;){if(a=Dr(a.times(t),l,1),n=n.times(++c),s=o.plus(Ua(a,n,l,1)),ws(s.d).slice(0,l)===ws(o.d).slice(0,l)){for(i=d;i--;)o=Dr(o.times(o),l,1);if(e==null)if(u<3&&Z4(o.d,l-r,f,u))h.precision=l+=10,n=a=s=new h(1),c=0,u++;else return Dr(o,h.precision=m,f,Qr=!0);else return h.precision=m,o}o=s}}U(qD,"naturalExponential");function nf(t,e){var n,r,i,a,o,s,l,u,c,d,h,f=1,m=10,g=t,p=g.d,v=g.constructor,_=v.rounding,C=v.precision;if(g.s<0||!p||!p[0]||!g.e&&p[0]==1&&p.length==1)return new v(p&&!p[0]?-1/0:g.s!=1?NaN:p?0:g);if(e==null?(Qr=!1,c=C):c=e,v.precision=c+=m,n=ws(p),r=n.charAt(0),Math.abs(a=g.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(t),n=ws(g.d),r=n.charAt(0),f++;a=g.e,r>1?(g=new v("0."+n),a++):g=new v(r+"."+n.slice(1))}else return u=D_(v,c+2,C).times(a+""),g=nf(new v(r+"."+n.slice(1)),c-m).plus(u),v.precision=C,e==null?Dr(g,C,_,Qr=!0):g;for(d=g,l=o=g=Ua(g.minus(1),g.plus(1),c,1),h=Dr(g.times(g),c,1),i=3;;){if(o=Dr(o.times(h),c,1),u=l.plus(Ua(o,new v(i),c,1)),ws(u.d).slice(0,c)===ws(l.d).slice(0,c))if(l=l.times(2),a!==0&&(l=l.plus(D_(v,c+2,C).times(a+""))),l=Ua(l,new v(f),c,1),e==null)if(Z4(l.d,c-m,_,s))v.precision=c+=m,u=o=g=Ua(d.minus(1),d.plus(1),c,1),h=Dr(g.times(g),c,1),i=s=1;else return Dr(l,v.precision=C,_,Qr=!0);else return v.precision=C,l;l=u,i+=2}}U(nf,"naturalLogarithm");function oee(t){return String(t.s*t.s/0)}U(oee,"nonFiniteToString");function YD(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charCodeAt(r)===48;r++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(r,i),e){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%Br,n<0&&(r+=Br),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=Br;r<i;)t.d.push(+e.slice(r,r+=Br));e=e.slice(r),r=Br-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Qr&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}U(YD,"parseDecimal");function TEe(t,e){var n,r,i,a,o,s,l,u,c;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),PEe.test(e))return YD(t,e)}else if(e==="Infinity"||e==="NaN")return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(lRt.test(e))n=16,e=e.toLowerCase();else if(sRt.test(e))n=2;else if(uRt.test(e))n=8;else throw Error(P0+e);for(a=e.search(/p/i),a>0?(l=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),a=e.indexOf("."),o=a>=0,r=t.constructor,o&&(e=e.replace(".",""),s=e.length,a=s-a,i=iee(r,new r(n),a,a*2)),u=D8(e,n,sd),c=u.length-1,a=c;u[a]===0;--a)u.pop();return a<0?new r(t.s*0):(t.e=RS(u,c),t.d=u,Qr=!1,o&&(t=Ua(t,i,s*4)),l&&(t=t.times(Math.abs(l)<54?fs(2,l):At.pow(2,l))),Qr=!0,t)}U(TEe,"parseOther");function LEe(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:up(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:n|0,e=e.times(1/AS(5,n)),e=up(t,2,e,e);for(var i,a=new t(5),o=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(a.plus(i.times(o.times(i).minus(s))));return e}U(LEe,"sine");function up(t,e,n,r,i){var a,o,s,l,u=t.precision,c=Math.ceil(u/Br);for(Qr=!1,l=n.times(n),s=new t(r);;){if(o=Ua(s.times(l),new t(e++*e++),u,1),s=i?r.plus(o):r.minus(o),r=Ua(o.times(l),new t(e++*e++),u,1),o=s.plus(r),o.d[c]!==void 0){for(a=c;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=r,r=o,o=a}return Qr=!0,o.d.length=c+1,o}U(up,"taylorSeries");function AS(t,e){for(var n=t;--e;)n*=t;return n}U(AS,"tinyPow");function see(t,e){var n,r=e.s<0,i=o1(t,t.precision,1),a=i.times(.5);if(e=e.abs(),e.lte(a))return tf=r?4:1,e;if(n=e.divToInt(i),n.isZero())tf=r?3:2;else{if(e=e.minus(n.times(i)),e.lte(a))return tf=Pz(n)?r?2:3:r?4:1,e;tf=Pz(n)?r?1:4:r?3:2}return e.minus(i).abs()}U(see,"toLessThanHalfPi");function ZT(t,e,n,r){var i,a,o,s,l,u,c,d,h,f=t.constructor,m=n!==void 0;if(m?(jl(n,1,s2),r===void 0?r=f.rounding:jl(r,0,8)):(n=f.precision,r=f.rounding),!t.isFinite())c=oee(t);else{for(c=vd(t),o=c.indexOf("."),m?(i=2,e==16?n=n*4-3:e==8&&(n=n*3-2)):i=e,o>=0&&(c=c.replace(".",""),h=new f(1),h.e=c.length-o,h.d=D8(vd(h),10,i),h.e=h.d.length),d=D8(c,10,i),a=l=d.length;d[--l]==0;)d.pop();if(!d[0])c=m?"0p+0":"0";else{if(o<0?a--:(t=new f(t),t.d=d,t.e=a,t=Ua(t,h,n,r,0,i),d=t.d,a=t.e,u=AEe),o=d[n],s=i/2,u=u||d[n+1]!==void 0,u=r<4?(o!==void 0||u)&&(r===0||r===(t.s<0?3:2)):o>s||o===s&&(r===4||u||r===6&&d[n-1]&1||r===(t.s<0?8:7)),d.length=n,u)for(;++d[--n]>i-1;)d[n]=0,n||(++a,d.unshift(1));for(l=d.length;!d[l-1];--l);for(o=0,c="";o<l;o++)c+=wz.charAt(d[o]);if(m){if(l>1)if(e==16||e==8){for(o=e==16?4:3,--l;l%o;l++)c+="0";for(d=D8(c,i,e),l=d.length;!d[l-1];--l);for(o=1,c="1.";o<l;o++)c+=wz.charAt(d[o])}else c=c.charAt(0)+"."+c.slice(1);c=c+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)c="0"+c;c="0."+c}else if(++a>l)for(a-=l;a--;)c+="0";else a<l&&(c=c.slice(0,a)+"."+c.slice(a))}c=(e==16?"0x":e==2?"0b":e==8?"0o":"")+c}return t.s<0?"-"+c:c}U(ZT,"toStringBinary");function Mz(t,e){if(t.length>e)return t.length=e,!0}U(Mz,"truncate");function xEe(t){return new this(t).abs()}U(xEe,"abs");function OEe(t){return new this(t).acos()}U(OEe,"acos");function NEe(t){return new this(t).acosh()}U(NEe,"acosh");function kEe(t,e){return new this(t).plus(e)}U(kEe,"add");function FEe(t){return new this(t).asin()}U(FEe,"asin");function VEe(t){return new this(t).asinh()}U(VEe,"asinh");function BEe(t){return new this(t).atan()}U(BEe,"atan");function UEe(t){return new this(t).atanh()}U(UEe,"atanh");function HEe(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,a=r+4;return!t.s||!e.s?n=new this(NaN):!t.d&&!e.d?(n=o1(this,a,1).times(e.s>0?.25:.75),n.s=t.s):!e.d||t.isZero()?(n=e.s<0?o1(this,r,i):new this(0),n.s=t.s):!t.d||e.isZero()?(n=o1(this,a,1).times(.5),n.s=t.s):e.s<0?(this.precision=a,this.rounding=1,n=this.atan(Ua(t,e,a,1)),e=o1(this,a,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Ua(t,e,a,1)),n}U(HEe,"atan2");function jEe(t){return new this(t).cbrt()}U(jEe,"cbrt");function $Ee(t){return Dr(t=new this(t),t.e+1,2)}U($Ee,"ceil$1");function WEe(t,e,n){return new this(t).clamp(e,n)}U(WEe,"clamp");function zEe(t){if(!t||typeof t!="object")throw Error(KT+"Object expected");var e,n,r,i=t.defaults===!0,a=["precision",1,s2,"rounding",0,8,"toExpNeg",-M6,0,"toExpPos",0,M6,"maxE",0,M6,"minE",-M6,0,"modulo",0,9];for(e=0;e<a.length;e+=3)if(n=a[e],i&&(this[n]=Dz[n]),(r=t[n])!==void 0)if(wl(r)===r&&r>=a[e+1]&&r<=a[e+2])this[n]=r;else throw Error(P0+n+": "+r);if(n="crypto",i&&(this[n]=Dz[n]),(r=t[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(DEe);else this[n]=!1;else throw Error(P0+n+": "+r);return this}U(zEe,"config");function qEe(t){return new this(t).cos()}U(qEe,"cos");function YEe(t){return new this(t).cosh()}U(YEe,"cosh");function lee(t){var e,n,r;function i(a){var o,s,l,u=this;if(!(u instanceof i))return new i(a);if(u.constructor=i,Tz(a)){u.s=a.s,Qr?!a.d||a.e>i.maxE?(u.e=NaN,u.d=null):a.e<i.minE?(u.e=0,u.d=[0]):(u.e=a.e,u.d=a.d.slice()):(u.e=a.e,u.d=a.d?a.d.slice():a.d);return}if(l=typeof a,l==="number"){if(a===0){u.s=1/a<0?-1:1,u.e=0,u.d=[0];return}if(a<0?(a=-a,u.s=-1):u.s=1,a===~~a&&a<1e7){for(o=0,s=a;s>=10;s/=10)o++;Qr?o>i.maxE?(u.e=NaN,u.d=null):o<i.minE?(u.e=0,u.d=[0]):(u.e=o,u.d=[a]):(u.e=o,u.d=[a]);return}else if(a*0!==0){a||(u.s=NaN),u.e=NaN,u.d=null;return}return YD(u,a.toString())}else if(l!=="string")throw Error(P0+a);return(s=a.charCodeAt(0))===45?(a=a.slice(1),u.s=-1):(s===43&&(a=a.slice(1)),u.s=1),PEe.test(a)?YD(u,a):TEe(u,a)}if(U(i,"Decimal"),i.prototype=nn,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=zEe,i.clone=lee,i.isDecimal=Tz,i.abs=xEe,i.acos=OEe,i.acosh=NEe,i.add=kEe,i.asin=FEe,i.asinh=VEe,i.atan=BEe,i.atanh=UEe,i.atan2=HEe,i.cbrt=jEe,i.ceil=$Ee,i.clamp=WEe,i.cos=qEe,i.cosh=YEe,i.div=XEe,i.exp=GEe,i.floor=QEe,i.hypot=KEe,i.ln=ZEe,i.log=JEe,i.log10=tRe,i.log2=eRe,i.max=nRe,i.min=rRe,i.mod=iRe,i.mul=aRe,i.pow=oRe,i.random=sRe,i.round=lRe,i.sign=uRe,i.sin=cRe,i.sinh=dRe,i.sqrt=hRe,i.sub=fRe,i.sum=mRe,i.tan=gRe,i.tanh=pRe,i.trunc=vRe,t===void 0&&(t={}),t&&t.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<r.length;)t.hasOwnProperty(n=r[e++])||(t[n]=this[n]);return i.config(t),i}U(lee,"clone");function XEe(t,e){return new this(t).div(e)}U(XEe,"div");function GEe(t){return new this(t).exp()}U(GEe,"exp");function QEe(t){return Dr(t=new this(t),t.e+1,3)}U(QEe,"floor$1");function KEe(){var t,e,n=new this(0);for(Qr=!1,t=0;t<arguments.length;)if(e=new this(arguments[t++]),e.d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return Qr=!0,new this(1/0);n=e}return Qr=!0,n.sqrt()}U(KEe,"hypot");function Tz(t){return t instanceof At||t&&t.toStringTag===IEe||!1}U(Tz,"isDecimalInstance");function ZEe(t){return new this(t).ln()}U(ZEe,"ln");function JEe(t,e){return new this(t).log(e)}U(JEe,"log");function eRe(t){return new this(t).log(2)}U(eRe,"log2");function tRe(t){return new this(t).log(10)}U(tRe,"log10");function nRe(){return aee(this,arguments,"lt")}U(nRe,"max");function rRe(){return aee(this,arguments,"gt")}U(rRe,"min");function iRe(t,e){return new this(t).mod(e)}U(iRe,"mod$1");function aRe(t,e){return new this(t).mul(e)}U(aRe,"mul");function oRe(t,e){return new this(t).pow(e)}U(oRe,"pow$1");function sRe(t){var e,n,r,i,a=0,o=new this(1),s=[];if(t===void 0?t=this.precision:jl(t,1,s2),r=Math.ceil(t/Br),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));a<r;)i=e[a],i>=429e7?e[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(r*=4);a<r;)i=e[a]+(e[a+1]<<8)+(e[a+2]<<16)+((e[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,a):(s.push(i%1e7),a+=4);a=r/4}else throw Error(DEe);else for(;a<r;)s[a++]=Math.random()*1e7|0;for(r=s[--a],t%=Br,r&&t&&(i=fs(10,Br-t),s[a]=(r/i|0)*i);s[a]===0;a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;s[0]===0;n-=Br)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<Br&&(n-=Br-r)}return o.e=n,o.d=s,o}U(sRe,"random");function lRe(t){return Dr(t=new this(t),t.e+1,this.rounding)}U(lRe,"round$1");function uRe(t){return t=new this(t),t.d?t.d[0]?t.s:0*t.s:t.s||NaN}U(uRe,"sign");function cRe(t){return new this(t).sin()}U(cRe,"sin");function dRe(t){return new this(t).sinh()}U(dRe,"sinh");function hRe(t){return new this(t).sqrt()}U(hRe,"sqrt$1");function fRe(t,e){return new this(t).sub(e)}U(fRe,"sub");function mRe(){var t=0,e=arguments,n=new this(e[t]);for(Qr=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Qr=!0,Dr(n,this.precision,this.rounding)}U(mRe,"sum");function gRe(t){return new this(t).tan()}U(gRe,"tan");function pRe(t){return new this(t).tanh()}U(pRe,"tanh");function vRe(t){return Dr(t=new this(t),t.e+1,1)}U(vRe,"trunc");nn[Symbol.for("nodejs.util.inspect.custom")]=nn.toString;nn[Symbol.toStringTag]="Decimal";var At=nn.constructor=lee(Dz);WD=new At(WD);zD=new At(zD);function _Re(t,e){return new At(t).add(e).toNumber()}U(_Re,"plus");function CRe(t,e){return new At(t).sub(e).toNumber()}U(CRe,"minus");function qp(t,e){return new At(t).mul(e).toNumber()}U(qp,"multiply");function SRe(t,e){return new At(t).div(e).toNumber()}U(SRe,"divide");function I8(t,e){const n=10**Math.trunc(e),r=wS(t,n);return Math.round(qp(t,n)+r)/n}U(I8,"round");function ed(t,e){const n=10**Math.trunc(e),r=wS(t,n);return Math.floor(qp(t,n)+r)/n}U(ed,"floor");function Fl(t,e){const n=10**Math.trunc(e),r=wS(t,n);return Math.ceil(qp(t,n)-r)/n}U(Fl,"ceil");function wS(t,e){return Number.EPSILON*Math.max(1,Math.abs(qp(t,e)))}U(wS,"baseEpsilon");function Lz(t,e){return t-e*Math.floor(t/e)}U(Lz,"mod");function xz(t,e){return t**e}U(xz,"pow");function bRe(t){return Math.sqrt(t)}U(bRe,"sqrt");function Oz(t,e){return t===e}U(Oz,"equals");function yRe(t,e){return t>e}U(yRe,"greaterThan");function ERe(t,e){return t>=e}U(ERe,"greaterThanOrEquals");function RRe(t,e){return t<e}U(RRe,"lessThan");function ARe(t,e){return t<=e}U(ARe,"lessThanOrEquals");function Nz(t,e=15){return Number.parseFloat(t.toPrecision(e))}U(Nz,"strip");function wRe(t,e,n=Number.EPSILON){return Math.abs(t-e)<n}U(wRe,"withinErrorMargin");function JT(t,e=12,n=1e-10){const r=Nz(t,e);return wRe(t,r,n)?r:Nz(t)}U(JT,"stripErrorMargin");function DRe(t){return t-Math.trunc(t)}U(DRe,"getFractionalPart");const hRt=["$","£","¥","¤","֏","؋","৳","฿","៛","₡","₦","₩","₪","₫","€","₭","₮","₱","₲","₴","₸","₹","₺","₼","₽","₾","₿"],fRt={currency:2,date:4,datetime:5,error:11,fraction:7,general:0,grouped:11,number:1,percent:6,scientific:8,text:9,time:5,unknown:11};function IRe(t,e,n){var r,i;if(t==null||e==null)return e;const a=(n==null?void 0:n.getStyleByCell(t))||t.s,o=(n==null?void 0:n.getStyleByCell(e))||e.s;if(a==null||o==null||typeof a!="object"||typeof o!="object")return e;const s=(r=a==null?void 0:a.n)==null?void 0:r.pattern,l=(i=o==null?void 0:o.n)==null?void 0:i.pattern;if(s==null||l==null)return e;const u=s||l;return o.n.pattern=u,e}U(IRe,"handleNumfmtInCell");function kz(t){if(PRe(t))return 3;const e=Fi.getInfo(t).type||"unknown";return fRt[e]}U(kz,"getNumberFormatType");function PRe(t){return!!hRt.find(e=>t.includes(e))&&t.startsWith("_(")}U(PRe,"isAccounting");function K5(t,e,n){if(t==="")return e;if(e==="")return t;const r=kz(t),i=kz(e);return n===di.PLUS||n===di.MINUS?r===4&&i===4||r===11&&i===11?"":e:n===di.MULTIPLY||n===di.DIVIDED?r===6&&i===6||r===7&&i===7||r===8&&i===8||r===9&&i===9?e:"":t||e}U(K5,"comparePatternPriority");const Fz=class MRe extends o2{static create(){return this._instance=this._instance||new MRe(0),this._instance}isNull(){return!0}plus(e){return ee.create(0).plus(e)}minus(e){return ee.create(0).minus(e)}multiply(e){return ee.create(0).multiply(e)}divided(e){return ee.create(0).divided(e)}mod(e){return ee.create(0).mod(e)}compare(e,n){return e.isString()?Xn.create("").compare(e,n):e.isBoolean()?kn.create(!1).compare(e,n):ee.create(0).compare(e,n)}concatenateFront(e){return e.isArray()?e.concatenateBack(Xn.create("")):Xn.create(this.concatenate(e.getValue(),J1.FRONT))}concatenateBack(e){return e.isArray()?e.concatenateFront(Xn.create("")):Xn.create(this.concatenate(e.getValue(),J1.BACK))}plusBy(e){return ee.create(0).plusBy(e)}minusBy(e){return ee.create(0).minusBy(e)}multiplyBy(e){return ee.create(0).multiplyBy(e)}dividedBy(e){return ee.create(0).dividedBy(e)}compareBy(e,n){return typeof e=="string"?Xn.create("").compareBy(e,n):typeof e=="boolean"?kn.create(!1).compareBy(e,n):ee.create(0).compareBy(e,n)}pow(e){return ee.create(0).pow(e)}sqrt(){return ee.create(0).sqrt()}cbrt(){return ee.create(0).cbrt()}cos(){return ee.create(0).cos()}cosh(){return ee.create(0).cosh()}acos(){return ee.create(0).acos()}acosh(){return ee.create(0).acosh()}sin(){return ee.create(0).sin()}sinh(){return ee.create(0).sinh()}asin(){return ee.create(0).asin()}asinh(){return ee.create(0).asinh()}tan(){return ee.create(0).tan()}tanh(){return ee.create(0).tanh()}atan(){return ee.create(0).atan()}atan2(e){return ee.create(0).atan2(e)}atanh(){return ee.create(0).atanh()}log(){return I.create(D.NUM)}log10(){return I.create(D.NUM)}exp(){return ee.create(0).exp()}abs(){return ee.create(0).abs()}round(e){return ee.create(0).round(e)}floor(e){return ee.create(0).floor(e)}ceil(e){return ee.create(0).ceil(e)}convertToNumberObjectValue(){return ee.create(0)}convertToBooleanObjectValue(){return kn.create(!1)}};U(Fz,"NullValueObject"),x(Fz,"_instance");let ii=Fz;const dR=class hR extends o2{constructor(e){super(e),x(this,"_value",!1),this._value=e}static create(e){return e?(this._instanceTrue=this._instanceTrue||new hR(!0),this._instanceTrue):(this._instanceFalse=this._instanceFalse||new hR(!1),this._instanceFalse)}getValue(){return this._value}isBoolean(){return!0}getNegative(){const e=this.getValue();let n=0;return e&&(n=1),ee.create(-n)}getReciprocal(){return this.getValue()?ee.create(1):I.create(D.DIV_BY_ZERO)}plus(e){return this._convertToNumber().plus(e)}minus(e){return this._convertToNumber().minus(e)}multiply(e){return this._convertToNumber().multiply(e)}divided(e){return this._convertToNumber().divided(e)}mod(e){return this._convertToNumber().mod(e)}compare(e,n){return e.isArray()?e.compare(this,QT(n)):e.isNull()?this._convertToNumber().compare(e,n):this.compareBy(e.getValue(),n)}compareBy(e,n){let r=!1;if(typeof e=="string"||typeof e=="number")r=this._compareString(n);else if(typeof e=="boolean"){const i=ee.create(e?1:0);return this._convertToNumber().compare(i,n)}return hR.create(r)}_compareString(e){switch(e){case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:return!0;case bn.EQUALS:case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:case bn.NOT_EQUAL:return!1}}concatenateFront(e){return this._convertToNumber().concatenateFront(e)}concatenateBack(e){return this._convertToNumber().concatenateBack(e)}_convertToNumber(){const e=this.getValue();let n=0;return e&&(n=1),ee.create(n)}pow(e){return this._convertToNumber().pow(e)}sqrt(){return this._convertToNumber().sqrt()}cbrt(){return this._convertToNumber().cbrt()}cos(){return this._convertToNumber().cos()}cosh(){return this._convertToNumber().cosh()}acos(){return this._convertToNumber().acos()}acosh(){return this._convertToNumber().acosh()}sin(){return this._convertToNumber().sin()}sinh(){return this._convertToNumber().sinh()}asin(){return this._convertToNumber().asin()}asinh(){return this._convertToNumber().asinh()}tan(){return this._convertToNumber().tan()}tanh(){return this._convertToNumber().tanh()}atan(){return this._convertToNumber().atan()}atan2(e){return this._convertToNumber().atan2(e)}atanh(){return this._convertToNumber().atanh()}log(){return this._convertToNumber().log()}log10(){return this._convertToNumber().log10()}exp(){return this._convertToNumber().exp()}abs(){return this._convertToNumber().abs()}round(e){return this._convertToNumber().round(e)}floor(e){return this._convertToNumber().floor(e)}ceil(e){return this._convertToNumber().ceil(e)}convertToNumberObjectValue(){return IS(this.getValue())}convertToBooleanObjectValue(){return this}};U(dR,"BooleanValueObject"),x(dR,"_instanceTrue"),x(dR,"_instanceFalse");let kn=dR;const mRt=2e5,Dse=new zp(mRt),TRe=class ci extends o2{constructor(e){super(e),x(this,"_value",0),this._value=Number(e)}static create(e,n=""){const r=`${e}-${n}`,i=Dse.get(r);if(i)return i;const a=new ci(e);return n&&a.setPattern(n),Dse.set(r,a),a}getValue(){return this._value}setValue(e){this._value=e}isNumber(){return!0}getNegative(){return ci.create(0).minus(this)}getReciprocal(){return ci.create(1).divided(this)}plus(e){if(e.isArray())return e.plus(this);let n=this.plusBy(e.getValue());if(n.isError())return n;const r=K5(this.getPattern(),e.getPattern(),di.PLUS);return n=ci.create(Number(n.getValue()),r),n}equalZero(){return this._value===0}minus(e){if(e.isArray()){const i=e.getNegative();return i.isError()?i:i.plus(this)}let n=this.minusBy(e.getValue());if(n.isError())return n;const r=K5(this.getPattern(),e.getPattern(),di.MINUS);return n=ci.create(Number(n.getValue()),r),n}multiply(e){if(e.isArray())return e.multiply(this);let n=this.multiplyBy(e.getValue());if(n.isError())return n;const r=K5(this.getPattern(),e.getPattern(),di.MULTIPLY);return n=ci.create(Number(n.getValue()),r),n}divided(e){if(e.isArray()){const i=e.getReciprocal();return i.isError()?i:i.multiply(this)}let n=this.dividedBy(e.getValue());if(n.isError())return n;const r=K5(this.getPattern(),e.getPattern(),di.DIVIDED);return n=ci.create(Number(n.getValue()),r),n}mod(e){if(e.isArray())return e.modInverse(this);const n=this.getValue(),r=e.getValue();if(e.isNull())return I.create(D.DIV_BY_ZERO);if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(r===0)return I.create(D.DIV_BY_ZERO);if(!Number.isFinite(n)||!Number.isFinite(r)||Math.abs(r)*11259e8<=Math.abs(n))return I.create(D.NUM);const i=Lz(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}if(typeof r=="boolean"){const i=r?1:0;return i===0?I.create(D.DIV_BY_ZERO):ci.create(Lz(n,i))}return this}concatenateFront(e){return e.isArray()?e.concatenateBack(this):Xn.create(this.concatenate(e.getValue(),J1.FRONT))}concatenateBack(e){return e.isArray()?e.concatenateFront(this):Xn.create(this.concatenate(e.getValue(),J1.BACK))}compare(e,n){return e.isArray()?e.compare(this,QT(n)):this.compareBy(e.getValue(),n)}plusBy(e){const n=+this.getValue(),r=+e;if(Number.isNaN(n)||Number.isNaN(r))return I.create(D.VALUE);if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=_Re(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}minusBy(e){const n=+this.getValue(),r=+e;if(Number.isNaN(n)||Number.isNaN(r))return I.create(D.VALUE);if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=CRe(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}multiplyBy(e){const n=+this.getValue(),r=+e;if(Number.isNaN(n)||Number.isNaN(r))return I.create(D.VALUE);if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=qp(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}dividedBy(e){const n=+this.getValue(),r=+e;if(Number.isNaN(n)||Number.isNaN(r))return I.create(D.VALUE);if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);if(r===0)return I.create(D.DIV_BY_ZERO);const i=SRe(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}compareBy(e,n){const r=this.getValue();let i=!1;return typeof e=="string"?i=this._compareString(n):typeof e=="number"?i=this._compareNumber(r,e,n):typeof e=="boolean"&&(i=this._compareBoolean(n)),kn.create(i)}_compareString(e){switch(e){case bn.EQUALS:case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:return!1;case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:case bn.NOT_EQUAL:return!0}}_compareNumber(e,n,r){return!Number.isFinite(e)||!Number.isFinite(n)?this._compareInfinity(e,n,r):this._compareFiniteNumber(e,n,r)}_compareFiniteNumber(e,n,r){switch(r){case bn.EQUALS:return Oz(e,n);case bn.GREATER_THAN:return yRe(e,n);case bn.GREATER_THAN_OR_EQUAL:return ERe(e,n);case bn.LESS_THAN:return RRe(e,n);case bn.LESS_THAN_OR_EQUAL:return ARe(e,n);case bn.NOT_EQUAL:return!Oz(e,n)}}_compareBoolean(e){switch(e){case bn.EQUALS:case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:return!1;case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:case bn.NOT_EQUAL:return!0}}pow(e){if(e.isArray())return e.powInverse(this);const n=this.getValue(),r=e.getValue();if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=xz(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}return typeof r=="boolean"?ci.create(xz(n,r?1:0)):this}sqrt(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=bRe(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}cbrt(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.cbrt(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}cos(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.cos(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}cosh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.cosh(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}acos(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.acos(e);return Number.isNaN(n)?I.create(D.NUM):ci.create(n)}acosh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.acosh(e);return Number.isNaN(n)?I.create(D.NUM):ci.create(n)}sin(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.sin(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}sinh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.sinh(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}asin(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.asin(e);return Number.isNaN(n)?I.create(D.NUM):ci.create(n)}asinh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.asinh(e);return Number.isNaN(n)?I.create(D.NUM):ci.create(n)}tan(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.tan(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}tanh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.tanh(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}atan(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.atan(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}atan2(e){if(e.isArray())return e.atan2Inverse(this);const n=this.getValue(),r=e.getValue();if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);if(n===0&&r===0)return I.create(D.DIV_BY_ZERO);const i=Math.atan2(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}return typeof r=="boolean"?ci.create(Math.atan2(n,r?1:0)):this}atanh(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.atanh(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}log(){const e=this.getValue();if(typeof e=="number"&&e<=0||!Number.isFinite(e))return I.create(D.NUM);const n=Math.log(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}log10(){const e=this.getValue();if(typeof e=="number"&&e<=0||!Number.isFinite(e))return I.create(D.NUM);const n=Math.log10(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}exp(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.exp(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}abs(){const e=this.getValue();if(!Number.isFinite(e))return I.create(D.NUM);const n=Math.abs(e);return Number.isFinite(n)?ci.create(n):I.create(D.NUM)}round(e){if(e.isArray())return e.roundInverse(this);const n=this.getValue(),r=e.getValue();if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=n<0?-I8(Math.abs(n),r):I8(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}return typeof r=="boolean"?ci.create(I8(n,r?1:0)):this}floor(e){if(e.isArray())return e.floorInverse(this);const n=this.getValue(),r=e.getValue();if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=n<0?-ed(Math.abs(n),r):ed(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}return typeof r=="boolean"?ci.create(ed(n,r?1:0)):this}ceil(e){if(e.isArray())return e.ceilInverse(this);const n=this.getValue(),r=e.getValue();if(typeof r=="string")return I.create(D.VALUE);if(typeof r=="number"){if(!Number.isFinite(n)||!Number.isFinite(r))return I.create(D.NUM);const i=n<0?-Fl(Math.abs(n),r):Fl(n,r);return Number.isFinite(i)?ci.create(i):I.create(D.NUM)}return typeof r=="boolean"?ci.create(Fl(n,r?1:0)):this}convertToNumberObjectValue(){return this}convertToBooleanObjectValue(){return DS(!0)}_compareInfinity(e,n,r){let i=!1;switch(r){case bn.EQUALS:i=e===n;break;case bn.GREATER_THAN:i=e>n;break;case bn.GREATER_THAN_OR_EQUAL:i=e>=n;break;case bn.LESS_THAN:i=e<n;break;case bn.LESS_THAN_OR_EQUAL:i=e<=n;break;case bn.NOT_EQUAL:i=e!==n;break}return i}};U(TRe,"NumberValueObject");let ee=TRe;const gRt=2e5,Ise=new zp(gRt),LRe=class fR extends o2{constructor(e){super(e),x(this,"_value"),this._value=e}static create(e){const n=Ise.get(e);if(n)return n;const r=new fR(e);return Ise.set(e,r),r}getValue(){return this._value}isString(){return!0}concatenateFront(e){return e.isArray()?e.concatenateBack(this):fR.create(this.concatenate(e.getValue(),J1.FRONT))}concatenateBack(e){return e.isArray()?e.concatenateFront(this):fR.create(this.concatenate(e.getValue(),J1.BACK))}plus(e){return this.convertToNumberObjectValue().plus(e)}minus(e){return this.convertToNumberObjectValue().minus(e)}multiply(e){return this.convertToNumberObjectValue().multiply(e)}divided(e){return this.convertToNumberObjectValue().divided(e)}compare(e,n,r){return e.isArray()?e.compare(this,QT(n),r):this.compareBy(e.getValue(),n,r)}compareBy(e,n,r=!1){let i=this.getValue(),a=!1;if(typeof e=="string"){let o=e;if(r||(i=i.toLocaleLowerCase(),o=o.toLocaleLowerCase()),CEe(o))return this._checkWildcard(o,n);a=this._compareString(i,o,n)}else typeof e=="number"?a=this._compareNumber(n):typeof e=="boolean"&&(a=this._compareBoolean(n));return kn.create(a)}_compareString(e,n,r){switch(r){case bn.EQUALS:return e===n;case bn.GREATER_THAN:return e>n;case bn.GREATER_THAN_OR_EQUAL:return e>=n;case bn.LESS_THAN:return e<n;case bn.LESS_THAN_OR_EQUAL:return e<=n;case bn.NOT_EQUAL:return e!==n}}_compareNumber(e){switch(e){case bn.NOT_EQUAL:case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:return!0;case bn.EQUALS:case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:return!1}}_compareBoolean(e){switch(e){case bn.EQUALS:case bn.GREATER_THAN:case bn.GREATER_THAN_OR_EQUAL:return!1;case bn.LESS_THAN:case bn.LESS_THAN_OR_EQUAL:case bn.NOT_EQUAL:return!0}}convertToNumberObjectValue(){return IS(this.getValue())}convertToBooleanObjectValue(){return kn.create(!0)}_checkWildcard(e,n){const r=this.getValue().toLocaleLowerCase(),i=SEe(r,e,n);return kn.create(i)}};U(LRe,"StringValueObject");let Xn=LRe;function DS(t){if(typeof t=="boolean")return kn.create(t);let e=!1;if(typeof t=="string"){const n=t.toLocaleUpperCase();n===lp.TRUE?e=!0:n===lp.FALSE&&(e=!1)}else t===1?e=!0:e=!1;return kn.create(e)}U(DS,"createBooleanValueObjectByRawValue");function xRe(t){let e=t.toString();return e.charAt(0)==='"'&&e.charAt(e.length-1)==='"'&&(e=e.slice(1,-1),e=e.replace(/""/g,'"')),Xn.create(e)}U(xRe,"createStringValueObjectByRawValue");function IS(t,e=""){if(typeof t=="boolean"){let n=0;return t&&(n=1),ee.create(n,e)}else{if(typeof t=="number")return Number.isFinite(t)?ee.create(t,e):I.create(D.NUM);if(Kr(t))return ee.create(Number(t),e)}return I.create(D.VALUE)}U(IS,"createNumberValueObjectByRawValue");function ORe(t){return""}U(ORe,"fromObjectToString");function uee(t=[]){const e=[];for(let n=0;n<t.length;n++){const r=t[n];e[n]==null&&(e[n]=[]);for(let i=0;i<r.length;i++){const a=r[i];e[n][i]=cp.create(a)}}return e}U(uee,"transformToValueObject");function NRe(t=[]){const e=[];for(let n=0;n<t.length;n++){const r=t[n];e[n]==null&&(e[n]=[]);for(let i=0;i<r.length;i++){const a=r[i];a==null?e[n][i]=null:a.isError()?e[n][i]=a.getErrorType():e[n][i]=a.getValue()}}return e}U(NRe,"transformToValue");const kRe=class lg extends o2{constructor(e){super(typeof e=="string"?e:ORe()),x(this,"_values",[]),x(this,"_rowCount",-1),x(this,"_columnCount",-1),x(this,"_unitId",""),x(this,"_sheetId",""),x(this,"_currentRow",-1),x(this,"_currentColumn",-1),x(this,"_sliceCache",new Map),x(this,"_flattenCache"),x(this,"_defaultValue",null),x(this,"_flattenPosition"),this._values=this._formatValue(e)}static create(e){return new lg(e)}static createByArray(e){const n={calculateValueList:uee(e),rowCount:e.length,columnCount:e[0].length||0,unitId:"",sheetId:"",row:-1,column:-1};return new lg(n)}dispose(){this._values.forEach(e=>{e.forEach(n=>{n==null||n.dispose()})}),this._values=[],this._clearCache()}clone(){return this.map(e=>e)}getRowCount(){return this._rowCount}setRowCount(e){this._rowCount=e}getColumnCount(){return this._columnCount}setColumnCount(e){this._columnCount=e}setCurrent(e,n){this._currentRow=e,this._currentColumn=n}setUnitId(e){this._unitId=e}getUnitId(){return this._unitId}setSheetId(e){this._sheetId=e}getSheetId(){return this._sheetId}getCurrentRow(){return this._currentRow}getCurrentColumn(){return this._currentColumn}getArrayValue(){return this._values}setArrayValue(e){this._clearCache(),this._values=e}isArray(){return!0}setDefaultValue(e){this._defaultValue=e}get(e,n){var r;return((r=this._values[e])==null?void 0:r[n])||this._defaultValue}getRealValue(e,n){const r=this._values[e];if(r==null)return null;const i=r[n];return i??null}getValueOrDefault(e,n){return this.get(e,n)||this._defaultValue}set(e,n,r){if(e>=this._rowCount||n>=this._columnCount)throw new Error("Exceeding array bounds.");this._clearCache(),this._values[e][n]=r}getRangePosition(){const e=this.getRowCount(),n=0,r=this.getColumnCount();return{startRow:0,endRow:e-1,startColumn:n,endColumn:r-1}}iterator(e){var n;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this.getRangePosition(),s=this.getArrayValue();for(let l=r;l<=i;l++)for(let u=a;u<=o;u++)if(e(((n=s[l])==null?void 0:n[u])||this._defaultValue,l,u)===!1)return}iteratorReverse(e){var n;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this.getRangePosition(),s=this.getArrayValue();for(let l=i;l>=r;l--)for(let u=o;u>=a;u--)if(e(((n=s[l])==null?void 0:n[u])||this._defaultValue,l,u)===!1)return}getLastTruePosition(){let e;return this.iteratorReverse((n,r,i)=>{if(n!=null&&n.isBoolean()&&n.getValue()===!0)return e={row:r,column:i},!1}),e}getFirstTruePosition(){let e;return this.iterator((n,r,i)=>{if(n!=null&&n.isBoolean()&&n.getValue()===!0)return e={row:r,column:i},!1}),e}getFirstCell(){const{startRow:e,startColumn:n}=this.getRangePosition();return this.get(e,n)||this._defaultValue||ii.create()}getLastCell(){const{endRow:e,endColumn:n}=this.getRangePosition();return this.get(e,n)||this._defaultValue||ii.create()}pick(e){const n=this.pickRaw(e);return this._createNewArray(n,1,n[0].length)}pickRaw(e){const n=e.getRowCount(),r=e.getColumnCount();if(n!==this._rowCount||r!==this._columnCount)return[[ii.create()]];const i=[];i[0]=[];for(let a=0;a<n;a++)for(let o=0;o<r;o++){const s=e.get(a,o);if(!(s==null||s.isError())&&s.getValue()===!0){const l=this.get(a,o);i[0].push(l)}}return i}flatten(){if(this._flattenCache!=null)return this._flattenCache;const e=[];e[0]=[];for(let r=0;r<this._rowCount;r++)for(let i=0;i<this._columnCount;i++){const a=this.get(r,i);e[0].push(a)}const n=this._createNewArray(e,1,e[0].length);return n.setDefaultValue(this._defaultValue),this._flattenCache=n,n}flattenPosition(){if(this._flattenPosition!=null)return this._flattenPosition;const e=[],n=[],r=[],i=[];let a=0;for(let s=0;s<this._rowCount;s++)for(let l=0;l<this._columnCount;l++){const u=this.get(s,l);if(u==null||u.isError()||u.isNull()){a++;continue}u.isString()?(e.push(u),r.push(a++)):(n.push(u),i.push(a++))}const o={stringArray:e,numberArray:n,stringPosition:r,numberPosition:i};return this._flattenPosition=o,o}slice(e,n){let r=0,i=this._rowCount,a=1,o=0,s=this._columnCount,l=1;if(e!=null&&(r=e[0]||0,i=e[1]||this._rowCount,a=e[2]||1),n!=null&&(o=n[0]||0,s=n[1]||this._columnCount,l=n[2]||1),r>=this._rowCount||o>=this._columnCount)return;const u=`${r}_${i}_${a}_${o}_${s}_${l}`,c=this._sliceCache.get(u);if(c!=null)return c;const d=[],h=this._values;let f=0,m=0;for(let _=r;_<i;_+=a){m=0,d[f]==null&&(d[f]=[]);for(let C=o;C<s;C+=l){if(!h[_])return;let S=h[_][C]||this._defaultValue;S==null&&(S=ii.create()),d[f][m]=S,m++}f++}if(d.length===0||d[0].length===0)return;const g=a>1?-1:r+this._currentRow,p=l>1?-1:o+this._currentColumn,v=this._createNewArray(d,d.length,d[0].length,g,p);return v.setDefaultValue(this._defaultValue),this._sliceCache.set(u,v),v}sortByRow(e){const n=this._transposeArray(this._values);n.sort(this._sort(e)),this._clearCache(),this._values=this._transposeArray(n)}sortByColumn(e){this._clearCache(),this._values.sort(this._sort(e))}transpose(){const e=this._transposeArray(this._values),n=this._rowCount,r=this._columnCount,i=this._createNewArray(e,r,n);return i.setDefaultValue(this._defaultValue),i}orderSearch(e,n=qo.MIN,r=!1,i=!1){let a,o,s,l;const u=U((c,d,h)=>{if(c==null)return!0;let f;if(i===!0?f=c.compare(e,bn.EQUALS):f=c.isEqual(e),(f==null?void 0:f.getValue())===!0)return a=c,s={row:d,column:h},!1;n===qo.MAX?c.isGreaterThan(e).getValue()===!0&&(o==null||c.minus(e).abs().isLessThanOrEqual(o.minus(e).abs()).getValue()===!0)&&(o=c,l={row:d,column:h}):n===qo.MIN&&c.isLessThan(e).getValue()===!0&&(o==null||c.minus(e).abs().isLessThanOrEqual(o.minus(e).abs()).getValue()===!0)&&(o=c,l={row:d,column:h})},"_handleMatch");if(r?this.iteratorReverse((c,d,h)=>u(c,d,h)):this.iterator((c,d,h)=>u(c,d,h)),a!=null)return s;if(o!=null)return l}binarySearch(e,n=sg.MIN,r=qo.MIN){if(e.isError())return;const{stringArray:i,stringPosition:a,numberArray:o,numberPosition:s}=this.flattenPosition();return e.isString()?this._binarySearch(e,i,a,n,r):this._binarySearch(e,o,s,n,r)}_binarySearch(e,n,r,i=sg.MIN,a=qo.MIN){const o=w_(),s=Number(e.getValue()),l=!Number.isNaN(s);let u=0,c=n.length-1,d=-1,h=-1,f=-1;for(;u<=c;){const m=Math.floor((u+c)/2),g=n[m];let p;if(g.isNull())p=i===sg.MIN?1:-1;else{const v=g.getValue();if(l){const _=Number(v);p=Number.isNaN(_)?1:Math.sign(_-s)}else p=o(v.toString().toLocaleLowerCase(),e.getValue().toString().toLocaleLowerCase())}if(i===sg.MAX&&(p=-p),p===0){d=m;break}p<0?(h=m,u=m+1):(f=m,c=m-1)}if(a===qo.NORMAL)return d!==-1?r[d]:void 0;if(a===qo.MIN)return d!==-1?r[d]:i===sg.MIN?r[h]:r[f];if(a===qo.MAX)return d!==-1?r[d]:i===sg.MIN?r[f]:r[h]}sum(){let e=ee.create(0);return this.iterator(n=>{if(n==null||n.isString()||n.isBoolean()||n.isNull())return!0;if(n.isError())return e=n,!1;e=e.plus(n)}),e}max(){let e=ee.create(Number.NEGATIVE_INFINITY);return this.iterator(n=>{if(n==null)return!0;if(n.isError())return e=n,!1;if(n.isString()||n.isNull()||n.isBoolean())return!0;e.isLessThan(n).getValue()&&(e=n)}),e}min(){let e=ee.create(Number.POSITIVE_INFINITY);return this.iterator(n=>{if(n==null)return!0;if(n.isError())return e=n,!1;if(n.isString()||n.isNull()||n.isBoolean())return!0;e.isGreaterThan(n).getValue()&&(e=n)}),e}count(){let e=ee.create(0);return this.iterator(n=>{if(n==null||n.isError()||n.isString()||n.isNull()||n.isBoolean())return!0;e=e.plusBy(1)}),e}countA(){let e=ee.create(0);return this.iterator(n=>{if(n==null||n.isNull())return!0;e=e.plusBy(1)}),e}countBlank(){let e=ee.create(0);return this.iterator(n=>{(n==null||n.isNull()||n.getValue()==="")&&(e=e.plusBy(1))}),e}getNegative(){return lg.create("{0}").minus(this)}getReciprocal(){return lg.create("{1}").divided(this)}plus(e){return this._batchOperator(e,1)}minus(e){return this._batchOperator(e,0)}multiply(e){return this._batchOperator(e,2)}divided(e){return this._batchOperator(e,3)}mod(e){return this._batchOperator(e,4)}modInverse(e){return this.map(n=>n.isError()?n:e.mod(n))}compare(e,n,r){return this._batchOperator(e,5,n,r)}concatenateFront(e){return this._batchOperator(e,6)}concatenateBack(e){return this._batchOperator(e,7)}map(e){const n=U((r,i,a)=>r==null?ii.create():r.isError()?r:e(r,i,a),"wrappedCallbackFn");return this.mapValue(n)}mapValue(e){var n;const r=this._rowCount,i=this._columnCount,a=[];for(let o=0;o<r;o++){const s=[];for(let l=0;l<i;l++){const u=(n=this._values)==null?void 0:n[o];if(u==null)s[l]=I.create(D.VALUE);else{const c=u[l]||this._defaultValue;c?s[l]=e(c,o,l):s[l]=ii.create()}}a.push(s)}return this._createNewArray(a,r,i)}pow(e){return this._batchOperator(e,8)}powInverse(e){return this.map(n=>n.isError()?n:e.pow(n))}sqrt(){return this.map(e=>e.isError()?e:e.sqrt())}cbrt(){return this.map(e=>e.isError()?e:e.cbrt())}cos(){return this.map(e=>e.isError()?e:e.cos())}cosh(){return this.map(e=>e.isError()?e:e.cosh())}acos(){return this.map(e=>e.isError()?e:e.acos())}acosh(){return this.map(e=>e.isError()?e:e.acosh())}sin(){return this.map(e=>e.isError()?e:e.sin())}sinh(){return this.map(e=>e.isError()?e:e.sinh())}asin(){return this.map(e=>e.isError()?e:e.asin())}asinh(){return this.map(e=>e.isError()?e:e.asinh())}tan(){return this.map(e=>e.isError()?e:e.tan())}tanh(){return this.map(e=>e.isError()?e:e.tanh())}atan(){return this.map(e=>e.isError()?e:e.atan())}atanh(){return this.map(e=>e.isError()?e:e.atanh())}atan2(e){return this._batchOperator(e,12)}atan2Inverse(e){return this.map(n=>n.isError()?n:e.atan2(n))}mean(e=0){const n=this.sum(),r=this.count();return n.divided(e===0?r:r.minusBy(1))}median(){const e=this.flattenPosition().numberArray,n=this._createNewArray([e],1,e.length),r=n.getColumnCount();if(r<=1)return n.get(0,0)||ii.create();if(n.sortByRow(0),r%2===0){const i=n.get(0,r/2)||ii.create(),a=n.get(0,r/2-1)||ii.create();return i.plus(a).divided(ee.create(2))}return n.get(0,(r-1)/2)||ii.create()}var(e=0){const n=this.mean(),r=[[]];this.iterator(l=>{if(l==null||l.isError()||l.isString()||l.isBoolean()||l.isNull())return;const u=l.minus(n).pow(ee.create(2));u.isError()||r[0].push(u)});const{_unitId:i,_sheetId:a,_currentRow:o,_currentColumn:s}=this;return lg.create({calculateValueList:r,rowCount:1,columnCount:r[0].length,unitId:i,sheetId:a,row:o,column:s}).mean(e)}std(e=0){const n=this.var(e);return n.isError()?n:n.sqrt()}log(){return this.map(e=>e.isError()?e:e.log())}log10(){return this.map(e=>e.isError()?e:e.log10())}exp(){return this.map(e=>e.isError()?e:e.exp())}abs(){return this.map(e=>e.isError()?e:e.abs())}round(e){return this._batchOperator(e,9)}roundInverse(e){return this.map(n=>n.isError()?n:e.round(n))}floor(e){return this._batchOperator(e,10)}floorInverse(e){return this.map(n=>n.isError()?n:e.floor(n))}ceil(e){return this._batchOperator(e,11)}ceilInverse(e){return this.map(n=>n.isError()?n:e.ceil(n))}toValue(){return NRe(this._values)}_clearCache(){this._flattenCache=null,this._sliceCache.clear()}_sort(e){const n=w_();return(r,i)=>{const a=r[e],o=i[e];return a==null?1:o==null?-1:a.isError()&&a.isError()?0:a.isError()?1:o.isError()?-1:n(a.getValue(),o.getValue())}}_transposeArray(e){const n=e.length,r=e[0].length,i=[];for(let a=0;a<r;a++){i[a]=[];for(let o=0;o<n;o++)i[a][o]=e[o][a]}return i}_batchOperator(e,n,r,i){const a=[];let o=this._rowCount,s=this._columnCount;if(e.isArray()){const c=e.getRowCount(),d=e.getColumnCount();if(o=Math.max(c,o),s=Math.max(d,s),c===1&&d===1){const h=e.getFirstCell();for(let f=0;f<s;f++)a.push(h)}else if(c===1&&this._columnCount>1){const h=e.getArrayValue();for(let f=0;f<s;f++)a.push(h[0][f])}else return this._batchOperatorArray(e,n,r,i)}else for(let c=0;c<s;c++)a.push(e);const l=[];for(let c=0;c<s;c++){const d=a[c];this._batchOperatorValue(d,c,l,n,r,i)}const u=this._createNewArray(l,o,s);return u.setDefaultValue(kn.create(!1)),u}_batchOperatorValue(e,n,r,i,a,o){const s=this._rowCount;let l=!1;const u=this.getUnitId(),c=this.getSheetId(),d=this.getCurrentRow(),h=this.getCurrentColumn();if(i===5&&(l=og.canUseCache(u,c,n+h,d,d+s-1),l===!0)){if(a===bn.EQUALS){const f=og.getCellPositions(u,c,n+h,e.getValue());f!=null&&f.forEach(m=>{const g=m-d;r[g]==null&&(r[g]=[]),r[g][n]=kn.create(!0)})}else{const f=og.getCellValuePositions(u,c,n+h);f!=null&&f.forEach((m,g)=>{let p=ii.create();typeof g=="string"?p=Xn.create(g):typeof g=="number"?p=ee.create(g):typeof g=="boolean"&&(p=kn.create(g)),p.compare(e,a,o).getValue()===!0&&m.forEach(v=>{v>=d&&v<=d+s-1&&(r[v-d]==null&&(r[v-d]=[]),r[v-d][n]=kn.create(!0))})})}return}for(let f=0;f<s;f++){const m=this.getValueOrDefault(f,n);if(r[f]==null&&(r[f]=[]),m&&e)if(m.isError())r[f][n]=m;else if(e.isError())r[f][n]=e;else switch(i){case 1:r[f][n]=m.plus(e);break;case 0:r[f][n]=m.minus(e);break;case 2:r[f][n]=m.multiply(e);break;case 3:r[f][n]=m.divided(e);break;case 4:r[f][n]=m.mod(e);break;case 5:a?r[f][n]=m.compare(e,a,o):r[f][n]=I.create(D.VALUE);break;case 6:r[f][n]=m.concatenateFront(e);break;case 7:r[f][n]=m.concatenateBack(e);break;case 8:r[f][n]=m.pow(e);break;case 9:r[f][n]=m.round(e);break;case 10:r[f][n]=m.floor(e);break;case 12:r[f][n]=m.atan2(e);break;case 11:r[f][n]=m.ceil(e);break}else r[f][n]=I.create(D.NA);m!=null&&(m.isError()?og.set(u,c,n+h,m.getErrorType(),f+d):og.set(u,c,n+h,m.getValue(),f+d))}og.setContinueBuildingCache(u,c,n+h,d,d+s-1)}_batchOperatorArray(e,n,r,i){let a=e.getRowCount(),o=e.getColumnCount();a<this._rowCount&&(a=this._rowCount),o<this._columnCount&&(o=this._columnCount);const s=[],l=this._checkArrayCalculateType(this),u=this._checkArrayCalculateType(e);for(let c=0;c<a;c++){const d=[];for(let h=0;h<o;h++){let f;l===3?f=this.getValueOrDefault(0,0):l===1?f=this.getValueOrDefault(0,h):l===2?f=this.getValueOrDefault(c,0):f=this.getValueOrDefault(c,h);let m;if(u===3?m=e.getValueOrDefault(0,0):u===1?m=e.getValueOrDefault(0,h):u===2?m=e.getValueOrDefault(c,0):m=e.getValueOrDefault(c,h),f&&m)if(f.isError())d[h]=f;else if(m.isError())d[h]=m;else switch(n){case 1:d[h]=f.plus(m);break;case 0:d[h]=f.minus(m);break;case 2:d[h]=f.multiply(m);break;case 3:d[h]=f.divided(m);break;case 4:d[h]=f.mod(m);break;case 5:r?d[h]=f.compare(m,r,i):d[h]=I.create(D.VALUE);break;case 6:d[h]=f.concatenateFront(m);break;case 7:d[h]=f.concatenateBack(m);break;case 8:d[h]=f.pow(m);break;case 9:d[h]=f.round(m);break;case 12:d[h]=f.atan2(m);break;case 10:d[h]=f.floor(m);break;case 11:d[h]=f.ceil(m);break}else d[h]=I.create(D.NA)}s.push(d)}return this._createNewArray(s,a,o)}_checkArrayCalculateType(e){return e.getRowCount()===1&&e.getColumnCount()===1?3:e.getRowCount()===1?1:e.getColumnCount()===1?2:0}_formatValue(e){if(typeof e!="string")return e=e,this._rowCount=e.rowCount,this._columnCount=e.columnCount,this._unitId=e.unitId,this._sheetId=e.sheetId,this._currentRow=e.row,this._currentColumn=e.column,e.calculateValueList;e=e.slice(1,-1);const n=e.split(";"),r=n.length,i=[];let a=0;for(let o=0;o<r;o++){const s=n[o].split(","),l=s.length;a<l&&(a=l);const u=[];for(let c=0;c<l;c++){const d=s[c].trim();u.push(cp.create(d))}i.push(u)}return this._rowCount=r,this._columnCount=a,i}_createNewArray(e,n,r,i=-1,a=-1){(this._currentColumn===-1||this._currentRow===-1)&&(i=-1,a=-1);const o={calculateValueList:e,rowCount:n,columnCount:r,unitId:this.getUnitId(),sheetId:this.getSheetId(),row:i,column:a};return lg.create(o)}};U(kRe,"ArrayValueObject");let ni=kRe;const FRe=class{static create(e){if(e==null)return ii.create();if(typeof e=="boolean")return kn.create(e);if(typeof e=="string"){const n=e.toLocaleUpperCase().trim();return Wp.has(n)?I.create(n):n===lp.TRUE||n===lp.FALSE?DS(e):Kr(e)?ee.create(Number(e)):new RegExp(tRt,"g").test(e.replace(/\n/g,"").replace(/\r/g,""))?ni.create(e.replace(/\n/g,"").replace(/\r/g,"")):xRe(e)}return typeof e=="number"?IS(e):I.create(D.VALUE)}};U(FRe,"ValueObjectFactory");let cp=FRe;const pRt=1e5,Vz=new zp(pRt),VRe=class extends GT{constructor(e){super(),x(this,"_forcedSheetId",""),x(this,"_forcedSheetName",""),x(this,"_defaultSheetId",""),x(this,"_rangeData",{startColumn:-1,startRow:-1,endRow:-1,endColumn:-1}),x(this,"_unitData",{}),x(this,"_unitStylesData",{}),x(this,"_defaultUnitId",""),x(this,"_forcedUnitId",""),x(this,"_runtimeData",{}),x(this,"_arrayFormulaCellData",{}),x(this,"_runtimeArrayFormulaCellData",{}),x(this,"_runtimeFeatureCellData",{}),x(this,"_refOffsetX",0),x(this,"_refOffsetY",0),this._token=e}dispose(){this._unitData={},this._unitStylesData={},this._runtimeData={}}getToken(){return this._token}setToken(e){this._token=e}isExceedRange(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this.getRangePosition();return e<0||r<0||n>=this.getActiveSheetRowCount()||i>=this.getActiveSheetColumnCount()}setRefOffset(e=0,n=0){this._refOffsetX=e,this._refOffsetY=n}getRefOffset(){return{x:this._refOffsetX,y:this._refOffsetY}}getRangePosition(){let{startRow:e,startColumn:n,endRow:r,endColumn:i}=XX(this._rangeData,this._refOffsetX,this._refOffsetY);return Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Number.isNaN(r)&&(r=this.getActiveSheetRowCount()-1),Number.isNaN(i)&&(i=this.getActiveSheetColumnCount()-1),{startRow:e,endRow:r,startColumn:n,endColumn:i}}isReferenceObject(){return!0}iterator(e){const{startRow:n,endRow:r,startColumn:i,endColumn:a}=this.getRangePosition();if(this._checkIfWorksheetMiss())return e(I.create(D.VALUE),n,i);const o=this._forcedUnitId||this._defaultUnitId,s=this._forcedSheetId||this._defaultSheetId;for(let l=n;l<=r;l++)for(let u=i;u<=a;u++){if(l<0||u<0)return e(I.create(D.REF),l,u);const c=this.getCellData(l,u);let d=!1;if(pg(c)){d=e(null,l,u);continue}let h=this.getCellValueObject(c);if(l===n&&u===i){const f=this.getCellPattern(o,s,l,u);if(f&&h.isNumber()){const m=Number(h.getValue());h=ee.create(m,f)}}if(d=e(h,l,u),d===!1)return}}getFirstCell(){const{startRow:e,startColumn:n}=this.getRangePosition(),r=this.getCellData(e,n);if(!r)return ee.create(0);let i=this.getCellValueObject(r);const a=this._forcedUnitId||this._defaultUnitId,o=this._forcedSheetId||this._defaultSheetId,s=this.getCellPattern(a,o,e,n);if(s&&i.isNumber()){const l=Number(i.getValue());i=ee.create(l,s)}return i}getRangeData(){return this._rangeData}setRangeData(e){this._rangeData=e}getUnitId(){return this._forcedUnitId&&this._forcedUnitId.length>0?this._forcedUnitId:this._defaultUnitId}getSheetId(){return this._forcedSheetId&&this._forcedSheetId.length>0?this._forcedSheetId:this._defaultSheetId}setForcedUnitIdDirect(e){e.length>0&&(this._forcedUnitId=e)}getForcedUnitId(){return this._forcedUnitId}setForcedSheetId(e){var n;this._forcedSheetId=(n=e[this.getUnitId()])==null?void 0:n[this._forcedSheetName]}setForcedSheetIdDirect(e){this._forcedSheetId=e}getForcedSheetId(){return this._forcedSheetId}setForcedSheetName(e){e.length>0&&(this._forcedSheetName=e)}getForcedSheetName(){return this._forcedSheetName}setDefaultSheetId(e){this._defaultSheetId=e}getDefaultSheetId(){return this._defaultSheetId}setDefaultUnitId(e){this._defaultUnitId=e}getDefaultUnitId(){return this._defaultUnitId}getUnitData(){return this._unitData}setUnitData(e){this._unitData=e}getUnitStylesData(){return this._unitStylesData}setUnitStylesData(e){this._unitStylesData=e}getRuntimeData(){return this._runtimeData}setRuntimeData(e){this._runtimeData=e}getArrayFormulaCellData(){return this._arrayFormulaCellData}setArrayFormulaCellData(e){this._arrayFormulaCellData=e}getRuntimeArrayFormulaCellData(){return this._runtimeArrayFormulaCellData}setRuntimeArrayFormulaCellData(e){this._runtimeArrayFormulaCellData=e}getRuntimeFeatureCellData(){return this._runtimeFeatureCellData}setRuntimeFeatureCellData(e){this._runtimeFeatureCellData=e}getActiveSheetRowCount(){var e;return((e=this.getCurrentActiveSheetData())==null?void 0:e.rowCount)||0}getActiveSheetColumnCount(){var e;return((e=this.getCurrentActiveSheetData())==null?void 0:e.columnCount)||0}getRowCount(){return this._rangeData.endRow-this._rangeData.startRow+1}getColumnCount(){return this._rangeData.endColumn-this._rangeData.startColumn+1}getRowData(){var e;return((e=this.getCurrentActiveSheetData())==null?void 0:e.rowData)||{}}getColumnData(){var e;return((e=this.getCurrentActiveSheetData())==null?void 0:e.columnData)||{}}isCell(){return!1}isColumn(){return!1}isRow(){return!1}isRange(){return!1}isTable(){return!1}unionBy(e){return I.create(D.REF)}unionRange(e,n){return{startRow:-1,startColumn:-1,endRow:-1,endColumn:-1}}getCellValueObject(e){const n=vEe(e);if(Wp.has(n))return I.create(n);if(e.t===rr.NUMBER){const r=this._getPatternByCell(e);return IS(n,r)}return e.t===rr.STRING||e.t===rr.FORCE_STRING?Xn.create(n.toString()):e.t===rr.BOOLEAN?DS(n):cp.create(n)}_getPatternByCell(e){var n;const r=this._unitStylesData[this.getUnitId()];if(!r)return"";const i=r.getStyleByCell(e);return((n=i==null?void 0:i.n)==null?void 0:n.pattern)||""}getCellByRow(e){return this.getCellByPosition(e)}getCellByColumn(e){return this.getCellByPosition(void 0,e)}getCurrentActiveSheetData(){var e;return(e=this._unitData[this.getUnitId()])==null?void 0:e[this.getSheetId()]}getCurrentStylesData(){return this._unitStylesData[this.getUnitId()]}getCurrentRuntimeSheetData(){var e,n;return(n=(e=this._runtimeData)==null?void 0:e[this.getUnitId()])==null?void 0:n[this.getSheetId()]}getCurrentActiveArrayFormulaCellData(){var e,n;return(n=(e=this._arrayFormulaCellData)==null?void 0:e[this.getUnitId()])==null?void 0:n[this.getSheetId()]}getCurrentRuntimeActiveArrayFormulaCellData(){var e,n;return(n=(e=this._runtimeArrayFormulaCellData)==null?void 0:e[this.getUnitId()])==null?void 0:n[this.getSheetId()]}getCellData(e,n){const r=this.getCurrentActiveSheetData(),i=this.getCurrentRuntimeSheetData(),a=this.getCurrentActiveArrayFormulaCellData(),o=this.getCurrentRuntimeActiveArrayFormulaCellData();return(i==null?void 0:i.getValue(e,n))||(o==null?void 0:o.getValue(e,n))||this.getRuntimeFeatureCellValue(e,n)||(a==null?void 0:a.getValue(e,n))||(r==null?void 0:r.cellData.getValue(e,n))}getRuntimeFeatureCellValue(e,n){return nee(e,n,this.getSheetId(),this.getUnitId(),this._runtimeFeatureCellData)}getCellByPosition(e,n){e||(e=this._rangeData.startRow),n||(n=this._rangeData.startColumn);const r=this.getCellData(e,n);return r?this.getCellValueObject(r):I.create(D.VALUE)}getCellPattern(e,n,r,i){var a,o,s,l;const u=this._unitStylesData[e];if(!u)return"";const c=(s=(o=(a=this._unitData[e])==null?void 0:a[n])==null?void 0:o.cellData)==null?void 0:s.getValue(r,i);if(!c)return"";const d=u.getStyleByCell(c);return((l=d==null?void 0:d.n)==null?void 0:l.pattern)||""}toArrayValueObject(e=!0){var n;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this.getRangePosition(),s=`${this.getUnitId()}_${this.getSheetId()}_${r}_${i}_${a}_${o}`,l=Vz.get(s);if(l&&e)return l;const u=i-r+1,c=o-a+1;if(u<0||c<0)return this._getBlankArrayValueObject();const d=new Array(u);this.iterator((m,g,p)=>{const v=g-r,_=p-a;d[v]||(d[v]=new Array(c)),m==null&&(m=ii.create()),d[v][_]=m});const h={calculateValueList:d,rowCount:d.length,columnCount:((n=d[0])==null?void 0:n.length)||0,unitId:this.getUnitId(),sheetId:this.getSheetId(),row:r,column:a},f=ni.create(h);return e&&Vz.set(s,f),f}toUnitRange(){return{range:this.getRangePosition(),sheetId:this.getSheetId(),unitId:this.getUnitId()}}_checkIfWorksheetMiss(){return(this._forcedSheetId==null||this._forcedSheetId.length===0)&&this._forcedSheetName.length>0}_getBlankArrayValueObject(){const e={calculateValueList:[],rowCount:0,columnCount:0,unitId:this.getUnitId(),sheetId:this.getSheetId(),row:0,column:0};return ni.create(e)}};U(VRe,"BaseReferenceObject");let PS=VRe;const BRe=class extends GT{constructor(e){super(),this._promise=e}isAsyncObject(){return!0}async getValue(){return this._promise}};U(BRe,"AsyncObject");let vRt=BRe;const URe=class extends GT{constructor(e){super(),this._promiseList=e}isAsyncArrayObject(){return!0}async getValue(){var e;const n=[];for(let i=0;i<this._promiseList.length;i++){const a=this._promiseList[i];n[i]==null&&(n[i]=[]);for(let o=0;o<a.length;o++){const s=a[o];s.isAsyncObject()?n[i][o]=await s.getValue():n[i][o]=s}}const r={calculateValueList:n,rowCount:n.length,columnCount:((e=n[0])==null?void 0:e.length)||0,unitId:"",sheetId:"",row:0,column:0};return ni.create(r)}};U(URe,"AsyncArrayObject");let _Rt=URe;const HRe=class extends PS{constructor(e,n,r){super(""),this.setRangeData(e),n&&this.setForcedSheetIdDirect(n),r&&this.setForcedUnitIdDirect(r)}isRange(){return!0}};U(HRe,"RangeReferenceObject");let I_=HRe;const Pse=/[\[\]]/g;function Bz(t,e){if(Pse.test(t)){const n=Number(t.replace(Pse,""));return e+n}return Number(t)-1}U(Bz,"handleR1C1");function mR(t,e=0,n=0){t=t.toLocaleUpperCase();const r=t.split(/[RC]/),i=r[1],a=r[2],o=Bz(i,e),s=Bz(a,n);return{row:o,column:s,absoluteRefType:yr.NONE}}U(mR,"singleReference");function jRe(t,e=0,n=0){const{refBody:r,sheetName:i,unitId:a}=tee(t),o=r.indexOf(":");if(o===-1){const g=mR(r,e,n),p=g.row,v=g.column,_=g.absoluteRefType;return{unitId:a,sheetName:i,range:{startRow:p,startColumn:v,endRow:p,endColumn:v,startAbsoluteRefType:_,endAbsoluteRefType:_}}}const s=r.substring(0,o),l=r.substring(o+1),u=mR(s,e,n),c=mR(l,e,n),d=u.row,h=u.column,f=c.row,m=c.column;return{unitId:a,sheetName:i,range:{startRow:d,startColumn:h,endRow:f,endColumn:m,startAbsoluteRefType:u.absoluteRefType,endAbsoluteRefType:c.absoluteRefType}}}U(jRe,"deserializeRangeForR1C1");function $Re(t){const e=Z5(t.startRow,t.startAbsoluteRefType,!0),n=Z5(t.startColumn,t.startAbsoluteRefType,!1),r=Z5(t.endRow,t.endAbsoluteRefType,!0),i=Z5(t.endColumn,t.endAbsoluteRefType,!1);return e===r&&n===i?`R${e}C${n}`:`R${e}C${n}:R${r}C${i}`}U($Re,"serializeRangeToR1C1");function Z5(t,e=yr.ALL,n){switch(t+=1,e){case yr.ALL:return`${t}`;case yr.ROW:return n?`${t}`:`[${t}]`;case yr.COLUMN:return n?`[${t}]`:`${t}`;case yr.NONE:return`[${t}]`}}U(Z5,"getR1C1Ref");const WRe=[],zRe=class extends PS{constructor(e){super(e);const n=Uo(e);this.setForcedUnitIdDirect(n.unitId),this.setForcedSheetName(n.sheetName),this.setRangeData(n.range)}isCell(){return!0}unionBy(e){if(!e.isCell())return I.create(D.REF);const n=e,r=this.unionRange(this.getRangeData(),n.getRangeData());return this._createRange(r)}unionRange(e,n){const r=e.startRow,i=e.startColumn,a=n.startRow,o=n.startColumn,s={startRow:-1,startColumn:-1,endRow:-1,endColumn:-1};return r>a?(s.startRow=a,s.endRow=r):(s.startRow=r,s.endRow=a),i>o?(s.startColumn=o,s.endColumn=i):(s.startColumn=i,s.endColumn=o),e.startAbsoluteRefType&&(s.startAbsoluteRefType=e.startAbsoluteRefType),n.startAbsoluteRefType&&(s.endAbsoluteRefType=n.startAbsoluteRefType),s}_createRange(e){const n=new I_(e,this.getForcedSheetId(),this.getForcedUnitId());n.setUnitData(this.getUnitData()),n.setDefaultSheetId(this.getDefaultSheetId()),n.setDefaultUnitId(this.getDefaultUnitId()),n.setRuntimeData(this.getRuntimeData()),n.setUnitStylesData(this.getUnitStylesData()),n.setArrayFormulaCellData(this.getArrayFormulaCellData()),n.setRuntimeArrayFormulaCellData(this.getRuntimeArrayFormulaCellData()),n.setRuntimeFeatureCellData(this.getRuntimeFeatureCellData());const{x:r,y:i}=this.getRefOffset();n.setRefOffset(r,i);const a=this.getForcedSheetId();n.setForcedSheetName(this.getForcedSheetName()),a!=null&&n.setForcedSheetIdDirect(a);const o=this.getForcedUnitId();return o&&n.setForcedUnitIdDirect(o),n}};U(zRe,"CellReferenceObject");let cee=zRe;const qRe=class extends PS{constructor(e){super(e);const n=Uo(e);this.setForcedUnitIdDirect(n.unitId),this.setForcedSheetName(n.sheetName);const r={startColumn:n.range.startColumn,startRow:Number.NaN,endColumn:-1,endRow:Number.NaN};this.setRangeData(r)}isColumn(){return!0}unionBy(e){if(!e.isColumn())return I.create(D.REF);const n=e;if(n.getForcedSheetName()!==void 0&&n.getForcedSheetName()!=="")return I.create(D.REF);const r=this.getRangeData(),i=n.getRangeData(),a=i.startColumn,o=r.startColumn;return a>o?r.endColumn=a:(r.startColumn=a,r.endColumn=o),i.startAbsoluteRefType&&(r.endAbsoluteRefType=i.startAbsoluteRefType),r.rangeType=it.COLUMN,this.setToken(`${this.getToken()}${mr.COLON}${n.getToken()}`),this}};U(qRe,"ColumnReferenceObject");let dee=qRe;const YRe=class extends PS{constructor(e){super(e);const n=Uo(e);this.setForcedUnitIdDirect(n.unitId),this.setForcedSheetName(n.sheetName);const r={startColumn:Number.NaN,startRow:n.range.startRow,endColumn:Number.NaN,endRow:-1};this.setRangeData(r)}isRow(){return!0}unionBy(e){if(!e.isRow())return I.create(D.REF);const n=e;if(n.getForcedSheetName()!==void 0&&n.getForcedSheetName()!=="")return I.create(D.REF);const r=this.getRangeData(),i=n.getRangeData(),a=i.startRow,o=r.startRow;return a>o?r.endRow=a:(r.startRow=a,r.endRow=o),i.startAbsoluteRefType&&(r.endAbsoluteRefType=i.startAbsoluteRefType),r.rangeType=it.ROW,this.setToken(`${this.getToken()}${mr.COLON}${n.getToken()}`),this}};U(YRe,"RowReferenceObject");let hee=YRe;function qe(t,e,n,r){const i=[];if(n.isArray()){const a=n.getRowCount(),o=n.getColumnCount();if(a===1&&o===1){const s=n.getFirstCell();for(let l=0;l<t;l++){const u=[];for(let c=0;c<e;c++)u.push(s);i.push(u)}}else if(a===1&&o>1)for(let s=0;s<t;s++){const l=[];for(let u=0;u<e;u++){const c=n.getRealValue(0,u)||(r??ii.create());l.push(c)}i.push(l)}else if(o===1&&a>1)for(let s=0;s<t;s++){const l=[];for(let u=0;u<e;u++){const c=n.getRealValue(s,0)||(r??ii.create());l.push(c)}i.push(l)}else for(let s=0;s<t;s++){const l=[];for(let u=0;u<e;u++){const c=n.getRealValue(s,u)||(r??ii.create());l.push(c)}i.push(l)}}else for(let a=0;a<t;a++){const o=[];for(let s=0;s<e;s++)o.push(n);i.push(o)}return M0(i,t,e)}U(qe,"expandArrayValueObject");function M0(t,e,n,r="",i=""){const a={calculateValueList:t,rowCount:e,columnCount:n,unitId:r,sheetId:i,row:-1,column:-1};return ni.create(a)}U(M0,"createNewArray");function Z7(t){const e=[bn.EQUALS,bn.NOT_EQUAL,bn.GREATER_THAN_OR_EQUAL,bn.GREATER_THAN,bn.LESS_THAN_OR_EQUAL,bn.LESS_THAN];for(const n of e)if(t.startsWith(n)){const r=t.substring(n.length);return[n,cp.create(r)]}return[bn.EQUALS,cp.create(t)]}U(Z7,"findCompareToken");function MS(t,e,n,r){if(!n)if(e.isString()){const i=`${e.getValue()}`,[a,o]=Z7(i);n=a,e=o}else n=bn.EQUALS;return t.compare(e,n,r)}U(MS,"valueObjectCompare");function XRe(t,e){const n=Math.max(t.isArray()?t.getRowCount():1,e.isArray()?e.getRowCount():1),r=Math.max(t.isArray()?t.getColumnCount():1,e.isArray()?e.getColumnCount():1),i=qe(n,r,t),a=qe(n,r,e);return i.mapValue((o,s,l)=>{const u=a.get(s,l);return o!=null&&o.isError()?o:u!=null&&u.isError()?u:o!=null&&o.isBoolean()&&u!=null&&u.isBoolean()?DS(o.getValue()&&u.getValue()):kn.create(!1)})}U(XRe,"booleanObjectIntersection");function GRe(t){const e=t.getValue();let n=0;return e&&(n=1),ee.create(n)}U(GRe,"convertTonNumber");function Uz(t){return t.isArray()&&t.getRowCount()===1&&t.getColumnCount()===1?!0:t.isReferenceObject()?!!(t.isCell()||t.getRowCount()===1&&t.getColumnCount()===1):(t=t,!!(t.isString()||t.isNumber()||t.isBoolean()||t.isError()||t.isNull()))}U(Uz,"isSingleValueObject");function Mm(t){const e=t==null?void 0:t.getPattern();let n={};if(e&&(n={s:{n:{pattern:e}}}),t==null)return{v:null,...n};if(t.isError())return{v:t.getErrorType(),t:rr.STRING,...n};if(t.isValueObject()){const r=t,i=r.getValue();return r.isNumber()?{v:i,t:rr.NUMBER,...n}:r.isBoolean()?{v:i?1:0,t:rr.BOOLEAN,...n}:r.isString()?{v:i,t:rr.STRING,...n}:r.isNull()?{v:null,...n}:{v:i,t:rr.STRING,...n}}}U(Mm,"objectValueToCellValue");function Yp(t){let e=0,n=0;return t.forEach((r,i)=>{if(i%2===1)if(r.isArray()){const a=r;e=Math.max(e,a.getRowCount()),n=Math.max(n,a.getColumnCount())}else e=Math.max(e,1),n=Math.max(n,1)}),{maxRowLength:e,maxColumnLength:n}}U(Yp,"calculateMaxDimensions");function J7(t,e,n,r){const i=e.getRowCount(),a=e.getColumnCount();for(let o=0;o<t.length;o++){if(o%2===1)continue;const s=t[o],l=s.getRowCount(),u=s.getColumnCount();if(l!==i||u!==a)return qe(n,r,I.create(D.VALUE))}return null}U(J7,"getErrorArray");function e9(t,e,n,r=!1){const i=[];for(let a=0;a<t.length;a++){if(a%2===1)continue;const o=t[a],s=t[a+1];qe(e,n,s,I.create(D.NA)).iterator((l,u,c)=>{if(!l)return;let d=MS(o,l);const[,h]=Z7(`${l.getValue()}`);if(r&&(d=TS(d,o,h)),i[u]===void 0&&(i[u]=[]),i[u][c]===void 0){i[u][c]=d;return}i[u][c]=XRe(i[u][c],d)})}return i}U(e9,"getBooleanResults");function TS(t,e,n){return t.mapValue((r,i,a)=>{const o=e.get(i,a);return o&&QRe(o,n)?r:o!=null&&o.isError()&&n.isError()&&o.getValue()===n.getValue()?kn.create(!0):kn.create(!1)})}U(TS,"filterSameValueObjectResult");function QRe(t,e){if(t.isNumber()&&e.isNumber()||t.isBoolean()&&e.isBoolean())return!0;const n=t.isString()&&t.getValue()==="",r=e.isString()&&e.getValue()==="";return!!((n||t.isNull())&&(r||e.isNull())||t.isString()&&!n&&e.isString()&&!r)}U(QRe,"isSameValueObjectType");const KRe=class extends et{constructor(e){super(),x(this,"_unitId"),x(this,"_subUnitId"),x(this,"_row",-1),x(this,"_column",-1),x(this,"_definedNames"),x(this,"needsExpandParams",!1),x(this,"needsReferenceObject",!1),x(this,"minParams",-1),x(this,"maxParams",-1),this._name=e}get name(){return this._name}get unitId(){return this._unitId}get subUnitId(){return this._subUnitId}get row(){return this._row}get column(){return this._column}getDefinedName(e){var n;const r=this._definedNames;return r==null?null:(n=Array.from(Object.values(r)).filter(i=>i.name===e))==null?void 0:n[0]}setDefinedNames(e){this._definedNames=e}isAsync(){return!1}isAddress(){return!1}isCustom(){return!1}setRefInfo(e,n,r,i){this._unitId=e,this._subUnitId=n,this._row=r,this._column=i}calculateCustom(...e){return null}calculate(...e){return I.create(D.VALUE)}checkArrayType(e){return e.isReferenceObject()||e.isValueObject()&&e.isArray()}getIndexNumValue(e,n=1){let r=e;if(r.isArray()&&(r=r.getFirstCell()),r.isBoolean())return r.getValue()===!1?I.create(D.VALUE):n;if(r.isString()){const i=Number(r.getValue());return Number.isNaN(i)?I.create(D.REF):i}else if(r.isNumber())return r.getValue();return I.create(D.VALUE)}getZeroOrOneByOneDefault(e){if(e==null)return 1;let n=1;if(e.isArray()&&(e=e.getFirstCell()),e.isBoolean())e.getValue()===!1&&(n=0);else{if(e.isString())return;e.isNumber()&&e.getValue()===0&&(n=0)}return n}getMatchTypeValue(e){if(e==null)return 1;let n=1;if(e.isArray()&&(e=e.getFirstCell()),e.isBoolean())e.getValue()===!1&&(n=0);else{if(e.isString())return;if(e.isNumber()){const r=e.getValue();r<=0&&(n=r)}}return n}binarySearch(e,n,r,i,a){const o=n.binarySearch(e,i,a);if(o==null)return I.create(D.NA);let s;return r.getRowCount()===1?s=r.get(0,o)||ii.create():s=r.get(o,0)||ii.create(),s.isNull()?I.create(D.NA):s}_getOneFirstByRaw(e){return e.length===0?I.create(D.NA):e[0][0]||I.create(D.NA)}_getOneLastByRaw(e){return e.length===0?I.create(D.NA):e[e.length-1][e[0].length-1]||I.create(D.NA)}equalSearch(e,n,r,i=!0){const a=r.pickRaw(n.isEqual(e));return i?this._getOneFirstByRaw(a):this._getOneLastByRaw(a)}fuzzySearch(e,n,r,i=!0){const a=r.pickRaw(n.compare(e,bn.EQUALS));return i?this._getOneFirstByRaw(a):this._getOneLastByRaw(a)}orderSearch(e,n,r,i=qo.MIN,a=!1){const o=n.orderSearch(e,i,a);if(o==null)return I.create(D.NA);const s=r.get(o.row,o.column)||ii.create();return s.isNull()?I.create(D.NA):s}binarySearchExpand(e,n,r,i=0,a,o){const s=n.binarySearch(e,a,o);return s==null?I.create(D.NA):i===0?r.slice([s,s+1]):r.slice(void 0,[s,s+1])}equalSearchExpand(e,n,r,i=!0,a=0){const o=n.isEqual(e);let s;return i?s=o.getFirstTruePosition():s=o.getLastTruePosition(),s==null?I.create(D.NA):a===0?r.slice([s.row,s.row+1]):r.slice(void 0,[s.column,s.column+1])}fuzzySearchExpand(e,n,r,i=!0,a=0){const o=n.compare(e,bn.EQUALS);let s;return i?s=o.getFirstTruePosition():s=o.getLastTruePosition(),s==null?I.create(D.NA):a===0?r.slice([s.row,s.row+1]):r.slice(void 0,[s.column,s.column+1])}orderSearchExpand(e,n,r,i=qo.MIN,a=!1,o=0){const s=n.orderSearch(e,i,a);return s==null?I.create(D.NA):o===0?r.slice([s.row,s.row+1]):r.slice(void 0,[s.column,s.column+1])}flattenArray(e,n=!0){const r=[];r[0]=[];for(let i=0;i<e.length;i++){let a=e[i];if((a.isString()||a.isBoolean()||a.isNull())&&(a=a.convertToNumberObjectValue()),a.isError())return a;if(a.isArray()){let o;if(a.iterator(s=>{if(s==null||s.isNull()||n&&(s.isString()||s.isBoolean()))return!0;if(s=this._includingLogicalValuesAndText(s),s.isError())return o=s,!1;r[0].push(s)}),o!=null&&o.isError())return o}else r[0].push(a)}return M0(r,1,r[0].length)}_includingLogicalValuesAndText(e){if(e.isBoolean()&&(e=GRe(e)),e.isString()){const n=Number(e.getValue());e=ee.create(Number.isNaN(n)?0:n)}return e}createReferenceObject(e,n){const r=e.getForcedUnitId(),i=e.getForcedSheetId()||"",a=e.getForcedSheetName(),o=tc({unitId:r,sheetName:a,range:n});let s;return new RegExp(yS).test(o)?s=new cee(o):new RegExp(oEe).test(o)?s=new hee(o):new RegExp(sEe).test(o)?s=new dee(o):s=new I_(n,i,r),this._setReferenceDefault(e,s)}_setReferenceDefault(e,n){return this.unitId==null||this.subUnitId==null?I.create(D.REF):(n.setDefaultUnitId(this.unitId),n.setDefaultSheetId(this.subUnitId),n.setUnitData(e.getUnitData()),n.setRuntimeData(e.getRuntimeData()),n.setArrayFormulaCellData(e.getArrayFormulaCellData()),n.setRuntimeArrayFormulaCellData(e.getRuntimeArrayFormulaCellData()),n)}};U(KRe,"BaseFunction");let be=KRe;const ZRe=class extends be{isCustom(){return!0}};U(ZRe,"CustomFunction");let JRe=ZRe;const eAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e);return n.isError()?n:n.std()}};U(eAe,"StdevP");let tAe=eAe;const nAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e);return n.isError()?n:n.std(1)}};U(nAe,"StdevS");let rAe=nAe;const iAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e);return n.isError()?n:n.var()}};U(iAe,"VarP");let aAe=iAe;const oAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e);return n.isError()?n:n.var(1)}};U(oAe,"VarS");let sAe=oAe;const lAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3),x(this,"needsReferenceObject",!0)}calculate(e,n,r){let i=e;i.isReferenceObject()&&(i=i.toArrayValueObject());const{refHasError:a,refErrorObject:o,refNumbers:s}=this._checkRefReferenceObject(n);let l=r??ee.create(0);l.isReferenceObject()&&(l=l.toArrayValueObject());const u=Math.max(i.isArray()?i.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(i.isArray()?i.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,i,I.create(D.NA)),h=qe(u,c,l,I.create(D.NA)),f=d.map((m,g,p)=>{const v=h.get(g,p);if(!e.isReferenceObject()&&e.isNull())return I.create(D.NA);if(a)return o;if(v.isError())return v;const _=+m.getValue(),C=+v.getValue();if(Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);const S=s.sort((b,y)=>C?b-y:y-b).indexOf(_);return S===-1?I.create(D.NA):ee.create(S+1)});return u===1&&c===1?f.get(0,0):f}_checkRefReferenceObject(e){let n=!1,r=I.create(D.NA);const i=[];return e.isReferenceObject()?(e.toArrayValueObject().iterator(a=>{const o=a;if(o.isError())return n=!0,r=o,!1;if(o.isNull()||o.isBoolean())return!0;const s=+o.getValue();if(Number.isNaN(s))return!0;i.push(s)}),{refHasError:n,refErrorObject:r,refNumbers:i}):{refHasError:!0,refErrorObject:r,refNumbers:i}}};U(lAe,"Rank");let CRt=lAe;var ri=(t=>(t.BETADIST="BETADIST",t.BETAINV="BETAINV",t.BINOMDIST="BINOMDIST",t.CHIDIST="CHIDIST",t.CHIINV="CHIINV",t.CHITEST="CHITEST",t.CONFIDENCE="CONFIDENCE",t.COVAR="COVAR",t.CRITBINOM="CRITBINOM",t.EXPONDIST="EXPONDIST",t.FDIST="FDIST",t.FINV="FINV",t.FTEST="FTEST",t.GAMMADIST="GAMMADIST",t.GAMMAINV="GAMMAINV",t.HYPGEOMDIST="HYPGEOMDIST",t.LOGINV="LOGINV",t.LOGNORMDIST="LOGNORMDIST",t.MODE="MODE",t.NEGBINOMDIST="NEGBINOMDIST",t.NORMDIST="NORMDIST",t.NORMINV="NORMINV",t.NORMSDIST="NORMSDIST",t.NORMSINV="NORMSINV",t.PERCENTILE="PERCENTILE",t.PERCENTRANK="PERCENTRANK",t.POISSON="POISSON",t.QUARTILE="QUARTILE",t.RANK="RANK",t.STDEV="STDEV",t.STDEVP="STDEVP",t.TDIST="TDIST",t.TINV="TINV",t.TTEST="TTEST",t.VAR="VAR",t.VARP="VARP",t.WEIBULL="WEIBULL",t.ZTEST="ZTEST",t))(ri||{});const uAe=[[CRt,ri.RANK],[rAe,ri.STDEV],[tAe,ri.STDEVP],[sAe,ri.VAR],[aAe,ri.VARP]],cAe=[];var Tm=(t=>(t.CUBEKPIMEMBER="CUBEKPIMEMBER",t.CUBEMEMBER="CUBEMEMBER",t.CUBEMEMBERPROPERTY="CUBEMEMBERPROPERTY",t.CUBERANKEDMEMBER="CUBERANKEDMEMBER",t.CUBESET="CUBESET",t.CUBESETCOUNT="CUBESETCOUNT",t.CUBEVALUE="CUBEVALUE",t))(Tm||{});const dAe=[];var Yu=(t=>(t.DAVERAGE="DAVERAGE",t.DCOUNT="DCOUNT",t.DCOUNTA="DCOUNTA",t.DGET="DGET",t.DMAX="DMAX",t.DMIN="DMIN",t.DPRODUCT="DPRODUCT",t.DSTDEV="DSTDEV",t.DSTDEVP="DSTDEVP",t.DSUM="DSUM",t.DVAR="DVAR",t.DVARP="DVARP",t))(Yu||{}),Vr=(t=>(t.DATE="DATE",t.DATEDIF="DATEDIF",t.DATEVALUE="DATEVALUE",t.DAY="DAY",t.DAYS="DAYS",t.DAYS360="DAYS360",t.EDATE="EDATE",t.EOMONTH="EOMONTH",t.HOUR="HOUR",t.ISOWEEKNUM="ISOWEEKNUM",t.MINUTE="MINUTE",t.MONTH="MONTH",t.NETWORKDAYS="NETWORKDAYS",t.NETWORKDAYS_INTL="NETWORKDAYS.INTL",t.NOW="NOW",t.SECOND="SECOND",t.TIME="TIME",t.TIMEVALUE="TIMEVALUE",t.TODAY="TODAY",t.WEEKDAY="WEEKDAY",t.WEEKNUM="WEEKNUM",t.WORKDAY="WORKDAY",t.WORKDAY_INTL="WORKDAY.INTL",t.YEAR="YEAR",t.YEARFRAC="YEARFRAC",t))(Vr||{});const fee="yyyy/mm/dd;@",SRt="yyyy/mm/dd hh:mm",bRt="h:mm A/P";function Ea(t){const e=new Date(Date.UTC(1900,0,1)),n=new Date(Date.UTC(1900,1,28)),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());let i=(r-e.getTime())/(1e3*3600*24);return r>n.getTime()&&(i+=1),Math.floor(i)+1}U(Ea,"excelDateSerial");function LS(t){const e=new Date(Date.UTC(1900,0,1,0,0,0)),n=new Date(Date.UTC(1900,1,28,0,0,0));let r=(t.getTime()-e.getTime())/(1e3*3600*24);return t>n&&(r+=1),r+1}U(LS,"excelDateTimeSerial");function kr(t){const e=new Date(Date.UTC(1900,0,1)),n=new Date(Date.UTC(1900,1,28));let r=Math.floor(t)-1;return r>(n.getTime()-e.getTime())/(1e3*3600*24)&&(r-=1),new Date(e.getTime()+r*(1e3*3600*24))}U(kr,"excelSerialToDate");function eL(t){const e=new Date(Date.UTC(1900,0,1,0,0,0)),n=new Date(Date.UTC(1900,1,28,0,0,0));let r=t-1;return r>(n.getTime()-e.getTime())/(1e3*3600*24)&&(r-=1),r<0&&(r=t),new Date(e.getTime()+r*(1e3*3600*24))}U(eL,"excelSerialToDateTime");function tL(t){if(!/^\d{4}[-/](0?[1-9]|1[012])[-/](0?[1-9]|[12][0-9]|3[01])$/.test(t))return!1;const e=t.replace(/-/g,"/").replace(/T.+/,""),n=new Date(`${e}`);if(Number.isNaN(n.getTime()))return!1;const r=n.getFullYear(),i=(n.getMonth()+1).toString().padStart(2,"0"),a=n.getDate().toString().padStart(2,"0"),o=`${r}-${i}-${a}`;return t.replace(/\//g,"-").split("-").map(s=>s.padStart(2,"0")).join("-")===o}U(tL,"isValidDateStr");function Hz(t){return Fi.parseDate(t)}U(Hz,"parseFormattedDate");function mee(t){return Fi.parseValue(t)}U(mee,"parseFormattedValue");function jz(t){return Fi.parseTime(t)}U(jz,"parseFormattedTime");function gee(t){return Fi.isDate(t)}U(gee,"isDate");const hAe={1:[6,0],2:[0,1],3:[1,2],4:[2,3],5:[3,4],6:[4,5],7:[5,6],11:[0],12:[1],13:[2],14:[3],15:[4],16:[5],17:[6]};function J4(t){return!!(typeof t=="string"&&/^[0|1]{7}/.test(t)||hAe[Number(t)])}U(J4,"isValidWeekend");function pee(t){if(!J4(t))return[];if(typeof t=="string"&&/^[0|1]{7}/.test(t)){const e=[];for(let n=1;n<=t.length;n++)`${t[n-1]}`=="1"&&(n===t.length?e.push(0):e.push(n));return e}return hAe[Number(t)]||[]}U(pee,"getWeekendArray");function P_(t,e,n=1,r){const i=pee(n),a=Math.floor(t),o=Math.floor(e),s=o>a?a:o;let l=0;const u=Math.abs(Math.floor(e)-Math.floor(t))+1;for(let c=0;c<u;c++){const d=s+c;if(r&&r.length>0&&r.some(f=>Math.floor(f)===d))continue;const h=T0(d);i.includes(h)||l++}return o>a?l:-l}U(P_,"countWorkingDays");function M_(t,e,n=1,r){const i=pee(n),a=Math.floor(t);let o=a,s=Math.abs(e);for(let l=1;l<=s;l++){const u=e<0?a-l:a+l;if(u<0)return I.create(D.NUM);if(r&&r.length>0&&r.some(d=>Math.floor(d)===u)){s++;continue}const c=T0(u);if(i.includes(c)){s++;continue}o=u}return o}U(M_,"getDateSerialNumberByWorkingDays");function Cn(t){if(t.isError())return t;const e=t.getValue();if(t.isString()){let n;if(Hz(`${e}`))n=Hz(`${e}`).v;else if(jz(`${e}`))n=jz(`${e}`).v;else if(Kr(e))n=+e;else return I.create(D.VALUE);return n instanceof Date&&(n=LS(n)),+n<0||+n>2958465?I.create(D.NUM):+n}else{const n=+t.getValue();return n<0||n>2958465?I.create(D.NUM):n}}U(Cn,"getDateSerialNumberByObject");function T0(t){const e=Math.floor(t)===60;let n=kr(t);const r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())).getTime(),i=new Date(Date.UTC(1900,1,28)).getTime();return!e&&r<=i&&(n=new Date(r-24*3600*1e3)),new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())).getUTCDay()}U(T0,"getWeekDayByDateSerialNumber");function aa(t,e,n){switch(n){case 0:return fAe(t,e);case 1:return mAe(t,e);case 2:return{days:Math.abs(e-t),yearDays:360};case 3:return{days:Math.abs(e-t),yearDays:365};case 4:return gAe(t,e);default:return{days:Math.abs(e-t),yearDays:365}}}U(aa,"getTwoDateDaysByBasis");function fAe(t,e){const n=kr(t),r=t>0?n.getUTCFullYear():1900,i=t>0?n.getUTCMonth()+1:1;let a=t>0?n.getUTCDate():0,o=kr(e),s=e>0?o.getUTCFullYear():1900,l=e>0?o.getUTCMonth()+1:1,u=e>0?o.getUTCDate():0;i===2?kr(t+1).getUTCMonth()+1===3&&(a=30):a===31&&(a=30),u===31&&(a<30?(o=kr(e+1),s=o.getUTCFullYear(),l=o.getUTCMonth()+1,u=o.getUTCDate()):u=30);const c=(s-r)*360,d=e>=t?30-a:-a,h=e>=t?u:u-30,f=(e>=t?l-i-1:l-i+1)*30;return{days:Math.abs(c+d+h+f),yearDays:360}}U(fAe,"getDaysByNASD");function mAe(t,e){const n=kr(t),r=t>0?n.getUTCFullYear():1900,i=kr(e),a=e>0?i.getUTCFullYear():1900,o=Math.abs(e-t),s=Math.abs(a-r)+1;let l,u;if(a<r){const c=new Date(Date.UTC(a,0,1)),d=new Date(Date.UTC(r,11,31));l=Ea(c),u=Ea(d),a===1900&&(l+=1)}else{const c=new Date(Date.UTC(r,0,1)),d=new Date(Date.UTC(a,11,31));l=Ea(c),u=Ea(d),r===1900&&(l+=1)}return{days:o,yearDays:(u-l+1)/s}}U(mAe,"getDaysByActual");function gAe(t,e){const n=kr(t),r=t>0?n.getUTCFullYear():1900,i=t>0?n.getUTCMonth()+1:1;let a=t>0?n.getUTCDate():0;const o=kr(e),s=e>0?o.getUTCFullYear():1900,l=e>0?o.getUTCMonth()+1:1;let u=e>0?o.getUTCDate():0;a===31&&(a=30),u===31&&(u=30);const c=(s-r)*360,d=e>=t?30-a:-a,h=e>=t?u:u-30,f=(e>=t?l-i-1:l-i+1)*30;return{days:Math.abs(c+d+h+f),yearDays:360}}U(gAe,"getDaysByEuropean");function pAe(t){return t%4===0&&t%100!==0||t%400===0}U(pAe,"isLeapYear");function vAe(t){return t%4===0&&t%100!==0||t%400===0||t===1900}U(vAe,"isLeapYear1900");const yRt=[31,29,31,30,31,30,31,31,30,31,30,31],ERt=[31,28,31,30,31,30,31,31,30,31,30,31];function xS(t,e){return pAe(t)?yRt[e]:ERt[e]}U(xS,"getDaysInMonth");function OS(t){return vAe(t)?366:365}U(OS,"getDaysInYear");function vee(t,e){switch(e){case 0:case 2:case 4:return 360;case 1:return OS(kr(t).getUTCFullYear());case 3:return 365;default:return-1}}U(vee,"getNormalYearDaysByBasis");function dp(t,e,n){return xS(t,e)===n}U(dp,"lastDayOfMonth");function hp(t,e){let n=t.getUTCFullYear(),r=t.getUTCMonth();const i=t.getUTCDate();return dp(n,r,i)?(t.setUTCDate(1),t.setUTCMonth(t.getUTCMonth()+e),n=t.getUTCFullYear(),r=t.getUTCMonth(),t.setUTCDate(xS(n,r))):t.setUTCMonth(t.getUTCMonth()+e),t}U(hp,"dateAddMonths");const _Ae=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e),s=qe(i,a,n),l=qe(i,a,r);return o.map((u,c,d)=>{const h=s.get(c,d)||ii.create(),f=l.get(c,d)||ii.create();if(u.isError())return u;if(h.isError())return h;if(f.isError())return f;if(u.isString()||h.isString()||f.isString())return I.create(D.VALUE);let m=+u.getValue();const g=Math.floor(+h.getValue()),p=+f.getValue();if(m<0||m>9999)return I.create(D.NUM);m>=0&&m<1899&&(m+=1900);const v=new Date(m,g-1,p),_=Ea(v);return _<0?I.create(D.NUM):ee.create(_,fee)})}};U(_Ae,"DateFunction");let RRt=_Ae;const CAe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){let i=e,a=n,o=r;if(i.isArray()&&(i=i.get(0,0)),a.isArray()&&(a=a.get(0,0)),o.isArray()&&(o=o.get(0,0)),i.isError())return i;if(a.isError())return a;if(o.isError())return o;const s=Cn(i);if(typeof s!="number")return s;const l=Cn(a);return typeof l!="number"?l:l<s||!o.isString()?I.create(D.NUM):this._getResultByUnit(s,l,o)}_getResultByUnit(e,n,r){const i=kr(e),a=i.getUTCFullYear(),o=i.getUTCMonth()+1,s=i.getUTCDate(),l=kr(n),u=l.getUTCFullYear(),c=l.getUTCMonth()+1,d=l.getUTCDate(),h=`${r.getValue()}`.toLocaleUpperCase();let f;switch(h){case"Y":return ee.create(u-a);case"M":return ee.create((u-a)*12+c-o);case"D":return ee.create(Math.floor(n)-Math.floor(e));case"MD":return ee.create(d-s);case"YM":return ee.create(c-o);case"YD":return f=Ea(new Date(Date.UTC(a,c-1,d))),ee.create(Math.floor(f)-Math.floor(e));default:return I.create(D.NUM)}}};U(CAe,"Datedif");let ARt=CAe;const SAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){if(e.isString()){const n=`${e.getValue()}`,r=mee(n);if(r){let{v:i,z:a}=r;if(a&&gee(a))return i instanceof Date&&(i=LS(i)),ee.create(Math.trunc(+i))}}return I.create(D.VALUE)}};U(SAe,"Datevalue");let wRt=SAe;const bAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n;const r=e.getValue();if(e.isString()){if(!tL(`${r}`))return I.create(D.VALUE);n=new Date(`${r}`)}else{const a=+e.getValue();if(a<0)return I.create(D.NUM);if(a===0)return ee.create(0);n=kr(a)}const i=n.getDate();return ee.create(i)}};U(bAe,"Day");let DRt=bAe;const yAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e),o=qe(r,i,n),s=a.map((l,u,c)=>{const d=o.get(u,c);if(l.isError())return l;if(d.isError())return d;const h=Cn(l);if(typeof h!="number")return h;const f=Cn(d);if(typeof f!="number")return f;const m=Math.floor(h)-Math.floor(f);return ee.create(m)});return r===1&&i===1?s.get(0,0):s}};U(yAe,"Days");let IRt=yAe;const EAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=r??kn.create(!1);if(e.isError())return e;if(n.isError())return n;if(i.isError())return i;const a=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,i.isArray()?i.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,i.isArray()?i.getColumnCount():1),s=qe(a,o,e,I.create(D.NA)),l=qe(a,o,n,I.create(D.NA)),u=qe(a,o,i,I.create(D.NA)),c=s.map((d,h,f)=>{const m=l.get(h,f);let g=u.get(h,f);if(d.isError())return d;const p=Cn(d);if(typeof p!="number")return p;if(m.isError())return m;const v=Cn(m);if(typeof v!="number")return v;if(g.isString()&&(g=g.convertToNumberObjectValue()),g.isError())return g;const _=+g.getValue(),{days:C}=aa(p,v,_?4:0),S=v>=p?C:-C;return ee.create(S)});return a===1&&o===1?c.get(0,0):c}};U(EAe,"Days360");let PRt=EAe;const RAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e),o=qe(r,i,n);return a.map((s,l,u)=>{const c=o.get(l,u)||ii.create();if(s.isError())return s;if(c.isError())return c;if(s.isString()||s.isBoolean()||c.isString()||c.isBoolean())return I.create(D.VALUE);const d=+s.getValue();if(d<0)return I.create(D.NUM);const h=Math.floor(+c.getValue()),f=kr(d),m=f.getUTCFullYear(),g=f.getUTCMonth()+h,p=f.getUTCDate(),v=new Date(Date.UTC(m,g,p)),_=Ea(v);return ee.create(_,fee)})}};U(RAe,"Edate");let MRt=RAe;const AAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e,i=n;if(r.isArray()){const h=r.getRowCount(),f=r.getColumnCount();if(h>1||f>1)return I.create(D.VALUE);r=r.get(0,0)}if(i.isArray()){const h=i.getRowCount(),f=i.getColumnCount();if(h>1||f>1)return I.create(D.VALUE);i=i.get(0,0)}if(r.isError())return r;if(i.isError())return i;const a=Cn(r);if(typeof a!="number")return a;if(i.isBoolean())return I.create(D.VALUE);const o=kr(a),s=a>0?o.getUTCFullYear():1900,l=a>0?o.getUTCMonth():0,u=Math.floor(+i.getValue());if(Number.isNaN(u))return I.create(D.VALUE);const c=new Date(Date.UTC(s,l+u+1,0)),d=Ea(c);return ee.create(d)}};U(AAe,"Eomonth");let TRt=AAe;const wAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>n.isError()?n:this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){const n=Cn(e);if(typeof n!="number")return n;if(n===0)return ee.create(0);const r=eL(n).getUTCHours();return ee.create(r)}};U(wAe,"Hour");let LRt=wAe;const DAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>n.isError()?n:this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){const n=Cn(e);if(typeof n!="number")return n;const r=kr(n),i=n>0?r.getUTCFullYear():1900;let a=new Date(Date.UTC(i,0,1)),o=Ea(a),s=T0(o),l;s<1?l=o+1:s<=4?l=o-(s-1):l=o+(11-s),n<l&&(a=new Date(Date.UTC(i-1,0,1)),o=Ea(a),s=T0(o),s<1?l=o+1:s<=4?l=o-(s-1):l=o+(11-s));const u=Math.ceil((n-l+1)/7);return ee.create(u)}};U(DAe,"Isoweeknum");let xRt=DAe;const IAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>n.isError()?n:this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){const n=Cn(e);if(typeof n!="number")return n;if(n===0)return ee.create(0);const r=eL(n).getUTCMinutes();return ee.create(r)}};U(IAe,"Minute");let ORt=IAe;const PAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){if(e.isError())return e;let n;const r=e.getValue();if(e.isString()){if(!tL(`${r}`))return I.create(D.VALUE);n=new Date(`${r}`)}else{const a=+e.getValue();if(a<0)return I.create(D.NUM);if(a===0)return ee.create(1);n=kr(a)}const i=n.getUTCMonth()+1;return ee.create(i)}};U(PAe,"Month");let NRt=PAe;const MAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){let i=e,a=n;if(i.isArray()){const u=i.getRowCount(),c=i.getColumnCount();if(u>1||c>1)return I.create(D.VALUE);i=i.get(0,0)}if(i.isError())return i;if(a.isArray()){const u=a.getRowCount(),c=a.getColumnCount();if(u>1||c>1)return I.create(D.VALUE);a=a.get(0,0)}if(a.isError())return a;if(r!=null&&r.isError())return r;if(i.isBoolean()||a.isBoolean())return I.create(D.VALUE);const o=Cn(i);if(typeof o!="number")return o;const s=Cn(a);if(typeof s!="number")return s;if(r)return this._getResultByHolidays(o,s,r);const l=P_(o,s);return ee.create(l)}_getResultByHolidays(e,n,r){const i=[];if(r!=null&&r.isArray()){const o=r.getRowCount(),s=r.getColumnCount();for(let l=0;l<o;l++)for(let u=0;u<s;u++){const c=r.get(l,u);if(c.isBoolean())return I.create(D.VALUE);const d=Cn(c);if(typeof d!="number")return d;i.push(d)}}else{if(r.isBoolean())return I.create(D.VALUE);const o=Cn(r);if(typeof o!="number")return o;i.push(o)}const a=P_(e,n,1,i);return ee.create(a)}};U(MAe,"Networkdays");let kRt=MAe;const TAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",4)}calculate(e,n,r,i){return e.isError()?e:n.isError()?n:r!=null&&r.isError()?r:i!=null&&i.isError()?i:r!=null&&r.isArray()?r.map(a=>this._handleSingleObject(e,n,a,i)):this._handleSingleObject(e,n,r,i)}_handleSingleObject(e,n,r,i){let a=e,o=n;if(a.isArray()){const d=a.getRowCount(),h=a.getColumnCount();if(d>1||h>1)return I.create(D.VALUE);a=a.get(0,0)}if(a.isError())return a;if(o.isArray()){const d=o.getRowCount(),h=o.getColumnCount();if(d>1||h>1)return I.create(D.VALUE);o=o.get(0,0)}if(o.isError())return o;let s=1;if(r){if(s=r.getValue(),r.isBoolean()&&(s=+s),r.isString()&&!J4(s))return I.create(D.VALUE);if(!J4(s))return I.create(D.NUM)}if(a.isBoolean()||o.isBoolean())return I.create(D.VALUE);const l=Cn(a);if(typeof l!="number")return l;const u=Cn(o);if(typeof u!="number")return u;if(i)return this._getResultByHolidays(l,u,s,i);const c=P_(l,u,s);return ee.create(c)}_getResultByHolidays(e,n,r,i){const a=[];if(i!=null&&i.isArray()){const s=i.getRowCount(),l=i.getColumnCount();for(let u=0;u<s;u++)for(let c=0;c<l;c++){const d=i.get(u,c);if(d.isBoolean())return I.create(D.VALUE);const h=Cn(d);if(typeof h!="number")return h;a.push(h)}}else{if(i.isBoolean())return I.create(D.VALUE);const s=Cn(i);if(typeof s!="number")return s;a.push(s)}const o=P_(e,n,r,a);return ee.create(o)}};U(TAe,"NetworkdaysIntl");let FRt=TAe;const LAe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){const e=new Date,n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())),r=LS(n);return ee.create(r,SRt)}};U(LAe,"Now");let VRt=LAe;const xAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>n.isError()?n:this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){const n=Cn(e);if(typeof n!="number")return n;if(n===0)return ee.create(0);const r=eL(n).getUTCSeconds();return ee.create(r)}};U(xAe,"Second");let BRt=xAe;const OAe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e),s=qe(i,a,n),l=qe(i,a,r);return o.map((u,c,d)=>this._calculateTime(u,s,l,c,d))}_calculateTime(e,n,r,i,a){let o=e,s=n.get(i,a)||ii.create(),l=r.get(i,a)||ii.create();if((o.isString()||o.isBoolean())&&(o=o.convertToNumberObjectValue()),(s.isString()||s.isBoolean())&&(s=s.convertToNumberObjectValue()),(l.isString()||l.isBoolean())&&(l=l.convertToNumberObjectValue()),o.isError())return o;if(s.isError())return s;if(l.isError())return l;let u=Math.floor(+o.getValue()),c=Math.floor(+s.getValue()),d=Math.floor(+l.getValue());if(u<0||c<0||d<0||u>32767||c>32767||d>32767)return I.create(D.NUM);c+=Math.floor(d/60),d%=60,u+=Math.floor(c/60),c%=60,u%=24;const h=(u*3600+c*60+d)/86400;return ee.create(h,bRt)}};U(OAe,"Time");let URt=OAe;const NAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){if(e.isString()){const n=`${e.getValue()}`,r=mee(n);if(r){let{v:i,z:a}=r;if(a&&gee(a))return i instanceof Date&&(i=LS(i)),ee.create(DRe(+i))}}return I.create(D.VALUE)}};U(NAe,"Timevalue");let HRt=NAe;const kAe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){const e=Ea(new Date);return ee.create(e,fee)}};U(kAe,"Today");let jRt=kAe;const FAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2),x(this,"_returnTypeMap",{1:[1,2,3,4,5,6,7],2:[7,1,2,3,4,5,6],3:[6,0,1,2,3,4,5],11:[7,1,2,3,4,5,6],12:[6,7,1,2,3,4,5],13:[5,6,7,1,2,3,4],14:[4,5,6,7,1,2,3],15:[3,4,5,6,7,1,2],16:[2,3,4,5,6,7,1],17:[1,2,3,4,5,6,7]})}calculate(e,n){const r=n??ee.create(1);if(e.isError())return e;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,r,I.create(D.NA)),l=o.map((u,c,d)=>{const h=s.get(c,d);return this._handleSingleObject(u,h)});return i===1&&a===1?l.get(0,0):l}_handleSingleObject(e,n){let r=n;if(e.isError())return e;if(r.isError())return r;const i=Cn(e);if(typeof i!="number")return i;if(r.isString()&&(r=r.convertToNumberObjectValue(),r.isError()))return r;const a=Math.floor(+r.getValue());if(!this._returnTypeMap[a])return I.create(D.NUM);const o=T0(i),s=this._returnTypeMap[a][o];return ee.create(s)}};U(FAe,"Weekday");let $Rt=FAe;const VAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2),x(this,"_returnTypeMap",{1:0,2:1,11:1,12:2,13:3,14:4,15:5,16:6,17:0,21:4})}calculate(e,n){let r=e,i=n??ee.create(1);if(r.isArray()){const s=r.getRowCount(),l=r.getColumnCount();if(s>1||l>1)return I.create(D.VALUE);r=r.get(0,0)}if(r.isError())return r;if(i.isArray()){const s=i.getRowCount(),l=i.getColumnCount();if(s>1||l>1)return I.create(D.VALUE);i=i.get(0,0)}if(i.isError())return i;if(r.isBoolean())return I.create(D.VALUE);const a=Cn(r);if(typeof a!="number")return a;if(i.isBoolean())return I.create(D.VALUE);const o=Math.floor(+i.getValue());return Number.isNaN(o)?I.create(D.VALUE):o in this._returnTypeMap?this._getResult(a,o):I.create(D.NUM)}_getResult(e,n){const r=kr(e),i=e>0?r.getUTCFullYear():1900;let a=new Date(Date.UTC(i,0,1)),o=Ea(a),s=T0(o),l;if(n===21)s<1?l=o+1:s<=4?l=o-(s-1):l=o+(11-s),e<l&&(a=new Date(Date.UTC(i-1,0,1)),o=Ea(a),s=T0(o),s<1?l=o+1:s<=4?l=o-(s-1):l=o+(11-s));else{const c=this._returnTypeMap[n];s<c?l=o-(s+7-c):l=o-(s-c)}const u=Math.ceil((e-l+1)/7);return ee.create(u)}};U(VAe,"Weeknum");let WRt=VAe;const BAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){let i=e,a=n;if(i.isArray()){const u=i.getRowCount(),c=i.getColumnCount();if(u>1||c>1)return I.create(D.VALUE);i=i.get(0,0)}if(i.isError())return i;if(a.isArray()){const u=a.getRowCount(),c=a.getColumnCount();if(u>1||c>1)return I.create(D.VALUE);a=a.get(0,0)}if(a.isError())return a;if(r!=null&&r.isError())return r;if(i.isBoolean()||a.isBoolean())return I.create(D.VALUE);const o=Cn(i);if(typeof o!="number")return o;const s=+a.getValue();if(Number.isNaN(s))return I.create(D.VALUE);if(r)return this._getResultByHolidays(o,s,r);const l=M_(o,s);return typeof l!="number"?l:ee.create(l)}_getResultByHolidays(e,n,r){const i=[];if(r!=null&&r.isArray()){const o=r.getRowCount(),s=r.getColumnCount();for(let l=0;l<o;l++)for(let u=0;u<s;u++){const c=r.get(l,u);if(c.isBoolean())return I.create(D.VALUE);const d=Cn(c);if(typeof d!="number")return d;i.push(d)}}else{if(r.isBoolean())return I.create(D.VALUE);const o=Cn(r);if(typeof o!="number")return o;i.push(o)}const a=M_(e,n,1,i);return typeof a!="number"?a:ee.create(a)}};U(BAe,"Workday");let zRt=BAe;const UAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",4)}calculate(e,n,r,i){return e.isError()?e:n.isError()?n:r!=null&&r.isError()?r:i!=null&&i.isError()?i:r!=null&&r.isArray()?r.map(a=>this._handleSingleObject(e,n,a,i)):this._handleSingleObject(e,n,r,i)}_handleSingleObject(e,n,r,i){const a=r??ee.create(1),o=this._checkArrayError(e);if(o.isError())return o;const s=this._checkArrayError(n);if(s.isError())return s;if(o.isBoolean()||s.isBoolean())return I.create(D.VALUE);const l=Cn(e);if(typeof l!="number")return l;const u=+n.getValue();if(Number.isNaN(u))return I.create(D.VALUE);let c=a.getValue();if(a.isBoolean()&&(c=+c),a.isString()&&(!J4(c)||c==="1111111"))return I.create(D.VALUE);if(!J4(c))return I.create(D.NUM);if(i)return this._getResultByHolidays(l,u,c,i);const d=M_(l,u,c);return typeof d!="number"?d:ee.create(d)}_checkArrayError(e){let n=e;if(n.isArray()){const r=n.getRowCount(),i=n.getColumnCount();if(r>1||i>1)return I.create(D.VALUE);n=n.get(0,0)}return n.isError(),n}_getResultByHolidays(e,n,r,i){const a=[];if(i!=null&&i.isArray()){const s=i.getRowCount(),l=i.getColumnCount();for(let u=0;u<s;u++)for(let c=0;c<l;c++){const d=i.get(u,c);if(d.isBoolean())return I.create(D.VALUE);const h=Cn(d);if(typeof h!="number")return h;a.push(h)}}else{if(i.isBoolean())return I.create(D.VALUE);const s=Cn(i);if(typeof s!="number")return s;a.push(s)}const o=M_(e,n,r,a);return typeof o!="number"?o:ee.create(o)}};U(UAe,"WorkdayIntl");let qRt=UAe;const HAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){if(e.isError())return e;let n;const r=e.getValue();if(e.isString()){if(!tL(`${r}`))return I.create(D.VALUE);n=new Date(`${r}`)}else{const a=+r;if(a<0)return I.create(D.NUM);if(a===0)return ee.create(1900);n=kr(a)}const i=n.getUTCFullYear();return ee.create(i)}};U(HAe,"Year");let YRt=HAe;function J6(t){let e=t;if(t.isArray()){const n=t.getRowCount(),r=t.getColumnCount();if(n>1||r>1)return I.create(D.VALUE);e=t.get(0,0)}return e.isError(),e}U(J6,"checkVariantErrorIsArray");function Nn(...t){for(let e=0;e<t.length;e++){const n=J6(t[e]);if(n.isError())return{isError:!0,errorObject:n};if(n.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE)};t[e]=n}return{isError:!1,variants:t}}U(Nn,"checkVariantsErrorIsArrayOrBoolean");function il(...t){for(let e=0;e<t.length;e++){let n=t[e];if(n.isError())return{isError:!0,errorObject:n};if(n.isNull())return{isError:!0,errorObject:I.create(D.NA)};if(n=J6(t[e]),n.isError())return{isError:!0,errorObject:n};if(n.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE)};t[e]=n}return{isError:!1,variants:t}}U(il,"checkVariantsErrorIsNullorArrayOrBoolean");function al(...t){for(let e=0;e<t.length;e++){let n=t[e];if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return{isError:!0,errorObject:n};t[e]=n}return{isError:!1,variants:t}}U(al,"checkVariantsErrorIsStringToNumber");const jAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){let i=r??ee.create(0);const a=J6(e);if(a.isError())return a;const o=J6(n);if(o.isError())return o;if(i=J6(i),i.isError())return i;if(a.isBoolean()||o.isBoolean()||i.isBoolean())return I.create(D.VALUE);const s=Cn(a);if(typeof s!="number")return s;const l=Cn(o);if(typeof l!="number")return l;const u=Math.floor(+i.getValue());if(Number.isNaN(u))return I.create(D.VALUE);if(u<0||u>4)return I.create(D.NUM);const{days:c,yearDays:d}=aa(s,l,u),h=c/d;return ee.create(h)}};U(jAe,"Yearfrac");let XRt=jAe;const $Ae=[[RRt,Vr.DATE],[ARt,Vr.DATEDIF],[wRt,Vr.DATEVALUE],[DRt,Vr.DAY],[IRt,Vr.DAYS],[PRt,Vr.DAYS360],[MRt,Vr.EDATE],[TRt,Vr.EOMONTH],[LRt,Vr.HOUR],[xRt,Vr.ISOWEEKNUM],[ORt,Vr.MINUTE],[NRt,Vr.MONTH],[kRt,Vr.NETWORKDAYS],[FRt,Vr.NETWORKDAYS_INTL],[VRt,Vr.NOW],[BRt,Vr.SECOND],[URt,Vr.TIME],[HRt,Vr.TIMEVALUE],[jRt,Vr.TODAY],[$Rt,Vr.WEEKDAY],[WRt,Vr.WEEKNUM],[zRt,Vr.WORKDAY],[qRt,Vr.WORKDAY_INTL],[YRt,Vr.YEAR],[XRt,Vr.YEARFRAC]];var tn=(t=>(t.BESSELI="BESSELI",t.BESSELJ="BESSELJ",t.BESSELK="BESSELK",t.BESSELY="BESSELY",t.BIN2DEC="BIN2DEC",t.BIN2HEX="BIN2HEX",t.BIN2OCT="BIN2OCT",t.BITAND="BITAND",t.BITLSHIFT="BITLSHIFT",t.BITOR="BITOR",t.BITRSHIFT="BITRSHIFT",t.BITXOR="BITXOR",t.COMPLEX="COMPLEX",t.CONVERT="CONVERT",t.DEC2BIN="DEC2BIN",t.DEC2HEX="DEC2HEX",t.DEC2OCT="DEC2OCT",t.DELTA="DELTA",t.ERF="ERF",t.ERF_PRECISE="ERF.PRECISE",t.ERFC="ERFC",t.ERFC_PRECISE="ERFC.PRECISE",t.GESTEP="GESTEP",t.HEX2BIN="HEX2BIN",t.HEX2DEC="HEX2DEC",t.HEX2OCT="HEX2OCT",t.IMABS="IMABS",t.IMAGINARY="IMAGINARY",t.IMARGUMENT="IMARGUMENT",t.IMCONJUGATE="IMCONJUGATE",t.IMCOS="IMCOS",t.IMCOSH="IMCOSH",t.IMCOT="IMCOT",t.IMCSC="IMCSC",t.IMCSCH="IMCSCH",t.IMDIV="IMDIV",t.IMEXP="IMEXP",t.IMLN="IMLN",t.IMLOG10="IMLOG10",t.IMLOG2="IMLOG2",t.IMPOWER="IMPOWER",t.IMPRODUCT="IMPRODUCT",t.IMREAL="IMREAL",t.IMSEC="IMSEC",t.IMSECH="IMSECH",t.IMSIN="IMSIN",t.IMSINH="IMSINH",t.IMSQRT="IMSQRT",t.IMSUB="IMSUB",t.IMSUM="IMSUM",t.IMTAN="IMTAN",t.OCT2BIN="OCT2BIN",t.OCT2DEC="OCT2DEC",t.OCT2HEX="OCT2HEX",t))(tn||{}),e7;(t=>{const e=.636619772;function n(a,o){let s=0;for(let l=0;l<a.length;++l)s=o*s+a[l];return s}U(n,"_horner");function r(a,o,s,l,u){if(o===0)return s;if(o===1)return l;const c=2/a;let d=s,h=l,f=l;for(let m=1;m<o;++m)f=h*m*c+u*d,d=h,h=f;return f}U(r,"_bessel_iter");function i(a,o,s,l){return U(function(u,c){if(s){if(u===0)return s===1?-1/0:1/0;if(u<0)return Number.NaN}if(c===0)return a(u);if(c===1)return o(u);if(c<0)return Number.NaN;const d=c|0,h=a(u),f=o(u);return r(u,d,h,f,l)},"bessel")}U(i,"_bessel_wrap"),t.besselj=(()=>{const a=[-184.9052456,77392.33017,-1121442418e-2,6516196407e-1,-13362590354,57568490574],o=[1,267.8532712,59272.64853,9494680718e-3,1029532985,57568490411],s=[2093887211e-16,-2073370639e-15,2734510407e-14,-.001098628627,1],l=[-934935152e-16,7621095161e-16,-6911147651e-15,.0001430488765,-.01562499995];function u(g){let p=0,v=0,_=0,C=g*g;if(g<8)v=n(a,C),_=n(o,C),p=v/_;else{const S=g-.785398164;C=64/C,v=n(s,C),_=n(l,C),p=Math.sqrt(e/g)*(Math.cos(S)*v-Math.sin(S)*_*8/g)}return p}U(u,"bessel0");const c=[-30.16036606,15704.4826,-2972611439e-3,2423968531e-1,-7895059235,72362614232],d=[1,376.9991397,99447.43394,1858330474e-2,2300535178,144725228442],h=[-240337019e-15,2457520174e-15,-3516396496e-14,.00183105,1],f=[105787412e-15,-88228987e-14,8449199096e-15,-.0002002690873,.04687499995];function m(g){let p=0,v=0,_=0,C=g*g;const S=Math.abs(g)-2.356194491;return Math.abs(g)<8?(v=g*n(c,C),_=n(d,C),p=v/_):(C=64/C,v=n(h,C),_=n(f,C),p=Math.sqrt(e/Math.abs(g))*(Math.cos(S)*v-Math.sin(S)*_*8/Math.abs(g)),g<0&&(p=-p)),p}return U(m,"bessel1"),U(function g(p,v){const _=Math.round(v);if(!Number.isFinite(p))return Number.isNaN(p)?p:0;if(_<0)return(_%2?-1:1)*g(p,-_);if(p<0)return(_%2?-1:1)*g(-p,_);if(_===0)return u(p);if(_===1)return m(p);if(p===0)return 0;let C=0;if(p>_)C=r(p,_,u(p),m(p),-1);else{const S=2*Math.floor((_+Math.floor(Math.sqrt(40*_)))/2);let b=!1,y=0,A=0,w=1,P=0;const M=2/p;for(let L=S;L>0;L--)if(P=L*M*w-y,y=w,w=P,Math.abs(w)>1e10&&(w*=1e-10,y*=1e-10,C*=1e-10,A*=1e-10),b&&(A+=w),b=!b,L===_&&(C=y),S-L>100&&C===0)return Number.NaN;A=2*A-w,C/=A}return C},"besselj2")})(),t.bessely=(()=>{const a=[228.4622733,-86327.92757,1087988129e-2,-5123598036e-1,7062834065,-2957821389],o=[1,226.1030244,47447.2647,7189466438e-3,7452499648e-1,40076544269],s=[2093887211e-16,-2073370639e-15,2734510407e-14,-.001098628627,1],l=[-934945152e-16,7621095161e-16,-6911147651e-15,.0001430488765,-.01562499995];function u(g){let p=0,v=0,_=0,C=g*g;const S=g-.785398164;return g<8?(v=n(a,C),_=n(o,C),p=v/_+e*(0,t.besselj)(g,0)*Math.log(g)):(C=64/C,v=n(s,C),_=n(l,C),p=Math.sqrt(e/g)*(Math.sin(S)*v+Math.cos(S)*_*8/g)),p}U(u,"bessel0");const c=[8511.937935,-4237922726e-3,7349264551e-1,-51534381390,127527439e4,-4900604943e3],d=[1,354.9632885,102042.605,2245904002e-2,3733650367,424441966400,249958057e5],h=[-240337019e-15,2457520174e-15,-3516396496e-14,.00183105,1],f=[105787412e-15,-88228987e-14,8449199096e-15,-.0002002690873,.04687499995];function m(g){let p=0,v=0,_=0,C=g*g;const S=g-2.356194491;return g<8?(v=g*n(c,C),_=n(d,C),p=v/_+e*((0,t.besselj)(g,1)*Math.log(g)-1/g)):(C=64/C,v=n(h,C),_=n(f,C),p=Math.sqrt(e/g)*(Math.sin(S)*v+Math.cos(S)*_*8/g)),p}return U(m,"bessel1"),i(u,m,1,-1)})(),t.besseli=(()=>{const a=[.0045813,.0360768,.2659732,1.2067492,3.0899424,3.5156229,1],o=[.00392377,-.01647633,.02635537,-.02057706,.00916281,-.00157565,.00225319,.01328592,.39894228];function s(d){return d<=3.75?n(a,d*d/(3.75*3.75)):Math.exp(Math.abs(d))/Math.sqrt(Math.abs(d))*n(o,3.75/Math.abs(d))}U(s,"bessel0");const l=[32411e-8,.00301532,.02658733,.15084934,.51498869,.87890594,.5],u=[-.00420059,.01787654,-.02895312,.02282967,-.01031555,.00163801,-.00362018,-.03988024,.39894228];function c(d){return d<3.75?d*n(l,d*d/(3.75*3.75)):(d<0?-1:1)*Math.exp(Math.abs(d))/Math.sqrt(Math.abs(d))*n(u,3.75/Math.abs(d))}return U(c,"bessel1"),U(function d(h,f){const m=Math.round(f);if(m===0)return s(h);if(m===1)return c(h);if(m<0)return Number.NaN;if(Math.abs(h)===0)return 0;if(h===1/0)return 1/0;let g=0,p;const v=2/Math.abs(h);let _=0,C=1,S=0;const b=2*Math.round((m+Math.round(Math.sqrt(40*m)))/2);for(p=b;p>0;p--)if(S=p*v*C+_,_=C,C=S,Math.abs(C)>1e10&&(C*=1e-10,_*=1e-10,g*=1e-10),p===m&&(g=_),b-p>100&&g===0)return Number.NaN;return g*=d(h,0)/C,h<0&&m%2?-g:g},"besseli2")})(),t.besselk=(()=>{const a=[74e-7,1075e-7,.00262698,.0348859,.23069756,.4227842,-.57721566],o=[53208e-8,-.0025154,.00587872,-.01062446,.02189568,-.07832358,1.25331414];function s(d){return d<=2?-Math.log(d/2)*(0,t.besseli)(d,0)+n(a,d*d/4):Math.exp(-d)/Math.sqrt(d)*n(o,2/d)}U(s,"bessel0");const l=[-4686e-8,-.00110404,-.01919402,-.18156897,-.67278579,.15443144,1],u=[-68245e-8,.00325614,-.00780353,.01504268,-.0365562,.23498619,1.25331414];function c(d){return d<=2?Math.log(d/2)*(0,t.besseli)(d,1)+1/d*n(l,d*d/4):Math.exp(-d)/Math.sqrt(d)*n(u,2/d)}return U(c,"bessel1"),i(s,c,2,1)})()})(e7||(e7={}));function nL(t){return/^[01]{1,10}$/.test(t)}U(nL,"isValidBinaryNumber");function rL(t){return/^[0-7]{1,10}$/.test(t)}U(rL,"isValidOctalNumber");function iL(t){return/^[0-9A-Fa-f]{1,10}$/.test(t)}U(iL,"isValidHexadecimalNumber");function xg(t){if(t===0)return 0;const e=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,15626441722e-18,-85238095915e-18,6529054439e-18,5059343495e-18,-991364156e-18,-227365122e-18,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18];let n=t,r=!1;n<0&&(n=-n,r=!0);const i=2/(2+n),a=4*i-2;let o=0,s=0,l;for(let c=e.length-1;c>0;c--)l=o,o=a*o-s+e[c],s=l;const u=i*Math.exp(-n*n+.5*(e[0]+a*o)-s);return r?u-1:1-u}U(xg,"erf");const WAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue(),u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);const c=e7.besseli(l,u);return Number.isNaN(c)||!Number.isFinite(c)?I.create(D.NUM):ee.create(c)}};U(WAe,"Besseli");let GRt=WAe;const zAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue(),u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);const c=e7.besselj(l,u);return Number.isNaN(c)||!Number.isFinite(c)?I.create(D.NUM):ee.create(c)}};U(zAe,"Besselj");let QRt=zAe;const qAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue(),u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);const c=e7.besselk(l,u);return Number.isNaN(c)||!Number.isFinite(c)?I.create(D.NUM):ee.create(c)}};U(qAe,"Besselk");let KRt=qAe;const YAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue(),u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);const c=e7.bessely(l,u);return Number.isNaN(c)||!Number.isFinite(c)?I.create(D.NUM):ee.create(c)}};U(YAe,"Bessely");let ZRt=YAe;const XAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`;if(!nL(o))return I.create(D.NUM);let s;return o.length===10&&o.substring(0,1)==="1"?s=Number.parseInt(o.substring(1),2)-512:s=Number.parseInt(o,2),ee.create(s)}};U(XAe,"Bin2dec");let JRt=XAe;const GAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:c,errorObject:d,variants:h}=Nn(n);if(c)return d;const[f]=h;if(r=Math.floor(+f.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!nL(l))return I.create(D.NUM);let u;if(l.length===10&&l.substring(0,1)==="1")u=(0xfffffffe00+Number.parseInt(l.substring(1),2)).toString(16);else if(u=Number.parseInt(l,2).toString(16),n){if(r<u.length)return I.create(D.NUM);u="0".repeat(r-u.length)+u}return Xn.create(u.toLocaleUpperCase())}};U(GAe,"Bin2hex");let eAt=GAe;const QAe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:c,errorObject:d,variants:h}=Nn(n);if(c)return d;const[f]=h;if(r=Math.floor(+f.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!nL(l))return I.create(D.NUM);let u;if(l.length===10&&l.substring(0,1)==="1")u=(1073741312+Number.parseInt(l.substring(1),2)).toString(8);else if(u=Number.parseInt(l,2).toString(8),n){if(r<u.length)return I.create(D.NUM);u="0".repeat(r-u.length)+u}return Xn.create(u)}};U(QAe,"Bin2oct");let tAt=QAe;const KAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;let h=o.get(u,c);if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue(),m=+h.getValue();if(f<0||m<0||Math.floor(f)!==f||Math.floor(m)!==m||f>0xffffffffffff||m>0xffffffffffff)return I.create(D.NUM);const g=f&m;return ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(KAe,"Bitand");let nAt=KAe;const ZAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;let h=o.get(u,c);if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue();let m=+h.getValue();if(f<0||Math.floor(f)!==f||f>0xffffffffffff||Math.abs(m)>53)return I.create(D.NUM);m=Math.trunc(m);const g=Number(m>=0?BigInt(f)<<BigInt(m):BigInt(f)>>BigInt(-m));return g>0xffffffffffff?I.create(D.NUM):ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(ZAe,"Bitlshift");let rAt=ZAe;const JAe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;let h=o.get(u,c);if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue(),m=+h.getValue();if(f<0||m<0||Math.floor(f)!==f||Math.floor(m)!==m||f>0xffffffffffff||m>0xffffffffffff)return I.create(D.NUM);const g=Number(BigInt(f)|BigInt(m));return ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(JAe,"Bitor");let iAt=JAe;const ewe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;let h=o.get(u,c);if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue();let m=+h.getValue();if(f<0||Math.floor(f)!==f||f>0xffffffffffff||Math.abs(m)>53)return I.create(D.NUM);m=Math.trunc(m);const g=Number(m>=0?BigInt(f)>>BigInt(m):BigInt(f)<<BigInt(-m));return g>0xffffffffffff?I.create(D.NUM):ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(ewe,"Bitrshift");let aAt=ewe;const twe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;let h=o.get(u,c);if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue(),m=+h.getValue();if(f<0||m<0||Math.floor(f)!==f||Math.floor(m)!==m||f>0xffffffffffff||m>0xffffffffffff)return I.create(D.NUM);const g=f^m;return ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(twe,"Bitxor");let oAt=twe;At.prototype.cos=function(){const t=this.toNumber();return new At(Math.cos(t))};var _i;let oa=(_i=class{constructor(t){if(x(this,"_inumber",""),x(this,"_realNum",0),x(this,"_iNum",0),x(this,"_suffix",""),x(this,"_isError",!1),`${t}`.trim()===""){this._isError=!0;return}this._inumber=t,this._getImReal(),this._getImAginary(),this._getImSuffix()}static getComplex(t,e,n){const r=new At(t).toSignificantDigits(15).toNumber(),i=new At(e).toSignificantDigits(15).toNumber(),a=n===""?"i":n;let o;if(r===0&&i===0)o=0;else if(r===0)o=i===1?a:`${i}${a}`;else if(i===0)o=r;else{const s=i>0?"+":"",l=i===1?a:`${i}${a}`;o=`${r}${s}${l}`}return o}static createByComplexStr(t,e,n){const r=_i.getComplex(t,e,n);return new _i(r)}_getImReal(){if(this._inumber===0||this._inumber==="0"){this._realNum=0;return}const t=`${this._inumber}`;if(["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(t)>=0){this._realNum=0;return}let e=t.indexOf("+"),n=t.indexOf("-");e===0&&(e=t.indexOf("+",1)),n===0&&(n=t.indexOf("-",1));const r=t.substring(t.length-1,t.length),i=r==="i"||r==="j";if(e>=0||n>=0){if(!i){this._isError=!0;return}e>=0?Number.isNaN(+t.substring(0,e))||Number.isNaN(+t.substring(e+1,t.length-1))?this._isError=!0:this._realNum=+t.substring(0,e):Number.isNaN(+t.substring(0,n))||Number.isNaN(+t.substring(n+1,t.length-1))?this._isError=!0:this._realNum=+t.substring(0,n)}else i?Number.isNaN(+t.substring(0,t.length-1))?this._isError=!0:this._realNum=0:Number.isNaN(+t)?this._isError=!0:this._realNum=+t}_getImAginary(){if(this._isError)return;if(this._inumber===0||this._inumber==="0"){this._iNum=0;return}let t=`${this._inumber}`;if(["i","j"].indexOf(t)>=0){this._iNum=1;return}t=t.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j");let e=t.indexOf("+"),n=t.indexOf("-");e===0&&(e=t.indexOf("+",1)),n===0&&(n=t.indexOf("-",1));const r=t.substring(t.length-1,t.length),i=r==="i"||r==="j";if(e>=0||n>=0){if(!i){this._isError=!0;return}e>=0?Number.isNaN(+t.substring(0,e))||Number.isNaN(+t.substring(e+1,t.length-1))?this._isError=!0:this._iNum=+t.substring(e+1,t.length-1):Number.isNaN(+t.substring(0,n))||Number.isNaN(+t.substring(n+1,t.length-1))?this._isError=!0:this._iNum=-+t.substring(n+1,t.length-1)}else i?Number.isNaN(+t.substring(0,t.length-1))?this._isError=!0:this._iNum=+t.substring(0,t.length-1):Number.isNaN(+t)?this._isError=!0:this._iNum=0}_getImSuffix(){const t=`${this._inumber}`,e=t.substring(t.length-1);this._suffix=e==="i"||e==="j"?e:""}getRealNum(){return this._realNum}getINum(){return this._iNum}getSuffix(){return this._suffix}isError(){return this._isError}toString(){return _i.getComplex(this._realNum,this._iNum,this._suffix)}isDifferentSuffixes(t){const e=t.getSuffix();return this._suffix===""||e===""?!1:this._suffix!==e}Abs(){return At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))).toSignificantDigits(16).toNumber()}Argument(){const t=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2)));let e=At.acos(new At(this._realNum).div(t)).toSignificantDigits(16).toNumber();return this._iNum<0&&(e=-e),e}Conjugate(){return _i.getComplex(this._realNum,-this._iNum,this._suffix)}Cos(){if(this._iNum){const t=At.cos(this._realNum).mul(At.cosh(this._iNum)).toNumber(),e=At.sin(this._realNum).mul(At.sinh(this._iNum)).negated().toNumber();return _i.getComplex(t,e,this._suffix)}else{const t=At.cos(this._realNum).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Cosh(){if(!Number.isFinite(Math.sinh(this._realNum))||!Number.isFinite(Math.cosh(this._realNum)))return this._isError=!0,"";if(this._iNum){const t=At.cosh(this._realNum).mul(At.cos(this._iNum)).toNumber(),e=At.sinh(this._realNum).mul(At.sin(this._iNum)).toNumber();return _i.getComplex(t,e,this._suffix)}else{const t=At.cosh(this._realNum).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Cot(){if(this._iNum){const t=At.cosh(this._iNum*2).sub(At.cos(this._realNum*2)),e=At.sin(this._realNum*2).div(t).toNumber(),n=At.sinh(this._iNum*2).div(t).negated().toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=new At(1).div(At.tan(this._realNum)).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Csc(){if(this._iNum){const t=At.cosh(this._iNum*2).sub(At.cos(this._realNum*2)),e=At.sin(this._realNum).mul(At.cosh(this._iNum)).mul(2).div(t).toNumber(),n=At.cos(this._realNum).mul(At.sinh(this._iNum)).mul(-2).div(t).toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=new At(1).div(At.sin(this._realNum)).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Csch(){if(!Number.isFinite(Math.sinh(this._realNum))||!Number.isFinite(Math.cosh(this._realNum)))return _i.getComplex(0,0,this._suffix);if(this._iNum){const t=At.cosh(this._realNum*2).sub(At.cos(this._iNum*2)),e=At.sinh(this._realNum).mul(At.cos(this._iNum)).mul(2).div(t).toNumber(),n=At.cosh(this._realNum).mul(At.sin(this._iNum)).mul(-2).div(t).toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=new At(1).div(At.sinh(this._realNum)).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Div(t){const e=new At(this._realNum),n=new At(this._iNum),r=new At(t.getRealNum()),i=new At(t.getINum()),a=r.mul(r).add(i.mul(i)),o=e.mul(r).add(n.mul(i)).div(a).toNumber(),s=n.mul(r).sub(e.mul(i)).div(a).toNumber(),l=this._suffix===""?t.getSuffix():this._suffix;return _i.getComplex(o,s,l)}Exp(){if(!Number.isFinite(Math.exp(this._realNum)))return this._isError=!0,"";const t=At.exp(this._realNum).mul(At.cos(this._iNum)).toNumber(),e=At.exp(this._realNum).mul(At.sin(this._iNum)).toNumber();return _i.getComplex(t,e,this._suffix)}Ln(){const t=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))),e=At.ln(t).toNumber(),n=At.acos(new At(this._realNum).div(t)).toNumber();return _i.getComplex(e,n,this._suffix)}Log10(){const t=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))),e=At.ln(t);let n=At.acos(new At(this._realNum).div(t));this._iNum<0&&(n=n.negated());const r=At.ln(10),i=new At(0),a=r.mul(r).add(i.mul(i)),o=e.mul(r).add(n.mul(i)).div(a).toNumber(),s=n.mul(r).sub(e.mul(i)).div(a).toNumber();return _i.getComplex(o,s,this._suffix)}Log2(){const t=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))),e=At.ln(t);let n=At.acos(new At(this._realNum).div(t));this._iNum<0&&(n=n.negated());const r=At.ln(2),i=new At(0),a=r.mul(r).add(i.mul(i)),o=e.mul(r).add(n.mul(i)).div(a).toNumber(),s=n.mul(r).sub(e.mul(i)).div(a).toNumber();return _i.getComplex(o,s,this._suffix)}Power(t){if(this._realNum===0&&this._iNum===0)return t>0?_i.getComplex(this._realNum,this._iNum,this._suffix):(this._isError=!0,"");let e=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))),n=At.acos(new At(this._realNum).div(e));this._iNum<0&&(n=n.negated()),e=At.pow(e,t),n=n.mul(t);const r=At.cos(n).mul(e).toNumber(),i=At.sin(n).mul(e).toNumber();return!Number.isFinite(r)||!Number.isFinite(i)?(this._isError=!0,""):_i.getComplex(r,i,this._suffix)}Product(t){const e=new At(this._realNum),n=new At(this._iNum),r=new At(t.getRealNum()),i=new At(t.getINum()),a=e.mul(r).sub(n.mul(i)).toNumber(),o=e.mul(i).add(n.mul(r)).toNumber(),s=this._suffix===""?t.getSuffix():this._suffix;return _i.getComplex(a,o,s)}Sec(){if(this._iNum){const t=At.cosh(this._iNum*2).add(At.cos(this._realNum*2)),e=At.cos(this._realNum).mul(At.cosh(this._iNum)).mul(2).div(t).toNumber(),n=At.sin(this._realNum).mul(At.sinh(this._iNum)).mul(2).div(t).toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=new At(1).div(At.cos(this._realNum)).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Sech(){if(!Number.isFinite(Math.sinh(this._realNum*2))||!Number.isFinite(Math.cosh(this._realNum*2)))return _i.getComplex(0,0,this._suffix);if(this._iNum){const t=At.cosh(this._realNum*2).add(At.cos(this._iNum*2)),e=At.cosh(this._realNum).mul(At.cos(this._iNum)).mul(2).div(t).toNumber(),n=At.sinh(this._realNum).mul(At.sin(this._iNum)).mul(-2).div(t).toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=new At(1).div(At.cosh(this._realNum)).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Sin(){if(this._iNum){const t=At.sin(this._realNum).mul(At.cosh(this._iNum)).toNumber(),e=At.cos(this._realNum).mul(At.sinh(this._iNum)).toNumber();return _i.getComplex(t,e,this._suffix)}else{const t=At.sin(this._realNum).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Sinh(){if(!Number.isFinite(Math.sinh(this._realNum))||!Number.isFinite(Math.cosh(this._realNum)))return this._isError=!0,"";if(this._iNum){const t=At.sinh(this._realNum).mul(At.cos(this._iNum)).toNumber(),e=At.cosh(this._realNum).mul(At.sin(this._iNum)).toNumber();return _i.getComplex(t,e,this._suffix)}else{const t=At.sinh(this._realNum).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}Sqrt(){const t=At.sqrt(At.pow(this._realNum,2).add(At.pow(this._iNum,2))),e=At.sqrt(t);let n=At.acos(new At(this._realNum).div(t));this._iNum<0&&(n=n.negated());const r=e.mul(At.cos(n.div(2).toNumber())).toNumber(),i=e.mul(At.sin(n.div(2))).toNumber();return _i.getComplex(r,i,this._suffix)}Sub(t){const e=new At(this._realNum),n=new At(this._iNum),r=new At(t.getRealNum()),i=new At(t.getINum()),a=e.sub(r).toNumber(),o=n.sub(i).toNumber(),s=this._suffix===""?t.getSuffix():this._suffix;return _i.getComplex(a,o,s)}Sum(t){const e=new At(this._realNum),n=new At(this._iNum),r=new At(t.getRealNum()),i=new At(t.getINum()),a=e.add(r).toNumber(),o=n.add(i).toNumber(),s=this._suffix===""?t.getSuffix():this._suffix;return _i.getComplex(a,o,s)}Tan(){if(this._iNum){const t=At.cos(this._realNum*2).add(At.cosh(this._iNum*2)),e=At.sin(this._realNum*2).div(t).toNumber(),n=At.sinh(this._iNum*2).div(t).toNumber();return _i.getComplex(e,n,this._suffix)}else{const t=At.tan(this._realNum).toNumber();return _i.getComplex(t,this._iNum,this._suffix)}}},U(_i,"Complex"),_i);const nwe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=r??Xn.create("i"),{isError:a,errorObject:o,variants:s}=Nn(e,n,i);if(a)return o;const[l,u,c]=s,d=+l.getValue(),h=+u.getValue(),f=`${c.getValue()}`;if(Number.isNaN(d)||Number.isNaN(h)||f!=="i"&&f!=="j")return I.create(D.VALUE);const m=oa.getComplex(d,h,f);return typeof m=="number"?ee.create(m):Xn.create(m)}};U(nwe,"Complex");let sAt=nwe;const rwe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3),x(this,"_units",[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["centigrade","C",["cel"],"temperature",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m3",["m^3"],"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,416818182544058e-5],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,758660370370369e-22],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["fahrenheit","F",["fah"],"temperature",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519538e-3],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["rankine","Rank",null,"temperature",!1,!0,1],["reaumur","Reau",null,"temperature",!1,!0,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988110336e-6],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]]),x(this,"_binaryPrefixes",{Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,1152921504606847e3,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]}),x(this,"_unitPrefixes",{Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]})}calculate(e,n,r){const{isError:i,errorObject:a,variants:o}=Nn(e,n,r);if(i)return a;const[s,l,u]=o,c=+s.getValue(),d=`${l.getValue()}`,h=`${u.getValue()}`;if(Number.isNaN(c))return I.create(D.VALUE);let f,m=1,g,p=1;const{_from:v,_to:_}=this._lookupFromAndToUnits(d,h);if(f=v,g=_,f===null){const{_from:S,_fromMultiplier:b}=this._lookupFromPrefix(d);f=S,m=b}if(g===null){const{_to:S,_toMultiplier:b}=this._lookupToPrefix(h);g=S,p=b}if(f===null||g===null||f[3]!==g[3])return I.create(D.NA);let C;return f[3]==="temperature"?(C=this._getTemperatureConversion(c,f[1],g[1]),C=+C.toFixed(2)):C=c*f[6]*m/(g[6]*p),ee.create(C)}_lookupFromAndToUnits(e,n){let r=null,i=null,a;for(let o=0;o<this._units.length;o++)a=this._units[o][2]===null?[]:this._units[o][2],(this._units[o][1]===e||a.indexOf(e)>=0)&&(r=this._units[o]),(this._units[o][1]===n||a.indexOf(n)>=0)&&(i=this._units[o]);return{_from:r,_to:i}}_lookupFromPrefix(e){let n=null,r=1,i=e,a;const o=this._binaryPrefixes[e.substring(0,2)];let s=this._unitPrefixes[e.substring(0,1)];e.substring(0,2)==="da"&&(s=["dekao",10,"da"]),o?(r=o[2],i=e.substring(2)):s&&(r=s[1],i=e.substring(s[2].length));for(let l=0;l<this._units.length;l++)a=this._units[l][2]===null?[]:this._units[l][2],(this._units[l][1]===i||a.indexOf(i)>=0)&&(n=this._units[l]);return{_from:n,_fromMultiplier:r}}_lookupToPrefix(e){let n=null,r=1,i=e,a;const o=this._binaryPrefixes[e.substring(0,2)];let s=this._unitPrefixes[e.substring(0,1)];e.substring(0,2)==="da"&&(s=["dekao",10,"da"]),o?(r=o[2],i=e.substring(2)):s&&(r=s[1],i=e.substring(s[2].length));for(let l=0;l<this._units.length;l++)a=this._units[l][2]===null?[]:this._units[l][2],(this._units[l][1]===i||a.indexOf(i)>=0)&&(n=this._units[l]);return{_to:n,_toMultiplier:r}}_getTemperatureConversion(e,n,r){switch(n){case"C":return this._centigradeConversion(e,r);case"F":return this._fahrenheitConversion(e,r);case"K":return this._kelvinConversion(e,r);case"Rank":return this._rankineConversion(e,r);case"Reau":return this._reaumurConversion(e,r);default:return e}}_centigradeConversion(e,n){switch(n){case"F":return e*9/5+32;case"K":return e+273.15;case"Rank":return(e+273.15)*9/5;case"Reau":return e*4/5;default:return e}}_fahrenheitConversion(e,n){switch(n){case"C":return(e-32)*5/9;case"K":return(e-32)*5/9+273.15;case"Rank":return e+459.67;case"Reau":return(e-32)*4/9;default:return e}}_kelvinConversion(e,n){switch(n){case"C":return e-273.15;case"F":return(e-273.15)*9/5+32;case"Rank":return e*9/5;case"Reau":return(e-273.15)*4/5;default:return e}}_rankineConversion(e,n){switch(n){case"C":return(e-491.67)*5/9;case"F":return e-459.67;case"K":return e*5/9;case"Reau":return(e-491.67)*4/9;default:return e}}_reaumurConversion(e,n){switch(n){case"C":return e*5/4;case"F":return e*9/4+32;case"K":return e*5/4+273.15;case"Rank":return e*9/4+491.67;default:return e}}};U(rwe,"Convert");let lAt=rwe;const iwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:c,errorObject:d,variants:h}=Nn(n);if(c)return d;const[f]=h;if(r=Math.floor(+f.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=Math.trunc(+s.getValue());if(Number.isNaN(l))return I.create(D.VALUE);if(!/^-?[0-9]{1,3}$/.test(`${l}`)||l<-512||l>511)return I.create(D.NUM);let u;if(l<0){const c=(512+l).toString(2);u=`1${"0".repeat(9-c.length)}${c}`}else if(u=Number.parseInt(`${l}`,10).toString(2),n){if(r<u.length)return I.create(D.NUM);u="0".repeat(r-u.length)+u}return Xn.create(u)}};U(iwe,"Dec2bin");let uAt=iwe;const awe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:c,errorObject:d,variants:h}=Nn(n);if(c)return d;const[f]=h;if(r=Math.floor(+f.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=Math.trunc(+s.getValue());if(Number.isNaN(l))return I.create(D.VALUE);if(!/^-?[0-9]{1,12}$/.test(`${l}`)||l<-549755813888||l>549755813887)return I.create(D.NUM);let u;if(l<0)u=(1099511627776+l).toString(16);else if(u=Number.parseInt(`${l}`,10).toString(16),n){if(r<u.length)return I.create(D.NUM);u="0".repeat(r-u.length)+u}return Xn.create(u.toLocaleUpperCase())}};U(awe,"Dec2hex");let cAt=awe;const owe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:c,errorObject:d,variants:h}=Nn(n);if(c)return d;const[f]=h;if(r=Math.floor(+f.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=Math.trunc(+s.getValue());if(Number.isNaN(l))return I.create(D.VALUE);if(!/^-?[0-9]{1,9}$/.test(`${l}`)||l<-536870912||l>536870911)return I.create(D.NUM);let u;if(l<0)u=(1073741824+l).toString(8);else if(u=Number.parseInt(`${l}`,10).toString(8),n){if(r<u.length)return I.create(D.NUM);u="0".repeat(r-u.length)+u}return Xn.create(u)}};U(owe,"Dec2oct");let dAt=owe;const swe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){const r=n??ee.create(0),{isError:i,errorObject:a,variants:o}=Nn(e,r);if(i)return a;const[s,l]=o,u=+s.getValue(),c=+l.getValue();if(Number.isNaN(u)||Number.isNaN(c))return I.create(D.VALUE);const d=u===c?1:0;return ee.create(d)}};U(swe,"Delta");let hAt=swe;const lwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){let r;if(n){const{isError:i,errorObject:a,variants:o}=Nn(e,n);if(i)return a;const[s,l]=o,u=+s.getValue(),c=+l.getValue();if(Number.isNaN(u)||Number.isNaN(c))return I.create(D.VALUE);r=xg(c)-xg(u)}else{const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=+s.getValue();if(Number.isNaN(l))return I.create(D.VALUE);r=xg(l)}return ee.create(r)}};U(lwe,"Erf");let fAt=lwe;const uwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=+a.getValue();if(Number.isNaN(o))return I.create(D.VALUE);const s=xg(o);return ee.create(s)}};U(uwe,"ErfPrecise");let mAt=uwe;const cwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=+a.getValue();if(Number.isNaN(o))return I.create(D.VALUE);const s=1-xg(o);return ee.create(s)}};U(cwe,"Erfc");let gAt=cwe;const dwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=+a.getValue();if(Number.isNaN(o))return I.create(D.VALUE);const s=1-xg(o);return ee.create(s)}};U(dwe,"ErfcPrecise");let pAt=dwe;const hwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);const r=n??ee.create(0),{isError:i,errorObject:a,variants:o}=Nn(e,r);if(i)return a;const[s,l]=o,u=+s.getValue(),c=+l.getValue();if(Number.isNaN(u)||Number.isNaN(c))return I.create(D.VALUE);const d=u>=c?1:0;return ee.create(d)}};U(hwe,"Gestep");let vAt=hwe;const fwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:h,errorObject:f,variants:m}=Nn(n);if(h)return f;const[g]=m;if(r=Math.floor(+g.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!iL(l))return I.create(D.NUM);const u=l.length===10&&l.substring(0,1).toLocaleUpperCase()==="F",c=u?Number.parseInt(l,16)-1099511627776:Number.parseInt(l,16);if(c<-512||c>511)return I.create(D.NUM);let d;if(u){const h=(512+c).toString(2);d=`1${"0".repeat(9-h.length)}${h}`}else if(d=c.toString(2),n){if(r<d.length)return I.create(D.NUM);d="0".repeat(r-d.length)+d}return Xn.create(d)}};U(fwe,"Hex2bin");let _At=fwe;const mwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`;if(!iL(o))return I.create(D.NUM);let s=Number.parseInt(o,16);return s>=549755813888&&(s-=1099511627776),ee.create(s)}};U(mwe,"Hex2dec");let CAt=mwe;const gwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:d,errorObject:h,variants:f}=Nn(n);if(d)return h;const[m]=f;if(r=Math.floor(+m.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!iL(l))return I.create(D.NUM);const u=Number.parseInt(l,16);if(u>536870911&&u<0xffe0000000)return I.create(D.NUM);let c;if(u>=0xffe0000000)c=(u-0xffc0000000).toString(8);else if(c=u.toString(8),n){if(r<c.length)return I.create(D.NUM);c="0".repeat(r-c.length)+c}return Xn.create(c)}};U(gwe,"Hex2oct");let SAt=gwe;const pwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Abs();return ee.create(l)}};U(pwe,"Imabs");let bAt=pwe;const vwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.getINum();return ee.create(l)}};U(vwe,"Imaginary");let yAt=vwe;const _we=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);if(s.getRealNum()===0&&s.getINum()===0)return I.create(D.DIV_BY_ZERO);const l=s.Argument();return ee.create(l)}};U(_we,"Imargument");let EAt=_we;const Cwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Conjugate();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Cwe,"Imconjugate");let RAt=Cwe;const Swe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Cos();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Swe,"Imcos");let AAt=Swe;const bwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Cosh();return s.isError()?I.create(D.NUM):typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(bwe,"Imcosh");let wAt=bwe;const ywe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Cot();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(ywe,"Imcot");let DAt=ywe;const Ewe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Csc();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Ewe,"Imcsc");let IAt=Ewe;const Rwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Csch();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Rwe,"Imcsch");let PAt=Rwe;const Awe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=`${o.getValue()}`,u=`${s.getValue()}`,c=new oa(l),d=new oa(u);if(c.isError()||d.isError()||c.isDifferentSuffixes(d)||d.getRealNum()===0&&d.getINum()===0)return I.create(D.NUM);const h=c.Div(d);return typeof h=="number"||Kr(h)?ee.create(+h):Xn.create(h)}};U(Awe,"Imdiv");let MAt=Awe;const wwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Exp();return s.isError()?I.create(D.NUM):typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(wwe,"Imexp");let TAt=wwe;const Dwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Ln();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Dwe,"Imln");let LAt=Dwe;const Iwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Log10();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Iwe,"Imlog10");let xAt=Iwe;const Pwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError()||s.getRealNum()===0&&s.getINum()===0)return I.create(D.NUM);const l=s.Log2();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Pwe,"Imlog2");let OAt=Pwe;const Mwe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=`${o.getValue()}`,u=new oa(l);if(u.isError())return I.create(D.NUM);const c=+s.getValue();if(Number.isNaN(c))return I.create(D.VALUE);const d=u.Power(c);return u.isError()?I.create(D.NUM):typeof d=="number"||Kr(d)?ee.create(+d):Xn.create(d)}};U(Mwe,"Impower");let NAt=Mwe;const Twe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n="";for(let r=0;r<e.length;r++){if(n instanceof I)return n;const i=e[r];if(i.isArray()){let a=!1,o;if(i.iterator(s=>{if(n=this._handleSingleObject(s,n),n instanceof I)return a=!0,o=n,!1}),a)return o}else n=this._handleSingleObject(i,n)}return n instanceof I?n:typeof n=="number"||Kr(n)?ee.create(+n):Xn.create(n)}_handleSingleObject(e,n){let r=n;if(e.isError())return e;if(e.isBoolean())return I.create(D.VALUE);const i=`${e.getValue()}`;if(typeof n!="number"&&!n){const a=new oa(i);if(a.isError())return I.create(D.NUM);r=a.toString()}else{const a=new oa(n),o=new oa(i);if(a.isError()||o.isError())return I.create(D.NUM);if(a.isDifferentSuffixes(o))return I.create(D.VALUE);r=a.Product(o)}return r}};U(Twe,"Improduct");let kAt=Twe;const Lwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.getRealNum();return ee.create(l)}};U(Lwe,"Imreal");let FAt=Lwe;const xwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Sec();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(xwe,"Imsec");let VAt=xwe;const Owe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Sech();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Owe,"Imsech");let BAt=Owe;const Nwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Sin();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Nwe,"Imsin");let UAt=Nwe;const kwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Sinh();return s.isError()?I.create(D.NUM):typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(kwe,"Imsinh");let HAt=kwe;const Fwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);if(s.getRealNum()===0&&s.getINum()===0)return ee.create(0);const l=s.Sqrt();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Fwe,"Imsqrt");let jAt=Fwe;const Vwe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=`${o.getValue()}`,u=`${s.getValue()}`,c=new oa(l),d=new oa(u);if(c.isError()||d.isError()||c.isDifferentSuffixes(d))return I.create(D.NUM);const h=c.Sub(d);return typeof h=="number"||Kr(h)?ee.create(+h):Xn.create(h)}};U(Vwe,"Imsub");let $At=Vwe;const Bwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n="";for(let r=0;r<e.length;r++){if(n instanceof I)return n;const i=e[r];if(i.isArray()){let a=!1,o;if(i.iterator(s=>{if(n=this._handleSingleObject(s,n),n instanceof I)return a=!0,o=n,!1}),a)return o}else n=this._handleSingleObject(i,n)}return n instanceof I?n:typeof n=="number"||Kr(n)?ee.create(+n):Xn.create(n)}_handleSingleObject(e,n){let r=n;if(e.isError())return e;if(e.isBoolean())return I.create(D.VALUE);const i=`${e.getValue()}`;if(typeof n!="number"&&!n){const a=new oa(i);if(a.isError())return I.create(D.NUM);r=a.toString()}else{const a=new oa(n),o=new oa(i);if(a.isError()||o.isError())return I.create(D.NUM);if(a.isDifferentSuffixes(o))return I.create(D.VALUE);r=a.Sum(o)}return r}};U(Bwe,"Imsum");let WAt=Bwe;const Uwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`,s=new oa(o);if(s.isError())return I.create(D.NUM);const l=s.Tan();return typeof l=="number"||Kr(l)?ee.create(+l):Xn.create(l)}};U(Uwe,"Imtan");let zAt=Uwe;const Hwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:h,errorObject:f,variants:m}=Nn(n);if(h)return f;const[g]=m;if(r=Math.floor(+g.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!rL(l))return I.create(D.NUM);const u=l.length===10&&l.substring(0,1)==="7",c=u?Number.parseInt(l,8)-1073741824:Number.parseInt(l,8);if(c<-512||c>511)return I.create(D.NUM);let d;if(u){const h=(512+c).toString(2);d=`1${"0".repeat(9-h.length)}${h}`}else if(d=c.toString(2),n){if(r<d.length)return I.create(D.NUM);d="0".repeat(r-d.length)+d}return Xn.create(d)}};U(Hwe,"Oct2bin");let qAt=Hwe;const jwe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const{isError:n,errorObject:r,variants:i}=Nn(e);if(n)return r;const[a]=i,o=`${a.getValue()}`;if(!rL(o))return I.create(D.NUM);let s=Number.parseInt(o,8);return s>=536870912&&(s-=1073741824),ee.create(s)}};U(jwe,"Oct2dec");let YAt=jwe;const $we=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isNull())return I.create(D.NA);let r=0;if(n){const{isError:d,errorObject:h,variants:f}=Nn(n);if(d)return h;const[m]=f;if(r=Math.floor(+m.getValue()),Number.isNaN(r))return I.create(D.VALUE);if(r<0||r>10)return I.create(D.NUM)}const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=`${s.getValue()}`;if(!rL(l))return I.create(D.NUM);const u=Number.parseInt(l,8);let c;if(u>=536870912)c=`ff${(u+3221225472).toString(16)}`;else if(c=u.toString(16),n){if(r<c.length)return I.create(D.NUM);c="0".repeat(r-c.length)+c}return Xn.create(c.toLocaleUpperCase())}};U($we,"Oct2hex");let XAt=$we;const Wwe=[[GRt,tn.BESSELI],[QRt,tn.BESSELJ],[KRt,tn.BESSELK],[ZRt,tn.BESSELY],[JRt,tn.BIN2DEC],[eAt,tn.BIN2HEX],[tAt,tn.BIN2OCT],[nAt,tn.BITAND],[rAt,tn.BITLSHIFT],[iAt,tn.BITOR],[aAt,tn.BITRSHIFT],[oAt,tn.BITXOR],[sAt,tn.COMPLEX],[lAt,tn.CONVERT],[uAt,tn.DEC2BIN],[cAt,tn.DEC2HEX],[dAt,tn.DEC2OCT],[hAt,tn.DELTA],[fAt,tn.ERF],[mAt,tn.ERF_PRECISE],[gAt,tn.ERFC],[pAt,tn.ERFC_PRECISE],[vAt,tn.GESTEP],[_At,tn.HEX2BIN],[CAt,tn.HEX2DEC],[SAt,tn.HEX2OCT],[bAt,tn.IMABS],[yAt,tn.IMAGINARY],[EAt,tn.IMARGUMENT],[RAt,tn.IMCONJUGATE],[AAt,tn.IMCOS],[wAt,tn.IMCOSH],[DAt,tn.IMCOT],[IAt,tn.IMCSC],[PAt,tn.IMCSCH],[MAt,tn.IMDIV],[TAt,tn.IMEXP],[LAt,tn.IMLN],[xAt,tn.IMLOG10],[OAt,tn.IMLOG2],[NAt,tn.IMPOWER],[kAt,tn.IMPRODUCT],[FAt,tn.IMREAL],[VAt,tn.IMSEC],[BAt,tn.IMSECH],[UAt,tn.IMSIN],[HAt,tn.IMSINH],[jAt,tn.IMSQRT],[$At,tn.IMSUB],[WAt,tn.IMSUM],[zAt,tn.IMTAN],[qAt,tn.OCT2BIN],[YAt,tn.OCT2DEC],[XAt,tn.OCT2HEX]];var Qt=(t=>(t.ACCRINT="ACCRINT",t.ACCRINTM="ACCRINTM",t.AMORDEGRC="AMORDEGRC",t.AMORLINC="AMORLINC",t.COUPDAYBS="COUPDAYBS",t.COUPDAYS="COUPDAYS",t.COUPDAYSNC="COUPDAYSNC",t.COUPNCD="COUPNCD",t.COUPNUM="COUPNUM",t.COUPPCD="COUPPCD",t.CUMIPMT="CUMIPMT",t.CUMPRINC="CUMPRINC",t.DB="DB",t.DDB="DDB",t.DISC="DISC",t.DOLLARDE="DOLLARDE",t.DOLLARFR="DOLLARFR",t.DURATION="DURATION",t.EFFECT="EFFECT",t.FV="FV",t.FVSCHEDULE="FVSCHEDULE",t.INTRATE="INTRATE",t.IPMT="IPMT",t.IRR="IRR",t.ISPMT="ISPMT",t.MDURATION="MDURATION",t.MIRR="MIRR",t.NOMINAL="NOMINAL",t.NPER="NPER",t.NPV="NPV",t.ODDFPRICE="ODDFPRICE",t.ODDFYIELD="ODDFYIELD",t.ODDLPRICE="ODDLPRICE",t.ODDLYIELD="ODDLYIELD",t.PDURATION="PDURATION",t.PMT="PMT",t.PPMT="PPMT",t.PRICE="PRICE",t.PRICEDISC="PRICEDISC",t.PRICEMAT="PRICEMAT",t.PV="PV",t.RATE="RATE",t.RECEIVED="RECEIVED",t.RRI="RRI",t.SLN="SLN",t.SYD="SYD",t.TBILLEQ="TBILLEQ",t.TBILLPRICE="TBILLPRICE",t.TBILLYIELD="TBILLYIELD",t.VDB="VDB",t.XIRR="XIRR",t.XNPV="XNPV",t.YIELD="YIELD",t.YIELDDISC="YIELDDISC",t.YIELDMAT="YIELDMAT",t))(Qt||{});function NS(t,e,n,r){const i=Af(t,e,n),{days:a}=aa(i,t,r);return a}U(NS,"calculateCoupdaybs");function Au(t,e,n,r){let i;if(r===1){const a=Af(t,e,n);let o=kr(a);o=hp(o,12/n);const s=Ea(o);a<0&&n===1?i=365:i=s-a}else r===3?i=365/n:i=360/n;return i}U(Au,"calculateCoupdays");function _ee(t,e,n){const r=kr(t);let i=kr(e);for(i.setUTCFullYear(r.getUTCFullYear()),i<r&&i.setUTCFullYear(i.getUTCFullYear()+1);i>r;)i=hp(i,-12/n);return i=hp(i,12/n),Ea(i)}U(_ee,"calculateCoupncd");function L0(t,e,n){let r=0;const i=kr(t);let a=kr(e);for(;a>i;)a=hp(a,-12/n),r++;return r}U(L0,"calculateCoupnum");function Af(t,e,n){const r=kr(t);let i=kr(e);for(i.setUTCFullYear(r.getUTCFullYear()),i<r&&i.setUTCFullYear(i.getUTCFullYear()+1);i>r;)i=hp(i,-12/n);return Ea(i)}U(Af,"calculateCouppcd");function Cee(t,e,n,r,i,a){const o=NS(t,e,i,a),s=Au(t,e,i,a),l=L0(t,e,i),u=(s-o)/s-1,c=r/i+1,d=n*100/i;let h=0,f=0;for(let p=1;p<=l;p++){const v=p+u,_=d/c**v;h+=v*_,f+=_}const m=l+u,g=100/c**m;return h+=m*g,f+=g,h/f/i}U(Cee,"calculateDuration");function t9(t,e,n,r,i){let a;if(t===0)a=(n+r)/e;else{const o=(1+t)**e;a=i===1?(r*t/(o-1)+n*t/(1-1/o))/(1+t):r*t/(o-1)+n*t/(1-1/o)}return-a}U(t9,"calculatePMT");function x0(t,e,n,r,i){let a;if(t===0)a=r+n*e;else{if(t===-1&&e===0)return Number.NaN;const o=(1+t)**e;a=i===1?r*o+n*(1+t)*(o-1)/t:r*o+n*(o-1)/t}return-a}U(x0,"calculateFV");function See(t,e,n,r,i,a){const o=t9(t,n,r,i,a);return(e===1?a===1?0:-r:a===1?x0(t,e-2,o,r,1)-o:x0(t,e-1,o,r,0))*t}U(See,"calculateIPMT");function bee(t,e){let n=0;for(let r=1;r<=e.length;r++)n+=e[r-1]/(1+t)**r;return n}U(bee,"calculateNpv");function yee(t,e,n,r,i,a,o,s,l){const u=Jm(n,r,l),c=Au(t,r,s,l);return u<c?zwe(t,e,n,r,i,a,o,s,l,u,c):qwe(t,e,n,r,i,a,o,s,l,c)}U(yee,"calculateOddFPrice");function zwe(t,e,n,r,i,a,o,s,l,u,c){let d=0;const h=L0(t,e,s),f=Jm(t,r,l);d+=o/(1+a/s)**(h-1+f/c),d+=100*i/s*u/c/(1+a/s)**(f/c);for(let g=2;g<=h;g++)d+=100*i/s/(1+a/s)**(g-1+f/c);const m=Jm(n,t,l);return d-=100*i/s*m/c,d}U(zwe,"calculateOddShortFirstCoupon");function qwe(t,e,n,r,i,a,o,s,l,u){let c=0;const d=L0(r,e,s),h=Ywe(r,t,12/s,!0);let f;if(l===2||l===3){const _=_ee(t,r,s);f=Jm(t,_,l)}else{const _=Af(t,r,s),{days:C}=aa(_,t,l);f=u-C}c+=o/(1+a/s)**(d+h+f/u);const m=L0(n,r,s);let g=r,p=0,v=0;for(let _=m;_>=1;_--){const C=m0(g,-12/s,!1),S=l===1?Jm(C,g,l):u,b=_>1?S:Jm(n,g,l);p+=b/S;const y=n>C?n:C,A=t<g?t:g,w=Jm(y,A,l);v+=w/S,g=C}c+=100*i/s*p/(1+a/s)**(h+f/u);for(let _=1;_<=d;_++)c+=100*i/s/(1+a/s)**(_+h+f/u);return c-=100*i/s*v,c}U(qwe,"calculateOddLongFirstCoupon");function Jm(t,e,n){const{days:r}=aa(t,e,n);return t<e?r:0}U(Jm,"getPositiveDaysBetween");function Eee(t,e,n){const r=kr(t),i=r.getUTCFullYear(),a=r.getUTCMonth(),o=r.getUTCDate(),s=dp(i,a,o),l=kr(e),u=l.getUTCFullYear(),c=l.getUTCMonth(),d=l.getUTCDate(),h=dp(u,c,d);return!(o!==d&&!(s&&h)||Math.abs((u-i)*12+(c-a))%(12/n)!==0)}U(Eee,"validDaysBetweenIsWholeFrequencyByTwoDate");function Xp(t,e,n){return Af(t,e,n)>=0}U(Xp,"validCouppcdIsGte0ByTwoDate");function m0(t,e,n){let r=kr(t);if(r=hp(r,e),n){const i=r.getUTCFullYear(),a=r.getUTCMonth(),o=xS(i,a);r.setUTCDate(o)}return Ea(r)}U(m0,"getDateSerialNumberByMonths");function Ywe(t,e,n,r){const i=kr(t),a=kr(e),o=i.getUTCFullYear(),s=i.getUTCMonth(),l=i.getUTCDate(),u=a.getUTCFullYear(),c=a.getUTCMonth(),d=a.getUTCDate(),h=dp(o,s,l),f=!h&&s!==1&&l>28&&l<xS(o,s)?dp(u,c,d):h,m=m0(e,0,f);let g=+r-0+ +(e<m),p=m0(m,n,f);for(;!(n>0?p>=e:p<=e);)p=m0(p,n,f),g++;return g}U(Ywe,"getCouponsNumber");function aL(t,e){let n=1,r=0,i=t,a;for(;n>1e-7&&r<500;){const o=(e(i+1e-7)-e(i-1e-7))/2e-7;a=i-e(i)/o,r++,n=Math.abs(a-i),i=a}return Number.isNaN(i)||Math.abs(i)===1/0||r===500?Xwe(t,e):i}U(aL,"getResultByGuessIterF");function Xwe(t,e){const n=Number.MAX_VALUE,r=-1,i=1.6;let a=t-.01<=r?r+1e-7:t-.01,o=t+.01>=n?n-1e-7:t+.01,s,l,u=0;if(t<=r||t>=n)return I.create(D.NUM);for(let m=0;m<60;m++){s=a<=r?r+1e-7:a,l=o>=n?n-1e-7:o;const g=e(s),p=e(l);if(g*p<=0)break;if(g*p>0)a=s+i*(s-l),o=l+i*(l-s);else return I.create(D.NUM);if(m===59)return I.create(D.NUM)}s=s,l=l;let c=e(s);const d=e(l);let h,f;if(Math.abs(c)<1e-7||Math.abs(d)<1e-7)return I.create(D.NUM);do f=s+(l-s)/2,h=e(f),c*h<0?l=f:s=f,c=e(s),u++;while(Math.abs(h)>1e-7&&u<60);return f}U(Xwe,"guessIsNaNorInfinity");function P8(t,e,n,r,i,a,o){const s=L0(t,e,a),l=Au(t,e,a,o),u=NS(t,e,a,o);if(s===1){const h=l-u,f=100*n/a+i,m=r/a*h/l+1,g=100*n/a*u/l;return f/m-g}const c=l-u;let d=i/(1+r/a)**(s-1+c/l);for(let h=1;h<=s;h++)d+=100*n/a/(1+r/a)**(h-1+c/l);return d-=100*n/a*u/l,d}U(P8,"calculatePrice");function XD(t,e,n,r,i){let a=0,o=i/n;o>=1?(o=1,a=r===1?t:0):a=t*(1-o)**(r-1);const s=t*(1-o)**r;let l=0;return s<e?l=a-e:l=a-s,l<0&&(l=0),l}U(XD,"calculateDDB");const Gwe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",8)}calculate(e,n,r,i,a,o,s,l){const u=s??ee.create(0),c=l??kn.create(!0),{isError:d,errorObject:h,variants:f}=Nn(e,n,r,i,a,o,u);if(d)return h;const[m,g,p,v,_,C,S]=f,b=Cn(m);if(typeof b!="number")return b;const y=Cn(g);if(typeof y!="number")return y;const A=Cn(p);if(typeof A!="number")return A;const w=+v.getValue(),P=+_.getValue(),M=Math.floor(+C.getValue()),L=Math.floor(+S.getValue()),k=+c.getValue();return Number.isNaN(w)||Number.isNaN(P)||Number.isNaN(M)||Number.isNaN(L)||Number.isNaN(k)?I.create(D.VALUE):w<=0||P<=0||![1,2,4].includes(M)||L<0||L>4||Math.floor(b)>=Math.floor(A)?I.create(D.NUM):this._getResult(b,y,A,w,P,M,L,k)}_getResult(e,n,r,i,a,o,s,l){let u=Af(e,n,o);if(u<=0)return ee.create(0);u=Af(r,n,o);const c=12/o,d=kr(n),h=d.getUTCFullYear(),f=d.getUTCMonth(),m=d.getUTCDate(),g=dp(h,f,m);let p=m0(n,-c,g);if(r>n&&l)for(p=n;p<r;)p=m0(p,c,g);let v=e>p?e:p,{days:_}=aa(v,r,s);if(u>=e){const{days:w}=aa(v,r,s?4:0);_=w}r<v&&(_=-_);let C=Au(p,n,o,s),S=_/C,b=p,y=e;for(;b>e;){y=b,b=m0(b,-c,g),v=e>b?e:b;const{days:w}=aa(v,y,s);if(s===0)y>=v||e<=b?_=w:_=-w,C=Au(b,y,o,s);else if(_=y<v?-w:w,s===3)C=365/o;else{const{days:P}=aa(b,y,s);C=y<b?-P:P}S+=e<=b?l?1:0:_/C}const A=a*i/o*S;return ee.create(A)}};U(Gwe,"Accrint");let GAt=Gwe;const Qwe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=a??ee.create(0),{isError:s,errorObject:l,variants:u}=Nn(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||Math.floor(g)>Math.floor(p))return I.create(D.NUM);if(Math.floor(g)===Math.floor(p))return ee.create(0);const{days:S,yearDays:b}=aa(g,p,C),y=_*v*S/b;return ee.create(y)}};U(Qwe,"Accrintm");let QAt=Qwe;const Kwe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",7)}calculate(e,n,r,i,a,o,s){const l=s??ee.create(0),{isError:u,errorObject:c,variants:d}=Nn(e,n,r,i,a,o,l);if(u)return c;const[h,f,m,g,p,v,_]=d,C=Cn(f);if(typeof C!="number")return C;const S=Cn(m);if(typeof S!="number")return S;const b=+h.getValue(),y=+g.getValue();let A=+p.getValue();const w=+v.getValue(),P=Math.floor(+_.getValue());return Number.isNaN(b)||Number.isNaN(y)||Number.isNaN(A)||Number.isNaN(w)||Number.isNaN(P)?I.create(D.VALUE):b<=0||y<0||b<y||Math.floor(C)>Math.floor(S)||A<0||w<=0||![0,1,3,4].includes(P)?I.create(D.NUM):(A>1?A=Math.floor(A):A=Math.ceil(A),this._getResult(b,C,S,y,A,w,P))}_getResult(e,n,r,i,a,o,s){const l=e-i,u=e*o,{days:c,yearDays:d}=aa(n,r,s),h=c/d,f=Math.ceil(l/u-h);if(f<0)return ee.create(0);let m=u;return a===0?m=u*h:a===f?m=l-u*(h+a-1):a>f&&(m=0),ee.create(m)}};U(Kwe,"Amorlinc");let KAt=Kwe;const Zwe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m))return I.create(D.NUM);const v=NS(f,m,g,p);return ee.create(v)}};U(Zwe,"Coupdaybs");let ZAt=Zwe;const Jwe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m))return I.create(D.NUM);const v=Au(f,m,g,p);return ee.create(v)}};U(Jwe,"Coupdays");let JAt=Jwe;const eDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m))return I.create(D.NUM);const v=kr(f),_=kr(m);for(_.setUTCFullYear(v.getUTCFullYear()),_<v&&_.setUTCFullYear(_.getUTCFullYear()+1);_>v;)_.setUTCMonth(_.getUTCMonth()-12/g);_.setUTCMonth(_.getUTCMonth()+12/g);const C=Ea(_),{days:S}=aa(f,C,p);return ee.create(S)}};U(eDe,"Coupdaysnc");let ewt=eDe;const tDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m))return I.create(D.NUM);const v=_ee(f,m,g);return ee.create(v)}};U(tDe,"Coupncd");let twt=tDe;const nDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m)||Af(f,m,g)<0)return I.create(D.NUM);const v=L0(f,m,g);return ee.create(v)}};U(nDe,"Coupnum");let nwt=nDe;const rDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){const a=i??ee.create(0),{isError:o,errorObject:s,variants:l}=Nn(e,n,r,a);if(o)return s;const[u,c,d,h]=l,f=Cn(u);if(typeof f!="number")return f;const m=Cn(c);if(typeof m!="number")return m;const g=Math.floor(+d.getValue()),p=Math.floor(+h.getValue());if(Number.isNaN(g)||Number.isNaN(p))return I.create(D.VALUE);if(![1,2,4].includes(g)||p<0||p>4||Math.floor(f)>=Math.floor(m))return I.create(D.NUM);let v=Af(f,m,g);return v<0&&(v=0),ee.create(v)}};U(rDe,"Couppcd");let rwt=rDe;const iDe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){const{isError:s,errorObject:l,variants:u}=Nn(e,n,r,i,a,o);if(s)return l;const[c,d,h,f,m,g]=u,p=+c.getValue(),v=+d.getValue(),_=+h.getValue(),C=+f.getValue(),S=+m.getValue(),b=+g.getValue();return Number.isNaN(p)||Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C)||Number.isNaN(S)||Number.isNaN(b)?I.create(D.VALUE):p<=0||v<=0||_<=0||C<1||S<1||C>S||C>v||S>v||![0,1].includes(b)?I.create(D.NUM):Math.trunc(C)!==C&&Math.trunc(S)!==S&&Math.trunc(C)===Math.trunc(S)?ee.create(0):this._getResult(p,v,_,C,S,b)}_getResult(e,n,r,i,a,o){const s=t9(e,n,r,0,o);let l=0,u=Math.ceil(i);u===1&&(o===0&&(l=-r),u++);let c=!1;for(let d=u;d<=a;d++){const h=o===1?x0(e,d-2,s,r,1):x0(e,d-1,s,r,0);if(h===0){c=!0;break}l+=o===1?h-s:h}return l*=e,(l<s*(a-i+1)||c)&&(l=s*(a-i+1)),ee.create(l)}};U(iDe,"Cumipmt");let iwt=iDe;const aDe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){const{isError:s,errorObject:l,variants:u}=Nn(e,n,r,i,a,o);if(s)return l;const[c,d,h,f,m,g]=u,p=+c.getValue(),v=+d.getValue(),_=+h.getValue(),C=+f.getValue(),S=+m.getValue(),b=+g.getValue();return Number.isNaN(p)||Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C)||Number.isNaN(S)||Number.isNaN(b)?I.create(D.VALUE):p<=0||v<=0||_<=0||C<1||S<1||C>S||![0,1].includes(b)?I.create(D.NUM):Math.trunc(C)!==C&&Math.trunc(S)!==S&&Math.trunc(C)===Math.trunc(S)?ee.create(0):this._getResult(p,v,_,C,S,b)}_getResult(e,n,r,i,a,o){const s=t9(e,n,r,0,o);let l=0,u=Math.ceil(i);u===1&&(l=o===0?s+r*e:s,u++);for(let c=u;c<=a;c++)l+=o===1?s-(x0(e,c-2,s,r,1)-s)*e:s-x0(e,c-1,s,r,0)*e;return ee.create(l)}};U(aDe,"Cumprinc");let awt=aDe;const oDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){let o=a??ee.create(12);o.isNull()&&(o=ee.create(12));const s=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,o.isArray()?o.getRowCount():1),l=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,o.isArray()?o.getColumnCount():1),u=qe(s,l,e,I.create(D.NA)),c=qe(s,l,n,I.create(D.NA)),d=qe(s,l,r,I.create(D.NA)),h=qe(s,l,i,I.create(D.NA)),f=qe(s,l,o,I.create(D.NA)),m=u.map((g,p,v)=>{const _=c.get(p,v),C=d.get(p,v),S=h.get(p,v),b=f.get(p,v),{isError:y,errorObject:A,variants:w}=al(g,_,C,S,b);if(y)return A;const[P,M,L,k,O]=w,$=+P.getValue(),B=+M.getValue(),V=+L.getValue();let X=+k.getValue();const z=Math.floor(+O.getValue());return $<0||B<0||V<=0||X<=0||Math.floor(X)>Math.floor(V)||z<1||z>12?I.create(D.NUM):(X<1&&(X=1),X=Math.floor(X),this._getResult($,B,V,X,z,p,v))});return s===1&&l===1?m.get(0,0):m}_getResult(e,n,r,i,a,o,s){const l=+(1-(n/e)**(1/r)).toFixed(3),u=e*l*a/12;let c=u,d=0;const h=i===r?r-1:i;for(let m=2;m<=h;m++)d=(e-c)*l,c+=d;let f;return i===1?f=u:i===r?f=(e-c)*l:f=d,Number.isNaN(f)||!Number.isFinite(f)?I.create(D.NUM):o===0&&s===0?ee.create(f,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(f)}};U(oDe,"Db");let owt=oDe;const sDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){let o=a??ee.create(2);o.isNull()&&(o=ee.create(2));const s=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,o.isArray()?o.getRowCount():1),l=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,o.isArray()?o.getColumnCount():1),u=qe(s,l,e,I.create(D.NA)),c=qe(s,l,n,I.create(D.NA)),d=qe(s,l,r,I.create(D.NA)),h=qe(s,l,i,I.create(D.NA)),f=qe(s,l,o,I.create(D.NA)),m=u.map((g,p,v)=>{const _=c.get(p,v),C=d.get(p,v),S=h.get(p,v),b=f.get(p,v),{isError:y,errorObject:A,variants:w}=al(g,_,C,S,b);if(y)return A;const[P,M,L,k,O]=w,$=+P.getValue(),B=+M.getValue(),V=+L.getValue(),X=+k.getValue(),z=+O.getValue();if($<0||B<0||V<=0||X<=0||X>V||z<=0)return I.create(D.NUM);const F=XD($,B,V,X,z);return Number.isNaN(F)||!Number.isFinite(F)?I.create(D.NUM):p===0&&v===0?ee.create(F,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(F)});return s===1&&l===1?m.get(0,0):m}};U(sDe,"Ddb");let swt=sDe;const lDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=a??ee.create(0),{isError:s,errorObject:l,variants:u}=Nn(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||Math.floor(g)>=Math.floor(p))return I.create(D.NUM);const{days:S,yearDays:b}=aa(g,p,C),y=(_-v)/_*(b/S);return ee.create(y)}};U(lDe,"Disc");let lwt=lDe;const uDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue();let u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);if(u>=0&&u<1)return I.create(D.DIV_BY_ZERO);u=Number.parseInt(`${u}`,10);let c=Number.parseInt(`${l}`,10);c+=l%1*10**Math.ceil(Math.log(u)/Math.LN10)/u;const d=10**(Math.ceil(Math.log(u)/Math.LN2)+1);return c=Math.round(c*d)/d,ee.create(c)}};U(uDe,"Dollarde");let uwt=uDe;const cDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue();let u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u<0)return I.create(D.NUM);if(u>=0&&u<1)return I.create(D.DIV_BY_ZERO);u=Number.parseInt(`${u}`,10);let c=Number.parseInt(`${l}`,10);return c+=l%1*10**-Math.ceil(Math.log(u)/Math.LN10)*u,ee.create(c)}};U(cDe,"Dollarfr");let cwt=cDe;const dDe=class extends be{constructor(){super(...arguments),x(this,"minParams",5),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=o??ee.create(0);s.isNull()&&(s=ee.create(0));const{isError:l,errorObject:u,variants:c}=il(e,n,r,i,a,s);if(l)return u;const[d,h,f,m,g,p]=c,v=Cn(d);if(typeof v!="number")return v;const _=Cn(h);if(typeof _!="number")return _;const C=+f.getValue(),S=+m.getValue(),b=Math.floor(+g.getValue()),y=Math.floor(+p.getValue());if(Number.isNaN(C)||Number.isNaN(S)||Number.isNaN(b)||Number.isNaN(y))return I.create(D.VALUE);if(C<0||S<0||![1,2,4].includes(b)||y<0||y>4||Math.floor(v)>=Math.floor(_)||v<=0||_<=366)return I.create(D.NUM);const A=Cee(v,_,C,S,b,y);return ee.create(A)}};U(dDe,"Duration");let dwt=dDe;const hDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue();let u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(l<=0||u<1)return I.create(D.NUM);u=Number.parseInt(`${u}`,10);const c=(1+l/u)**u-1;return ee.create(c)}};U(hDe,"Effect");let hwt=hDe;const fDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=i??ee.create(0),s=a??ee.create(0),l=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1),u=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1),c=qe(l,u,e,I.create(D.NA)),d=qe(l,u,n,I.create(D.NA)),h=qe(l,u,r,I.create(D.NA)),f=qe(l,u,o,I.create(D.NA)),m=qe(l,u,s,I.create(D.NA)),g=c.map((p,v,_)=>{const C=d.get(v,_),S=h.get(v,_),b=f.get(v,_),y=m.get(v,_),{isError:A,errorObject:w,variants:P}=al(p,C,S,b,y);if(A)return w;const[M,L,k,O,$]=P,B=+M.getValue(),V=+L.getValue(),X=+k.getValue(),z=+O.getValue(),F=+$.getValue(),H=x0(B,V,X,z,F?1:0);return Number.isNaN(H)||!Number.isFinite(H)?I.create(D.NUM):v===0&&_===0?ee.create(H,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(H)});return l===1&&u===1?g.get(0,0):g}};U(fDe,"Fv");let fwt=fDe;const mDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e);if(r)return i;const[o]=a,s=+o.getValue();if(Number.isNaN(s))return I.create(D.VALUE);let l=s;if(n.isArray()){const u=n.getArrayValue().flat();for(let c=0;c<u.length;c++){const d=u[c];if(d.isBoolean())return I.create(D.VALUE);const h=+d.getValue();if(Number.isNaN(h))return I.create(D.VALUE);l*=1+h}}else{if(n.isBoolean())return I.create(D.VALUE);const u=+n.getValue();if(Number.isNaN(u))return I.create(D.VALUE);l*=1+u}return ee.create(l)}};U(mDe,"Fvschedule");let mwt=mDe;const gDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=a??ee.create(0),{isError:s,errorObject:l,variants:u}=Nn(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||Math.floor(g)>=Math.floor(p))return I.create(D.NUM);const{days:S,yearDays:b}=aa(g,p,C),y=(_-v)/v*(b/S);return ee.create(y)}};U(gDe,"Intrate");let gwt=gDe;const pDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){const s=a??ee.create(0),l=o??ee.create(0),u=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,e,I.create(D.NA)),h=qe(u,c,n,I.create(D.NA)),f=qe(u,c,r,I.create(D.NA)),m=qe(u,c,i,I.create(D.NA)),g=qe(u,c,s,I.create(D.NA)),p=qe(u,c,l,I.create(D.NA)),v=d.map((_,C,S)=>{const b=h.get(C,S),y=f.get(C,S),A=m.get(C,S),w=g.get(C,S),P=p.get(C,S),{isError:M,errorObject:L,variants:k}=al(_,b,y,A,w,P);if(M)return L;const[O,$,B,V,X,z]=k,F=+O.getValue(),H=+$.getValue(),W=+B.getValue(),K=+V.getValue(),G=+X.getValue(),te=+z.getValue();if(H<1||Math.floor(H)>Math.ceil(W))return I.create(D.NUM);const Y=See(F,H,W,K,G,te?1:0);return Number.isNaN(Y)||!Number.isFinite(Y)?I.create(D.NUM):C===0&&S===0?ee.create(Y,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(Y)});return u===1&&c===1?v.get(0,0):v}};U(pDe,"Ipmt");let pwt=pDe;const vDe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){let r=n??ee.create(.1);return r.isNull()&&(r=ee.create(.1)),r.isArray()?r.map((i,a,o)=>this._handleSingleObject(e,i,a,o)):this._handleSingleObject(e,r)}_handleSingleObject(e,n,r=0,i=0){if(e.isError())return e;if(n.isError())return n;if(e.isNull())return I.create(D.VALUE);if(!e.isArray())return I.create(D.NUM);const{_values:a,valuesHasError:o}=this._getValues(e);if(o)return I.create(D.VALUE);let s=n;if(s.isString()&&(s=s.convertToNumberObjectValue(),s.isError()))return s;const l=+s.getValue(),{positive:u,negative:c}=this._checkValues(a);if(!u||!c)return I.create(D.NUM);const d=aL(l,h=>bee(h,a));return typeof d!="number"?d:r===0&&i===0?ee.create(d,"0%"):ee.create(d)}_getValues(e){const n=[];let r=!1;return e.iterator(i=>{const a=i;if(a.isError())return r=!0,!1;if(a.isNull()||a.isBoolean())return!0;const o=+a.getValue();if(Number.isNaN(o))return!0;n.push(o)}),{_values:n,valuesHasError:r}}_checkValues(e){let n=!1,r=!1;for(let i=0;i<e.length;i++)e[i]>0&&(n=!0),e[i]<0&&(r=!0);return{positive:n,negative:r}}};U(vDe,"Irr");let vwt=vDe;const _De=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",4)}calculate(e,n,r,i){const a=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1),s=qe(a,o,e,I.create(D.NA)),l=qe(a,o,n,I.create(D.NA)),u=qe(a,o,r,I.create(D.NA)),c=qe(a,o,i,I.create(D.NA)),d=s.map((h,f,m)=>{const g=l.get(f,m),p=u.get(f,m),v=c.get(f,m),{isError:_,errorObject:C,variants:S}=al(h,g,p,v);if(_)return C;const[b,y,A,w]=S,P=+b.getValue(),M=+y.getValue(),L=+A.getValue(),k=+w.getValue();if(L===0)return I.create(D.DIV_BY_ZERO);const O=k*P*(M/L-1);return ee.create(O)});return a===1&&o===1?d.get(0,0):d}};U(_De,"Ispmt");let _wt=_De;const CDe=class extends be{constructor(){super(...arguments),x(this,"minParams",5),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=o??ee.create(0);s.isNull()&&(s=ee.create(0));const{isError:l,errorObject:u,variants:c}=il(e,n,r,i,a,s);if(l)return u;const[d,h,f,m,g,p]=c,v=Cn(d);if(typeof v!="number")return v;const _=Cn(h);if(typeof _!="number")return _;const C=+f.getValue(),S=+m.getValue(),b=Math.floor(+g.getValue()),y=Math.floor(+p.getValue());if(Number.isNaN(C)||Number.isNaN(S)||Number.isNaN(b)||Number.isNaN(y))return I.create(D.VALUE);if(C<0||S<0||![1,2,4].includes(b)||y<0||y>4||Math.floor(v)>=Math.floor(_))return I.create(D.NUM);let A=Cee(v,_,C,S,b,y);return A/=1+S/b,ee.create(A)}};U(CDe,"Mduration");let Cwt=CDe;const SDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const{_values:i,numberValues:a,positive:o,negative:s}=this._getValues(e),l=Math.max(n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),u=Math.max(n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),c=qe(l,u,n,I.create(D.NA)),d=qe(l,u,r,I.create(D.NA)),h=c.map((f,m,g)=>{const p=d.get(m,g);if(e.isError())return e;if(p.isError())return p;if(i.isError())return i;if(!o||!s)return I.create(D.DIV_BY_ZERO);const v=+f.getValue(),_=+p.getValue();if(Number.isNaN(v)||Number.isNaN(_))return I.create(D.VALUE);if(_===-1)return I.create(D.DIV_BY_ZERO);const C=this._getResult(a,v,_);return m===0&&g===0?ee.create(C,"0%"):ee.create(C)});return l===1&&u===1?h.get(0,0):h}_getValues(e){let n=e,r=[],i=!1,a=!1;if(!e.isError())if(e.isNull())n=I.create(D.VALUE);else if(!e.isArray())n=I.create(D.DIV_BY_ZERO);else{const{numberValues:o,valuesHasError:s,errorObject:l,positive:u,negative:c}=this._checkValues(e);s&&(n=l),r=o,i=u,a=c}return{_values:n,numberValues:r,positive:i,negative:a}}_checkValues(e){const n=[];let r=!1,i=I.create(D.VALUE),a=!1,o=!1;return e.iterator(s=>{const l=s;if(l.isError())return r=!0,i=l,!1;if(l.isNull()||l.isBoolean())return!0;const u=+l.getValue();if(Number.isNaN(u))return!0;u>0&&(a=!0),u<0&&(o=!0),n.push(u)}),{numberValues:n,valuesHasError:r,errorObject:i,positive:a,negative:o}}_getResult(e,n,r){const i=e.length,a=[],o=[];for(let d=0;d<i;d++)e[d]>0?o.push(e[d]):e[d]<0&&a.push(e[d]);const s=this._npv(r,e,"positive"),l=this._npv(n,e,"negative"),u=-s*(1+r)**i,c=l*(1+n);return(u/c)**(1/(i-1))-1}_npv(e,n,r){let i=0;for(let a=1;a<=n.length;a++){const o=n[a-1];(r==="positive"&&o>0||r==="negative"&&o<0)&&(i+=o/(1+e)**a)}return i}};U(SDe,"Mirr");let Swt=SDe;const bDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue();let u=Math.floor(+s.getValue());if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(l<=0||u<1)return I.create(D.NUM);u=Number.parseInt(`${u}`,10);const c=((l+1)**(1/u)-1)*u;return ee.create(c)}};U(bDe,"Nominal");let bwt=bDe;const yDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=i??ee.create(0),s=a??ee.create(0),l=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1),u=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1),c=qe(l,u,e,I.create(D.NA)),d=qe(l,u,n,I.create(D.NA)),h=qe(l,u,r,I.create(D.NA)),f=qe(l,u,o,I.create(D.NA)),m=qe(l,u,s,I.create(D.NA)),g=c.map((p,v,_)=>{const C=d.get(v,_),S=h.get(v,_),b=f.get(v,_),y=m.get(v,_),{isError:A,errorObject:w,variants:P}=al(p,C,S,b,y);if(A)return w;const[M,L,k,O,$]=P,B=+M.getValue(),V=+L.getValue(),X=+k.getValue(),z=+O.getValue();let F=+$.getValue();if(F=F?1:0,B===0&&V===0)return I.create(D.DIV_BY_ZERO);let H;if(B===0)H=-(X+z)/V;else{const W=V*(1+B*F)-z*B,K=X*B+V*(1+B*F);H=Math.log(W/K)/Math.log(1+B)}return Number.isNaN(H)||!Number.isFinite(H)?I.create(D.NUM):ee.create(H)});return l===1&&u===1?g.get(0,0):g}};U(yDe,"Nper");let ywt=yDe;const EDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return e;const{isError:r,errorObject:i,values:a}=this._getValues(n);return e.isArray()?e.map((o,s,l)=>this._handleSingleObject(o,r,i,a,s,l)):this._handleSingleObject(e,r,i,a)}_handleSingleObject(e,n,r,i,a=0,o=0){let s=e;if(s.isString()&&(s=s.convertToNumberObjectValue()),s.isError())return s;if(n)return r;const l=+e.getValue(),u=bee(l,i);return Number.isNaN(u)||Math.abs(u)===1/0?I.create(D.DIV_BY_ZERO):a===0&&o===0?ee.create(u,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(u)}_getValues(e){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.isError())return{isError:!0,errorObject:i};if(i.isArray()){let a=!1,o=I.create(D.VALUE);if(i.iterator(s=>{const l=s;if(l.isError())return a=!0,o=l,!1;if(l.isNull()||l.isBoolean())return!0;const u=+l.getValue();if(Number.isNaN(u))return!0;n.push(u)}),a)return{isError:a,errorObject:o}}else{const a=+i.getValue();if(Number.isNaN(a))return{isError:!0,errorObject:I.create(D.VALUE)};n.push(a)}}return{isError:!1,values:n}}};U(EDe,"Npv");let Ewt=EDe;const RDe=class extends be{constructor(){super(...arguments),x(this,"minParams",8),x(this,"maxParams",9)}calculate(e,n,r,i,a,o,s,l,u){let c=u??ee.create(0);c.isNull()&&(c=ee.create(0));const{isError:d,errorObject:h,variants:f}=il(e,n,r,i,a,o,s,l,c);if(d)return h;const[m,g,p,v,_,C,S,b,y]=f,A=Cn(m);if(typeof A!="number")return A;const w=Cn(g);if(typeof w!="number")return w;const P=Cn(p);if(typeof P!="number")return P;const M=Cn(v);if(typeof M!="number")return M;const L=+_.getValue(),k=+C.getValue(),O=+S.getValue(),$=Math.floor(+b.getValue()),B=Math.floor(+y.getValue());if(Number.isNaN(L)||Number.isNaN(k)||Number.isNaN(O)||Number.isNaN($)||Number.isNaN(B))return I.create(D.VALUE);if(L<0||k<0||O<=0||![1,2,4].includes($)||B<0||B>4||!this._validDate(w,M,A,P,$))return I.create(D.NUM);const V=yee(A,w,P,M,L,k,O,$,B);return ee.create(V)}_validDate(e,n,r,i,a){return this._getDateCorrectOrder(e,n,r,i)&&Eee(e,n,a)&&Xp(i,e,a)}_getDateCorrectOrder(e,n,r,i){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)&&Math.floor(r)>Math.floor(i)}};U(RDe,"Oddfprice");let Rwt=RDe;const ADe=class extends be{constructor(){super(...arguments),x(this,"minParams",8),x(this,"maxParams",9)}calculate(e,n,r,i,a,o,s,l,u){let c=u??ee.create(0);c.isNull()&&(c=ee.create(0));const{isError:d,errorObject:h,variants:f}=il(e,n,r,i,a,o,s,l,c);if(d)return h;const[m,g,p,v,_,C,S,b,y]=f,A=Cn(m);if(typeof A!="number")return A;const w=Cn(g);if(typeof w!="number")return w;const P=Cn(p);if(typeof P!="number")return P;const M=Cn(v);if(typeof M!="number")return M;const L=+_.getValue(),k=+C.getValue(),O=+S.getValue(),$=Math.floor(+b.getValue()),B=Math.floor(+y.getValue());return Number.isNaN(L)||Number.isNaN(k)||Number.isNaN(O)||Number.isNaN($)||Number.isNaN(B)?I.create(D.VALUE):L<0||k<=0||O<=0||![1,2,4].includes($)||B<0||B>4||!this._validDate(w,M,A,P,$)?I.create(D.NUM):this._getResult(A,w,P,M,L,k,O,$,B)}_validDate(e,n,r,i,a){return this._getDateCorrectOrder(e,n,r,i)&&Eee(e,n,a)&&Xp(i,e,a)}_getDateCorrectOrder(e,n,r,i){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)&&Math.floor(r)>Math.floor(i)}_getResult(e,n,r,i,a,o,s,l,u){const{days:c}=aa(e,n,u),d=(a*c*100-(o-100))/((o-100)*.25*(1+2*c)+c*100);function h(m){return o-yee(e,n,r,i,a,m,s,l,u)}U(h,"_iterF");const f=aL(d,m=>h(m));return typeof f!="number"?f:ee.create(f)}};U(ADe,"Oddfyield");let Awt=ADe;const wDe=class extends be{constructor(){super(...arguments),x(this,"minParams",7),x(this,"maxParams",8)}calculate(e,n,r,i,a,o,s,l){let u=l??ee.create(0);u.isNull()&&(u=ee.create(0));const{isError:c,errorObject:d,variants:h}=il(e,n,r,i,a,o,s,u);if(c)return d;const[f,m,g,p,v,_,C,S]=h,b=Cn(f);if(typeof b!="number")return b;const y=Cn(m);if(typeof y!="number")return y;const A=Cn(g);if(typeof A!="number")return A;const w=+p.getValue(),P=+v.getValue(),M=+_.getValue(),L=Math.floor(+C.getValue()),k=Math.floor(+S.getValue());if(Number.isNaN(w)||Number.isNaN(P)||Number.isNaN(M)||Number.isNaN(L)||Number.isNaN(k))return I.create(D.VALUE);if(w<0||P<0||M<=0||![1,2,4].includes(L)||k<0||k>4||!this._validDate(y,b,A,L))return I.create(D.NUM);const O=this._getResult(b,y,A,w,P,M,L,k);return ee.create(O)}_validDate(e,n,r,i){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)&&Xp(r,e,i)}_getResult(e,n,r,i,a,o,s,l){const u=this._getCoupDate(n,r,s),c=this._getFrac(r,e,u,s,l),d=this._getFrac(r,n,u,s,l),h=this._getFrac(e,n,u,s,l);return(o*s+100*i*(d-c*(1+a*h/s)))/(a*h+s)}_getCoupDate(e,n,r){const i=kr(e),a=kr(n);for(a.setUTCFullYear(i.getUTCFullYear()),a>i&&a.setUTCFullYear(a.getUTCFullYear()-1);a<i;)a.setUTCMonth(a.getUTCMonth()+12/r);return Ea(a)}_getFrac(e,n,r,i,a){const o=kr(e),s=kr(n),l=kr(r);for(l.setUTCFullYear(o.getUTCFullYear()),l<o&&l.setUTCFullYear(l.getUTCFullYear()+1);l>o;)l.setUTCMonth(l.getUTCMonth()-12/i);let u=Ea(l);l.setUTCMonth(l.getUTCMonth()+12/i);let c=Ea(l);if(c>=n){const{days:_}=aa(e,n,a),C=Au(u,c,i,a);return _/C}const{days:d}=aa(e,c,a),h=Au(u,c,i,a);let f=d/h;const m=kr(c),g=kr(c);for(g.setUTCMonth(g.getUTCMonth()+12/i);g<s;)m.setUTCMonth(m.getUTCMonth()+12/i),g.setUTCMonth(g.getUTCMonth()+12/i),f+=1;u=Ea(m),c=Ea(g);const{days:p}=aa(u,n,a),v=Au(u,c,i,a);return f+=p/v,f}};U(wDe,"Oddlprice");let wwt=wDe;const DDe=class extends be{constructor(){super(...arguments),x(this,"minParams",8),x(this,"maxParams",9)}calculate(e,n,r,i,a,o,s,l){let u=l??ee.create(0);u.isNull()&&(u=ee.create(0));const{isError:c,errorObject:d,variants:h}=il(e,n,r,i,a,o,s,u);if(c)return d;const[f,m,g,p,v,_,C,S]=h,b=Cn(f);if(typeof b!="number")return b;const y=Cn(m);if(typeof y!="number")return y;const A=Cn(g);if(typeof A!="number")return A;const w=+p.getValue(),P=+v.getValue(),M=+_.getValue(),L=Math.floor(+C.getValue()),k=Math.floor(+S.getValue());if(Number.isNaN(w)||Number.isNaN(P)||Number.isNaN(M)||Number.isNaN(L)||Number.isNaN(k))return I.create(D.VALUE);if(w<0||P<=0||M<=0||![1,2,4].includes(L)||k<0||k>4||!this._validDate(y,b,A,L))return I.create(D.NUM);const O=this._getResult(b,y,A,w,P,M,L,k);return ee.create(O)}_validDate(e,n,r,i){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)&&Xp(r,e,i)}_getResult(e,n,r,i,a,o,s,l){const u=this._getCoupDate(n,r,s),c=this._getFrac(r,e,u,s,l),d=this._getFrac(r,n,u,s,l),h=this._getFrac(e,n,u,s,l);return(s*(o-a)+100*i*(d-c))/(h*a+100*i*c*h/s)}_getCoupDate(e,n,r){const i=kr(e),a=kr(n);for(a.setUTCFullYear(i.getUTCFullYear()),a>i&&a.setUTCFullYear(a.getUTCFullYear()-1);a<i;)a.setUTCMonth(a.getUTCMonth()+12/r);return Ea(a)}_getFrac(e,n,r,i,a){const o=kr(e),s=kr(n),l=kr(r);for(l.setUTCFullYear(o.getUTCFullYear()),l<o&&l.setUTCFullYear(l.getUTCFullYear()+1);l>o;)l.setUTCMonth(l.getUTCMonth()-12/i);let u=Ea(l);l.setUTCMonth(l.getUTCMonth()+12/i);let c=Ea(l);if(c>=n){const{days:_}=aa(e,n,a),C=Au(u,c,i,a);return _/C}const{days:d}=aa(e,c,a),h=Au(u,c,i,a);let f=d/h;const m=kr(c),g=kr(c);for(g.setUTCMonth(g.getUTCMonth()+12/i);g<s;)m.setUTCMonth(m.getUTCMonth()+12/i),g.setUTCMonth(g.getUTCMonth()+12/i),f+=1;u=Ea(m),c=Ea(g);const{days:p}=aa(u,n,a),v=Au(u,c,i,a);return f+=p/v,f}};U(DDe,"Oddlyield");let Dwt=DDe;const IDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,n,I.create(D.NA)),l=qe(i,a,r,I.create(D.NA)),u=o.map((c,d,h)=>{const f=s.get(d,h),m=l.get(d,h),{isError:g,errorObject:p,variants:v}=al(c,f,m);if(g)return p;const[_,C,S]=v,b=+_.getValue(),y=+C.getValue(),A=+S.getValue();if(b<=-1)return I.create(D.NUM);const w=(Math.log(A)-Math.log(y))/Math.log(1+b);return Number.isNaN(w)||!Number.isFinite(w)?I.create(D.NUM):ee.create(w)});return i===1&&a===1?u.get(0,0):u}};U(IDe,"Pduration");let Iwt=IDe;const PDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=i??ee.create(0),s=a??ee.create(0),l=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1),u=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1),c=qe(l,u,e,I.create(D.NA)),d=qe(l,u,n,I.create(D.NA)),h=qe(l,u,r,I.create(D.NA)),f=qe(l,u,o,I.create(D.NA)),m=qe(l,u,s,I.create(D.NA)),g=c.map((p,v,_)=>{const C=d.get(v,_),S=h.get(v,_),b=f.get(v,_),y=m.get(v,_),{isError:A,errorObject:w,variants:P}=al(p,C,S,b,y);if(A)return w;const[M,L,k,O,$]=P,B=+M.getValue(),V=+L.getValue(),X=+k.getValue(),z=+O.getValue(),F=+$.getValue();if(B<=-1)return I.create(D.NUM);const H=t9(B,V,X,z,F?1:0);return Number.isNaN(H)||!Number.isFinite(H)?I.create(D.NUM):v===0&&_===0?ee.create(H,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(H)});return l===1&&u===1?g.get(0,0):g}};U(PDe,"Pmt");let Pwt=PDe;const MDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){const s=a??ee.create(0),l=o??ee.create(0),u=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,e,I.create(D.NA)),h=qe(u,c,n,I.create(D.NA)),f=qe(u,c,r,I.create(D.NA)),m=qe(u,c,i,I.create(D.NA)),g=qe(u,c,s,I.create(D.NA)),p=qe(u,c,l,I.create(D.NA)),v=d.map((_,C,S)=>{const b=h.get(C,S),y=f.get(C,S),A=m.get(C,S),w=g.get(C,S),P=p.get(C,S),{isError:M,errorObject:L,variants:k}=al(_,b,y,A,w,P);if(M)return L;const[O,$,B,V,X,z]=k,F=+O.getValue(),H=+$.getValue(),W=+B.getValue(),K=+V.getValue(),G=+X.getValue(),te=+z.getValue();if(H<1||Math.floor(H)>Math.ceil(W)||H-W>=1)return I.create(D.NUM);const Y=t9(F,W,K,G,te?1:0)-See(F,H,W,K,G,te?1:0);return Number.isNaN(Y)||!Number.isFinite(Y)?I.create(D.NUM):C===0&&S===0?ee.create(Y,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(Y)});return u===1&&c===1?v.get(0,0):v}};U(MDe,"Ppmt");let Mwt=MDe;const TDe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",7)}calculate(e,n,r,i,a,o,s){let l=s??ee.create(0);l.isNull()&&(l=ee.create(0));const{isError:u,errorObject:c,variants:d}=il(e,n,r,i,a,o,l);if(u)return c;const[h,f,m,g,p,v,_]=d,C=Cn(h);if(typeof C!="number")return C;const S=Cn(f);if(typeof S!="number")return S;const b=+m.getValue(),y=+g.getValue(),A=+p.getValue(),w=Math.floor(+v.getValue()),P=Math.floor(+_.getValue());if(Number.isNaN(b)||Number.isNaN(y)||Number.isNaN(A)||Number.isNaN(w)||Number.isNaN(P))return I.create(D.VALUE);if(b<0||y<0||A<=0||![1,2,4].includes(w)||P<0||P>4||C>=S||!Xp(C,S,w))return I.create(D.NUM);const M=P8(C,S,b,y,A,w,P);return ee.create(M)}};U(TDe,"Price");let Twt=TDe;const LDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){let o=a??ee.create(0);o.isNull()&&(o=ee.create(0));const{isError:s,errorObject:l,variants:u}=il(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||g>=p)return I.create(D.NUM);const{days:S,yearDays:b}=aa(g,p,C),y=_-v*_*S/b;return ee.create(y)}};U(LDe,"Pricedisc");let Lwt=LDe;const xDe=class extends be{constructor(){super(...arguments),x(this,"minParams",5),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=o??ee.create(0);s.isNull()&&(s=ee.create(0));const{isError:l,errorObject:u,variants:c}=il(e,n,r,i,a,s);if(l)return u;const[d,h,f,m,g,p]=c,v=Cn(d);if(typeof v!="number")return v;const _=Cn(h);if(typeof _!="number")return _;const C=Cn(f);if(typeof C!="number")return C;const S=+m.getValue(),b=+g.getValue(),y=Math.floor(+p.getValue());if(Number.isNaN(S)||Number.isNaN(b)||Number.isNaN(y))return I.create(D.VALUE);const A=this._getDateCorrectOrder(_,v,C);if(S<0||b<0||y<0||y>4||!A)return I.create(D.NUM);const w=vee(v,y),{days:P}=aa(v,_,y),{days:M}=aa(C,_,y),{days:L}=aa(C,v,y),k=(100+M/w*S*100)/(1+P/w*b)-L/w*S*100;return ee.create(k)}_getDateCorrectOrder(e,n,r){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)}};U(xDe,"Pricemat");let xwt=xDe;const ODe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",5)}calculate(e,n,r,i,a){const o=i??ee.create(0),s=a??ee.create(0),l=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1),u=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1),c=qe(l,u,e,I.create(D.NA)),d=qe(l,u,n,I.create(D.NA)),h=qe(l,u,r,I.create(D.NA)),f=qe(l,u,o,I.create(D.NA)),m=qe(l,u,s,I.create(D.NA)),g=c.map((p,v,_)=>{const C=d.get(v,_),S=h.get(v,_),b=f.get(v,_),y=m.get(v,_),{isError:A,errorObject:w,variants:P}=al(p,C,S,b,y);if(A)return w;const[M,L,k,O,$]=P,B=+M.getValue(),V=+L.getValue(),X=+k.getValue(),z=+O.getValue();let F=+$.getValue();F=F?1:0;const H=B===0?-X*V-z:((1-(1+B)**V)/B*X*(1+B*F)-z)/(1+B)**V;return Number.isNaN(H)||!Number.isFinite(H)?I.create(D.NUM):v===0&&_===0?ee.create(H,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(H)});return l===1&&u===1?g.get(0,0):g}};U(ODe,"Pv");let Owt=ODe;const NDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){const s=i??ee.create(0),l=a??ee.create(0),u=o??ee.create(.1),c=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1,u.isArray()?u.getRowCount():1),d=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1,u.isArray()?u.getColumnCount():1),h=qe(c,d,e,I.create(D.NA)),f=qe(c,d,n,I.create(D.NA)),m=qe(c,d,r,I.create(D.NA)),g=qe(c,d,s,I.create(D.NA)),p=qe(c,d,l,I.create(D.NA)),v=qe(c,d,u,I.create(D.NA)),_=h.map((C,S,b)=>{const y=f.get(S,b),A=m.get(S,b),w=g.get(S,b),P=p.get(S,b),M=v.get(S,b),{isError:L,errorObject:k,variants:O}=al(C,y,A,w,P,M);if(L)return k;const[$,B,V,X,z,F]=O,H=+$.getValue(),W=+B.getValue(),K=+V.getValue(),G=+X.getValue();let te=+z.getValue();const Y=+F.getValue();return te=te?1:0,H<=0||W>=0?I.create(D.NUM):this._getResult(H,W,K,G,te,Y,S,b)});return c===1&&d===1?_.get(0,0):_}_getResult(e,n,r,i,a,o,s,l){let u=o;for(let c=0;c<20;c++){if(u<=-1)return I.create(D.NUM);let d,h;if(Math.abs(u)<1e-10?d=r*(1+e*u)+n*(1+u*a)*e+i:(h=(1+u)**e,d=r*h+n*(1/u+a)*(h-1)+i),Math.abs(d)<1e-10)break;let f;if(Math.abs(u)<1e-10)f=r*e+n*a*e;else{h=(1+u)**e;const m=e*(1+u)**(e-1);f=r*m+n*(1/u+a)*m+n*(-1/(u*u))*(h-1)}u-=d/f}return s===0&&l===0?ee.create(u,"0%"):ee.create(u)}};U(NDe,"Rate");let Nwt=NDe;const kDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){let o=a??ee.create(0);o.isNull()&&(o=ee.create(0));const{isError:s,errorObject:l,variants:u}=il(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||g>=p)return I.create(D.NUM);const{days:S,yearDays:b}=aa(g,p,C),y=v/(1-_*S/b);return y<0?I.create(D.NUM):ee.create(y)}};U(kDe,"Received");let kwt=kDe;const FDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",6)}calculate(e,n,r){const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,n,I.create(D.NA)),l=qe(i,a,r,I.create(D.NA)),u=o.map((c,d,h)=>{const f=s.get(d,h),m=l.get(d,h),{isError:g,errorObject:p,variants:v}=al(c,f,m);if(g)return p;const[_,C,S]=v,b=+_.getValue(),y=+C.getValue(),A=+S.getValue();if(b<=0)return I.create(D.NUM);if(y===0&&A===0)return ee.create(0);const w=(A/y)**(1/b)-1;return Number.isNaN(w)||!Number.isFinite(w)||A/y<0?I.create(D.NUM):ee.create(w)});return i===1&&a===1?u.get(0,0):u}};U(FDe,"Rri");let Fwt=FDe;const VDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,n,I.create(D.NA)),l=qe(i,a,r,I.create(D.NA)),u=o.map((c,d,h)=>{const f=s.get(d,h),m=l.get(d,h);if(f.isError())return f;if(m.isError())return m;const g=+c.getValue(),p=+f.getValue(),v=+m.getValue();if(Number.isNaN(g)||Number.isNaN(p)||Number.isNaN(v))return I.create(D.VALUE);if(v===0)return I.create(D.DIV_BY_ZERO);const _=(g-p)/v;return d===0&&h===0?ee.create(_,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(_)});return i===1&&a===1?u.get(0,0):u}};U(VDe,"Sln");let Vwt=VDe;const BDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",4)}calculate(e,n,r,i){const a=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1),s=qe(a,o,e,I.create(D.NA)),l=qe(a,o,n,I.create(D.NA)),u=qe(a,o,r,I.create(D.NA)),c=qe(a,o,i,I.create(D.NA)),d=s.map((h,f,m)=>{const g=l.get(f,m),p=u.get(f,m),v=c.get(f,m);if(g.isError())return g;if(p.isError())return p;if(v.isError())return v;const _=+h.getValue(),C=+g.getValue(),S=+p.getValue(),b=+v.getValue();if(Number.isNaN(_)||Number.isNaN(C)||Number.isNaN(S)||Number.isNaN(b))return I.create(D.VALUE);if(C<0||S<=0||b>S)return I.create(D.NUM);const y=(_-C)*(S-b+1)*2/(S*(S+1));return f===0&&m===0?ee.create(y,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(y)});return a===1&&o===1?d.get(0,0):d}};U(BDe,"Syd");let Bwt=BDe;const UDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const{isError:i,errorObject:a,variants:o}=il(e,n,r);if(i)return a;const[s,l,u]=o,c=Cn(s);if(typeof c!="number")return c;const d=Cn(l);if(typeof d!="number")return d;const h=+u.getValue();if(Number.isNaN(h))return I.create(D.VALUE);if(h<=0||c>=d)return I.create(D.NUM);const f=Math.floor(d)-Math.floor(c),m=kr(c).getUTCFullYear(),g=OS(m);if(f>g)return I.create(D.NUM);let p=365*h/(360-h*f);if(f>182){const v=100*(1-h*f/360),_=f/365;if(p=(-_+Math.sqrt(_*_-(_*2-1)*(1-100/v)))/(_-.5),Number.isNaN(p))return I.create(D.NUM)}return p<0?I.create(D.NUM):ee.create(p)}};U(UDe,"Tbilleq");let Uwt=UDe;const HDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const{isError:i,errorObject:a,variants:o}=il(e,n,r);if(i)return a;const[s,l,u]=o,c=Cn(s);if(typeof c!="number")return c;const d=Cn(l);if(typeof d!="number")return d;const h=+u.getValue();if(Number.isNaN(h))return I.create(D.VALUE);if(h<=0||c>=d)return I.create(D.NUM);const f=Math.floor(d)-Math.floor(c),m=kr(c).getUTCFullYear(),g=OS(m);if(f>g)return I.create(D.NUM);const p=100*(1-h*f/360);return p<0?I.create(D.NUM):ee.create(p,'"¥"#,##0.00_);[Red]("¥"#,##0.00)')}};U(HDe,"Tbillprice");let Hwt=HDe;const jDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){const{isError:i,errorObject:a,variants:o}=il(e,n,r);if(i)return a;const[s,l,u]=o,c=Cn(s);if(typeof c!="number")return c;const d=Cn(l);if(typeof d!="number")return d;const h=+u.getValue();if(Number.isNaN(h))return I.create(D.VALUE);if(h<=0||c>=d)return I.create(D.NUM);const f=Math.floor(d)-Math.floor(c),m=kr(c).getUTCFullYear(),g=OS(m);if(f>g)return I.create(D.NUM);const p=(100-h)/h*360/f;return ee.create(p)}};U(jDe,"Tbillyield");let jwt=jDe;const $De=class extends be{constructor(){super(...arguments),x(this,"minParams",5),x(this,"maxParams",7)}calculate(e,n,r,i,a,o,s){let l=o??ee.create(2);l.isNull()&&(l=ee.create(2));let u=s??kn.create(!1);u.isNull()&&(u=kn.create(!1));const c=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1,l.isArray()?l.getRowCount():1,u.isArray()?u.getRowCount():1),d=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1,l.isArray()?l.getColumnCount():1,u.isArray()?u.getColumnCount():1),h=qe(c,d,e,I.create(D.NA)),f=qe(c,d,n,I.create(D.NA)),m=qe(c,d,r,I.create(D.NA)),g=qe(c,d,i,I.create(D.NA)),p=qe(c,d,a,I.create(D.NA)),v=qe(c,d,l,I.create(D.NA)),_=qe(c,d,u,I.create(D.NA));return this._getResultArray(h,f,m,g,p,v,_,c,d)}_getResultArray(e,n,r,i,a,o,s,l,u){const c=e.map((d,h,f)=>{const m=n.get(h,f),g=r.get(h,f),p=i.get(h,f),v=a.get(h,f),_=o.get(h,f),C=s.get(h,f),{isError:S,errorObject:b,variants:y}=al(d,m,g,p,v,_,C);if(S)return b;const[A,w,P,M,L,k,O]=y,$=+A.getValue(),B=+w.getValue(),V=+P.getValue(),X=+M.getValue(),z=+L.getValue(),F=+k.getValue(),H=+O.getValue();if($<0||B<0||V<0||X<0||z<0||z>V||X>z||F<0)return I.create(D.NUM);if(V===0&&X===0&&z===0)return I.create(D.DIV_BY_ZERO);const W=this._getResult($,B,V,X,z,F,H);return h===0&&f===0?ee.create(W,'"¥"#,##0.00_);[Red]("¥"#,##0.00)'):ee.create(W)});return l===1&&u===1?c.get(0,0):c}_getResult(e,n,r,i,a,o,s){const l=Math.floor(i),u=Math.ceil(a);let c=0;if(e<n){if(i>=1||s)return c;const d=Math.abs(e-n);return c=d*(a-i)>d?d:d*(a-i),-c}if(s)for(let d=l+1;d<=u;d++){let h=XD(e,n,r,d,o);d===l+1?h*=Math.min(a,l+1)-i:d===u&&(h*=a+1-u),c+=h}else{const d=e-this._getVdb(e,n,r,r,i,o);c=this._getVdb(d,n,r,r-i,a-i,o)}return c}_getVdb(e,n,r,i,a,o){const s=Math.ceil(a);let l=0,u=e-n,c=0,d=0,h=!1;for(let f=1;f<=s;f++){if(h)d=c;else{const m=XD(e,n,r,f,o);c=u/(i-(f-1)),c>m?(d=c,h=!0):(d=m,u-=m)}f===s&&(d*=a+1-s),l+=d}return l}};U($De,"Vdb");let $wt=$De;const WDe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){if(e.isNull()||n.isNull())return I.create(D.NA);const{isError:i,errorObejct:a,_values:o,_dates:s}=this._checkErrors(e,n);if(i)return a;let l=r??ee.create(.1);l.isNull()&&(l=ee.create(.1));const{isError:u,errorObject:c,variants:d}=Nn(l);if(u)return c;const[h]=d,f=+h.getValue();if(Number.isNaN(f))return I.create(D.VALUE);const{positive:m,negative:g}=this._checkValues(o);if(!m||!g||(o==null?void 0:o.length)!==(s==null?void 0:s.length)||f<0)return I.create(D.NUM);const p=aL(f,v=>this._iterF(o,s,v));return typeof p!="number"?p:ee.create(p)}_checkErrors(e,n){if(e.isError())return{isError:!0,errorObejct:e};if(n.isError())return{isError:!0,errorObejct:n};const{isError:r,errorObejct:i,_values:a}=this._checkErrorValues(e);if(r)return{isError:r,errorObejct:i};const{isError:o,errorObejct:s,_dates:l}=this._checkErrorDates(n);return o?{isError:o,errorObejct:s}:{isError:!1,_values:a,_dates:l}}_checkErrorValues(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);return e.iterator(a=>{const o=a;if(o.isError())return r=!0,i=o,!1;if(o.isBoolean())return r=!0,i=I.create(D.VALUE),!1;const s=+o.getValue();if(Number.isNaN(s))return r=!0,i=I.create(D.VALUE),!1;n.push(s)}),r?{isError:r,errorObejct:i}:n.length<=1?{isError:!0,errorObejct:I.create(D.NA)}:{isError:r,_values:n}}else{const r=e.getValue();return e.isBoolean()||e.isString()&&!Kr(r)?{isError:!0,errorObejct:I.create(D.VALUE)}:{isError:!0,errorObejct:I.create(D.NA)}}}_checkErrorDates(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);return e.iterator(a=>{if(a!=null&&a.isError())return r=!0,i=a,!1;if(a!=null&&a.isBoolean())return r=!0,i=I.create(D.VALUE),!1;const o=+a.getValue();if(Number.isNaN(o))return r=!0,i=I.create(D.VALUE),!1;if(o<0)return r=!0,i=I.create(D.NUM),!1;n.push(Math.floor(o))}),r?{isError:r,errorObejct:i}:n.length<=1?{isError:!0,errorObejct:I.create(D.NA)}:{isError:r,_dates:n}}else{const r=e.getValue();return e.isBoolean()||e.isString()&&!Kr(r)?{isError:!0,errorObejct:I.create(D.VALUE)}:+r<0?{isError:!0,errorObejct:I.create(D.NUM)}:{isError:!0,errorObejct:I.create(D.NA)}}}_checkValues(e){let n=!1,r=!1;for(let i=0;i<e.length;i++)e[i]>0&&(n=!0),e[i]<0&&(r=!0);return{positive:n,negative:r}}_iterF(e,n,r){return e.reduce((i,a,o)=>i+a/(1+r)**((n[o]-n[0])/365),0)}};U(WDe,"Xirr");let Wwt=WDe;const zDe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){if(e.isNull()||n.isNull()||r.isNull())return I.create(D.NA);const{isError:i,errorObject:a,variants:o}=Nn(e);if(i)return a;const[s]=o,l=+s.getValue();if(Number.isNaN(l))return I.create(D.VALUE);let{isError:u,errorObejct:c,_values:d,_dates:h}=this._checkErrors(n,r);if(u)return c;if(d=d,h=h,l<0||d.length!==h.length)return I.create(D.NUM);let f=0;const m=h[0];for(let g=0;g<h.length;g++){const p=h[g],v=d[g];f+=v/(1+l)**((p-m)/365)}return ee.create(f)}_checkErrors(e,n){if(e.isError())return{isError:!0,errorObejct:e};if(n.isError())return{isError:!0,errorObejct:n};const{isError:r,errorObejct:i,_values:a}=this._checkErrorValues(e);if(r)return{isError:r,errorObejct:i};const{isError:o,errorObejct:s,_dates:l}=this._checkErrorDates(n);return o?{isError:o,errorObejct:s}:{isError:!1,_values:a,_dates:l}}_checkErrorValues(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);return e.iterator(a=>{const o=a;if(o.isError())return r=!0,i=o,!1;if(o.isNull()||o.isBoolean())return r=!0,i=I.create(D.VALUE),!1;const s=+o.getValue();if(Number.isNaN(s))return r=!0,i=I.create(D.VALUE),!1;n.push(s)}),r?{isError:r,errorObejct:i}:n.length<=1?{isError:!0,errorObejct:I.create(D.NA)}:{isError:r,_values:n}}else{const r=e.getValue();return e.isNull()||e.isBoolean()||e.isString()&&!Kr(r)?{isError:!0,errorObejct:I.create(D.VALUE)}:{isError:!0,errorObejct:I.create(D.NA)}}}_checkErrorDates(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);return e.iterator(a=>{const o=a;if(o.isError())return r=!0,i=o,!1;if(o.isNull()||o.isBoolean())return r=!0,i=I.create(D.VALUE),!1;const s=+o.getValue();if(Number.isNaN(s))return r=!0,i=I.create(D.VALUE),!1;if(s<0)return r=!0,i=I.create(D.NUM),!1;n.push(Math.floor(s))}),r?{isError:r,errorObejct:i}:n.length<=1?{isError:!0,errorObejct:I.create(D.NA)}:{isError:r,_dates:n}}else{const r=e.getValue();return e.isNull()||e.isBoolean()||e.isString()&&!Kr(r)?{isError:!0,errorObejct:I.create(D.VALUE)}:+r<0?{isError:!0,errorObejct:I.create(D.NUM)}:{isError:!0,errorObejct:I.create(D.NA)}}}};U(zDe,"Xnpv");let zwt=zDe;const qDe=class extends be{constructor(){super(...arguments),x(this,"minParams",6),x(this,"maxParams",7)}calculate(e,n,r,i,a,o,s){let l=s??ee.create(0);l.isNull()&&(l=ee.create(0));const{isError:u,errorObject:c,variants:d}=il(e,n,r,i,a,o,l);if(u)return c;const[h,f,m,g,p,v,_]=d,C=Cn(h);if(typeof C!="number")return C;const S=Cn(f);if(typeof S!="number")return S;const b=+m.getValue(),y=+g.getValue(),A=+p.getValue(),w=Math.floor(+v.getValue()),P=Math.floor(+_.getValue());if(Number.isNaN(b)||Number.isNaN(y)||Number.isNaN(A)||Number.isNaN(w)||Number.isNaN(P))return I.create(D.VALUE);if(b<0||y<=0||A<=0||![1,2,4].includes(w)||P<0||P>4||C>=S||!Xp(C,S,w))return I.create(D.NUM);const M=this._getResult(C,S,b,y,A,w,P);return ee.create(M)}_getResult(e,n,r,i,a,o,s){if(L0(e,n,o)>1){let h=r||.01,f=P8(e,n,r,h,a,o,s),m=f-i;for(let g=0;g<100&&Math.abs(m)>1e-7;g++)f=P8(e,n,r,1.01*h,a,o,s),h+=-m/(f-i-m)*h*.01,m=P8(e,n,r,h,a,o,s)-i;return h}const l=NS(e,n,o,s),u=Au(e,n,o,s),{days:c}=aa(e,n,s),d=i/100+l/u*r/o;return(a/100+r/o-d)/d*o*u/c}};U(qDe,"Yield");let qwt=qDe;const YDe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",5)}calculate(e,n,r,i,a){let o=a??ee.create(0);o.isNull()&&(o=ee.create(0));const{isError:s,errorObject:l,variants:u}=il(e,n,r,i,o);if(s)return l;const[c,d,h,f,m]=u,g=Cn(c);if(typeof g!="number")return g;const p=Cn(d);if(typeof p!="number")return p;const v=+h.getValue(),_=+f.getValue(),C=Math.floor(+m.getValue());if(Number.isNaN(v)||Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);if(v<=0||_<=0||C<0||C>4||g>=p)return I.create(D.NUM);const{days:S,yearDays:b}=aa(g,p,C),y=(_/v-1)/(S/b);return ee.create(y)}};U(YDe,"Yielddisc");let Ywt=YDe;const XDe=class extends be{constructor(){super(...arguments),x(this,"minParams",5),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=o??ee.create(0);s.isNull()&&(s=ee.create(0));const{isError:l,errorObject:u,variants:c}=il(e,n,r,i,a,s);if(l)return u;const[d,h,f,m,g,p]=c,v=Cn(d);if(typeof v!="number")return v;const _=Cn(h);if(typeof _!="number")return _;const C=Cn(f);if(typeof C!="number")return C;const S=+m.getValue(),b=+g.getValue(),y=Math.floor(+p.getValue());if(Number.isNaN(S)||Number.isNaN(b)||Number.isNaN(y))return I.create(D.VALUE);const A=this._getDateCorrectOrder(_,v,C);if(S<0||b<=0||y<0||y>4||!A)return I.create(D.NUM);const w=vee(v,y),{days:P}=aa(v,_,y),{days:M}=aa(C,_,y),{days:L}=aa(C,v,y),k=((1+M/w*S)/(b/100+L/w*S)-1)/(P/w);return ee.create(k)}_getDateCorrectOrder(e,n,r){return Math.floor(e)>Math.floor(n)&&Math.floor(n)>Math.floor(r)}};U(XDe,"Yieldmat");let Xwt=XDe;const GDe=[[GAt,Qt.ACCRINT],[QAt,Qt.ACCRINTM],[KAt,Qt.AMORLINC],[ZAt,Qt.COUPDAYBS],[JAt,Qt.COUPDAYS],[ewt,Qt.COUPDAYSNC],[twt,Qt.COUPNCD],[nwt,Qt.COUPNUM],[rwt,Qt.COUPPCD],[iwt,Qt.CUMIPMT],[awt,Qt.CUMPRINC],[owt,Qt.DB],[swt,Qt.DDB],[lwt,Qt.DISC],[uwt,Qt.DOLLARDE],[cwt,Qt.DOLLARFR],[dwt,Qt.DURATION],[hwt,Qt.EFFECT],[fwt,Qt.FV],[mwt,Qt.FVSCHEDULE],[gwt,Qt.INTRATE],[pwt,Qt.IPMT],[vwt,Qt.IRR],[_wt,Qt.ISPMT],[Cwt,Qt.MDURATION],[Swt,Qt.MIRR],[bwt,Qt.NOMINAL],[ywt,Qt.NPER],[Ewt,Qt.NPV],[Rwt,Qt.ODDFPRICE],[Awt,Qt.ODDFYIELD],[wwt,Qt.ODDLPRICE],[Dwt,Qt.ODDLYIELD],[Iwt,Qt.PDURATION],[Pwt,Qt.PMT],[Mwt,Qt.PPMT],[Twt,Qt.PRICE],[Lwt,Qt.PRICEDISC],[xwt,Qt.PRICEMAT],[Owt,Qt.PV],[Nwt,Qt.RATE],[kwt,Qt.RECEIVED],[Fwt,Qt.RRI],[Vwt,Qt.SLN],[Bwt,Qt.SYD],[Uwt,Qt.TBILLEQ],[Hwt,Qt.TBILLPRICE],[jwt,Qt.TBILLYIELD],[$wt,Qt.VDB],[Wwt,Qt.XIRR],[zwt,Qt.XNPV],[qwt,Qt.YIELD],[Ywt,Qt.YIELDDISC],[Xwt,Qt.YIELDMAT]];var Ii=(t=>(t.CELL="CELL",t.ERROR_TYPE="ERROR.TYPE",t.INFO="INFO",t.ISBLANK="ISBLANK",t.ISERR="ISERR",t.ISERROR="ISERROR",t.ISEVEN="ISEVEN",t.ISFORMULA="ISFORMULA",t.ISLOGICAL="ISLOGICAL",t.ISNA="ISNA",t.ISNONTEXT="ISNONTEXT",t.ISNUMBER="ISNUMBER",t.ISODD="ISODD",t.ISOMITTED="ISOMITTED",t.ISREF="ISREF",t.ISTEXT="ISTEXT",t.N="N",t.NA="NA",t.SHEET="SHEET",t.SHEETS="SHEETS",t.TYPE="TYPE",t))(Ii||{});const QDe=class extends be{constructor(){super(...arguments),x(this,"needsReferenceObject",!0),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isError())return r;if(r.isReferenceObject()&&(r=r.toArrayValueObject()),r.isArray()){const i=r.getRowCount(),a=r.getColumnCount();if(i===1&&a===1){const o=r.get(0,0);return this._handleSingleObject(o,n)}return r.map(o=>o.isError()?o:this._handleSingleObject(o,n,!0))}return this._handleSingleObject(r,n)}_handleSingleObject(e,n,r=!1){let i=n;if(i.isError())return i;if(!i.isReferenceObject())return I.create(D.NA);const a=i.getCurrentActiveSheetData(),{columnData:o,defaultColumnWidth:s}=a;i=i.toArrayValueObject();const l=i.getCurrentRow(),u=i.getCurrentColumn();i=i.getFirstCell();const c=`${e.getValue()}`;let d;switch(c.toLocaleLowerCase()){case"address":return Xn.create(`$${Ie.chatAtABC(u)}$${l+1}`);case"col":return ee.create(u+1);case"color":return ee.create(0);case"contents":return i;case"filename":return I.create(D.VALUE);case"format":return Xn.create("G");case"parentheses":return ee.create(0);case"prefix":return Xn.create("");case"protect":return ee.create(1);case"row":return ee.create(l+1);case"type":return d="v",i.isNull()&&(d="b"),i.isString()&&(d="l"),Xn.create(d);case"width":return this._getWidthResult(o,s,u,r);default:return I.create(D.VALUE)}}_getWidthResult(e,n,r,i){var a;let o=(a=e[r])==null?void 0:a.w;if(!o&&o!==0&&(o=n),i)return ee.create(o);const s=[[o,o===n]];return ni.createByArray(s)}};U(QDe,"Cell");let Gwt=QDe;const KDe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1),x(this,"_errorTypeValueMap",new Map([[D.NULL,1],[D.DIV_BY_ZERO,2],[D.VALUE,3],[D.REF,4],[D.NAME,5],[D.NUM,6],[D.NA,7],[D.CONNECT,8],[D.CALC,14]]))}calculate(e){return e.isArray()?e.mapValue(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){const n=e.getValue(),r=this._errorTypeValueMap.get(n);return r?ee.create(r):I.create(D.NA)}};U(KDe,"ErrorType");let Qwt=KDe;const ZDe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isNull()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isNull()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(ZDe,"Isblank");let Kwt=ZDe;const JDe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.getValue()===D.NA?kn.create(!1):e.isError()?kn.create(!0):e.isArray()?e.mapValue(n=>n.getValue()===D.NA?kn.create(!1):n.isError()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(JDe,"Iserr");let Zwt=JDe;const eIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isError()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(eIe,"Iserror");let Jwt=eIe;const tIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;if(n.isArray()){const a=n.getRowCount(),o=n.getColumnCount();if(a>1||o>1)return I.create(D.VALUE);n=n.get(0,0)}if(n.isError())return n;if(n.isBoolean())return I.create(D.VALUE);const r=Math.trunc(+n.getValue());if(Number.isNaN(r))return I.create(D.VALUE);const i=r%2===0;return kn.create(i)}};U(tIe,"Iseven");let eDt=tIe;const nIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1),x(this,"needsReferenceObject",!0)}calculate(e){var n;if(e.isError())return e;if(!e.isReferenceObject())return I.create(D.NA);const r=(n=e.getCurrentActiveSheetData())==null?void 0:n.cellData.getMatrix(),{startRow:i,startColumn:a}=e.getRangePosition(),o=e.toArrayValueObject(),s=o.mapValue((l,u,c)=>{var d;const h=(d=r==null?void 0:r[i+u])==null?void 0:d[a+c];return h!=null&&h.f||h!=null&&h.si?kn.create(!0):kn.create(!1)});return o.getRowCount()===1&&o.getColumnCount()===1?s.get(0,0):s}};U(nIe,"Isformula");let tDt=nIe;const rIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isBoolean()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isBoolean()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(rIe,"Islogical");let nDt=rIe;const iIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.getValue()===D.NA?kn.create(!0):e.isArray()?e.mapValue(n=>n.getValue()===D.NA?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(iIe,"Isna");let rDt=iIe;const aIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return!e.isArray()&&!e.isString()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isString()?kn.create(!1):kn.create(!0)):kn.create(!1)}};U(aIe,"Isnontext");let iDt=aIe;const oIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isNumber()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isNumber()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(oIe,"Isnumber");let aDt=oIe;const sIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;if(n.isArray()){const a=n.getRowCount(),o=n.getColumnCount();if(a>1||o>1)return I.create(D.VALUE);n=n.get(0,0)}if(n.isError())return n;if(n.isBoolean())return I.create(D.VALUE);const r=Math.trunc(+n.getValue());if(Number.isNaN(r))return I.create(D.VALUE);const i=r%2!==0;return kn.create(i)}};U(sIe,"Isodd");let oDt=sIe;const lIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1),x(this,"needsReferenceObject",!0)}calculate(e){return e.isReferenceObject()?kn.create(!0):kn.create(!1)}};U(lIe,"Isref");let sDt=lIe;const uIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isString()?kn.create(!0):e.isArray()?e.mapValue(n=>n.isString()?kn.create(!0):kn.create(!1)):kn.create(!1)}};U(uIe,"Istext");let lDt=uIe;const cIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;if(e.isArray()&&(n=e.get(0,0)),n.isError())return n;if(n.isString())return ee.create(0);const r=+n.getValue();return ee.create(r)}};U(cIe,"N");let uDt=cIe;const dIe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){return I.create(D.NA)}};U(dIe,"Na");let cDt=dIe;const hIe=class extends be{constructor(){super(...arguments),x(this,"needsReferenceObject",!0),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isReferenceObject()){const n=e.getRowCount(),r=e.getColumnCount();if(n===1&&r===1){const i=e.getFirstCell();if(i.isError())return ee.create(16);if(i.isBoolean())return ee.create(4);if(i.isString())return ee.create(2);if(i.isNumber()||i.isNull())return ee.create(1)}else return ee.create(64)}else{if(e.isArray())return ee.create(64);if(e.isError())return ee.create(16);if(e.isBoolean())return ee.create(4);if(e.isString())return ee.create(2);if(e.isNumber()||e.isNull())return ee.create(1)}return ee.create(128)}};U(hIe,"Type");let dDt=hIe;const fIe=[[Gwt,Ii.CELL],[Qwt,Ii.ERROR_TYPE],[Kwt,Ii.ISBLANK],[Zwt,Ii.ISERR],[Jwt,Ii.ISERROR],[eDt,Ii.ISEVEN],[tDt,Ii.ISFORMULA],[nDt,Ii.ISLOGICAL],[rDt,Ii.ISNA],[iDt,Ii.ISNONTEXT],[aDt,Ii.ISNUMBER],[oDt,Ii.ISODD],[sDt,Ii.ISREF],[lDt,Ii.ISTEXT],[uDt,Ii.N],[cDt,Ii.NA],[dDt,Ii.TYPE]],mIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=!0,r=!0,i=null;for(const a of e){if(a.isError())return a;if(a.isArray()){if(a.iterator(o=>{if(o!=null&&o.isError())return i=o,!1;(o!=null&&o.isBoolean()||o!=null&&o.isNumber())&&(n=n&&!!o.getValue(),r=!1)}),i)return i}else(a.isBoolean()||a.isNumber())&&(n=n&&!!a.getValue(),r=!1)}return r?I.create(D.VALUE):kn.create(n)}};U(mIe,"And");let hDt=mIe;const gIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;if(!(n.isValueObject()&&n.isLambda()&&n.getLambdaPrivacyVarKeys().length===1))return I.create(D.VALUE);const r=n,i=e.isArray()?e.getRowCount():1,a=e.isArray()?e.getColumnCount():1,o=qe(i,a,e),s=[[]];for(let l=0;l<a;l++){const u=[];for(let h=0;h<i;h++){const f=o.get(h,l);u.push([f])}const c=ni.create({calculateValueList:u,rowCount:i,columnCount:1,unitId:"",sheetId:"",row:0,column:0});let d=r.execute(c);if(d.isArray()){const h=d.getRowCount(),f=d.getColumnCount();if(h>1||f>1)return I.create(D.CALC);d=d.get(0,0)}d.isNull()&&(d=ee.create(0)),s[0].push(d)}return a===1?s[0][0]:ni.create({calculateValueList:s,rowCount:1,columnCount:a,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(gIe,"Bycol");let fDt=gIe;const pIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;if(!(n.isValueObject()&&n.isLambda()&&n.getLambdaPrivacyVarKeys().length===1))return I.create(D.VALUE);const r=n,i=e.isArray()?e.getRowCount():1,a=e.isArray()?e.getColumnCount():1,o=qe(i,a,e),s=[];for(let l=0;l<i;l++){const u=[[]];for(let h=0;h<a;h++){const f=o.get(l,h);u[0].push(f)}const c=ni.create({calculateValueList:u,rowCount:1,columnCount:a,unitId:"",sheetId:"",row:0,column:0});let d=r.execute(c);if(d.isArray()){const h=d.getRowCount(),f=d.getColumnCount();if(h>1||f>1)return I.create(D.CALC);d=d.get(0,0)}d.isNull()&&(d=ee.create(0)),s.push([d])}return i===1?s[0][0]:ni.create({calculateValueList:s,rowCount:i,columnCount:1,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(pIe,"Byrow");let mDt=pIe;const vIe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){return kn.create(!1)}};U(vIe,"False");let gDt=vIe;var Pi=(t=>(t.AND="AND",t.BYCOL="BYCOL",t.BYROW="BYROW",t.FALSE="FALSE",t.IF="IF",t.IFERROR="IFERROR",t.IFNA="IFNA",t.IFS="IFS",t.LAMBDA="LAMBDA",t.LET="LET",t.MAKEARRAY="MAKEARRAY",t.MAP="MAP",t.NOT="NOT",t.OR="OR",t.REDUCE="REDUCE",t.SCAN="SCAN",t.SWITCH="SWITCH",t.TRUE="TRUE",t.XOR="XOR",t))(Pi||{});const _Ie=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r=kn.create(!1)){if(e.isError())return e;if(n.isError())return n;const i=this._getSingleValueObject(e);if(!i.isArray())return i.getValue()?n:r;const a=Math.max(i.isArray()?i.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),o=Math.max(i.isArray()?i.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),s=qe(a,o,i),l=qe(a,o,n,I.create(D.NA)),u=qe(a,o,r,I.create(D.NA));return s.map((c,d,h)=>{if(c.isNull())return I.create(D.NA);{const f=l.get(d,h)||ii.create(),m=u.get(d,h)||ii.create();return this._calculateSingleCell(c,f,m)}})}_getSingleValueObject(e){return e.isArray()&&e.getRowCount()===1&&e.getColumnCount()===1?e.getFirstCell():e}_calculateSingleCell(e,n,r){return e.isNull()?I.create(D.NA):e.getValue()?n.isNull()?I.create(D.NA):n:r.isNull()?I.create(D.NA):r}};U(_Ie,"If");let pDt=_Ie;const CIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;if(!e.isArray())return e.isError()?n:e;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e),o=qe(r,i,n);return a.iterator((s,l,u)=>{s!=null&&s.isError()&&a.set(l,u,o.get(l,u))}),a}};U(CIe,"Iferror");let vDt=CIe;const SIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError()&&e.getErrorType()!==D.NA)return e;if(n.isError())return n;if(!e.isArray())return e.isError()&&e.getErrorType()===D.NA?n:e;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e),o=qe(r,i,n);return a.iterator((s,l,u)=>{s!=null&&s.isError()&&s.getErrorType()===D.NA&&a.set(l,u,o.get(l,u))}),a}};U(SIe,"Ifna");let _Dt=SIe;const bIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(...e){if(e.length%2!==0)return I.create(D.NA);for(let o=0;o<e.length;o++)if(e[o].isError())return e[o];const n=Math.max(...e.map(o=>o.isArray()?o.getRowCount():1)),r=Math.max(...e.map(o=>o.isArray()?o.getColumnCount():1)),i=e.map(o=>qe(n,r,o,I.create(D.NA))),a=i[0].map((o,s,l)=>{for(let u=0;u<i.length;u+=2){const c=i[u].get(s,l)||ii.create(),d=i[u+1].get(s,l)||ii.create();if(c.isNull())continue;if(c.isError())return c;const h=c.getValue();if(c.isString()){if(`${h}`.toLocaleUpperCase()==="TRUE")return d;if(`${h}`.toLocaleUpperCase()==="FALSE")continue;return I.create(D.VALUE)}if(+h)return d.isNull()?I.create(D.NA):d}return I.create(D.NA)});return n===1&&r===1?a.get(0,0):a}};U(bIe,"Ifs");let CDt=bIe;const yIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){return I.create(D.VALUE)}};U(yIe,"Lambda");let SDt=yIe;const EIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",255)}calculate(...e){return I.create(D.VALUE)}};U(EIe,"Let");let bDt=EIe;const RIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(...e){const n=this.getIndexNumValue(e[0]);if(typeof n!="number")return n;const r=this.getIndexNumValue(e[1]);if(typeof r!="number")return r;if(!(e[2].isValueObject()&&e[2].isLambda()))return I.create(D.VALUE);const i=e[2],a=[];for(let o=0;o<n;o++){a[o]==null&&(a[o]=[]);for(let s=0;s<r;s++){let l=i.execute(ee.create(o+1),ee.create(s+1));l.isArray()&&(l=l.get(0,0)),a[o][s]=l}}return new _Rt(a)}isAsync(){return!0}};U(RIe,"Makearray");let yDt=RIe;var ek;let EDt=(ek=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(...t){const e=[];let n=null,r=0,i=0;for(let o=0;o<t.length;o++){const s=t[o];if(s.isError())return s;if(o===t.length-1){if(!(s.isValueObject()&&s.isLambda()))return I.create(D.VALUE);n=s}else e.push(s),r=Math.max(r,s.isArray()?s.getRowCount():1),i=Math.max(i,s.isArray()?s.getColumnCount():1)}const a=this._getResultArray(e,n,r,i);return r===1&&i===1?a[0][0]:ni.create({calculateValueList:a,rowCount:r,columnCount:i,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}_getResultArray(t,e,n,r){const i=[];for(let a=0;a<n;a++){const o=[];for(let s=0;s<r;s++){const l=[];let u=!1;for(let d=0;d<t.length;d++){const h=t[d];if(!h.isArray())if(a===0&&s===0){l.push(h);continue}else{o.push(I.create(D.NA)),u=!0;break}const f=h.get(a,s);if(!f){o.push(I.create(D.NA)),u=!0;break}l.push(f)}if(u||l.length===0)continue;let c=e.execute(...l);c.isArray()&&(c=c.get(0,0)),c.isNull()&&(c=ee.create(0)),o.push(c)}i.push(o)}return i}},U(ek,"Map"),ek);const AIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){if(e.isError())return e;const n=+e.getValue();return Number.isNaN(n)?I.create(D.VALUE):kn.create(!n)}};U(AIe,"Not");let RDt=AIe;const wIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=!1,r=!0,i=null;for(const a of e){if(a.isError())return a;if(a.isArray()){if(a.iterator(o=>{if(o!=null&&o.isError())return i=o,!1;(o!=null&&o.isBoolean()||o!=null&&o.isNumber())&&(n=n||!!o.getValue(),r=!1)}),i)return i}else(a.isBoolean()||a.isNumber())&&(n=n||!!a.getValue(),r=!1)}return r?new I(D.VALUE):new kn(n)}};U(wIe,"Or");let ADt=wIe;const DIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){return e.isArray()?e.mapValue(i=>this._handleSingleValueObject(i,n,r)):this._handleSingleValueObject(e,n,r)}_handleSingleValueObject(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;if(!(r.isValueObject()&&r.isLambda()&&r.getLambdaPrivacyVarKeys().length===2))return I.create(D.VALUE);const i=r,a=n.isArray()?n.getRowCount():1,o=n.isArray()?n.getColumnCount():1;let s=e;for(let u=0;u<a;u++)for(let c=0;c<o;c++){const d=n.isArray()?n.get(u,c):n;if(d.isError())return d;let h=i.execute(s,d);if(h.isArray()&&(h=h.get(0,0)),h.isError())return h;h.isNull()&&(h=ee.create(0)),s=h}const l=+s.getValue();return Number.isNaN(l)||!Number.isFinite(l)?I.create(D.VALUE):ee.create(l)}};U(DIe,"Reduce");let wDt=DIe;const IIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;if(!(r.isValueObject()&&r.isLambda()&&r.getLambdaPrivacyVarKeys().length===2))return I.create(D.VALUE);let i=e;if(e.isArray()){const a=e.getRowCount(),o=e.getColumnCount();if(a>1||o>1)return I.create(D.CALC);i=e.get(0,0)}return this._getResult(i,n,r)}_getResult(e,n,r){const i=n.isArray()?n.getRowCount():1,a=n.isArray()?n.getColumnCount():1;let o=e;const s=[];for(let l=0;l<i;l++){const u=[];for(let c=0;c<a;c++){if(o.isError()){u.push(o);continue}const d=n.isArray()?n.get(l,c):n;if(d.isError()){o=d,u.push(d);continue}let h=r.execute(o,d);h.isArray()&&(h=h.get(0,0)),h.isNull()&&(h=ee.create(0)),o=h,u.push(h)}s.push(u)}return i===1&&a===1?s[0][0]:ni.create({calculateValueList:s,rowCount:i,columnCount:a,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(IIe,"Scan");let DDt=IIe;const PIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3)}calculate(e,...n){if(e.isError())return e;const r=n.length%2!==0,i=r?n[n.length-1]:ii.create();return!e.isArray()&&!n.some(a=>a.isArray())?this._handleNonArrayInputs(e,n,i,r):this._handleArrayInputs(e,n,i,r)}_handleNonArrayInputs(e,n,r,i){for(let a=0;a<n.length-(i?1:0);a+=2){const o=n[a],s=n[a+1];if(!o.isNull()){if(o.isError())return o;if(`${e.getValue()}`.toLocaleLowerCase()===`${o.getValue()}`.toLocaleLowerCase())return s.isNull()?I.create(D.NA):s}}return r.isNull()?I.create(D.NA):r}_handleArrayInputs(e,n,r,i){const a=Math.max(e.isArray()?e.getRowCount():1,...n.map(c=>c.isArray()?c.getRowCount():1),r.isArray()?r.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,...n.map(c=>c.isArray()?c.getColumnCount():1),r.isArray()?r.getColumnCount():1),s=qe(a,o,e),l=n.map(c=>qe(a,o,c,I.create(D.NA))),u=qe(a,o,r,I.create(D.NA));return s.map((c,d,h)=>{for(let m=0;m<l.length-(i?1:0);m+=2){const g=l[m].get(d,h)||ii.create(),p=l[m+1].get(d,h)||ii.create();if(!g.isNull()){if(g.isError()||c.isError())return g.isError()?g:c;if(`${c.getValue()}`.toLocaleLowerCase()===`${g.getValue()}`.toLocaleLowerCase())return p.isNull()?I.create(D.NA):p}}const f=u.get(d,h)||ii.create();return f.isNull()?I.create(D.NA):f})}};U(PIe,"Switch");let IDt=PIe;const MIe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){return kn.create(!0)}};U(MIe,"True");let PDt=MIe;const TIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=0,r=!0,i=null;for(const a of e){if(a.isError())return a;if(a.isArray()){if(a.iterator(o=>{if(o!=null&&o.isError())return i=o,!1;(o!=null&&o.isBoolean()||o!=null&&o.isNumber())&&(o.getValue()&&n++,r=!1)}),i)return i}else(a.isBoolean()||a.isNumber())&&(a.getValue()&&n++,r=!1)}return r?I.create(D.VALUE):kn.create(n%2===1)}};U(TIe,"Xor");let MDt=TIe;const LIe=[[hDt,Pi.AND],[fDt,Pi.BYCOL],[mDt,Pi.BYROW],[gDt,Pi.FALSE],[pDt,Pi.IF],[vDt,Pi.IFERROR],[_Dt,Pi.IFNA],[CDt,Pi.IFS],[SDt,Pi.LAMBDA],[bDt,Pi.LET],[yDt,Pi.MAKEARRAY],[EDt,Pi.MAP],[RDt,Pi.NOT],[ADt,Pi.OR],[wDt,Pi.REDUCE],[DDt,Pi.SCAN],[IDt,Pi.SWITCH],[PDt,Pi.TRUE],[MDt,Pi.XOR]],xIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",5)}calculate(e,n,r,i,a){if(e.isError())return e;if(n.isError())return n;if(r!=null&&r.isError())return r;if(i!=null&&i.isError())return i;if(a!=null&&a.isError())return a;const o=r??ee.create(1),s=i??kn.create(!0),l=a??Xn.create(""),u=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,e,I.create(D.NA)),h=qe(u,c,n,I.create(D.NA)),f=qe(u,c,o,I.create(D.NA)),m=qe(u,c,s,I.create(D.NA)),g=qe(u,c,l,I.create(D.NA));return d.map((p,v,_)=>{const C=h.get(v,_)||I.create(D.NA),S=f.get(v,_)||I.create(D.NA),b=m.get(v,_)||I.create(D.NA),y=g.get(v,_)||I.create(D.NA);return p.isError()?p:C.isError()?C:S.isError()?S:b.isError()?b:y.isError()?y:this._calculateSingleCell(p,C,S,b,y)})}_calculateSingleCell(e,n,r,i,a){const o=Number.parseInt(`${Number(e.getValue())-1}`),s=Number.parseInt(`${Number(n.getValue())-1}`),l=Number.parseInt(`${Number(r.getValue())}`);if(Number.isNaN(o)||Number.isNaN(s)||Number.isNaN(l)||l<1||l>4)return I.create(D.VALUE);const u=OIe(l),c=this.getZeroOrOneByOneDefault(i),d=`${a.getValue()}`,h=A_(d)?`'${d}'`:d,f={startRow:o,startColumn:s,endRow:o,endColumn:s,startAbsoluteRefType:u,endAbsoluteRefType:u},m=i&&!c?$Re(f):Jo(f);return Xn.create(h!==""?`${h}!${m}`:m)}};U(xIe,"Address");let TDt=xIe;function OIe(t){switch(t){case 1:return yr.ALL;case 2:return yr.ROW;case 3:return yr.COLUMN;case 4:return yr.NONE;default:return yr.ALL}}U(OIe,"transformAbsoluteRefType");const NIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1),x(this,"needsReferenceObject",!0)}calculate(e){return e.isReferenceObject()?ee.create(1):I.create(D.VALUE)}};U(NIe,"Areas");let LDt=NIe;const kIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255),x(this,"needsReferenceObject",!0)}isAddress(){return!0}calculate(e,...n){let r=e;if(r.isError())return r;if(r.isReferenceObject()&&(r=r.toArrayValueObject()),!r.isArray()){const l=r.convertToNumberObjectValue();return l.isError()?l:n[Math.trunc(+l.getValue())-1]||I.create(D.VALUE)}let i=r.isArray()?r.getRowCount():1,a=r.isArray()?r.getColumnCount():1;n.forEach((l,u)=>{if(l.isArray()){const c=l;i=Math.max(i,c.getRowCount()),a=Math.max(a,c.getColumnCount())}else i=Math.max(i,1),a=Math.max(a,1)});const o=qe(i,a,r,I.create(D.NA)),s=n.map(l=>{let u=l;return u.isReferenceObject()&&(u=u.toArrayValueObject()),qe(i,a,u,I.create(D.NA))});return o.map((l,u,c)=>{if(l.isError())return l;const d=l.convertToNumberObjectValue();if(d.isError())return d;const h=s[Math.trunc(+d.getValue())-1];let f=(h==null?void 0:h.get(u,c))||I.create(D.VALUE);return f!=null&&f.isNull()&&(f=ee.create(0)),f})}};U(kIe,"Choose");let xDt=kIe;const FIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return e;const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=[];for(let o=0;o<n.length;o++){let s=n[o];if(s.isArray()){const c=s.getRowCount(),d=s.getColumnCount();if(c>1||d>1)return I.create(D.VALUE);s=s.get(0,0)}if(s.isString()&&(s=s.convertToNumberObjectValue()),s.isError())return s;const l=Math.trunc(+s.getValue());if(l===0||Math.abs(l)>i)return I.create(D.VALUE);let u=e;i>1&&(l<0?u=e.slice(void 0,[l+i,l+1+i]):u=e.slice(void 0,[l-1,l]));for(let c=0;c<r;c++)a[c]||(a[c]=[]),e.isArray()?a[c].push(u.get(c,0)):a[c].push(e)}return ni.create({calculateValueList:a,rowCount:a.length,columnCount:a[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(FIe,"Choosecols");let ODt=FIe;const VIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return e;const r=e.isArray()?e.getRowCount():1,i=[];for(let a=0;a<n.length;a++){let o=n[a];if(o.isArray()){const u=o.getRowCount(),c=o.getColumnCount();if(u>1||c>1)return I.create(D.VALUE);o=o.get(0,0)}if(o.isString()&&(o=o.convertToNumberObjectValue()),o.isError())return o;const s=Math.trunc(+o.getValue());if(s===0||Math.abs(s)>r)return I.create(D.VALUE);let l=e;r>1&&(s<0?l=e.slice([s+r,s+1+r]):l=e.slice([s-1,s])),e.isArray()?i.push(l.getArrayValue()[0]):i.push([e])}return ni.create({calculateValueList:i,rowCount:i.length,columnCount:i[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(VIe,"Chooserows");let NDt=VIe;const BIe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",1)}calculate(e){if(e==null)return ee.create(this.column+1);if(e.isError())return e;if(!e.isArray())return I.create(D.NA);const n=e.getCurrentColumn(),r=e.getColumnCount(),i=[];for(let o=0;o<r;o++)i.push(ee.create(n+o+1));const a={calculateValueList:[i],rowCount:1,columnCount:r,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(a)}};U(BIe,"Column");let kDt=BIe;const UIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isError())return e;if(e.isString()||e.isNumber()||e.isBoolean())return ee.create(1);if(!e.isArray())return I.create(D.NA);const n=e.getColumnCount();return ee.create(n)}};U(UIe,"Columns");let FDt=UIe;const HIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=r??ee.create(0),a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=Math.max(n.isArray()?n.getRowCount():1,i.isArray()?i.getRowCount():1),l=Math.max(n.isArray()?n.getColumnCount():1,i.isArray()?i.getColumnCount():1),u=qe(s,l,n,I.create(D.NA)),c=qe(s,l,i,I.create(D.NA));if(s>1||l>1)return u.mapValue((v,_,C)=>{const S=c.get(_,C);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const{isError:b,errorObject:y}=this._checkRowsColumns(v,S,a,o);return b?y:e.isArray()?I.create(D.VALUE):e});if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const d=n.isArray()?n.get(0,0):n,h=i.isArray()?i.get(0,0):i,{isError:f,errorObject:m,rowsValue:g,columnsValue:p}=this._checkRowsColumns(d,h,a,o);return f?m:this._getResultArray(e,g,p,a,o)}_checkRowsColumns(e,n,r,i){if(e.isError())return{isError:!0,errorObject:e};if(n.isError())return{isError:!0,errorObject:n};const a=Math.trunc(+e.getValue()),o=Math.trunc(+n.getValue());return Number.isNaN(a)||Number.isNaN(o)?{isError:!0,errorObject:I.create(D.VALUE)}:Math.abs(a)>=r||Math.abs(o)>=i?{isError:!0,errorObject:I.create(D.CALC)}:{isError:!1,rowsValue:a,columnsValue:o}}_getResultArray(e,n,r,i,a){const o=n>=0?[n,i]:[0,i+n],s=r>=0?[r,a]:[0,a+r];let l;return n===0&&r===0?l=e:n===0?l=e.slice(void 0,s):r===0?l=e.slice(o,void 0):l=e.slice(o,s),l=l.map(u=>u.isNull()?ee.create(0):u),i-n===1&&a-r===1?l.get(0,0):l}};U(HIe,"Drop");let VDt=HIe;const jIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",4)}calculate(e,n,r,i){const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1;let s=n,l=r??ee.create(o);const u=i??I.create(D.NA);n.isNull()&&(s=ee.create(a)),l.isNull()&&(l=ee.create(o));const c=Math.max(s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1),d=Math.max(s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1),h=qe(c,d,s,I.create(D.NA)),f=qe(c,d,l,I.create(D.NA));if(c>1||d>1)return h.mapValue((b,y,A)=>{const w=f.get(y,A);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const{isError:P,errorObject:M}=this._checkRowsColumnsPadWith(b,w,u,a,o);return P?M:e.isArray()?e.get(0,0):e});if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const m=s.isArray()?s.get(0,0):s,g=l.isArray()?l.get(0,0):l,{isError:p,errorObject:v,rowsValue:_,columnsValue:C,padWithObject:S}=this._checkRowsColumnsPadWith(m,g,u,a,o);return p?v:this._getResultArray(e,_,C,S,a,o)}_checkRowsColumnsPadWith(e,n,r,i,a){if(e.isError())return{isError:!0,errorObject:e};if(n.isError())return{isError:!0,errorObject:n};const o=Math.trunc(+e.getValue()),s=Math.trunc(+n.getValue());if(Number.isNaN(o)||Number.isNaN(s))return{isError:!0,errorObject:I.create(D.VALUE)};if(Math.abs(o)<i||Math.abs(s)<a)return{isError:!0,errorObject:I.create(D.VALUE)};let l=r;if(r.isArray()){const u=r.getRowCount(),c=r.getColumnCount();if(u>1||c>1)return{isError:!0,errorObject:I.create(D.VALUE)};l=r.get(0,0)}return{isError:!1,rowsValue:o,columnsValue:s,padWithObject:l}}_getResultArray(e,n,r,i,a,o){let s=[];e.isArray()?s=e.map(c=>c.isNull()?ee.create(0):c).getArrayValue():s=[[e]];const l=Math.max(0,n-a),u=Math.max(0,r-o);for(let c=0;c<l;c++)s.push(new Array(o).fill(i));for(let c=0;c<u;c++)s.forEach(d=>{d.push(i)});return n===1&&r===1?s[0][0]:ni.create({calculateValueList:s,rowCount:s.length,columnCount:s[0].length,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(jIe,"Expand");let BDt=jIe;const $Ie=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=r??I.create(D.CALC);if(e.isError())return e;if(n.isError())return n;const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=n.isArray()?n.getRowCount():1,l=n.isArray()?n.getColumnCount():1;return s>1&&l>1||s===1&&l!==o||l===1&&s!==a?I.create(D.VALUE):a===1&&o===1?this._getResultArrayByR1C1(e,n,i):s===1?l!==o?I.create(D.VALUE):this._getResultArrayByR1(a,o,e,n,i):l===1?s!==a?I.create(D.VALUE):this._getResultArrayByC1(a,o,e,n,i):i}_getResultArrayByR1C1(e,n,r){let i=e,a=n;return i.isArray()&&(i=i.get(0,0)),a.isArray()&&(a=a.get(0,0)),a.isString()&&(a=a.convertToNumberObjectValue()),a.isError()?a:+a.getValue()?i:r}_getResultArrayByR1(e,n,r,i,a){const o=[];for(let s=0;s<n;s++){let l=i.get(0,s);if(l.isString()&&(l=l.convertToNumberObjectValue()),l.isError())return l;if(+l.getValue())for(let u=0;u<e;u++){o[u]||(o[u]=[]);const c=r.get(u,s);o[u].push(c)}}return o.length===0?a:ni.create({calculateValueList:o,rowCount:o.length,columnCount:o[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}_getResultArrayByC1(e,n,r,i,a){const o=[];for(let s=0;s<e;s++){let l=i.get(s,0);if(l.isString()&&(l=l.convertToNumberObjectValue()),l.isError())return l;if(!+l.getValue())continue;const u=[];for(let c=0;c<n;c++){const d=r.get(s,c);u.push(d)}o.push(u)}return o.length===0?a:ni.create({calculateValueList:o,rowCount:o.length,columnCount:o[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U($Ie,"Filter");let UDt=$Ie;var Zn=(t=>(t.ADDRESS="ADDRESS",t.AREAS="AREAS",t.CHOOSE="CHOOSE",t.CHOOSECOLS="CHOOSECOLS",t.CHOOSEROWS="CHOOSEROWS",t.COLUMN="COLUMN",t.COLUMNS="COLUMNS",t.DROP="DROP",t.EXPAND="EXPAND",t.FILTER="FILTER",t.FORMULATEXT="FORMULATEXT",t.GETPIVOTDATA="GETPIVOTDATA",t.HLOOKUP="HLOOKUP",t.HSTACK="HSTACK",t.HYPERLINK="HYPERLINK",t.IMAGE="IMAGE",t.INDEX="INDEX",t.INDIRECT="INDIRECT",t.LOOKUP="LOOKUP",t.MATCH="MATCH",t.OFFSET="OFFSET",t.ROW="ROW",t.ROWS="ROWS",t.RTD="RTD",t.SORT="SORT",t.SORTBY="SORTBY",t.TAKE="TAKE",t.TOCOL="TOCOL",t.TOROW="TOROW",t.TRANSPOSE="TRANSPOSE",t.UNIQUE="UNIQUE",t.VLOOKUP="VLOOKUP",t.VSTACK="VSTACK",t.WRAPCOLS="WRAPCOLS",t.WRAPROWS="WRAPROWS",t.XLOOKUP="XLOOKUP",t.XMATCH="XMATCH",t))(Zn||{});const WIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){if(e.isError())return e;if(n.isError())return I.create(D.REF);if(!n.isArray()||r.isError()||i!=null&&i.isError())return I.create(D.NA);const a=this.getZeroOrOneByOneDefault(i);if(a==null)return I.create(D.VALUE);const o=this.getIndexNumValue(r);if(o instanceof I)return o;const s=n.slice([0,1]),l=n.slice([o-1,o]);return s==null||l==null?I.create(D.REF):e.isArray()?e.map(u=>this._handleSingleObject(u,s,l,a)):this._handleSingleObject(e,s,l,a)}_handleSingleObject(e,n,r,i){return i===0?this.equalSearch(e,n,r):this.binarySearch(e,n,r)}};U(WIe,"Hlookup");let HDt=WIe;const zIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=Math.max(...e.map(i=>i.isArray()?i.getRowCount():1)),r=[];for(let i=0;i<e.length;i++){const a=e[i];if(a.isError())return a;const o=a.isArray()?a.getRowCount():1,s=a.isArray()?a.getColumnCount():1;for(let l=0;l<n;l++){r[l]||(r[l]=[]);for(let u=0;u<s;u++){let c=a;a.isArray()&&(c=a.get(l,u)),l>o-1||!c?r[l].push(I.create(D.NA)):r[l].push(c)}}}return ni.create({calculateValueList:r,rowCount:r.length,columnCount:r[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(zIe,"Hstack");let jDt=zIe;const qIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",4),x(this,"needsReferenceObject",!0)}calculate(e,n,r,i){if(e.isError())return e;if(n!=null&&n.isError())return n;if(r!=null&&r.isError())return r;if(i!=null&&i.isError())return i;let a=0,o=0;if(e.isValueObject())a=1,o=1;else if(e.isReferenceObject()){const{startRow:h,endRow:f,startColumn:m,endColumn:g}=e.getRangePosition();a=f-h+1,o=g-m+1}else return I.create(D.VALUE);let s,l;a===1&&o>1&&r==null?(l=n??ee.create(0),s=ee.create(0)):(s=n??ee.create(0),l=r??ee.create(0));let u=i??ee.create(1);s.isReferenceObject()&&(s=s.toArrayValueObject()),l.isReferenceObject()&&(l=l.toArrayValueObject()),u.isReferenceObject()&&(u=u.toArrayValueObject());const c=Math.max(s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1,u.isArray()?u.getRowCount():1),d=Math.max(s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1,u.isArray()?u.getColumnCount():1);if(s=s,l=l,u=u,c===1&&d===1)return this._calculateSingleCell(e,s,l,u);{const h=qe(c,d,s,I.create(D.NA)),f=qe(c,d,l,I.create(D.NA)),m=qe(c,d,u,I.create(D.NA));return h.map((g,p,v)=>{const _=f.get(p,v)||ii.create(),C=m.get(p,v)||ii.create(),S=this._calculateSingleCell(e,g,_,C);return S.isReferenceObject()?S.toArrayValueObject().getFirstCell():S})}}_calculateSingleCell(e,n,r,i){if(n.isError())return n;const a=this._getNumberValue(n);if(a===void 0||a<0)return I.create(D.VALUE);if(r.isError())return r;const o=this._getNumberValue(r);if(o===void 0||o<0)return I.create(D.VALUE);if(i.isError())return i;const s=this._getAreaNumberValue(i);return s===void 0||s<1?I.create(D.VALUE):e.isReferenceObject()?this._getReferenceObject(e,a,o,s):e.isValueObject()&&a===1&&o===1?e:I.create(D.REF)}_getNumberValue(e){if(e==null)return 0;let n=0;if(e.isBoolean())e.getValue()===!0&&(n=1);else{if(e.isString())return;e.isNumber()?n=Math.floor(e.getValue()):e.isNull()&&(n=0)}return n}_getAreaNumberValue(e){if(e==null)return 1;let n=0;if(e.isBoolean())e.getValue()===!0&&(n=1);else{if(e.isString())return;e.isNumber()?n=Math.floor(e.getValue()):e.isNull()&&(n=0)}return n}_getReferenceObject(e,n,r,i){const{startRow:a,endRow:o,startColumn:s,endColumn:l}=e.getRangePosition();let u=0,c=0,d=0,h=0;if(n===0?(u=a,c=o):u=c=a+n-1,r===0?(d=s,h=l):d=h=s+r-1,u>o||d>l)return I.create(D.REF);const f={startRow:u,startColumn:d,endRow:c,endColumn:h};return this.createReferenceObject(e,f)}};U(qIe,"Index");let $Dt=qIe;const YIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}isAddress(){return!0}calculate(e,n){if(e.isError())return e;if(n!=null&&n.isError())return n;let r=this.getZeroOrOneByOneDefault(n);r==null&&(r=1);let i=e;if(e.isArray()){const a=e.getRowCount(),o=e.getColumnCount();if(a>1||o>1)return e.map(()=>I.create(D.VALUE));i=e.getFirstCell()}return this._handleSingleObject(i,r)}_handleSingleObject(e,n){const r=`${e.getValue()}`;if(r.trim()==="")return I.create(D.REF);const i=this._convertToDefinedName(r);if(n===0){const c=jRe(i),{range:d,sheetName:h,unitId:f}=c,m=new I_(d);return m.setForcedUnitIdDirect(f),m.setForcedSheetName(h),this._setDefault(m)}if(new RegExp(yS).test(i))return this._setDefault(new cee(i));if(new RegExp(iEe).test(i))return this._setDefault(new hee(i));if(new RegExp(aEe).test(i))return this._setDefault(new dee(i));const a=Uo(i),{range:o,sheetName:s,unitId:l}=a;if(Number.isNaN(o.startRow)||o.endRow+1>1048576||Number.isNaN(o.startColumn)||o.endColumn+1>16384)return I.create(D.REF);const u=new I_(o);return u.setForcedUnitIdDirect(l),u.setForcedSheetName(s),this._setDefault(u)}_setDefault(e){return this.unitId==null||this.subUnitId==null?I.create(D.REF):(e.setDefaultUnitId(this.unitId),e.setDefaultSheetId(this.subUnitId),e)}_convertToDefinedName(e){const n=this.getDefinedName(e);if(n==null)return e;const r=n.formulaOrRefString;return r==null?e:r.startsWith(di.EQUALS)?r.slice(1):r}};U(YIe,"Indirect");let WDt=YIe;const XIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3),x(this,"needsExpandParams",!0)}calculate(e,n,r){return e.isError()?e:n.isError()?I.create(D.REF):n.isArray()?r!=null&&r.isError()?r:n.getColumnCount()===1||n.getRowCount()===1?r!=null&&!r.isArray()?I.create(D.REF):this._handleVector(e,n,r):this._handleArray(e,n):I.create(D.VALUE)}_handleVector(e,n,r){let i=r;if(i==null)i=n;else if(i.getRowCount()!==n.getRowCount()||i.getColumnCount()!==n.getColumnCount())return I.create(D.REF);return e.isArray()?e.map(a=>this.binarySearch(a,n,i)):this.binarySearch(e,n,i)}_handleArray(e,n){const r=n.getRowCount(),i=n.getColumnCount();let a,o;return i>r?(a=n.slice([0,1]),o=n.slice([r-1,r])):(a=n.slice(void 0,[0,1]),o=n.slice(void 0,[i-1,i])),a==null||o==null?I.create(D.VALUE):e.isArray()?e.map(s=>this.binarySearch(s,a,o)):this.binarySearch(e,a,o)}};U(XIe,"Lookup");let zDt=XIe;const GIe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return I.create(D.REF);if(!n.isArray())return I.create(D.VALUE);const i=n.getRowCount(),a=n.getColumnCount();if(i!==1&&a!==1||r!=null&&r.isError())return I.create(D.NA);const o=this.getMatchTypeValue(r);return o==null?I.create(D.VALUE):e.isArray()?e.map(s=>this._handleSingleObject(s,n,o)):this._handleSingleObject(e,n,o)}_handleSingleObject(e,n,r){const i=this._getSearchModeValue(r),a=n.orderSearch(e,i);if(a==null)return I.create(D.NA);if(a instanceof I)return a;const o=n.getRowCount()===1?a.column+1:a.row+1;return ee.create(o)}_getSearchModeValue(e){switch(e){case 1:return qo.MIN;case 0:return qo.NORMAL;case-1:return qo.MAX}}};U(GIe,"Match");let qDt=GIe;const QIe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",5),x(this,"needsReferenceObject",!0)}isAddress(){return!0}calculate(e,n,r,i,a){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;if(i!=null&&i.isError())return i;if(a!=null&&a.isError())return a;if(!e.isReferenceObject())return I.create(D.VALUE);const o=e.getRowCount(),s=e.getColumnCount();let l=n;l.isReferenceObject()&&(l=l.toArrayValueObject());let u=r;u.isReferenceObject()&&(u=u.toArrayValueObject());let c=i;c?c.isReferenceObject()&&(c=c.toArrayValueObject()):c=ee.create(o);let d=a;d?d.isReferenceObject()&&(d=d.toArrayValueObject()):d=ee.create(s);const h=Math.max(l.isArray()?l.getRowCount():1,u.isArray()?u.getRowCount():1,c.isArray()?c.getRowCount():1,d.isArray()?d.getRowCount():1),f=Math.max(l.isArray()?l.getColumnCount():1,u.isArray()?u.getColumnCount():1,c.isArray()?c.getColumnCount():1,d.isArray()?d.getColumnCount():1);if(l=l,u=u,c=c,d=d,h===1&&f===1)return this._handleSingleObject(e,l,u,c,d);const m=qe(h,f,l,I.create(D.NA)),g=qe(h,f,u,I.create(D.NA)),p=qe(h,f,c,I.create(D.NA)),v=qe(h,f,d,I.create(D.NA));return m.mapValue((_,C,S)=>{const b=g.get(C,S),y=p.get(C,S),A=v.get(C,S);return _.isError()?_:b.isError()?b:y.isError()?y:A.isError()?A:this._handleSingleObject(e,_,b,y,A,!0)})}_handleSingleObject(e,n,r,i,a,o=!1){const{startRow:s,startColumn:l}=e.getRangePosition(),u=this.getIndexNumValue(n),c=this.getIndexNumValue(r);if(typeof u!="number"||typeof c!="number")return I.create(D.VALUE);const d=s+u,h=l+c;if(d<0||h<0)return I.create(D.REF);const f=this.getIndexNumValue(i),m=this.getIndexNumValue(a);if(typeof f!="number"||typeof m!="number")return I.create(D.VALUE);if(f===0||m===0)return I.create(D.REF);const g=f>0?d+f-1:d+f+1,p=m>0?h+m-1:h+m+1;if(g<0||p<0)return I.create(D.REF);if(o)return I.create(D.VALUE);const v=d<g?d:g,_=h<p?h:p,C=d>g?d:g,S=h>p?h:p,b={startRow:v,startColumn:_,endRow:C,endColumn:S};return this.createReferenceObject(e,b)}};U(QIe,"Offset");let YDt=QIe;const KIe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",1)}calculate(e){if(e==null)return ee.create(this.row+1);if(e.isError())return e;if(!e.isArray())return I.create(D.NA);const n=e.getCurrentRow(),r=e.getRowCount(),i=[];for(let o=0;o<r;o++)i.push([ee.create(n+o+1)]);const a={calculateValueList:i,rowCount:r,columnCount:1,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(a)}};U(KIe,"Row");let XDt=KIe;const ZIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isError())return e;if(e.isString()||e.isNumber()||e.isBoolean())return ee.create(1);if(!e.isArray())return I.create(D.NA);const n=e.getRowCount();return ee.create(n)}};U(ZIe,"Rows");let GDt=ZIe;const JIe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",4)}calculate(e,n,r,i){const a=n??ee.create(1),o=r??ee.create(1),s=i??kn.create(!1);if(s.isArray()){const l=s.getRowCount(),u=s.getColumnCount();if(l===1&&u===1){const c=s.get(0,0);return this._handleSingleObject(e,a,o,c)}return s.map(c=>{const d=this._handleSingleObject(e,a,o,c);return d.isArray()?d.get(0,0):d})}return this._handleSingleObject(e,a,o,s)}_handleSingleObject(e,n,r,i){if(e.isError())return e;const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=this._checkArrayError(n);if(s.isError())return s;const l=Math.floor(+s.getValue());if(l<1)return I.create(D.VALUE);const u=this._checkArrayError(r);if(u.isError())return u;const c=Math.floor(+u.getValue());if(c!==-1&&c!==1)return I.create(D.VALUE);let d=i;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;if(!e.isArray()||a===1&&o===1)return e;const h=+d.getValue();return this._getResult(e,l,c,h,a,o)}_checkArrayError(e){let n=e;if(n.isArray()){const r=n.getRowCount(),i=n.getColumnCount();if(r>1||i>1)return I.create(D.VALUE);n=n.get(0,0)}return n.isString()&&(n=n.convertToNumberObjectValue()),n}_getResult(e,n,r,i,a,o){if(i){if(n>a)return I.create(D.VALUE);const s=e.transpose().getArrayValue();return s.sort(this._sort(n-1,r)),ni.create({calculateValueList:s,rowCount:s.length,columnCount:s[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column}).transpose()}else{if(n>o)return I.create(D.VALUE);const s=e.getArrayValue();return s.sort(this._sort(n-1,r)),ni.create({calculateValueList:s,rowCount:s.length,columnCount:s[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}}_sort(e,n=1){const r=w_();return n===1?this._sortAsc(e,r):this._sortDesc(e,r)}_sortAsc(e,n){return(r,i)=>{const a=r[e],o=i[e];if(a==null||a.isNull())return 1;if(o==null||o.isNull())return-1;if(a.isError()&&o.isError())return 0;if(a.isError())return 1;if(o.isError())return-1;const s=a.getValue(),l=o.getValue();return a.isBoolean()&&s===!0?1:o.isBoolean()&&l===!0?-1:a.isBoolean()&&s===!1?1:o.isBoolean()&&l===!1?-1:a.isNumber()&&o.isNumber()?+s-+l:n(s,l)}}_sortDesc(e,n){return(r,i)=>{const a=r[e],o=i[e];if(a==null||a.isNull())return 1;if(o==null||o.isNull())return-1;if(a.isError()&&o.isError())return 0;if(a.isError())return-1;if(o.isError())return 1;const s=a.getValue(),l=o.getValue();return a.isBoolean()&&s===!0?-1:o.isBoolean()&&l===!0?1:a.isBoolean()&&s===!1?-1:o.isBoolean()&&l===!1?1:a.isNumber()&&o.isNumber()?+l-+s:n(l,s)}}};U(JIe,"Sort");let QDt=JIe;const ePe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(e,...n){n.length===1&&n.push(ee.create(1));const r=this._getVariantsError(e,...n),{maxRowLength:i,maxColumnLength:a}=Yp(n);if(r.isError()){const l=qe(i,a,r);return i===1&&a===1?l.get(0,0):l}const o=n.map((l,u)=>u%2===0?l:qe(i,a,l,I.create(D.NA))),s=this._getResultArray(e,o,i,a);return i===1&&a===1?s[0][0]:ni.create({calculateValueList:s,rowCount:s.length,columnCount:s[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}_getVariantsError(e,...n){if(e.isError())return e;for(let s=0;s<n.length;s++){const l=n[s];if(l.isError())return l}if(n.length<2||n.length%2!==0)return I.create(D.VALUE);const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=n[0].isArray()?n[0].getRowCount():1,o=n[0].isArray()?n[0].getColumnCount():1;if((a>1||o>1)&&(a>1&&o>1||a===1&&o!==i||o===1&&a!==r))return I.create(D.VALUE);for(let s=2;s<n.length;s++){if(s%2===1)continue;const l=n[s].isArray()?n[s].getRowCount():1,u=n[s].isArray()?n[s].getColumnCount():1;if(l!==a||u!==o)return I.create(D.VALUE)}return kn.create(!0)}_getResultArray(e,n,r,i){const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=n[0].isArray()?n[0].getRowCount():1,l=n[0].isArray()?n[0].getColumnCount():1,u=[];for(let c=0;c<r;c++){u[c]=[];for(let d=0;d<i;d++){const{isError:h,errorObject:f,byArrays:m,sortOrders:g}=this._getByArraysAndSortOrders(n,c,d,l);if(h){u[c].push(f);continue}if(!e.isArray()||a===1&&o===1){u[c].push(e);continue}let p=e.getArrayValue();s===1&&l===1||(s===1?(p=p.concat(m),p=this._transposeArray(p),p.sort(this._sort(a,g)),p=this._transposeArray(p).slice(0,a)):l===1&&(p=this._transposeArray(p),p=p.concat(m),p=this._transposeArray(p),p.sort(this._sort(o,g)),p=p.map(_=>_.slice(0,o))));const v=ni.create({calculateValueList:p,rowCount:p.length,columnCount:p[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column});if(r>1||i>1){u[c].push(v.get(0,0));continue}u[c].push(v)}}return u}_getByArraysAndSortOrders(e,n,r,i){const a=[],o=[];let s=!1,l=null;for(let u=0;u<e.length;u++){if(u%2===1)continue;const c=e[u];let d=e[u+1].get(n,r);if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError()){s=!0,l=d;break}const h=Math.floor(+d.getValue());if(h!==-1&&h!==1){s=!0,l=I.create(D.VALUE);break}if(o.push(h),c.isArray()){let f=c.getArrayValue();i===1&&(f=this._transposeArray(f)),a.push(f[0])}else a.push([c])}return{isError:s,errorObject:l,byArrays:a,sortOrders:o}}_transposeArray(e){const n=e.length,r=e[0].length,i=[];for(let a=0;a<r;a++){i[a]=[];for(let o=0;o<n;o++)i[a][o]=e[o][a]}return i}_sort(e,n){const r=w_();return(i,a)=>{let o=i[e],s=a[e],l=this._compare(o,s,n[0],r);if(l===0&&n.length>1){for(let u=1;u<n.length;u++)if(o=i[e+u],s=a[e+u],l=this._compare(o,s,n[u],r),l!==0)return l}return l}}_compare(e,n,r,i){return r===1?this._asc(e,n,i):this._desc(e,n,i)}_asc(e,n,r){if(e==null||e.isNull())return 1;if(n==null||n.isNull())return-1;if(e.isError()&&n.isError())return 0;if(e.isError())return 1;if(n.isError())return-1;const i=e.getValue(),a=n.getValue();return e.isBoolean()&&i===!0?1:n.isBoolean()&&a===!0?-1:e.isBoolean()&&i===!1?1:n.isBoolean()&&a===!1?-1:e.isNumber()&&n.isNumber()?+i-+a:r(i,a)}_desc(e,n,r){if(e==null||e.isNull())return 1;if(n==null||n.isNull())return-1;if(e.isError()&&n.isError())return 0;if(e.isError())return-1;if(n.isError())return 1;const i=e.getValue(),a=n.getValue();return e.isBoolean()&&i===!0?-1:n.isBoolean()&&a===!0?1:e.isBoolean()&&i===!1?-1:n.isBoolean()&&a===!1?1:e.isNumber()&&n.isNumber()?+a-+i:r(a,i)}};U(ePe,"Sortby");let KDt=ePe;const tPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=e.isArray()?e.getRowCount():1,a=e.isArray()?e.getColumnCount():1;let o=n,s=r??ee.create(a);n.isNull()&&(o=ee.create(i)),s.isNull()&&(s=ee.create(a));const l=Math.max(o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1),u=Math.max(o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1),c=qe(l,u,o,I.create(D.NA)),d=qe(l,u,s,I.create(D.NA));if(l>1||u>1)return c.mapValue((_,C,S)=>{const b=d.get(C,S);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const{isError:y,errorObject:A}=this._checkRowsColumns(_,b,i,a);return y?A:e.isArray()?I.create(D.VALUE):e});if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);const h=o.isArray()?o.get(0,0):o,f=s.isArray()?s.get(0,0):s,{isError:m,errorObject:g,rowsValue:p,columnsValue:v}=this._checkRowsColumns(h,f,i,a);return m?g:this._getResultArray(e,p,v,i,a)}_checkRowsColumns(e,n,r,i){if(e.isError())return{isError:!0,errorObject:e};if(n.isError())return{isError:!0,errorObject:n};let a=Math.trunc(+e.getValue()),o=Math.trunc(+n.getValue());return Number.isNaN(a)||Number.isNaN(o)?{isError:!0,errorObject:I.create(D.VALUE)}:Math.abs(a)===0||Math.abs(o)===0?{isError:!0,errorObject:I.create(D.CALC)}:(a>r&&(a=r),o>i&&(o=i),{isError:!1,rowsValue:a,columnsValue:o})}_getResultArray(e,n,r,i,a){if(!e.isArray())return e;const o=n>=0?[0,n]:[i+n,i],s=r>=0?[0,r]:[a+r,a];let l;return n===i&&r===a?l=e:n===i?l=e.slice(void 0,s):r===a?l=e.slice(o,void 0):l=e.slice(o,s),l=l.map(u=>u.isNull()?ee.create(0):u),n===1&&r===1?l.get(0,0):l}};U(tPe,"Take");let ZDt=tPe;const nPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",3)}calculate(e,n,r){const i=n??ee.create(0),a=r??kn.create(!1),o=Math.max(i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),s=Math.max(i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1),l=qe(o,s,i,I.create(D.NA)),u=qe(o,s,a,I.create(D.NA)),c=l.mapValue((d,h,f)=>{const m=u.get(h,f);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);if(d.isError())return d;if(m.isError())return m;const g=Math.trunc(+d.getValue()),p=+m.getValue();if(Number.isNaN(g)||g<0||g>3||Number.isNaN(p))return I.create(D.VALUE);if(!e.isArray())return e;let v=[];return p?v=this._getArrayValueByColumn(e,g):v=this._getArrayValueByRow(e,g),v.length===0?I.create(D.CALC):o>1||s>1||v.length===1?v[0]:ni.create({calculateValueList:v.map(_=>[_]),rowCount:v.length,columnCount:1,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})});return o===1&&s===1?c.get(0,0):c}_getArrayValueByColumn(e,n){const r=e,i=r.getRowCount(),a=r.getColumnCount(),o=[];for(let s=0;s<a;s++)for(let l=0;l<i;l++){const u=r.get(l,s);this._isIgnore(u,n)||o.push(u.isNull()?ee.create(0):u)}return o}_getArrayValueByRow(e,n){const r=e,i=r.getRowCount(),a=r.getColumnCount(),o=[];for(let s=0;s<i;s++)for(let l=0;l<a;l++){const u=r.get(s,l);this._isIgnore(u,n)||o.push(u.isNull()?ee.create(0):u)}return o}_isIgnore(e,n){switch(n){case 0:return!1;case 1:return e.isNull();case 2:return e.isError();case 3:return e.isNull()||e.isError();default:return!1}}};U(nPe,"Tocol");let JDt=nPe;const rPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",3)}calculate(e,n,r){const i=n??ee.create(0),a=r??kn.create(!1),o=Math.max(i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),s=Math.max(i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1),l=qe(o,s,i,I.create(D.NA)),u=qe(o,s,a,I.create(D.NA)),c=l.mapValue((d,h,f)=>{const m=u.get(h,f);if(e.isError())return e;if(d.isError())return d;if(m.isError())return m;const g=Math.trunc(+d.getValue()),p=+m.getValue();if(Number.isNaN(g)||g<0||g>3||Number.isNaN(p)||e.isNull())return I.create(D.VALUE);if(!e.isArray())return e;let v=[];return p?v=this._getArrayValueByColumn(e,g):v=this._getArrayValueByRow(e,g),v.length===0?I.create(D.CALC):o>1||s>1||v.length===1?v[0]:ni.create({calculateValueList:[v],rowCount:1,columnCount:v.length,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})});return o===1&&s===1?c.get(0,0):c}_getArrayValueByColumn(e,n){const r=e,i=r.getRowCount(),a=r.getColumnCount(),o=[];for(let s=0;s<a;s++)for(let l=0;l<i;l++){const u=r.get(l,s);this._isIgnore(u,n)||o.push(u.isNull()?ee.create(0):u)}return o}_getArrayValueByRow(e,n){const r=e,i=r.getRowCount(),a=r.getColumnCount(),o=[];for(let s=0;s<i;s++)for(let l=0;l<a;l++){const u=r.get(s,l);this._isIgnore(u,n)||o.push(u.isNull()?ee.create(0):u)}return o}_isIgnore(e,n){switch(n){case 0:return!1;case 1:return e.isNull();case 2:return e.isError();case 3:return e.isNull()||e.isError();default:return!1}}};U(rPe,"Torow");let eIt=rPe;const iPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isError())return e;if(e.isArray()){const n=e.getRowCount(),r=e.getColumnCount();return n===1&&r===1?e.get(0,0):e.transpose()}return e}};U(iPe,"Transpose");let tIt=iPe;const aPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",3)}calculate(e,n,r){const i=n??kn.create(!1),a=r??kn.create(!1),o=e.isArray()?e.getRowCount():1,s=e.isArray()?e.getColumnCount():1,l=Math.max(i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),u=Math.max(i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1),c=qe(l,u,i,I.create(D.NA)),d=qe(l,u,a,I.create(D.NA)),h=c.map((f,m,g)=>{let p=f,v=d.get(m,g);if(e.isError())return e;if(p.isString()&&(p=p.convertToNumberObjectValue()),p.isError())return p;if(v.isString()&&(v=v.convertToNumberObjectValue()),v.isError())return v;const _=+p.getValue(),C=+v.getValue();let S;return!_&&o===1||_&&s===1?S=e:S=this._getResult(e,_,C),(l>1||u>1)&&S!=null&&S.isArray()?S.get(0,0):S});return l===1&&u===1?h.get(0,0):h}_getResult(e,n,r){const i=e.isArray()?e.getRowCount():1,a=e.isArray()?e.getColumnCount():1;let o=e.getArrayValue(),s=i,l=a;n&&(o=this._transposeArray(o),s=a,l=i);const u=this._getRepeatRows(o,s,l);if(u.length>0){const c=[];u.forEach(d=>{d.forEach((h,f)=>{(f!==0||r)&&c.push(h)})}),o=o.filter((d,h)=>!c.includes(h))}return o.length===0?I.create(D.CALC):(n&&(o=this._transposeArray(o)),ni.create({calculateValueList:o,rowCount:o.length,columnCount:o[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column}))}_getRepeatRows(e,n,r){let i=[];for(let a=0;a<r;a++)if(a===0){const o=new Array(n).fill(null).map((s,l)=>({r:l,valueObject:e[l][a]}));i=this._getRepeatRowsByObjects(o)}else{if(i.length===0)break;let o=[];i.forEach(s=>{const l=s.map(c=>({r:c,valueObject:e[c][a]})),u=this._getRepeatRowsByObjects(l);o=o.concat(u)}),i=o}return i}_getRepeatRowsByObjects(e){const n=new Map;return e.forEach(r=>{const i=r.r,a=r.valueObject;let o=a.getValue();if(a.isNull()?o=null:a.isString()&&Kr(o)&&(o=+o),!n.has(o))n.set(o,[i]);else{const s=n.get(o);s.push(i),n.set(o,s)}}),Array.from(n.values()).filter(r=>r.length>1)}_transposeArray(e){const n=e.length,r=e[0].length,i=[];for(let a=0;a<r;a++){i[a]=[];for(let o=0;o<n;o++)i[a][o]=e[o][a]}return i}};U(aPe,"Unique");let nIt=aPe;const oPe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",4)}calculate(e,n,r,i){if(e.isError())return e;if(n.isError())return n;if(!n.isArray())return I.create(D.VALUE);if(r.isError())return r;if(i!=null&&i.isError())return i;const a=i??kn.create(!0);return Uz(e)&&Uz(a)&&r.isArray()?this._handleArrayColIndexNum(e,n,r,a):this._handleNonArrayColIndexNum(e,n,r,a)}_handleArrayColIndexNum(e,n,r,i){const a=e.isArray()?e.getFirstCell():e,o=this.getZeroOrOneByOneDefault(i);if(o==null)return I.create(D.VALUE);let s;const l=[];return r.iterator((u,c,d)=>{if(u==null)return s=I.create(D.VALUE),!1;const h=this._handleTableArray(a,n,u,o);if(h.isError())return s=h,!1;l[c]===void 0&&(l[c]=[]),l[c][d]=h}),s||M0(l,l.length,l[0].length,this.unitId||"",this.subUnitId||"")}_handleNonArrayColIndexNum(e,n,r,i){const a=Math.max(e.isArray()?e.getRowCount():1,i.isArray()?i.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,i.isArray()?i.getColumnCount():1),s=qe(a,o,e),l=qe(a,o,i);return s.map((u,c,d)=>{if(u.isError())return u;const h=l.get(c,d);if(h==null)return I.create(D.VALUE);if(h.isError())return h;const f=this.getZeroOrOneByOneDefault(h);return f==null?I.create(D.VALUE):this._handleTableArray(u,n,r,f)})}_handleTableArray(e,n,r,i){const a=this.getIndexNumValue(r);if(a instanceof I)return a;const o=n.slice(void 0,[0,1]);if(o==null)return I.create(D.VALUE);const s=n.slice(void 0,[a-1,a]);return s==null?I.create(D.REF):this._handleSingleObject(e,o,s,i)}_handleSingleObject(e,n,r,i){return i===0?this.equalSearch(e,n,r):this.binarySearch(e,n,r)}};U(oPe,"Vlookup");let rIt=oPe;const sPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=Math.max(...e.map(i=>i.isArray()?i.getColumnCount():1)),r=[];for(let i=0;i<e.length;i++){const a=e[i];if(a.isError())return a;const o=a.isArray()?a.getRowCount():1,s=a.isArray()?a.getColumnCount():1;for(let l=0;l<o;l++){const u=[];for(let c=0;c<n;c++){let d=a;a.isArray()&&(d=a.get(l,c)),c>s-1||!d?u.push(I.create(D.NA)):u.push(d)}r.push(u)}}return ni.create({calculateValueList:r,rowCount:r.length,columnCount:r[0].length||0,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})}};U(sPe,"Vstack");let iIt=sPe;const lPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){let i=r??I.create(D.NA);i.isNull()&&(i=I.create(D.NA));const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=Math.max(n.isArray()?n.getRowCount():1,i.isArray()?i.getRowCount():1),l=Math.max(n.isArray()?n.getColumnCount():1,i.isArray()?i.getColumnCount():1),u=qe(s,l,n,I.create(D.NA)),c=qe(s,l,i,I.create(D.NA)),d=u.mapValue((h,f,m)=>{const g=c.get(f,m);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);if(h.isError())return h;const p=Math.trunc(+h.getValue());if(a>1&&o>1||Number.isNaN(p))return I.create(D.VALUE);if(p<1)return I.create(D.NUM);const v=e.isArray()?e.getArrayValue().flat():[e],_=this._getWrapArray(v,p,g);return s>1||l>1||_.length===1&&_[0].length===1?_[0][0]:ni.create({calculateValueList:_,rowCount:_.length,columnCount:_[0].length,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})});return s===1&&l===1?d.get(0,0):d}_getWrapArray(e,n,r){const i=Math.ceil(e.length/n),a=i>1?n:e.length,o=[];for(let s=0;s<i;s++)for(let l=0;l<a;l++){o[l]||(o[l]=[]);const u=s*a+l;u<e.length?o[l].push(e[u].isNull()?ee.create(0):e[u]):o[l].push(r)}return o}};U(lPe,"Wrapcols");let aIt=lPe;const uPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){let i=r??I.create(D.NA);i.isNull()&&(i=I.create(D.NA));const a=e.isArray()?e.getRowCount():1,o=e.isArray()?e.getColumnCount():1,s=Math.max(n.isArray()?n.getRowCount():1,i.isArray()?i.getRowCount():1),l=Math.max(n.isArray()?n.getColumnCount():1,i.isArray()?i.getColumnCount():1),u=qe(s,l,n,I.create(D.NA)),c=qe(s,l,i,I.create(D.NA)),d=u.mapValue((h,f,m)=>{const g=c.get(f,m);if(e.isError())return e;if(e.isNull())return I.create(D.VALUE);if(h.isError())return h;const p=Math.trunc(+h.getValue());if(a>1&&o>1||Number.isNaN(p))return I.create(D.VALUE);if(p<1)return I.create(D.NUM);const v=e.isArray()?e.getArrayValue().flat():[e],_=this._getWrapArray(v,p,g);return s>1||l>1||_.length===1&&_[0].length===1?_[0][0]:ni.create({calculateValueList:_,rowCount:_.length,columnCount:_[0].length,unitId:this.unitId,sheetId:this.subUnitId,row:this.row,column:this.column})});return s===1&&l===1?d.get(0,0):d}_getWrapArray(e,n,r){const i=Math.ceil(e.length/n),a=i>1?n:e.length,o=[];for(let s=0;s<i;s++){const l=[];for(let u=0;u<a;u++){const c=s*a+u;c<e.length?l.push(e[c].isNull()?ee.create(0):e[c]):l.push(r)}o.push(l)}return o}};U(uPe,"Wraprows");let oIt=uPe;const cPe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){if(e.isError())return e;if(n.isError()||r.isError())return I.create(D.REF);if(!n.isArray()||!r.isArray())return I.create(D.VALUE);const s=n.getRowCount(),l=n.getColumnCount(),u=r.getRowCount(),c=r.getColumnCount();if(s!==1&&l!==1||s!==u&&l!==c)return I.create(D.VALUE);if(i!=null&&i.isError()||a!=null&&a.isError()||o!=null&&o.isError())return I.create(D.NA);const d=i??I.create(D.NA),h=this.getIndexNumValue(a||ee.create(0));if(h instanceof I)return h;const f=this.getIndexNumValue(o||ee.create(1));return f instanceof I?f:this._getResult(e,n,r,d,h,f,s,l,u,c)}_getResult(e,n,r,i,a,o,s,l,u,c){if(e.isArray()){let f;return s===1?f=r.slice([0,1]):f=r.slice(void 0,[0,1]),f==null?I.create(D.NA):e.map(m=>{const g=this._checkErrorCombination(a,o);if(g)return g;const p=this._handleSingleObject(m,n,f,a,o);return p.isError()?i:p})}if(l===c&&s===u){const f=this._checkErrorCombination(a,o);if(f)return f;const m=this._handleSingleObject(e,n,r,a,o);return m.isError()?i:m}let d=0;l===c&&(d=1);const h=this._handleExpandObject(e,n,r,a,o,d);return h??I.create(D.NA)}_handleExpandObject(e,n,r,i,a,o=0){if((a===2||a===-2)&&i!==2){const s=$D(a),l=jD(i);return this.binarySearchExpand(e,n,r,o,s,l)}return i===2?this.fuzzySearchExpand(e,n,r,a!==-1,o):i===-1||i===1?this.orderSearchExpand(e,n,r,i===1?qo.MAX:qo.MIN,a===-1,o):this.equalSearchExpand(e,n,r,a!==-1,o)}_handleSingleObject(e,n,r,i,a){if((a===2||a===-2)&&i!==2){const o=$D(a),s=jD(i);return this.binarySearch(e,n,r,o,s)}return i===2?this.fuzzySearch(e,n,r,a!==-1):i===-1||i===1?this.orderSearch(e,n,r,i===1?qo.MAX:qo.MIN,a===-1):this.equalSearch(e,n,r,a!==-1)}_checkErrorCombination(e,n){return e===2&&(n===-2||n===2)?I.create(D.VALUE):null}};U(cPe,"Xlookup");let sIt=cPe;const dPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",4)}calculate(e,n,r,i){if(e.isError())return e;if(n.isError())return I.create(D.REF);if(!n.isArray())return I.create(D.VALUE);const a=n.getRowCount(),o=n.getColumnCount();if(a!==1&&o!==1)return I.create(D.VALUE);if(r!=null&&r.isError()||i!=null&&i.isError())return I.create(D.NA);const s=this.getIndexNumValue(r||ee.create(0));if(s instanceof I)return s;const l=this.getIndexNumValue(i||ee.create(1));return l instanceof I?l:e.isArray()?e.map(u=>this._handleSingleObject(u,n,s,l)):this._handleSingleObject(e,n,s,l)}_handleSingleObject(e,n,r,i){let a;if((i===2||i===-2)&&r!==2){const o=$D(i),s=jD(r);a=n.binarySearch(e,o,s)}else if(r===2){const o=n.compare(e,bn.EQUALS);let s;if(i!==-1?s=o.getFirstTruePosition():s=o.getLastTruePosition(),s==null)return I.create(D.NA);a=n.getRowCount()===1?s.column:s.row}else if(r===-1||r===1){const o=n.orderSearch(e,r===1?qo.MAX:qo.MIN,i===-1);if(o==null)return I.create(D.NA);if(o instanceof I)return o;a=n.getRowCount()===1?o.column:o.row}else{const o=n.isEqual(e);let s;if(i!==-1?s=o.getFirstTruePosition():s=o.getLastTruePosition(),s==null)return I.create(D.NA);a=n.getRowCount()===1?s.column:s.row}return a==null?I.create(D.NA):ee.create(a+1)}};U(dPe,"Xmatch");let lIt=dPe;const hPe=[[TDt,Zn.ADDRESS],[LDt,Zn.AREAS],[xDt,Zn.CHOOSE],[ODt,Zn.CHOOSECOLS],[NDt,Zn.CHOOSEROWS],[kDt,Zn.COLUMN],[FDt,Zn.COLUMNS],[VDt,Zn.DROP],[BDt,Zn.EXPAND],[UDt,Zn.FILTER],[HDt,Zn.HLOOKUP],[jDt,Zn.HSTACK],[$Dt,Zn.INDEX],[WDt,Zn.INDIRECT],[zDt,Zn.LOOKUP],[qDt,Zn.MATCH],[YDt,Zn.OFFSET],[XDt,Zn.ROW],[GDt,Zn.ROWS],[QDt,Zn.SORT],[KDt,Zn.SORTBY],[ZDt,Zn.TAKE],[JDt,Zn.TOCOL],[eIt,Zn.TOROW],[tIt,Zn.TRANSPOSE],[nIt,Zn.UNIQUE],[rIt,Zn.VLOOKUP],[iIt,Zn.VSTACK],[aIt,Zn.WRAPCOLS],[oIt,Zn.WRAPROWS],[sIt,Zn.XLOOKUP],[lIt,Zn.XMATCH]],fPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.abs()}};U(fPe,"Abs");let uIt=fPe;const mPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.acos()}};U(mPe,"Acos");let cIt=mPe;const gPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.acosh()}};U(gPe,"Acosh");let dIt=gPe;const pPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.isArray()?n.map(r=>r.isError()?r:$z(r)):$z(n)}};U(pPe,"Acot");let hIt=pPe;function $z(t){let e=t.getValue();if(t.isBoolean()&&(e=e?1:0),!Number.isFinite(e))return I.create(D.VALUE);e=Number(e);let n=Math.atan(1/e);return e<0&&(n+=Math.PI),Number.isNaN(n)?I.create(D.VALUE):ee.create(n)}U($z,"acot");const vPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.isArray()?n.map(r=>r.isError()?r:Wz(r)):Wz(n)}};U(vPe,"Acoth");let fIt=vPe;function Wz(t){let e=t.getValue();if(t.isBoolean()&&(e=e?1:0),!Number.isFinite(e))return I.create(D.VALUE);if(e=Number(e),Math.abs(e)<=1)return I.create(D.NUM);const n=1/2*Math.log((e+1)/(e-1));return Number.isNaN(n)?I.create(D.VALUE):ee.create(n)}U(Wz,"acoth");const _Pe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.asin()}};U(_Pe,"Asin");let mIt=_Pe;const CPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.asinh()}};U(CPe,"Asinh");let gIt=CPe;const SPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.atan()}};U(SPe,"Atan");let pIt=SPe;const bPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e,i=n;return r.isString()&&(r=r.convertToNumberObjectValue()),r.isError()?r:(i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:i.atan2(r))}};U(bPe,"Atan2");let vIt=bPe;const yPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.atanh()}};U(yPe,"Atanh");let _It=yPe;const EPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){const i=r??ee.create(0);if(e.isError())return e;if(n.isError())return n;if(i.isError())return i;const a=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,i.isArray()?i.getRowCount():1),o=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,i.isArray()?i.getColumnCount():1),s=qe(a,o,e,I.create(D.NA)),l=qe(a,o,n,I.create(D.NA)),u=qe(a,o,i,I.create(D.NA)),c=s.map((d,h,f)=>{const m=l.get(h,f),g=u.get(h,f);return this._handleSingleObject(d,m,g)});return c.getRowCount()===1&&c.getColumnCount()===1?c.getArrayValue()[0][0]:c}_handleSingleObject(e,n,r){let i=e;if(i.isString()&&(i=i.convertToNumberObjectValue()),i.isError())return i;let a=n;if(a.isString()&&(a=a.convertToNumberObjectValue()),a.isError())return a;let o=r;if(o.isString()&&(o=o.convertToNumberObjectValue()),o.isError())return o;const s=Math.floor(+i.getValue()),l=Math.floor(+a.getValue()),u=Math.floor(+o.getValue());if(s<0||s>=2**53||l<2||l>36||u<0)return I.create(D.NUM);let c=s.toString(l);return c.length<u&&(c=new Array(u-c.length+1).join("0")+c),Xn.create(c.toLocaleUpperCase())}};U(EPe,"Base");let CIt=EPe;const RPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=l,h=o.get(u,c);if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const f=+d.getValue(),m=+h.getValue();if(f>0&&m<0)return I.create(D.NUM);if(f===0||m===0)return ee.create(0);const g=Fl(f/m,0)*m;return ee.create(g)});return s.getRowCount()===1&&s.getColumnCount()===1?s.getArrayValue()[0][0]:s}};U(RPe,"Ceiling");let SIt=RPe;const APe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",3)}calculate(e,n,r){const i=n??ee.create(1),a=r??ee.create(0);if(e.isError())return e;if(i.isError())return i;if(a.isError())return a;const o=Math.max(e.isArray()?e.getRowCount():1,i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),s=Math.max(e.isArray()?e.getColumnCount():1,i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1),l=qe(o,s,e,I.create(D.NA)),u=qe(o,s,i,I.create(D.NA)),c=qe(o,s,a,I.create(D.NA)),d=l.map((h,f,m)=>{let g=h,p=u.get(f,m),v=c.get(f,m);if(g.isString()&&(g=g.convertToNumberObjectValue()),g.isError())return g;if(p.isString()&&(p=p.convertToNumberObjectValue()),p.isError())return p;if(v.isString()&&(v=v.convertToNumberObjectValue()),v.isError())return v;const _=+g.getValue(),C=+p.getValue(),S=+v.getValue();return _===0||C===0?ee.create(0):this._getResult(_,C,S)});return o===1&&s===1?d.get(0,0):d}_getResult(e,n,r){let i;return e<0&&r!==0?i=(n<0?Fl(Math.abs(e)/Math.abs(n),0):-Fl(Math.abs(e)/n,0))*n:i=(n<0?-Fl(e/Math.abs(n),0):Fl(e/n,0))*n,ee.create(i)}};U(APe,"CeilingMath");let bIt=APe;const wPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){const r=n??ee.create(1);if(e.isError())return e;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,r,I.create(D.NA)),l=o.map((u,c,d)=>{let h=s.get(c,d),f=u;if(f.isString()&&(f=f.convertToNumberObjectValue()),f.isError())return f;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const m=+f.getValue(),g=+h.getValue();if(m===0||g===0)return ee.create(0);const p=(g<0?-Fl(m/Math.abs(g),0):Fl(m/g,0))*g;return ee.create(p)});return i===1&&a===1?l.get(0,0):l}};U(wPe,"CeilingPrecise");let yIt=wPe;function e4(t,e=1){let n=Math.floor(t);if(t<0)return Number.NaN;let r=1;for(;n>1&&Number.isFinite(r);)r*=n,n-=e;return r}U(e4,"calculateFactorial");function Ree(t,e){const n=Math.min(t-e,e);let r=1;for(let i=1;i<=n&&Number.isFinite(r);i++)r*=t-i+1,r/=i;return r}U(Ree,"calculateCombin");function GD(t,e){let n=Math.floor(t),r=Math.floor(e);for(;r!==0;){const i=r;r=n%r,n=i}return n}U(GD,"calculateGcd");function zz(t,e){const n=GD(t,e);return n===0?0:Math.abs(t*e)/n}U(zz,"calculateLcm");function kS(t){const e=t.length;if(e===1)return t[0][0];if(e===2)return t[0][0]*t[1][1]-t[0][1]*t[1][0];let n=0;for(let r=0;r<e;r++)n+=(r%2===0?1:-1)*t[0][r]*kS(Aee(t,0,r));return n}U(kS,"calculateMdeterm");function DPe(t){const e=kS(t);return e===0?null:t.length===1?[[1/e]]:IPe(t).map(n=>n.map(r=>r/e))}U(DPe,"calculateMinverse");function Aee(t,e,n){return t.filter((r,i)=>i!==e).map(r=>r.filter((i,a)=>a!==n))}U(Aee,"minor");function IPe(t){const e=t.length,n=Array.from({length:e},()=>new Array(e).fill(0));for(let r=0;r<e;r++)for(let i=0;i<e;i++){const a=(r+i)%2===0?1:-1;n[i][r]=a*kS(Aee(t,r,i))}return n}U(IPe,"adjoint");const PPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.mapValue((l,u,c)=>{let d=l,h=o.get(u,c);if(d.isString()&&(d=d.convertToNumberObjectValue()),h.isString()&&(h=h.convertToNumberObjectValue()),d.isError())return d;if(h.isError())return h;const f=Math.floor(+d.getValue()),m=Math.floor(+h.getValue());if(f<0||m<0||f<m)return I.create(D.NUM);const g=Ree(f,m);return Number.isNaN(g)||!Number.isFinite(g)?I.create(D.NUM):ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(PPe,"Combin");let EIt=PPe;const MPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.mapValue((l,u,c)=>{let d=l,h=o.get(u,c);if(d.isString()&&(d=d.convertToNumberObjectValue()),h.isString()&&(h=h.convertToNumberObjectValue()),d.isError())return d;if(h.isError())return h;const f=Math.floor(+d.getValue()),m=Math.floor(+h.getValue());if(f<0||m<0||f===0&&f<m)return I.create(D.NUM);const g=Ree(f+m-1,f-1);return Number.isNaN(g)||!Number.isFinite(g)?I.create(D.NUM):ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U(MPe,"Combina");let RIt=MPe;const TPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.cos()}};U(TPe,"Cos");let AIt=TPe;const LPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.cosh()}};U(LPe,"Cosh");let wIt=LPe;const xPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();return Math.abs(r)>=2**27?I.create(D.NUM):r===0?I.create(D.DIV_BY_ZERO):n.tan().getReciprocal()}};U(xPe,"Cot");let DIt=xPe;const OPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:+n.getValue()==0?I.create(D.DIV_BY_ZERO):n.tanh().getReciprocal()}};U(OPe,"Coth");let IIt=OPe;const NPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();return Math.abs(r)>=2**27?I.create(D.NUM):r===0?I.create(D.DIV_BY_ZERO):n.sin().getReciprocal()}};U(NPe,"Csc");let PIt=NPe;const kPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();return r===0?I.create(D.DIV_BY_ZERO):!Number.isNaN(r)&&!Number.isFinite(Math.sinh(r))?ee.create(0):n.sinh().getReciprocal()}};U(kPe,"Csch");let MIt=kPe;const FPe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{if(l.isError())return l;let d=o.get(u,c);if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;const h=`${l.getValue()}`,f=Math.floor(+d.getValue());if(Kr(h)&&(+h<0||+h>=2**53||!Number.isInteger(+h))||h.toLocaleLowerCase()==="true"||h.toLocaleLowerCase()==="false"||f<2||f>36)return I.create(D.NUM);if(h.replace(/\s/g,"")==="")return ee.create(0);if(!this._isValidCharForRadix(h,f))return I.create(D.NUM);const m=Number.parseInt(h,f);return Number.isNaN(m)?I.create(D.NUM):ee.create(m)});return r===1&&i===1?s.get(0,0):s}_isValidCharForRadix(e,n){for(const r of e){const i=r.toUpperCase().charCodeAt(0);if(n<=10&&!(i>=48&&i<48+n)||n>10&&!(i>=48&&i<58||i>=65&&i<65+n-10))return!1}return!0}};U(FPe,"Decimal");let TIt=FPe;const VPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();if(!Number.isFinite(r))return I.create(D.VALUE);const i=r*(180/Math.PI);return Number.isNaN(i)?I.create(D.VALUE):ee.create(i)}};U(VPe,"Degrees");let LIt=VPe;const BPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();if(!Number.isFinite(r))return I.create(D.VALUE);const i=(r<0?-Fl(Math.abs(r)/2,0):Fl(r/2,0))*2;return Number.isNaN(i)?I.create(D.VALUE):i===0?ee.create(0):ee.create(i)}};U(BPe,"Even");let xIt=BPe;const UPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.exp()}};U(UPe,"Exp");let OIt=UPe;const HPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.mapValue(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=Math.floor(+n.getValue()),i=e4(r);return Number.isNaN(i)||!Number.isFinite(i)?I.create(D.NUM):ee.create(i)}};U(HPe,"Fact");let NIt=HPe;const jPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;if(e.isArray()){const r=e.getRowCount(),i=e.getColumnCount();if(r>1||i>1)return I.create(D.VALUE);n=e.get(0,0)}return this._handleSingleObject(n)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=Math.floor(+n.getValue()),i=e4(r,2);return Number.isNaN(i)||!Number.isFinite(i)?I.create(D.NUM):ee.create(i)}};U(jPe,"Factdouble");let kIt=jPe;const $Pe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=o.get(u,c),h=l;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;if(d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;const f=+h.getValue(),m=+d.getValue();if(f>0&&m<0)return I.create(D.NUM);if(f===0)return ee.create(0);if(m===0)return I.create(D.DIV_BY_ZERO);const g=ed(f/m,0)*m;return ee.create(g)});return r===1&&i===1?s.get(0,0):s}};U($Pe,"Floor");let FIt=$Pe;const WPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",3)}calculate(e,n,r){const i=n??ee.create(1),a=r??ee.create(0),o=Math.max(e.isArray()?e.getRowCount():1,i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),s=Math.max(e.isArray()?e.getColumnCount():1,i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1),l=qe(o,s,e,I.create(D.NA)),u=qe(o,s,i,I.create(D.NA)),c=qe(o,s,a,I.create(D.NA)),d=l.map((h,f,m)=>{let g=h,p=u.get(f,m),v=c.get(f,m);if(g.isString()&&(g=g.convertToNumberObjectValue()),g.isError())return g;if(p.isString()&&(p=p.convertToNumberObjectValue()),p.isError())return p;if(v.isString()&&(v=v.convertToNumberObjectValue()),v.isError())return v;const _=+g.getValue(),C=+p.getValue(),S=+v.getValue();if(_===0||C===0)return ee.create(0);let b;return _<0&&S!==0?b=(C<0?ed(Math.abs(_)/Math.abs(C),0):-ed(Math.abs(_)/C,0))*C:b=(C<0?-ed(_/Math.abs(C),0):ed(_/C,0))*C,ee.create(b)});return o===1&&s===1?d.get(0,0):d}};U(WPe,"FloorMath");let VIt=WPe;const zPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){const r=n??ee.create(1);if(e.isError())return e;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,r,I.create(D.NA)),l=o.map((u,c,d)=>{let h=s.get(c,d),f=u;if(f.isString()&&(f=f.convertToNumberObjectValue()),f.isError())return f;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const m=+f.getValue(),g=+h.getValue();if(m===0||g===0)return ee.create(0);const p=(g<0?-ed(m/Math.abs(g),0):ed(m/g,0))*g;return ee.create(p)});return i===1&&a===1?l.get(0,0):l}};U(zPe,"FloorPrecise");let BIt=zPe;var mt=(t=>(t.ABS="ABS",t.ACOS="ACOS",t.ACOSH="ACOSH",t.ACOT="ACOT",t.ACOTH="ACOTH",t.AGGREGATE="AGGREGATE",t.ARABIC="ARABIC",t.ASIN="ASIN",t.ASINH="ASINH",t.ATAN="ATAN",t.ATAN2="ATAN2",t.ATANH="ATANH",t.BASE="BASE",t.CEILING="CEILING",t.CEILING_MATH="CEILING.MATH",t.CEILING_PRECISE="CEILING.PRECISE",t.COMBIN="COMBIN",t.COMBINA="COMBINA",t.COS="COS",t.COSH="COSH",t.COT="COT",t.COTH="COTH",t.CSC="CSC",t.CSCH="CSCH",t.DECIMAL="DECIMAL",t.DEGREES="DEGREES",t.EVEN="EVEN",t.EXP="EXP",t.FACT="FACT",t.FACTDOUBLE="FACTDOUBLE",t.FLOOR="FLOOR",t.FLOOR_MATH="FLOOR.MATH",t.FLOOR_PRECISE="FLOOR.PRECISE",t.GCD="GCD",t.INT="INT",t.ISO_CEILING="ISO.CEILING",t.LCM="LCM",t.LET="LET",t.LN="LN",t.LOG="LOG",t.LOG10="LOG10",t.MDETERM="MDETERM",t.MINVERSE="MINVERSE",t.MMULT="MMULT",t.MOD="MOD",t.MROUND="MROUND",t.MULTINOMIAL="MULTINOMIAL",t.MUNIT="MUNIT",t.ODD="ODD",t.PI="PI",t.POWER="POWER",t.PRODUCT="PRODUCT",t.QUOTIENT="QUOTIENT",t.RADIANS="RADIANS",t.RAND="RAND",t.RANDARRAY="RANDARRAY",t.RANDBETWEEN="RANDBETWEEN",t.ROMAN="ROMAN",t.ROUND="ROUND",t.ROUNDDOWN="ROUNDDOWN",t.ROUNDUP="ROUNDUP",t.SEC="SEC",t.SECH="SECH",t.SERIESSUM="SERIESSUM",t.SEQUENCE="SEQUENCE",t.SIGN="SIGN",t.SIN="SIN",t.SINH="SINH",t.SQRT="SQRT",t.SQRTPI="SQRTPI",t.SUBTOTAL="SUBTOTAL",t.SUM="SUM",t.SUMIF="SUMIF",t.SUMIFS="SUMIFS",t.SUMPRODUCT="SUMPRODUCT",t.SUMSQ="SUMSQ",t.SUMX2MY2="SUMX2MY2",t.SUMX2PY2="SUMX2PY2",t.SUMXMY2="SUMXMY2",t.TAN="TAN",t.TANH="TANH",t.TRUNC="TRUNC",t))(mt||{});const qPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=0;for(let r=0;r<e.length;r++){const i=e[r];if(!i.isNull())if(i.isArray()){let a=!1,o=I.create(D.VALUE);if(i.iterator(s=>{if(s!=null&&s.isNull())return!0;const{isError:l,errorObject:u,number:c}=this._handleSingleObject(s);if(l)return a=!0,o=u,!1;n=GD(n,c)}),a)return o}else{const{isError:a,errorObject:o,number:s}=this._handleSingleObject(i);if(a)return o;n=GD(n,s)}}return ee.create(n)}_handleSingleObject(e){if(e.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE),number:null};let n=e;if(e.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return{isError:!0,errorObject:n,number:null};const r=Math.floor(+n.getValue());return r<0||r>=2**53?{isError:!0,errorObject:I.create(D.NUM),number:null}:{isError:!1,errorObject:null,number:r}}};U(qPe,"Gcd");let UIt=qPe;const YPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.mapValue(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=Math.floor(+n.getValue());return ee.create(r)}};U(YPe,"Int");let HIt=YPe;const XPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=1,r=!0;for(let i=0;i<e.length;i++){const a=e[i];if(!a.isNull())if(a.isArray()){let o=!1,s=I.create(D.VALUE);if(a.iterator(l=>{if(l!=null&&l.isNull())return!0;const{isError:u,errorObject:c,number:d}=this._handleSingleObject(l);if(u)return o=!0,s=c,!1;n=zz(n,d),r=!1}),o)return s}else{const{isError:o,errorObject:s,number:l}=this._handleSingleObject(a);if(o)return s;n=zz(n,l),r=!1}}return r?ee.create(0):Number.isNaN(n)||!Number.isFinite(n)||n>=2**53?I.create(D.VALUE):ee.create(n)}_handleSingleObject(e){if(e.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE),number:null};let n=e;if(e.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return{isError:!0,errorObject:n,number:null};const r=Math.floor(+n.getValue());return r<0?{isError:!0,errorObject:I.create(D.NUM),number:null}:{isError:!1,errorObject:null,number:r}}};U(XPe,"Lcm");let jIt=XPe;const GPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.log()}};U(GPe,"Ln");let $It=GPe;const QPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){const r=n??ee.create(10);if(e.isError())return e;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,r,I.create(D.NA)),l=o.map((u,c,d)=>{let h=s.get(c,d),f=u;if(f.isString()&&(f=f.convertToNumberObjectValue()),f.isError())return f;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const m=+f.getValue(),g=+h.getValue();if(m<=0||g<=0)return I.create(D.NUM);const p=Math.log(g);if(p===0)return I.create(D.DIV_BY_ZERO);const v=Math.log(m)/p;return ee.create(v)});return i===1&&a===1?l.get(0,0):l}};U(QPe,"Log");let WIt=QPe;const KPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.log10()}};U(KPe,"Log10");let zIt=KPe;const ZPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const n=e.isArray()?e.getRowCount():1,r=e.isArray()?e.getColumnCount():1,i=[];for(let o=0;o<n;o++){const s=[];for(let l=0;l<r;l++){let u=e.isArray()?e.get(o,l):e;if(u.isError())return u;if(u.isNull()||u.isBoolean())return I.create(D.VALUE);if(u.isString()&&(u=u.convertToNumberObjectValue()),u.isError())return u;const c=+u.getValue();s.push(c)}i.push(s)}if(n!==r)return I.create(D.VALUE);const a=kS(i);return ee.create(a)}};U(ZPe,"Mdeterm");let qIt=ZPe;const JPe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){const n=e.isArray()?e.getRowCount():1,r=e.isArray()?e.getColumnCount():1,i=[];for(let o=0;o<n;o++){const s=[];for(let l=0;l<r;l++){let u=e.isArray()?e.get(o,l):e;if(u.isError())return u;if(u.isNull()||u.isBoolean())return I.create(D.VALUE);if(u.isString()&&(u=u.convertToNumberObjectValue()),u.isError())return u;const c=+u.getValue();s.push(c)}i.push(s)}if(n!==r)return I.create(D.VALUE);const a=DPe(i);return a===null?I.create(D.NUM):ni.createByArray(a)}};U(JPe,"Minverse");let YIt=JPe;const eMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=n.isArray()?n.getRowCount():1,o=n.isArray()?n.getColumnCount():1;if(i!==a)return I.create(D.VALUE);const s=this._getMatrix(e,r,i),l=this._getMatrix(n,a,o);if(s instanceof I)return s;if(l instanceof I)return l;const u=this._getResult(s,l,r,i,o);return ni.createByArray(u)}_getMatrix(e,n,r){const i=[];for(let a=0;a<n;a++){const o=[];for(let s=0;s<r;s++){let l=e.isArray()?e.get(a,s):e;if(l.isError())return l;if(l.isNull()||l.isBoolean())return I.create(D.VALUE);if(l.isString()&&(l=l.convertToNumberObjectValue()),l.isError())return l;const u=+l.getValue();o.push(u)}i.push(o)}return i}_getResult(e,n,r,i,a){const o=Array.from({length:r},()=>new Array(a).fill(0));for(let s=0;s<r;s++)for(let l=0;l<a;l++){let u=0;for(let c=0;c<i;c++)u+=e[s][c]*n[c][l];o[s][l]=u}return o}};U(eMe,"Mmult");let XIt=eMe;const tMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isString()&&(r=r.convertToNumberObjectValue()),r.isError())return r;let i=n;return i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:r.mod(i)}};U(tMe,"Mod");let GIt=tMe;const nMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isArray()){const l=r.getRowCount(),u=r.getColumnCount();if(l>1||u>1)return I.create(D.VALUE);r=r.get(0,0)}if(r.isError())return r;let i=n;if(i.isArray()){const l=i.getRowCount(),u=i.getColumnCount();if(l>1||u>1)return I.create(D.VALUE);i=i.get(0,0)}if(i.isError())return i;if(r.isBoolean()||i.isBoolean())return I.create(D.VALUE);const a=+r.getValue(),o=+i.getValue();if(Number.isNaN(a)||Number.isNaN(o))return I.create(D.VALUE);if(o===0)return ee.create(0);if(a>0&&o<0||a<0&&o>0)return I.create(D.NUM);const s=I8(a/o,0)*o;return ee.create(s)}};U(nMe,"Mround");let QIt=nMe;const rMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=0,r=1;for(let a=0;a<e.length;a++){const o=e[a];if(!o.isNull())if(o.isArray()){let s=!1,l=I.create(D.VALUE);if(o.iterator(u=>{if(u!=null&&u.isNull())return!0;const{isError:c,errorObject:d,number:h}=this._handleSingleObject(u);if(c)return s=!0,l=d,!1;if(n+=h,n>170)return s=!0,l=I.create(D.NUM),!1;r*=e4(h)}),s)return l}else{const{isError:s,errorObject:l,number:u}=this._handleSingleObject(o);if(s)return l;if(n+=u,n>170)return I.create(D.NUM);r*=e4(u)}}const i=e4(n)/r;return ee.create(i)}_handleSingleObject(e){if(e.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE),number:null};let n=e;if(e.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return{isError:!0,errorObject:n,number:null};const r=Math.floor(+n.getValue());return r<0?{isError:!0,errorObject:I.create(D.NUM),number:null}:{isError:!1,errorObject:null,number:r}}};U(rMe,"Multinomial");let KIt=rMe;const iMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isArray()){const n=e.getRowCount(),r=e.getColumnCount(),i=e.mapValue(a=>{const o=this._handleSingleObject(a);return o.isError()?o:n>1||r>1?o.get(0,0):o});return n===1&&r===1?i.get(0,0):i}return this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=Math.floor(+n.getValue());if(r<=0)return I.create(D.VALUE);const i=[];for(let a=0;a<r;a++){i[a]=[];for(let o=0;o<r;o++)i[a][o]=a===o?1:0}return ni.createByArray(i)}};U(iMe,"Munit");let ZIt=iMe;const aMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();if(!Number.isFinite(r))return I.create(D.VALUE);let i=r<0?-Fl(Math.abs(r),0):Fl(r,0);return Number.isNaN(i)?I.create(D.VALUE):(Math.abs(i)%2===0&&(r<0?i--:i++),ee.create(i))}};U(aMe,"Odd");let JIt=aMe;const oMe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){return ee.create(Math.PI)}};U(oMe,"Pi");let ePt=oMe;const sMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isString()&&(r=r.convertToNumberObjectValue()),r.isError())return r;let i=n;return i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:r.pow(i)}};U(sMe,"Power");let tPt=sMe;const lMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(1);for(let r=0;r<e.length;r++){let i=e[r];if(!i.isNull()){if(i.isString()&&(i=i.convertToNumberObjectValue()),i.isArray()&&(i=this._multiplyArray(i)),i.isError())return i;if(n=n.multiply(i),n.isError())return n}}return n}_multiplyArray(e){let n=ee.create(1);return e.iterator(r=>{if(r==null||r.isString()||r.isBoolean()||r.isNull())return!0;if(r.isError())return n=r,!1;n=n.multiply(r)}),n}};U(lMe,"Product");let nPt=lMe;const uMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){const{isError:r,errorObject:i,variants:a}=Nn(e,n);if(r)return i;const[o,s]=a,l=+o.getValue(),u=+s.getValue();if(Number.isNaN(l)||Number.isNaN(u))return I.create(D.VALUE);if(u===0)return I.create(D.DIV_BY_ZERO);const c=Math.trunc(l/u);return ee.create(c)}};U(uMe,"Quotient");let rPt=uMe;const cMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();if(!Number.isFinite(r))return I.create(D.VALUE);const i=r*(Math.PI/180);return Number.isNaN(i)?I.create(D.VALUE):ee.create(i)}};U(cMe,"Radians");let iPt=cMe;const dMe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",0)}calculate(){return ee.create(Math.random())}};U(dMe,"Rand");let aPt=dMe;const hMe=class extends be{constructor(){super(...arguments),x(this,"minParams",0),x(this,"maxParams",5)}calculate(e,n,r,i,a){if(e!=null&&e.isError())return e;if(n!=null&&n.isError())return n;if(r!=null&&r.isError())return r;if(i!=null&&i.isError())return i;if(a!=null&&a.isError())return a;const o=e??ee.create(1),s=n??ee.create(1),l=r??ee.create(0),u=i??ee.create(1),c=a??ee.create(0);return this._calculateResult(o,s,l,u,c)}_calculateResult(e,n,r,i,a){const o=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1,i.isArray()?i.getRowCount():1,a.isArray()?a.getRowCount():1),s=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1,i.isArray()?i.getColumnCount():1,a.isArray()?a.getColumnCount():1);if(o===1&&s===1)return this._calculateSingleCell(e,n,r,i,a);const l=qe(o,s,e,I.create(D.NA)),u=qe(o,s,n,I.create(D.NA)),c=qe(o,s,r,I.create(D.NA)),d=qe(o,s,i,I.create(D.NA)),h=qe(o,s,a,I.create(D.NA));return l.map((f,m,g)=>{const p=u.get(m,g),v=c.get(m,g),_=d.get(m,g),C=h.get(m,g),S=this._handleError(f,p,v,_,C);if(S.errorObject)return S.errorObject;let{minValue:b,maxValue:y,wholeNumberValue:A}=S,w;return A?(b=Math.ceil(b),y=Math.floor(y),w=Math.floor(Math.random()*(y-b+1))+b):w=Math.random()*(y-b)+b,w<b||w>y?I.create(D.VALUE):ee.create(w)})}_calculateSingleCell(e,n,r,i,a){let o=e;o.isArray()&&(o=o.get(0,0));let s=n;s.isArray()&&(s=s.get(0,0));let l=r;l.isArray()&&(l=l.get(0,0));let u=i;u.isArray()&&(u=u.get(0,0));let c=a;c.isArray()&&(c=c.get(0,0));const d=this._handleError(o,s,l,u,c);if(d.errorObject)return d.errorObject;let{rowsValue:h,columnsValue:f,minValue:m,maxValue:g,wholeNumberValue:p}=d;if(p&&(m=Math.ceil(m),g=Math.floor(g),m>g))return I.create(D.VALUE);const v=[];for(let _=0;_<h;_++){const C=[];for(let S=0;S<f;S++)p?C.push(Math.floor(Math.random()*(g-m+1))+m):C.push(Math.random()*(g-m)+m);v.push(C)}return h===1&&f===1?ee.create(v[0][0]):ni.createByArray(v)}_handleError(e,n,r,i,a){let o=e;if(o.isString()&&(o=o.convertToNumberObjectValue()),o.isError())return{errorObject:o};let s=n;if(s.isString()&&(s=s.convertToNumberObjectValue()),s.isError())return{errorObject:s};let l=r;if(l.isString()&&(l=l.convertToNumberObjectValue()),l.isError())return{errorObject:l};let u=i;if(u.isString()&&(u=u.convertToNumberObjectValue()),u.isError())return{errorObject:u};let c=a;return c.isString()&&(c=c.convertToNumberObjectValue()),c.isError()?{errorObject:c}:this._getValue(o,s,l,u,c)}_getValue(e,n,r,i,a){const o=Math.floor(+e.getValue()),s=Math.floor(+n.getValue());if(o===0||s===0)return{errorObject:I.create(D.CALC)};if(o<0||s<0)return{errorObject:I.create(D.VALUE)};const l=+r.getValue(),u=+i.getValue(),c=+a.getValue();return l>u?{errorObject:I.create(D.VALUE)}:c&&(!Number.isInteger(l)||!Number.isInteger(u))?{errorObject:I.create(D.VALUE)}:{rowsValue:o,columnsValue:s,minValue:l,maxValue:u,wholeNumberValue:c}}};U(hMe,"Randarray");let oPt=hMe;const fMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isArray()){const l=r.getRowCount(),u=r.getColumnCount();if(l>1||u>1)return I.create(D.VALUE);r=r.get(0,0)}if(r.isError())return r;let i=n;if(i.isArray()){const l=i.getRowCount(),u=i.getColumnCount();if(l>1||u>1)return I.create(D.VALUE);i=i.get(0,0)}if(i.isError())return i;if(r.isBoolean()||i.isBoolean())return I.create(D.VALUE);let a=+r.getValue(),o=+i.getValue();if(Number.isNaN(a)||Number.isNaN(o))return I.create(D.VALUE);if(a>o)return I.create(D.NUM);a=Math.ceil(a),o=Math.floor(o);const s=Math.floor(Math.random()*(o-a+1))+a;return ee.create(s)}};U(fMe,"Randbetween");let sPt=fMe;const mMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isString()&&(r=r.convertToNumberObjectValue()),r.isError())return r;let i=n;return i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:r.round(i)}};U(mMe,"Round");let lPt=mMe;const gMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isString()&&(r=r.convertToNumberObjectValue()),r.isError())return r;let i=n;return i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:r.floor(i)}};U(gMe,"Rounddown");let uPt=gMe;const pMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){let r=e;if(r.isString()&&(r=r.convertToNumberObjectValue()),r.isError())return r;let i=n;return i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()?i:r.ceil(i)}};U(pMe,"Roundup");let cPt=pMe;const vMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();return Math.abs(r)>=2**27?I.create(D.NUM):n.cos().getReciprocal()}};U(vMe,"Sec");let dPt=vMe;const _Me=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isArray()?e.map(n=>this._handleSingleObject(n)):this._handleSingleObject(e)}_handleSingleObject(e){let n=e;if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();return Number.isFinite(Math.cosh(r))?Math.abs(r)>=2**27?I.create(D.NUM):n.cosh().getReciprocal():ee.create(0)}};U(_Me,"Sech");let hPt=_Me;const CMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",4)}calculate(e,n,r,i){let a=e,o=n??ee.create(1),s=r??ee.create(1),l=i??ee.create(1);a.isNull()&&(a=ee.create(1)),o.isNull()&&(o=ee.create(1)),s.isNull()&&(s=ee.create(1)),l.isNull()&&(l=ee.create(1));const u=Math.max(a.isArray()?a.getRowCount():1,o.isArray()?o.getRowCount():1,s.isArray()?s.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(a.isArray()?a.getColumnCount():1,o.isArray()?o.getColumnCount():1,s.isArray()?s.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,a,I.create(D.NA)),h=qe(u,c,o,I.create(D.NA)),f=qe(u,c,s,I.create(D.NA)),m=qe(u,c,l,I.create(D.NA)),g=d.mapValue((p,v,_)=>{const C=h.get(v,_),S=f.get(v,_),b=m.get(v,_);return p.isError()?p:C.isError()?C:S.isError()?S:b.isError()?b:this._getResult(p,C,S,b,u,c)});return u===1&&c===1?g.get(0,0):g}_getResult(e,n,r,i,a,o){const{isError:s,errorObject:l,variants:u}=al(e,n,r,i);if(s)return l;const[c,d,h,f]=u,m=Math.floor(+c.getValue()),g=Math.floor(+d.getValue()),p=+h.getValue(),v=+f.getValue();if(m<0||g<0)return I.create(D.VALUE);if(m===0||g===0)return I.create(D.CALC);const _=[];for(let C=0;C<m;C++){_[C]=[];for(let S=0;S<g;S++)_[C][S]=p+(C*g+S)*v}return a>1||o>1?ee.create(_[0][0]):ni.createByArray(_)}};U(CMe,"Sequence");let fPt=CMe;const SMe=class extends be{constructor(){super(...arguments),x(this,"minParams",4),x(this,"maxParams",4)}calculate(e,n,r,i){if(e.isNull()||n.isNull()||r.isNull()||i.isNull())return I.create(D.NA);const{isError:a,errorObject:o,variants:s}=Nn(e,n,r);if(a)return o;const{isError:l,errorObject:u,variants:c}=al(...s);if(l)return u;const[d,h,f]=c,m=+d.getValue(),g=+h.getValue(),p=+f.getValue(),v=[];if(i.isArray()){let C=!1,S=I.create(D.VALUE);if(i.iterator(b=>{const{isError:y,errorObject:A,coefficientsObject:w}=this._handleSingleObject(b);if(y)return C=!0,S=A,!1;const P=+w.getValue();v.push(P)}),C)return S}else{const{isError:C,errorObject:S,coefficientsObject:b}=this._handleSingleObject(i);if(C)return S;const y=+b.getValue();v.push(y)}let _=0;for(let C=0;C<v.length;C++)_+=v[C]*m**(g+C*p);return Number.isNaN(_)||!Number.isFinite(_)?I.create(D.NUM):ee.create(_)}_handleSingleObject(e){if(e.isError())return{isError:!0,errorObject:e,coefficientsObject:null};if(e!=null&&e.isBoolean())return{isError:!0,errorObject:I.create(D.VALUE),coefficientsObject:null};let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?{isError:!0,errorObject:n,coefficientsObject:null}:{isError:!1,errorObject:null,coefficientsObject:n}}};U(SMe,"Seriessum");let mPt=SMe;const bMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){if(e.isArray()){const n=e.mapValue(r=>this._handleSingleObject(r));return n.getRowCount()===1&&n.getColumnCount()===1?n.get(0,0):n}return this._handleSingleObject(e)}_handleSingleObject(e){if(e.isError())return e;const{isError:n,errorObject:r,variants:i}=al(e);if(n)return r;const[a]=i,o=+a.getValue();return o>0?ee.create(1):o<0?ee.create(-1):ee.create(0)}};U(bMe,"Sign");let gPt=bMe;const yMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.sin()}};U(yMe,"Sin");let pPt=yMe;const EMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.sinh()}};U(EMe,"Sinh");let vPt=EMe;const RMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.sqrt()}};U(RMe,"Sqrt");let _Pt=RMe;const AMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;if(n.isArray()){const a=n.getRowCount(),o=n.getColumnCount();if(a>1||o>1)return I.create(D.VALUE);n=n.get(0,0)}if(n.isString()&&(n=n.convertToNumberObjectValue()),n.isError())return n;const r=+n.getValue();if(r<0)return I.create(D.NUM);const i=Math.sqrt(r*Math.PI);return ee.create(i)}};U(AMe,"Sqrtpi");let CPt=AMe;const wMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255),x(this,"needsReferenceObject",!0)}calculate(e,...n){if(e.isError())return e;if(e.isReferenceObject()){const r=[];return e.iterator((i,a,o)=>{r[a]==null&&(r[a]=[]),r[a][o]=this._handleSingleObject(i,...n)}),M0(r,r.length,r[0].length)}return this._handleSingleObject(e,...n)}_handleSingleObject(e,...n){const r=this._getIndexNumValue(e);let i;if(r instanceof I)return r;switch(r){case 1:i=this._average(!1,...n);break;case 2:i=this._count(!1,...n);break;case 3:i=this._counta(!1,...n);break;case 4:i=this._max(!1,...n);break;case 5:i=this._min(!1,...n);break;case 6:i=this._product(!1,...n);break;case 7:i=this._stdev(!1,...n);break;case 8:i=this._stdevp(!1,...n);break;case 9:i=this._sum(!1,...n);break;case 10:i=this._var(!1,...n);break;case 11:i=this._varp(!1,...n);break;case 101:i=this._average(!0,...n);break;case 102:i=this._count(!0,...n);break;case 103:i=this._counta(!0,...n);break;case 104:i=this._max(!0,...n);break;case 105:i=this._min(!0,...n);break;case 106:i=this._product(!0,...n);break;case 107:i=this._stdev(!0,...n);break;case 108:i=this._stdevp(!0,...n);break;case 109:i=this._sum(!0,...n);break;case 110:i=this._var(!0,...n);break;case 111:i=this._varp(!0,...n);break;default:i=I.create(D.VALUE)}return i}_getIndexNumValue(e){const n=e?Number(e.getValue()):0;if(Number.isNaN(n))return I.create(D.VALUE);const r=Math.floor(n);return r>=1&&r<=11||r>=101&&r<=111?r:I.create(D.VALUE)}_average(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:r.mean()}_count(e,...n){let r=ee.create(0);for(let i=0;i<n.length;i++){const a=n[i];if(!a.isReferenceObject())return I.create(D.VALUE);const o=a.getRowData();a.iterator((s,l)=>{if(e&&this._isRowHidden(o,l))return!0;s!=null&&s.isNumber()&&(r=r.plusBy(1))})}return r}_counta(e,...n){let r=ee.create(0);for(let i=0;i<n.length;i++){const a=n[i];if(!a.isReferenceObject())return I.create(D.VALUE);const o=a.getRowData();a.iterator((s,l)=>{if(e&&this._isRowHidden(o,l)||s==null||s.isNull())return!0;r=r.plusBy(1)})}return r}_max(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?ee.create(0):r.max()}_min(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?ee.create(0):r.min()}_product(e,...n){const r=this._flattenRefArray(e,...n);if(r.isError())return r;if(this._isBlankArrayObject(r))return ee.create(0);let i=ee.create(1);return r.iterator(a=>{i=i.multiply(a)}),i}_stdev(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?I.create(D.DIV_BY_ZERO):r.std(1)}_stdevp(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?I.create(D.DIV_BY_ZERO):r.std()}_sum(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:r.sum()}_var(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?I.create(D.DIV_BY_ZERO):r.var(1)}_varp(e,...n){const r=this._flattenRefArray(e,...n);return r.isError()?r:this._isBlankArrayObject(r)?I.create(D.DIV_BY_ZERO):r.var()}_flattenRefArray(e,...n){const r=[];r[0]=[];for(let i=0;i<n.length;i++){const a=n[i];if(a.isError())return a;if(!a.isReferenceObject())return I.create(D.VALUE);const o=a.getRowData();let s;if(a.iterator((l,u)=>{if(e&&this._isRowHidden(o,u)||l==null||l.isNull()||l.isString()||l.isBoolean())return!0;if(l.isError())return s=l,!1;r[0].push(l)}),s!=null&&s.isError())return s}return M0(r,1,r[0].length)}_isRowHidden(e,n){const r=e[n];return r?r.hd===at.TRUE:!1}_isBlankArrayObject(e){return e.getArrayValue()[0].length===0}};U(wMe,"Subtotal");let SPt=wMe;const DMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0);for(let r=0;r<e.length;r++){let i=e[r];if(i.isString()&&(i=i.convertToNumberObjectValue()),i.isError()||(i.isArray()&&(i=i.sum()),i.isError()))return i;if(n=n.plus(i),n.isError())return n}return n}};U(DMe,"Sum");let bPt=DMe;const IMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3)}calculate(e,n,r){return e.isError()?e:n.isError()?n:r!=null&&r.isError()?r:!e.isArray()||r&&!r.isArray()?I.create(D.VALUE):n.isArray()?n.map(i=>this._handleSingleObject(e,i,r)):this._handleSingleObject(e,n,r)}_handleSingleObject(e,n,r){let i=MS(e,n);const[,a]=Z7(`${n.getValue()}`);i=TS(i,e,a);const o=r?r.slice([0,e.getRowCount()],[0,e.getColumnCount()]):e;return o?o.pick(i).sum():I.create(D.VALUE)}};U(IMe,"Sumif");let yPt=IMe;const PMe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return e;if(!e.isArray()||n.length<2||n.length%2!==0||n.some((s,l)=>l%2===0&&!s.isArray()))return I.create(D.VALUE);const{maxRowLength:r,maxColumnLength:i}=Yp(n),a=J7(n,e,r,i);if(a)return a;const o=e9(n,r,i,!0);return this._aggregateResults(e,o)}_aggregateResults(e,n){const r=n.map(a=>a.map(o=>e.pick(o).sum())),i={calculateValueList:r,rowCount:r.length,columnCount:r[0].length,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(i)}};U(PMe,"Sumifs");let EPt=PMe;const MMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return e;const r=this._initArray1(e);if(n.length>0){const i=r.getRowCount(),a=r.getColumnCount();let o=this._getResultArrayByArray1(i,a,r);if(o instanceof I)return o;o=o;for(let l=0;l<n.length;l++){if(n[l].isError())return n[l];let u=1,c=1;if(n[l].isArray()&&(u=n[l].getRowCount(),c=n[l].getColumnCount()),u!==i||c!==a)return I.create(D.VALUE);for(let d=0;d<i;d++){const h=[];for(let f=0;f<a;f++){let m=n[l];if(n[l].isArray()&&(m=n[l].get(d,f)),m.isError())return m;const g=m.getValue();!g||!Kr(g)?h.push(0):h.push(+g*o[d][f])}o[d]=h}}const s=o.reduce((l,u)=>l.concat(u)).reduce((l,u)=>l+u,0);return ee.create(s)}else return r.sum()}_initArray1(e){let n=e;return n.isArray()||(n=ni.create({calculateValueList:[[n]],rowCount:1,columnCount:1,unitId:"",sheetId:"",row:0,column:0})),n}_getResultArrayByArray1(e,n,r){const i=[];for(let a=0;a<e;a++){const o=[];for(let s=0;s<n;s++){const l=r.get(a,s);if(l.isError())return l;const u=l.getValue();!u||!Kr(u)?o.push(0):o.push(+u)}i.push(o)}return i}};U(MMe,"Sumproduct");let RPt=MMe;const TMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0);const r=ee.create(2);for(let i=0;i<e.length;i++){let a=e[i];if(a.isString()&&(a=a.convertToNumberObjectValue()),a.isError())return a;if(a.isArray()?a.iterator(o=>{if(o==null||o.isString()||o.isBoolean()||o.isNull())return!0;if(o.isError())return n=o,!1;n=n.plus(o.pow(r))}):n=n.plus(a.pow(r)),n.isError())return n}return n}};U(TMe,"Sumsq");let APt=TMe;const LMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=r*i,o=n.isArray()?n.getRowCount():1,s=n.isArray()?n.getColumnCount():1,l=o*s;if(a!==l)return I.create(D.NA);if(a===1)return this._calculateSingleCell(e,n);{const u=e.flatten(),c=n.flatten();let d=ii.create();const h=[],f=[];let m=0;return u.iterator((g,p,v)=>{const _=c.get(p,v);if(g==null||g.isString()||g.isBoolean()||g.isNull())return!0;if(g!=null&&g.isError())return d=g,!1;if(_==null||_.isString()||_.isBoolean()||_.isNull())return!0;if(_!=null&&_.isError())return d=_,!1;const C=+g.getValue(),S=+_.getValue();h.push(C),f.push(S),m+=C**2-S**2}),d.isError()?d:h.length===0||f.length===0?I.create(D.DIV_BY_ZERO):ee.create(m)}}_calculateSingleCell(e,n){let r=e;if(r.isArray()&&(r=r.get(0,0)),r.isError())return r;let i=n;if(i.isArray()&&(i=i.get(0,0)),i.isError())return i;if(r.isNull()||i.isNull())return I.create(D.VALUE);const a=+r.getValue(),o=+i.getValue();if(r.isString()&&!Kr(a)||r.isBoolean()||i.isString()&&!Kr(o)||i.isBoolean())return I.create(D.DIV_BY_ZERO);const s=a**2-o**2;return ee.create(s)}};U(LMe,"Sumx2my2");let wPt=LMe;const xMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=r*i,o=n.isArray()?n.getRowCount():1,s=n.isArray()?n.getColumnCount():1,l=o*s;if(a!==l)return I.create(D.NA);if(a===1)return this._calculateSingleCell(e,n);{const u=e.flatten(),c=n.flatten();let d=ii.create();const h=[],f=[];let m=0;return u.iterator((g,p,v)=>{const _=c.get(p,v);if(g==null||g.isString()||g.isBoolean()||g.isNull())return!0;if(g!=null&&g.isError())return d=g,!1;if(_==null||_.isString()||_.isBoolean()||_.isNull())return!0;if(_!=null&&_.isError())return d=_,!1;const C=+g.getValue(),S=+_.getValue();h.push(C),f.push(S),m+=C**2+S**2}),d.isError()?d:h.length===0||f.length===0?I.create(D.DIV_BY_ZERO):ee.create(m)}}_calculateSingleCell(e,n){let r=e;if(r.isArray()&&(r=r.get(0,0)),r.isError())return r;let i=n;if(i.isArray()&&(i=i.get(0,0)),i.isError())return i;if(r.isNull()||i.isNull())return I.create(D.VALUE);const a=+r.getValue(),o=+i.getValue();if(r.isString()&&!Kr(a)||r.isBoolean()||i.isString()&&!Kr(o)||i.isBoolean())return I.create(D.DIV_BY_ZERO);const s=a**2+o**2;return ee.create(s)}};U(xMe,"Sumx2py2");let DPt=xMe;const OMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=e.isArray()?e.getRowCount():1,i=e.isArray()?e.getColumnCount():1,a=r*i,o=n.isArray()?n.getRowCount():1,s=n.isArray()?n.getColumnCount():1,l=o*s;if(a!==l)return I.create(D.NA);if(a===1)return this._calculateSingleCell(e,n);{const u=e.flatten(),c=n.flatten();let d=ii.create();const h=[],f=[];let m=0;return u.iterator((g,p,v)=>{const _=c.get(p,v);if(g==null||g.isString()||g.isBoolean()||g.isNull())return!0;if(g!=null&&g.isError())return d=g,!1;if(_==null||_.isString()||_.isBoolean()||_.isNull())return!0;if(_!=null&&_.isError())return d=_,!1;const C=+g.getValue(),S=+_.getValue();h.push(C),f.push(S),m+=(C-S)**2}),d.isError()?d:h.length===0||f.length===0?I.create(D.DIV_BY_ZERO):ee.create(m)}}_calculateSingleCell(e,n){let r=e;if(r.isArray()&&(r=r.get(0,0)),r.isError())return r;let i=n;if(i.isArray()&&(i=i.get(0,0)),i.isError())return i;if(r.isNull()||i.isNull())return I.create(D.VALUE);const a=+r.getValue(),o=+i.getValue();if(r.isString()&&!Kr(a)||r.isBoolean()||i.isString()&&!Kr(o)||i.isBoolean())return I.create(D.DIV_BY_ZERO);const s=(a-o)**2;return ee.create(s)}};U(OMe,"Sumxmy2");let IPt=OMe;const NMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.tan()}};U(NMe,"Tan");let PPt=NMe;const kMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){let n=e;return n.isString()&&(n=n.convertToNumberObjectValue()),n.isError()?n:n.tanh()}};U(kMe,"Tanh");let MPt=kMe;const FMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){const r=n??ee.create(0),i=Math.max(e.isArray()?e.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e,I.create(D.NA)),s=qe(i,a,r,I.create(D.NA)),l=o.map((u,c,d)=>{let h=s.get(c,d),f=u;if(f.isString()&&(f=f.convertToNumberObjectValue()),f.isError())return f;if(h.isString()&&(h=h.convertToNumberObjectValue()),h.isError())return h;const m=+f.getValue(),g=+h.getValue(),p=10**Math.trunc(g),v=wS(m,p),_=Math.trunc(qp(m,p)+v)/p;return ee.create(_)});return i===1&&a===1?l.get(0,0):l}};U(FMe,"Trunc");let TPt=FMe;const VMe=[[uIt,mt.ABS],[cIt,mt.ACOS],[dIt,mt.ACOSH],[hIt,mt.ACOT],[fIt,mt.ACOTH],[mIt,mt.ASIN],[gIt,mt.ASINH],[pIt,mt.ATAN],[vIt,mt.ATAN2],[_It,mt.ATANH],[CIt,mt.BASE],[SIt,mt.CEILING],[bIt,mt.CEILING_MATH],[yIt,mt.CEILING_PRECISE],[EIt,mt.COMBIN],[RIt,mt.COMBINA],[AIt,mt.COS],[wIt,mt.COSH],[DIt,mt.COT],[IIt,mt.COTH],[PIt,mt.CSC],[MIt,mt.CSCH],[TIt,mt.DECIMAL],[LIt,mt.DEGREES],[xIt,mt.EVEN],[OIt,mt.EXP],[NIt,mt.FACT],[kIt,mt.FACTDOUBLE],[FIt,mt.FLOOR],[VIt,mt.FLOOR_MATH],[BIt,mt.FLOOR_PRECISE],[UIt,mt.GCD],[HIt,mt.INT],[jIt,mt.LCM],[$It,mt.LN],[WIt,mt.LOG],[zIt,mt.LOG10],[qIt,mt.MDETERM],[YIt,mt.MINVERSE],[XIt,mt.MMULT],[GIt,mt.MOD],[QIt,mt.MROUND],[KIt,mt.MULTINOMIAL],[ZIt,mt.MUNIT],[JIt,mt.ODD],[ePt,mt.PI],[tPt,mt.POWER],[nPt,mt.PRODUCT],[rPt,mt.QUOTIENT],[iPt,mt.RADIANS],[aPt,mt.RAND],[oPt,mt.RANDARRAY],[sPt,mt.RANDBETWEEN],[lPt,mt.ROUND],[uPt,mt.ROUNDDOWN],[cPt,mt.ROUNDUP],[dPt,mt.SEC],[hPt,mt.SECH],[mPt,mt.SERIESSUM],[fPt,mt.SEQUENCE],[gPt,mt.SIGN],[pPt,mt.SIN],[vPt,mt.SINH],[_Pt,mt.SQRT],[CPt,mt.SQRTPI],[SPt,mt.SUBTOTAL],[bPt,mt.SUM],[yPt,mt.SUMIF],[EPt,mt.SUMIFS],[RPt,mt.SUMPRODUCT],[APt,mt.SUMSQ],[wPt,mt.SUMX2MY2],[DPt,mt.SUMX2PY2],[IPt,mt.SUMXMY2],[PPt,mt.TAN],[MPt,mt.TANH],[TPt,mt.TRUNC]],BMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2),x(this,"_compareType",bn.EQUALS)}setCompareType(e){this._compareType=e}calculate(e,n){return e.isError()?e:n.isError()?n:e.compare(n,this._compareType)}};U(BMe,"Compare");let LPt=BMe;const UMe=class HMe extends o2{constructor(e){super(""),x(this,"_values",[]),this._values=e}static create(e){return new HMe(e)}isCube(){return!0}sum(){const e=ee.create(0);return this._values.forEach(n=>{e.plus(n.sum())}),e}max(){let e=ee.create(Number.NEGATIVE_INFINITY);return this._values.forEach(n=>{const r=n.max();e.isLessThan(r)&&(e=r)}),e}min(){let e=ee.create(Number.POSITIVE_INFINITY);return this._values.forEach(n=>{const r=n.max();e.isGreaterThan(r)&&(e=r)}),e}count(){const e=ee.create(0);return this._values.forEach(n=>{e.plus(n.count())}),e}countA(){const e=ee.create(0);return this._values.forEach(n=>{e.plus(n.countA())}),e}countBlank(){const e=ee.create(0);return this._values.forEach(n=>{e.plus(n.countBlank())}),e}};U(UMe,"CubeValueObject");let xPt=UMe;const jMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.isError())return i;if(!i.isArray())return I.create(D.VALUE);n.push(i)}return xPt.create(n)}};U(jMe,"Cube");let OPt=jMe;const $Me=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){return e.isError()?e:n.isError()?n:!n.isArray()&&n.getValue()===0?I.create(D.DIV_BY_ZERO):e.divided(n)}};U($Me,"Divided");let NPt=$Me;var pl=(t=>(t.COMPARE="COMPARE",t.DIVIDED="DIVIDED",t.MINUS="MINUS",t.MULTIPLY="MULTIPLY",t.PLUS="PLUS",t.UNION="UNION",t.CUBE="CUBE",t))(pl||{});const WMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){return e.isError()?e:n.isError()?n:e.minus(n)}};U(WMe,"Minus");let kPt=WMe;const zMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){return e.isError()?e:n.isError()?n:e.multiply(n)}};U(zMe,"Multiply");let FPt=zMe;const qMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){return e.isError()?e:n.isError()?n:e.plus(n)}};U(qMe,"Plus");let VPt=qMe;const YMe=[[LPt,pl.COMPARE],[NPt,pl.DIVIDED],[kPt,pl.MINUS],[FPt,pl.MULTIPLY],[VPt,pl.PLUS],[OPt,pl.CUBE]];var gt=(t=>(t.AVEDEV="AVEDEV",t.AVERAGE="AVERAGE",t.AVERAGEA="AVERAGEA",t.AVERAGEIF="AVERAGEIF",t.AVERAGEIFS="AVERAGEIFS",t.BETA_DIST="BETA.DIST",t.BETA_INV="BETA.INV",t.BINOM_DIST="BINOM.DIST",t.BINOM_DIST_RANGE="BINOM.DIST.RANGE",t.BINOM_INV="BINOM.INV",t.CHISQ_DIST="CHISQ.DIST",t.CHISQ_DIST_RT="CHISQ.DIST.RT",t.CHISQ_INV="CHISQ.INV",t.CHISQ_INV_RT="CHISQ.INV.RT",t.CHISQ_TEST="CHISQ.TEST",t.CONFIDENCE_NORM="CONFIDENCE.NORM",t.CONFIDENCE_T="CONFIDENCE.T",t.CORREL="CORREL",t.COUNT="COUNT",t.COUNTA="COUNTA",t.COUNTBLANK="COUNTBLANK",t.COUNTIF="COUNTIF",t.COUNTIFS="COUNTIFS",t.COVARIANCE_P="COVARIANCE.P",t.COVARIANCE_S="COVARIANCE.S",t.DEVSQ="DEVSQ",t.EXPON_DIST="EXPON.DIST",t.F_DIST="F.DIST",t.F_DIST_RT="F.DIST.RT",t.F_INV="F.INV",t.F_INV_RT="F.INV.RT",t.F_TEST="F.TEST",t.FISHER="FISHER",t.FISHERINV="FISHERINV",t.FORECAST="FORECAST",t.FORECAST_ETS="FORECAST.ETS",t.FORECAST_ETS_CONFINT="FORECAST.ETS.CONFINT",t.FORECAST_ETS_SEASONALITY="FORECAST.ETS.SEASONALITY",t.FORECAST_ETS_STAT="FORECAST.ETS.STAT",t.FORECAST_LINEAR="FORECAST.LINEAR",t.FREQUENCY="FREQUENCY",t.GAMMA="GAMMA",t.GAMMA_DIST="GAMMA.DIST",t.GAMMA_INV="GAMMA.INV",t.GAMMALN="GAMMALN",t.GAMMALN_PRECISE="GAMMALN.PRECISE",t.GAUSS="GAUSS",t.GEOMEAN="GEOMEAN",t.GROWTH="GROWTH",t.HARMEAN="HARMEAN",t.HYPGEOM_DIST="HYPGEOM.DIST",t.INTERCEPT="INTERCEPT",t.KURT="KURT",t.LARGE="LARGE",t.LINEST="LINEST",t.LOGEST="LOGEST",t.LOGNORM_DIST="LOGNORM.DIST",t.LOGNORM_INV="LOGNORM.INV",t.MAX="MAX",t.MAXA="MAXA",t.MAXIFS="MAXIFS",t.MEDIAN="MEDIAN",t.MIN="MIN",t.MINA="MINA",t.MINIFS="MINIFS",t.MODE_MULT="MODE.MULT",t.MODE_SNGL="MODE.SNGL",t.NEGBINOM_DIST="NEGBINOM.DIST",t.NORM_DIST="NORM.DIST",t.NORM_INV="NORM.INV",t.NORM_S_DIST="NORM.S.DIST",t.NORM_S_INV="NORM.S.INV",t.PEARSON="PEARSON",t.PERCENTILE_EXC="PERCENTILE.EXC",t.PERCENTILE_INC="PERCENTILE.INC",t.PERCENTRANK_EXC="PERCENTRANK.EXC",t.PERCENTRANK_INC="PERCENTRANK.INC",t.PERMUT="PERMUT",t.PERMUTATIONA="PERMUTATIONA",t.PHI="PHI",t.POISSON_DIST="POISSON.DIST",t.PROB="PROB",t.QUARTILE_EXC="QUARTILE.EXC",t.QUARTILE_INC="QUARTILE.INC",t.RANK_AVG="RANK.AVG",t.RANK_EQ="RANK.EQ",t.RSQ="RSQ",t.SKEW="SKEW",t.SKEW_P="SKEW.P",t.SLOPE="SLOPE",t.SMALL="SMALL",t.STANDARDIZE="STANDARDIZE",t.STDEV_P="STDEV.P",t.STDEV_S="STDEV.S",t.STDEVA="STDEVA",t.STDEVPA="STDEVPA",t.STEYX="STEYX",t.T_DIST="T.DIST",t.T_DIST_2T="T.DIST.2T",t.T_DIST_RT="T.DIST.RT",t.T_INV="T.INV",t.T_INV_2T="T.INV.2T",t.T_TEST="T.TEST",t.TREND="TREND",t.TRIMMEAN="TRIMMEAN",t.VAR_P="VAR.P",t.VAR_S="VAR.S",t.VARA="VARA",t.VARPA="VARPA",t.WEIBULL_DIST="WEIBULL.DIST",t.Z_TEST="Z.TEST",t))(gt||{});const XMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0),r=ee.create(0);for(let o=0;o<e.length;o++){let s=e[o];if(s.isString()&&(s=s.convertToNumberObjectValue()),s.isError())return s;if(s.isArray()){if(s=GMe(s),s.isError())return s;if(e[o]=s,n=n.plus(s.sum()),n.isError())return n;r=r.plus(s.count())}else s.isNull()||(n=n.plus(s),r=r.plus(ee.create(1)))}if(r.getValue()===0)return I.create(D.NUM);const i=n.divided(r);if(i.isError())return i;let a=ee.create(0);for(let o=0;o<e.length;o++){let s=e[o];if(s.isString()&&(s=s.convertToNumberObjectValue()),s.isError())return s;if(s.isArray()){if(a=a.plus(s.minus(i).abs().sum()),a.isError())return a}else s.isNull()||(a=a.plus(s.minus(i).abs()))}return a.divided(r)}};U(XMe,"Avedev");let BPt=XMe;function GMe(t){const e=[];e[0]=[];let n=null;return t.iterator((r,i,a)=>{if(r!=null&&r.isError())return n=r,!1;r!=null&&r.isNumber()&&e[0].push(r)}),n||M0(e,1,e[0].length)}U(GMe,"filterNumberValueObject");const QMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0),r=ee.create(0);for(let i=0;i<e.length;i++){let a=e[i];if((a.isString()||a.isBoolean())&&(a=a.convertToNumberObjectValue()),a.isError())return a;if(a.isArray()){if(n=n.plus(a.sum()),n.isError())return n;r=r.plus(a.count())}else a.isNull()||(n=n.plus(a),r=r.plus(ee.create(1)))}return n.divided(r)}};U(QMe,"Average");let UPt=QMe;const KMe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0),r=ee.create(0);for(let i=0;i<e.length;i++){let a=e[i];if((a.isString()||a.isBoolean())&&(a=a.convertToNumberObjectValue()),a.isError())return a;if(a.isArray()){if(a.iterator(o=>{if(o==null||o.isNull())return!0;let s=o;if(s.isString()&&(s=s.convertToNumberObjectValue(),s.isError()&&(s=ee.create(0))),s.isBoolean()&&(s=s.convertToNumberObjectValue()),s.isError())return n=s,!1;n=n.plus(s),r=r.plus(ee.create(1))}),n.isError())return n}else a.isNull()||(n=n.plus(a),r=r.plus(ee.create(1)))}return n.divided(r)}};U(KMe,"Averagea");let HPt=KMe;const ZMe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3),x(this,"needsReferenceObject",!0)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r!=null&&r.isError())return r;let i=e;i.isReferenceObject()&&(i=i.toArrayValueObject()),i.isArray()||(i=M0([[i]],1,1));let a=n;return a.isReferenceObject()&&(a=a.toArrayValueObject()),r&&!(r!=null&&r.isReferenceObject())?I.create(D.NA):(a=a,a.isArray()?a.map(o=>this._handleSingleObject(i,o,r)):this._handleSingleObject(i,a,r))}_handleSingleObject(e,n,r){let i=MS(e,n);const[,a]=Z7(`${n.getValue()}`);i=TS(i,e,a);let o=r?this._createRangeReferenceObject(r,e):e;if(!o)return I.create(D.VALUE);if(o.isError())return o;o.isReferenceObject()&&(o=o.toArrayValueObject()),o=o;const s=o.pick(i),l=s.sum(),u=s.count();return l.divided(u)}_createRangeReferenceObject(e,n){const r=e.getRowCount(),i=e.getColumnCount(),a=n.isArray()?n.getRowCount():1,o=n.isArray()?n.getColumnCount():1;if(r===a&&i===o)return e;const{startRow:s,startColumn:l}=e.getRangePosition(),u={startRow:s,startColumn:l,endRow:s+a-1,endColumn:l+o-1};return this.createReferenceObject(e,u)}};U(ZMe,"Averageif");let jPt=ZMe;const JMe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return I.create(D.NA);if(!e.isArray()||n.length%2!==0||n.some((s,l)=>l%2===0&&!s.isArray()))return I.create(D.VALUE);const{maxRowLength:r,maxColumnLength:i}=Yp(n),a=J7(n,e,r,i);if(a)return a;const o=e9(n,r,i,!0);return this._aggregateResults(e,o)}_aggregateResults(e,n){const r=n.map(a=>a.map(o=>{const s=e.pick(o),l=s.sum(),u=s.count();return l.divided(u)})),i={calculateValueList:r,rowCount:r.length,columnCount:r[0].length,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(i)}};U(JMe,"Averageifs");let $Pt=JMe;const eTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0);for(let r=0;r<e.length;r++){const i=e[r];i.isError()||(i.isArray()?n=n.plus(i.count()):i.isString()?i.convertToNumberObjectValue().isError()||(n=n.plus(ee.create(1))):i.isNull()||(n=n.plus(ee.create(1))))}return n}};U(eTe,"Count");let WPt=eTe;const tTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(0);for(let r=0;r<e.length;r++){let i=e[r];if(i.isError()){n=n.plus(ee.create(1));continue}i.isArray()?(i=i.countA(),n=n.plus(i)):i.isNull()||(n=n.plus(ee.create(1)))}return n}};U(tTe,"Counta");let zPt=tTe;const nTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.getValue()===""||e.isNull()?ee.create(1):e.isArray()?e.countBlank():ee.create(0)}};U(nTe,"Countblank");let qPt=nTe;const rTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){return e.isError()||n.isError()?I.create(D.NA):e.isArray()?n.isArray()?n.mapValue(r=>this._handleSingleObject(e,r)):this._handleSingleObject(e,n):I.create(D.VALUE)}_handleSingleObject(e,n){let r=MS(e,n);const[,i]=Z7(`${n.getValue()}`);r=TS(r,e,i);const a=e.pick(r);return this._countA(a)}_countA(e){let n=ee.create(0);return e.iterator(r=>{if(r==null)return!0;n=n.plusBy(1)}),n}};U(rTe,"Countif");let YPt=rTe;const iTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",255)}calculate(...e){if(e.length%2!==0||e.some((o,s)=>s%2===0&&!o.isArray()))return I.create(D.VALUE);const{maxRowLength:n,maxColumnLength:r}=Yp(e),i=J7(e,e[0],n,r);if(i)return i;const a=e9(e,n,r,!0);return this._aggregateResults(a)}_aggregateResults(e){const n=e.map(i=>i.map(a=>aTe(a))),r={calculateValueList:n,rowCount:n.length,columnCount:n[0].length,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(r)}};U(iTe,"Countifs");let XPt=iTe;function aTe(t){let e=0;return t.iterator(n=>{n!=null&&n.isBoolean()&&n.getValue()===!0&&e++}),ee.create(e)}U(aTe,"countTrueValue");const oTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(Number.NEGATIVE_INFINITY);for(let r=0;r<e.length;r++){let i=e[r];if(!i.isNull()){if((i.isString()||i.isBoolean())&&(i=i.convertToNumberObjectValue()),i.isArray()&&(i=i.max()),i.isError())return i;n=this._validator(n,i)}}return n.getValue()===Number.NEGATIVE_INFINITY?ee.create(0):n}_validator(e,n){const r=e.isLessThan(n);let i=e;return r.getValue()&&(i=n),i}};U(oTe,"Max");let GPt=oTe;const sTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(Number.NEGATIVE_INFINITY);for(let r=0;r<e.length;r++){let i=e[r];if(!i.isNull()){if((i.isString()||i.isBoolean())&&(i=i.convertToNumberObjectValue()),i.isError())return i;if(i.isArray()&&i.iterator(a=>{let o=a;if((o==null||o.isNull()||o.isString())&&(o=ee.create(0)),o.isBoolean()&&(o=o.convertToNumberObjectValue()),o.isError())return n=o,!1;n=this._validator(n,o)}),n.isError())return n;n=this._validator(n,i)}}return n.getValue()===Number.NEGATIVE_INFINITY?ee.create(0):n}_validator(e,n){const r=e.isLessThan(n);let i=e;return r.getValue()&&(i=n),i}};U(sTe,"Maxa");let QPt=sTe;const lTe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return I.create(D.NA);if(!e.isArray()||n.length%2!==0||n.some((s,l)=>l%2===0&&!s.isArray()))return I.create(D.VALUE);const{maxRowLength:r,maxColumnLength:i}=Yp(n),a=J7(n,e,r,i);if(a)return a;const o=e9(n,r,i,!0);return this._aggregateResults(e,o)}_aggregateResults(e,n){const r=n.map(a=>a.map(o=>{const s=e.pick(o);return s.getColumnCount()===0?ni.create("0"):s.max()})),i={calculateValueList:r,rowCount:r.length,columnCount:r[0].length,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(i)}};U(lTe,"Maxifs");let KPt=lTe;const uTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(Number.POSITIVE_INFINITY);for(let r=0;r<e.length;r++){let i=e[r];if(!i.isNull()){if((i.isString()||i.isBoolean())&&(i=i.convertToNumberObjectValue()),i.isArray()&&(i=i.min()),i.isError())return i;n=this._validator(n,i)}}return n.getValue()===Number.POSITIVE_INFINITY?ee.create(0):n}_validator(e,n){const r=e.isGreaterThan(n);let i=e;return r.getValue()&&(i=n),i}};U(uTe,"Min");let ZPt=uTe;const cTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=ee.create(Number.POSITIVE_INFINITY);for(let r=0;r<e.length;r++){let i=e[r];if(!i.isNull()){if((i.isString()||i.isBoolean())&&(i=i.convertToNumberObjectValue()),i.isError())return i;if(i.isArray()&&i.iterator(a=>{let o=a;if((o==null||o.isNull()||o.isString())&&(o=ee.create(0)),o.isBoolean()&&(o=o.convertToNumberObjectValue()),o.isError())return n=o,!1;n=this._validator(n,o)}),n.isError())return n;n=this._validator(n,i)}}return n.getValue()===Number.POSITIVE_INFINITY?ee.create(0):n}_validator(e,n){const r=e.isGreaterThan(n);let i=e;return r.getValue()&&(i=n),i}};U(cTe,"Mina");let JPt=cTe;const dTe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",255)}calculate(e,...n){if(e.isError())return I.create(D.NA);if(!e.isArray()||n.length%2!==0||n.some((s,l)=>l%2===0&&!s.isArray()))return I.create(D.VALUE);const{maxRowLength:r,maxColumnLength:i}=Yp(n),a=J7(n,e,r,i);if(a)return a;const o=e9(n,r,i,!0);return this._aggregateResults(e,o)}_aggregateResults(e,n){const r=n.map(a=>a.map(o=>{const s=e.pick(o);return s.getColumnCount()===0?ni.create("0"):s.min()})),i={calculateValueList:r,rowCount:r.length,columnCount:r[0].length,unitId:this.unitId||"",sheetId:this.subUnitId||"",row:this.row,column:this.column};return ni.create(i)}};U(dTe,"Minifs");let eMt=dTe;const hTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3),x(this,"needsReferenceObject",!0)}calculate(e,n,r){let i=e;i.isReferenceObject()&&(i=i.toArrayValueObject());const{refHasError:a,refErrorObject:o,refNumbers:s}=this._checkRefReferenceObject(n);let l=r??ee.create(0);l.isReferenceObject()&&(l=l.toArrayValueObject());const u=Math.max(i.isArray()?i.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(i.isArray()?i.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,i,I.create(D.NA)),h=qe(u,c,l,I.create(D.NA)),f=d.map((m,g,p)=>{const v=h.get(g,p);if(!e.isReferenceObject()&&e.isNull())return I.create(D.NA);if(a)return o;if(v.isError())return v;const _=+m.getValue(),C=+v.getValue();return Number.isNaN(_)||Number.isNaN(C)?I.create(D.VALUE):this._getResult(_,C,s)});return u===1&&c===1?f.get(0,0):f}_getResult(e,n,r){const i=r.sort((l,u)=>n?l-u:u-l);let a=i.indexOf(e);const o=[];for(;a>=0;){const l=a+1;o.push(l),a=i.indexOf(e,l)}if(o.length===0)return I.create(D.NA);const s=o.reduce((l,u)=>l+u,0)/o.length;return ee.create(s)}_checkRefReferenceObject(e){let n=!1,r=I.create(D.NA);const i=[];return e.isReferenceObject()?(e.toArrayValueObject().iterator(a=>{const o=a;if(o.isError())return n=!0,r=o,!1;if(o.isNull()||o.isBoolean())return!0;const s=+o.getValue();if(Number.isNaN(s))return!0;i.push(s)}),{refHasError:n,refErrorObject:r,refNumbers:i}):{refHasError:!0,refErrorObject:r,refNumbers:i}}};U(hTe,"RankAvg");let tMt=hTe;const fTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",3),x(this,"needsReferenceObject",!0)}calculate(e,n,r){let i=e;i.isReferenceObject()&&(i=i.toArrayValueObject());const{refHasError:a,refErrorObject:o,refNumbers:s}=this._checkRefReferenceObject(n);let l=r??ee.create(0);l.isReferenceObject()&&(l=l.toArrayValueObject());const u=Math.max(i.isArray()?i.getRowCount():1,l.isArray()?l.getRowCount():1),c=Math.max(i.isArray()?i.getColumnCount():1,l.isArray()?l.getColumnCount():1),d=qe(u,c,i,I.create(D.NA)),h=qe(u,c,l,I.create(D.NA)),f=d.map((m,g,p)=>{const v=h.get(g,p);if(!e.isReferenceObject()&&e.isNull())return I.create(D.NA);if(a)return o;if(v.isError())return v;const _=+m.getValue(),C=+v.getValue();if(Number.isNaN(_)||Number.isNaN(C))return I.create(D.VALUE);const S=s.sort((b,y)=>C?b-y:y-b).indexOf(_);return S===-1?I.create(D.NA):ee.create(S+1)});return u===1&&c===1?f.get(0,0):f}_checkRefReferenceObject(e){let n=!1,r=I.create(D.NA);const i=[];return e.isReferenceObject()?(e.toArrayValueObject().iterator(a=>{const o=a;if(o.isError())return n=!0,r=o,!1;if(o.isNull()||o.isBoolean())return!0;const s=+o.getValue();if(Number.isNaN(s))return!0;i.push(s)}),{refHasError:n,refErrorObject:r,refNumbers:i}):{refHasError:!0,refErrorObject:r,refNumbers:i}}};U(fTe,"RankEq");let nMt=fTe;const mTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e,!1);return n.isError()?n:n.std(1)}};U(mTe,"Stdeva");let rMt=mTe;const gTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e,!1);return n.isError()?n:n.std()}};U(gTe,"Stdevpa");let iMt=gTe;const pTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e,!1);return n.isError()?n:n.var(1)}};U(pTe,"Vara");let aMt=pTe;const vTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){const n=this.flattenArray(e,!1);return n.isError()?n:n.var()}};U(vTe,"Varpa");let oMt=vTe;const _Te=[[BPt,gt.AVEDEV],[UPt,gt.AVERAGE],[HPt,gt.AVERAGEA],[jPt,gt.AVERAGEIF],[$Pt,gt.AVERAGEIFS],[WPt,gt.COUNT],[zPt,gt.COUNTA],[qPt,gt.COUNTBLANK],[YPt,gt.COUNTIF],[XPt,gt.COUNTIFS],[GPt,gt.MAX],[QPt,gt.MAXA],[KPt,gt.MAXIFS],[ZPt,gt.MIN],[JPt,gt.MINA],[eMt,gt.MINIFS],[tMt,gt.RANK_AVG],[nMt,gt.RANK_EQ],[tAe,gt.STDEV_P],[rAe,gt.STDEV_S],[rMt,gt.STDEVA],[iMt,gt.STDEVPA],[aAe,gt.VAR_P],[sAe,gt.VAR_S],[aMt,gt.VARA],[oMt,gt.VARPA]],CTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n="",r=null;for(const i of e)if(i.isArray()){if(i.iterator(a=>{if(a==null||a.isNull())return!0;if(a.isError())return r=a,!1;a.isBoolean()?n+=`${a.getValue()}`.toLocaleUpperCase():(a.isString()||a.isNumber())&&(n+=a.getValue())}),r)return r}else!i.isError()&&!i.isNull()&&(n+=i.getValue());return Xn.create(n)}};U(CTe,"Concat");let sMt=CTe;const STe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",255)}calculate(...e){let n=0,r=0;e.forEach(a=>{if(a.isArray()){const o=a;n=Math.max(n,o.getRowCount()),r=Math.max(r,o.getColumnCount())}else n=Math.max(n,1),r=Math.max(r,1)});let i=null;for(const a of e)i=qe(n,r,a,I.create(D.NA)).mapValue((o,s,l)=>{const u=i&&i.get(s,l);if(u!=null&&u.isError())return u;if(o.isError())return o;let c=u==null?void 0:u.getValue(),d=o==null?void 0:o.getValue();u!=null&&u.isBoolean()&&(c=`${c}`.toLocaleUpperCase()),o!=null&&o.isBoolean()&&(d=`${d}`.toLocaleUpperCase());const h=u!=null&&u.isNull()?"":c??"",f=o!=null&&o.isNull()?"":d??"";return Xn.create(`${h}${f}`)});return i||I.create(D.VALUE)}};U(STe,"Concatenate");let lMt=STe;var Cr=(t=>(t.ASC="ASC",t.ARRAYTOTEXT="ARRAYTOTEXT",t.BAHTTEXT="BAHTTEXT",t.CHAR="CHAR",t.CLEAN="CLEAN",t.CODE="CODE",t.CONCAT="CONCAT",t.CONCATENATE="CONCATENATE",t.DBCS="DBCS",t.DOLLAR="DOLLAR",t.EXACT="EXACT",t.FIND="FIND",t.FINDB="FINDB",t.FIXED="FIXED",t.LEFT="LEFT",t.LEFTB="LEFTB",t.LEN="LEN",t.LENB="LENB",t.LOWER="LOWER",t.MID="MID",t.MIDB="MIDB",t.NUMBERVALUE="NUMBERVALUE",t.PHONETIC="PHONETIC",t.PROPER="PROPER",t.REPLACE="REPLACE",t.REPLACEB="REPLACEB",t.REPT="REPT",t.RIGHT="RIGHT",t.RIGHTB="RIGHTB",t.SEARCH="SEARCH",t.SEARCHB="SEARCHB",t.SUBSTITUTE="SUBSTITUTE",t.T="T",t.TEXT="TEXT",t.TEXTAFTER="TEXTAFTER",t.TEXTBEFORE="TEXTBEFORE",t.TEXTJOIN="TEXTJOIN",t.TEXTSPLIT="TEXTSPLIT",t.TRIM="TRIM",t.UNICHAR="UNICHAR",t.UNICODE="UNICODE",t.UPPER="UPPER",t.VALUE="VALUE",t.VALUETOTEXT="VALUETOTEXT",t.CALL="CALL",t.EUROCONVERT="EUROCONVERT",t.REGISTER_ID="REGISTER.ID",t))(Cr||{});function wee(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r>=12352&&r<=12543||r>=19968&&r<=40959||r>=44032&&r<=55215?e+=2:e+=1}return e}U(wee,"charLenByte");const bTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n!=null&&n.isError())return n;const r=n||ee.create(1),i=Math.max(e.isArray()?e.getRowCount():1,r&&r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,r&&r.isArray()?r.getColumnCount():1),o=qe(i,a,e),s=qe(i,a,r);return o.map((l,u,c)=>this._handleSingleText(l,u,c,s))}_handleSingleText(e,n,r,i){let a=i.get(n,r)||ee.create(1);if(a.isError())return a;let o=e.getValue();if(e.isNull()&&(o=""),e.isBoolean()&&(o=o?"TRUE":"FALSE"),o=`${o}`,(a.isString()||a.isBoolean()||a.isNull())&&(a=a.convertToNumberObjectValue()),a.isError())return a;const s=Math.floor(+a.getValue());return s<0?I.create(D.VALUE):Xn.create(this._sliceByBytes(o,s))}_sliceByBytes(e,n){let r=0,i=0;for(let a=0;a<e.length;a++){const o=e[a],s=wee(o);if(r+s>n)break;r+=s,i++}return[...e].slice(0,i).join("")}};U(bTe,"Leftb");let uMt=bTe;const yTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.mapValue(n=>this._handleSingleText(n)):this._handleSingleText(e)}_handleSingleText(e){if(e.isError())return e;if(e.isNull())return ee.create(0);if(e.isNumber()){const n=e.getValue(),r=JT(n,12,Number.EPSILON).toString();return ee.create(r.length)}if(e.isString()||e.isBoolean()||e.isNumber()){const n=e.getValue().toString();return ee.create(n.length)}return I.create(D.VALUE)}};U(yTe,"Len");let cMt=yTe;const ETe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.mapValue(n=>this._handleSingleText(n)):this._handleSingleText(e)}_handleSingleText(e){if(e.isError())return e;if(e.isNull())return ee.create(0);if(e.isString()||e.isBoolean()||e.isNumber()){const n=e.getValue().toString(),r=wee(n);return ee.create(r)}return I.create(D.VALUE)}};U(ETe,"Lenb");let dMt=ETe;const RTe=class extends be{constructor(){super(...arguments),x(this,"minParams",1),x(this,"maxParams",1)}calculate(e){return e.isError()?e:e.isArray()?e.mapValue(n=>this._handleSingleText(n)):this._handleSingleText(e)}_handleSingleText(e){if(e.isError())return e;if(e.isNull())return Xn.create("");if(e.isString()||e.isBoolean()||e.isNumber()){const n=e.getValue().toString().toLowerCase();return Xn.create(n)}return I.create(D.VALUE)}};U(RTe,"Lower");let hMt=RTe;const ATe=class extends be{constructor(){super(...arguments),x(this,"minParams",3),x(this,"maxParams",3)}calculate(e,n,r){if(e.isError())return e;if(n.isError())return n;if(r.isError())return r;const i=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1,r.isArray()?r.getRowCount():1),a=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1,r.isArray()?r.getColumnCount():1),o=qe(i,a,e),s=qe(i,a,n),l=qe(i,a,r);return o.map((u,c,d)=>this._handleSingleText(u,c,d,s,l))}_handleSingleText(e,n,r,i,a){let o=i.get(n,r)||ii.create(),s=a.get(n,r)||ii.create();if(o.isError())return o;if(s.isError())return s;let l=e.getValue();if(e.isNull()&&(l=""),e.isBoolean()&&(l=l?"TRUE":"FALSE"),l=`${l}`,(o.isString()||o.isBoolean()||o.isNull())&&(o=o.convertToNumberObjectValue()),o.isError())return o;if((s.isString()||s.isBoolean()||s.isNull())&&(s=s.convertToNumberObjectValue()),s.isError())return s;const u=Math.floor(+o.getValue())-1,c=s.getValue();return u<0||c<0?I.create(D.VALUE):Xn.create(l.substring(u,u+c))}};U(ATe,"Mid");let fMt=ATe;const wTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e,I.create(D.NA)),o=qe(r,i,n,I.create(D.NA)),s=a.map((l,u,c)=>{let d=o.get(u,c);if(l.isError())return l;let h=l.getValue();if(l.isNull()&&(h=""),l.isBoolean()&&(h=h?"TRUE":"FALSE"),h+="",d.isString()&&(d=d.convertToNumberObjectValue()),d.isError())return d;const f=32767,m=Math.floor(+d.getValue());if(m<0||m>f/h.length)return I.create(D.VALUE);const g=h.repeat(m);return Xn.create(g)});return r===1&&i===1?s.get(0,0):s}};U(wTe,"Rept");let mMt=wTe;const gMt=U((t,e)=>Fi.format(t,e,{throws:!1}),"getFormatPreview"),DTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",2)}calculate(e,n){if(e.isError())return e;if(n.isError())return n;const r=Math.max(e.isArray()?e.getRowCount():1,n.isArray()?n.getRowCount():1),i=Math.max(e.isArray()?e.getColumnCount():1,n.isArray()?n.getColumnCount():1),a=qe(r,i,e),o=qe(r,i,n);return a.map((s,l,u)=>{if(s.isError())return s;let c=o.get(l,u)||Xn.create(" ");if(c.isError())return c;if(c.isBoolean())return I.create(D.VALUE);if(s.isBoolean())return s;let d=s.getValue();if(s.isNull()&&(d=0),s.isString()){if(!Kr(d))return s;d=Number(d)}c.isNull()&&(c=Xn.create(" "));const h=`${c.getValue()}`,f=gMt(h,d);return Xn.create(h===" "?f.trimEnd():f)})}};U(DTe,"Text");let pMt=DTe;const ITe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=!1,l=r??ee.create(1);l.isNull()&&(s=!0,l=ee.create(1));const u=!i,c=i??ee.create(0),d=a??ee.create(0),h=o??I.create(D.NA),f=Math.max(e.isArray()?e.getRowCount():1,l.isArray()?l.getRowCount():1,c.isArray()?c.getRowCount():1,d.isArray()?d.getRowCount():1,h.isArray()?h.getRowCount():1),m=Math.max(e.isArray()?e.getColumnCount():1,l.isArray()?l.getColumnCount():1,c.isArray()?c.getColumnCount():1,d.isArray()?d.getColumnCount():1,h.isArray()?h.getColumnCount():1),g=qe(f,m,e,I.create(D.NA)),p=qe(f,m,l,I.create(D.NA)),v=qe(f,m,c,I.create(D.NA)),_=qe(f,m,d,I.create(D.NA)),C=qe(f,m,h,I.create(D.NA)),S=this._getResultArray(g,n,p,v,_,C,s,u);return f===1&&m===1?S.get(0,0):S}_getResultArray(e,n,r,i,a,o,s,l){return e.map((u,c,d)=>{const h=r.get(c,d),f=i.get(c,d),m=a.get(c,d),g=o.get(c,d),p=this._checkVariantsError(u,h,f,m);if(p.isError())return p;const v=this._getStringValue(u),_=this._getDelimiterValue(n);if(_ instanceof I)return _;const C=this._getVariantsNumberFloorValue(h,f,m);if(C instanceof I)return C;const[S,b,y]=C;return S===0||b<0||b>1||y<0||y>1?I.create(D.VALUE):_.includes("")?S>0?Xn.create(v):Xn.create(""):!s&&Math.abs(S)>v.length?I.create(D.VALUE):_.every(A=>A.length>v.length)?I.create(D.NA):this._getResult(v,_,S,b,y,g,l)})}_checkVariantsError(...e){for(let n=0;n<e.length;n++){const r=e[n];if(r.isError())return r}return kn.create(!0)}_getStringValue(e){let n=`${e.getValue()}`;return e.isNull()&&(n=""),e.isBoolean()&&(n=n.toLocaleUpperCase()),n}_getDelimiterValue(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);if(e.iterator(a=>{const o=a;if(o.isError())return r=!0,i=o,!1;n.push(this._getStringValue(o))}),r)return i}else{if(e.isError())return e;n.push(this._getStringValue(e))}return n}_getVariantsNumberFloorValue(...e){const n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.isString()&&(i=i.convertToNumberObjectValue()),i.isError())return i;const a=Math.floor(+i.getValue());n.push(a)}return n}_getResult(e,n,r,i,a,o,s){let l=i?e.toLocaleLowerCase():e;const u=i?n.map(m=>m.toLocaleLowerCase()):n;let c=0,d=0,h=0;for(let m=0;m<Math.abs(r);m++)if(r<0){const g=u.map(p=>({index:l.lastIndexOf(p),length:p.length})).filter(p=>p.index!==-1).sort((p,v)=>v.index-p.index)[0];if(!g)break;c=g.index,l=l.substr(0,g.index),h=g.length,d++}else{const g=u.map(p=>({index:l.indexOf(p),length:p.length})).filter(p=>p.index!==-1).sort((p,v)=>p.index-v.index)[0];if(!g)break;c+=g.index+h,l=l.substr(g.index+g.length),h=g.length,d++}if(d&&d<Math.abs(r)&&s)return I.create(D.NA);if(!d||d<Math.abs(r))return a?r>0?Xn.create(""):Xn.create(e):o;const f=e.substr(c+h);return Xn.create(f)}};U(ITe,"Textafter");let vMt=ITe;const PTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=!1,l=r??ee.create(1);l.isNull()&&(s=!0,l=ee.create(1));const u=!i,c=i??ee.create(0),d=a??ee.create(0),h=o??I.create(D.NA),f=Math.max(e.isArray()?e.getRowCount():1,l.isArray()?l.getRowCount():1,c.isArray()?c.getRowCount():1,d.isArray()?d.getRowCount():1,h.isArray()?h.getRowCount():1),m=Math.max(e.isArray()?e.getColumnCount():1,l.isArray()?l.getColumnCount():1,c.isArray()?c.getColumnCount():1,d.isArray()?d.getColumnCount():1,h.isArray()?h.getColumnCount():1),g=qe(f,m,e,I.create(D.NA)),p=qe(f,m,l,I.create(D.NA)),v=qe(f,m,c,I.create(D.NA)),_=qe(f,m,d,I.create(D.NA)),C=qe(f,m,h,I.create(D.NA)),S=this._getResultArray(g,n,p,v,_,C,s,u);return f===1&&m===1?S.get(0,0):S}_getResultArray(e,n,r,i,a,o,s,l){return e.map((u,c,d)=>{const h=r.get(c,d),f=i.get(c,d),m=a.get(c,d),g=o.get(c,d),p=this._checkVariantsError(u,h,f,m);if(p.isError())return p;const v=this._getStringValue(u),_=this._getDelimiterValue(n);if(_ instanceof I)return _;const C=this._getVariantsNumberFloorValue(h,f,m);if(C instanceof I)return C;const[S,b,y]=C;return S===0||b<0||b>1||y<0||y>1?I.create(D.VALUE):_.includes("")?S>0?Xn.create(""):Xn.create(v):!s&&Math.abs(S)>v.length?I.create(D.VALUE):_.every(A=>A.length>v.length)?I.create(D.NA):this._getResult(v,_,S,b,y,g,l)})}_checkVariantsError(...e){for(let n=0;n<e.length;n++){const r=e[n];if(r.isError())return r}return kn.create(!0)}_getStringValue(e){let n=`${e.getValue()}`;return e.isNull()&&(n=""),e.isBoolean()&&(n=n.toLocaleUpperCase()),n}_getDelimiterValue(e){const n=[];if(e.isArray()){let r=!1,i=I.create(D.VALUE);if(e.iterator(a=>{const o=a;if(o.isError())return r=!0,i=o,!1;n.push(this._getStringValue(o))}),r)return i}else{if(e.isError())return e;n.push(this._getStringValue(e))}return n}_getVariantsNumberFloorValue(...e){const n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.isString()&&(i=i.convertToNumberObjectValue()),i.isError())return i;const a=Math.floor(+i.getValue());n.push(a)}return n}_getResult(e,n,r,i,a,o,s){let l=i?e.toLocaleLowerCase():e;const u=i?n.map(m=>m.toLocaleLowerCase()):n;let c=0,d=0,h=0;for(let m=0;m<Math.abs(r);m++)if(r<0){const g=u.map(p=>({index:l.lastIndexOf(p),length:p.length})).filter(p=>p.index!==-1).sort((p,v)=>v.index-p.index)[0];if(!g)break;c=g.index,l=l.substr(0,g.index),d++}else{const g=u.map(p=>({index:l.indexOf(p),length:p.length})).filter(p=>p.index!==-1).sort((p,v)=>p.index-v.index)[0];if(!g)break;c+=g.index+h,l=l.substr(g.index+g.length),h=g.length,d++}if(d&&d<Math.abs(r)&&s)return I.create(D.NA);if(!d||d<Math.abs(r))return a?r>0?Xn.create(e):Xn.create(""):o;const f=e.substr(0,c);return Xn.create(f)}};U(PTe,"Textbefore");let _Mt=PTe;const MTe=class extends be{constructor(){super(...arguments),x(this,"minParams",2),x(this,"maxParams",6)}calculate(e,n,r,i,a,o){let s=r??Xn.create("\\s");const l=i??ee.create(0),u=a??ee.create(0),c=o??Xn.create(D.NA),{_variant:d,values:h}=this._getStringValues(n),{_variant:f,values:m}=this._getStringValues(s,!1);s=f;const g=Math.max(e.isArray()?e.getRowCount():1,l.isArray()?l.getRowCount():1,u.isArray()?u.getRowCount():1),p=Math.max(e.isArray()?e.getColumnCount():1,l.isArray()?l.getColumnCount():1,u.isArray()?u.getColumnCount():1),v=qe(g,p,e,I.create(D.NA)),_=qe(g,p,l,I.create(D.NA)),C=qe(g,p,u,I.create(D.NA)),S=this._getResultArray(v,d,s,_,C,c,h,m);return g===1&&p===1?S.get(0,0):S.map(b=>b.get(0,0))}_getStringValues(e,n=!0){let r=e;const i=[];if(r.isArray())r.iterator(a=>{if(a!=null&&a.isError())return r=a,!1;if(a!=null&&a.isNull()&&n)return r=I.create(D.VALUE),!1;const o=this._getRegExpStringValue(a);if(o==="")return r=I.create(D.VALUE),!1;i.push(o)});else{r.isNull()&&n&&(r=I.create(D.VALUE));const a=this._getRegExpStringValue(r);a===""&&(r=I.create(D.VALUE)),i.push(a)}return{_variant:r,values:i}}_getResultArray(e,n,r,i,a,o,s,l){return e.map((u,c,d)=>{let h=i.get(c,d),f=a.get(c,d);const m=this._checkVariantsError(u,n,r,h,f);if(m.isError())return m;if(u.isNull())return I.create(D.VALUE);let g=o;if(g.isArray()){const S=g.getRowCount(),b=g.getColumnCount();if(S>1||b>1)return I.create(D.VALUE);g=g.get(0,0)}let p=`${u.getValue()}`;if(u.isBoolean()&&(p=p.toLocaleUpperCase()),h.isString()&&(h=h.convertToNumberObjectValue(),h.isError()))return h;const v=Math.floor(+h.getValue());if(f.isString()&&(f=f.convertToNumberObjectValue(),f.isError()))return f;const _=Math.floor(+f.getValue());if(_<0||_>1)return I.create(D.VALUE);let C=`${g.getValue()}`;return g.isBoolean()&&(C=C.toLocaleUpperCase()),this._getResult(p,s,l,v,_,C)})}_getResult(e,n,r,i,a,o){const s=new RegExp(r.join("|"),`g${a?"i":""}`),l=new RegExp(n.join("|"),`g${a?"i":""}`),u=e.split(s);let c=1,d=u.map(h=>{let f=h.split(l);return i&&(f=f.filter(m=>m!=="")),c=Math.max(c,f.length),f});return d=d.map(h=>{let f=h;return f.length<c&&(f=f.concat(new Array(c-f.length).fill(o))),f}),ni.createByArray(d)}_checkVariantsError(...e){for(let n=0;n<e.length;n++){const r=e[n];if(r.isError())return r}return kn.create(!0)}_getRegExpStringValue(e){let n=e.getValue();return e.isNull()&&(n="\\s"),e.isBoolean()&&(n=n?"TRUE":"FALSE"),n+="",this._escapeRegExp(n)}_escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}};U(MTe,"Textsplit");let CMt=MTe;const TTe=[[sMt,Cr.CONCAT],[lMt,Cr.CONCATENATE],[cMt,Cr.LEN],[dMt,Cr.LENB],[hMt,Cr.LOWER],[fMt,Cr.MID],[mMt,Cr.REPT],[pMt,Cr.TEXT],[vMt,Cr.TEXTAFTER],[_Mt,Cr.TEXTBEFORE],[CMt,Cr.TEXTSPLIT],[uMt,Cr.LEFTB]],LTe=[],xTe=[];var gR=(t=>(t.ENCODEURL="ENCODEURL",t.FILTERXML="FILTERXML",t.WEBSERVICE="WEBSERVICE",t))(gR||{});function OTe(t,e,n,r,i,a,o){const s=(o==null?void 0:o.f)||"",l=(o==null?void 0:o.si)||"",u=Ar(s),c=Rl(l),d=t.getValue(i,a),h=(d==null?void 0:d.f)||"",f=(d==null?void 0:d.si)||"";function m(){var g;if(Ar(h)&&Rl(f)){const p=(g=n.get(f))==null?void 0:g.f;p?r.set(f,p):r.set(f,h)}}U(m,"clearFormulaData"),u&&c?(f!==l&&m(),t.setValue(i,a,{f:s,si:l}),n.set(l,{f:s,r:i,c:a}),e.setValue(i,a,{f:s,si:l})):u&&!c?(h!==s&&m(),t.setValue(i,a,{f:s}),e.setValue(i,a,{f:s})):!u&&c?(f!==l&&m(),t.setValue(i,a,{f:"",si:l})):!u&&!c&&t.getValue(i,a)&&(m(),t.realDeleteValue(i,a),e.setValue(i,a,null))}U(OTe,"updateFormulaDataByCellValue");function NTe(t,e,n,r){const i=t==null?void 0:t.getValue(n,r);if(i==null)return!0;const{startRow:a,startColumn:o,endRow:s,endColumn:l}=i;for(let u=a;u<=s;u++)for(let c=o;c<=l;c++)e.realDeleteValue(u,c)}U(NTe,"clearArrayFormulaCellDataByCell");var SMt=Object.defineProperty,bMt=Object.getOwnPropertyDescriptor,yMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?bMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&SMt(e,n,i),i},"__decorateClass$m"),Mse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$m"),tk;let _d=(tk=class extends et{constructor(t,e){super(),x(this,"_formulaData",{}),x(this,"_arrayFormulaRange",{}),x(this,"_arrayFormulaCellData",{}),this._univerInstanceService=t,this._lexerTreeBuilder=e,this.initFormulaData()}dispose(){super.dispose(),this._formulaData={},this._arrayFormulaRange={},this._arrayFormulaCellData={}}clearPreviousArrayFormulaCellData(t){Object.keys(t).forEach(e=>{const n=t[e];if(n==null)return!0;Object.keys(n).forEach(r=>{var i,a,o,s;const l=n[r],u=(a=(i=this._arrayFormulaRange)==null?void 0:i[e])==null?void 0:a[r];if(u==null)return!0;let c=new Ct;((o=this._arrayFormulaCellData[e])==null?void 0:o[r])!=null&&(c=new Ct((s=this._arrayFormulaCellData[e])==null?void 0:s[r])),l.forValue((d,h)=>{var f;const m=(f=u==null?void 0:u[d])==null?void 0:f[h];if(m==null)return!0;const{startRow:g,startColumn:p,endRow:v,endColumn:_}=m;for(let C=g;C<=v;C++)for(let S=p;S<=_;S++)c.setValue(C,S,null)}),this._arrayFormulaCellData[e]&&(this._arrayFormulaCellData[e][r]=c.getData())})})}mergeArrayFormulaCellData(t){Object.keys(t).forEach(e=>{const n=t[e];if(n==null)return!0;this._arrayFormulaRange[e]==null&&(this._arrayFormulaRange[e]={}),this._arrayFormulaCellData[e]==null&&(this._arrayFormulaCellData[e]={}),Object.keys(n).forEach(r=>{var i,a;const o=n[r],s=new Ct((i=this._arrayFormulaRange[e])==null?void 0:i[r]),l=new Ct((a=this._arrayFormulaCellData[e])==null?void 0:a[r]);o.forValue((u,c)=>{const d=s==null?void 0:s.getValue(u,c);if(d==null)return!0;const{startRow:h,startColumn:f,endRow:m,endColumn:g}=d;for(let p=h;p<=m;p++)for(let v=f;v<=g;v++)l.setValue(p,v,null)}),o.forValue((u,c,d)=>{l.setValue(u,c,d)}),this._arrayFormulaCellData[e]&&(this._arrayFormulaCellData[e][r]=l.getData())})})}getFormulaData(){return this._formulaData}setFormulaData(t){this._formulaData=t}getArrayFormulaRange(){return this._arrayFormulaRange}setArrayFormulaRange(t){this._arrayFormulaRange=t}getArrayFormulaCellData(){return this._arrayFormulaCellData}setArrayFormulaCellData(t){this._arrayFormulaCellData=t}mergeArrayFormulaRange(t){Object.keys(t).forEach(e=>{const n=t[e];if(n==null)return!0;this._arrayFormulaRange[e]||(this._arrayFormulaRange[e]={}),Object.keys(n).forEach(r=>{var i;const a=new Ct(n[r]),o=new Ct((i=this._arrayFormulaRange[e])==null?void 0:i[r]);a.forValue((s,l,u)=>{o.setValue(s,l,u)}),this._arrayFormulaRange[e]&&(this._arrayFormulaRange[e][r]=o.getData())})})}mergeFormulaData(t){Object.keys(t).forEach(e=>{const n=t[e];if(n!==void 0){if(n===null){delete this._formulaData[e];return}this._formulaData[e]||(this._formulaData[e]={}),Object.keys(n).forEach(r=>{var i,a;const o=n[r];if(o===void 0)return;if(o===null){(i=this._formulaData[e])==null||delete i[r];return}const s=new Ct(o),l=new Ct(((a=this._formulaData[e])==null?void 0:a[r])||{});s.forValue((u,c,d)=>{d==null?l.realDeleteValue(u,c):l.setValue(u,c,d)}),this._formulaData[e][r]=l.clone()})}})}deleteArrayFormulaRange(t,e,n,r){var i;const a=(i=this._arrayFormulaRange[t])==null?void 0:i[e];if(a==null)return;const o=new Ct(a);o.getValue(n,r)&&(o.realDeleteValue(n,r),this._arrayFormulaRange[t]&&(this._arrayFormulaRange[t][e]=o.getData()))}initFormulaData(){if(this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).length===0)return;const t=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),e=t.getUnitId();this._formulaData[e]={},t.getSheets().forEach(n=>{const r=n.getCellMatrix(),i=n.getSheetId();QD(this._formulaData,e,i,r)})}getCalculateData(){const t=this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET),e={},n={};for(const r of t){const i=r.getUnitId(),a=r.getSheets(),o={},s={};for(const l of a){const u=l.getSheetId(),c=l.getConfig();o[u]={cellData:new Ct(c.cellData),rowCount:c.rowCount,columnCount:c.columnCount,rowData:c.rowData,columnData:c.columnData,defaultRowHeight:c.defaultRowHeight,defaultColumnWidth:c.defaultColumnWidth},s[l.getName()]=l.getSheetId()}e[i]=o,n[i]=s}return{allUnitData:e,unitSheetNameMap:n}}updateFormulaData(t,e,n){const r=new Ct(n),i=this.getFormulaIdMap(t,e),a=new Map,o=this._formulaData;o[t]==null&&(o[t]={});const s=o[t];s[e]==null&&(s[e]={});const l=new Ct(s[e]||{}),u=new Ct;return r.forValue((c,d,h)=>{OTe(l,u,i,a,c,d,h)}),l.forValue((c,d,h)=>{const f=(h==null?void 0:h.f)||"",m=(h==null?void 0:h.si)||"";if(Rl(m)){const g=i.get(m),p=a.get(m);if(g&&!Ar(f)){const v=g.f,_=d-g.c,C=c-g.r;l.setValue(c,d,{f:v,si:m,x:_,y:C}),u.setValue(c,d,{f:v,si:m,x:_,y:C})}else if(typeof p=="string"){const v=(h==null?void 0:h.x)||0,_=(h==null?void 0:h.y)||0,C=this._lexerTreeBuilder.moveFormulaRefOffset(p,v,_);a.set(m,{r:c,c:d,f:C}),l.setValue(c,d,{f:C,si:m}),u.setValue(c,d,{f:C,si:m})}else if(typeof p=="object"){const v=d-p.c,_=c-p.r;l.setValue(c,d,{f:p.f,si:m,x:v,y:_}),u.setValue(c,d,{f:p.f,si:m,x:v,y:_})}}}),u.clone()}updateArrayFormulaRange(t,e,n){var r;const i=(r=this._arrayFormulaRange[t])==null?void 0:r[e];if(!i)return;const a=new Ct(i);new Ct(n).forValue((o,s,l)=>{a.realDeleteValue(o,s)})}updateArrayFormulaCellData(t,e,n){var r,i;const a=(r=this._arrayFormulaRange[t])==null?void 0:r[e];if(!a)return;const o=new Ct(a),s=(i=this._arrayFormulaCellData[t])==null?void 0:i[e];if(!s)return;const l=new Ct(s);new Ct(n).forValue((u,c,d)=>{NTe(o,l,u,c)})}getFormulaItemBySId(t,e,n){const r=this._formulaData;if(r[n]==null)return null;const i=r[n];if((i==null?void 0:i[e])==null)return null;const a=new Ct(i[e]||{});let o=null;return a.forValue((s,l,u)=>{if(u==null)return!0;const{f:c,si:d,x:h=0,y:f=0}=u;if(d===t&&c.length>0&&h===0&&f===0)return o=u,!1}),o}getFormulaDataItem(t,e,n,r){var i,a,o,s;return(s=(o=(a=(i=this._formulaData)==null?void 0:i[r])==null?void 0:a[n])==null?void 0:o[t])==null?void 0:s[e]}getFormulaIdMap(t,e){const n=new Map,r=this._formulaData;if(r[t]==null)return n;const i=r[t];return(i==null?void 0:i[e])==null||new Ct(i[e]||{}).forValue((a,o,s)=>{const l=(s==null?void 0:s.f)||"",u=(s==null?void 0:s.si)||"",c=(s==null?void 0:s.x)||0,d=(s==null?void 0:s.y)||0;Ar(l)&&Rl(u)&&c===0&&d===0&&n.set(u,{f:l,r:a,c:o})}),n}getFormulaStringByCell(t,e,n,r){const i=this.getFormulaDataItem(t,e,n,r);if(i==null)return null;const{f:a,si:o,x:s=0,y:l=0}=i;if(o!=null&&(s!==0||l!==0)){let u="";if(a.length>0)u=a;else{const c=this.getFormulaItemBySId(o,n,r);if(c==null||c.f.length===0)return null;u=c.f}return u=this._lexerTreeBuilder.moveFormulaRefOffset(u,s,l),u}return Ar(a)?a:null}},U(tk,"FormulaDataModel"),tk);_d=yMt([Mse(0,Ce),Mse(1,se(Kl))],_d);function QD(t,e,n,r){const i=new Map,a=new Ct;r.forValue((s,l,u)=>{const c=(u==null?void 0:u.f)||"",d=(u==null?void 0:u.si)||"",h=Ar(c),f=Rl(d);h&&f?(a.setValue(s,l,{f:c,si:d}),i.set(d,{f:c,r:s,c:l})):h&&!f?a.setValue(s,l,{f:c}):!h&&f&&a.setValue(s,l,{f:"",si:d})}),a.forValue((s,l,u)=>{const c=(u==null?void 0:u.f)||"",d=(u==null?void 0:u.si)||"";if(Rl(d)&&!Ar(c)){const h=i.get(d);if(h){const f=h.f,m=l-h.c,g=s-h.r;a.setValue(s,l,{f,si:d,x:m,y:g})}else a.realDeleteValue(s,l)}}),t[e]||(t[e]={});const o=a.clone();return t[e][n]=o,{[e]:{[n]:o}}}U(QD,"initSheetFormulaData");const fp={id:"formula.mutation.set-array-formula-data",type:Se.MUTATION,handler:U((t,e)=>!0,"handler")},t4={id:"formula.mutation.set-formula-calculation-start",type:Se.MUTATION,handler:U(()=>!0,"handler")},KD={id:"formula.mutation.set-formula-calculation-stop",type:Se.MUTATION,handler:U(()=>!0,"handler")},ZD={id:"formula.mutation.set-formula-calculation-notification",type:Se.MUTATION,handler:U(()=>!0,"handler")},FS={id:"formula.mutation.set-formula-calculation-result",type:Se.MUTATION,handler:U(()=>!0,"handler")},Eg={id:"formula.mutation.set-formula-data",type:Se.MUTATION,handler:U((t,e)=>!0,"handler")},kTe=class extends et{constructor(){super(),x(this,"_definedNameMap",{}),x(this,"_update$",new Zt),x(this,"update$",this._update$.asObservable()),x(this,"_currentRange",{unitId:"",sheetId:"",range:{startRow:0,endRow:0,startColumn:0,endColumn:0}}),x(this,"_currentRange$",new Zt),x(this,"currentRange$",this._currentRange$.asObservable()),x(this,"_focusRange$",new Zt),x(this,"focusRange$",this._focusRange$.asObservable())}dispose(){this._definedNameMap={}}focusRange(e,n){const r=this.getValueById(e,n);r!=null&&this._focusRange$.next({...r,unitId:e})}setCurrentRange(e){this._currentRange=e,this._currentRange$.next(e)}getCurrentRange(){return this._currentRange}getCurrentRangeForString(){return Jo(this._currentRange.range)}registerDefinedNames(e,n){this._definedNameMap[e]=n,this._update()}registerDefinedName(e,n){this._definedNameMap[e]==null&&(this._definedNameMap[e]={}),this._definedNameMap[e][n.id]=n,this._update()}removeDefinedName(e,n){var r;(r=this._definedNameMap[e])==null||delete r[n],this._update()}removeUnitDefinedName(e){delete this._definedNameMap[e],this._update()}getDefinedNameMap(e){return this._definedNameMap[e]}getValueByName(e,n){var r;const i=this._definedNameMap[e];return i==null?null:(r=Array.from(Object.values(i)).filter(a=>a.name===n))==null?void 0:r[0]}getValueById(e,n){var r;return(r=this._definedNameMap[e])==null?void 0:r[n]}hasDefinedName(e){return this._definedNameMap[e]==null?!1:(Array.from(Object.values(this._definedNameMap[e])).length||0)!==0}_update(){this._update$.next(null)}};U(kTe,"DefinedNamesService");let EMt=kTe;const Dc=er("univer.formula.defined-names.service");var RMt=Object.defineProperty,AMt=Object.getOwnPropertyDescriptor,wMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?AMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&RMt(e,n,i),i},"__decorateClass$l"),DMt=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$l"),nk;let qz=(nk=class extends et{constructor(t){super(),x(this,"_unitData",{}),x(this,"_unitStylesData",{}),x(this,"_arrayFormulaCellData",{}),x(this,"_formulaData",{}),x(this,"_sheetNameMap",{}),x(this,"_forceCalculate",!1),x(this,"_dirtyRanges",[]),x(this,"_dirtyNameMap",{}),x(this,"_dirtyDefinedNameMap",{}),x(this,"_dirtyUnitFeatureMap",{}),x(this,"_dirtyUnitOtherFormulaMap",{}),x(this,"_excludedCell"),x(this,"_sheetIdToNameMap",{}),x(this,"_executeUnitId",""),x(this,"_executeSubUnitId",""),this._univerInstanceService=t}dispose(){this._unitData={},this._unitStylesData={},this._formulaData={},this._arrayFormulaCellData={},this._sheetNameMap={},this._dirtyRanges=[],this._dirtyNameMap={},this._dirtyDefinedNameMap={},this._dirtyUnitFeatureMap={},this._excludedCell={},this._sheetIdToNameMap={},this._dirtyUnitOtherFormulaMap={}}getExecuteUnitId(){return this._executeUnitId}getExecuteSubUnitId(){return this._executeSubUnitId}setExecuteUnitId(t){this._executeUnitId=t}setExecuteSubUnitId(t){this._executeSubUnitId=t}getExcludedRange(){return this._excludedCell}getUnitData(){return this._unitData}getUnitStylesData(){return this._unitStylesData}getFormulaData(){return this._formulaData}getArrayFormulaCellData(){return this._arrayFormulaCellData}getSheetNameMap(){return this._sheetNameMap}isForceCalculate(){return this._forceCalculate}getDirtyRanges(){return this._dirtyRanges}getDirtyNameMap(){return this._dirtyNameMap}getDirtyDefinedNameMap(){return this._dirtyDefinedNameMap}getDirtyUnitFeatureMap(){return this._dirtyUnitFeatureMap}getDirtyUnitOtherFormulaMap(){return this._dirtyUnitOtherFormulaMap}getSheetName(t,e){return this._sheetIdToNameMap[t]==null?"":this._sheetIdToNameMap[t][e]||""}load(t){if(t.allUnitData&&t.unitSheetNameMap&&t.unitStylesData)this._unitData=t.allUnitData,this._unitStylesData=t.unitStylesData,this._sheetNameMap=t.unitSheetNameMap;else{const{allUnitData:e,unitSheetNameMap:n,unitStylesData:r}=this._loadSheetData();this._unitData=e,this._unitStylesData=r,this._sheetNameMap=n}this._formulaData=t.formulaData,this._arrayFormulaCellData=JJ(t.arrayFormulaCellData),this._forceCalculate=t.forceCalculate,this._dirtyRanges=t.dirtyRanges,this._dirtyNameMap=t.dirtyNameMap,this._dirtyDefinedNameMap=t.dirtyDefinedNameMap,this._dirtyUnitFeatureMap=t.dirtyUnitFeatureMap,this._dirtyUnitOtherFormulaMap=t.dirtyUnitOtherFormulaMap,this._excludedCell=t.excludedCell,this._mergeNameMap(this._sheetNameMap,this._dirtyNameMap)}getDirtyData(){return{forceCalculation:this._forceCalculate,dirtyRanges:this._dirtyRanges,dirtyNameMap:this._dirtyNameMap,dirtyDefinedNameMap:this._dirtyDefinedNameMap,dirtyUnitFeatureMap:this._dirtyUnitFeatureMap,dirtyUnitOtherFormulaMap:this._dirtyUnitOtherFormulaMap}}loadDirtyRangesAndExcludedCell(t,e){this._dirtyRanges=t,this._excludedCell=e,this._dirtyNameMap={}}registerUnitData(t){this._unitData=t}registerFormulaData(t){this._formulaData=t}registerSheetNameMap(t){this._sheetNameMap=t}_mergeNameMap(t,e){Object.keys(e).forEach(n=>{e[n]&&Object.keys(e[n]).forEach(r=>{t[n]==null&&(t[n]={}),t[n][e[n][r]]=r})}),this._sheetIdToNameMap={},Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(r=>{this._sheetIdToNameMap[n]==null&&(this._sheetIdToNameMap[n]={}),this._sheetIdToNameMap[n][t[n][r]]=r})})}_loadSheetData(){const t=this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET),e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),n=e==null?void 0:e.getActiveSheet();this._executeUnitId=e==null?void 0:e.getUnitId(),this._executeSubUnitId=n==null?void 0:n.getSheetId();const r={},i={},a={};for(const o of t){const s=o.getUnitId(),l=o.getSheets(),u={},c={};for(const d of l){const h=d.getSheetId(),f=d.getConfig();u[h]={cellData:new Ct(f.cellData),rowCount:f.rowCount,columnCount:f.columnCount,rowData:f.rowData,columnData:f.columnData,defaultRowHeight:f.defaultRowHeight,defaultColumnWidth:f.defaultColumnWidth},c[d.getName()]=d.getSheetId()}r[s]=u,i[s]=o.getStyles(),a[s]=c}return{allUnitData:r,unitStylesData:i,unitSheetNameMap:a}}},U(nk,"FormulaCurrentConfigService"),nk);qz=wMt([DMt(0,Ce)],qz);const l2=er("univer.formula.current-data.service");var IMt=Object.defineProperty,PMt=Object.getOwnPropertyDescriptor,MMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?PMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&IMt(e,n,i),i},"__decorateClass$k"),rk=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$k"),ik;let t7=(ik=class extends et{constructor(t,e,n){super(),this._definedNamesService=t,this._lexerTreeBuilder=e,this._formulaCurrentConfigService=n}treeBuilder(t,e=!0){return this._lexerTreeBuilder.treeBuilder(t,e,this._injectDefinedName.bind(this),this._simpleCheckDefinedName.bind(this))}_simpleCheckDefinedName(t){const e=this._formulaCurrentConfigService.getDirtyDefinedNameMap(),n=this._formulaCurrentConfigService.getExecuteUnitId();if(n!=null&&e[n]!=null){const r=Object.keys(e[n]);for(let i=0,a=r.length;i<a;i++){const o=r[i];if(t.indexOf(o)>-1)return!0}}return!1}_checkDefinedNameDirty(t){const e=this._formulaCurrentConfigService.getDirtyDefinedNameMap(),n=this._formulaCurrentConfigService.getExecuteUnitId();if(n!=null&&e[n]!=null){const r=Object.keys(e[n]);for(let i=0,a=r.length;i<a;i++)if(r[i]===t)return!0}return!1}_injectDefinedName(t){const e=this._formulaCurrentConfigService.getExecuteUnitId();if(e==null)return{sequenceString:"",hasDefinedName:!1,definedNames:[]};const n=this._lexerTreeBuilder.getSequenceNode(t);let r="",i=!1;const a=[];for(let o=0,s=n.length;o<s;o++){const l=n[o];if(typeof l=="string"){r+=l;continue}const{nodeType:u,token:c}=l;if(u===ya.REFERENCE||u===ya.FUNCTION){const d=this._definedNamesService.getValueByName(e,c);if(d){let h=d.formulaOrRefString;h.substring(0,1)===di.EQUALS&&(h=h.substring(1)),r+=h,a.push(d.name),i=!0}else this._checkDefinedNameDirty(c)?(r+=D.NAME,i=!0,a.push(c)):r+=c}else r+=c}return{sequenceString:r,hasDefinedName:i,definedNames:a}}},U(ik,"Lexer"),ik);t7=MMt([rk(0,Dc),rk(1,se(Kl)),rk(2,l2)],t7);var TMt=Object.defineProperty,LMt=Object.getOwnPropertyDescriptor,xMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?LMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&TMt(e,n,i),i},"__decorateClass$j"),OMt=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$j"),Wc=(t=>(t[t.IDLE=0]="IDLE",t[t.START_DEPENDENCY=1]="START_DEPENDENCY",t[t.START_CALCULATION=2]="START_CALCULATION",t[t.CURRENTLY_CALCULATING=3]="CURRENTLY_CALCULATING",t[t.START_DEPENDENCY_ARRAY_FORMULA=4]="START_DEPENDENCY_ARRAY_FORMULA",t[t.START_CALCULATION_ARRAY_FORMULA=5]="START_CALCULATION_ARRAY_FORMULA",t[t.CURRENTLY_CALCULATING_ARRAY_FORMULA=6]="CURRENTLY_CALCULATING_ARRAY_FORMULA",t[t.CALCULATION_COMPLETED=7]="CALCULATION_COMPLETED",t))(Wc||{}),X1=(t=>(t[t.INITIAL=0]="INITIAL",t[t.STOP_EXECUTION=1]="STOP_EXECUTION",t[t.NOT_EXECUTED=2]="NOT_EXECUTED",t[t.SUCCESS=3]="SUCCESS",t))(X1||{}),ak;let Yz=(ak=class extends et{constructor(t){super(),x(this,"_formulaExecuteStage",0),x(this,"_stopState",!1),x(this,"_currentRow",-1),x(this,"_currentColumn",-1),x(this,"_currentRowCount",Number.NEGATIVE_INFINITY),x(this,"_currentColumnCount",Number.NEGATIVE_INFINITY),x(this,"_currentSubUnitId",""),x(this,"_currentUnitId",""),x(this,"_runtimeData",{}),x(this,"_runtimeOtherData",{}),x(this,"_unitArrayFormulaRange",{}),x(this,"_runtimeArrayFormulaCellData",{}),x(this,"_runtimeClearArrayFormulaCellData",{}),x(this,"_runtimeFeatureRange",{}),x(this,"_runtimeFeatureCellData",{}),x(this,"_functionsExecutedState",0),x(this,"_functionDefinitionPrivacyVar",new Map),x(this,"_totalFormulasToCalculate",0),x(this,"_completedFormulasCount",0),x(this,"_totalArrayFormulasToCalculate",0),x(this,"_completedArrayFormulasCount",0),x(this,"_formulaCycleIndex",0),x(this,"_isCycleDependency",!1),this._currentConfigService=t}get currentRow(){return this._currentRow}get currentColumn(){return this._currentColumn}get currentRowCount(){return this._currentRowCount}get currentColumnCount(){return this._currentColumnCount}get currentSubUnitId(){return this._currentSubUnitId}get currentUnitId(){return this._currentUnitId}dispose(){this.reset(),this._runtimeFeatureCellData={},this._runtimeFeatureRange={}}enableCycleDependency(){this._isCycleDependency=!0}disableCycleDependency(){this._isCycleDependency=!1}isCycleDependency(){return this._isCycleDependency}setTotalArrayFormulasToCalculate(t){this._totalArrayFormulasToCalculate=t}getTotalArrayFormulasToCalculate(){return this._totalArrayFormulasToCalculate}setCompletedArrayFormulasCount(t){this._completedArrayFormulasCount=t}getCompletedArrayFormulasCount(){return this._completedArrayFormulasCount}setTotalFormulasToCalculate(t){this._totalFormulasToCalculate=t}getTotalFormulasToCalculate(){return this._totalFormulasToCalculate}setCompletedFormulasCount(t){this._completedFormulasCount=t}getCompletedFormulasCount(){return this._completedFormulasCount}setFormulaCycleIndex(t){this._formulaCycleIndex=t}getFormulaCycleIndex(){return this._formulaCycleIndex}markedAsSuccessfullyExecuted(){this._functionsExecutedState=3}markedAsNoFunctionsExecuted(){this._functionsExecutedState=2}markedAsStopFunctionsExecuted(){this._functionsExecutedState=1}markedAsInitialFunctionsExecuted(){this._functionsExecutedState=0}stopExecution(){this._stopState=!0,this.setFormulaExecuteStage(0)}isStopExecution(){return this._stopState}setFormulaExecuteStage(t){this._formulaExecuteStage=t}getFormulaExecuteStage(){return this._formulaExecuteStage}reset(){this._formulaExecuteStage=0,this._runtimeData={},this._runtimeOtherData={},this._unitArrayFormulaRange={},this._runtimeArrayFormulaCellData={},this._runtimeClearArrayFormulaCellData={},this._functionDefinitionPrivacyVar.clear(),this.markedAsInitialFunctionsExecuted(),this._stopState=!1,this._isCycleDependency=!1,this._totalFormulasToCalculate=0,this._completedFormulasCount=0}setCurrent(t,e,n,r,i,a){this._currentRow=t,this._currentColumn=e,this._currentRowCount=n,this._currentColumnCount=r,this._currentSubUnitId=i,this._currentUnitId=a}clearFunctionDefinitionPrivacyVar(){this._functionDefinitionPrivacyVar.clear()}registerFunctionDefinitionPrivacyVar(t,e){this._functionDefinitionPrivacyVar.set(t,e)}getFunctionDefinitionPrivacyVar(t){return this._functionDefinitionPrivacyVar.get(t)}setRuntimeOtherData(t,e){const n=this._currentSubUnitId,r=this._currentUnitId;this._runtimeOtherData[r]===void 0&&(this._runtimeOtherData[r]={});const i=this._runtimeOtherData[r];i[n]===void 0&&(i[n]={});const a=i[n];let o=[];if(e.isReferenceObject()||e.isValueObject()&&e.isArray()){const s=e,{startRow:l,startColumn:u}=s.getRangePosition();s.iterator((c,d,h)=>{const f=Mm(c),m=d-l,g=h-u;o[m]==null&&(o[m]=[]),o[m][g]=f})}else o=[[Mm(e)]];a[t]=o}setRuntimeData(t){const e=this._currentRow,n=this._currentColumn,r=this._currentRowCount,i=this.currentColumnCount,a=this._currentSubUnitId,o=this._currentUnitId;this._runtimeData[o]==null&&(this._runtimeData[o]={});const s=this._runtimeData[o];s[a]==null&&(s[a]=new Ct),this._unitArrayFormulaRange[o]==null&&(this._unitArrayFormulaRange[o]={});const l=this._unitArrayFormulaRange[o];let u=new Ct;l[a]&&(u=new Ct(l[a])),this._runtimeArrayFormulaCellData[o]===void 0&&(this._runtimeArrayFormulaCellData[o]={});const c=this._runtimeArrayFormulaCellData[o];c[a]==null&&(c[a]=new Ct),this._runtimeClearArrayFormulaCellData[o]===void 0&&(this._runtimeClearArrayFormulaCellData[o]={});const d=this._runtimeClearArrayFormulaCellData[o];d[a]==null&&(d[a]=new Ct);const h=s[a],f=c[a],m=d[a];if(t.isReferenceObject()||t.isValueObject()&&t.isArray()){const g=t,{startRow:p,startColumn:v,endRow:_,endColumn:C}=g.getRangePosition();if(p===_&&v===C){const b=g.getFirstCell(),y=Mm(b);h.setValue(e,n,y),m.setValue(e,n,y);return}const S={startRow:e,startColumn:n,endRow:_-p+e,endColumn:C-v+n};if(u.setValue(e,n,S),l[a]=u.getData(),this._checkIfArrayFormulaRangeHasData(o,a,e,n,S)||this._checkIfArrayFormulaExceeded(r,i,S)){const b=Mm(I.create(D.SPILL));h.setValue(e,n,b),m.setValue(e,n,b);const y=this._currentConfigService.getUnitData();g.iterator((A,w,P)=>{var M,L;const k=w-p+e,O=P-v+n,$=(L=(M=y[o])==null?void 0:M[a])==null?void 0:L.cellData.getValue(k,O);w===p&&P===v?f.setValue(e,n,b):$!=null?($.v==null&&($.v=""),f.setValue(k,O,$)):f.setValue(k,O,{v:""})})}else{const b=I.create(D.SPILL);g.iterator((y,A,w)=>{const P=Mm(y);if(A===p&&w===v){if(y!=null&&y.isError()&&y.isEqualType(b))return m.setValue(e,n,{}),h.setValue(e,n,{...Mm(b)}),!1;h.setValue(e,n,{...P})}const M=A-p+e,L=w-v+n;f.setValue(M,L,P)})}}else{const g=Mm(t);h.setValue(e,n,g),m.setValue(e,n,g)}}getUnitData(){return this._runtimeData}getUnitArrayFormula(){return this._unitArrayFormulaRange}getRuntimeOtherData(){return this._runtimeOtherData}getRuntimeArrayFormulaCellData(){return this._runtimeArrayFormulaCellData}getRuntimeClearArrayFormulaCellData(){return this._runtimeClearArrayFormulaCellData}getRuntimeFeatureRange(){return this._runtimeFeatureRange}setRuntimeFeatureRange(t,e){this._runtimeFeatureRange[t]=e}getRuntimeFeatureCellData(){return this._runtimeFeatureCellData}setRuntimeFeatureCellData(t,e){this._runtimeFeatureCellData[t]=e}getAllRuntimeData(){return{unitData:this.getUnitData(),arrayFormulaRange:this.getUnitArrayFormula(),unitOtherData:this.getRuntimeOtherData(),functionsExecutedState:this._functionsExecutedState,arrayFormulaCellData:this.getRuntimeArrayFormulaCellData(),clearArrayFormulaCellData:this.getRuntimeClearArrayFormulaCellData(),runtimeFeatureRange:this.getRuntimeFeatureRange(),runtimeFeatureCellData:this.getRuntimeFeatureCellData()}}getRuntimeState(){return{totalFormulasToCalculate:this.getTotalFormulasToCalculate(),completedFormulasCount:this.getCompletedFormulasCount(),totalArrayFormulasToCalculate:this.getTotalArrayFormulasToCalculate(),completedArrayFormulasCount:this.getCompletedArrayFormulasCount(),stage:this.getFormulaExecuteStage(),formulaCycleIndex:this.getFormulaCycleIndex()}}_checkIfArrayFormulaRangeHasData(t,e,n,r,i){var a,o,s,l,u,c,d,h,f,m,g,p;const{startRow:v,startColumn:_,endRow:C,endColumn:S}=i,b=this._currentConfigService.getUnitData(),y=(s=(o=(a=this._unitArrayFormulaRange[t])==null?void 0:a[e])==null?void 0:o[n])==null?void 0:s[r];for(let A=v;A<=C;A++)for(let w=_;w<=S;w++){if(A===n&&r===w)continue;const P=(c=(u=(l=this._runtimeData)==null?void 0:l[t])==null?void 0:u[e])==null?void 0:c.getValue(A,w),M=(f=(h=(d=this._runtimeArrayFormulaCellData)==null?void 0:d[t])==null?void 0:h[e])==null?void 0:f.getValue(A,w),L=(p=(g=(m=b==null?void 0:b[t])==null?void 0:m[e])==null?void 0:g.cellData)==null?void 0:p.getValue(A,w),k=this._getRuntimeFeatureCellValue(A,w,e,t);if(!pg(P)||!pg(M)&&!this._isInArrayFormulaRange(y,A,w)||!pg(L)||!pg(k))return!0}return!1}_getRuntimeFeatureCellValue(t,e,n,r){return nee(t,e,n,r,this._runtimeFeatureCellData)}_isInArrayFormulaRange(t,e,n){if(t==null)return!1;const{startRow:r,startColumn:i,endRow:a,endColumn:o}=t;return e>=r&&e<=a&&n>=i&&n<=o}_checkIfArrayFormulaExceeded(t,e,n){return n.endRow>=t||n.endColumn>=e}_isInDirtyRange(t,e,n,r){const i=this._currentConfigService.getDirtyRanges();return i.length===0?!0:Gye(i,t,e,n,r)}},U(ak,"FormulaRuntimeService"),ak);Yz=xMt([OMt(0,l2)],Yz);const _h=er("univer.formula.runtime.service");var fi=(t=>(t.REFERENCE="ReferenceNode",t.VALUE="ValueNode",t.OPERATOR="OperatorNode",t.FUNCTION="FunctionNode",t.LAMBDA="LambdaNode",t.LAMBDA_PARAMETER="LambdaNodeParameter",t.ERROR="ErrorNode",t.BASE="Base",t.ROOT="Root",t.UNION="UnionNode",t.PREFIX="PrefixNode",t.SUFFIX="SuffixNode",t.NULL="NullNode",t))(fi||{});const Ch=new Map([["ReferenceNode",7],["ValueNode",9],["OperatorNode",8],["FunctionNode",6],["LambdaNode",1],["LambdaNodeParameter",2],["Root",10],["UnionNode",3],["PrefixNode",4],["SuffixNode",5]]),FTe=class extends et{constructor(e){super(),x(this,"_children",[]),x(this,"_definedNames",[]),x(this,"_parent"),x(this,"_valueObject"),x(this,"_calculateState",!1),x(this,"_async",!1),x(this,"_address",!1),x(this,"_refOffsetX",0),x(this,"_refOffsetY",0),this._token=e}dispose(){var e;this._children.forEach(n=>{n.dispose()}),(e=this._valueObject)==null||e.dispose(),this._parent=null}get nodeType(){return fi.BASE}isAsync(){return this._async}isAddress(){return this._address}setAsync(){this._async=!0}setAddress(){this._address=!0}getParent(){return this._parent}setParent(e){this._parent=e,e.addChildren(this)}getChildren(){return this._children}addChildren(...e){this._children.push(...e)}getToken(){return this._token}setValue(e){this._valueObject=e}getValue(){return this._valueObject}isCalculated(){return this._calculateState}setCalculated(){this._calculateState=!0}execute(){}setNotEmpty(e=!0){}setRefOffset(e=0,n=0){this._refOffsetX=e,this._refOffsetY=n}getRefOffset(){return{x:this._refOffsetX,y:this._refOffsetY}}async executeAsync(){return Promise.resolve(yg.SUCCESS)}serialize(){const e=this.getToken(),n=this.getChildren(),r=[],i=n.length;for(let o=0;o<i;o++){const s=n[o];r.push(s.serialize())}const a={token:e,nodeType:this.nodeType};return i>0&&(a.children=r),a}hasDefinedName(e){return this._definedNames.includes(e)}setDefinedNames(e){this._definedNames=e}};U(FTe,"BaseAstNode");let Ic=FTe;const VTe=class BTe extends Ic{constructor(e){super(e),x(this,"_errorValueObject"),this._errorValueObject=I.create(e)}get nodeType(){return fi.ERROR}static create(e){return new BTe(e)}getValue(){return this._errorValueObject}};U(VTe,"ErrorNode");let _l=VTe;const Sh=100,UTe=class extends et{get zIndex(){return 0}create(e,n,r){let i;return e instanceof Jr?i=e.getToken():i=e,new Ic(i)}};U(UTe,"BaseAstNodeFactory");let bh=UTe;const HTe=class extends Ic{get nodeType(){return fi.ROOT}execute(){const e=this.getChildren();if(e.length>1){this.setValue(I.create(D.VALUE));return}const n=e[0];n==null?this.setValue(I.create(D.VALUE)):this.setValue(n.getValue())}};U(HTe,"AstRootNode");let Xz=HTe;const jTe=class extends bh{get zIndex(){return Ch.get(fi.ROOT)||Sh}checkAndCreateNodeType(e){if(e instanceof Jr&&e.getToken()===f0)return new Xz(f0)}};U(jTe,"AstRootNodeFactory");let $Te=jTe;const Vu=er("univer.formula-function.service"),WTe=class extends et{constructor(){super(...arguments),x(this,"_functionExecutors",new Map),x(this,"_functionDescriptions",new Map)}dispose(){this._functionExecutors.clear(),this._functionDescriptions.clear()}registerExecutors(...e){for(let n=0;n<e.length;n++){const r=e[n];this._functionExecutors.set(r.name,r)}}getExecutors(){return this._functionExecutors}getExecutor(e){return this._functionExecutors.get(e)}hasExecutor(e){return this._functionExecutors.has(e)}unregisterExecutors(...e){for(let n=0;n<e.length;n++){const r=e[n];this._functionExecutors.delete(r)}}registerDescriptions(...e){for(let n=0;n<e.length;n++){const r=e[n];this._functionDescriptions.set(r.functionName,r)}return $t(()=>{for(let n=0;n<e.length;n++){const r=e[n];this._functionDescriptions.delete(r.functionName)}})}getDescriptions(){return this._functionDescriptions}getDescription(e){return this._functionDescriptions.get(e)}hasDescription(e){return this._functionDescriptions.has(e)}unregisterDescriptions(...e){for(let n=0;n<e.length;n++){const r=e[n];this._functionDescriptions.delete(r)}}};U(WTe,"FunctionService");let NMt=WTe;var kMt=Object.defineProperty,FMt=Object.getOwnPropertyDescriptor,VMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?FMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kMt(e,n,i),i},"__decorateClass$i"),Tse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i");const zTe=class extends Ic{constructor(e,n,r){super(n),this._accessor=e,this._operatorString=n,this._functionExecutor=r}get nodeType(){return fi.PREFIX}execute(){let e=this.getChildren()[0].getValue(),n;if(e==null)throw new Error("object is null");e.isReferenceObject()&&(e=e.toArrayValueObject()),this._operatorString===zo.MINUS?n=this._functionExecutor.calculate(ee.create(0),e):this._operatorString===zo.AT?n=this._handlerAT(e):n=I.create(D.VALUE),this.setValue(n)}_handlerAT(e){if(!e.isReferenceObject())return I.create(D.VALUE);const n=e;if(n.isCell())return I.create(D.VALUE);const r=this._accessor.get(_h),i=r.currentRow||0,a=r.currentColumn||0;return n.isRow()?n.getCellByColumn(a):n.isColumn()?n.getCellByRow(i):n.isRange()||n.isTable()?n.getCellByPosition():I.create(D.VALUE)}};U(zTe,"PrefixNode");let JD=zTe;var ok;let eI=(ok=class extends bh{constructor(t,e){super(),this._functionService=t,this._injector=e}get zIndex(){return Ch.get(fi.PREFIX)||Sh}checkAndCreateNodeType(t){if(!(t instanceof Jr))return;const e=t.getToken(),n=e.trim();if(n.charAt(0)==='"'&&n.charAt(n.length-1)==='"')return;let r="";if(n===zo.MINUS)r=pl.MINUS;else return n===zo.AT?new JD(this._injector,n):void 0;const i=this._functionService.getExecutor(r);return i?new JD(this._injector,n,i):(console.error(`No function ${e}`),_l.create(D.NAME))}},U(ok,"PrefixNodeFactory"),ok);eI=VMt([Tse(0,Vu),Tse(1,se(Wn))],eI);function Dee(t,e,n){let r,i;const a=t.slice(0,2);let o=0;if(new RegExp(zo.MINUS,"g").test(a)){const s=e.getExecutor(pl.MINUS);r=new JD(n,zo.MINUS,s),o++}return new RegExp(zo.AT,"g").test(a)&&(i=new JD(n,zo.AT),r&&i.setParent(r),o++),o>0&&(t=t.slice(o)),{tokenTrim:t,minusPrefixNode:r,atPrefixNode:i}}U(Dee,"prefixHandler");var BMt=Object.defineProperty,UMt=Object.getOwnPropertyDescriptor,HMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?UMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&BMt(e,n,i),i},"__decorateClass$h"),Y9=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h");const qTe=class extends Ic{constructor(e,n,r,i,a){super(e),this._functionExecutor=n,this._currentConfigService=r,this._runtimeService=i,this._definedNamesService=a,this._functionExecutor.isAsync()&&this.setAsync(),this._functionExecutor.isAddress()&&this.setAddress()}get nodeType(){return fi.FUNCTION}async executeAsync(){const e=[],n=this.getChildren(),r=n.length;this._compatibility();for(let o=0;o<r;o++){const s=n[o].getValue();s!=null&&(s.isReferenceObject()&&!this._functionExecutor.needsReferenceObject?e.push(s.toArrayValueObject()):e.push(s))}const i=this._calculate(e);let a;return i.isAsyncObject()||i.isAsyncArrayObject()?a=await i.getValue():a=i,this._setRefData(a),this.setValue(a),Promise.resolve(yg.SUCCESS)}execute(){const e=[],n=this.getChildren(),r=n.length;this._compatibility();for(let a=0;a<r;a++){const o=n[a].getValue();o!=null&&(o.isReferenceObject()&&!this._functionExecutor.needsReferenceObject?e.push(o.toArrayValueObject()):e.push(o))}const i=this._calculate(e);this._setRefData(i),this.setValue(i)}_compatibility(){this._lookupCompatibility()}_lookupCompatibility(){const e=this.getChildren(),n=e.length;if(!this._functionExecutor.needsExpandParams||n!==3)return;const r=e[1].getValue(),i=e[2].getValue();if(!(r!=null&&r.isReferenceObject())&&!(i!=null&&i.isReferenceObject()))return;const a=r.getRangeData(),o=i.getRangeData(),{startRow:s,startColumn:l,endRow:u,endColumn:c}=a,d=u-s+1,h=c-l+1,{startRow:f,startColumn:m,endRow:g,endColumn:p}=o,v=g-f+1,_=p-m+1;d!==v&&(o.endRow+=d-v),h!==_&&(o.endColumn+=h-_)}_calculate(e){var n;const{minParams:r,maxParams:i}=this._functionExecutor;if(r!==-1&&i!==-1&&(e.length<r||e.length>i))return I.create(D.NA);let a;if(this._setRefInfo(),this._functionExecutor.isCustom()){const o=this._functionExecutor.calculateCustom(...e.map(s=>s.isArray()?s.toValue():s.getValue()));if(typeof o!="object"||o==null)a=cp.create(o);else{const s=uee(o);a=ni.create({calculateValueList:s,rowCount:s.length,columnCount:((n=s[0])==null?void 0:n.length)||0,unitId:"",sheetId:"",row:-1,column:-1})}}else this._functionExecutor.isAddress()&&this._setDefinedNamesForFunction(),a=this._functionExecutor.calculate(...e);return a}_setDefinedNamesForFunction(){const e=this._currentConfigService.getExecuteUnitId();if(e==null)return;const n=this._definedNamesService.getDefinedNameMap(e);n!=null&&this._functionExecutor.setDefinedNames(n)}_setRefInfo(){const{currentUnitId:e,currentSubUnitId:n,currentRow:r,currentColumn:i}=this._runtimeService;this._functionExecutor.setRefInfo(e,n,r,i)}_setRefData(e){if(!e.isReferenceObject())return;const n=e;n.setForcedSheetId(this._currentConfigService.getSheetNameMap()),n.setUnitData(this._currentConfigService.getUnitData()),n.setArrayFormulaCellData(this._currentConfigService.getArrayFormulaCellData()),n.setRuntimeData(this._runtimeService.getUnitData()),n.setRuntimeArrayFormulaCellData(this._runtimeService.getRuntimeArrayFormulaCellData()),n.setRuntimeFeatureCellData(this._runtimeService.getRuntimeFeatureCellData())}};U(qTe,"FunctionNode");let jMt=qTe;var sk;let tI=(sk=class extends bh{constructor(t,e,n,r,i){super(),this._functionService=t,this._currentConfigService=e,this._runtimeService=n,this._definedNamesService=r,this._injector=i}get zIndex(){return Ch.get(fi.FUNCTION)||Sh}create(t){const e=this._functionService.getExecutor(t);return e?new jMt(t,e,this._currentConfigService,this._runtimeService,this._definedNamesService):(console.error(`No function ${t}`),_l.create(D.NAME))}checkAndCreateNodeType(t){if(typeof t=="string")return;const e=t.getToken(),{tokenTrim:n,minusPrefixNode:r,atPrefixNode:i}=Dee(e.trim(),this._functionService,this._injector);if(!Number.isNaN(Number(n))&&!this._isParentUnionNode(t))return _l.create(D.VALUE);const a=n.toUpperCase();if(this._functionService.hasExecutor(a)){const o=this.create(a);return i?o.setParent(i):r&&o.setParent(r),o}}_isParentUnionNode(t){var e,n;return((n=(e=t.getParent())==null?void 0:e.getParent())==null?void 0:n.getToken())===mr.COLON}},U(sk,"FunctionNodeFactory"),sk);tI=HMt([Y9(0,Vu),Y9(1,l2),Y9(2,_h),Y9(3,Dc),Y9(4,se(Wn))],tI);var $Mt=Object.defineProperty,WMt=Object.getOwnPropertyDescriptor,zMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?WMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&$Mt(e,n,i),i},"__decorateClass$g"),qMt=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g"),lk;let n7=(lk=class extends et{constructor(t){super(),this._runtimeService=t}async executeAsync(t){if(!t)return I.create(D.VALUE);await this._executeAsync(t);const e=t.getValue();if(e==null)throw new Error("node value is null");return Promise.resolve(e)}execute(t){if(!t)return I.create(D.VALUE);this._execute(t);const e=t.getValue();if(e==null)throw new Error("node value is null");return e}executePreCalculateNode(t){return t.execute(),t.getValue()}checkAsyncNode(t){const e=[];this._checkAsyncNode(t,e);for(let n=0,r=e.length;n<r;n++)if(e[n]===!0)return!0;return!1}_checkAsyncNode(t,e){const n=t.getChildren(),r=n.length;for(let i=0;i<r;i++){const a=n[i];e.push(a.isAsync()),this._checkAsyncNode(a,e)}}async _executeAsync(t){if(this._runtimeService.isStopExecution())return Promise.resolve(yg.ERROR);const e=t.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];if(i.getToken().toUpperCase()===R_&&i.isEmptyParamFunction()){i.execute();continue}await this._executeAsync(i)}return t.nodeType===fi.FUNCTION&&t.isAsync()?await t.executeAsync():t.execute(),Promise.resolve(yg.SUCCESS)}_execute(t){if(this._runtimeService.isStopExecution())return yg.ERROR;const e=t.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];if(i.getToken().toUpperCase()===R_&&i.isEmptyParamFunction()){i.execute();continue}this._execute(i)}return t.execute(),yg.SUCCESS}},U(lk,"Interpreter"),lk);n7=zMt([qMt(0,_h)],n7);function Iee(t){return t instanceof Jr?t.getToken()===Q4:!1}U(Iee,"isFirstChildParameter");function YTe(t){return t instanceof Jr?t.getToken()===eEe:!1}U(YTe,"isChildRunTimeParameter");function Pee(t){if(!t)return;if(t.getToken()!==bS)return t;const e=t,n=e.getCurrentLambdaPrivacyVar(),r=e.getLambdaParameter();if(!n)return;const i=n.get(r);return i==null&&t.getValue()?t:Pee(i)}U(Pee,"getRootLexerHasValueNode");const XTe=class GTe extends o2{constructor(e,n,r){super(0),x(this,"_lambdaPrivacyValueMap",new Map),this._lambdaNode=e,this._interpreter=n,this._lambdaPrivacyVarKeys=r,this._lambdaPrivacyValueMap.clear()}static create(e,n,r){return new GTe(e,n,r)}isLambda(){return!0}execute(...e){const n=this._lambdaPrivacyVarKeys.length;if(e.length!==n)return I.create(D.VALUE);this._setLambdaPrivacyValueMap(e),this._setLambdaNodeValue(this._lambdaNode),this._lambdaNode.setNotEmpty(!1);let r;if(this._interpreter.checkAsyncNode(this._lambdaNode))r=new vRt(this._interpreter.executeAsync(this._lambdaNode));else{const i=this._interpreter.execute(this._lambdaNode);i.isReferenceObject()?r=i.toArrayValueObject():r=i}return this._lambdaNode.setNotEmpty(!0),r}_setLambdaNodeValue(e){const n=e.getChildren(),r=n.length;for(let i=0;i<r;i++){const a=n[i];if(a.getToken()===bS){const o=a.getLambdaParameter(),s=this._lambdaPrivacyValueMap.get(o);if(s)a.setValue(s);else{const l=a.getCurrentLambdaPrivacyVar(),u=Pee(l.get(o));u!=null&&a.setValue(u.getValue())}continue}this._setLambdaNodeValue(a)}}_setLambdaPrivacyValueMap(e){for(let n=0;n<e.length;n++){const r=e[n],i=this._lambdaPrivacyVarKeys[n];this._lambdaPrivacyValueMap.set(i,r)}}getLambdaPrivacyVarKeys(){return this._lambdaPrivacyVarKeys}};U(XTe,"LambdaValueObjectObject");let YMt=XTe;var XMt=Object.defineProperty,GMt=Object.getOwnPropertyDescriptor,QMt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?GMt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&XMt(e,n,i),i},"__decorateClass$f"),Lse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f");const QTe=class extends Ic{constructor(e,n,r,i){super(e),x(this,"_isNotEmpty",!0),this._lambdaId=n,this._interpreter=r,this._lambdaPrivacyVarKeys=i}get nodeType(){return fi.LAMBDA}setNotEmpty(e=!1){this._isNotEmpty=e}isEmptyParamFunction(){return this.getChildren().length<2&&this._isNotEmpty}isFunctionParameter(){return this._lambdaId===null}getLambdaId(){return this._lambdaId}execute(){if(this.isEmptyParamFunction())this.setValue(YMt.create(this,this._interpreter,this._lambdaPrivacyVarKeys));else{const e=this.getChildren(),n=e.length;this.setValue(e[n-1].getValue())}}};U(QTe,"LambdaNode");let KMt=QTe;var uk;let nI=(uk=class extends bh{constructor(t,e){super(),this._runtimeService=t,this._interpreter=e}get zIndex(){return Ch.get(fi.LAMBDA)||Sh}create(t){const e=t.getChildren(),n=e[0];let r=e.slice(1,-1);const i=e[e.length-1];if(!(n instanceof Jr&&i instanceof Jr))return _l.create(D.NAME);if(n.getToken()===Q4){const s=n.getChildren();if(r.length!==s.length)return _l.create(D.VALUE)}else r=e.slice(0,-1);const a=Ie.generateRandomId(8),o=new Map;for(let s=0;s<r.length;s++){const l=r[s];if(l instanceof Jr){const u=l.getChildren()[0];l.setToken(eEe),o.set(u.trim(),void 0)}else return _l.create(D.VALUE)}return this._runtimeService.registerFunctionDefinitionPrivacyVar(a,o),this._updateLambdaStatement(i,a,o),new KMt(t.getToken(),a,this._interpreter,[...o.keys()])}checkAndCreateNodeType(t){if(!(!(t instanceof Jr)||t.getToken().trim().toUpperCase()!==R_))return this.create(t)}_updateLambdaStatement(t,e,n){this._updateTree(t,e,n)}_updateTree(t,e,n){const r=t.getChildren(),i=r.length,a=r[0];for(let o=0;o<i;o++){const s=r[o];if(!(Iee(a)&&o!==0))if(s instanceof Jr)this._updateTree(s,e,n);else{const l=s.trim();if(n.has(l)){const u=new Jr;u.setToken(bS),u.setLambdaId(e),u.setLambdaPrivacyVar(n),u.setLambdaParameter(l),r[o]=u}}}}},U(uk,"LambdaNodeFactory"),uk);nI=QMt([Lse(0,_h),Lse(1,se(n7))],nI);function Mee(t){if(!t)return;if(t.getToken()!==bS)return t;const e=t,n=e.getCurrentLambdaPrivacyVar(),r=e.getLambdaParameter();if(n)return Mee(n.get(r))}U(Mee,"getRootLexerNode");const KTe=class extends Ic{constructor(e,n,r){super(e),this._lambdaParameter=n,this._currentLambdaPrivacyVar=r}getLambdaParameter(){return this._lambdaParameter}getCurrentLambdaPrivacyVar(){return this._currentLambdaPrivacyVar}get nodeType(){return fi.LAMBDA_PARAMETER}execute(){const e=Mee(this._currentLambdaPrivacyVar.get(this._lambdaParameter));if(e)this.setValue(e.getValue());else{const n=this.getValue();(n==null||n.isError())&&this.setValue(I.create(D.SPILL))}}};U(KTe,"LambdaParameterNode");let ZMt=KTe;const ZTe=class extends bh{get zIndex(){return Ch.get(fi.LAMBDA_PARAMETER)||Sh}create(e){const n=e.getFunctionDefinitionPrivacyVar(),r=e.getLambdaParameter();return n?new ZMt(e.getToken(),r,n):new _l(D.SPILL)}checkAndCreateNodeType(e){if(!(!(e instanceof Jr)||e.getToken().trim()!==bS))return this.create(e)}};U(ZTe,"LambdaParameterNodeFactory");let JTe=ZTe;const eLe=class extends Ic{constructor(e){super(e),this._operatorString=e}get nodeType(){return fi.NULL}execute(){this.setValue(ii.create())}};U(eLe,"NullNode");let JMt=eLe;var eTt=Object.defineProperty,tTt=Object.getOwnPropertyDescriptor,nTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?tTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&eTt(e,n,i),i},"__decorateClass$e"),rTt=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e");const tLe=class extends Ic{constructor(e,n){super(e),this._operatorString=e,this._functionExecutor=n}get nodeType(){return fi.OPERATOR}execute(){var e,n;const r=this.getChildren();this._functionExecutor.name===pl.COMPARE&&this._functionExecutor.setCompareType(this.getToken());let i=(e=r[0])==null?void 0:e.getValue(),a=(n=r[1])==null?void 0:n.getValue();const o=this.getToken();if((i==null||a==null)&&o!==di.MINUS&&o!==di.PLUS){this.setValue(I.create(D.VALUE));return}i==null&&(i=ii.create()),a==null&&(a=ii.create()),i.isReferenceObject()&&(i=i.toArrayValueObject()),a.isReferenceObject()&&(a=a.toArrayValueObject()),this.setValue(this._functionExecutor.calculate(i,a))}};U(tLe,"OperatorNode");let iTt=tLe;var ck;let rI=(ck=class extends bh{constructor(t){super(),this._functionService=t}get zIndex(){return Ch.get(fi.OPERATOR)||Sh}create(t){let e="";const n=t;n===di.PLUS?e=pl.PLUS:n===di.MINUS?e=pl.MINUS:n===di.MULTIPLY?e=pl.MULTIPLY:n===di.DIVIDED?e=pl.DIVIDED:n===di.CONCATENATE?e=Cr.CONCATENATE:n===di.POWER?e=mt.POWER:GEt.has(n)&&(e=pl.COMPARE);const r=this._functionService.getExecutor(e);return r?new iTt(n,r):(console.error(`No function ${t}`),_l.create(D.NAME))}checkAndCreateNodeType(t){if(t instanceof Jr)return;const e=t.trim();if(!(e.charAt(0)==='"'&&e.charAt(e.length-1)==='"')&&Pm.has(e))return this.create(e)}},U(ck,"OperatorNodeFactory"),ck);rI=nTt([rTt(0,Vu)],rI);const nLe=class extends et{constructor(){super(...arguments),x(this,"_tableMap",new Map),x(this,"_tableOptionMap",new Map)}dispose(){this._tableMap.clear(),this._tableOptionMap.clear()}remove(e,n){var r;(r=this._tableMap.get(e))==null||r.delete(n)}getTableMap(e){return this._tableMap.get(e)}getTableOptionMap(){return this._tableOptionMap}registerTable(e,n,r){var i;this._tableMap.get(e)==null&&this._tableMap.set(e,new Map),(i=this._tableMap.get(e))==null||i.set(n,r)}registerTableOptionMap(e,n){this._tableOptionMap.set(e,n)}};U(nLe,"SuperTableService");let aTt=nLe;const Tee=er("univer.formula.super-table.service"),rLe=class extends PS{constructor(e,n,r,i){super(e),this._tableData=n,this._columnDataString=r;const a=this._tableData.sheetId,o=this._tableData.range,s=this._tableData.titleMap;this.setForcedSheetIdDirect(a);const l=this._stringToColumnData(this._columnDataString,s,i),u=l.startColumn,c=l.endColumn,d=l.type;let h=-1,f=-1;const m=o.startRow,g=o.startColumn;d===ag.ALL?(h=m,f=g):d===ag.DATA?(h=m+1,f=g):d===ag.HEADERS?(h=m,f=m):d===ag.TOTALS&&(h=g,f=g),this.setRangeData({startColumn:u,endColumn:c,startRow:h,endRow:f})}isTable(){return!0}_stringToColumnData(e,n,r){e=e.substring(1,-1);const i=e.indexOf(mr.COMMA);let a=-1,o=-1,s=ag.ALL;if(i===-1){const l=this._columnHandler(e,n);a=l.startColumn,o=l.endColumn}else{const l=e.substring(0,i).substring(1,-1),u=e.substring(i+1),c=this._columnHandler(u,n,!0);a=c.startColumn,o=c.endColumn,s=r.get(l),s||(s=ag.ALL)}return{startColumn:a,endColumn:o,type:s}}_columnHandler(e,n,r=!1){var i,a,o;let s=-1,l=-1;const u=e.indexOf(mr.COLON);if(new RegExp(lEe,"g").test(e)){const c=e.substring(0,u).substring(1,-1),d=e.substring(u+1).substring(1,-1);s=(i=n.get(c))!=null?i:-1,l=(a=n.get(d))!=null?a:-1}else r&&(e=e.substring(1,-1)),s=(o=n.get(e))!=null?o:-1,l=s;return{startColumn:s,endColumn:l}}};U(rLe,"TableReferenceObject");let oTt=rLe;var sTt=Object.defineProperty,lTt=Object.getOwnPropertyDescriptor,uTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?lTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&sTt(e,n,i),i},"__decorateClass$d"),Ry=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d");const iLe=class extends Ic{constructor(e,n,r,i=!1){super(n),this._accessor=e,this._operatorString=n,this._referenceObject=r,this._isPrepareMerge=i}get nodeType(){return fi.REFERENCE}execute(){const e=this._accessor.get(l2),n=this._accessor.get(_h);this._referenceObject.setDefaultUnitId(n.currentUnitId),this._referenceObject.setDefaultSheetId(n.currentSubUnitId),this._referenceObject.setForcedSheetId(e.getSheetNameMap()),this._referenceObject.setUnitData(e.getUnitData()),this._referenceObject.setArrayFormulaCellData(e.getArrayFormulaCellData()),this._referenceObject.setRuntimeData(n.getUnitData()),this._referenceObject.setUnitStylesData(e.getUnitStylesData()),this._referenceObject.setRuntimeArrayFormulaCellData(n.getRuntimeArrayFormulaCellData()),this._referenceObject.setRuntimeFeatureCellData(n.getRuntimeFeatureCellData());const{x:r,y:i}=this.getRefOffset();this._referenceObject.setRefOffset(r,i),!this._isPrepareMerge&&this._referenceObject.isExceedRange()?this.setValue(I.create(D.NAME)):this.setValue(this._referenceObject)}};U(iLe,"ReferenceNode");let Ay=iLe;var dk;let iI=(dk=class extends bh{constructor(t,e,n,r){super(),this._superTableService=t,this._formulaRuntimeService=e,this._functionService=n,this._injector=r}get zIndex(){return Ch.get(fi.REFERENCE)||Sh}checkAndCreateNodeType(t){var e,n;let r=!1,i,a=!1;t instanceof Jr?(r=!0,i=t.getToken().trim(),((n=(e=t.getParent())==null?void 0:e.getParent())==null?void 0:n.getToken().trim())===mr.COLON&&(a=!0)):i=t.trim();const{tokenTrim:o,minusPrefixNode:s,atPrefixNode:l}=Dee(i,this._functionService,this._injector);if(!r&&o.charAt(0)==='"'&&o.charAt(o.length-1)==='"')return;let u;if(new RegExp(yS).test(o))u=new Ay(this._injector,o,new cee(o),a);else if(r&&this._checkParentIsUnionOperator(t))new RegExp(oEe).test(o)?u=new Ay(this._injector,o,new hee(o),a):new RegExp(sEe).test(o)&&(u=new Ay(this._injector,o,new dee(o),a));else{const c=this._formulaRuntimeService.currentUnitId,d=this._superTableService.getTableMap(c),h=new RegExp(lEe,"g"),f=o.replace(h,"");if(!r&&d!=null&&d.has(f)){const m=h.exec(o);let g="";m&&(g=m[0]);const p=d.get(f),v=this._superTableService.getTableOptionMap();u=new Ay(this._injector,o,new oTt(o,p,g,v))}}if(u)return l?u.setParent(l):s&&u.setParent(s),u}_checkParentIsUnionOperator(t){var e,n;return((n=(e=t.getParent())==null?void 0:e.getParent())==null?void 0:n.getToken().trim())===mr.COLON}},U(dk,"ReferenceNodeFactory"),dk);iI=uTt([Ry(0,Tee),Ry(1,_h),Ry(2,Vu),Ry(3,se(Wn))],iI);var cTt=Object.defineProperty,dTt=Object.getOwnPropertyDescriptor,hTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?dTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&cTt(e,n,i),i},"__decorateClass$c"),xse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c");const aLe=class extends Ic{constructor(e,n,r){super(n),this._accessor=e,this._operatorString=n,this._functionExecutor=r}get nodeType(){return fi.SUFFIX}execute(){let e=this.getChildren()[0].getValue(),n;if(e==null)throw new Error("object is null");if(this._operatorString===ch.PERCENTAGE){if(e.isReferenceObject()&&(e=e.toArrayValueObject()),n=this._functionExecutor.calculate(e,ee.create(100)),n.isNumber()){const r=Number(n.getValue());n=ee.create(r,"0.00%")}}else this._operatorString===ch.POUND?n=this._handlerPound(e):n=I.create(D.VALUE);this.setValue(n)}_handlerPound(e){var n,r,i,a;if(!e.isReferenceObject()||!e.isCell())return I.create(D.VALUE);const o=this._accessor.get(l2),s=this._accessor.get(t7),l=e,u=l.getRangePosition(),c=l.getUnitId(),d=l.getSheetId(),h=o.getFormulaData(),f=(a=(i=(r=(n=h==null?void 0:h[c])==null?void 0:n[d])==null?void 0:r[u.startRow])==null?void 0:i[u.startColumn])==null?void 0:a.f;return f&&s.treeBuilder(f),I.create(D.VALUE)}};U(aLe,"SuffixNode");let Ose=aLe;var hk;let aI=(hk=class extends bh{constructor(t,e){super(),this._functionService=t,this._injector=e}get zIndex(){return Ch.get(fi.SUFFIX)||Sh}checkAndCreateNodeType(t){if(!(t instanceof Jr))return;const e=t.getToken().trim();if(e.charAt(0)==='"'&&e.charAt(e.length-1)==='"')return;let n="";if(e===ch.PERCENTAGE)n=pl.DIVIDED;else return e===ch.POUND?new Ose(this._injector,e):void 0;const r=this._functionService.getExecutor(n);return r?new Ose(this._injector,e,r):(console.error(`No function ${t}`),_l.create(D.NAME))}},U(hk,"SuffixNodeFactory"),hk);aI=hTt([xse(0,Vu),xse(1,se(Wn))],aI);var fTt=Object.defineProperty,mTt=Object.getOwnPropertyDescriptor,gTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?mTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fTt(e,n,i),i},"__decorateClass$b"),pTt=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b");const oLe=class extends Ic{constructor(e){super(e),this._operatorString=e}get nodeType(){return fi.UNION}execute(){const e=this.getChildren(),n=e[0].getValue(),r=e[1].getValue();if(n==null||r==null)throw new Error("leftNode and rightNode");let i;this._operatorString===mr.COLON?i=this._unionFunction(n,r):i=I.create(D.NAME),this.setValue(i)}_unionFunction(e,n){return e.isError()||n.isError()||!e.isReferenceObject()||!n.isReferenceObject()?I.create(D.REF):(e=e,n=n,e.isCell()&&n.isCell()||e.isRow()&&n.isRow()||e.isColumn()&&n.isColumn()?e.unionBy(n):I.create(D.NAME))}};U(oLe,"UnionNode");let vTt=oLe;var fk;let oI=(fk=class extends bh{constructor(t){super(),this._functionService=t}get zIndex(){return Ch.get(fi.UNION)||Sh}create(t){return new vTt(t)}checkAndCreateNodeType(t){if(!(t instanceof Jr))return;const e=t.getToken().trim();if(!(e.charAt(0)==='"'&&e.charAt(e.length-1)==='"')&&e===mr.COLON)return this.create(e)}},U(fk,"UnionNodeFactory"),fk);oI=gTt([pTt(0,Vu)],oI);const sLe=class extends Ic{constructor(e){super(e),this._operatorString=e}get nodeType(){return fi.VALUE}execute(){this.setValue(cp.create(this._operatorString))}};U(sLe,"ValueNode");let _Tt=sLe;const lLe=class extends bh{get zIndex(){return Ch.get(fi.VALUE)||Sh}_checkValueNode(e){if(Number.isNaN(Number(e))){const n=e.trim(),r=n.charAt(0),i=n.charAt(n.length-1);if(Wp.has(n))return this.create(n);if(r==='"'&&i==='"')return this.create(n);if(r==="{"&&i==="}")return this.create(n);const a=n.toUpperCase();if(a===lp.TRUE||a===lp.FALSE)return this.create(a)}else return this.create(e)}create(e){return new _Tt(e)}checkAndCreateNodeType(e){if(!(e instanceof Jr))return this._checkValueNode(e)}};U(lLe,"ValueNodeFactory");let uLe=lLe;function cLe(t){let e=t;for(;e!=null&&e.getParent();)e=e.getParent();return e}U(cLe,"getAstNodeTopParent");var CTt=Object.defineProperty,STt=Object.getOwnPropertyDescriptor,bTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?STt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&CTt(e,n,i),i},"__decorateClass$a"),L1=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),mk;let T_=(mk=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c){super(),x(this,"_astNodeFactoryList",[]),x(this,"_refOffsetX",0),x(this,"_refOffsetY",0),this._runtimeService=t,this._astRootNodeFactory=e,this._functionNodeFactory=n,this._lambdaNodeFactory=r,this._lambdaParameterNodeFactory=i,this._operatorNodeFactory=a,this._prefixNodeFactory=o,this._referenceNodeFactory=s,this._suffixNodeFactory=l,this._unionNodeFactory=u,this._valueNodeFactory=c,this._initializeAstNode()}dispose(){this._astNodeFactoryList.forEach(t=>{t.dispose()}),this._astNodeFactoryList=[]}parse(t,e=0,n=0){const r=new Xz(f0);this._refOffsetX=e,this._refOffsetY=n;const i=this._parse(t,r);return t.hasDefinedNames()&&(i==null||i.setDefinedNames(t.getDefinedNames())),i}_lambdaParameterHandler(t,e){if(e.getLambdaId==null)return _l.create(D.VALUE);const n=e.getLambdaId(),r=new Xz(f0),i=this._runtimeService.getFunctionDefinitionPrivacyVar(n);if(!i)return!1;const a=[...i.keys()],o=t.getChildren(),s=o.length;for(let c=0;c<s;c++){const d=o[c];if(d instanceof Jr)this._parse(d,r);else return!1}const l=r.getChildren(),u=l.length;for(let c=0;c<u;c++){const d=l[c];i.set(a[c],d)}return r.setParent(e),e}_changeLetToLambda(t){const e=t.getChildren(),n=e.length;if(n%2!==1||n===0)return;const r=new Jr;r.setToken(R_);const i=new Jr;i.setToken(Q4);const a=[...e];for(let s=0;s<n;s++){const l=a[s];if(!(l instanceof Jr))return;s%2===0?l.changeToParent(r):l.changeToParent(i)}r.addChildrenFirst(i),i.setParent(r);const o=t.getParent();return o==null||o.replaceChild(t,r),r}_parse(t,e){const n=t.getChildren(),r=n.length,i=[];let a=null;const o=t.getToken().trim().toUpperCase();if(o===KEt){const u=this._changeLetToLambda(t);return u!=null?this._parse(u,e):_l.create(D.ERROR)}if(o===Uh){if(a=e,r===0)return new JMt(f0).setParent(e),a}else{if(o===Q4){let u=this._lambdaParameterHandler(t,e);return u===!1&&(u=_l.create(D.ERROR)),u}if(a=this._checkAstNode(t),a==null)return _l.create(D.NAME)}const s=n[0];for(let u=0;u<r;u++){const c=n[u];if(Iee(s)){if(u!==0&&u!==r-1)continue}else if(YTe(c)&&u!==r-1)continue;let d=null;if(c instanceof Jr){if(d=this._parse(c,a),d===a)continue}else d=this._checkAstNode(c);if(d==null)return _l.create(D.NAME);if(d=cLe(d),d==null)return;switch(d.nodeType){case fi.ERROR:return d;case fi.FUNCTION:i.push(d);break;case fi.LAMBDA:i.push(d);break;case fi.LAMBDA_PARAMETER:i.push(d);break;case fi.OPERATOR:{const h=i.pop(),f=i.pop();f&&f.setParent(d),h&&h.setParent(d),i.push(d);break}case fi.REFERENCE:d.setRefOffset(this._refOffsetX,this._refOffsetY),i.push(d);break;case fi.ROOT:i.push(d);break;case fi.UNION:i.push(d);break;case fi.VALUE:i.push(d);break;case fi.PREFIX:i.push(d);break;case fi.SUFFIX:i.push(d);break}}const l=i.length;for(let u=0;u<l;u++)i[u].setParent(a);return a}_checkAstNode(t){let e=null;const n=this._astNodeFactoryList.length;for(let r=0;r<n&&(e=this._astNodeFactoryList[r].checkAndCreateNodeType(t),e==null);r++);return e}_initializeAstNode(){this._astNodeFactoryList=[this._astRootNodeFactory,this._functionNodeFactory,this._lambdaNodeFactory,this._lambdaParameterNodeFactory,this._operatorNodeFactory,this._prefixNodeFactory,this._referenceNodeFactory,this._suffixNodeFactory,this._unionNodeFactory,this._valueNodeFactory].sort(Ol)}},U(mk,"AstTreeBuilder"),mk);T_=bTt([L1(0,_h),L1(1,se($Te)),L1(2,se(tI)),L1(3,se(nI)),L1(4,se(JTe)),L1(5,se(rI)),L1(6,se(eI)),L1(7,se(iI)),L1(8,se(aI)),L1(9,se(oI)),L1(10,se(uLe))],T_);const dLe=class extends et{constructor(){super(...arguments),x(this,"_referenceExecutorMap",new Map),x(this,"_onChanged$",new Zt),x(this,"onChanged$",this._onChanged$.asObservable())}dispose(){this._referenceExecutorMap.clear()}remove(e,n,r){r.forEach(i=>{var a,o;(o=(a=this._referenceExecutorMap.get(e))==null?void 0:a.get(n))==null||o.delete(i)}),this._onChanged$.next({unitId:e,subUnitId:n,featureIds:r})}get(e,n,r){var i,a;return(a=(i=this._referenceExecutorMap.get(e))==null?void 0:i.get(n))==null?void 0:a.get(r)}has(e,n,r){var i,a;return!!((a=(i=this._referenceExecutorMap.get(e))==null?void 0:i.get(n))!=null&&a.has(r))}register(e,n,r,i){let a=this._referenceExecutorMap.get(e);a||(a=new Map,this._referenceExecutorMap.set(e,a));let o=a.get(n);o||(o=new Map,a.set(n,o)),this._onChanged$.next({unitId:e,subUnitId:n,featureIds:[r]}),o.set(r,i)}getReferenceExecutorMap(){return this._referenceExecutorMap}};U(dLe,"FeatureCalculationManagerService");let yTt=dLe;const L_=er("univer.formula.feature-calculation-manager.service"),hLe=class extends et{constructor(){super(...arguments),x(this,"_otherFormulaData",{})}dispose(){this._otherFormulaData={}}remove(e){var n,r,i;const{unitId:a,subUnitId:o,formulaId:s}=e;(i=(r=(n=this._otherFormulaData)==null?void 0:n[a])==null?void 0:r[o])==null||delete i[s]}get(e){var n,r;const{unitId:i,subUnitId:a,formulaId:o}=e;return(r=(n=this._otherFormulaData[i])==null?void 0:n[a])==null?void 0:r[o]}has(e){var n,r;const{unitId:i,subUnitId:a,formulaId:o}=e;return((r=(n=this._otherFormulaData[i])==null?void 0:n[a])==null?void 0:r[o])!=null}register(e){const{unitId:n,subUnitId:r,formulaId:i,item:a}=e;this._otherFormulaData[n]||(this._otherFormulaData[n]={}),this._otherFormulaData[n][r]||(this._otherFormulaData[n][r]={}),this._otherFormulaData[n][r][i]=a}batchRegister(e){Object.keys(e).forEach(n=>{const r=e[n];if(r==null)return!0;Object.keys(r).forEach(i=>{const a=r[i];if(a==null)return!0;Object.keys(a).forEach(o=>{const s=a[o];if(s==null)return!0;this.register({unitId:n,subUnitId:i,formulaId:o,item:s})})})})}batchRemove(e){Object.keys(e).forEach(n=>{const r=e[n];if(r==null)return!0;Object.keys(r).forEach(i=>{const a=r[i];if(a==null)return!0;Object.keys(a).forEach(o=>{this.remove({unitId:n,subUnitId:i,formulaId:o})})})})}getOtherFormulaData(){return this._otherFormulaData}};U(hLe,"OtherFormulaManagerService");let ETt=hLe;const Lee=er("univer.formula.other-formula-manager.service"),fLe=class extends et{constructor(){super(),x(this,"node"),x(this,"children",[]),x(this,"parents",[]),x(this,"formula",""),x(this,"row",-1),x(this,"column",-1),x(this,"rowCount",Number.NEGATIVE_INFINITY),x(this,"columnCount",Number.NEGATIVE_INFINITY),x(this,"subUnitId",""),x(this,"unitId",""),x(this,"rangeList",[]),x(this,"formulaId"),x(this,"featureId"),x(this,"isPassive",!0),x(this,"_childIds",new Set),x(this,"anchorToken",""),x(this,"getDirtyData"),x(this,"_state",0),x(this,"_id"),this._id=`${Math.random().toString(36).slice(3)}-${Math.random().toString(36).slice(3)}`}get id(){return this._id}dispose(){var e;super.dispose(),this.children=[],this.rangeList=[],this.parents=[],(e=this.node)==null||e.dispose()}disposeWithChildren(){this.children.forEach(e=>{e.disposeWithChildren()}),this.dispose()}resetState(){this._state=0}setAdded(){this._state=1}isAdded(){return this._state===1}setSkip(){this._state=2}isSkip(){return this._state===2}inRangeData(e){const n=e.startRow,r=e.startColumn,i=e.endRow,a=e.endColumn;return!(this.row<n||this.row>i||this.column<r||this.column>a)}dependencyRange(e,n,r){var i,a;if(this.rangeList.length===0)return!1;for(let o=0,s=this.rangeList.length;o<s;o++){const l=this.rangeList[o],{unitId:u,sheetId:c,range:d}=l.gridRange;if(((i=n[u])==null?void 0:i[c])!=null)return!0;if(!e.has(u))continue;const h=e.get(u);if(!h.has(c))continue;const f=h.get(c),m=(a=r==null?void 0:r[u])==null?void 0:a[c];let{startRow:g,endRow:p,startColumn:v,endColumn:_}=d;Number.isNaN(g)&&(g=0),Number.isNaN(v)&&(v=0),Number.isNaN(p)&&(p=Number.POSITIVE_INFINITY),Number.isNaN(_)&&(_=Number.POSITIVE_INFINITY);for(const C of f){const{startRow:S,startColumn:b,endRow:y,endColumn:A}=C;if(!(g>y||p<S||v>A||_<b)){let w=!0;if(m==null||m.forValue((P,M)=>{if(P>=g&&P<=p&&M>=v&&M<=_)return w=!1,!1}),w)return!0}}}return!1}pushChildren(e){this.children.push(e),e._pushParent(this),this._childIds.add(e.id)}hasChild(e){return this._childIds.has(e.id)}pushRangeList(e){this.rangeList.push(e)}dependency(e){if(this.rangeList.length===0)return!1;for(let n=0,r=this.rangeList.length;n<r;n++){const i=this.rangeList[n],a=i.gridRange.unitId,o=i.gridRange.sheetId,s=i.gridRange.range;if(e.unitId===a&&e.subUnitId===o&&e.inRangeData(s))return!0}return!1}_pushParent(e){this.parents.push(e)}};U(fLe,"FormulaDependencyTree");let gk=fLe;const mLe=class extends et{constructor(){super(...arguments),x(this,"_cacheItems",new Map),x(this,"_map",new Map),x(this,"_dependencyMap",new Map),x(this,"_parentIdMap",new Map),x(this,"_rangeTokens",new Set)}dispose(){this.clear()}size(){return this._cacheItems.size}getDependencyMap(){return this._dependencyMap}getDependencyTree(e){return this._dependencyMap.get(e)}get length(){return this._cacheItems.size}add(e,n){const{token:r}=e;if(!this._cacheItems.has(r)){this._cacheItems.set(r,{unitRangeWithToken:e,treeList:[n],ids:new Set([n.id])});return}const i=this._cacheItems.get(r);i.treeList.push(n),i.ids.add(n.id);const{gridRange:a}=e,{range:o}=a;o.startRow===o.endRow&&o.startColumn===o.endColumn||this._rangeTokens.add(r)}addDependencyMap(e){this._dependencyMap.set(e.id,e)}updateParent(e){const n=new Set,r=e.unitId,i=e.subUnitId,a=this._cacheItems.get(e.anchorToken);if(a){this._parentIdMap.set(e.id,[...a.ids]);return}for(const o of this._rangeTokens){const s=this._cacheItems.get(o);if(s){const{unitRangeWithToken:l,treeList:u}=s,{gridRange:c}=l;if(c.unitId===r&&c.sheetId===i&&e.inRangeData(c.range))for(const d of u)n.add(d.id)}}this._parentIdMap.set(e.id,[...n])}clear(){this._cacheItems.clear(),this._map.clear(),this._dependencyMap.clear()}remove(e,n){if(!this._cacheItems.has(e))return;const r=this._cacheItems.get(e),i=r.treeList.indexOf(n);i!==-1&&r.treeList.splice(i,1)}delete(e){this._cacheItems.delete(e)}getDependencyId(e,n){const r=this._parentIdMap.get(e.id);if(r){const i=[...r];for(const a of i){n.add(a);const o=this._dependencyMap.get(a);o&&a!==e.id&&this.getDependencyId(o,n)}}}dependencyUseParentId(e){let n=new Set;this.getDependencyId(e,n);for(const r of n){const i=this._dependencyMap.get(r);if(i&&i.hasChild(e)&&i.rangeList){for(const a of i.rangeList)if(a.gridRange.unitId===e.unitId&&a.gridRange.sheetId===e.subUnitId){i.pushChildren(e);break}}i&&!i.hasChild(e)&&i.pushChildren(e)}n.clear(),n=null}dependency(e){this._cacheItems.forEach(n=>{const{unitRangeWithToken:r,treeList:i}=n,{gridRange:a}=r,{unitId:o,sheetId:s,range:l}=a;e.unitId===o&&e.subUnitId===s&&e.inRangeData(l)&&i.forEach(u=>{if(u===e||u.children.includes(e))return!0;u.pushChildren(e)})})}};U(mLe,"FormulaDependencyTreeCache");let pR=mLe;const gLe=class extends et{constructor(){super(...arguments),x(this,"_otherFormulaData",{}),x(this,"_featureFormulaData",{}),x(this,"_formulaData",{})}dispose(){this._otherFormulaData={},this._featureFormulaData={},this._formulaData={}}getAllTree(){const e=[];return Object.values(this._otherFormulaData).forEach(n=>{if(n==null)return!0;Object.values(n).forEach(r=>{Object.values(r).forEach(i=>{i&&(i.resetState(),e.push(i))})})}),Object.values(this._featureFormulaData).forEach(n=>{if(n==null)return!0;Object.values(n).forEach(r=>{Object.values(r).forEach(i=>{i&&(i.resetState(),e.push(i))})})}),Object.values(this._formulaData).map(n=>n==null?[]:Object.values(n).forEach(r=>r.forValue((i,a,o)=>{o&&(o.resetState(),e.push(o))}))),e}buildDependencyTree(e,n){const r=this.getAllTree();return e instanceof pR?this._buildDependencyTreeWithCache(r,e,n||[]):this._buildDependencyTree(r,e,e),r}_buildDependencyTreeWithCache(e,n,r){const i=new pR;for(const o of e.concat(r)){const s=o.rangeList;for(const l of s)i.add(l,o),i.addDependencyMap(o)}const a=i.getDependencyMap();for(const o of a.values())i.updateParent(o);for(const o of a.values())i.dependencyUseParentId(o);i.dispose()}_buildDependencyTree(e,n,r){const i=new pR;for(const o of e.concat(n,r)){const s=o.rangeList;for(const l of s)i.add(l,o),i.addDependencyMap(o)}const a=i.getDependencyMap();for(const o of a.values())i.updateParent(o);for(const o of a.values())i.dependencyUseParentId(o);i.dispose()}clearDependencyForTree(e){if(e==null)return;const n=e.parents,r=e.children;n.forEach(i=>{i.children=i.children.filter(a=>a!==e)}),r.forEach(i=>{i.parents=i.parents.filter(a=>a!==e)}),this._buildDependencyTree(n,r,r),e.dispose()}reset(){this._otherFormulaData={},this._featureFormulaData={},this._formulaData={}}addOtherFormulaDependency(e,n,r,i){this._otherFormulaData[e]||(this._otherFormulaData[e]={}),this._otherFormulaData[e][n]||(this._otherFormulaData[e][n]={}),this._otherFormulaData[e][n][r]=i}removeOtherFormulaDependency(e,n,r){this._otherFormulaData[e]&&this._otherFormulaData[e][n]&&r.forEach(i=>{const a=this._otherFormulaData[e][n][i];this.clearDependencyForTree(a),delete this._otherFormulaData[e][n][i]})}getOtherFormulaDependency(e,n,r){var i,a;return(a=(i=this._otherFormulaData[e])==null?void 0:i[n])==null?void 0:a[r]}hasOtherFormulaDependency(e,n,r){var i,a;return((a=(i=this._otherFormulaData[e])==null?void 0:i[n])==null?void 0:a[r])!=null}addFeatureFormulaDependency(e,n,r,i){this._featureFormulaData[e]||(this._featureFormulaData[e]={}),this._featureFormulaData[e][n]||(this._featureFormulaData[e][n]={}),this._featureFormulaData[e][n][r]=i}removeFeatureFormulaDependency(e,n,r){this._featureFormulaData[e]&&this._featureFormulaData[e][n]&&r.forEach(i=>{const a=this._featureFormulaData[e][n][i];this.clearDependencyForTree(a),delete this._featureFormulaData[e][n][i]})}getFeatureFormulaDependency(e,n,r){var i,a;return(a=(i=this._featureFormulaData[e])==null?void 0:i[n])==null?void 0:a[r]}hasFeatureFormulaDependency(e,n,r){var i,a;return((a=(i=this._featureFormulaData[e])==null?void 0:i[n])==null?void 0:a[r])!=null}addFormulaDependency(e,n,r,i,a){this._formulaData[e]||(this._formulaData[e]={}),this._formulaData[e][n]||(this._formulaData[e][n]=new Ct),this._formulaData[e][n].setValue(r,i,a)}removeFormulaDependency(e,n,r,i){if(this._formulaData[e]&&this._formulaData[e][n]){const a=this._formulaData[e][n].getValue(r,i);this.clearDependencyForTree(a),this._formulaData[e][n].realDeleteValue(r,i)}}clearFormulaDependency(e,n){n&&this._formulaData[e]&&this._formulaData[e][n]?this._formulaData[e][n].reset():this._formulaData[e]&&(this._formulaData[e]=null)}hasFormulaDependency(e,n,r,i){var a,o;return((o=(a=this._formulaData[e])==null?void 0:a[n])==null?void 0:o.getValue(r,i))!=null}};U(gLe,"DependencyManagerService");let RTt=gLe;const oL=er("univer.formula.dependency-manager.service");var ATt=Object.defineProperty,wTt=Object.getOwnPropertyDescriptor,DTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?wTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ATt(e,n,i),i},"__decorateClass$9"),vm=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9");const ITt=1e5;var pk;let M8=(pk=class extends et{constructor(t,e,n,r,i,a,o,s){super(),x(this,"_updateRangeFlattenCache",new Map),x(this,"_dirtyUnitSheetNameMap",{}),x(this,"_formulaASTCache",new zp(ITt)),this._currentConfigService=t,this._runtimeService=e,this._otherFormulaManagerService=n,this._featureCalculationManagerService=r,this._interpreter=i,this._astTreeBuilder=a,this._lexer=o,this._dependencyManagerService=s}dispose(){this._updateRangeFlattenCache.clear(),this._formulaASTCache.clear(),this._dirtyUnitSheetNameMap={}}async generate(){this._updateRangeFlatten();const t=this._currentConfigService.getFormulaData(),e=this._otherFormulaManagerService.getOtherFormulaData(),n=this._currentConfigService.getUnitData(),{treeList:r,dependencyTreeCache:i}=await this._generateTreeList(t,e,n),a=this._getUpdateTreeListAndMakeDependency(r,i);let o=this._calculateRunList(a);return this._dependencyFeatureCalculation(o)&&(o.forEach(s=>{s.resetState()}),o=this._calculateRunList(o)),this._checkIsCycleDependency(o)&&this._runtimeService.enableCycleDependency(),Promise.resolve(o)}_isCyclicUtil(t,e,n){if(!e.has(t)){e.add(t),n.add(t);for(let r=0;r<t.children.length;r++)if(!e.has(t.children[r])&&this._isCyclicUtil(t.children[r],e,n)||n.has(t.children[r]))return!0}return n.delete(t),!1}_checkIsCycleDependency(t){const e=new Set,n=new Set;for(let r=0,i=t.length;r<i;r++){const a=t[r];if(this._isCyclicUtil(a,e,n)===!0)return!0}return!1}async _generateTreeList(t,e,n){const r=Object.keys(t),i=Object.keys(e),a=[];this._currentConfigService.isForceCalculate()&&(this._dependencyManagerService.reset(),this._formulaASTCache.clear()),this._registerFormulas(r,t,n,a),this._registerOtherFormulas(e,i,a),this._registerFeatureFormulas(a);const o=new pR;for(let s=0,l=a.length;s<l;s++){const u=a[s];if(this._runtimeService.setCurrent(u.row,u.column,u.rowCount,u.columnCount,u.subUnitId,u.unitId),u.node==null)continue;const c=await this._getRangeListByNode(u.node);for(let d=0,h=c.length;d<h;d++){const f=c[d];u.pushRangeList(f),o.add(f,u)}}return{treeList:a,dependencyTreeCache:o}}_registerFeatureFormulas(t){this._featureCalculationManagerService.getReferenceExecutorMap().forEach((e,n)=>{e.forEach((r,i)=>{r.forEach((a,o)=>{t.push(this._getFeatureFormulaTree(o,a))})})})}_getFeatureFormulaTree(t,e){const{unitId:n,subUnitId:r,dependencyRanges:i,getDirtyData:a}=e,o=new gk;return o.unitId=n,o.subUnitId=r,o.getDirtyData=a,o.featureId=t,o.rangeList=i.map(s=>({gridRange:s,token:tc({...s,sheetName:this._currentConfigService.getSheetName(s.unitId,s.sheetId)})})),this._dependencyManagerService.addFeatureFormulaDependency(n,r,t,o),o}_registerOtherFormulas(t,e,n){for(const r of e){const i=t[r];if(i==null)continue;const a=Object.keys(i);for(const o of a){const s=i[o];if(s==null)continue;const l=Object.keys(s);for(const u of l){if(this._dependencyManagerService.hasOtherFormulaDependency(r,o,u))continue;const c=s[u],{f:d}=c,h=this._generateAstNode(r,d),f=new gk;f.node=h,f.formula=d,f.unitId=r,f.subUnitId=o,f.formulaId=u,this._dependencyManagerService.addOtherFormulaDependency(r,o,u,f),n.push(f)}}}}_registerFormulas(t,e,n,r){for(const i of t){const a=e[i];if(a==null)continue;const o=Object.keys(a);for(const s of o)new Ct(a[s]||{}).forValue((l,u,c)=>{if(c==null)return!0;const{f:d,x:h,y:f}=c;if(this._dependencyManagerService.hasFormulaDependency(i,s,l,u))return!0;const m=this._generateAstNode(i,d,h,f),g=new gk,p=n[i][s];g.node=m,g.formula=d,g.unitId=i,g.subUnitId=s,g.row=l,g.column=u;const v={range:{startRow:l,startColumn:u,endRow:l,endColumn:u},unitId:i,sheetId:s};g.anchorToken=tc({...v,sheetName:this._currentConfigService.getSheetName(i,s)}),g.rowCount=p.rowCount,g.columnCount=p.columnCount,this._dependencyManagerService.addFormulaDependency(i,s,l,u,g),r.push(g)})}}_updateRangeFlatten(){const t=this._currentConfigService.isForceCalculate(),e=this._currentConfigService.getDirtyRanges();if(!t){this._updateRangeFlattenCache.clear();for(let n=0;n<e.length;n++){const r=e[n],i=r.range,a=r.sheetId,o=r.unitId;this._addFlattenCache(o,a,i)}this._dirtyUnitSheetNameMap=this._currentConfigService.getDirtyNameMap()}}_generateAstNode(t,e,n=0,r=0){let i=this._formulaASTCache.get(`${t}${e}##${n}-${r}`);if(i&&!this._isDirtyDefinedForNode(i))return i;const a=this._lexer.treeBuilder(e);if(Wp.has(a))return _l.create(a);if(i=this._astTreeBuilder.parse(a,n,r),i==null)throw new Error("astNode is null");return this._formulaASTCache.set(`${t}${e}##${n}-${r}`,i),i}_addFlattenCache(t,e,n){let r=this._updateRangeFlattenCache.get(t);r==null&&(r=new Map,this._updateRangeFlattenCache.set(t,r));let i=r.get(e);i==null&&(i=[],r.set(e,i)),i.push(n)}_isPreCalculateNode(t){return t.nodeType===fi.UNION||t.nodeType===fi.PREFIX&&t.getToken()===zo.AT||t.nodeType===fi.SUFFIX&&t.getToken()===ch.POUND}_nodeTraversalRef(t,e){const n=t.getChildren(),r=n.length;for(let i=0;i<r;i++){const a=n[i];if(this._isPreCalculateNode(a)){e.push(a);continue}else a.nodeType===fi.REFERENCE&&e.push(a);this._nodeTraversalRef(a,e)}}_nodeTraversalReferenceFunction(t,e){const n=t.getChildren(),r=n.length;for(let i=0;i<r;i++){const a=n[i];if(a.nodeType===fi.FUNCTION&&a.isAddress()){e.push(a);continue}this._nodeTraversalReferenceFunction(a,e)}}async _executeNode(t){let e;return this._interpreter.checkAsyncNode(t)?e=await this._interpreter.executeAsync(t):e=this._interpreter.execute(t),e}async _getRangeListByNode(t){const e=[],n=[];this._nodeTraversalRef(t,e),this._nodeTraversalReferenceFunction(t,n);const r=[];for(let i=0,a=e.length;i<a;i++){const o=e[i],s=(await this._executeNode(o)).toUnitRange(),l=tc({...s,sheetName:this._currentConfigService.getSheetName(s.unitId,s.sheetId)});r.push({gridRange:s,token:l})}for(let i=0,a=n.length;i<a;i++){const o=n[i],s=(await this._executeNode(o)).toUnitRange(),l=tc({...s,sheetName:this._currentConfigService.getSheetName(s.unitId,s.sheetId)});r.push({gridRange:s,token:l})}return r}_isDirtyDefinedForNode(t){const e=this._currentConfigService.getDirtyDefinedNameMap(),n=this._currentConfigService.getExecuteUnitId();if(n!=null&&e[n]!=null){const r=Object.keys(e[n]);for(let i=0,a=r.length;i<a;i++){const o=r[i];if(t.hasDefinedName(o))return!0}}return!1}_getUpdateTreeListAndMakeDependency(t,e){const n=[],r=new Set,i=this._currentConfigService.isForceCalculate();let a=[];e.size()>t.length?a=this._dependencyManagerService.buildDependencyTree(t):a=this._dependencyManagerService.buildDependencyTree(e,t);for(let o=0,s=a.length;o<s;o++){const l=a[o];(i||l.dependencyRange(this._updateRangeFlattenCache,this._dirtyUnitSheetNameMap,this._currentConfigService.getExcludedRange())||this._includeTree(l))&&!r.has(l)&&(n.push(l),r.add(l))}return e.dispose(),n}_dependencyFeatureCalculation(t){this._clearFeatureCalculationNode(t);let e=!1;return this._featureCalculationManagerService.getReferenceExecutorMap().forEach((n,r)=>{n.forEach((i,a)=>{i.forEach((o,s)=>{const{unitId:l,subUnitId:u,getDirtyData:c}=o,d=c(this._currentConfigService.getDirtyData(),this._runtimeService.getAllRuntimeData()).dirtyRanges,h=this._convertDirtyRangesToMap(d),f=this._intersectFeatureCalculation(h,t,{unitId:l,subUnitId:u,featureId:s});if(f.length>0){let m=this._getExistTreeList({unitId:l,subUnitId:u,featureId:s},t);m==null&&(m=this._getFeatureFormulaTree(s,o),t.push(m)),m.parents=[],f.forEach(g=>{g.children.includes(m)||g.pushChildren(m)}),e=!0}})})}),e}_clearFeatureCalculationNode(t){const e=this._featureCalculationManagerService.getReferenceExecutorMap();t.forEach(n=>{n.children=n.children.filter(r=>{var i,a;return r.featureId?!((a=(i=e.get(n.unitId))==null?void 0:i.get(n.subUnitId))!=null&&a.has(r.featureId)):!0}),n.parents=n.parents.filter(r=>{var i,a;return r.featureId?!((a=(i=e.get(n.unitId))==null?void 0:i.get(n.subUnitId))!=null&&a.has(r.featureId)):!0})})}_getExistTreeList(t,e){const{unitId:n,subUnitId:r,featureId:i}=t;for(let a=0,o=e.length;a<o;a++){const s=e[a];if(s.unitId===n&&s.subUnitId===r&&s.featureId===i)return s}}_convertDirtyRangesToMap(t){const e=new Map;for(const n in t){const r=t[n],i=new Map;for(const a in r){const o=r[a];i.set(a,o)}e.set(n,i)}return e}_intersectFeatureCalculation(t,e,n){const r=[];for(let i=0,a=e.length;i<a;i++){const o=e[i];o.unitId===n.unitId&&o.subUnitId===n.subUnitId&&o.featureId===n.featureId||o.dependencyRange(t,{})&&r.push(o)}return r}_includeTreeFeature(t){var e,n;const r=t.unitId,i=t.subUnitId,a=t.featureId;if(a!=null){const o=this._currentConfigService.getDirtyUnitFeatureMap();if(((n=(e=o==null?void 0:o[r])==null?void 0:e[i])==null?void 0:n[a])!=null)return!0}return!1}_includeOtherFormula(t){var e,n;const r=t.unitId,i=t.subUnitId,a=t.formulaId;if(a!=null){const o=this._currentConfigService.getDirtyUnitOtherFormulaMap();if(((n=(e=o==null?void 0:o[r])==null?void 0:e[i])==null?void 0:n[a])!=null)return!0}return!1}_includeDefinedName(t){const e=t.node;return!!(e!=null&&this._isDirtyDefinedForNode(e))}_includeTree(t){var e,n,r;const i=t.unitId,a=t.subUnitId;if(this._includeTreeFeature(t)===!0||this._includeOtherFormula(t)===!0||this._includeDefinedName(t)===!0)return!0;const o=(n=(e=this._currentConfigService.getExcludedRange())==null?void 0:e[i])==null?void 0:n[a];let s=!1;if(o==null||o.forValue((c,d)=>{if(t.row===c&&t.column===d)return s=!0,!1}),s)return!1;if(((r=this._dirtyUnitSheetNameMap[i])==null?void 0:r[a])!=null)return!0;if(!this._updateRangeFlattenCache.has(i))return!1;const l=this._updateRangeFlattenCache.get(i);if(!l.has(a))return!1;const u=l.get(a);for(const c of u)if(t.inRangeData(c))return!0;return!1}_calculateRunList(t){let e=t;const n=[];for(;e.length>0;){const r=e.pop();if(r===void 0||r.isSkip())continue;if(r.isAdded()){n.push(r),r.setSkip();continue}const i=[];for(let a=0,o=r.parents.length;a<o;a++){const s=r.parents[a];s.isAdded()||r.isSkip()||i.push(s)}i.length===0?(n.push(r),r.setSkip()):(r.setAdded(),e.push(r),e=e.concat(i))}return n.reverse()}},U(pk,"FormulaDependencyGenerator"),pk);M8=DTt([yn(Vt.Rendered,M8),vm(0,l2),vm(1,_h),vm(2,Lee),vm(3,L_),vm(4,se(n7)),vm(5,se(T_)),vm(6,se(t7)),vm(7,oL)],M8);var PTt=Object.defineProperty,MTt=Object.getOwnPropertyDescriptor,TTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?MTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&PTt(e,n,i),i},"__decorateClass$8"),A2=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8");const LTt=1;var vk;let T8=(vk=class extends et{constructor(t,e,n,r,i,a,o){super(),x(this,"_executionStartListener$",new Zt),x(this,"executionStartListener$",this._executionStartListener$.asObservable()),x(this,"_executionCompleteListener$",new Zt),x(this,"executionCompleteListener$",this._executionCompleteListener$.asObservable()),x(this,"_executionInProgressListener$",new Zt),x(this,"executionInProgressListener$",this._executionInProgressListener$.asObservable()),this._configService=t,this._lexer=e,this._currentConfigService=n,this._runtimeService=r,this._formulaDependencyGenerator=i,this._interpreter=a,this._astTreeBuilder=o}stopFormulaExecution(){this._runtimeService.stopExecution()}setRuntimeFeatureCellData(t,e){this._runtimeService.setRuntimeFeatureCellData(t,e)}setRuntimeFeatureRange(t,e){this._runtimeService.setRuntimeFeatureRange(t,e)}async execute(t){this._executionStartListener$.next(!0),this._currentConfigService.load(t),this._runtimeService.reset();const e=this._configService.getConfig("CYCLE_REFERENCE_COUNT")||LTt;for(let n=0;n<e&&(this._runtimeService.setFormulaCycleIndex(n),await this._execute(),Vz.clear(),!!this._runtimeService.isCycleDependency());n++);this._runtimeService.setFormulaExecuteStage(Wc.CALCULATION_COMPLETED),this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()),this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData()),og.clear()}async _execute(){const t=await this._apply();if(t==null)return;const{arrayFormulaRange:e,runtimeFeatureRange:n}=t,{dirtyRanges:r,excludedCell:i}=this._getArrayFormulaDirtyRangeAndExcludedRange(e,n);return r==null||r.length===0||(this._currentConfigService.loadDirtyRangesAndExcludedCell(r,i),await this._apply(!0)),!0}_getArrayFormulaDirtyRangeAndExcludedRange(t,e){const n=[],r={};return Object.keys(t).forEach(i=>{const a=t[i];if(a==null)return!0;Object.keys(a).forEach(o=>{const s=new Ct(a[o]);if(s==null)return!0;const l=new Ct;s.forValue((u,c,d)=>{l.setValue(u,c,!0),n.push({unitId:i,sheetId:o,range:d})}),r[i]==null&&(r[i]={}),r[i][o]=l})}),Object.keys(e).forEach(i=>{const a=e[i];Object.keys(a).forEach(o=>{const s=a[o];if(s==null)return!0;Object.keys(s).forEach(l=>{const u=s[l];if(u==null)return!0;for(const c of u)n.push({unitId:o,sheetId:l,range:c})})})}),{dirtyRanges:n,excludedCell:r}}async _apply(t=!1){t?this._runtimeService.setFormulaExecuteStage(Wc.START_DEPENDENCY_ARRAY_FORMULA):this._runtimeService.setFormulaExecuteStage(Wc.START_DEPENDENCY),this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());const e=await this._formulaDependencyGenerator.generate(),n=this._interpreter;t?(this._runtimeService.setFormulaExecuteStage(Wc.START_CALCULATION_ARRAY_FORMULA),this._runtimeService.setTotalArrayFormulasToCalculate(e.length)):(this._runtimeService.setFormulaExecuteStage(Wc.START_CALCULATION),this._runtimeService.setTotalFormulasToCalculate(e.length)),this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());let r=[];for(let i=0,a=e.length;i<a;i++){if(await new Promise(c=>{const d=zP(c);r.push(d)}),this._runtimeService.isStopExecution()){this._runtimeService.setFormulaExecuteStage(Wc.IDLE),this._runtimeService.markedAsStopFunctionsExecuted(),this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData());return}const o=e[i],s=o.node,l=o.getDirtyData;let u;if(s==null&&l==null)throw new Error("AstNode or executor is null");if(this._runtimeService.setCurrent(o.row,o.column,o.rowCount,o.columnCount,o.subUnitId,o.unitId),l!=null&&o.featureId!=null){const{runtimeCellData:c,dirtyRanges:d}=l(this._currentConfigService.getDirtyData(),this._runtimeService.getAllRuntimeData());this._runtimeService.setRuntimeFeatureCellData(o.featureId,c),this._runtimeService.setRuntimeFeatureRange(o.featureId,d)}else s!=null&&(n.checkAsyncNode(s)?u=await n.executeAsync(s):u=n.execute(s),o.formulaId!=null?this._runtimeService.setRuntimeOtherData(o.formulaId,u):this._runtimeService.setRuntimeData(u));t?(this._runtimeService.setFormulaExecuteStage(Wc.CURRENTLY_CALCULATING_ARRAY_FORMULA),this._runtimeService.setCompletedArrayFormulasCount(i+1)):(this._runtimeService.setFormulaExecuteStage(Wc.CURRENTLY_CALCULATING),this._runtimeService.setCompletedFormulasCount(i+1)),this._executionInProgressListener$.next(this._runtimeService.getRuntimeState())}return r.forEach(i=>i()),r=[],e.length>0?this._runtimeService.markedAsSuccessfullyExecuted():t||this._runtimeService.markedAsNoFunctionsExecuted(),this._runtimeService.getAllRuntimeData()}calculate(t,e=!0){const n=this._lexer.treeBuilder(t,e);if(Object.values(D).includes(n))return _l.create(n);const r=this._astTreeBuilder.parse(n);r==null||r.serialize()}},U(vk,"CalculateFormulaService"),vk);T8=TTt([yn(Vt.Rendered,T8),A2(0,Za),A2(1,se(t7)),A2(2,l2),A2(3,_h),A2(4,se(M8)),A2(5,se(n7)),A2(6,se(T_))],T8);var xTt=Object.defineProperty,OTt=Object.getOwnPropertyDescriptor,NTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?OTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&xTt(e,n,i),i},"__decorateClass$7"),wy=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),_k;let vR=(_k=class extends et{constructor(t,e,n,r){super(),this._commandService=t,this._calculateFormulaService=e,this._univerInstanceService=n,this._formulaDataModel=r,this._initialize()}_initialize(){this._commandExecutedListener(),this._initialExecuteFormulaListener(),this._initialExecuteFormulaProcessListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{if(t.id===KD.id)this._calculateFormulaService.stopFormulaExecution();else if(t.id===Eg.id){const n=t.params.formulaData;this._formulaDataModel.mergeFormulaData(n)}else if(t.id===t4.id){const n=t.params;if(n.forceCalculation===!0)this._calculate(!0);else{const{dirtyRanges:r,dirtyNameMap:i,dirtyDefinedNameMap:a,dirtyUnitFeatureMap:o,dirtyUnitOtherFormulaMap:s}=n;this._calculate(!1,r,i,a,o,s)}}else if(t.id===fp.id){const n=t.params;if(n==null)return;const{arrayFormulaRange:r,arrayFormulaCellData:i}=n;this._formulaDataModel.setArrayFormulaRange(r),this._formulaDataModel.setArrayFormulaCellData(i)}}))}async _calculate(t=!1,e=[],n={},r={},i={},a={}){if(e.length===0&&Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0&&Object.keys(a).length===0&&t===!1)return;const o=this._formulaDataModel.getFormulaData(),s=this._formulaDataModel.getArrayFormulaCellData();this._calculateFormulaService.execute({formulaData:o,arrayFormulaCellData:s,forceCalculate:t,dirtyRanges:e,dirtyNameMap:n,dirtyDefinedNameMap:r,dirtyUnitFeatureMap:i,dirtyUnitOtherFormulaMap:a})}_initialExecuteFormulaListener(){this._calculateFormulaService.executionCompleteListener$.subscribe(t=>{const e=t.functionsExecutedState;switch(e){case X1.NOT_EXECUTED:break;case X1.STOP_EXECUTION:break;case X1.SUCCESS:this._applyFormula(t);break;case X1.INITIAL:break}this._commandService.executeCommand(ZD.id,{functionsExecutedState:e},{onlyLocal:!0})})}_initialExecuteFormulaProcessListener(){this._calculateFormulaService.executionInProgressListener$.subscribe(t=>{this._commandService.executeCommand(ZD.id,{stageInfo:t},{onlyLocal:!0})})}async _applyFormula(t){const{unitData:e,unitOtherData:n,arrayFormulaRange:r,arrayFormulaCellData:i,clearArrayFormulaCellData:a}=t;if(!e){console.error("No sheetData from Formula Engine!");return}r&&(this._formulaDataModel.clearPreviousArrayFormulaCellData(a),this._formulaDataModel.mergeArrayFormulaCellData(i),this._formulaDataModel.mergeArrayFormulaRange(r),this._commandService.executeCommand(fp.id,{arrayFormulaRange:this._formulaDataModel.getArrayFormulaRange(),arrayFormulaCellData:this._formulaDataModel.getArrayFormulaCellData()},{onlyLocal:!0})),this._commandService.executeCommand(FS.id,{unitData:Jye(e),unitOtherData:n},{onlyLocal:!0})}},U(_k,"CalculateController"),_k);vR=NTt([yn(Vt.Ready,vR),wy(0,me),wy(1,se(T8)),wy(2,Ce),wy(3,se(_d))],vR);const kTt={id:"formula.mutation.register-function",type:Se.MUTATION,handler:U(()=>!0,"handler")},ld={id:"formula.mutation.set-defined-name",type:Se.MUTATION,handler:U(()=>!0,"handler")},O0={id:"formula.mutation.remove-defined-name",type:Se.MUTATION,handler:U(()=>!0,"handler")},xee={id:"formula.mutation.set-feature-calculation",type:Se.MUTATION,handler:U(()=>!0,"handler")},Oee={id:"formula.mutation.remove-feature-calculation",type:Se.MUTATION,handler:U(()=>!0,"handler")},sL={id:"formula.mutation.set-other-formula",type:Se.MUTATION,handler:U(()=>!0,"handler")},lL={id:"formula.mutation.remove-other-formula",type:Se.MUTATION,handler:U(()=>!0,"handler")},FTt={id:"formula.mutation.set-super-table",type:Se.MUTATION,handler:U(()=>!0,"handler")},VTt={id:"formula.mutation.remove-super-table",type:Se.MUTATION,handler:U(()=>!0,"handler")},pLe={id:"formula.mutation.set-super-table-option",type:Se.MUTATION,handler:U(()=>!0,"handler")},vLe="engine-formula.config",BTt={};var UTt=Object.defineProperty,HTt=Object.getOwnPropertyDescriptor,jTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?HTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&UTt(e,n,i),i},"__decorateClass$6"),Dy=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),Ck;let _R=(Ck=class extends et{constructor(t,e,n,r){super(),this._commandService=t,this._functionService=e,this._configService=n,this._dataSyncPrimaryController=r,this._initialize()}_initialize(){this._registerCommands(),this._registerFunctions()}_registerCommands(){[Eg,fp,t4,KD,ZD,FS,ld,O0,xee,Oee,sL,lL,FTt,VTt,pLe,kTt].forEach(t=>{var e;this._commandService.registerCommand(t),(e=this._dataSyncPrimaryController)==null||e.registerSyncingMutations(t)})}_registerFunctions(){var t;const e=this._configService.getConfig(vLe),n=[...WRe,...uAe,...cAe,...dAe,...$Ae,...Wwe,...GDe,...fIe,...LIe,...hPe,...VMe,...YMe,..._Te,...TTe,...LTe,...xTe].concat((t=e==null?void 0:e.function)!=null?t:[]).map(r=>{const i=r[0],a=r[1];return new i(a)});this._functionService.registerExecutors(...n)}},U(Ck,"FormulaController"),Ck);_R=jTt([yn(Vt.Ready,_R),Dy(0,me),Dy(1,Vu),Dy(2,Za),Dy(3,_1(Lg))],_R);var $Tt=Object.defineProperty,WTt=Object.getOwnPropertyDescriptor,zTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?WTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&$Tt(e,n,i),i},"__decorateClass$5"),Nse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),Sk;let CR=(Sk=class extends et{constructor(t,e){super(),this._commandService=t,this._definedNamesService=e,this._initialize()}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===ld.id){const e=t.params;if(e==null)return;const{id:n,unitId:r,name:i,formulaOrRefString:a,comment:o,hidden:s,localSheetId:l}=e;this._definedNamesService.registerDefinedName(r,{id:n,name:i.trim(),formulaOrRefString:a.trim(),comment:o==null?void 0:o.trim(),hidden:s,localSheetId:l})}else if(t.id===O0.id){const e=t.params;if(e==null)return;const{unitId:n,id:r}=e;this._definedNamesService.removeDefinedName(n,r)}}))}},U(Sk,"SetDefinedNameController"),Sk);CR=zTt([yn(Vt.Ready,CR),Nse(0,me),Nse(1,Dc)],CR);var qTt=Object.defineProperty,YTt=Object.getOwnPropertyDescriptor,XTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?YTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&qTt(e,n,i),i},"__decorateClass$4"),kse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),bk;let SR=(bk=class extends et{constructor(t,e){super(),this._commandService=t,this._featureCalculationManagerService=e,this._initialize()}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===xee.id){const e=t.params;if(e==null)return;const{featureId:n,calculationParam:r}=e,{unitId:i,subUnitId:a}=r;this._featureCalculationManagerService.register(i,a,n,r)}else if(t.id===Oee.id){const e=t.params;if(e==null)return;const{featureIds:n,unitId:r,subUnitId:i}=e;this._featureCalculationManagerService.remove(r,i,n)}}))}},U(bk,"SetFeatureCalculationController"),bk);SR=XTt([yn(Vt.Ready,SR),kse(0,me),kse(1,L_)],SR);var GTt=Object.defineProperty,QTt=Object.getOwnPropertyDescriptor,KTt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?QTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&>t(e,n,i),i},"__decorateClass$3"),yk=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),Ek;let bR=(Ek=class extends et{constructor(t,e,n){super(),this._commandService=t,this._otherFormulaManagerService=e,this._dependencyManagerService=n,this._initialize()}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===sL.id){const e=t.params;if(e==null)return;const n={[e.unitId]:{[e.subUnitId]:e.formulaMap}};this._otherFormulaManagerService.batchRegister(n)}else if(t.id===lL.id){const e=t.params;if(e==null)return;const n={};e.formulaIdList.forEach(i=>n[i]=!0);const r={[e.unitId]:{[e.subUnitId]:n}};this._otherFormulaManagerService.batchRemove(r)}}))}},U(Ek,"SetOtherFormulaController"),Ek);bR=KTt([yn(Vt.Ready,bR),yk(0,me),yk(1,Lee),yk(2,oL)],bR);var ZTt=Object.defineProperty,JTt=Object.getOwnPropertyDescriptor,eLt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?JTt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ZTt(e,n,i),i},"__decorateClass$2"),Fse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),Rk;let yR=(Rk=class extends et{constructor(t,e){super(),this._commandService=t,this._superTableService=e,this._initialize()}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===ld.id){const e=t.params;if(e==null)return;const{unitId:n,tableName:r,reference:i}=e;this._superTableService.registerTable(n,r,i)}else if(t.id===O0.id){const e=t.params;if(e==null)return;const{unitId:n,tableName:r}=e;this._superTableService.remove(n,r)}else if(t.id===pLe.id){const e=t.params;if(e==null)return;const{tableOption:n,tableOptionType:r}=e;this._superTableService.registerTableOptionMap(n,r)}}))}},U(Rk,"SetSuperTableController"),Rk);yR=eLt([yn(Vt.Ready,yR),Fse(0,me),Fse(1,Tee)],yR);const _Le=class extends et{constructor(){super(...arguments),x(this,"_dirtyConversionMap",new Map)}dispose(){this._dirtyConversionMap.clear()}remove(e){this._dirtyConversionMap.delete(e)}get(e){return this._dirtyConversionMap.get(e)}has(e){return this._dirtyConversionMap.has(e)}register(e,n){this._dirtyConversionMap.set(e,n)}getDirtyConversionMap(){return this._dirtyConversionMap}};U(_Le,"ActiveDirtyManagerService");let tLt=_Le;const uL=er("univer.formula.active-dirty-manager.service");var nLt=Object.defineProperty,rLt=Object.getOwnPropertyDescriptor,iLt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?rLt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&nLt(e,n,i),i},"__decorateClass$1"),Iy=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),Ak;let ER=(Ak=class extends et{constructor(t,e,n){super(),this._commandService=t,this._dependencyManagerService=e,this._featureCalculationManagerService=n,this._initialize()}_initialize(){this._commandExecutedListener(),this._featureCalculationManagerServiceListener()}_featureCalculationManagerServiceListener(){this.disposeWithMe(this._featureCalculationManagerService.onChanged$.subscribe(t=>{const{unitId:e,subUnitId:n,featureIds:r}=t;this._dependencyManagerService.removeFeatureFormulaDependency(e,n,r)}))}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===Oee.id){const e=t.params;if(e==null)return;const{featureIds:n,unitId:r,subUnitId:i}=e;this._dependencyManagerService.removeFeatureFormulaDependency(r,i,n)}else if(t.id===xee.id){const e=t.params;if(e==null)return;const{featureId:n,calculationParam:r}=e,{unitId:i,subUnitId:a}=r;this._dependencyManagerService.removeFeatureFormulaDependency(i,a,[n])}else if(t.id===lL.id){const e=t.params;if(e==null)return;this._dependencyManagerService.removeOtherFormulaDependency(e.unitId,e.subUnitId,e.formulaIdList)}else if(t.id===sL.id){const e=t.params;if(e==null)return;const n=e.formulaMap,r=[];Object.keys(n).forEach(i=>{r.push(i)}),this._dependencyManagerService.removeOtherFormulaDependency(e.unitId,e.subUnitId,r)}else if(t.id===Eg.id){const e=t.params.formulaData;Object.keys(e).forEach(n=>{const r=e[n];if(r!==void 0){if(r===null){this._dependencyManagerService.clearFormulaDependency(n);return}Object.keys(r).forEach(i=>{const a=r[i];if(a!==void 0){if(a===null)return this._dependencyManagerService.clearFormulaDependency(n,i),!0;new Ct(a).forValue((o,s)=>{this._dependencyManagerService.removeFormulaDependency(n,i,o,s)})}})}})}}))}},U(Ak,"SetDependencyController"),Ak);ER=iLt([yn(Vt.Ready,ER),Iy(0,me),Iy(1,L_),Iy(1,oL),Iy(2,L_)],ER);var aLt=Object.defineProperty,oLt=Object.getOwnPropertyDescriptor,sLt=U((t,e,n,r)=>{for(var i=r>1?void 0:r?oLt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&aLt(e,n,i),i},"__decorateClass"),Vse=U((t,e)=>(n,r)=>e(n,r,t),"__decorateParam");const lLt="UNIVER_ENGINE_FORMULA_PLUGIN";var Py;let x_=(Py=class extends Cs{constructor(t=BTt,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(vLe,r)}onStarting(){this._initialize()}_initialize(){var t;const e=[[Vu,{useClass:NMt}],[Dc,{useClass:EMt}],[uL,{useClass:tLt}],[Tee,{useClass:aTt}],[_d],[Kl],[_R],[CR],[yR]];(t=this._config)!=null&&t.notExecuteFormula||e.push([T8],[Lee,{useClass:ETt}],[_h,{useClass:Yz}],[l2,{useClass:qz}],[oL,{useClass:RTt}],[L_,{useClass:yTt}],[vR],[bR],[ER],[SR],[M8],[n7],[T_],[t7],[$Te],[tI],[nI],[JTe],[rI],[eI],[iI],[aI],[oI],[uLe]),e.forEach(n=>this._injector.add(n))}},U(Py,"UniverFormulaEnginePlugin"),x(Py,"pluginName",lLt),Py);x_=sLt([Vse(1,se(Wn)),Vse(2,Za)],x_);var CLe=Object.defineProperty,uLt=t=>{throw TypeError(t)},cLt=(t,e,n)=>e in t?CLe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e)=>CLe(t,"name",{value:e,configurable:!0}),gn=(t,e,n)=>cLt(t,typeof e!="symbol"?e+"":e,n),Bse=(t,e,n)=>e.has(t)?uLt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);const VS={id:"sheet.operation.set-editor-resize",type:Se.OPERATION,handler:Q((t,e)=>!0,"handler")},SLe=class extends et{constructor(){super(...arguments),gn(this,"_open$",new Pn(!1)),gn(this,"open$",this._open$.pipe(Hl()))}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)}};Q(SLe,"ShortcutPanelService");let Nee=SLe;er("ui.left-sidebar.service");const ol=er("ui.sidebar.service"),bLe="ShortcutPanel",cL={id:"base-ui.operation.toggle-shortcut-panel",type:Se.OPERATION,handler:Q(t=>{const e=t.get(Nee),n=t.get(ol);return e.isOpen?(e.close(),n.close()):(e.open(),n.open({header:{title:"shortcut-panel.title"},children:{label:bLe}})),!0},"handler")};var Qc=function(){return Qc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Qc.apply(this,arguments)},dLt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Gt=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=dLt(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(RLe()));return kee(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},Qc({ref:e,className:s},o),a)});function kee(t,e,n,r,i){return E.createElement(t.tag,Qc(Qc({key:e},yLe(t,n,i)),r),(ELe(t,n).children||[]).map(function(a,o){return kee(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}Q(kee,"render$2");function yLe(t,e,n){var r=Qc({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}Q(yLe,"replaceRuntimeIdsAndExtInAttrs");function ELe(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?Qc(Qc({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?Qc(Qc({},i),{attrs:Qc(Qc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}Q(ELe,"replaceRuntimeIdsInDefs");function RLe(){return Math.random().toString(36).substring(2,8)}Q(RLe,"generateShortUuid");Gt.displayName="UniverIcon";var hLt={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"}}]},ALe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"add-digits-single",ref:e,icon:hLt}))});ALe.displayName="AddDigitsSingle";var fLt={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"}}]}]},wLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"adjust-height",ref:e,icon:fLt}))});wLe.displayName="AdjustHeight";var mLt={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"}}]}]},DLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"adjust-width",ref:e,icon:mLt}))});DLe.displayName="AdjustWidth";var gLt={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"}}]},ILe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"align-bottom-single",ref:e,icon:gLt}))});ILe.displayName="AlignBottomSingle";var pLt={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"}}]},PLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"align-text-both-single",ref:e,icon:pLt}))});PLe.displayName="AlignTextBothSingle";var vLt={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"}}]},MLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"align-top-single",ref:e,icon:vLt}))});MLe.displayName="AlignTopSingle";var _Lt={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"}}]},TLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"all-border-single",ref:e,icon:_Lt}))});TLe.displayName="AllBorderSingle";var CLt={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"}}]},LLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"amplify-single",ref:e,icon:CLt}))});LLe.displayName="AmplifySingle";var SLt={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"}}]}]},xLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"auto-height",ref:e,icon:SLt}))});xLe.displayName="AutoHeight";var bLt={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"}}]},OLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"autowrap-single",ref:e,icon:bLt}))});OLe.displayName="AutowrapSingle";var yLt={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"}}]},NLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"avg-single",ref:e,icon:yLt}))});NLe.displayName="AvgSingle";var ELt={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"}}]}]},kLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"back-slash-single",ref:e,icon:ELt}))});kLe.displayName="BackSlashSingle";var RLt={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"}}]},FLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"bold-single",ref:e,icon:RLt}))});FLe.displayName="BoldSingle";var ALt={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"}}]},VLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"brush-single",ref:e,icon:ALt}))});VLe.displayName="BrushSingle";var wLt={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"}}]},BLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"cancel-freeze-single",ref:e,icon:wLt}))});BLe.displayName="CancelFreezeSingle";var DLt={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"}}]},ULe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"cancel-merge-single",ref:e,icon:DLt}))});ULe.displayName="CancelMergeSingle";var ILt={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"}}]},HLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"check-mark-single",ref:e,icon:ILt}))});HLe.displayName="CheckMarkSingle";var PLt={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"}}]}]},jLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"clear-format",ref:e,icon:PLt}))});jLe.displayName="ClearFormat";var MLt={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"}}]},BS=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"close-single",ref:e,icon:MLt}))});BS.displayName="CloseSingle";var TLt={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"}}]},$Le=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"cnt-single",ref:e,icon:TLt}))});$Le.displayName="CntSingle";var LLt={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"}}]},WLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"code-single",ref:e,icon:LLt}))});WLe.displayName="CodeSingle";var xLt={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"}}]},zLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"conditions",ref:e,icon:xLt}))});zLe.displayName="Conditions";var OLt={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"}}]}]},qLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"content-single-16",ref:e,icon:OLt}))});qLe.displayName="ContentSingle16";var NLt={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"}}]}]},YLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"copy",ref:e,icon:NLt}))});YLe.displayName="Copy";var kLt={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"}}]}]},XLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-cell-move-down",ref:e,icon:kLt}))});XLe.displayName="DeleteCellMoveDown";var FLt={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"}}]}]},GLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-cell-shift-left",ref:e,icon:FLt}))});GLe.displayName="DeleteCellShiftLeft";var VLt={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"}}]}]},QLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-cell-shift-right",ref:e,icon:VLt}))});QLe.displayName="DeleteCellShiftRight";var BLt={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"}}]}]},KLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-cell-shift-up",ref:e,icon:BLt}))});KLe.displayName="DeleteCellShiftUp";var ULt={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"}}]}]},ZLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-column",ref:e,icon:ULt}))});ZLe.displayName="DeleteColumn";var HLt={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"}}]}]},JLe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-row",ref:e,icon:HLt}))});JLe.displayName="DeleteRow";var jLt={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"}}]},exe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"delete-single",ref:e,icon:jLt}))});exe.displayName="DeleteSingle";var $Lt={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"}}]}]},txe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"direct-export-single",ref:e,icon:$Lt}))});txe.displayName="DirectExportSingle";var WLt={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"}}]},nxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"dollar-single",ref:e,icon:WLt}))});nxe.displayName="DollarSingle";var zLt={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"}}]}]},rxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"down-border",ref:e,icon:zLt}))});rxe.displayName="DownBorder";var qLt={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"}}]},ixe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"error-single",ref:e,icon:qLt}))});ixe.displayName="ErrorSingle";var YLt={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"}}]},axe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"euro-single",ref:e,icon:YLt}))});axe.displayName="EuroSingle";var XLt={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"}}]},oxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"export-single",ref:e,icon:XLt}))});oxe.displayName="ExportSingle";var GLt={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"}}]},sxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"folder-single",ref:e,icon:GLt}))});sxe.displayName="FolderSingle";var QLt={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}}]}]},lxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"font-color",ref:e,icon:QLt}))});lxe.displayName="FontColor";var KLt={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"}}]},uxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"font-size-increase-single",ref:e,icon:KLt}))});uxe.displayName="FontSizeIncreaseSingle";var ZLt={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"}}]}]},cxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"font-size-reduce-single-single",ref:e,icon:ZLt}))});cxe.displayName="FontSizeReduceSingleSingle";var JLt={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"}}]},dxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"freeze-column-single",ref:e,icon:JLt}))});dxe.displayName="FreezeColumnSingle";var ext={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"}}]},hxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"freeze-row-single",ref:e,icon:ext}))});hxe.displayName="FreezeRowSingle";var txt={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"}}]},fxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"freeze-to-selected-single",ref:e,icon:txt}))});fxe.displayName="FreezeToSelectedSingle";var nxt={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"}}]},mxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"function-single",ref:e,icon:nxt}))});mxe.displayName="FunctionSingle";var rxt={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"}}]}]},gxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"grid-single",ref:e,icon:rxt}))});gxe.displayName="GridSingle";var ixt={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"}}]}]},pxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"hide",ref:e,icon:ixt}))});pxe.displayName="Hide";var axt={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"}}]}]},vxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"horizontal-border",ref:e,icon:axt}))});vxe.displayName="HorizontalBorder";var oxt={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"}}]},_xe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"horizontal-merge-single",ref:e,icon:oxt}))});_xe.displayName="HorizontalMergeSingle";var sxt={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"}}]},Cxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"horizontally-single",ref:e,icon:sxt}))});Cxe.displayName="HorizontallySingle";var lxt={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"}}]},Sxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"increase-single",ref:e,icon:lxt}))});Sxe.displayName="IncreaseSingle";var uxt={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"}}]}]},bxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"inner-border",ref:e,icon:uxt}))});bxe.displayName="InnerBorder";var cxt={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"}}]}]},yxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"insert-cell-down",ref:e,icon:cxt}))});yxe.displayName="InsertCellDown";var dxt={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"}}]}]},Exe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"insert-cell-shift-right",ref:e,icon:dxt}))});Exe.displayName="InsertCellShiftRight";var hxt={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"}}]}]},Rxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"insert-row-above",ref:e,icon:hxt}))});Rxe.displayName="InsertRowAbove";var fxt={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"}}]}]},Axe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"insert-row-below",ref:e,icon:fxt}))});Axe.displayName="InsertRowBelow";var mxt={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"}}]}]},wxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"insert",ref:e,icon:mxt}))});wxe.displayName="Insert";var gxt={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"}}]},Dxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"italic-single",ref:e,icon:gxt}))});Dxe.displayName="ItalicSingle";var pxt={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"}}]},Ixe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"keyboard-single",ref:e,icon:pxt}))});Ixe.displayName="KeyboardSingle";var vxt={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"}}]}]},Pxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-border",ref:e,icon:vxt}))});Pxe.displayName="LeftBorder";var _xt={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"}}]}]},Mxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-double-diagonal-single",ref:e,icon:_xt}))});Mxe.displayName="LeftDoubleDiagonalSingle";var Cxt={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"}}]}]},Txe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-insert-column",ref:e,icon:Cxt}))});Txe.displayName="LeftInsertColumn";var Sxt={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"}}]},Lxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-justifying-single",ref:e,icon:Sxt}))});Lxe.displayName="LeftJustifyingSingle";var bxt={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"}}]},xxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-rotation-forty-five-degrees-single",ref:e,icon:bxt}))});xxe.displayName="LeftRotationFortyFiveDegreesSingle";var yxt={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"}}]},Oxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-rotation-ninety-degrees-single",ref:e,icon:yxt}))});Oxe.displayName="LeftRotationNinetyDegreesSingle";var Ext={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"}}]}]},Nxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"left-tridiagonal-single",ref:e,icon:Ext}))});Nxe.displayName="LeftTridiagonalSingle";var Rxt={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"}}]},kxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"max-single",ref:e,icon:Rxt}))});kxe.displayName="MaxSingle";var Axt={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}}]},Fxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"menu-single-24",ref:e,icon:Axt}))});Fxe.displayName="MenuSingle24";var wxt={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"}}]},Vxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"merge-all-single",ref:e,icon:wxt}))});Vxe.displayName="MergeAllSingle";var Dxt={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"}}]},Bxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"min-single",ref:e,icon:Dxt}))});Bxe.displayName="MinSingle";var Ixt={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"}}]},sI=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"more-down-single",ref:e,icon:Ixt}))});sI.displayName="MoreDownSingle";var Pxt={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"}}]},Uxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"more-function-single",ref:e,icon:Pxt}))});Uxe.displayName="MoreFunctionSingle";var Mxt={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"}}]},Gz=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"more-single",ref:e,icon:Mxt}))});Gz.displayName="MoreSingle";var Txt={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"}}]},Hxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"no-border-single",ref:e,icon:Txt}))});Hxe.displayName="NoBorderSingle";var Lxt={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"}}]},jxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"no-color",ref:e,icon:Lxt}))});jxe.displayName="NoColor";var xxt={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"}}]},$xe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"no-rotation-single",ref:e,icon:xxt}))});$xe.displayName="NoRotationSingle";var Oxt={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"}}]},Wxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"order-single",ref:e,icon:Oxt}))});Wxe.displayName="OrderSingle";var Nxt={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"}}]}]},zxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"outer-border",ref:e,icon:Nxt}))});zxe.displayName="OuterBorder";var kxt={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"}}]},qxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"overflow-single",ref:e,icon:kxt}))});qxe.displayName="OverflowSingle";var Fxt={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"}}]}]},Yxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"paint-bucket",ref:e,icon:Fxt}))});Yxe.displayName="PaintBucket";var Vxt={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"}}]}]},Xxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"paste-special",ref:e,icon:Vxt}))});Xxe.displayName="PasteSpecial";var Bxt={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"}}]}]},Gxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"percent-single",ref:e,icon:Bxt}))});Gxe.displayName="PercentSingle";var Uxt={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"}}]},Qxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"piping-single",ref:e,icon:Uxt}))});Qxe.displayName="PipingSingle";var Hxt={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"}}]},Kxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"redo-single",ref:e,icon:Hxt}))});Kxe.displayName="RedoSingle";var jxt={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"}}]},Zxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"reduce-digits-single",ref:e,icon:jxt}))});Zxe.displayName="ReduceDigitsSingle";var $xt={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"}}]}]},Jxe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"reduce",ref:e,icon:$xt}))});Jxe.displayName="Reduce";var Wxt={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"}}]}]},eOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-border",ref:e,icon:Wxt}))});eOe.displayName="RightBorder";var zxt={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"}}]}]},tOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-double-diagonal-single",ref:e,icon:zxt}))});tOe.displayName="RightDoubleDiagonalSingle";var qxt={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"}}]}]},nOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-insert-column",ref:e,icon:qxt}))});nOe.displayName="RightInsertColumn";var Yxt={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"}}]},rOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-justifying-single",ref:e,icon:Yxt}))});rOe.displayName="RightJustifyingSingle";var Xxt={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"}}]},iOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-rotation-forty-five-degrees-single",ref:e,icon:Xxt}))});iOe.displayName="RightRotationFortyFiveDegreesSingle";var Gxt={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"]},aOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"right-rotation-ninety-degrees-single",ref:e,icon:Gxt}))});aOe.displayName="RightRotationNinetyDegreesSingle";var Qxt={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"}}]},oOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"rmb-single",ref:e,icon:Qxt}))});oOe.displayName="RmbSingle";var Kxt={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"}}]},sOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"rouble-single",ref:e,icon:Kxt}))});sOe.displayName="RoubleSingle";var Zxt={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"}}]},lOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"select-range-single",ref:e,icon:Zxt}))});lOe.displayName="SelectRangeSingle";var Jxt={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"}}]}]},uOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"slash-single",ref:e,icon:Jxt}))});uOe.displayName="SlashSingle";var eOt={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"}}]},cOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"strikethrough-single",ref:e,icon:eOt}))});cOe.displayName="StrikethroughSingle";var tOt={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}}]},dOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"subscript-single",ref:e,icon:tOt}))});dOe.displayName="SubscriptSingle";var nOt={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"}}]},hOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"success-single",ref:e,icon:nOt}))});hOe.displayName="SuccessSingle";var rOt={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"}}]},fOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"sum-single",ref:e,icon:rOt}))});fOe.displayName="SumSingle";var iOt={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}}]},mOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"superscript-single",ref:e,icon:iOt}))});mOe.displayName="SuperscriptSingle";var aOt={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"}}]},gOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"truncation-single",ref:e,icon:aOt}))});gOe.displayName="TruncationSingle";var oOt={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"}}]},pOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"underline-single",ref:e,icon:oOt}))});pOe.displayName="UnderlineSingle";var sOt={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"}}]},vOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"undo-single",ref:e,icon:sOt}))});vOe.displayName="UndoSingle";var lOt={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"}}]},_Oe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"unorder-single",ref:e,icon:lOt}))});_Oe.displayName="UnorderSingle";var uOt={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"}}]}]},COe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"up-border",ref:e,icon:uOt}))});COe.displayName="UpBorder";var cOt={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"}}]}]},SOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"vertical-border",ref:e,icon:cOt}))});SOe.displayName="VerticalBorder";var dOt={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"}}]},bOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"vertical-center-single",ref:e,icon:dOt}))});bOe.displayName="VerticalCenterSingle";var hOt={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"}}]}]},yOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"vertical-integration-single",ref:e,icon:hOt}))});yOe.displayName="VerticalIntegrationSingle";var fOt={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"}}]},EOe=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"vertical-text-single",ref:e,icon:fOt}))});EOe.displayName="VerticalTextSingle";var mOt={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"}}]},Qz=E.forwardRef(function(t,e){return E.createElement(Gt,Object.assign({},t,{id:"warning-single",ref:e,icon:mOt}))});Qz.displayName="WarningSingle";const ROe=class{constructor(){gn(this,"_components",new Map),gn(this,"_componentsReverse",new Map);const e={AlignBottomSingle:ILe,AlignTopSingle:MLe,AllBorderSingle:TLe,AmplifySingle:LLe,AutowrapSingle:OLe,BoldSingle:FLe,BrushSingle:VLe,Copy:YLe,ClearFormat:jLe,DownBorder:rxe,FontColor:lxe,FunctionSingle:mxe,HorizontallySingle:Cxe,InnerBorder:bxe,ItalicSingle:Dxe,KeyboardSingle:Ixe,ContentSingle16:qLe,LeftBorder:Pxe,LeftJustifyingSingle:Lxe,LeftRotationFortyFiveDegreesSingle:xxe,LeftRotationNinetyDegreesSingle:Oxe,MergeAllSingle:Vxe,HorizontalMergeSingle:_xe,VerticalIntegrationSingle:yOe,PipingSingle:Qxe,CancelMergeSingle:ULe,NoBorderSingle:Hxe,NoColor:jxe,NoRotationSingle:$xe,OuterBorder:zxe,OverflowSingle:qxe,PaintBucket:Yxe,PasteSpecial:Xxe,MenuSingle24:Fxe,RedoSingle:Kxe,RightBorder:eOe,RightJustifyingSingle:rOe,AlignTextBothSingle:PLe,RightRotationFortyFiveDegreesSingle:iOe,RightRotationNinetyDegreesSingle:aOe,StrikethroughSingle:cOe,OrderSingle:Wxe,UnorderSingle:_Oe,SuperscriptSingle:mOe,SubscriptSingle:dOe,TruncationSingle:gOe,UnderlineSingle:pOe,UndoSingle:vOe,UpBorder:COe,VerticalBorder:SOe,VerticalCenterSingle:bOe,VerticalTextSingle:EOe,Insert:wxe,InsertCellDown:yxe,InsertCellShiftRight:Exe,InsertRowAbove:Rxe,InsertRowBelow:Axe,LeftInsertColumn:Txe,RightInsertColumn:nOe,DeleteColumn:ZLe,DeleteRow:JLe,DeleteCellShiftUp:KLe,DeleteCellShiftRight:QLe,DeleteCellShiftLeft:GLe,DeleteCellMoveDown:XLe,Reduce:Jxe,Hide:pxe,HorizontalBorder:vxe,AutoHeight:xLe,AdjustHeight:wLe,AdjustWidth:DLe,AvgSingle:NLe,CntSingle:$Le,MaxSingle:kxe,MinSingle:Bxe,SumSingle:fOe,CancelFreezeSingle:BLe,FreezeColumnSingle:dxe,FreezeRowSingle:hxe,GridSingle:gxe,FreezeToSelectedSingle:fxe,CodeSingle:WLe,FontSizeIncreaseSingle:uxe,FontSizeReduceSingleSingle:cxe,BackSlashSingle:kLe,LeftDoubleDiagonalSingle:Mxe,LeftTridiagonalSingle:Nxe,SlashSingle:uOe,RightDoubleDiagonalSingle:tOe,DirectExportSingle:txe,FolderSingle:sxe,ExportSingle:oxe,Conditions:zLe,RmbSingle:oOe,MoreDownSingle:sI,AddDigitsSingle:ALe,ReduceDigitsSingle:Zxe,PercentSingle:Gxe,EuroSingle:axe,RoubleSingle:sOe,DollarSingle:nxe};for(const n in e)this.register(n,e[n])}register(e,n,r){const{framework:i="react"}=r||{};return this._components.has(e)&&console.warn(`Component ${e} already exists.`),this._components.set(e,{framework:i,component:n}),this._componentsReverse.set(n,e),$t(()=>{this._components.delete(e),this._componentsReverse.delete(n)})}getKey(e){return this._componentsReverse.get(e)}get(e){if(!e)return;const n=this._components.get(e);if((n==null?void 0:n.framework)==="react")return n.component;if((n==null?void 0:n.framework)==="vue3")return r=>E.cloneElement(E.createElement(wOe,{component:n.component,props:{...r}}))}delete(e){this._components.delete(e)}};Q(ROe,"ComponentManager");let ja=ROe;async function AOe(t,e,n){try{const{h:r,render:i}=await Fn(async()=>{const{h:s,render:l}=await import("./vue.1762932289438.js").then(u=>u.v);return{h:s,render:l}},[]),a=r(t,n),o=document.createElement("div");return document.body.appendChild(o),i(a,e),()=>{document.body.removeChild(o)}}catch{}}Q(AOe,"renderVue3Component");function wOe(t){const e=E.useRef(null),{component:n,props:r}=t;return E.useEffect(()=>{if(!e.current)return;const i=AOe(n,e.current,r);return()=>{i.then(a=>a==null?void 0:a())}},[r]),E.createElement("div",{ref:e})}Q(wOe,"VueComponentWrapper");var Use,Hse;const RR=class{constructor(){gn(this,"_list",new Map)}setIndex(e,n){this._list.set(e,n)}getIndex(e){return this._list.get(e)}removeIndex(e){this._list.delete(e)}getMaxIndex(){let e=-9999999;return this._list.forEach(n=>{+n>e&&(e=+n)}),e}};Use=new WeakMap,Hse=new WeakMap,Q(RR,"ZIndexManager"),Bse(RR,Use,2147483647),Bse(RR,Hse,-2147483647);let DOe=RR;function vn(t,e,n){const r=t.get(Ce);return new On(i=>{const a=r.focused$.subscribe(l=>{if(l==null||n&&n!==l)return i.next(!0);const u=r.getUnitType(l);i.next(u!==e)}),o=r.getFocusedUnit();if(o==null)return i.next(!0);const s=r.getUnitType(o.getUnitId());return i.next(s!==e),()=>a.unsubscribe()})}Q(vn,"getMenuHiddenObservable");function Fee(t){const e=t.get(Ce);return new On(n=>{const r=e.focused$.subscribe(o=>{if(o==null)return n.next(!0);const s=e.getUniverDocInstance(o),l=s==null?void 0:s.getSnapshot().documentStyle.documentFlavor;n.next(l!==Gg.TRADITIONAL)}),i=e.getCurrentUniverDocInstance();if(i==null)return n.next(!0);const a=i==null?void 0:i.getSnapshot().documentStyle.documentFlavor;return n.next(a!==Gg.TRADITIONAL),()=>r.unsubscribe()})}Q(Fee,"getHeaderFooterMenuHiddenObservable");function Vee(t,e){return!e||!t||(["group","type","icon","title","tooltip","positions"].forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),["hidden","disabled","activated"].forEach(n=>{IOe(t,`${n}$`,e[n])})),t}Q(Vee,"mergeMenuConfigs");function IOe(t,e,n){if(n!==void 0)if(t[e]){const r=t[e].pipe(Ei(()=>new Pn(n)));t[e]=r}else t[e]=new On(r=>{r.next(n)})}Q(IOe,"updateReactiveProperty");var My=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bee(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Q(Bee,"getDefaultExportFromCjs");var POe={exports:{}},dL={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var gOt=Re,pOt=Symbol.for("react.element"),vOt=Symbol.for("react.fragment"),_Ot=Object.prototype.hasOwnProperty,COt=gOt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SOt={key:!0,ref:!0,__self:!0,__source:!0};function Uee(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)_Ot.call(e,r)&&!SOt.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:pOt,type:t,key:a,ref:o,props:i,_owner:COt.current}}Q(Uee,"q$1");dL.Fragment=vOt;dL.jsx=Uee;dL.jsxs=Uee;POe.exports=dL;var We=POe.exports;function Kz(t){return typeof t=="function"?t():t}Q(Kz,"unwrap");function ai(t,e,n,r){if(typeof t=="function"&&!r)throw new Error("[useObservable]: expect deps when observable is a function! Otherwise it would cause an infinite loop.");const i=E.useRef(null),a=E.useRef(!1),o=E.useMemo(()=>t,[...typeof r<"u"?r:[t]]),[s,l]=E.useState(0),u=E.useRef((()=>{let c;return o&&Kz(o).subscribe(d=>{a.current=!0,c=d}).unsubscribe(),c??e})());if(E.useEffect(()=>{let c=null;return o&&(i.current=Kz(o),c=i.current.subscribe(d=>{u.current=d,l(h=>h+1)})),()=>c==null?void 0:c.unsubscribe()},[o]),n&&!a.current)throw new Error("[useObservable]: expect shouldHaveSyncValue but not getting a sync value!");return u.current}Q(ai,"useObservable");function _u(t){const{title:e,icon:n,label:r,value:i,value$:a}=t,o=Ne(sn),s=Ne(ja),l=[];let u=0,c=i;a&&(c=ai(a,void 0,!0));let d;bv(n)?d=ai(n,void 0,!0):d=n;let h=!1;if(c&&typeof c=="string"&&(h=new Zs(c).isValid),n){const f=s.get(d??"");f&&l.push(We.jsx(f,{extend:{colorChannel1:h?c:"rgb(var(--primary-color))"}},u++))}if(r){const f=typeof r=="string",m=f?{...t}:{...r==null?void 0:r.props,...t},g=f?r:r==null?void 0:r.name,p=s.get(g);p?l.push(We.jsx(p,{...m,value:c},u++)):l.push(We.jsx("span",{children:o.t(g)},u++))}return e&&l.push(We.jsx("span",{children:typeof e=="string"?o.t(e):e},u++)),We.jsx(We.Fragment,{children:l})}Q(_u,"CustomLabel");const bOt="univer-ui-plugin-sheets-font-family",yOt="univer-ui-plugin-sheets-font-family-item",MOe={uiPluginSheetsFontFamily:bOt,uiPluginSheetsFontFamilyItem:yOt},Hee=Q(t=>{const{value:e}=t,n=Ne(sn),r=E.useMemo(()=>{if(e==null)return"";let i=n.t(`fontFamily.${`${e??""}`.replace(/\s/g,"")}`);return i.startsWith("fontFamily.")&&typeof e=="string"&&(i=e.split(",")[0]),i},[e]);return We.jsx("div",{className:MOe.uiPluginSheetsFontFamily,style:{fontFamily:e},children:r})},"FontFamily"),jee=Q(t=>{const{value:e}=t,n=Ne(sn);return We.jsx("span",{className:MOe.uiPluginSheetsFontFamilyItem,style:{fontFamily:e},children:n.t(`fontFamily.${`${e??""}`.replace(/\s/g,"")}`)})},"FontFamilyItem"),Zz=[{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"}],EOt="univer-ui-plugin-sheets-font-size",ROt="univer-ui-plugin-sheets-font-size-input",jse={uiPluginSheetsFontSize:EOt,uiPluginSheetsFontSizeInput:ROt},$ee=Q(t=>{const{value:e,min:n,max:r,onChange:i,disabled$:a}=t,o=ai(a),[s,l]=E.useState(Number(e??0)),u=E.useMemo(()=>Number(e??s),[e]);function c(h){h!==null&&l(h)}Q(c,"handleChange");function d(h){h.stopPropagation(),h.code==="Enter"&&i(s.toString())}return Q(d,"handleStopPropagation"),We.jsx("div",{className:jse.uiPluginSheetsFontSize,children:We.jsx(uh,{className:jse.uiPluginSheetsFontSizeInput,value:u,controls:!1,min:n,max:r,onKeyDown:d,onChange:c,disabled:o})})},"FontSize"),TOe=[{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 LOe={};Object.defineProperty(LOe,"__esModule",{value:!0});var xOe=LOe.default=OOe;function OOe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}Q(OOe,"canUseDom$1");function US(t){const e=E.useRef(t);return e.current=t,E.useCallback((...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}Q(US,"useEvent$1");function NOe(t,e){const n=US(()=>{if(!t||!e)return;const r=t.style,i=t.getBoundingClientRect(),{y:a}=i,o=e.getBoundingClientRect(),s=t.scrollHeight>i.height,l=a<0||a+i.height>o.height;if(!l&&!s){r.overflowY="",r.maxHeight="";return}l&&(r.overflowY="scroll",r.maxHeight=a<0?`${t.scrollHeight+a}px`:`${o.height-a}px`)});E.useEffect(()=>{if(!xOe()||!t||!e)return;n();const r=JK(n);return r.observe(t),()=>{r.unobserve(t)}},[t,e])}Q(NOe,"useScrollYOverContainer");var AOt=Object.defineProperty,wOt=Object.getOwnPropertyDescriptor,DOt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?wOt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&AOt(e,n,i),i},"__decorateClass$i"),Ty=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i");const kOe=class{constructor(e){gn(this,"_focus",!1),gn(this,"_valueLegality",!0),gn(this,"_openForSheetUnitId"),gn(this,"_openForSheetSubUnitId"),this._param=e,this._openForSheetUnitId=this._param.openForSheetUnitId,this._openForSheetSubUnitId=this._param.openForSheetSubUnitId}get documentDataModel(){return this._param.documentDataModel}get editorUnitId(){return this._param.editorUnitId}get cancelDefaultResizeListener(){return this._param.cancelDefaultResizeListener}get render(){return this._param.render}isSingleChoice(){return this._param.isSingleChoice}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.isReadonly===!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 e;return(((e=this._param.documentDataModel.getBody())==null?void 0:e.dataStream)||"").replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,"")}getBody(){return this._param.documentDataModel.getBody()}update(e){this._param={...this._param,...e}}verticalAlign(){var e,n;const r=(e=this._param)==null?void 0:e.documentDataModel;if(r==null)return;const{width:i,height:a}=this._param.editorDom.getBoundingClientRect();if(a===0||i===0)return;if(!this.isSingle()){r.updateDocumentDataPageSize(i,void 0);return}let o=ba.fs;(n=this._param.canvasStyle)!=null&&n.fontSize&&(o=this._param.canvasStyle.fontSize);const s=(a-o*4/3)/2-2;r.updateDocumentDataMargin({t:s<0?0:s}),r.updateDocumentDataPageSize(void 0,void 0)}updateCanvasStyle(){var e;const n=this._param.documentDataModel;if(n==null)return;const r={};(e=this._param.canvasStyle)!=null&&e.fontSize&&(r.textStyle==null&&(r.textStyle={}),r.textStyle.fs=this._param.canvasStyle.fontSize),n.updateDocumentStyle(r)}};Q(kOe,"Editor");let IOt=kOe;var wk;let lI=(wk=class extends et{constructor(t,e,n,r){super(),gn(this,"_editors",new Map),gn(this,"_focusEditorUnitId"),gn(this,"_state$",new Zt),gn(this,"state$",this._state$.asObservable()),gn(this,"_currentSheetUnitId"),gn(this,"_currentSheetSubUnitId"),gn(this,"_inputFormula$",new Zt),gn(this,"inputFormula$",this._inputFormula$.asObservable()),gn(this,"_resize$",new Zt),gn(this,"resize$",this._resize$.asObservable()),gn(this,"_closeRangePrompt$",new Zt),gn(this,"closeRangePrompt$",this._closeRangePrompt$.asObservable()),gn(this,"_blur$",new Zt),gn(this,"blur$",this._blur$.asObservable()),gn(this,"_focus$",new Zt),gn(this,"focus$",this._focus$.asObservable()),gn(this,"_setValue$",new Zt),gn(this,"setValue$",this._setValue$.asObservable()),gn(this,"_valueChange$",new Zt),gn(this,"valueChange$",this._valueChange$.asObservable()),gn(this,"_focusStyle$",new Zt),gn(this,"focusStyle$",this._focusStyle$.asObservable()),gn(this,"_singleSelection$",new Zt),gn(this,"singleSelection$",this._singleSelection$.asObservable()),gn(this,"_spreadsheetFocusState",!1),this._univerInstanceService=t,this._renderManagerService=e,this._lexerTreeBuilder=n,this._contextService=r}setFocusId(t){this._focusEditorUnitId=t}getFocusId(){return this._focusEditorUnitId}getFocusEditor(){if(this._focusEditorUnitId)return this.getEditor(this._focusEditorUnitId)}isEditor(t){return this._editors.has(t)}isSheetEditor(t){const e=this._editors.get(t);return!!(e&&e.isSheetEditor())}closeRangePrompt(){const t=this._univerInstanceService.getCurrentUniverDocInstance();if(!t)return;const e=t.getUnitId();this._contextService.setContextValue(ha,!1),this._contextService.setContextValue(Dg,!1),!(!this.isEditor(e)||this.isSheetEditor(e))&&(this.changeSpreadsheetFocusState(!1),this.blur())}changeSpreadsheetFocusState(t){this._spreadsheetFocusState=t}getSpreadsheetFocusState(){return this._spreadsheetFocusState}focusStyle(t){const e=this.getEditor(t);if(!e)return!1;e.setFocus(!0),this._contextService.setContextValue(ha,!0),this._contextService.setContextValue(Dg,!0),this._contextService.setContextValue(S4,e.isSingle()),this._spreadsheetFocusState||this.singleSelection(e.isSingleChoice()),this._focusStyle$.next(t),this.setFocusId(t)}singleSelection(t){this._singleSelection$.next(t)}selectionChangingState(){const t=this.getFocusId();if(t==null)return!0;const e=this.getEditor(t);return!e||e.isSheetEditor()||e.isFormulaEditor()?!0:e.onlyInputRange()!==!0&&e.onlyInputFormula()!==!0?(this.blur(),!0):e.onlyInputFormula()===!0&&this._contextService.getContextValue(Um)!==!0?(this.blur(),!0):!this.getSpreadsheetFocusState()}blur(){this._spreadsheetFocusState||(this._closeRangePrompt$.next(null),this.singleSelection(!1),this.setFocusId(null),this._contextService.setContextValue(ha,!1),this._contextService.setContextValue(Dg,!1)),this.getAllEditor().forEach(t=>{t.setFocus(!1)}),this._focusStyle$.next(),this._blur$.next(null)}focus(t=(e=>(e=this._univerInstanceService.getCurrentUniverDocInstance())==null?void 0:e.getUnitId())()){if(t==null)return;const e=this.getEditor(t);if(e==null)return;this._univerInstanceService.setCurrentUnitForType(t);const n=e.getValue().length;this.focusStyle(t),this._focus$.next({startOffset:n-2,endOffset:n-2})}setFormula(t,e=this._getCurrentEditorUnitId()){this._inputFormula$.next({formulaString:t,editorUnitId:e})}setValue(t,e=this._getCurrentEditorUnitId()){this.setValueNoRefresh(t,e),this._refreshValueChange(e)}setValueNoRefresh(t,e){this._setValue$.next({body:{dataStream:t},editorUnitId:e}),this.resize(e)}getValue(t){const e=this.getEditor(t);if(e!=null)return e.getValue()}setRichValue(t,e=this._getCurrentEditorUnitId()){this._setValue$.next({body:t,editorUnitId:e}),this._refreshValueChange(e)}getRichValue(t){const e=this.getEditor(t);if(e!=null)return e.getBody()}dispose(){this._state$.complete(),this._editors.clear(),super.dispose()}getEditor(t=this._getCurrentEditorUnitId()){return this._editors.get(t)}getAllEditor(){return this._editors}getFirstEditor(){return[...this.getAllEditor().values()][0]}resize(t){const e=this.getEditor(t);e!=null&&(e.verticalAlign(),this._resize$.next(t))}isVisible(t){var e;return(e=this.getEditor(t))==null?void 0:e.isVisible()}setOperationSheetUnitId(t){this._currentSheetUnitId=t}getOperationSheetUnitId(){return this._currentSheetUnitId}setOperationSheetSubUnitId(t){this._currentSheetSubUnitId=t}getOperationSheetSubUnitId(){return this._currentSheetSubUnitId}register(t,e){var n,r,i,a,o;const{initialSnapshot:s,editorUnitId:l,canvasStyle:u={}}=t,c=(n=this._univerInstanceService.getUnit(l,le.UNIVER_DOC))!=null?n:this._univerInstanceService.createUnit(le.UNIVER_DOC,s||this._getBlank(l),{makeCurrent:!1});let d=this._renderManagerService.getRenderById(l);if(d==null&&(this._renderManagerService.create(l),d=this._renderManagerService.getRenderById(l)),d){d.engine.setContainer(e);const h=new IOt({...t,render:d,documentDataModel:c,editorDom:e,canvasStyle:u});this._editors.set(l,h),(o=(a=(i=(r=d.mainComponent)==null?void 0:r.getScene())==null?void 0:i.getViewports())==null?void 0:a[0].getScrollBar())==null||o.dispose(),h.isSheetEditor()||(h.verticalAlign(),h.updateCanvasStyle())}return $t(()=>{this._unRegister(l)})}_unRegister(t){const e=this._editors.get(t);if(!(e==null||(this._renderManagerService.removeRender(t),e.documentDataModel.dispose(),this._editors.delete(t),this._univerInstanceService.disposeUnit(t),this._contextService.setContextValue(S4,!1),!this.isSheetEditor(t)))&&this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).length>0){const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);n&&this._univerInstanceService.focusUnit(n.getUnitId())}}refreshValueChange(t){this._refreshValueChange(t)}checkValueLegality(t){const e=this._editors.get(t);if(e==null)return!0;let n=e.getValue();if(e.setValueLegality(),n=n.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,""),n.length===0)return!0;if(e.onlyInputFormula()){if(n.substring(0,1)!==di.EQUALS)return e.setValueLegality(!1),!1;const r=this._lexerTreeBuilder.checkIfAddBracket(n);e.setValueLegality(r===0)}else if(e.onlyInputRange()){const r=n.split(",");if(e.isSingleChoice()&&r.length>1)return e.setValueLegality(!1),!1;e.setValueLegality(K7(n))}return e.isValueLegality()}_refreshValueChange(t){const e=this.getEditor(t);e!=null&&this._valueChange$.next(e)}_getCurrentEditorUnitId(){return this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()}_getBlank(t){return{id:t,body:{dataStream:`${Sd}`,textRuns:[],paragraphs:[{startIndex:0}]},documentStyle:{renderConfig:{verticalAlign:ea.TOP,horizontalAlign:dr.LEFT},marginLeft:3,marginTop:0,marginRight:3}}}},Q(wk,"EditorService"),wk);lI=DOt([Ty(0,Ce),Ty(1,Sr),Ty(2,se(Kl)),Ty(3,ui)],lI);const Fo=er("univer.editor.service");function n4(t){return t.length===0?t:t.replace(/^\s+|\s+$/gm,"")}Q(n4,"textTrim");function FOe(t){if(!t)return!1;const e=window.getComputedStyle(t);if(e.display==="none"||e.visibility==="hidden"||e.opacity==="0")return!1;const n=t.getBoundingClientRect();return!(n.width===0||n.height===0||n.bottom<0||n.top>window.innerHeight||n.right<0||n.left>window.innerWidth)}Q(FOe,"isElementVisible");const POt="univer-text-editor-container",MOt="univer-text-editor-container-active",TOt="univer-text-editor-container-error",LOt="univer-text-editor-container-disabled",xOt="univer-text-editor-container-placeholder",OOt="univer-text-editor-validation-error",M3={textEditorContainer:POt,textEditorContainerActive:MOt,textEditorContainerError:TOt,textEditorContainerDisabled:LOt,textEditorContainerPlaceholder:xOt,textEditorValidationError:OOt},NOt=new Set(["snapshot","resizeCallBack","cancelDefaultResizeListener","isSheetEditor","canvasStyle","isFormulaEditor","isSingle","isReadonly","onlyInputFormula","onlyInputRange","value","onlyInputContent","isSingleChoice","openForSheetUnitId","openForSheetSubUnitId","onChange","onActive","onValid","placeholder"]);function Gp(t){const{id:e,snapshot:n,resizeCallBack:r,cancelDefaultResizeListener:i,isSheetEditor:a=!1,canvasStyle:o={},value:s,isSingle:l=!0,isReadonly:u=!1,isFormulaEditor:c=!1,onlyInputFormula:d=!1,onlyInputRange:h=!1,onlyInputContent:f=!1,isSingleChoice:m=!1,openForSheetUnitId:g,openForSheetSubUnitId:p,onChange:v,onActive:_,onValid:C,isValueValid:S=!0,placeholder:b}=t,y=Ne(Fo),A=Ne(sn),[w,P]=E.useState(""),[M,L]=E.useState(""),[k,O]=E.useState(S),[$,B]=E.useState([0,0]),V=E.useRef(null),[X,z]=E.useState(!1);if(!oh(e))throw new Error("Invalid editor ID");E.useEffect(()=>{const G=V.current;if(!G)return;const te=new ResizeObserver(()=>{i!==!0&&y.resize(e),r&&r(G)});te.observe(G);const Y=y.register({editorUnitId:e,initialSnapshot:n,cancelDefaultResizeListener:i,isSheetEditor:a,canvasStyle:o,isSingle:l,isReadonly:u,isSingleChoice:m,onlyInputFormula:d,onlyInputRange:h,onlyInputContent:f,openForSheetUnitId:g,openForSheetSubUnitId:p,isFormulaEditor:c},G);y.setValueNoRefresh(s||"",e),P(b||"");const ae=_4(Pe=>{z(Pe),_&&_(Pe)},30),ie=160,ne=_4(Pe=>{const De=Pe.editorUnitId,Ee=y.checkValueLegality(De);setTimeout(()=>{const ye=Pe.getBoundingClientRect();B([ye.left,ye.top-16]),ye.left+ye.top>0&&O(Ee),Pe.onlyInputFormula()?L(A.t("textEditor.formulaError")):L(A.t("textEditor.rangeError"))},ie),y.getValue(De)!==s&&(C&&C(Ee),v&&v(y.getValue(e)))},30),de=y.focusStyle$.subscribe(Pe=>{let De=!1;Pe===e&&(De=!0),ae(De),setTimeout(()=>{if(!FOe(G))O(!0);else{const Ee=y.getEditor(e);Ee&&ne(Ee)}},ie)}),_e=y.valueChange$.subscribe(Pe=>{if(Pe.isSheetEditor()||Pe.editorUnitId!==e)return;const De=y.getFocusEditor();De&&De.editorUnitId!==e||ne(Pe)});return()=>{te.unobserve(G),te.disconnect(),Y.dispose(),de==null||de.unsubscribe(),_e==null||_e.unsubscribe()}},[]),E.useEffect(()=>{const G=y.getEditor(e);G!=null&&G.update({isReadonly:u,isSingle:l,isSingleChoice:m,onlyInputContent:f,onlyInputFormula:d,onlyInputRange:h,openForSheetSubUnitId:p,openForSheetUnitId:g})},[u,l,m,f,d,h,p,g]),E.useEffect(()=>{s!=null&&y.setValueNoRefresh(s,e)},[s]),E.useEffect(()=>{O(S)},[S]);function F(){const G=y.getValue(e);return!(G==null||G==="")}Q(F,"hasValue");const H=Object.fromEntries(Object.entries(t).filter(([G])=>!NOt.has(G)));let W=M3.textEditorContainer;t.className!=null&&(W=t.className);let K="";return t.className==null&&(u?K=` ${M3.textEditorContainerDisabled}`:k?X&&(K=` ${M3.textEditorContainerActive}`):K=` ${M3.textEditorContainerError}`),We.jsx(We.Fragment,{children:We.jsxs("div",{...H,className:W+K,ref:V,children:[We.jsx("div",{style:{display:k?"none":"block"},className:M3.textEditorValidationError,children:M}),We.jsx("div",{style:{display:F()?"none":"unset"},className:M3.textEditorContainerPlaceholder,children:w})]})})}Q(Gp,"TextEditor");function kOt(t,e,...n){return t.t(e)}Q(kOt,"t$1");function FOt(t){const e=E.useRef(t);return e.current=t,e}Q(FOt,"useLatest");var VOt=Object.defineProperty,BOt=Object.getOwnPropertyDescriptor,UOt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?BOt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&VOt(e,n,i),i},"__decorateClass$h"),Dk=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h");const HOt="FOCUSING_UNIVER",jOt=["univer-app-layout","univer-toolbar-btn","univer-menu-item","univer-button","univer-sheet-bar-btn","univer-render-canvas","univer-workbench-layout"],$Ot=["univer-editor","univer-range-selector","univer-range-selector-editor","univer-render-canvas","univer-text-editor-container-placeholder"],Os=er("ui.layout-service");var Ik;let uI=(Ik=class extends et{constructor(t,e,n){super(),gn(this,"_rootContainerElement",null),gn(this,"_isFocused",!1),gn(this,"_focusHandlers",new Map),gn(this,"_contentElements",[]),gn(this,"_allContainers",[]),this._contextService=t,this._univerInstanceService=e,this._editorService=n,this._initUniverFocusListener(),this._initEditorStatus()}get isFocused(){return this._isFocused}get rootContainerElement(){return this._rootContainerElement}focus(){const t=this._univerInstanceService.getFocusedUnit();if(!t)return;let e;t instanceof b4?e=this._focusHandlers.get(le.UNIVER_SHEET):t instanceof sh?e=this._focusHandlers.get(le.UNIVER_DOC):t instanceof EG&&(e=this._focusHandlers.get(le.UNIVER_SLIDE)),e&&e(t.getUnitId())}registerFocusHandler(t,e){if(this._focusHandlers.has(t))throw new Error(`[DesktopLayoutService]: handler of type ${t} bas been registered!`);return this._focusHandlers.set(t,e),$t(()=>this._focusHandlers.delete(t))}registerContentElement(t){if(this._contentElements.indexOf(t)===-1)return this._contentElements.push(t),$t(()=>Zu(this._contentElements,t));throw new Error("[DesktopLayoutService]: content container already registered!")}getContentElement(){return this._contentElements[0]}registerRootContainerElement(t){if(this._rootContainerElement)throw new Error("[DesktopLayoutService]: root container already registered!");this._rootContainerElement=t;const e=this.registerContainerElement(t);return $t(()=>{this._rootContainerElement=null,e.dispose()})}registerContainerElement(t){if(this._allContainers.indexOf(t)===-1)return this._allContainers.push(t),$t(()=>Zu(this._allContainers,t));throw new Error("[LayoutService]: container already registered!")}checkElementInCurrentContainers(t){return this._allContainers.some(e=>e.contains(t))}checkContentIsFocused(){return this._contentElements.some(t=>t===document.activeElement||t.contains(document.activeElement))}_initUniverFocusListener(){this.disposeWithMe(su(window,"focusin").subscribe(t=>{const e=t.target;if(this._blurSheetEditor(e),jOt.some(n=>e.classList.contains(n))){queueMicrotask(()=>this.focus());return}e&&this.checkElementInCurrentContainers(e)?this._isFocused=!0:this._isFocused=!1,this._contextService.setContextValue(HOt,this._isFocused),this._contextService.setContextValue(Pu,Jz())}))}_initEditorStatus(){this._contextService.setContextValue(Pu,Jz())}_blurSheetEditor(t){if($Ot.some(n=>t.classList.contains(n)))return;const e=this._editorService.getFocusEditor();e&&e.isSheetEditor()!==!0&&this._editorService.blur()}},Q(Ik,"DesktopLayoutService"),Ik);uI=UOt([yn(Vt.Ready,Os),Dk(0,ui),Dk(1,Ce),Dk(2,Fo)],uI);function Jz(){var t;return!!((t=document.activeElement)!=null&&t.classList.contains("univer-editor"))}Q(Jz,"getFocusingUniverEditorStatus");var cI=(t=>(t.RIBBON="ribbon",t.CONTEXT_MENU="contextMenu",t))(cI||{}),du=(t=>(t.START="ribbon.start",t.INSERT="ribbon.insert",t.FORMULAS="ribbon.formulas",t.DATA="ribbon.data",t.VIEW="ribbon.view",t.OTHERS="ribbon.others",t))(du||{}),As=(t=>(t.HISTORY="ribbon.start.history",t.FORMAT="ribbon.start.format",t.LAYOUT="ribbon.start.layout",t.FORMULAS_INSERT="ribbon.start.insert",t.FORMULAS_VIEW="ribbon.start.view",t.FILE="ribbon.start.file",t.OTHERS="ribbon.start.others",t))(As||{}),VOe=(t=>(t.OTHERS="ribbon.insert.others",t))(VOe||{}),BOe=(t=>(t.OTHERS="ribbon.formulas.others",t))(BOe||{}),UOe=(t=>(t.OTHERS="ribbon.data.others",t))(UOe||{}),HOe=(t=>(t.OTHERS="ribbon.view.others",t))(HOe||{}),Wee=(t=>(t.OTHERS="ribbon.others.others",t))(Wee||{}),Xa=(t=>(t.MAIN_AREA="contextMenu.mainArea",t.COL_HEADER="contextMenu.colHeader",t.ROW_HEADER="contextMenu.rowHeader",t.FOOTER_TABS="contextMenu.footerTabs",t.FOOTER_MENU="contextMenu.footerMenu",t))(Xa||{}),ei=(t=>(t.FORMAT="contextMenu.format",t.LAYOUT="contextMenu.layout",t.DATA="contextMenu.data",t.OTHERS="contextMenu.others",t))(ei||{}),Nd=(t=>(t.VOID="void",t[t.TOOLBAR_START=du.START]="TOOLBAR_START",t[t.TOOLBAR_INSERT=du.INSERT]="TOOLBAR_INSERT",t[t.TOOLBAR_FORMULAS=du.FORMULAS]="TOOLBAR_FORMULAS",t[t.TOOLBAR_DATA=du.DATA]="TOOLBAR_DATA",t[t.TOOLBAR_VIEW=du.VIEW]="TOOLBAR_VIEW",t[t.TOOLBAR_OTHERS=du.OTHERS]="TOOLBAR_OTHERS",t[t.CONTEXT_MENU=Xa.MAIN_AREA]="CONTEXT_MENU",t.FOOTER="footer",t))(Nd||{}),jOe=(t=>(t[t.TOOLBAR_HISTORY=0]="TOOLBAR_HISTORY",t[t.TOOLBAR_FORMAT=1]="TOOLBAR_FORMAT",t[t.TOOLBAR_LAYOUT=2]="TOOLBAR_LAYOUT",t[t.TOOLBAR_FORMULAS_INSERT=3]="TOOLBAR_FORMULAS_INSERT",t[t.TOOLBAR_FORMULAS_VIEW=4]="TOOLBAR_FORMULAS_VIEW",t[t.TOOLBAR_FILE=5]="TOOLBAR_FILE",t[t.TOOLBAR_OTHERS=6]="TOOLBAR_OTHERS",t[t.CONTEXT_MENU_FORMAT=7]="CONTEXT_MENU_FORMAT",t[t.CONTEXT_MENU_LAYOUT=8]="CONTEXT_MENU_LAYOUT",t[t.CONTEXT_MENU_DATA=9]="CONTEXT_MENU_DATA",t[t.CONTEXT_MENU_OTHERS=10]="CONTEXT_MENU_OTHERS",t))(jOe||{}),Tt=(t=>(t[t.BUTTON=0]="BUTTON",t[t.SELECTOR=1]="SELECTOR",t[t.BUTTON_SELECTOR=2]="BUTTON_SELECTOR",t[t.SUBITEMS=3]="SUBITEMS",t))(Tt||{}),WOt=Object.defineProperty,zOt=Object.getOwnPropertyDescriptor,qOt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?zOt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&WOt(e,n,i),i},"__decorateClass$g"),$se=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g");const sl=er("univer.menu-manager-service");var Pk;let dI=(Pk=class extends et{constructor(t,e){super(),gn(this,"menuChanged$",new Zt),gn(this,"_menu",{[cI.RIBBON]:{[du.START]:{order:0,[As.HISTORY]:{order:0},[As.FORMAT]:{order:1},[As.LAYOUT]:{order:2},[As.FORMULAS_INSERT]:{order:3},[As.FORMULAS_VIEW]:{order:4},[As.FILE]:{order:5},[As.OTHERS]:{order:6}},[du.INSERT]:{order:1,[VOe.OTHERS]:{order:0}},[du.FORMULAS]:{order:2,[BOe.OTHERS]:{order:0}},[du.DATA]:{order:3,[UOe.OTHERS]:{order:0}},[du.VIEW]:{order:4,[HOe.OTHERS]:{order:0}},[du.OTHERS]:{order:5,[Wee.OTHERS]:{order:0}}},[cI.CONTEXT_MENU]:{[Xa.MAIN_AREA]:{order:0,[ei.FORMAT]:{order:0},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.COL_HEADER]:{order:1,[ei.FORMAT]:{order:0},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.ROW_HEADER]:{order:2,[ei.FORMAT]:{order:0},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.FOOTER_TABS]:{order:3,[ei.FORMAT]:{order:0},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.FOOTER_MENU]:{order:4,[ei.OTHERS]:{order:3}}}}),this._injector=t,this._configService=e}dispose(){this.menuChanged$.complete()}mergeMenu(t,e){const n=e??this._menu;for(const[r,i]of Object.entries(n))if(r in t){const a=r;Ie.deepMerge(n[a],t[a]),this.menuChanged$.next()}else this.mergeMenu(t,i)}appendRootMenu(t){Ie.deepMerge(this._menu,t),this.menuChanged$.next()}_buildMenuSchema(t){const e=[];for(const[n,r]of Object.entries(t)){const i={key:n,order:r.order};if(r.menuItemFactory){const o=this._injector.invoke(r.menuItemFactory);if(o){const s=this._configService.getConfig("menu");if(s&&o.id in s){const l=o.id;i.item=Vee(o,s[l])}else i.item=o}}const a=this._buildMenuSchema(r);a.length>0&&(i.children=a.sort((o,s)=>o.order-s.order)),(i.item||i.children)&&e.push(i)}return e}getMenuByPositionKey(t){const e=Q(n=>{if(t in n)return this._buildMenuSchema(n[t]);for(const r in n){if(r===t)return this._buildMenuSchema(n[r]);if(typeof n[r]=="object"){const i=e(n[r]);if(i)return i}}},"findKey");return e(this._menu)}},Q(Pk,"MenuManagerService"),Pk);dI=qOt([$se(0,se(Wn)),$se(1,Za)],dI);const YOt="univer-menu-item-no-hover",XOt="univer-menu-item-activated",GOt="univer-menu-item-content",QOt="univer-menu-item-selectable",KOt="univer-menu-item-selectable-icon",ZOt="univer-menu-item-more-icon",W1={menuItemNoHover:YOt,menuItemActivated:XOt,menuItemContent:GOt,menuItemSelectable:QOt,menuItemSelectableIcon:KOt,menuItemMoreIcon:ZOt};function zee(t){const{menuType:e,onOptionSelect:n}=t,r=Ne(sl);if(!e)return null;const i=r.getMenuByPositionKey(e);return i&&i.map(a=>{var o;return a.item?We.jsx(eq,{menuItem:a.item,onClick:Q(s=>{n==null||n({value:"",label:a.key,...s})},"onClick")},a.key):(o=a.children)!=null&&o.length?We.jsx(g3e,{eventKey:a.key,children:a.children.map(s=>s.item&&We.jsx(eq,{menuItem:s.item,onClick:Q(l=>{n==null||n({value:"",label:s.key,...l})},"onClick")},s.key))},a.key):null})}Q(zee,"MenuWrapper");function qee(t){var e;const{options:n,value:r,onOptionSelect:i,parentKey:a}=t;return(e=n==null?void 0:n.map((o,s)=>{var l,u,c;const d=`${a}-${(l=o.label)!=null?l:o.id}-${s}`,h=Q(g=>{i==null||i({value:g,label:o==null?void 0:o.label,commandId:o==null?void 0:o.commandId})},"onChange"),f=Q(()=>{typeof o.value>"u"||i==null||i({...o})},"handleClick"),m=hr({[W1.menuItemNoHover]:typeof o.label!="string"&&!((u=o.label)!=null&&u.hoverable)});return We.jsx(Kv,{disabled:o.disabled,eventKey:d,className:m,onClick:f,children:We.jsxs("span",{className:hr(W1.menuItemContent,{[W1.menuItemSelectable]:!(typeof o.label!="string"&&!((c=o.label)!=null&&c.hoverable))}),children:[typeof r<"u"&&String(r)===String(o.value)&&We.jsx("span",{className:W1.menuItemSelectableIcon,children:We.jsx(HLe,{style:{color:"rgb(var(--success-color))"}})}),We.jsx(_u,{value$:o.value$,value:o.value,label:o.label,icon:o.icon,onChange:h})]})},d)}))!=null?e:null}Q(qee,"MenuOptionsWrapper");const hI=Q(t=>{const{overViewport:e,...n}=t,[r,i]=E.useState(),a=Ne(Os);return NOe(e==="scroll"?r:null,a.rootContainerElement),We.jsxs(m3e,{ref:Q(o=>(o==null?void 0:o.list)&&i(o.list),"ref"),selectable:!1,children:[We.jsx(qee,{...n}),We.jsx(zee,{...n})]})},"Menu");function eq({menuItem:t,onClick:e}){const n=Ne(sl),r=ai(t.disabled$,!1),i=ai(t.activated$,!1),a=ai(t.hidden$,!1),o=ai(t.value$),s=t,l=ai(bv(s.selections)?s.selections:void 0),[u,c]=E.useState(o);if(a)return null;const d=Q(p=>{const v=Kr(p)&&typeof p=="string"?Number.parseInt(p):p;c(v)},"onChange"),h=Q(()=>{const p=t,{title:v,label:_}=p;return We.jsx(Kv,{eventKey:p.id,disabled:r,className:hr({[W1.menuItemActivated]:i}),onClick:Q(()=>{e({commandId:p.commandId,value:u,id:p.id})},"onClick"),children:We.jsx("span",{className:W1.menuItemContent,children:We.jsx(_u,{value:o,title:v,label:_,icon:p.icon,onChange:d})})},p.id)},"renderButtonType"),f=Q(()=>{var p;const v=(p=l??s.selections)!=null?p:[];return v.length>0?We.jsx(E$,{eventKey:s.id,popupOffset:[18,0],title:We.jsxs("span",{className:W1.menuItemContent,children:[We.jsx(_u,{title:s.title,value:u,onChange:d,icon:s.icon,label:s.label}),s.shortcut&&` (${s.shortcut})`]}),expandIcon:We.jsx(Gz,{className:W1.menuItemMoreIcon}),children:v.length>0&&We.jsx(qee,{parentKey:s.id,menuType:s.id,options:v,onOptionSelect:Q(_=>{e({value:_.value,id:s.id,commandId:_.commandId})},"onOptionSelect")})},s.id):We.jsx(Kv,{eventKey:s.id,children:We.jsxs("span",{className:W1.menuItemContent,children:[We.jsx(_u,{title:s.title,value:u,icon:s.icon,label:s.label,onChange:d}),s.shortcut&&` (${s.shortcut})`]})},s.id)},"renderSelectorType"),m=t.id?n.getMenuByPositionKey(t.id):[],g=Q(()=>{const p=t;return We.jsx(E$,{eventKey:p.id,popupOffset:[18,0],title:We.jsx("span",{className:W1.menuItemContent,children:We.jsx(_u,{title:p.title,icon:p.icon,label:p.label,onChange:d})}),expandIcon:We.jsx(Gz,{className:W1.menuItemMoreIcon}),children:m.length&&We.jsx(zee,{menuType:p.id,parentKey:p.id,onOptionSelect:e})},p.id)},"renderSubItemsType");return We.jsxs(We.Fragment,{children:[t.type===Tt.SELECTOR&&f(),t.type===Tt.SUBITEMS&&g(),t.type===Tt.BUTTON&&h()]})}Q(eq,"MenuItem");const $Oe=class extends et{constructor(){super(...arguments),gn(this,"_taskCount",0),gn(this,"_progressChange$",new Zt),gn(this,"_progressVisible$",new Zt),gn(this,"progressChange$",this._progressChange$.asObservable()),gn(this,"progressVisible$",this._progressVisible$.asObservable())}dispose(){super.dispose(),this._clear(),this._progressChange$.complete(),this._progressVisible$.complete()}pushTask(e){if(this._taskCount===0)return;const{count:n}=e;if(n<=0)return;const r=Math.min(1,n/this._taskCount);this._progressChange$.next({step:r}),this._taskCount-=n,this._taskCount<0&&(this._taskCount=0),this._taskCount===0&&this._progressVisible$.next(!1)}insertTaskCount(e){e<=0||(this._taskCount===0&&this._progressVisible$.next(!0),this._taskCount+=e)}complete(){this._taskCount!==0&&(this._progressChange$.next({step:1}),this._clear(),this._progressVisible$.next(!1))}stop(){this._taskCount!==0&&(this._clear(),this._progressVisible$.next(!1))}getTaskCount(){return this._taskCount}_clear(){this._taskCount=0}};Q($Oe,"ProgressService");let WOe=$Oe;const hL=er("univer.progress.service"),JOt="univer-progress-bar",eNt="univer-progress-bar-container",tNt="univer-progress-bar-inner",nNt="univer-progress-bar-close-button",Ly={progressBar:JOt,progressBarContainer:eNt,progressBarInner:tNt,progressBarCloseButton:nNt};function zOe(t){const{barColor:e}=t,n=Ne(hL),r=E.useRef(null),[i,a]=E.useState(!1);E.useEffect(()=>{const s=n.progressVisible$.subscribe(u=>{u?a(u):setTimeout(()=>{a(u),r.current&&(r.current.style.width="0%")},500)}),l=n.progressChange$.subscribe(u=>{const{step:c}=u;if(r.current){const d=Number.parseFloat(r.current.style.width)||0,h=d+(100-d)*c;r.current.style.width=`${h}%`}});return()=>{s.unsubscribe(),l.unsubscribe()}},[]);function o(){n.stop()}return Q(o,"handleClose"),We.jsxs("div",{className:Ly.progressBarContainer,style:{display:i?"flex":"none"},children:[We.jsx("div",{className:Ly.progressBar,children:We.jsx("div",{ref:r,className:Ly.progressBarInner,style:{backgroundColor:e}})}),We.jsx("div",{className:Ly.progressBarCloseButton,onClick:o,children:We.jsx(BS,{})})]})}Q(zOe,"ProgressBar");const qOe=class extends et{constructor(){super(...arguments),gn(this,"_currentSelectorId"),gn(this,"_selectionChange$",new Zt),gn(this,"selectionChange$",this._selectionChange$.asObservable()),gn(this,"_openSelector$",new Zt),gn(this,"openSelector$",this._openSelector$.asObservable()),gn(this,"_selectorModalVisible$",new Pn(!1)),gn(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)}};Q(qOe,"RangeSelectorService");let YOe=qOe;const fL=er("univer.range-selector.service"),rNt="univer-range-selector",iNt="univer-range-selector-editor",aNt="univer-range-selector-icon",oNt="univer-range-selector-active",sNt="univer-range-selector-error",lNt="univer-range-selector-disabled",uNt="univer-range-selector-modal",cNt="univer-range-selector-modal-container",dNt="univer-range-selector-modal-container-input",hNt="univer-range-selector-modal-container-input-active",fNt="univer-range-selector-modal-container-button",mNt="univer-range-selector-modal-container-delete-button",gNt="univer-range-selector-modal-add",pNt="univer-range-selector-modal-add-button",Vs={rangeSelector:rNt,rangeSelectorEditor:iNt,rangeSelectorIcon:aNt,rangeSelectorActive:oNt,rangeSelectorError:sNt,rangeSelectorDisabled:lNt,rangeSelectorModal:uNt,rangeSelectorModalContainer:cNt,rangeSelectorModalContainerInput:dNt,rangeSelectorModalContainerInputActive:hNt,rangeSelectorModalContainerButton:fNt,rangeSelectorModalContainerDeleteButton:mNt,rangeSelectorModalAdd:gNt,rangeSelectorModalAddButton:pNt},vNt={pointerEvents:"none",cursor:"not-allowed",opacity:.5};function mL(t){const{onChange:e,id:n,value:r="",width:i=220,placeholder:a="",size:o="middle",onActive:s,onValid:l,isSingleChoice:u=!1,openForSheetUnitId:c,openForSheetSubUnitId:d,isReadonly:h=!1,className:f,textEditorClassName:m,onSelectorVisibleChange:g,disableInput:p}=t,v=US(g),[_,C]=E.useState([""]),S=Q(He=>{C(ct=>[...ct,He])},"addNewItem"),b=Q(He=>{C(ct=>ct.filter((_t,Ye)=>Ye!==He))},"removeItem"),y=Q((He,ct)=>{C(_t=>_t.map((Ye,Ot)=>Ot===He?ct:Ye))},"changeItem"),A=Q(He=>{C(ct=>{const _t=[...ct];return _t.length>0&&(_t[_t.length-1]=He),_t})},"changeLastItem"),w=Ne(Fo),P=Ne(fL),M=Ne(Ce),[L,k]=E.useState(!1),O=Ne(sn),[$,B]=E.useState(!1),[V,X]=E.useState(!0),[z,F]=E.useState(r),[H,W]=E.useState(-1),K=E.useRef(null),G=E.useRef(-1),te=E.useRef(c),Y=E.useRef(d),ae=E.useRef(u),ie=E.useRef(h),ne=Ne(Ja);E.useEffect(()=>{const He=K.current;if(!He)return;const ct=new ResizeObserver(()=>{w.resize(n)});ct.observe(He);let _t=1;const Ye=P.selectionChange$.subscribe(Ot=>{if(P.getCurrentSelectorId()!==n)return;if(Ot.length===0){_t=0;return}const An=Ot.length-_t;if(_t=Ot.length,An<0)return;const Ut=Ot[Ot.length-1];let Jt="";Ut.unitId===te.current&&Ut.sheetId===Y.current?Jt=Jo(Ut.range):Ut.unitId===te.current?Jt=Q7(Ut.sheetName,Ut.range):Jt=XT(Ut.unitId,Ut.sheetName,Ut.range),An>=1&&!ae.current?(S(Jt),W(-1)):G.current===-1?A(Jt):y(G.current,Jt)});return()=>{Ye.unsubscribe(),ct.unobserve(He)}},[]),E.useEffect(()=>{P.triggerModalVisibleChange(L)},[v,P,L]),E.useEffect(()=>()=>{P.triggerModalVisibleChange(!1)},[P]),E.useEffect(()=>{te.current=c,Y.current=d,ae.current=u,ie.current=h},[c,d,u,h]),E.useEffect(()=>{G.current=H},[H]);function de(){k(!1),v(!1),P.setCurrentSelectorId(null)}Q(de,"handleCloseModal");function _e(){ie.current!==!0&&(w.closeRangePrompt(),P.setCurrentSelectorId(n),k(!0),v(!0),z.length>0?C(V?z.split(","):[""]):P.openSelector())}Q(_e,"handleOpenModal");function Pe(He){B(He),s&&s(He)}Q(Pe,"onEditorActive");function De(He){X(He),l&&l(He)}Q(De,"onEditorValid");function Ee(){if(ie.current===!0){de();return}let He="";const ct=_.filter(_t=>sp(_t.trim()));if(ct.length===1){const _t=ct[0];sp(_t.trim())&&(He=_t.trim())}else He=ct.join(",");w.setValue(He,n),ke(He),de()}Q(Ee,"handleConform");function ye(){S(""),W(-1)}Q(ye,"handleAddRange");function Ve(He){var ct,_t;return((_t=(ct=M.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:ct.getSheetBySheetName(He))==null?void 0:_t.getSheetId())||""}Q(Ve,"getSheetIdByName");function ke(He){if(F(He||""),He==null){e&&e([]);return}const ct=cEe(He,Ve);e&&e(ct||[])}Q(ke,"handleTextValueChange");let Ke=Vs.rangeSelector;h?Ke=`${Vs.rangeSelector} ${Vs.rangeSelectorDisabled}`:V?$&&(Ke=`${Vs.rangeSelector} ${Vs.rangeSelectorActive}`):Ke=`${Vs.rangeSelector} ${Vs.rangeSelectorError}`,m&&(Ke=`${Ke} ${m}`);let $e=28;o==="mini"?$e=20:o==="small"?$e=24:o==="large"&&($e=32);const Fe=ne.getCurrentTheme();return We.jsxs(We.Fragment,{children:[We.jsxs("div",{className:Ke,ref:K,style:{width:i,height:$e},children:[We.jsx(Gp,{style:p?vNt:void 0,placeholder:a,value:r,isReadonly:h,isSingleChoice:u,openForSheetUnitId:c,openForSheetSubUnitId:d,onValid:De,onActive:Pe,onChange:ke,id:n,onlyInputRange:!0,canvasStyle:{fontSize:10},className:Vs.rangeSelectorEditor}),We.jsx(n1,{title:O.t("rangeSelector.buttonTooltip"),placement:"bottom",children:We.jsx("button",{className:Vs.rangeSelectorIcon,onClick:_e,children:We.jsx(lOe,{style:p?{color:Fe.primaryColor}:void 0})})})]}),We.jsx(qM,{width:"328px",visible:L,title:O.t("rangeSelector.title"),draggable:!0,closeIcon:We.jsx(BS,{}),footer:We.jsxs("footer",{children:[We.jsx(fa,{onClick:de,children:O.t("rangeSelector.cancel")}),We.jsx(fa,{style:{marginLeft:10},onClick:Ee,type:"primary",children:O.t("rangeSelector.confirm")})]}),onClose:de,children:We.jsxs("div",{className:hr(Vs.rangeSelectorModal,f),children:[_.map((He,ct)=>We.jsxs("div",{className:Vs.rangeSelectorModalContainer,children:[We.jsx("div",{style:{width:_.length===1?"280px":"252px"},className:Vs.rangeSelectorModalContainerInput,children:We.jsx(Qs,{className:H===ct||_.length-1===ct&&H===-1?Vs.rangeSelectorModalContainerInputActive:"",placeholder:O.t("rangeSelector.placeHolder"),affixWrapperStyle:{width:"100%"},onClick:Q(()=>W(ct),"onClick"),value:He,onChange:Q(_t=>y(ct,_t),"onChange")},`input${ct}`)}),We.jsx("div",{style:{display:_.length===1?"none":"inline-block"},className:Vs.rangeSelectorModalContainerButton,children:We.jsx(exe,{className:Vs.rangeSelectorModalContainerDeleteButton,onClick:Q(()=>b(ct),"onClick")})})]},ct)),We.jsx("div",{style:{display:u?"none":"unset"},className:Vs.rangeSelectorModalAdd,children:We.jsxs(fa,{type:"link",size:"small",onClick:ye,className:Vs.rangeSelectorModalAddButton,children:[We.jsx(Sxe,{}),We.jsx("span",{children:O.t("rangeSelector.addAnotherRange")})]})})]})})]})}Q(mL,"RangeSelector");const Mk="UNI_DISABLE_CHANGING_FOCUS",Yee="ui.config",_Nt={},Qp=er("ui.message.service");var CNt=Object.defineProperty,SNt=Object.getOwnPropertyDescriptor,bNt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?SNt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&CNt(e,n,i),i},"__decorateClass$f"),Wse=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f"),Tk;let L8=(Tk=class extends et{constructor(t,e){super(),this._errorService=t,this._messageService=e,this.disposeWithMe($t(this._errorService.error$.subscribe(n=>{this._messageService.show({content:n.errorKey,type:hT.Error})})))}},Q(Tk,"ErrorController"),Tk);L8=bNt([yn(Vt.Starting,L8),Wse(0,se(zf)),Wse(1,Qp)],L8);function XOe(t){return{id:cL.id,title:"toggle-shortcut-panel",tooltip:"toggle-shortcut-panel",icon:"KeyboardSingle",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_SHEET)}}Q(XOe,"ShortcutPanelMenuItemFactory");function GOe(t){const e=t.get(xn);return{id:TC.id,type:Tt.BUTTON,icon:"UndoSingle",title:"Undo",tooltip:"toolbar.undo",disabled$:e.undoRedoStatus$.pipe(pr(n=>n.undos<=0))}}Q(GOe,"UndoMenuItemFactory");function QOe(t){const e=t.get(xn);return{id:LC.id,type:Tt.BUTTON,icon:"RedoSingle",title:"Redo",tooltip:"toolbar.redo",disabled$:e.undoRedoStatus$.pipe(pr(n=>n.redos<=0))}}Q(QOe,"RedoMenuItemFactory");const KOe={[As.HISTORY]:{[TC.id]:{order:0,menuItemFactory:GOe},[LC.id]:{order:1,menuItemFactory:QOe}},[As.OTHERS]:{[cL.id]:{order:99,menuItemFactory:XOe}}},zse="univer.command.copy",gL={id:zse,name:zse,multi:!0,priority:0,type:Se.COMMAND,preconditions:Q(()=>!1,"preconditions"),handler:Q(async()=>!0,"handler")},qse="univer.command.cut",pL={id:qse,name:qse,multi:!0,priority:0,type:Se.COMMAND,preconditions:Q(()=>!1,"preconditions"),handler:Q(async()=>!0,"handler")},Yse="univer.command.paste",vL={id:Yse,name:Yse,multi:!0,priority:0,type:Se.COMMAND,preconditions:Q(()=>!1,"preconditions"),handler:Q(async()=>!0,"handler")};var Et=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.BACKSPACE=8]="BACKSPACE",t[t.TAB=9]="TAB",t[t.ENTER=13]="ENTER",t[t.SHIFT=16]="SHIFT",t[t.CTRL=17]="CTRL",t[t.ESC=27]="ESC",t[t.SPACE=32]="SPACE",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NUM_LOCK=144]="NUM_LOCK",t[t.SCROLL_LOCK=145]="SCROLL_LOCK",t[t.EQUAL=187]="EQUAL",t[t.COMMA=188]="COMMA",t[t.MINUS=189]="MINUS",t[t.PERIOD=190]="PERIOD",t[t.BACK_SLASH=220]="BACK_SLASH",t))(Et||{});const yNt={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 Ln=(t=>(t[t.SHIFT=1024]="SHIFT",t[t.ALT=2048]="ALT",t[t.CTRL_COMMAND=4096]="CTRL_COMMAND",t[t.MAC_CTRL=8192]="MAC_CTRL",t))(Ln||{});function ZOe(t,e,n){return window.addEventListener(t,e,n),$t(()=>window.removeEventListener(t,e,n))}Q(ZOe,"fromGlobalEvent");const _L=er("ui.platform.service"),JOe=class{get isMac(){return/Mac/.test(navigator.appVersion)}get isWindows(){return/Windows/.test(navigator.appVersion)}get isLinux(){return/Linux/.test(navigator.appVersion)}};Q(JOe,"PlatformService");let eNe=JOe;var ENt=Object.defineProperty,RNt=Object.getOwnPropertyDescriptor,ANt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?RNt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ENt(e,n,i),i},"__decorateClass$e"),xy=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e");const Bu=er("ui.shortcut.service");var Lk;let fI=(Lk=class extends et{constructor(t,e,n,r){super(),gn(this,"_shortCutMapping",new Map),gn(this,"_commandIDMapping",new Map),gn(this,"_shortcutChanged$",new Zt),gn(this,"shortcutChanged$",this._shortcutChanged$.asObservable()),gn(this,"_forceEscaped",!1),this._commandService=t,this._platformService=e,this._contextService=n,this._layoutService=r,this.disposeWithMe(ZOe("keydown",i=>{this._resolveKeyboardEvent(i)},{capture:!0}))}getAllShortcuts(){return Array.from(this._shortCutMapping.values()).map(t=>Array.from(t.values())).flat()}registerShortcut(t){const e=this._getBindingFromItem(t),n=this._shortCutMapping.get(e);n?n.add(t):this._shortCutMapping.set(e,new Set([t]));const r=t.id,i=this._commandIDMapping.get(r);return i?i.add(t):this._commandIDMapping.set(r,new Set([t])),this._emitShortcutChanged(),$t(()=>{var a,o,s,l;(a=this._shortCutMapping.get(e))==null||a.delete(t),((o=this._shortCutMapping.get(e))==null?void 0:o.size)===0&&this._shortCutMapping.delete(e),(s=this._commandIDMapping.get(r))==null||s.delete(t),((l=this._commandIDMapping.get(r))==null?void 0:l.size)===0&&this._commandIDMapping.delete(r),this._emitShortcutChanged()})}getShortcutDisplayOfCommand(t){const e=this._commandIDMapping.get(t);if(!e)return null;const n=e.values().next().value;return n?this.getShortcutDisplay(n):null}getShortcutDisplay(t){var e;const n=this._getBindingFromItem(t),r=n&Ln.CTRL_COMMAND,i=n&Ln.SHIFT,a=n&Ln.ALT,o=n&Ln.MAC_CTRL,s=(e=yNt[n&255])!=null?e:"<->";return this._platformService.isMac?`${r?"⌘":""}${i?"⇧":""}${a?"⌥":""}${o?"⌃":""}${s}`:`${r?"Ctrl+":""}${i?"Shift+":""}${a?"Alt+":""}${s}`}_emitShortcutChanged(){this._shortcutChanged$.next()}forceEscape(){return this._forceEscaped=!0,$t(()=>this._forceEscaped=!1)}_resolveKeyboardEvent(t){this._forceEscaped||this._layoutService&&!this._layoutService.checkElementInCurrentContainers(t.target)||this._dispatch(t)&&t.preventDefault()}_dispatch(t){const e=this._deriveBindingFromEvent(t);if(e===null)return!1;const n=this._shortCutMapping.get(e);if(n===void 0)return!1;const r=Array.from(n).sort((i,a)=>{var o,s;return((o=a.priority)!=null?o:0)-((s=i.priority)!=null?s:0)}).find(i=>{var a,o;return(o=(a=i.preconditions)==null?void 0:a.call(i,this._contextService))!=null?o:!0});return r?(this._commandService.executeCommand(r.id,r.staticParameters),!0):!1}_getBindingFromItem(t){return this._platformService.isMac&&t.mac?t.mac:this._platformService.isWindows&&t.win?t.win:this._platformService.isLinux&&t.linux?t.linux:t.binding}_deriveBindingFromEvent(t){const{shiftKey:e,metaKey:n,altKey:r,keyCode:i}=t;let a=i;return e&&(a|=Ln.SHIFT),r&&(a|=Ln.ALT),(this._platformService.isMac?n:t.ctrlKey)&&(a|=Ln.CTRL_COMMAND),this._platformService.isMac&&t.ctrlKey&&(a|=Ln.MAC_CTRL),a}},Q(Lk,"ShortcutService"),Lk);fI=ANt([xy(0,me),xy(1,_L),xy(2,ui),xy(3,_1(Os))],fI);var wNt=Object.defineProperty,DNt=Object.getOwnPropertyDescriptor,INt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?DNt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&wNt(e,n,i),i},"__decorateClass$d"),Xse=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d");function HS(t){return t.getContextValue(Pu)}Q(HS,"whenEditorFocused");const PNt={id:gL.id,description:"shortcut.copy",group:"1_common-edit",binding:Et.C|Ln.CTRL_COMMAND,preconditions:HS},MNt={id:pL.id,description:"shortcut.cut",group:"1_common-edit",binding:Et.X|Ln.CTRL_COMMAND,preconditions:HS},TNt={id:vL.id,description:"shortcut.paste",group:"1_common-edit",binding:Et.V|Ln.CTRL_COMMAND,preconditions:Q(()=>!1,"preconditions")},LNt={id:TC.id,description:"shortcut.undo",group:"1_common-edit",binding:Et.Z|Ln.CTRL_COMMAND,preconditions:HS},xNt={id:LC.id,description:"shortcut.redo",group:"1_common-edit",binding:Et.Y|Ln.CTRL_COMMAND,preconditions:HS};var xk;let x8=(xk=class extends et{constructor(t,e){super(),this._shortcutService=t,this._commandService=e,this.initialize()}initialize(){this._registerCommands(),this._registerShortcuts()}_registerCommands(){[pL,gL,vL,VS].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_registerShortcuts(){const t=[LNt,xNt];t.push(MNt,PNt,TNt),t.forEach(e=>this.disposeWithMe(this._shortcutService.registerShortcut(e)))}},Q(xk,"SharedController"),xk);x8=INt([yn(Vt.Ready,x8),Xse(0,Bu),Xse(1,me)],x8);const ONt="univer-shortcut-panel-group-title",NNt="univer-shortcut-panel-item",kNt="univer-shortcut-panel-item-title",FNt="univer-shortcut-panel-item-shortcut",T3={shortcutPanelGroupTitle:ONt,shortcutPanelItem:NNt,shortcutPanelItemTitle:kNt,shortcutPanelItemShortcut:FNt};function tNe(){const t=Ne(Bu),e=Ne(sn),n=ai(e.currentLocale$),[r,i]=Re.useState([]),a=E.useCallback(()=>{var o;const s=new Map,l=t.getAllShortcuts().filter(c=>!!c.group);for(const c of l){const d=c.group,h={title:e.t((o=c.description)!=null?o:c.id),shortcut:t.getShortcutDisplay(c)};if(!/\d+_[a-zA-Z0-9]/.test(d))throw new Error(`[ShortcutPanel]: Invalid shortcut group: ${d}!`);s.has(d)||s.set(d,[]),s.get(d).push(h)}const u=Array.from(s.entries()).map(([c,d])=>{const h=c.split("_")[0],f=c.slice(h.length+1);return{sequence:+h,name:e.t(f),items:d}}).sort((c,d)=>c.sequence-d.sequence);i(u)},[t,e,n]);return E.useEffect(()=>{a();const o=t.shortcutChanged$.subscribe(()=>a());return()=>o.unsubscribe()},[t,a]),We.jsx("div",{className:T3.shortcutPanel,children:r.map(o=>We.jsxs("div",{className:T3.shortcutPanelGroup,children:[We.jsx("div",{className:T3.shortcutPanelGroupTitle,children:o.name}),o.items.map((s,l)=>We.jsxs("div",{className:T3.shortcutPanelItem,children:[We.jsx("span",{className:T3.shortcutPanelItemTitle,children:s.title}),We.jsx("span",{className:T3.shortcutPanelItemShortcut,children:s.shortcut})]},`${s.title}-${s.shortcut}`))]},o.name))})}Q(tNe,"ShortcutPanel");var VNt=Object.defineProperty,BNt=Object.getOwnPropertyDescriptor,UNt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?BNt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&VNt(e,n,i),i},"__decorateClass$c"),X9=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c");const HNt={id:cL.id,binding:Ln.CTRL_COMMAND|Et.BACK_SLASH,description:"shortcut.shortcut-panel",group:"10_global-shortcut"};var Ok;let AR=(Ok=class extends et{constructor(t,e,n,r,i){super(),this._menuManagerService=r,this.disposeWithMe(e.register(bLe,tNe)),this.disposeWithMe(i.registerCommand(cL)),this.disposeWithMe(n.registerShortcut(HNt))}},Q(Ok,"ShortcutPanelController"),Ok);AR=UNt([yn(Vt.Steady,AR),X9(0,se(Wn)),X9(1,se(ja)),X9(2,Bu),X9(3,sl),X9(4,me)],AR);const Xee=er("univer.ui.ui-controller");e2(Vt.Ready,Xee);var jS={},nNe={exports:{}},rNe={exports:{}};(function(t){function e(n){"@babel/helpers - typeof";return t.exports=e=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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}Q(e,"_typeof"),t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(rNe);var $S=rNe.exports;(function(t){var e=$S.default;function n(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,o=new WeakMap;return(n=Q(function(s){return s?o:a},"_getRequireWildcardCache"))(i)}Q(n,"_getRequireWildcardCache");function r(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||e(i)!="object"&&typeof i!="function")return{default:i};var o=n(a);if(o&&o.has(i))return o.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in i)if(u!=="default"&&{}.hasOwnProperty.call(i,u)){var c=l?Object.getOwnPropertyDescriptor(i,u):null;c&&(c.get||c.set)?Object.defineProperty(s,u,c):s[u]=i[u]}return s.default=i,o&&o.set(i,s),s}Q(r,"_interopRequireWildcard"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(nNe);var jNt=nNe.exports,iNe={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}Q(e,"_interopRequireDefault"),t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(iNe);var $Nt=iNe.exports,aNe={exports:{}};(function(t){var e=$S.default;function n(){t.exports=n=Q(function(){return i},"_regeneratorRuntime"),t.exports.__esModule=!0,t.exports.default=t.exports;var r,i={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(F,H,W){F[H]=W.value},l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(F,H,W){return Object.defineProperty(F,H,{value:W,enumerable:!0,configurable:!0,writable:!0}),F[H]}Q(h,"define");try{h({},"")}catch{h=Q(function(F,H,W){return F[H]=W},"define")}function f(F,H,W,K){var G=H&&H.prototype instanceof S?H:S,te=Object.create(G.prototype),Y=new X(K||[]);return s(te,"_invoke",{value:O(F,W,Y)}),te}Q(f,"wrap");function m(F,H,W){try{return{type:"normal",arg:F.call(H,W)}}catch(K){return{type:"throw",arg:K}}}Q(m,"tryCatch"),i.wrap=f;var g="suspendedStart",p="suspendedYield",v="executing",_="completed",C={};function S(){}Q(S,"Generator");function b(){}Q(b,"GeneratorFunction");function y(){}Q(y,"GeneratorFunctionPrototype");var A={};h(A,u,function(){return this});var w=Object.getPrototypeOf,P=w&&w(w(z([])));P&&P!==a&&o.call(P,u)&&(A=P);var M=y.prototype=S.prototype=Object.create(A);function L(F){["next","throw","return"].forEach(function(H){h(F,H,function(W){return this._invoke(H,W)})})}Q(L,"defineIteratorMethods");function k(F,H){function W(G,te,Y,ae){var ie=m(F[G],F,te);if(ie.type!=="throw"){var ne=ie.arg,de=ne.value;return de&&e(de)=="object"&&o.call(de,"__await")?H.resolve(de.__await).then(function(_e){W("next",_e,Y,ae)},function(_e){W("throw",_e,Y,ae)}):H.resolve(de).then(function(_e){ne.value=_e,Y(ne)},function(_e){return W("throw",_e,Y,ae)})}ae(ie.arg)}Q(W,"invoke");var K;s(this,"_invoke",{value:Q(function(G,te){function Y(){return new H(function(ae,ie){W(G,te,ae,ie)})}return Q(Y,"callInvokeWithMethodAndArg"),K=K?K.then(Y,Y):Y()},"value")})}Q(k,"AsyncIterator");function O(F,H,W){var K=g;return function(G,te){if(K===v)throw Error("Generator is already running");if(K===_){if(G==="throw")throw te;return{value:r,done:!0}}for(W.method=G,W.arg=te;;){var Y=W.delegate;if(Y){var ae=$(Y,W);if(ae){if(ae===C)continue;return ae}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(K===g)throw K=_,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);K=v;var ie=m(F,H,W);if(ie.type==="normal"){if(K=W.done?_:p,ie.arg===C)continue;return{value:ie.arg,done:W.done}}ie.type==="throw"&&(K=_,W.method="throw",W.arg=ie.arg)}}}Q(O,"makeInvokeMethod");function $(F,H){var W=H.method,K=F.iterator[W];if(K===r)return H.delegate=null,W==="throw"&&F.iterator.return&&(H.method="return",H.arg=r,$(F,H),H.method==="throw")||W!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+W+"' method")),C;var G=m(K,F.iterator,H.arg);if(G.type==="throw")return H.method="throw",H.arg=G.arg,H.delegate=null,C;var te=G.arg;return te?te.done?(H[F.resultName]=te.value,H.next=F.nextLoc,H.method!=="return"&&(H.method="next",H.arg=r),H.delegate=null,C):te:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,C)}Q($,"maybeInvokeDelegate");function B(F){var H={tryLoc:F[0]};1 in F&&(H.catchLoc=F[1]),2 in F&&(H.finallyLoc=F[2],H.afterLoc=F[3]),this.tryEntries.push(H)}Q(B,"pushTryEntry");function V(F){var H=F.completion||{};H.type="normal",delete H.arg,F.completion=H}Q(V,"resetTryEntry");function X(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(B,this),this.reset(!0)}Q(X,"Context");function z(F){if(F||F===""){var H=F[u];if(H)return H.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var W=-1,K=Q(function G(){for(;++W<F.length;)if(o.call(F,W))return G.value=F[W],G.done=!1,G;return G.value=r,G.done=!0,G},"next");return K.next=K}}throw new TypeError(e(F)+" is not iterable")}return Q(z,"values"),b.prototype=y,s(M,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:b,configurable:!0}),b.displayName=h(y,d,"GeneratorFunction"),i.isGeneratorFunction=function(F){var H=typeof F=="function"&&F.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},i.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,y):(F.__proto__=y,h(F,d,"GeneratorFunction")),F.prototype=Object.create(M),F},i.awrap=function(F){return{__await:F}},L(k.prototype),h(k.prototype,c,function(){return this}),i.AsyncIterator=k,i.async=function(F,H,W,K,G){G===void 0&&(G=Promise);var te=new k(f(F,H,W,K),G);return i.isGeneratorFunction(H)?te:te.next().then(function(Y){return Y.done?Y.value:te.next()})},L(M),h(M,d,"Generator"),h(M,u,function(){return this}),h(M,"toString",function(){return"[object Generator]"}),i.keys=function(F){var H=Object(F),W=[];for(var K in H)W.push(K);return W.reverse(),Q(function G(){for(;W.length;){var te=W.pop();if(te in H)return G.value=te,G.done=!1,G}return G.done=!0,G},"next")},i.values=z,X.prototype={constructor:X,reset:Q(function(F){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(V),!F)for(var H in this)H.charAt(0)==="t"&&o.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=r)},"reset"),stop:Q(function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},"stop"),dispatchException:Q(function(F){if(this.done)throw F;var H=this;function W(ie,ne){return te.type="throw",te.arg=F,H.next=ie,ne&&(H.method="next",H.arg=r),!!ne}Q(W,"handle");for(var K=this.tryEntries.length-1;K>=0;--K){var G=this.tryEntries[K],te=G.completion;if(G.tryLoc==="root")return W("end");if(G.tryLoc<=this.prev){var Y=o.call(G,"catchLoc"),ae=o.call(G,"finallyLoc");if(Y&&ae){if(this.prev<G.catchLoc)return W(G.catchLoc,!0);if(this.prev<G.finallyLoc)return W(G.finallyLoc)}else if(Y){if(this.prev<G.catchLoc)return W(G.catchLoc,!0)}else{if(!ae)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return W(G.finallyLoc)}}}},"dispatchException"),abrupt:Q(function(F,H){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc<=this.prev&&o.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var G=K;break}}G&&(F==="break"||F==="continue")&&G.tryLoc<=H&&H<=G.finallyLoc&&(G=null);var te=G?G.completion:{};return te.type=F,te.arg=H,G?(this.method="next",this.next=G.finallyLoc,C):this.complete(te)},"abrupt"),complete:Q(function(F,H){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&H&&(this.next=H),C},"complete"),finish:Q(function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var W=this.tryEntries[H];if(W.finallyLoc===F)return this.complete(W.completion,W.afterLoc),V(W),C}},"finish"),catch:Q(function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var W=this.tryEntries[H];if(W.tryLoc===F){var K=W.completion;if(K.type==="throw"){var G=K.arg;V(W)}return G}}throw Error("illegal catch attempt")},"_catch"),delegateYield:Q(function(F,H,W){return this.delegate={iterator:z(F),resultName:H,nextLoc:W},this.method==="next"&&(this.arg=r),C},"delegateYield")},i}Q(n,"_regeneratorRuntime"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(aNe);var WNt=aNe.exports,oNe={exports:{}};(function(t){function e(r,i,a,o,s,l,u){try{var c=r[l](u),d=c.value}catch(h){return void a(h)}c.done?i(d):Promise.resolve(d).then(o,s)}Q(e,"asyncGeneratorStep");function n(r){return function(){var i=this,a=arguments;return new Promise(function(o,s){var l=r.apply(i,a);function u(d){e(l,o,s,u,c,"next",d)}Q(u,"_next");function c(d){e(l,o,s,u,c,"throw",d)}Q(c,"_throw"),u(void 0)})}}Q(n,"_asyncToGenerator"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(oNe);var zNt=oNe.exports,sNe={exports:{}},lNe={exports:{}},uNe={exports:{}},cNe={exports:{}};(function(t){var e=$S.default;function n(r,i){if(e(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(e(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}Q(n,"toPrimitive"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(cNe);var qNt=cNe.exports;(function(t){var e=$S.default,n=qNt;function r(i){var a=n(i,"string");return e(a)=="symbol"?a:a+""}Q(r,"toPropertyKey"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(uNe);var YNt=uNe.exports;(function(t){var e=YNt;function n(r,i,a){return(i=e(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}Q(n,"_defineProperty"),t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(lNe);var XNt=lNe.exports;(function(t){var e=XNt;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}Q(n,"ownKeys");function r(i){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?n(Object(o),!0).forEach(function(s){e(i,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(o,s))})}return i}Q(r,"_objectSpread2"),t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(sNe);var GNt=sNe.exports,QNt=jNt.default,CL=$Nt.default;Object.defineProperty(jS,"__esModule",{value:!0});jS._r=gNe;jS._u=CNe;var wR=jS.render=pNe,dNe=jS.unmount=SNe,mI=CL(WNt),hNe=CL(zNt),KNt=CL($S),ZNt=CL(GNt),JNt=QNt(ec),WS=(0,ZNt.default)({},JNt),ekt=WS.version,tkt=WS.render,nkt=WS.unmountComponentAtNode,SL;try{var rkt=Number((ekt||"").split(".")[0]);rkt>=18&&(SL=WS.createRoot)}catch{}function tq(t){var e=WS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&(0,KNt.default)(e)==="object"&&(e.usingClientEntryPoint=t)}Q(tq,"toggleWarning");var gI="__rc_react_root__";function fNe(t,e){tq(!0);var n=e[gI]||SL(e);tq(!1),n.render(t),e[gI]=n}Q(fNe,"modernRender");function mNe(t,e){tkt(t,e)}Q(mNe,"legacyRender");function gNe(t,e){}Q(gNe,"_r");function pNe(t,e){if(SL){fNe(t,e);return}mNe(t,e)}Q(pNe,"render");function vNe(t){return pI.apply(this,arguments)}Q(vNe,"modernUnmount");function pI(){return pI=(0,hNe.default)((0,mI.default)().mark(Q(function t(e){return(0,mI.default)().wrap(Q(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=e[gI])===null||r===void 0||r.unmount(),delete e[gI]}));case 1:case"end":return n.stop()}},"_callee$"),t)},"_callee"))),pI.apply(this,arguments)}Q(pI,"_modernUnmount");function _Ne(t){nkt(t)}Q(_Ne,"legacyUnmount");function CNe(t){}Q(CNe,"_u");function SNe(t){return vI.apply(this,arguments)}Q(SNe,"unmount");function vI(){return vI=(0,hNe.default)((0,mI.default)().mark(Q(function t(e){return(0,mI.default)().wrap(Q(function(n){for(;;)switch(n.prev=n.next){case 0:if(SL===void 0){n.next=2;break}return n.abrupt("return",vNe(e));case 2:_Ne(e);case 3:case"end":return n.stop()}},"_callee2$"),t)},"_callee2"))),vI.apply(this,arguments)}Q(vI,"_unmount");var Ba=(t=>(t.GLOBAL="global",t.HEADER="header",t.HEADER_MENU="header-menu",t.CONTENT="content",t.FOOTER="footer",t.LEFT_SIDEBAR="left-sidebar",t.FLOATING="floating",t.UNIT="unit",t))(Ba||{});const _c=er("ui.parts.service"),bNe=class extends et{constructor(){super(...arguments),gn(this,"_componentsByPart",new Map),gn(this,"_componentRegistered$",new Zt),gn(this,"componentRegistered$",this._componentRegistered$.asObservable())}dispose(){super.dispose(),this._componentRegistered$.complete()}registerComponent(e,n){const r=n(),i=(this._componentsByPart.get(e)||this._componentsByPart.set(e,new Set).get(e)).add(r);return this._componentRegistered$.next(e),$t(()=>{i.delete(r),i.size===0&&this._componentsByPart.delete(e),this._componentRegistered$.next(e)})}getComponents(e){return new Set([...this._componentsByPart.get(e)||new Set])}};Q(bNe,"UIPartsService");let yNe=bNe;const ENe=class{constructor(){gn(this,"_domLayerMap",new Map),gn(this,"_domLayers$",new Pn([])),gn(this,"domLayers$",this._domLayers$.asObservable())}get domLayers(){return Array.from(this._domLayerMap.entries())}_notice(){this._domLayers$.next(Array.from(this._domLayerMap.entries()))}addFloatDom(e){this._domLayerMap.set(e.id,e),this._notice()}removeFloatDom(e){this._domLayerMap.delete(e)&&this._notice()}removeAll(){this._domLayerMap.clear(),this._notice()}};Q(ENe,"CanvasFloatDomService");let Gee=ENe;const ikt="univer-float-dom-wrapper",akt="univer-float-dom",Gse={floatDomWrapper:ikt,floatDom:akt},okt=E.memo(t=>{const{layer:e,id:n}=t,r=Ne(ja),i=ai(e.position$),a=typeof e.componentKey=="string"?r.get(e.componentKey):e.componentKey,o={data:e.data,...e.props};return i?We.jsx("div",{className:Gse.floatDomWrapper,style:{position:"absolute",top:i.startY,left:i.startX,width:Math.max(i.endX-i.startX-2,0),height:Math.max(i.endY-i.startY-2,0),transform:`rotate(${i.rotate}deg)`,overflow:"hidden"},onPointerMove:Q(s=>{e.onPointerMove(s.nativeEvent)},"onPointerMove"),onPointerDown:Q(s=>{e.onPointerDown(s.nativeEvent)},"onPointerDown"),onPointerUp:Q(s=>{e.onPointerUp(s.nativeEvent)},"onPointerUp"),onWheel:Q(s=>{e.onWheel(s.nativeEvent)},"onWheel"),children:We.jsx("div",{id:n,className:Gse.floatDom,style:{width:i.width,height:i.height,position:"absolute",...i.absolute.left?{left:0}:{right:0},...i.absolute.top?{top:0}:{bottom:0}},children:a?We.jsx(a,{...o}):null})}):null}),RNe=Q(({unitId:t})=>{var e,n;const r=Ne(Ce),i=Ne(Gee),a=ai(i.domLayers$),o=t||((e=r.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:e.getUnitId());return(n=a==null?void 0:a.filter(s=>s[1].unitId===o))==null?void 0:n.map(s=>We.jsx(okt,{id:s[0],layer:s[1]},s[0]))},"FloatDom"),zS=er("ui.popup.service"),ANe=class extends et{constructor(){super(...arguments),gn(this,"_popupMap",new Map),gn(this,"_popups$",new Pn([])),gn(this,"popups$",this._popups$.asObservable()),gn(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(e){const n=Ie.generateRandomId();return this._popupMap.set(n,{...e,onPointerEnter:Q(()=>{this._activePopupId=n},"onPointerEnter"),onPointerLeave:Q(()=>{this._activePopupId===n&&(this._activePopupId=null)},"onPointerLeave")}),this._update(),n}removePopup(e){this._popupMap.delete(e)&&this._update()}removeAll(){this._popupMap.clear(),this._update()}};Q(ANe,"CanvasPopupService");let wNe=ANe;const skt=Q(({popup:t,children:e})=>{const[n,r]=E.useState(!1),i=E.useMemo(()=>t.anchorRect$.pipe(zg(0,eH)),[t.anchorRect$]),a=E.useMemo(()=>{var f;return(f=t.excludeRects$)==null?void 0:f.pipe(zg(0,eH))},[t.excludeRects$]),o=ai(i,t.anchorRect),s=ai(a,t.excludeRects),{offset:l,canvasElement:u,hideOnInvisible:c=!0,hiddenType:d="destroy"}=t,h=E.useMemo(()=>{if(!o)return null;const{bottom:f,left:m,right:g,top:p}=o,[v=0,_=0]=l??[];return{left:m-v,right:g+v,top:p-_,bottom:f+_}},[o,l]);return E.useEffect(()=>{if(!c||!h)return;const f=u.getBoundingClientRect(),{top:m,left:g,bottom:p,right:v}=f;h.bottom<m||h.top>p||h.right<g||h.left>v?r(!0):r(!1)},[h,u,c]),n&&d==="destroy"||!h?null:We.jsx(iS,{hidden:n,anchorRect:h,direction:t.direction,onClickOutside:t.onClickOutside,excludeOutside:t.excludeOutside,excludeRects:s,onPinterEnter:t.onPointerEnter,onPointerLeave:t.onPointerLeave,onClick:t.onClick,children:e})},"SingleCanvasPopup");function Qee(){const t=Ne(zS),e=Ne(ja);return ai(t.popups$,void 0,!0).map(n=>{const[r,i]=n,a=e.get(i.componentKey);return We.jsx(skt,{popup:i,children:a?We.jsx(a,{popup:i}):null},r)})}Q(Qee,"CanvasPopup");function Nl(t){const{components:e,fallback:n,sharedProps:r}=t;return!e||e.size===0?n??null:Array.from(e.values()).map((i,a)=>{var o;return Re.createElement(i,{key:`${(o=i.displayName)!=null?o:a}`,...r})})}Q(Nl,"ComponentContainer");function hu(t,e){var n;const r=(n=e==null?void 0:e.get(_c))!=null?n:Ne(_c),i=E.useRef(0),a=ai(()=>r.componentRegistered$.pipe(mo(o=>o===t),ah(200),pr(()=>i.current+=1),Du(i.current+=1)),void 0,void 0,[r,t]);return E.useMemo(()=>r.getComponents(t),[a])}Q(hu,"useComponentsOfPart");const tm=er("ui.contextmenu.service"),DNe=class extends et{constructor(){super(...arguments),gn(this,"_currentHandler",null),gn(this,"disabled",!1)}get visible(){var e,n;return(n=(e=this._currentHandler)==null?void 0:e.visible)!=null?n:!1}disable(){this.disabled=!0}enable(){this.disabled=!1}triggerContextMenu(e,n){var r;e.stopPropagation(),!this.disabled&&((r=this._currentHandler)==null||r.handleContextMenu(e,n))}hideContextMenu(){var e;(e=this._currentHandler)==null||e.hideContextMenu()}registerContextMenuHandler(e){if(this._currentHandler)throw new Error("There is already a context menu handler!");return this._currentHandler=e,$t(()=>this._currentHandler=null)}};Q(DNe,"ContextMenuService");let INe=DNe;function PNe(){const t=E.useRef(null),[e,n]=E.useState(!1),[r,i]=E.useState(""),[a,o]=E.useState([0,0]),s=E.useRef(e),l=Ne(tm),u=Ne(me),c=wC();s.current=e,E.useEffect(()=>{const f=l.registerContextMenuHandler({handleContextMenu:d,hideContextMenu(){n(!1)},get visible(){return s.current}});function m(g){t.current&&!t.current.contains(g.target)&&h()}return Q(m,"handleClickOutside"),document.addEventListener("pointerdown",m),document.addEventListener("wheel",h),()=>{document.removeEventListener("pointerdown",m),document.removeEventListener("wheel",h),f.dispose()}},[l]);function d(f,m){i(m),o([f.clientX,f.clientY]),n(!0)}Q(d,"handleContextMenu");function h(){n(!1)}return Q(h,"handleClose"),We.jsx(rS,{visible:e,offset:a,children:We.jsx("section",{ref:t,children:r&&We.jsx(hI,{menuType:r,onOptionSelect:Q(f=>{const{label:m,commandId:g,value:p}=f;u&&u.executeCommand(g??m,{value:p}),c.get(Os).focus(),n(!1)},"onOptionSelect")})})})}Q(PNe,"DesktopContextMenu");const lkt="univer-toolbar-btn",Qse={toolbarBtn:lkt};function Kee(t){const{children:e,className:n,style:r,disabled:i=!1,active:a=!1,onClick:o,onDoubleClick:s,...l}=t,u=Q(h=>{if(i){h.preventDefault();return}o&&o(h)},"handleClick"),c=Q(h=>{if(i){h.preventDefault();return}s&&s(h)},"handleDoubleClick"),d=hr(Qse.toolbarBtn,{[`${Qse.toolbarBtn}-active`]:a},n);return We.jsx("button",{className:d,style:r,disabled:i,onClick:u,onDoubleClick:c,...l,children:e})}Q(Kee,"ToolbarButton");const ukt="univer-headerbar",ckt="univer-header-menu",dkt="univer-menubar",hkt="univer-menubar-item",fkt="univer-menubar-item-active",mkt="univer-toolbar",gkt="univer-toolbar-container",pkt="univer-toolbar-more-container",vkt="univer-toolbar-group",_kt="univer-toolbar-item-select-button",Ckt="univer-toolbar-item-select-button-disabled",Skt="univer-toolbar-item-select-button-activated",bkt="univer-toolbar-item-select-button-label",ykt="univer-toolbar-item-select-button-arrow",Ekt="univer-toolbar-item-select",Rkt="univer-toolbar-item-select-disabled",Akt="univer-toolbar-item-select-activated",wkt="univer-toolbar-item-select-arrow",Dkt="univer-toolbar-item-select-arrow-disabled",za={headerbar:ukt,headerMenu:ckt,menubar:dkt,menubarItem:hkt,menubarItemActive:fkt,toolbar:mkt,toolbarContainer:gkt,toolbarMoreContainer:pkt,toolbarGroup:vkt,toolbarItemSelectButton:_kt,toolbarItemSelectButtonDisabled:Ckt,toolbarItemSelectButtonActivated:Skt,toolbarItemSelectButtonLabel:bkt,toolbarItemSelectButtonArrow:ykt,toolbarItemSelect:Ekt,toolbarItemSelectDisabled:Rkt,toolbarItemSelectActivated:Akt,toolbarItemSelectArrow:wkt,toolbarItemSelectArrowDisabled:Dkt};var Ikt=Object.defineProperty,Pkt=Object.getOwnPropertyDescriptor,Mkt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?Pkt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ikt(e,n,i),i},"__decorateClass$b"),Nk=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b");const bL=er("univer.menu-service");var kk;let _I=(kk=class extends et{constructor(t,e,n){super(),gn(this,"_menuItemMap",new Map),gn(this,"_menuByPositions",new Map),gn(this,"_menuConfigs",new Map),gn(this,"_menuChanged$",new Pn(void 0)),gn(this,"menuChanged$",this._menuChanged$.asObservable()),this._shortcutService=t,this._menuManagerService=e,this._logService=n}dispose(){this._menuItemMap.clear(),this._menuChanged$.complete()}addMenuItem(t,e){if(this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuItemMap.has(t.id))throw new Error(`Menu item with the same id ${t.id} has already been added!`);const n=e==null?void 0:e[t.id];return this._menuItemMap.set(t.id,Vee(t,n)),Array.isArray(t.positions)?t.positions.forEach(r=>this._appendMenuToPosition(t,r)):t.positions&&this._appendMenuToPosition(t,t.positions),[Nd.TOOLBAR_START,Nd.TOOLBAR_INSERT,Nd.TOOLBAR_FORMULAS,Nd.TOOLBAR_DATA,Nd.TOOLBAR_VIEW,Nd.TOOLBAR_OTHERS,Nd.CONTEXT_MENU].forEach(r=>{r!==Nd.CONTEXT_MENU?this.getMenuItems(r).forEach(i=>{var a;this._menuManagerService.mergeMenu({[r]:{[(a=i.group)!=null?a:Wee.OTHERS]:{[i.id]:{menuItemFactory:Q(()=>i,"menuItemFactory")}}}})}):this.getMenuItems(r).forEach(i=>{var a;this._menuManagerService.mergeMenu({[r]:{[(a=i.group)!=null?a:ei.OTHERS]:{[i.id]:{menuItemFactory:Q(()=>i,"menuItemFactory")}}}})})}),this._menuChanged$.next(),$t(()=>{if(this._menuItemMap.delete(t.id),Array.isArray(t.positions))t.positions.forEach(r=>{const i=this._menuByPositions.get(r);if(!i)return;const a=i.findIndex(o=>o[0]===t.id);a>-1&&i.splice(a,1)});else if(t.positions){const r=this._menuByPositions.get(t.positions);if(!r)return;const i=r.findIndex(a=>a[0]===t.id);i>-1&&r.splice(i,1)}this._menuChanged$.next()})}getMenuItems(t){if(this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuByPositions.has(t)){const e=this._menuByPositions.get(t);if(e)return[...e.values()].map(n=>this._getDisplayMenuItems(n[1]))}return[]}setMenuItem(t){this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuItemMap.set(t.id,t),Array.isArray(t.positions)?t.positions.forEach(e=>this._updateMenuItems(t,e)):t.positions&&this._updateMenuItems(t,t.positions),this._menuChanged$.next()}getMenuItem(t){return this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuItemMap.has(t)?this._menuItemMap.get(t):null}setMenuConfigs(t,e){this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuConfigs.set(t,e)}getMenuConfig(t){return this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuConfigs.has(t)?this._menuConfigs.get(t):null}_getDisplayMenuItems(t){this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead.");const e=this._shortcutService.getShortcutDisplayOfCommand(t.id);return e?{...t,shortcut:e}:t}_appendMenuToPosition(t,e){this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuByPositions.has(e)||this._menuByPositions.set(e,[]);const n=this._menuByPositions.get(e);if(n.findIndex(r=>r[0]===t.id)>-1)throw new Error(`Menu item with the same id ${t.id} has already been added!`);n.push([t.id,t])}_updateMenuItems(t,e){this._logService.warn("[MenuService]: MenuService is deprecated, please use MenuManagerService instead."),this._menuByPositions.has(e)||this._menuByPositions.set(e,[]);const n=this._menuByPositions.get(e),r=n.findIndex(i=>i[0]===t.id);r>-1?n[r]=[t.id,t]:n.push([t.id,t])}},Q(kk,"MenuService"),kk);_I=Mkt([Nk(0,Bu),Nk(1,sl),Nk(2,Ra)],_I);function Tkt(t){const e=Ne(bL),[n,r]=E.useState([]);return E.useEffect(()=>{const i=e.menuChanged$.subscribe(()=>{const a=e.getMenuItems(t);r(a)});return()=>i.unsubscribe()},[e,t]),n}Q(Tkt,"useSimpleToolbarGroups");function Lkt(t,e){const n=Ne(bL),[r,i]=E.useState(e??Nd.TOOLBAR_START),[a,o]=E.useState([]),[s,l]=E.useState([]);E.useEffect(()=>{var c,d;const h=(d=(c=a.find(m=>m.name===r))==null?void 0:c.menuItems)!=null?d:[],f=Sa(h.map(m=>{var g;return(g=m.hidden$)!=null?g:new On(p=>p.next(!1))})).pipe(pr(m=>h.filter((g,p)=>!m[p]))).subscribe(m=>l(m));return()=>f.unsubscribe()},[a,r]),E.useEffect(()=>{const c=n.menuChanged$.subscribe(()=>{const d=[];for(const h of t){const f=n.getMenuItems(h);f.length&&d.push({name:h,menuItems:f})}o(d)});return()=>c.unsubscribe()},[n,r,t]);const u=E.useMemo(()=>{var c,d;return(d=(c=a.find(h=>h.name===r))==null?void 0:c.menuItems.reduce((h,f)=>{var m;const g=(m=f.group)!=null?m:jOe.TOOLBAR_OTHERS;return h[g]||(h[g]=[]),h[g].push(f),h},{}))!=null?d:{}},[a,r]);return{setCategory:i,category:r,visibleItems:s,groups:a,groupsByKey:u}}Q(Lkt,"useToolbarGroups");function MNe(t){const{disabled$:e,hidden$:n,activated$:r,value$:i}=t,[a,o]=E.useState(),[s,l]=E.useState(!1),[u,c]=E.useState(!1),[d,h]=E.useState(!1);return E.useEffect(()=>{const f=[];return e&&f.push(e.subscribe(m=>l(m))),n&&f.push(n.subscribe(m=>h(m))),r&&f.push(r.subscribe(m=>c(m))),i&&f.push(i.subscribe(m=>o(m))),()=>f.forEach(m=>m.unsubscribe())},[r,e,n,i]),{disabled:s,value:a,activated:u,hidden:d}}Q(MNe,"useToolbarItemStatus");const TNe=E.createContext({dropdownVisible:!1,setDropdownVisible:Q(t=>{},"setDropdownVisible")}),LNe=E.forwardRef((t,e)=>{const{children:n,...r}=t,[i,a]=E.useState(!1),[o,s]=E.useState(!1);function l(d){a(o?!1:d)}Q(l,"handleChangeTooltipVisible");function u(d){s(d),a(!1)}Q(u,"handleChangeDropdownVisible");const c=E.useMemo(()=>({dropdownVisible:o,setDropdownVisible:u}),[o]);return We.jsx(n1,{ref:e,...r,visible:i,onVisibleChange:l,children:We.jsx("span",{children:We.jsx(TNe.Provider,{value:c,children:n})})})});function CI(t){const{children:e,...n}=t,{setDropdownVisible:r}=E.useContext(TNe);function i(a){r(a)}return Q(i,"handleVisibleChange"),We.jsx(Ef,{onVisibleChange:i,...n,children:We.jsx("div",{onClick:Q(a=>a.stopPropagation(),"onClick"),children:e})})}Q(CI,"DropdownWrapper");const a6=E.forwardRef((t,e)=>{const{align:n}=t,r=Ne(sn),i=Ne(me),a=Ne(Os),o=Ne(ja),{value:s,hidden:l,disabled:u,activated:c}=MNe(t),d=Q((k,O)=>{a.focus(),i.executeCommand(k,O)},"executeCommand"),{tooltip:h,shortcut:f,icon:m,title:g,label:p,id:v,commandId:_}=t,C=r.t(h??"")+(f?` (${f})`:""),{selections:S}=t,b=E.useMemo(()=>bv(S)?S:new On(k=>{k.next(S)}),[S]),y=ai(b),A=E.useMemo(()=>bv(m)?m:new On(k=>{var O,$;const B=($=(O=y==null?void 0:y.find(V=>V.value===s))==null?void 0:O.icon)!=null?$:m;k.next(B)}),[m,y,s]),w=ai(A,void 0,!0);function P(k){var O;const $=t.selectionsCommandId,B=_??v,V=(O=$??_)!=null?O:v;function X(H){if(u)return;let W=V;H.id&&(W=H.id),d(W,{value:H.value})}Q(X,"handleSelect");function z(H){u||d(V,{value:H})}Q(z,"handleSelectionsValueChange");function F(){u||k===Tt.BUTTON_SELECTOR&&d(B,{value:s})}return Q(F,"handleClick"),k===Tt.BUTTON_SELECTOR?We.jsxs("div",{className:hr(za.toolbarItemSelectButton,{[za.toolbarItemSelectButtonDisabled]:u,[za.toolbarItemSelectButtonActivated]:c}),"data-disabled":u,children:[We.jsx("div",{className:za.toolbarItemSelectButtonLabel,onClick:F,children:We.jsx(_u,{icon:w,title:g,value:s,label:p,onChange:z})}),We.jsx(CI,{disabled:u,align:n??{targetOffset:[32,-12]},overlay:We.jsx(hI,{overViewport:"scroll",menuType:v,options:y,onOptionSelect:X,value:s}),children:We.jsx("div",{className:hr(za.toolbarItemSelectButtonArrow,{[za.toolbarItemSelectButtonArrowDisabled]:u,[za.toolbarItemSelectButtonArrowActivated]:c}),"data-disabled":u,children:We.jsx(sI,{style:{height:"100%"}})})})]}):We.jsx(CI,{disabled:u,overlay:We.jsx(hI,{overViewport:"scroll",menuType:v,options:y,onOptionSelect:X,value:s}),children:We.jsxs("div",{className:hr(za.toolbarItemSelect,{[za.toolbarItemSelectDisabled]:u,[za.toolbarItemSelectActivated]:c}),children:[We.jsx(_u,{icon:w,title:g,value:s,label:p,onChange:z}),We.jsx("div",{className:hr(za.toolbarItemSelectArrow,{[za.toolbarItemSelectArrowDisabled]:u}),children:We.jsx(sI,{})})]})})}Q(P,"renderSelectorType");function M(){var k;const O=o.get(typeof p=="string"?p:(k=p==null?void 0:p.name)!=null?k:"");return We.jsx("span",{children:We.jsx(Kee,{className:za.toolbarItemTextButton,active:c,disabled:u,onClick:Q(()=>{var $;return d(($=t.commandId)!=null?$:t.id)},"onClick"),onDoubleClick:Q(()=>t.subId&&d(t.subId),"onDoubleClick"),children:O?We.jsx(_u,{title:g,value:s,label:p}):We.jsx(_u,{icon:m})})})}Q(M,"renderButtonType");function L(){switch(t.type){case Tt.BUTTON_SELECTOR:case Tt.SELECTOR:case Tt.SUBITEMS:return P(t.type);case Tt.BUTTON:default:return M()}}return Q(L,"renderItem"),!l&&We.jsx(LNe,{ref:e,title:C,placement:"bottom",children:L()})});function xNe(t){const{headerMenuComponents:e}=t,n=Ne(sl),r=Ne(sn),i=E.useRef(null),a=E.useRef({}),[o,s]=E.useState([]),[l,u]=E.useState(du.START),[c,d]=E.useState([]);E.useEffect(()=>{function m(){const p=n.getMenuByPositionKey(cI.RIBBON);s(p)}Q(m,"getRibbon"),m();const g=n.menuChanged$.subscribe(m);return()=>{g.unsubscribe()}},[n]),E.useEffect(()=>{const m=new ResizeObserver(g=>{const p=g[0].target.clientWidth,v=Object.values(a.current),_=[];let C=90;for(const{el:S,key:b}of v)S&&(C+=S.clientWidth+8,C>p&&_.push(b));d(_)});return i.current&&m.observe(i.current),()=>{m.disconnect()}},[o]);const h=E.useMemo(()=>e&&e.size>0||o.length>1,[e,o]),f=E.useMemo(()=>{var m,g;const p=(g=(m=o.find(C=>C.key===l))==null?void 0:m.children)!=null?g:[],v=[],_=[];for(const C of p)if(C.children){const S=C.children.filter(b=>!c.includes(b.key));v.push({...C,children:S}),S.length<C.children.length&&_.push({...C,children:C.children.filter(b=>c.includes(b.key))})}return{allGroups:p,visibleGroups:v,hiddenGroups:_}},[o,l,c]);return We.jsxs(We.Fragment,{children:[h&&We.jsxs("header",{className:za.headerbar,children:[We.jsx("div",{className:za.menubar,children:o.length>1&&o.map(m=>We.jsx("a",{className:hr(za.menubarItem,{[za.menubarItemActive]:m.key===l}),onClick:Q(()=>{u(m.key)},"onClick"),children:r.t(m.key)},m.key))}),We.jsx("div",{className:za.headerMenu,children:We.jsx(Nl,{components:e})})]}),We.jsx("section",{role:"ribbon",className:za.toolbar,children:We.jsxs("div",{className:za.toolbarContainer,children:[f.visibleGroups.map(m=>{var g,p;return(((g=m.children)==null?void 0:g.length)||m.item)&&We.jsx("div",{className:za.toolbarGroup,children:m.children?(p=m.children)==null?void 0:p.map(v=>v.item&&We.jsx(a6,{...v.item},v.key)):m.item&&We.jsx(a6,{...m.item},m.key)},m.key)}),c.length>0&&We.jsx(LNe,{title:r.t("ribbon.more"),placement:"bottom",children:We.jsx(CI,{forceRender:!0,overlay:We.jsx("div",{className:za.toolbarMoreContainer,children:f.hiddenGroups.map(m=>{var g;return We.jsx("div",{className:za.toolbarGroup,children:m.children?(g=m.children)==null?void 0:g.map(p=>p.item&&We.jsx(a6,{...p.item},p.key)):m.item&&We.jsx(a6,{...m.item},m.key)},m.key)})}),children:We.jsx(Kee,{className:za.toolbarItemTextButton,children:We.jsx(Uxe,{})})})})]})}),We.jsx("div",{ref:i,className:za.toolbarContainer,style:{position:"absolute",top:-9999,left:-9999,opacity:0},children:f.allGroups.map(m=>{var g;return We.jsx("div",{className:za.toolbarGroup,children:(g=m.children)==null?void 0:g.map(p=>p.item&&We.jsx(a6,{ref:Q(v=>{a.current[p.key]={el:v==null?void 0:v.nativeElement,key:p.key}},"ref"),...p.item},p.key))},m.key)})})]})}Q(xNe,"Ribbon");const xkt="univer-sidebar",Okt="univer-sidebar-open",Nkt="univer-sidebar-container",kkt="univer-sidebar-header",Fkt="univer-sidebar-header-close",Vkt="univer-sidebar-body",Bkt="univer-sidebar-footer",w2={sidebar:xkt,sidebarOpen:Okt,sidebarContainer:Nkt,sidebarHeader:kkt,sidebarHeaderClose:Fkt,sidebarBody:Vkt,sidebarFooter:Bkt};function Zee(){const t=Ne(ol),e=ai(t.sidebarOptions$),n=E.useRef(null),r=E.useMemo(()=>{if(!e)return null;const s={...e};for(const l of["children","header","footer"]){const u=l;if(e[u]){const c=e[u];c&&(s[u]=We.jsx(_u,{...c}))}}return s},[e]);E.useEffect(()=>{const s=Q(u=>{t.scrollEvent$.next(u)},"handleScroll"),l=n.current;return l&&l.addEventListener("scroll",s),()=>{l==null||l.removeEventListener("scroll",s)}},[t]);const i=hr(w2.sidebar,{[w2.sidebarOpen]:r==null?void 0:r.visible}),a=E.useMemo(()=>r!=null&&r.visible?typeof r.width=="number"?`${r.width}px`:r.width:0,[r]);function o(){var s;const l={...e,visible:!1};t.sidebarOptions$.next(l),(s=l==null?void 0:l.onClose)==null||s.call(l)}return Q(o,"handleClose"),We.jsx("section",{className:i,style:{width:a},children:We.jsxs("section",{className:w2.sidebarContainer,ref:n,children:[We.jsxs("header",{className:w2.sidebarHeader,children:[r==null?void 0:r.header,We.jsx("a",{className:w2.sidebarHeaderClose,onClick:o,children:We.jsx(BS,{})})]}),We.jsx("section",{className:w2.sidebarBody,style:r==null?void 0:r.bodyStyle,children:r==null?void 0:r.children}),(r==null?void 0:r.footer)&&We.jsx("footer",{className:w2.sidebarFooter,children:r.footer})]})})}Q(Zee,"Sidebar");const n9=er("univer.zen-zone-service"),Ukt="univer-zen-zone",Hkt="univer-zen-zone-open",jkt="univer-zen-zone-close",Fk={zenZone:Ukt,zenZoneOpen:Hkt,zenZoneClose:jkt};function Jee(){const t=Ne(n9),[e,n]=E.useState(!1),[r,i]=E.useState(),a=Xh(t.temporaryHidden$),o=Ne(ja);E.useEffect(()=>{const u=[t.visible$.subscribe(c=>{n(c)}),t.componentKey$.subscribe(c=>{i(c)})];return()=>{u.forEach(c=>{c.unsubscribe()})}},[]);const s=hr(Fk.zenZone,e?Fk.zenZoneOpen:Fk.zenZoneClose),l=E.useMemo(()=>{const u=o.get(r??"");if(u)return u},[r]);return We.jsx("section",{style:a?{display:"none"}:void 0,className:s,children:l&&We.jsx(l,{})})}Q(Jee,"ZenZone");const ete=er("univer.global-zone-service"),$kt="univer-global-zone",Wkt="univer-global-zone-open",Kse={globalZone:$kt,globalZoneOpen:Wkt};function ONe(){const t=Ne(ete),[e,n]=E.useState(!1),r=ai(t.componentKey$,t.componentKey),i=Ne(ja),a=hr(Kse.globalZone,Kse.globalZoneOpen),o=E.useMemo(()=>{const s=i.get(r??"");if(s)return s},[r,i]);return E.useEffect(()=>{const s=t.visible$.subscribe(l=>{n(l)});return()=>{s.unsubscribe()}},[t.visible$]),e?We.jsx("section",{className:a,children:o&&We.jsx(o,{})}):null}Q(ONe,"GlobalZone");const NNe=new Set([ONe]),zkt="univer-workbench-layout",qkt="univer-workbench-container",Ykt="univer-workbench-container-header",Xkt="univer-workbench-container-wrapper",Gkt="univer-workbench-container-content",Qkt="univer-workbench-container-canvas",Kkt="univer-workbench-container-left-sidebar",Zkt="univer-workbench-container-sidebar",Ih={workbenchLayout:zkt,workbenchContainer:qkt,workbenchContainerHeader:Ykt,workbenchContainerWrapper:Xkt,workbenchContainerContent:Gkt,workbenchContainerCanvas:Qkt,workbenchContainerLeftSidebar:Kkt,workbenchContainerSidebar:Zkt};function kNe(t){const{header:e=!0,toolbar:n=!0,footer:r=!0,contextMenu:i=!0,mountContainer:a,onRendered:o}=t,s=Ne(sn),l=Ne(Ja),u=Ne(Qp),c=E.useRef(null),d=hu(Ba.FOOTER),h=hu(Ba.HEADER),f=hu(Ba.HEADER_MENU),m=hu(Ba.CONTENT),g=hu(Ba.LEFT_SIDEBAR),p=hu(Ba.GLOBAL);E.useEffect(()=>{l.getCurrentTheme()||l.setTheme(tZ)},[]),E.useEffect(()=>{c.current&&(o==null||o(c.current))},[o]);const[v,_]=E.useState(s.getLocales()),C=E.useMemo(()=>document.createElement("div"),[]);return E.useEffect(()=>{document.body.appendChild(C),u.setContainer(C);const S=[s.localeChanged$.subscribe(()=>{_(s.getLocales())}),l.currentTheme$.subscribe(b=>{oD.setTheme(a,b),C&&oD.setTheme(C,b)})];return()=>{S.forEach(b=>b.unsubscribe()),document.body.removeChild(C)}},[s,u,a,C,l.currentTheme$]),We.jsxs(_Q,{locale:v==null?void 0:v.design,mountContainer:C,children:[We.jsxs("div",{className:Ih.workbenchLayout,tabIndex:-1,onBlur:Q(S=>S.stopPropagation(),"onBlur"),children:[e&&n&&We.jsx("header",{className:Ih.workbenchContainerHeader,children:We.jsx(xNe,{headerMenuComponents:f})}),We.jsxs("section",{className:Ih.workbenchContainer,children:[We.jsxs("div",{className:Ih.workbenchContainerWrapper,children:[We.jsx("aside",{className:Ih.workbenchContainerLeftSidebar,children:We.jsx(Nl,{components:g},"left-sidebar")}),We.jsxs("section",{className:Ih.workbenchContainerContent,children:[We.jsx("header",{children:e&&We.jsx(Nl,{components:h},"header")}),We.jsx("section",{className:Ih.workbenchContainerCanvas,ref:c,"data-range-selector":!0,onContextMenu:Q(S=>S.preventDefault(),"onContextMenu"),children:We.jsx(Nl,{components:m},"content")})]}),We.jsx("aside",{className:Ih.workbenchContainerSidebar,children:We.jsx(Zee,{})})]}),r&&We.jsx("footer",{className:Ih.workbenchFooter,children:We.jsx(Nl,{components:d,sharedProps:{contextMenu:i}},"footer")}),We.jsx(Jee,{})]})]}),We.jsx(Nl,{components:p},"global"),We.jsx(Nl,{components:NNe},"built-in-global"),i&&We.jsx(PNe,{}),We.jsx(FNe,{})]})}Q(kNe,"DesktopWorkbench");function FNe(){const{mountContainer:t}=E.useContext(Nu),e=hu(Ba.FLOATING);return bf.createPortal(We.jsx(Nl,{components:e},"floating"),t)}Q(FNe,"FloatingContainer");var Jkt=Object.defineProperty,eFt=Object.getOwnPropertyDescriptor,tFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?eFt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Jkt(e,n,i),i},"__decorateClass$a"),D2=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a");const nFt=3e3;var Vk;let DR=(Vk=class extends et{constructor(t,e,n,r,i,a,o,s){super(),gn(this,"_steadyTimeout"),gn(this,"_renderTimeout"),this._config=t,this._renderManagerService=e,this._instanceSrv=n,this._injector=r,this._lifecycleService=i,this._uiPartsService=a,this._menuManagerService=o,this._layoutService=s,this._initBuiltinComponents(),this._initMenus(),Promise.resolve().then(()=>this._bootstrapWorkbench())}_initMenus(){this._menuManagerService.mergeMenu(KOe)}_bootstrapWorkbench(){this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(t=>{clearTimeout(this._renderTimeout),clearTimeout(this._steadyTimeout)})),this.disposeWithMe(VNe(this._injector,this._config,(t,e)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(e)),this.disposeWithMe(this._layoutService.registerContentElement(t))),this._renderManagerService.currentRender$.subscribe(n=>{if(n){const r=this._renderManagerService.getRenderById(n);if(!r.unitId||oh(r.unitId))return;r.engine.setContainer(t)}}),this._renderTimeout=setTimeout(()=>{const n=this._renderManagerService.getRenderAll();for(const[r,i]of n)oh(r)||!i.isRenderUnit||i.engine.setContainer(t);this._lifecycleService.stage=Vt.Rendered,this._steadyTimeout=setTimeout(()=>{this._lifecycleService.stage=Vt.Steady},nFt)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.FLOATING,()=>yl(Qee,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(Ba.CONTENT,()=>yl(RNe,this._injector)))}},Q(Vk,"DesktopUIController"),Vk);DR=tFt([yn(Vt.Ready,DR),D2(1,Sr),D2(2,Ce),D2(3,se(Wn)),D2(4,se(b0)),D2(5,_c),D2(6,sl),D2(7,_1(Os))],DR);function VNe(t,e,n){let r;const i=e.container;if(typeof i=="string"){const l=document.getElementById(i);l?r=l:r=nq(i)}else i instanceof HTMLElement?r=i:r=nq("univer");const a=yl(kNe,t),o=Q(l=>n(l,r),"onRendered");function s(){wR(We.jsx(a,{...e,mountContainer:r,onRendered:o}),r)}return Q(s,"render"),s(),$t(()=>{wR(We.jsx("div",{}),r),setTimeout(()=>wR(We.jsx("div",{}),r),200),setTimeout(()=>dNe(r),500)})}Q(VNe,"bootstrap$1");function nq(t){const e=document.createElement("div");return e.id=t,e}Q(nq,"createContainer$1");var rFt=Object.defineProperty,iFt=Object.getOwnPropertyDescriptor,aFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?iFt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&rFt(e,n,i),i},"__decorateClass$9"),oFt=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9"),Bk;let SI=(Bk=class{constructor(t){gn(this,"visible$",new Zt),gn(this,"componentKey$",new Zt),gn(this,"_componentKey",""),this._componentManager=t}get componentKey(){return this._componentKey}set(t,e){return this._componentManager.register(t,e),this.componentKey$.next(t),this._componentKey=t,$t(()=>{this._componentManager.delete(t),this.visible$.complete(),this.componentKey$.complete()})}open(){this.visible$.next(!0)}close(){this.visible$.next(!1)}},Q(Bk,"DesktopGlobalZoneService"),Bk);SI=aFt([oFt(0,se(ja))],SI);const qS=er("ui.notification.service");var sFt=Object.defineProperty,lFt=Object.getOwnPropertyDescriptor,uFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?lFt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&sFt(e,n,i),i},"__decorateClass$8"),cFt=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8");const BNe=er("univer.ui.before-close-service");var Uk;let bI=(Uk=class{constructor(t){gn(this,"_beforeUnloadCallbacks",[]),gn(this,"_onCloseCallbacks",[]),this._notificationService=t,this._init()}registerBeforeClose(t){return this._beforeUnloadCallbacks.push(t),{dispose:Q(()=>{this._beforeUnloadCallbacks=this._beforeUnloadCallbacks.filter(e=>e!==t)},"dispose")}}registerOnClose(t){return this._onCloseCallbacks.push(t),{dispose:Q(()=>{this._onCloseCallbacks=this._onCloseCallbacks.filter(e=>e!==t)},"dispose")}}_init(){window.addEventListener("beforeunload",t=>{let e=t;const n=this._beforeUnloadCallbacks.map(r=>r()).filter(r=>!!r).join(` |
|
|
`);if(n)return this._notificationService.show({type:"error",title:"Some changes are not saved",content:n}),typeof e>"u"&&(e=window.event),e.returnValue=n,n}),window.addEventListener("unload",()=>{this._onCloseCallbacks.forEach(t=>t())})}},Q(Uk,"DesktopBeforeCloseService"),Uk);bI=uFt([cFt(0,qS)],bI);function UNe(){return typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText<"u"}Q(UNe,"supportClipboardAPI");var dFt=Object.defineProperty,hFt=Object.getOwnPropertyDescriptor,fFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?hFt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&dFt(e,n,i),i},"__decorateClass$7"),Hk=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7");const O_="text/plain",N_="text/html",dh=er("univer.clipboard-interface-service");var jk;let yI=(jk=class extends et{constructor(t,e,n){super(),this._localeService=t,this._logService=e,this._notificationService=n}get supportClipboard(){return UNe()}async write(t,e){if(!this.supportClipboard)return this._legacyCopyHtml(e);try{return await navigator.clipboard.write([new ClipboardItem({[O_]:new Blob([t],{type:O_}),[N_]:new Blob([e],{type:N_})})])}catch(n){this._logService.error("[BrowserClipboardService]",n),this._showClipboardAuthenticationNotification()}}async writeText(t){if(!this.supportClipboard)return this._legacyCopyText(t);try{return await navigator.clipboard.writeText(t)}catch(e){this._logService.error("[BrowserClipboardService]",e),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 e=document.activeElement,n=jNe();document.body.appendChild(n),n.innerHTML=t;try{rq(n),document.execCommand("copy")}finally{e instanceof HTMLElement&&e.focus(),document.body.removeChild(n)}}_legacyCopyText(t){const e=document.activeElement,n=HNe();document.body.appendChild(n),n.value=t;try{rq(n),document.execCommand("copy")}finally{e instanceof HTMLElement&&e.focus(),document.body.removeChild(n)}}_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")})}},Q(jk,"BrowserClipboardService"),jk);yI=fFt([Hk(0,se(sn)),Hk(1,Ra),Hk(2,_1(qS))],yI);function HNe(){const t=document.createElement("textarea");return t.style.position="absolute",t.style.height="1px",t.style.width="1px",t.style.opacity="0",t.readOnly=!0,t}Q(HNe,"createCopyTextContainer");function jNe(){const t=document.createElement("div");return t.contentEditable="true",t.style.position="absolute",t.style.opacity="0",t.style.height="1px",t.style.width="1px",t}Q(jNe,"createCopyHtmlContainer");function rq(t){if(t instanceof HTMLTextAreaElement){const r=t.hasAttribute("readonly");return r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),t.value}t.hasAttribute("contenteditable")&&t.focus();const e=document.createRange();e.selectNodeContents(t);const n=window.getSelection();if(!n)throw new Error;return n.removeAllRanges(),n.addRange(e),n.toString()}Q(rq,"select");const Il=er("univer.confirm-service");e2(Vt.Rendered,Il);function $Ne(){const t=Ne(Il),[e,n]=E.useState([]);E.useEffect(()=>{const i=t.confirmOptions$.subscribe(a=>{n(a)});return()=>{i.unsubscribe()}},[]);const r=e.map(i=>{const{children:a,title:o,...s}=i,l=s;for(const u of["children","title"]){const c=u,d=i[c];d&&(l[c]=We.jsx(_u,{...d}))}return l});return r==null?void 0:r.map((i,a)=>We.jsx(JQ,{...i},a))}Q($Ne,"ConfirmPart");var mFt=Object.defineProperty,gFt=Object.getOwnPropertyDescriptor,pFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?gFt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&mFt(e,n,i),i},"__decorateClass$6"),Zse=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),$k;let EI=($k=class extends et{constructor(t,e){super(),gn(this,"_confirmOptions",[]),gn(this,"confirmOptions$",new Zt),this._injector=t,this._uiPartsService=e,this._initUIPart()}open(t){return this._confirmOptions.find(e=>e.id===t.id)?this._confirmOptions=this._confirmOptions.map(e=>({...e.id===t.id?t:e,visible:e.id===t.id?!0:e.visible})):this._confirmOptions.push({...t,visible:!0}),this.confirmOptions$.next(this._confirmOptions),$t(()=>{this._confirmOptions=[],this.confirmOptions$.next([])})}confirm(t){return new Promise(e=>{const n=this.open({...t,onConfirm:Q(()=>{n.dispose(),e(!0)},"onConfirm"),onClose:Q(()=>{n.dispose(),e(!1)},"onClose")})})}close(t){this._confirmOptions=this._confirmOptions.map(e=>({...e,visible:e.id===t?!1:e.visible})),this.confirmOptions$.next([...this._confirmOptions])}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.GLOBAL,()=>yl($Ne,this._injector)))}},Q($k,"DesktopConfirmService"),$k);EI=pFt([Zse(0,se(Wn)),Zse(1,_c)],EI);const Rd=er("univer.ui.dialog-service");function WNe(){const t=Ne(Rd),[e,n]=E.useState([]);E.useEffect(()=>{const i=t.getDialogs$().subscribe(a=>{n(a)});return()=>i.unsubscribe()},[t]);const r=e.map(i=>{const{children:a,title:o,closeIcon:s,footer:l,...u}=i,c=u;for(const d of["children","title","closeIcon","footer"]){const h=d,f=i[h];f&&(c[h]=We.jsx(_u,{...f}))}return c});return We.jsx(We.Fragment,{children:r==null?void 0:r.map(i=>We.jsx(qM,{...i},i.id))})}Q(WNe,"DialogPart");var vFt=Object.defineProperty,_Ft=Object.getOwnPropertyDescriptor,CFt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?_Ft(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&vFt(e,n,i),i},"__decorateClass$5"),Jse=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),Wk;let RI=(Wk=class extends et{constructor(t,e){super(),gn(this,"_dialogOptions",[]),gn(this,"_dialogOptions$",new Zt),this._injector=t,this._uiPartsService=e,this._initUIPart()}dispose(){super.dispose(),this._dialogOptions$.complete()}open(t){return this._dialogOptions.find(e=>e.id===t.id)?this._dialogOptions=this._dialogOptions.map(e=>({...e.id===t.id?t:e,visible:e.id===t.id?!0:e.visible})):this._dialogOptions.push({...t,visible:!0}),this._dialogOptions$.next(this._dialogOptions),$t(()=>{this._dialogOptions=[],this._dialogOptions$.next([])})}close(t){this._dialogOptions=this._dialogOptions.map(e=>({...e,visible:e.id===t?!1:e.visible})),this._dialogOptions$.next([...this._dialogOptions])}closeAll(t){const e=new Set(t);this._dialogOptions=this._dialogOptions.map(n=>({...n,visible:e.has(n.id)?n.visible:!1})),this._dialogOptions$.next([...this._dialogOptions])}getDialogs$(){return this._dialogOptions$.asObservable()}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.GLOBAL,()=>yl(WNe,this._injector)))}},Q(Wk,"DesktopDialogService"),Wk);RI=CFt([Jse(0,se(Wn)),Jse(1,_c)],RI);function J5(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Q(J5,"commonjsRequire");var zNe={exports:{}};/*! |
|
|
localForage -- Offline Storage, Improved |
|
|
Version 1.10.0 |
|
|
https://localforage.github.io/localForage |
|
|
(c) 2013-2017 Mozilla, Apache License 2.0 |
|
|
*/(function(t,e){(function(n){t.exports=n()})(function(){return Q(function n(r,i,a){function o(u,c){if(!i[u]){if(!r[u]){var d=typeof J5=="function"&&J5;if(!c&&d)return d(u,!0);if(s)return s(u,!0);var h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h}var f=i[u]={exports:{}};r[u][0].call(f.exports,function(m){var g=r[u][1][m];return o(g||m)},f,f.exports,n,r,i,a)}return i[u].exports}Q(o,"s");for(var s=typeof J5=="function"&&J5,l=0;l<a.length;l++)o(a[l]);return o},"e")({1:[function(n,r,i){(function(a){var o=a.MutationObserver||a.WebKitMutationObserver,s;if(o){var l=0,u=new o(m),c=a.document.createTextNode("");u.observe(c,{characterData:!0}),s=Q(function(){c.data=l=++l%2},"scheduleDrain")}else if(!a.setImmediate&&typeof a.MessageChannel<"u"){var d=new a.MessageChannel;d.port1.onmessage=m,s=Q(function(){d.port2.postMessage(0)},"scheduleDrain")}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?s=Q(function(){var p=a.document.createElement("script");p.onreadystatechange=function(){m(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},a.document.documentElement.appendChild(p)},"scheduleDrain"):s=Q(function(){setTimeout(m,0)},"scheduleDrain");var h,f=[];function m(){h=!0;for(var p,v,_=f.length;_;){for(v=f,f=[],p=-1;++p<_;)v[p]();_=f.length}h=!1}Q(m,"nextTick"),r.exports=g;function g(p){f.push(p)===1&&!h&&s()}Q(g,"immediate")}).call(this,typeof My<"u"?My:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,i){var a=n(1);function o(){}Q(o,"INTERNAL");var s={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];r.exports=d;function d(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,b!==o&&g(this,b)}Q(d,"Promise"),d.prototype.catch=function(b){return this.then(null,b)},d.prototype.then=function(b,y){if(typeof b!="function"&&this.state===u||typeof y!="function"&&this.state===l)return this;var A=new this.constructor(o);if(this.state!==c){var w=this.state===u?b:y;f(A,w,this.outcome)}else this.queue.push(new h(A,b,y));return A};function h(b,y,A){this.promise=b,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}Q(h,"QueueItem"),h.prototype.callFulfilled=function(b){s.resolve(this.promise,b)},h.prototype.otherCallFulfilled=function(b){f(this.promise,this.onFulfilled,b)},h.prototype.callRejected=function(b){s.reject(this.promise,b)},h.prototype.otherCallRejected=function(b){f(this.promise,this.onRejected,b)};function f(b,y,A){a(function(){var w;try{w=y(A)}catch(P){return s.reject(b,P)}w===b?s.reject(b,new TypeError("Cannot resolve promise with itself")):s.resolve(b,w)})}Q(f,"unwrap"),s.resolve=function(b,y){var A=p(m,y);if(A.status==="error")return s.reject(b,A.value);var w=A.value;if(w)g(b,w);else{b.state=u,b.outcome=y;for(var P=-1,M=b.queue.length;++P<M;)b.queue[P].callFulfilled(y)}return b},s.reject=function(b,y){b.state=l,b.outcome=y;for(var A=-1,w=b.queue.length;++A<w;)b.queue[A].callRejected(y);return b};function m(b){var y=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof y=="function")return Q(function(){y.apply(b,arguments)},"appyThen")}Q(m,"getThen");function g(b,y){var A=!1;function w(k){A||(A=!0,s.reject(b,k))}Q(w,"onError");function P(k){A||(A=!0,s.resolve(b,k))}Q(P,"onSuccess");function M(){y(P,w)}Q(M,"tryToUnwrap");var L=p(M);L.status==="error"&&w(L.value)}Q(g,"safelyResolveThenable");function p(b,y){var A={};try{A.value=b(y),A.status="success"}catch(w){A.status="error",A.value=w}return A}Q(p,"tryCatch"),d.resolve=v;function v(b){return b instanceof this?b:s.resolve(new this(o),b)}Q(v,"resolve"),d.reject=_;function _(b){var y=new this(o);return s.reject(y,b)}Q(_,"reject"),d.all=C;function C(b){var y=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,w=!1;if(!A)return this.resolve([]);for(var P=new Array(A),M=0,L=-1,k=new this(o);++L<A;)O(b[L],L);return k;function O($,B){y.resolve($).then(V,function(X){w||(w=!0,s.reject(k,X))});function V(X){P[B]=X,++M===A&&!w&&(w=!0,s.resolve(k,P))}Q(V,"resolveFromAll")}}Q(C,"all"),d.race=S;function S(b){var y=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,w=!1;if(!A)return this.resolve([]);for(var P=-1,M=new this(o);++P<A;)L(b[P]);return M;function L(k){y.resolve(k).then(function(O){w||(w=!0,s.resolve(M,O))},function(O){w||(w=!0,s.reject(M,O))})}}Q(S,"race")},{1:1}],3:[function(n,r,i){(function(a){typeof a.Promise!="function"&&(a.Promise=n(2))}).call(this,typeof My<"u"?My:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,i){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve};function o(ve,Me){if(!(ve instanceof Me))throw new TypeError("Cannot call a class as a function")}Q(o,"_classCallCheck");function s(){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}}Q(s,"getIDB");var l=s();function u(){try{if(!l||!l.open)return!1;var ve=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Me=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!ve||Me)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}Q(u,"isIndexedDBValid");function c(ve,Me){ve=ve||[],Me=Me||{};try{return new Blob(ve,Me)}catch(Ue){if(Ue.name!=="TypeError")throw Ue;for(var Te=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,ot=new Te,Ge=0;Ge<ve.length;Ge+=1)ot.append(ve[Ge]);return ot.getBlob(Me.type)}}Q(c,"createBlob"),typeof Promise>"u"&&n(3);var d=Promise;function h(ve,Me){Me&&ve.then(function(Te){Me(null,Te)},function(Te){Me(Te)})}Q(h,"executeCallback");function f(ve,Me,Te){typeof Me=="function"&&ve.then(Me),typeof Te=="function"&&ve.catch(Te)}Q(f,"executeTwoCallbacks");function m(ve){return typeof ve!="string"&&(console.warn(ve+" used as a key, but it is not a string."),ve=String(ve)),ve}Q(m,"normalizeKey");function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}Q(g,"getCallback");var p="local-forage-detect-blob-support",v=void 0,_={},C=Object.prototype.toString,S="readonly",b="readwrite";function y(ve){for(var Me=ve.length,Te=new ArrayBuffer(Me),ot=new Uint8Array(Te),Ge=0;Ge<Me;Ge++)ot[Ge]=ve.charCodeAt(Ge);return Te}Q(y,"_binStringToArrayBuffer");function A(ve){return new d(function(Me){var Te=ve.transaction(p,b),ot=c([""]);Te.objectStore(p).put(ot,"key"),Te.onabort=function(Ge){Ge.preventDefault(),Ge.stopPropagation(),Me(!1)},Te.oncomplete=function(){var Ge=navigator.userAgent.match(/Chrome\/(\d+)/),Ue=navigator.userAgent.match(/Edge\//);Me(Ue||!Ge||parseInt(Ge[1],10)>=43)}}).catch(function(){return!1})}Q(A,"_checkBlobSupportWithoutCaching");function w(ve){return typeof v=="boolean"?d.resolve(v):A(ve).then(function(Me){return v=Me,v})}Q(w,"_checkBlobSupport");function P(ve){var Me=_[ve.name],Te={};Te.promise=new d(function(ot,Ge){Te.resolve=ot,Te.reject=Ge}),Me.deferredOperations.push(Te),Me.dbReady?Me.dbReady=Me.dbReady.then(function(){return Te.promise}):Me.dbReady=Te.promise}Q(P,"_deferReadiness");function M(ve){var Me=_[ve.name],Te=Me.deferredOperations.pop();if(Te)return Te.resolve(),Te.promise}Q(M,"_advanceReadiness");function L(ve,Me){var Te=_[ve.name],ot=Te.deferredOperations.pop();if(ot)return ot.reject(Me),ot.promise}Q(L,"_rejectReadiness");function k(ve,Me){return new d(function(Te,ot){if(_[ve.name]=_[ve.name]||K(),ve.db)if(Me)P(ve),ve.db.close();else return Te(ve.db);var Ge=[ve.name];Me&&Ge.push(ve.version);var Ue=l.open.apply(l,Ge);Me&&(Ue.onupgradeneeded=function(rt){var yt=Ue.result;try{yt.createObjectStore(ve.storeName),rt.oldVersion<=1&&yt.createObjectStore(p)}catch(Rt){if(Rt.name==="ConstraintError")console.warn('The database "'+ve.name+'" has been upgraded from version '+rt.oldVersion+" to version "+rt.newVersion+', but the storage "'+ve.storeName+'" already exists.');else throw Rt}}),Ue.onerror=function(rt){rt.preventDefault(),ot(Ue.error)},Ue.onsuccess=function(){var rt=Ue.result;rt.onversionchange=function(yt){yt.target.close()},Te(rt),M(ve)}})}Q(k,"_getConnection");function O(ve){return k(ve,!1)}Q(O,"_getOriginalConnection");function $(ve){return k(ve,!0)}Q($,"_getUpgradedConnection");function B(ve,Me){if(!ve.db)return!0;var Te=!ve.db.objectStoreNames.contains(ve.storeName),ot=ve.version<ve.db.version,Ge=ve.version>ve.db.version;if(ot&&(ve.version!==Me&&console.warn('The database "'+ve.name+`" can't be downgraded from version `+ve.db.version+" to version "+ve.version+"."),ve.version=ve.db.version),Ge||Te){if(Te){var Ue=ve.db.version+1;Ue>ve.version&&(ve.version=Ue)}return!0}return!1}Q(B,"_isUpgradeNeeded");function V(ve){return new d(function(Me,Te){var ot=new FileReader;ot.onerror=Te,ot.onloadend=function(Ge){var Ue=btoa(Ge.target.result||"");Me({__local_forage_encoded_blob:!0,data:Ue,type:ve.type})},ot.readAsBinaryString(ve)})}Q(V,"_encodeBlob");function X(ve){var Me=y(atob(ve.data));return c([Me],{type:ve.type})}Q(X,"_decodeBlob");function z(ve){return ve&&ve.__local_forage_encoded_blob}Q(z,"_isEncodedBlob");function F(ve){var Me=this,Te=Me._initReady().then(function(){var ot=_[Me._dbInfo.name];if(ot&&ot.dbReady)return ot.dbReady});return f(Te,ve,ve),Te}Q(F,"_fullyReady");function H(ve){P(ve);for(var Me=_[ve.name],Te=Me.forages,ot=0;ot<Te.length;ot++){var Ge=Te[ot];Ge._dbInfo.db&&(Ge._dbInfo.db.close(),Ge._dbInfo.db=null)}return ve.db=null,O(ve).then(function(Ue){return ve.db=Ue,B(ve)?$(ve):Ue}).then(function(Ue){ve.db=Me.db=Ue;for(var rt=0;rt<Te.length;rt++)Te[rt]._dbInfo.db=Ue}).catch(function(Ue){throw L(ve,Ue),Ue})}Q(H,"_tryReconnect");function W(ve,Me,Te,ot){ot===void 0&&(ot=1);try{var Ge=ve.db.transaction(ve.storeName,Me);Te(null,Ge)}catch(Ue){if(ot>0&&(!ve.db||Ue.name==="InvalidStateError"||Ue.name==="NotFoundError"))return d.resolve().then(function(){if(!ve.db||Ue.name==="NotFoundError"&&!ve.db.objectStoreNames.contains(ve.storeName)&&ve.version<=ve.db.version)return ve.db&&(ve.version=ve.db.version+1),$(ve)}).then(function(){return H(ve).then(function(){W(ve,Me,Te,ot-1)})}).catch(Te);Te(Ue)}}Q(W,"createTransaction");function K(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}Q(K,"createDbContext");function G(ve){var Me=this,Te={db:null};if(ve)for(var ot in ve)Te[ot]=ve[ot];var Ge=_[Te.name];Ge||(Ge=K(),_[Te.name]=Ge),Ge.forages.push(Me),Me._initReady||(Me._initReady=Me.ready,Me.ready=F);var Ue=[];function rt(){return d.resolve()}Q(rt,"ignoreErrors");for(var yt=0;yt<Ge.forages.length;yt++){var Rt=Ge.forages[yt];Rt!==Me&&Ue.push(Rt._initReady().catch(rt))}var Nt=Ge.forages.slice(0);return d.all(Ue).then(function(){return Te.db=Ge.db,O(Te)}).then(function(dt){return Te.db=dt,B(Te,Me._defaultConfig.version)?$(Te):dt}).then(function(dt){Te.db=Ge.db=dt,Me._dbInfo=Te;for(var fn=0;fn<Nt.length;fn++){var sr=Nt[fn];sr!==Me&&(sr._dbInfo.db=Te.db,sr._dbInfo.version=Te.version)}})}Q(G,"_initStorage");function te(ve,Me){var Te=this;ve=m(ve);var ot=new d(function(Ge,Ue){Te.ready().then(function(){W(Te._dbInfo,S,function(rt,yt){if(rt)return Ue(rt);try{var Rt=yt.objectStore(Te._dbInfo.storeName),Nt=Rt.get(ve);Nt.onsuccess=function(){var dt=Nt.result;dt===void 0&&(dt=null),z(dt)&&(dt=X(dt)),Ge(dt)},Nt.onerror=function(){Ue(Nt.error)}}catch(dt){Ue(dt)}})}).catch(Ue)});return h(ot,Me),ot}Q(te,"getItem");function Y(ve,Me){var Te=this,ot=new d(function(Ge,Ue){Te.ready().then(function(){W(Te._dbInfo,S,function(rt,yt){if(rt)return Ue(rt);try{var Rt=yt.objectStore(Te._dbInfo.storeName),Nt=Rt.openCursor(),dt=1;Nt.onsuccess=function(){var fn=Nt.result;if(fn){var sr=fn.value;z(sr)&&(sr=X(sr));var Wr=ve(sr,fn.key,dt++);Wr!==void 0?Ge(Wr):fn.continue()}else Ge()},Nt.onerror=function(){Ue(Nt.error)}}catch(fn){Ue(fn)}})}).catch(Ue)});return h(ot,Me),ot}Q(Y,"iterate");function ae(ve,Me,Te){var ot=this;ve=m(ve);var Ge=new d(function(Ue,rt){var yt;ot.ready().then(function(){return yt=ot._dbInfo,C.call(Me)==="[object Blob]"?w(yt.db).then(function(Rt){return Rt?Me:V(Me)}):Me}).then(function(Rt){W(ot._dbInfo,b,function(Nt,dt){if(Nt)return rt(Nt);try{var fn=dt.objectStore(ot._dbInfo.storeName);Rt===null&&(Rt=void 0);var sr=fn.put(Rt,ve);dt.oncomplete=function(){Rt===void 0&&(Rt=null),Ue(Rt)},dt.onabort=dt.onerror=function(){var Wr=sr.error?sr.error:sr.transaction.error;rt(Wr)}}catch(Wr){rt(Wr)}})}).catch(rt)});return h(Ge,Te),Ge}Q(ae,"setItem");function ie(ve,Me){var Te=this;ve=m(ve);var ot=new d(function(Ge,Ue){Te.ready().then(function(){W(Te._dbInfo,b,function(rt,yt){if(rt)return Ue(rt);try{var Rt=yt.objectStore(Te._dbInfo.storeName),Nt=Rt.delete(ve);yt.oncomplete=function(){Ge()},yt.onerror=function(){Ue(Nt.error)},yt.onabort=function(){var dt=Nt.error?Nt.error:Nt.transaction.error;Ue(dt)}}catch(dt){Ue(dt)}})}).catch(Ue)});return h(ot,Me),ot}Q(ie,"removeItem");function ne(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){W(Me._dbInfo,b,function(Ue,rt){if(Ue)return Ge(Ue);try{var yt=rt.objectStore(Me._dbInfo.storeName),Rt=yt.clear();rt.oncomplete=function(){ot()},rt.onabort=rt.onerror=function(){var Nt=Rt.error?Rt.error:Rt.transaction.error;Ge(Nt)}}catch(Nt){Ge(Nt)}})}).catch(Ge)});return h(Te,ve),Te}Q(ne,"clear");function de(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){W(Me._dbInfo,S,function(Ue,rt){if(Ue)return Ge(Ue);try{var yt=rt.objectStore(Me._dbInfo.storeName),Rt=yt.count();Rt.onsuccess=function(){ot(Rt.result)},Rt.onerror=function(){Ge(Rt.error)}}catch(Nt){Ge(Nt)}})}).catch(Ge)});return h(Te,ve),Te}Q(de,"length");function _e(ve,Me){var Te=this,ot=new d(function(Ge,Ue){if(ve<0){Ge(null);return}Te.ready().then(function(){W(Te._dbInfo,S,function(rt,yt){if(rt)return Ue(rt);try{var Rt=yt.objectStore(Te._dbInfo.storeName),Nt=!1,dt=Rt.openKeyCursor();dt.onsuccess=function(){var fn=dt.result;if(!fn){Ge(null);return}ve===0||Nt?Ge(fn.key):(Nt=!0,fn.advance(ve))},dt.onerror=function(){Ue(dt.error)}}catch(fn){Ue(fn)}})}).catch(Ue)});return h(ot,Me),ot}Q(_e,"key");function Pe(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){W(Me._dbInfo,S,function(Ue,rt){if(Ue)return Ge(Ue);try{var yt=rt.objectStore(Me._dbInfo.storeName),Rt=yt.openKeyCursor(),Nt=[];Rt.onsuccess=function(){var dt=Rt.result;if(!dt){ot(Nt);return}Nt.push(dt.key),dt.continue()},Rt.onerror=function(){Ge(Rt.error)}}catch(dt){Ge(dt)}})}).catch(Ge)});return h(Te,ve),Te}Q(Pe,"keys");function De(ve,Me){Me=g.apply(this,arguments);var Te=this.config();ve=typeof ve!="function"&&ve||{},ve.name||(ve.name=ve.name||Te.name,ve.storeName=ve.storeName||Te.storeName);var ot=this,Ge;if(!ve.name)Ge=d.reject("Invalid arguments");else{var Ue=ve.name===Te.name&&ot._dbInfo.db,rt=Ue?d.resolve(ot._dbInfo.db):O(ve).then(function(yt){var Rt=_[ve.name],Nt=Rt.forages;Rt.db=yt;for(var dt=0;dt<Nt.length;dt++)Nt[dt]._dbInfo.db=yt;return yt});ve.storeName?Ge=rt.then(function(yt){if(yt.objectStoreNames.contains(ve.storeName)){var Rt=yt.version+1;P(ve);var Nt=_[ve.name],dt=Nt.forages;yt.close();for(var fn=0;fn<dt.length;fn++){var sr=dt[fn];sr._dbInfo.db=null,sr._dbInfo.version=Rt}var Wr=new d(function(qr,Ri){var Ai=l.open(ve.name,Rt);Ai.onerror=function(Vo){var Lc=Ai.result;Lc.close(),Ri(Vo)},Ai.onupgradeneeded=function(){var Vo=Ai.result;Vo.deleteObjectStore(ve.storeName)},Ai.onsuccess=function(){var Vo=Ai.result;Vo.close(),qr(Vo)}});return Wr.then(function(qr){Nt.db=qr;for(var Ri=0;Ri<dt.length;Ri++){var Ai=dt[Ri];Ai._dbInfo.db=qr,M(Ai._dbInfo)}}).catch(function(qr){throw(L(ve,qr)||d.resolve()).catch(function(){}),qr})}}):Ge=rt.then(function(yt){P(ve);var Rt=_[ve.name],Nt=Rt.forages;yt.close();for(var dt=0;dt<Nt.length;dt++){var fn=Nt[dt];fn._dbInfo.db=null}var sr=new d(function(Wr,qr){var Ri=l.deleteDatabase(ve.name);Ri.onerror=function(){var Ai=Ri.result;Ai&&Ai.close(),qr(Ri.error)},Ri.onblocked=function(){console.warn('dropInstance blocked for database "'+ve.name+'" until all open connections are closed')},Ri.onsuccess=function(){var Ai=Ri.result;Ai&&Ai.close(),Wr(Ai)}});return sr.then(function(Wr){Rt.db=Wr;for(var qr=0;qr<Nt.length;qr++){var Ri=Nt[qr];M(Ri._dbInfo)}}).catch(function(Wr){throw(L(ve,Wr)||d.resolve()).catch(function(){}),Wr})})}return h(Ge,Me),Ge}Q(De,"dropInstance");var Ee={_driver:"asyncStorage",_initStorage:G,_support:u(),iterate:Y,getItem:te,setItem:ae,removeItem:ie,clear:ne,length:de,key:_e,keys:Pe,dropInstance:De};function ye(){return typeof openDatabase=="function"}Q(ye,"isWebSQLValid");var Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke="~~local_forage_type~",Ke=/^~~local_forage_type~([^~]+)~/,$e="__lfsc__:",Fe=$e.length,He="arbf",ct="blob",_t="si08",Ye="ui08",Ot="uic8",An="si16",Ut="si32",Jt="ur16",dn="ui32",Sn="fl32",hn="fl64",tr=Fe+He.length,en=Object.prototype.toString;function bt(ve){var Me=ve.length*.75,Te=ve.length,ot,Ge=0,Ue,rt,yt,Rt;ve[ve.length-1]==="="&&(Me--,ve[ve.length-2]==="="&&Me--);var Nt=new ArrayBuffer(Me),dt=new Uint8Array(Nt);for(ot=0;ot<Te;ot+=4)Ue=Ve.indexOf(ve[ot]),rt=Ve.indexOf(ve[ot+1]),yt=Ve.indexOf(ve[ot+2]),Rt=Ve.indexOf(ve[ot+3]),dt[Ge++]=Ue<<2|rt>>4,dt[Ge++]=(rt&15)<<4|yt>>2,dt[Ge++]=(yt&3)<<6|Rt&63;return Nt}Q(bt,"stringToBuffer");function ue(ve){var Me=new Uint8Array(ve),Te="",ot;for(ot=0;ot<Me.length;ot+=3)Te+=Ve[Me[ot]>>2],Te+=Ve[(Me[ot]&3)<<4|Me[ot+1]>>4],Te+=Ve[(Me[ot+1]&15)<<2|Me[ot+2]>>6],Te+=Ve[Me[ot+2]&63];return Me.length%3===2?Te=Te.substring(0,Te.length-1)+"=":Me.length%3===1&&(Te=Te.substring(0,Te.length-2)+"=="),Te}Q(ue,"bufferToString");function ce(ve,Me){var Te="";if(ve&&(Te=en.call(ve)),ve&&(Te==="[object ArrayBuffer]"||ve.buffer&&en.call(ve.buffer)==="[object ArrayBuffer]")){var ot,Ge=$e;ve instanceof ArrayBuffer?(ot=ve,Ge+=He):(ot=ve.buffer,Te==="[object Int8Array]"?Ge+=_t:Te==="[object Uint8Array]"?Ge+=Ye:Te==="[object Uint8ClampedArray]"?Ge+=Ot:Te==="[object Int16Array]"?Ge+=An:Te==="[object Uint16Array]"?Ge+=Jt:Te==="[object Int32Array]"?Ge+=Ut:Te==="[object Uint32Array]"?Ge+=dn:Te==="[object Float32Array]"?Ge+=Sn:Te==="[object Float64Array]"?Ge+=hn:Me(new Error("Failed to get type for BinaryArray"))),Me(Ge+ue(ot))}else if(Te==="[object Blob]"){var Ue=new FileReader;Ue.onload=function(){var rt=ke+ve.type+"~"+ue(this.result);Me($e+ct+rt)},Ue.readAsArrayBuffer(ve)}else try{Me(JSON.stringify(ve))}catch(rt){console.error("Couldn't convert value into a JSON string: ",ve),Me(null,rt)}}Q(ce,"serialize");function pe(ve){if(ve.substring(0,Fe)!==$e)return JSON.parse(ve);var Me=ve.substring(tr),Te=ve.substring(Fe,tr),ot;if(Te===ct&&Ke.test(Me)){var Ge=Me.match(Ke);ot=Ge[1],Me=Me.substring(Ge[0].length)}var Ue=bt(Me);switch(Te){case He:return Ue;case ct:return c([Ue],{type:ot});case _t:return new Int8Array(Ue);case Ye:return new Uint8Array(Ue);case Ot:return new Uint8ClampedArray(Ue);case An:return new Int16Array(Ue);case Jt:return new Uint16Array(Ue);case Ut:return new Int32Array(Ue);case dn:return new Uint32Array(Ue);case Sn:return new Float32Array(Ue);case hn:return new Float64Array(Ue);default:throw new Error("Unkown type: "+Te)}}Q(pe,"deserialize");var Ae={serialize:ce,deserialize:pe,stringToBuffer:bt,bufferToString:ue};function je(ve,Me,Te,ot){ve.executeSql("CREATE TABLE IF NOT EXISTS "+Me.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Te,ot)}Q(je,"createDbTable");function tt(ve){var Me=this,Te={db:null};if(ve)for(var ot in ve)Te[ot]=typeof ve[ot]!="string"?ve[ot].toString():ve[ot];var Ge=new d(function(Ue,rt){try{Te.db=openDatabase(Te.name,String(Te.version),Te.description,Te.size)}catch(yt){return rt(yt)}Te.db.transaction(function(yt){je(yt,Te,function(){Me._dbInfo=Te,Ue()},function(Rt,Nt){rt(Nt)})},rt)});return Te.serializer=Ae,Ge}Q(tt,"_initStorage$1");function Qe(ve,Me,Te,ot,Ge,Ue){ve.executeSql(Te,ot,Ge,function(rt,yt){yt.code===yt.SYNTAX_ERR?rt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Me.storeName],function(Rt,Nt){Nt.rows.length?Ue(Rt,yt):je(Rt,Me,function(){Rt.executeSql(Te,ot,Ge,Ue)},Ue)},Ue):Ue(rt,yt)},Ue)}Q(Qe,"tryExecuteSql");function nt(ve,Me){var Te=this;ve=m(ve);var ot=new d(function(Ge,Ue){Te.ready().then(function(){var rt=Te._dbInfo;rt.db.transaction(function(yt){Qe(yt,rt,"SELECT * FROM "+rt.storeName+" WHERE key = ? LIMIT 1",[ve],function(Rt,Nt){var dt=Nt.rows.length?Nt.rows.item(0).value:null;dt&&(dt=rt.serializer.deserialize(dt)),Ge(dt)},function(Rt,Nt){Ue(Nt)})})}).catch(Ue)});return h(ot,Me),ot}Q(nt,"getItem$1");function we(ve,Me){var Te=this,ot=new d(function(Ge,Ue){Te.ready().then(function(){var rt=Te._dbInfo;rt.db.transaction(function(yt){Qe(yt,rt,"SELECT * FROM "+rt.storeName,[],function(Rt,Nt){for(var dt=Nt.rows,fn=dt.length,sr=0;sr<fn;sr++){var Wr=dt.item(sr),qr=Wr.value;if(qr&&(qr=rt.serializer.deserialize(qr)),qr=ve(qr,Wr.key,sr+1),qr!==void 0){Ge(qr);return}}Ge()},function(Rt,Nt){Ue(Nt)})})}).catch(Ue)});return h(ot,Me),ot}Q(we,"iterate$1");function Ze(ve,Me,Te,ot){var Ge=this;ve=m(ve);var Ue=new d(function(rt,yt){Ge.ready().then(function(){Me===void 0&&(Me=null);var Rt=Me,Nt=Ge._dbInfo;Nt.serializer.serialize(Me,function(dt,fn){fn?yt(fn):Nt.db.transaction(function(sr){Qe(sr,Nt,"INSERT OR REPLACE INTO "+Nt.storeName+" (key, value) VALUES (?, ?)",[ve,dt],function(){rt(Rt)},function(Wr,qr){yt(qr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(ot>0){rt(Ze.apply(Ge,[ve,Rt,Te,ot-1]));return}yt(sr)}})})}).catch(yt)});return h(Ue,Te),Ue}Q(Ze,"_setItem");function ht(ve,Me,Te){return Ze.apply(this,[ve,Me,Te,1])}Q(ht,"setItem$1");function pt(ve,Me){var Te=this;ve=m(ve);var ot=new d(function(Ge,Ue){Te.ready().then(function(){var rt=Te._dbInfo;rt.db.transaction(function(yt){Qe(yt,rt,"DELETE FROM "+rt.storeName+" WHERE key = ?",[ve],function(){Ge()},function(Rt,Nt){Ue(Nt)})})}).catch(Ue)});return h(ot,Me),ot}Q(pt,"removeItem$1");function Mt(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){var Ue=Me._dbInfo;Ue.db.transaction(function(rt){Qe(rt,Ue,"DELETE FROM "+Ue.storeName,[],function(){ot()},function(yt,Rt){Ge(Rt)})})}).catch(Ge)});return h(Te,ve),Te}Q(Mt,"clear$1");function xt(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){var Ue=Me._dbInfo;Ue.db.transaction(function(rt){Qe(rt,Ue,"SELECT COUNT(key) as c FROM "+Ue.storeName,[],function(yt,Rt){var Nt=Rt.rows.item(0).c;ot(Nt)},function(yt,Rt){Ge(Rt)})})}).catch(Ge)});return h(Te,ve),Te}Q(xt,"length$1");function st(ve,Me){var Te=this,ot=new d(function(Ge,Ue){Te.ready().then(function(){var rt=Te._dbInfo;rt.db.transaction(function(yt){Qe(yt,rt,"SELECT key FROM "+rt.storeName+" WHERE id = ? LIMIT 1",[ve+1],function(Rt,Nt){var dt=Nt.rows.length?Nt.rows.item(0).key:null;Ge(dt)},function(Rt,Nt){Ue(Nt)})})}).catch(Ue)});return h(ot,Me),ot}Q(st,"key$1");function Be(ve){var Me=this,Te=new d(function(ot,Ge){Me.ready().then(function(){var Ue=Me._dbInfo;Ue.db.transaction(function(rt){Qe(rt,Ue,"SELECT key FROM "+Ue.storeName,[],function(yt,Rt){for(var Nt=[],dt=0;dt<Rt.rows.length;dt++)Nt.push(Rt.rows.item(dt).key);ot(Nt)},function(yt,Rt){Ge(Rt)})})}).catch(Ge)});return h(Te,ve),Te}Q(Be,"keys$1");function vt(ve){return new d(function(Me,Te){ve.transaction(function(ot){ot.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Ge,Ue){for(var rt=[],yt=0;yt<Ue.rows.length;yt++)rt.push(Ue.rows.item(yt).name);Me({db:ve,storeNames:rt})},function(Ge,Ue){Te(Ue)})},function(ot){Te(ot)})})}Q(vt,"getAllStoreNames");function qt(ve,Me){Me=g.apply(this,arguments);var Te=this.config();ve=typeof ve!="function"&&ve||{},ve.name||(ve.name=ve.name||Te.name,ve.storeName=ve.storeName||Te.storeName);var ot=this,Ge;return ve.name?Ge=new d(function(Ue){var rt;ve.name===Te.name?rt=ot._dbInfo.db:rt=openDatabase(ve.name,"","",0),ve.storeName?Ue({db:rt,storeNames:[ve.storeName]}):Ue(vt(rt))}).then(function(Ue){return new d(function(rt,yt){Ue.db.transaction(function(Rt){function Nt(Wr){return new d(function(qr,Ri){Rt.executeSql("DROP TABLE IF EXISTS "+Wr,[],function(){qr()},function(Ai,Vo){Ri(Vo)})})}Q(Nt,"dropTable");for(var dt=[],fn=0,sr=Ue.storeNames.length;fn<sr;fn++)dt.push(Nt(Ue.storeNames[fn]));d.all(dt).then(function(){rt()}).catch(function(Wr){yt(Wr)})},function(Rt){yt(Rt)})})}):Ge=d.reject("Invalid arguments"),h(Ge,Me),Ge}Q(qt,"dropInstance$1");var Lt={_driver:"webSQLStorage",_initStorage:tt,_support:ye(),iterate:we,getItem:nt,setItem:ht,removeItem:pt,clear:Mt,length:xt,key:st,keys:Be,dropInstance:qt};function zt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}Q(zt,"isLocalStorageValid");function Yt(ve,Me){var Te=ve.name+"/";return ve.storeName!==Me.storeName&&(Te+=ve.storeName+"/"),Te}Q(Yt,"_getKeyPrefix");function un(){var ve="_localforage_support_test";try{return localStorage.setItem(ve,!0),localStorage.removeItem(ve),!1}catch{return!0}}Q(un,"checkIfLocalStorageThrows");function ir(){return!un()||localStorage.length>0}Q(ir,"_isLocalStorageUsable");function jr(ve){var Me=this,Te={};if(ve)for(var ot in ve)Te[ot]=ve[ot];return Te.keyPrefix=Yt(ve,Me._defaultConfig),ir()?(Me._dbInfo=Te,Te.serializer=Ae,d.resolve()):d.reject()}Q(jr,"_initStorage$2");function ln(ve){var Me=this,Te=Me.ready().then(function(){for(var ot=Me._dbInfo.keyPrefix,Ge=localStorage.length-1;Ge>=0;Ge--){var Ue=localStorage.key(Ge);Ue.indexOf(ot)===0&&localStorage.removeItem(Ue)}});return h(Te,ve),Te}Q(ln,"clear$2");function Nr(ve,Me){var Te=this;ve=m(ve);var ot=Te.ready().then(function(){var Ge=Te._dbInfo,Ue=localStorage.getItem(Ge.keyPrefix+ve);return Ue&&(Ue=Ge.serializer.deserialize(Ue)),Ue});return h(ot,Me),ot}Q(Nr,"getItem$2");function mn(ve,Me){var Te=this,ot=Te.ready().then(function(){for(var Ge=Te._dbInfo,Ue=Ge.keyPrefix,rt=Ue.length,yt=localStorage.length,Rt=1,Nt=0;Nt<yt;Nt++){var dt=localStorage.key(Nt);if(dt.indexOf(Ue)===0){var fn=localStorage.getItem(dt);if(fn&&(fn=Ge.serializer.deserialize(fn)),fn=ve(fn,dt.substring(rt),Rt++),fn!==void 0)return fn}}});return h(ot,Me),ot}Q(mn,"iterate$2");function rn(ve,Me){var Te=this,ot=Te.ready().then(function(){var Ge=Te._dbInfo,Ue;try{Ue=localStorage.key(ve)}catch{Ue=null}return Ue&&(Ue=Ue.substring(Ge.keyPrefix.length)),Ue});return h(ot,Me),ot}Q(rn,"key$2");function En(ve){var Me=this,Te=Me.ready().then(function(){for(var ot=Me._dbInfo,Ge=localStorage.length,Ue=[],rt=0;rt<Ge;rt++){var yt=localStorage.key(rt);yt.indexOf(ot.keyPrefix)===0&&Ue.push(yt.substring(ot.keyPrefix.length))}return Ue});return h(Te,ve),Te}Q(En,"keys$2");function Ft(ve){var Me=this,Te=Me.keys().then(function(ot){return ot.length});return h(Te,ve),Te}Q(Ft,"length$2");function $r(ve,Me){var Te=this;ve=m(ve);var ot=Te.ready().then(function(){var Ge=Te._dbInfo;localStorage.removeItem(Ge.keyPrefix+ve)});return h(ot,Me),ot}Q($r,"removeItem$2");function br(ve,Me,Te){var ot=this;ve=m(ve);var Ge=ot.ready().then(function(){Me===void 0&&(Me=null);var Ue=Me;return new d(function(rt,yt){var Rt=ot._dbInfo;Rt.serializer.serialize(Me,function(Nt,dt){if(dt)yt(dt);else try{localStorage.setItem(Rt.keyPrefix+ve,Nt),rt(Ue)}catch(fn){(fn.name==="QuotaExceededError"||fn.name==="NS_ERROR_DOM_QUOTA_REACHED")&&yt(fn),yt(fn)}})})});return h(Ge,Te),Ge}Q(br,"setItem$2");function Rn(ve,Me){if(Me=g.apply(this,arguments),ve=typeof ve!="function"&&ve||{},!ve.name){var Te=this.config();ve.name=ve.name||Te.name,ve.storeName=ve.storeName||Te.storeName}var ot=this,Ge;return ve.name?Ge=new d(function(Ue){ve.storeName?Ue(Yt(ve,ot._defaultConfig)):Ue(ve.name+"/")}).then(function(Ue){for(var rt=localStorage.length-1;rt>=0;rt--){var yt=localStorage.key(rt);yt.indexOf(Ue)===0&&localStorage.removeItem(yt)}}):Ge=d.reject("Invalid arguments"),h(Ge,Me),Ge}Q(Rn,"dropInstance$2");var Qn={_driver:"localStorageWrapper",_initStorage:jr,_support:zt(),iterate:mn,getItem:Nr,setItem:br,removeItem:$r,clear:ln,length:Ft,key:rn,keys:En,dropInstance:Rn},vr=Q(function(ve,Me){return ve===Me||typeof ve=="number"&&typeof Me=="number"&&isNaN(ve)&&isNaN(Me)},"sameValue"),gi=Q(function(ve,Me){for(var Te=ve.length,ot=0;ot<Te;){if(vr(ve[ot],Me))return!0;ot++}return!1},"includes"),pi=Array.isArray||function(ve){return Object.prototype.toString.call(ve)==="[object Array]"},vi={},qi={},Yi={INDEXEDDB:Ee,WEBSQL:Lt,LOCALSTORAGE:Qn},is=[Yi.INDEXEDDB._driver,Yi.WEBSQL._driver,Yi.LOCALSTORAGE._driver],Do=["dropInstance"],oo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Do),Ss={description:"",driver:is.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function po(ve,Me){ve[Me]=function(){var Te=arguments;return ve.ready().then(function(){return ve[Me].apply(ve,Te)})}}Q(po,"callWhenReady");function vo(){for(var ve=1;ve<arguments.length;ve++){var Me=arguments[ve];if(Me)for(var Te in Me)Me.hasOwnProperty(Te)&&(pi(Me[Te])?arguments[0][Te]=Me[Te].slice():arguments[0][Te]=Me[Te])}return arguments[0]}Q(vo,"extend");var ll=function(){function ve(Me){o(this,ve);for(var Te in Yi)if(Yi.hasOwnProperty(Te)){var ot=Yi[Te],Ge=ot._driver;this[Te]=Ge,vi[Ge]||this.defineDriver(ot)}this._defaultConfig=vo({},Ss),this._config=vo({},this._defaultConfig,Me),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Q(ve,"LocalForage"),ve.prototype.config=Q(function(Me){if((typeof Me>"u"?"undefined":a(Me))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Te in Me){if(Te==="storeName"&&(Me[Te]=Me[Te].replace(/\W/g,"_")),Te==="version"&&typeof Me[Te]!="number")return new Error("Database version must be a number.");this._config[Te]=Me[Te]}return"driver"in Me&&Me.driver?this.setDriver(this._config.driver):!0}else return typeof Me=="string"?this._config[Me]:this._config},"config"),ve.prototype.defineDriver=Q(function(Me,Te,ot){var Ge=new d(function(Ue,rt){try{var yt=Me._driver,Rt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Me._driver){rt(Rt);return}for(var Nt=oo.concat("_initStorage"),dt=0,fn=Nt.length;dt<fn;dt++){var sr=Nt[dt],Wr=!gi(Do,sr);if((Wr||Me[sr])&&typeof Me[sr]!="function"){rt(Rt);return}}var qr=Q(function(){for(var Ai=Q(function(h2){return function(){var bs=new Error("Method "+h2+" is not implemented by the current driver"),Hu=d.reject(bs);return h(Hu,arguments[arguments.length-1]),Hu}},"methodNotImplementedFactory"),Vo=0,Lc=Do.length;Vo<Lc;Vo++){var $o=Do[Vo];Me[$o]||(Me[$o]=Ai($o))}},"configureMissingMethods");qr();var Ri=Q(function(Ai){vi[yt]&&console.info("Redefining LocalForage driver: "+yt),vi[yt]=Me,qi[yt]=Ai,Ue()},"setDriverSupport");"_support"in Me?Me._support&&typeof Me._support=="function"?Me._support().then(Ri,rt):Ri(!!Me._support):Ri(!0)}catch(Ai){rt(Ai)}});return f(Ge,Te,ot),Ge},"defineDriver"),ve.prototype.driver=Q(function(){return this._driver||null},"driver"),ve.prototype.getDriver=Q(function(Me,Te,ot){var Ge=vi[Me]?d.resolve(vi[Me]):d.reject(new Error("Driver not found."));return f(Ge,Te,ot),Ge},"getDriver"),ve.prototype.getSerializer=Q(function(Me){var Te=d.resolve(Ae);return f(Te,Me),Te},"getSerializer"),ve.prototype.ready=Q(function(Me){var Te=this,ot=Te._driverSet.then(function(){return Te._ready===null&&(Te._ready=Te._initDriver()),Te._ready});return f(ot,Me,Me),ot},"ready"),ve.prototype.setDriver=Q(function(Me,Te,ot){var Ge=this;pi(Me)||(Me=[Me]);var Ue=this._getSupportedDrivers(Me);function rt(){Ge._config.driver=Ge.driver()}Q(rt,"setDriverToConfig");function yt(dt){return Ge._extend(dt),rt(),Ge._ready=Ge._initStorage(Ge._config),Ge._ready}Q(yt,"extendSelfWithDriver");function Rt(dt){return function(){var fn=0;function sr(){for(;fn<dt.length;){var Wr=dt[fn];return fn++,Ge._dbInfo=null,Ge._ready=null,Ge.getDriver(Wr).then(yt).catch(sr)}rt();var qr=new Error("No available storage method found.");return Ge._driverSet=d.reject(qr),Ge._driverSet}return Q(sr,"driverPromiseLoop"),sr()}}Q(Rt,"initDriver");var Nt=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=Nt.then(function(){var dt=Ue[0];return Ge._dbInfo=null,Ge._ready=null,Ge.getDriver(dt).then(function(fn){Ge._driver=fn._driver,rt(),Ge._wrapLibraryMethodsWithReady(),Ge._initDriver=Rt(Ue)})}).catch(function(){rt();var dt=new Error("No available storage method found.");return Ge._driverSet=d.reject(dt),Ge._driverSet}),f(this._driverSet,Te,ot),this._driverSet},"setDriver"),ve.prototype.supports=Q(function(Me){return!!qi[Me]},"supports"),ve.prototype._extend=Q(function(Me){vo(this,Me)},"_extend"),ve.prototype._getSupportedDrivers=Q(function(Me){for(var Te=[],ot=0,Ge=Me.length;ot<Ge;ot++){var Ue=Me[ot];this.supports(Ue)&&Te.push(Ue)}return Te},"_getSupportedDrivers"),ve.prototype._wrapLibraryMethodsWithReady=Q(function(){for(var Me=0,Te=oo.length;Me<Te;Me++)po(this,oo[Me])},"_wrapLibraryMethodsWithReady"),ve.prototype.createInstance=Q(function(Me){return new ve(Me)},"createInstance"),ve}(),Jl=new ll;r.exports=Jl},{3:3}]},{},[4])(4)})})(zNe);var SFt=zNe.exports;const I2=Bee(SFt),qNe=class{getItem(e){return I2.getItem(e)}setItem(e,n){return I2.setItem(e,n)}removeItem(e){return I2.removeItem(e)}clear(){return I2.clear()}key(e){return I2.key(e)}keys(){return I2.keys()}iterate(e){return I2.iterate(e)}};Q(qNe,"DesktopLocalStorageService");let YNe=qNe;const XNe=class{constructor(){gn(this,"_portalContainer",xOe()?document.body:void 0),gn(this,"_message")}dispose(){var e;(e=this._message)==null||e.dispose()}setContainer(e){this._message||(this._portalContainer=e,this._message=new Not(e))}getContainer(){return this._portalContainer}show(e){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}=e;return this._message[n](r)}};Q(XNe,"DesktopMessageService");let GNe=XNe;function AI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}Q(AI,"_arrayLikeToArray");function QNe(t){if(Array.isArray(t))return AI(t)}Q(QNe,"_arrayWithoutHoles");function KNe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}Q(KNe,"_iterableToArray");function tte(t,e){if(t){if(typeof t=="string")return AI(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AI(t,e):void 0}}Q(tte,"_unsupportedIterableToArray");function ZNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Q(ZNe,"_nonIterableSpread");function r4(t){return QNe(t)||KNe(t)||tte(t)||ZNe()}Q(r4,"_toConsumableArray");function JNe(t){if(Array.isArray(t))return t}Q(JNe,"_arrayWithHoles");function eke(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}Q(eke,"_iterableToArrayLimit");function tke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Q(tke,"_nonIterableRest");function Go(t,e){return JNe(t)||eke(t,e)||tte(t,e)||tke()}Q(Go,"_slicedToArray");function nke(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}Q(nke,"_objectWithoutPropertiesLoose");function k_(t,e){if(t==null)return{};var n,r,i=nke(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}Q(k_,"_objectWithoutProperties");function Mu(t){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mu(t)}Q(Mu,"_typeof");function rke(t,e){if(Mu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}Q(rke,"toPrimitive");function nte(t){var e=rke(t,"string");return Mu(e)=="symbol"?e:e+""}Q(nte,"toPropertyKey");function us(t,e,n){return(e=nte(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Q(us,"_defineProperty");function iq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}Q(iq,"ownKeys");function ua(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?iq(Object(n),!0).forEach(function(r){us(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}Q(ua,"_objectSpread2");function N0(){return N0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},N0.apply(null,arguments)}Q(N0,"_extends");var ike={exports:{}};/*! |
|
|
Copyright (c) 2018 Jed Watson. |
|
|
Licensed under the MIT License (MIT), see |
|
|
http://jedwatson.github.io/classnames |
|
|
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}Q(n,"classNames");function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)e.call(a,s)&&a[s]&&(o=i(o,s));return o}Q(r,"parseValue");function i(a,o){return o?a?a+" "+o:a+o:a}Q(i,"appendClass"),t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ike);var bFt=ike.exports;const O8=Bee(bFt);function aq(t){return t instanceof HTMLElement||t instanceof SVGElement}Q(aq,"isDOM");function ake(t){return t&&Mu(t)==="object"&&aq(t.nativeElement)?t.nativeElement:aq(t)?t:null}Q(ake,"getDOM");function oke(t){var e=ake(t);if(e)return e;if(t instanceof Re.Component){var n;return(n=ec.findDOMNode)===null||n===void 0?void 0:n.call(ec,t)}return null}Q(oke,"findDOMNode");var ske={exports:{}},Pa={};/** |
|
|
* @license React |
|
|
* react-is.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var rte=Symbol.for("react.element"),ite=Symbol.for("react.portal"),yL=Symbol.for("react.fragment"),EL=Symbol.for("react.strict_mode"),RL=Symbol.for("react.profiler"),AL=Symbol.for("react.provider"),wL=Symbol.for("react.context"),yFt=Symbol.for("react.server_context"),DL=Symbol.for("react.forward_ref"),IL=Symbol.for("react.suspense"),PL=Symbol.for("react.suspense_list"),ML=Symbol.for("react.memo"),TL=Symbol.for("react.lazy"),EFt=Symbol.for("react.offscreen"),lke;lke=Symbol.for("react.module.reference");function Pc(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case rte:switch(t=t.type,t){case yL:case RL:case EL:case IL:case PL:return t;default:switch(t=t&&t.$$typeof,t){case yFt:case wL:case DL:case TL:case ML:case AL:return t;default:return e}}case ite:return e}}}Q(Pc,"v");Pa.ContextConsumer=wL;Pa.ContextProvider=AL;Pa.Element=rte;Pa.ForwardRef=DL;Pa.Fragment=yL;Pa.Lazy=TL;Pa.Memo=ML;Pa.Portal=ite;Pa.Profiler=RL;Pa.StrictMode=EL;Pa.Suspense=IL;Pa.SuspenseList=PL;Pa.isAsyncMode=function(){return!1};Pa.isConcurrentMode=function(){return!1};Pa.isContextConsumer=function(t){return Pc(t)===wL};Pa.isContextProvider=function(t){return Pc(t)===AL};Pa.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===rte};Pa.isForwardRef=function(t){return Pc(t)===DL};Pa.isFragment=function(t){return Pc(t)===yL};Pa.isLazy=function(t){return Pc(t)===TL};Pa.isMemo=function(t){return Pc(t)===ML};Pa.isPortal=function(t){return Pc(t)===ite};Pa.isProfiler=function(t){return Pc(t)===RL};Pa.isStrictMode=function(t){return Pc(t)===EL};Pa.isSuspense=function(t){return Pc(t)===IL};Pa.isSuspenseList=function(t){return Pc(t)===PL};Pa.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===yL||t===RL||t===EL||t===IL||t===PL||t===EFt||typeof t=="object"&&t!==null&&(t.$$typeof===TL||t.$$typeof===ML||t.$$typeof===AL||t.$$typeof===wL||t.$$typeof===DL||t.$$typeof===lke||t.getModuleId!==void 0)};Pa.typeOf=Pc;ske.exports=Pa;var IR=ske.exports,RFt=Q(function(t,e){typeof t=="function"?t(e):Mu(t)==="object"&&t&&"current"in t&&(t.current=e)},"fillRef"),AFt=Q(function(t){var e,n,r=IR.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!((e=r.prototype)!==null&&e!==void 0&&e.render)&&r.$$typeof!==IR.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==IR.ForwardRef)},"supportRef");function wFt(t){return E.isValidElement(t)&&!IR.isFragment(t)}Q(wFt,"isReactElement");Number(E.version.split(".")[0])>=19;var DFt=E.createContext({});function ate(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Q(ate,"_classCallCheck");function oq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nte(r.key),r)}}Q(oq,"_defineProperties");function ote(t,e,n){return e&&oq(t.prototype,e),n&&oq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}Q(ote,"_createClass");function wI(t,e){return wI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wI(t,e)}Q(wI,"_setPrototypeOf");function ste(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wI(t,e)}Q(ste,"_inherits");function F_(t){return F_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F_(t)}Q(F_,"_getPrototypeOf");function lte(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lte=Q(function(){return!!t},"_isNativeReflectConstruct"))()}Q(lte,"_isNativeReflectConstruct");function DI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Q(DI,"_assertThisInitialized");function uke(t,e){if(e&&(Mu(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DI(t)}Q(uke,"_possibleConstructorReturn");function ute(t){var e=lte();return function(){var n,r=F_(t);if(e){var i=F_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return uke(this,n)}}Q(ute,"_createSuper");var IFt=function(t){ste(n,t);var e=ute(n);function n(){return ate(this,n),e.apply(this,arguments)}return Q(n,"DomWrapper"),ote(n,[{key:"render",value:Q(function(){return this.props.children},"render")}]),n}(E.Component);function cke(t){var e=E.useRef();e.current=t;var n=E.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(a))},[]);return n}Q(cke,"useEvent");function LL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}Q(LL,"canUseDom");function N8(t){var e=E.useRef(!1),n=E.useState(t),r=Go(n,2),i=r[0],a=r[1];E.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function o(s,l){l&&e.current||a(s)}return Q(o,"safeSetState"),[i,o]}Q(N8,"useSafeState");var Lm="none",Oy="appear",Ny="enter",ky="leave",ele="none",z1="prepare",T6="start",L6="active",cte="end",dke="prepared";function sq(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}Q(sq,"makePrefixMap");function hke(t,e){var n={animationend:sq("Animation","AnimationEnd"),transitionend:sq("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}Q(hke,"getVendorPrefixes");var PFt=hke(LL(),typeof window<"u"?window:{}),fke={};if(LL()){var MFt=document.createElement("div");fke=MFt.style}var Fy={};function dte(t){if(Fy[t])return Fy[t];var e=PFt[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(e,a)&&a in fke)return Fy[t]=e[a],Fy[t]}return""}Q(dte,"getVendorPrefixedEventName");var mke=dte("animationend"),gke=dte("transitionend"),pke=!!(mke&&gke),tle=mke||"animationend",nle=gke||"transitionend";function lq(t,e){if(!t)return null;if(Mu(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}Q(lq,"getTransitionName");const TFt=Q(function(t){var e=E.useRef();function n(i){i&&(i.removeEventListener(nle,t),i.removeEventListener(tle,t))}Q(n,"removeMotionEvents");function r(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(nle,t),i.addEventListener(tle,t),e.current=i)}return Q(r,"patchMotionEvents"),E.useEffect(function(){return function(){n(e.current)}},[]),[r,n]},"useDomMotionEvents");var vke=LL()?E.useLayoutEffect:E.useEffect,_ke=Q(function(t){return+setTimeout(t,16)},"raf2"),Cke=Q(function(t){return clearTimeout(t)},"caf2");typeof window<"u"&&"requestAnimationFrame"in window&&(_ke=Q(function(t){return window.requestAnimationFrame(t)},"raf3"),Cke=Q(function(t){return window.cancelAnimationFrame(t)},"caf3"));var rle=0,hte=new Map;function fte(t){hte.delete(t)}Q(fte,"cleanup");var uq=Q(function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rle+=1;var n=rle;function r(i){if(i===0)fte(n),t();else{var a=_ke(function(){r(i-1)});hte.set(n,a)}}return Q(r,"callRef"),r(e),n},"wrapperRaf2");uq.cancel=function(t){var e=hte.get(t);return fte(t),Cke(e)};const LFt=Q(function(){var t=E.useRef(null);function e(){uq.cancel(t.current)}Q(e,"cancelNextFrame");function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var a=uq(function(){i<=1?r({isCanceled:Q(function(){return a!==t.current},"isCanceled")}):n(r,i-1)});t.current=a}return Q(n,"nextFrame"),E.useEffect(function(){return function(){e()}},[]),[n,e]},"useNextFrame");var xFt=[z1,T6,L6,cte],OFt=[z1,dke],Ske=!1,NFt=!0;function mte(t){return t===L6||t===cte}Q(mte,"isActive");const kFt=Q(function(t,e,n){var r=N8(ele),i=Go(r,2),a=i[0],o=i[1],s=LFt(),l=Go(s,2),u=l[0],c=l[1];function d(){o(z1,!0)}Q(d,"startQueue");var h=e?OFt:xFt;return vke(function(){if(a!==ele&&a!==cte){var f=h.indexOf(a),m=h[f+1],g=n(a);g===Ske?o(m,!0):m&&u(function(p){function v(){p.isCanceled()||o(m,!0)}Q(v,"doNext"),g===!0?v():Promise.resolve(g).then(v)})}},[t,a]),E.useEffect(function(){return function(){c()}},[]),[d,a]},"useStepQueue");function bke(t,e,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,u=l===void 0?!0:l,c=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,f=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,v=r.onLeaveStart,_=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,b=r.onAppearEnd,y=r.onEnterEnd,A=r.onLeaveEnd,w=r.onVisibleChanged,P=N8(),M=Go(P,2),L=M[0],k=M[1],O=N8(Lm),$=Go(O,2),B=$[0],V=$[1],X=N8(null),z=Go(X,2),F=z[0],H=z[1],W=E.useRef(!1),K=E.useRef(null);function G(){return n()}Q(G,"getDomElement");var te=E.useRef(!1);function Y(){V(Lm,!0),H(null,!0)}Q(Y,"updateMotionEndStatus");var ae=cke(function(Fe){if(B!==Lm){var He=G();if(!(Fe&&!Fe.deadline&&Fe.target!==He)){var ct=te.current,_t;B===Oy&&ct?_t=b==null?void 0:b(He,Fe):B===Ny&&ct?_t=y==null?void 0:y(He,Fe):B===ky&&ct&&(_t=A==null?void 0:A(He,Fe)),ct&&_t!==!1&&Y()}}}),ie=TFt(ae),ne=Go(ie,1),de=ne[0],_e=Q(function(Fe){switch(Fe){case Oy:return us(us(us({},z1,h),T6,g),L6,_);case Ny:return us(us(us({},z1,f),T6,p),L6,C);case ky:return us(us(us({},z1,m),T6,v),L6,S);default:return{}}},"getEventHandlers"),Pe=E.useMemo(function(){return _e(B)},[B]),De=kFt(B,!t,function(Fe){if(Fe===z1){var He=Pe[z1];return He?He(G()):Ske}if(Ve in Pe){var ct;H(((ct=Pe[Ve])===null||ct===void 0?void 0:ct.call(Pe,G(),null))||null)}return Ve===L6&&B!==Lm&&(de(G()),c>0&&(clearTimeout(K.current),K.current=setTimeout(function(){ae({deadline:!0})},c))),Ve===dke&&Y(),NFt}),Ee=Go(De,2),ye=Ee[0],Ve=Ee[1],ke=mte(Ve);te.current=ke,vke(function(){k(e);var Fe=W.current;W.current=!0;var He;!Fe&&e&&s&&(He=Oy),Fe&&e&&a&&(He=Ny),(Fe&&!e&&u||!Fe&&d&&!e&&u)&&(He=ky);var ct=_e(He);He&&(t||ct[z1])?(V(He),ye()):V(Lm)},[e]),E.useEffect(function(){(B===Oy&&!s||B===Ny&&!a||B===ky&&!u)&&V(Lm)},[s,a,u]),E.useEffect(function(){return function(){W.current=!1,clearTimeout(K.current)}},[]);var Ke=E.useRef(!1);E.useEffect(function(){L&&(Ke.current=!0),L!==void 0&&B===Lm&&((Ke.current||L)&&(w==null||w(L)),Ke.current=!0)},[L,B]);var $e=F;return Pe[z1]&&Ve===T6&&($e=ua({transition:"none"},$e)),[B,Ve,$e,L??e]}Q(bke,"useStatus");function yke(t){var e=t;Mu(t)==="object"&&(e=t.transitionSupport);function n(i,a){return!!(i.motionName&&e&&a!==!1)}Q(n,"isSupportTransition");var r=E.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,u=l===void 0?!0:l,c=i.forceRender,d=i.children,h=i.motionName,f=i.leavedClassName,m=i.eventProps,g=E.useContext(DFt),p=g.motion,v=n(i,p),_=E.useRef(),C=E.useRef();function S(){try{return _.current instanceof HTMLElement?_.current:oke(C.current)}catch{return null}}Q(S,"getDomElement");var b=bke(v,s,S,i),y=Go(b,4),A=y[0],w=y[1],P=y[2],M=y[3],L=E.useRef(M);M&&(L.current=!0);var k=E.useCallback(function(F){_.current=F,RFt(a,F)},[a]),O,$=ua(ua({},m),{},{visible:s});if(!d)O=null;else if(A===Lm)M?O=d(ua({},$),k):!u&&L.current&&f?O=d(ua(ua({},$),{},{className:f}),k):c||!u&&!f?O=d(ua(ua({},$),{},{style:{display:"none"}}),k):O=null;else{var B;w===z1?B="prepare":mte(w)?B="active":w===T6&&(B="start");var V=lq(h,"".concat(A,"-").concat(B));O=d(ua(ua({},$),{},{className:O8(lq(h,A),us(us({},V,V&&B),h,typeof h=="string")),style:P}),k)}if(E.isValidElement(O)&&AFt(O)){var X=O,z=X.ref;z||(O=E.cloneElement(O,{ref:k}))}return E.createElement(IFt,{ref:C},O)});return r.displayName="CSSMotion",r}Q(yke,"genCSSMotion");const FFt=yke(pke);var cq="add",dq="keep",hq="remove",zk="removed";function Eke(t){var e;return t&&Mu(t)==="object"&&"key"in t?e=t:e={key:t},ua(ua({},e),{},{key:String(e.key)})}Q(Eke,"wrapKeyToObject");function II(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(Eke)}Q(II,"parseKeys");function Rke(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,a=II(t),o=II(e);a.forEach(function(u){for(var c=!1,d=r;d<i;d+=1){var h=o[d];if(h.key===u.key){r<d&&(n=n.concat(o.slice(r,d).map(function(f){return ua(ua({},f),{},{status:cq})})),r=d),n.push(ua(ua({},h),{},{status:dq})),r+=1,c=!0;break}}c||n.push(ua(ua({},u),{},{status:hq}))}),r<i&&(n=n.concat(o.slice(r).map(function(u){return ua(ua({},u),{},{status:cq})})));var s={};n.forEach(function(u){var c=u.key;s[c]=(s[c]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){n=n.filter(function(c){var d=c.key,h=c.status;return d!==u||h!==hq}),n.forEach(function(c){c.key===u&&(c.status=dq)})}),n}Q(Rke,"diffKeys");var VFt=["component","children","onVisibleChanged","onAllRemoved"],BFt=["status"],UFt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ake(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FFt,n=function(r){ste(a,r);var i=ute(a);function a(){var o;ate(this,a);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o=i.call.apply(i,[this].concat(l)),us(DI(o),"state",{keyEntities:[]}),us(DI(o),"removeKey",function(c){var d=o.state.keyEntities,h=d.map(function(f){return f.key!==c?f:ua(ua({},f),{},{status:zk})});return o.setState({keyEntities:h}),h.filter(function(f){var m=f.status;return m!==zk}).length}),o}return Q(a,"CSSMotionList"),ote(a,[{key:"render",value:Q(function(){var o=this,s=this.state.keyEntities,l=this.props,u=l.component,c=l.children,d=l.onVisibleChanged,h=l.onAllRemoved,f=k_(l,VFt),m=u||E.Fragment,g={};return UFt.forEach(function(p){g[p]=f[p],delete f[p]}),delete f.keys,E.createElement(m,f,s.map(function(p,v){var _=p.status,C=k_(p,BFt),S=_===cq||_===dq;return E.createElement(e,N0({},g,{key:C.key,visible:S,eventProps:C,onVisibleChanged:Q(function(b){if(d==null||d(b,{key:C.key}),!b){var y=o.removeKey(C.key);y===0&&h&&h()}},"onVisibleChanged")}),function(b,y){return c(ua(ua({},b),{},{index:v}),y)})}))},"render")}],[{key:"getDerivedStateFromProps",value:Q(function(o,s){var l=o.keys,u=s.keyEntities,c=II(l),d=Rke(u,c);return{keyEntities:d.filter(function(h){var f=u.find(function(m){var g=m.key;return h.key===g});return!(f&&f.status===zk&&h.status===hq)})}},"getDerivedStateFromProps")}]),a}(E.Component);return us(n,"defaultProps",{component:"div"}),n}Q(Ake,"genCSSMotionList");const HFt=Ake(pke);var jFt={ENTER:13},$Ft=`accept acceptCharset accessKey action allowFullScreen allowTransparency |
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge |
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu |
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable |
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder |
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity |
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media |
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open |
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required |
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected |
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style |
|
|
summary tabIndex target title type useMap value width wmode wrap`,WFt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown |
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick |
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown |
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel |
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough |
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata |
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,zFt="".concat($Ft," ").concat(WFt).split(/[\s\n]+/),qFt="aria-",YFt="data-";function fq(t,e){return t.indexOf(e)===0}Q(fq,"match");function wke(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=ua({},e);var r={};return Object.keys(t).forEach(function(i){(n.aria&&(i==="role"||fq(i,qFt))||n.data&&fq(i,YFt)||n.attr&&zFt.includes(i))&&(r[i]=t[i])}),r}Q(wke,"pickAttrs");var XFt=E.forwardRef(function(t,e){var n=t.prefixCls,r=t.style,i=t.className,a=t.duration,o=a===void 0?4.5:a,s=t.showProgress,l=t.pauseOnHover,u=l===void 0?!0:l,c=t.eventKey,d=t.content,h=t.closable,f=t.closeIcon,m=f===void 0?"x":f,g=t.props,p=t.onClick,v=t.onNoticeClose,_=t.times,C=t.hovering,S=E.useState(!1),b=Go(S,2),y=b[0],A=b[1],w=E.useState(0),P=Go(w,2),M=P[0],L=P[1],k=E.useState(0),O=Go(k,2),$=O[0],B=O[1],V=C||y,X=o>0&&s,z=Q(function(){v(c)},"onInternalClose"),F=Q(function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===jFt.ENTER)&&z()},"onCloseKeyDown");E.useEffect(function(){if(!V&&o>0){var te=Date.now()-$,Y=setTimeout(function(){z()},o*1e3-$);return function(){u&&clearTimeout(Y),B(Date.now()-te)}}},[o,V,_]),E.useEffect(function(){if(!V&&X&&(u||$===0)){var te=performance.now(),Y,ae=Q(function ie(){cancelAnimationFrame(Y),Y=requestAnimationFrame(function(ne){var de=ne+$-te,_e=Math.min(de/(o*1e3),1);L(_e*100),_e<1&&ie()})},"calculate");return ae(),function(){u&&cancelAnimationFrame(Y)}}},[o,$,V,X,_]);var H=E.useMemo(function(){return Mu(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),W=wke(H,!0),K=100-(!M||M<0?0:M>100?100:M),G="".concat(n,"-notice");return E.createElement("div",N0({},g,{ref:e,className:O8(G,i,us({},"".concat(G,"-closable"),h)),style:r,onMouseEnter:Q(function(te){var Y;A(!0),g==null||(Y=g.onMouseEnter)===null||Y===void 0||Y.call(g,te)},"onMouseEnter"),onMouseLeave:Q(function(te){var Y;A(!1),g==null||(Y=g.onMouseLeave)===null||Y===void 0||Y.call(g,te)},"onMouseLeave"),onClick:p}),E.createElement("div",{className:"".concat(G,"-content")},d),h&&E.createElement("a",N0({tabIndex:0,className:"".concat(G,"-close"),onKeyDown:F,"aria-label":"Close"},W,{onClick:Q(function(te){te.preventDefault(),te.stopPropagation(),z()},"onClick")}),H.closeIcon),X&&E.createElement("progress",{className:"".concat(G,"-progress"),max:"100",value:K},K+"%"))}),GFt=Re.createContext({}),ile=8,ale=3,ole=16,QFt=Q(function(t){var e={offset:ile,threshold:ale,gap:ole};if(t&&Mu(t)==="object"){var n,r,i;e.offset=(n=t.offset)!==null&&n!==void 0?n:ile,e.threshold=(r=t.threshold)!==null&&r!==void 0?r:ale,e.gap=(i=t.gap)!==null&&i!==void 0?i:ole}return[!!t,e]},"useStack"),KFt=["className","style","classNames","styles"],ZFt=Q(function(t){var e=t.configList,n=t.placement,r=t.prefixCls,i=t.className,a=t.style,o=t.motion,s=t.onAllNoticeRemoved,l=t.onNoticeClose,u=t.stack,c=E.useContext(GFt),d=c.classNames,h=E.useRef({}),f=E.useState(null),m=Go(f,2),g=m[0],p=m[1],v=E.useState([]),_=Go(v,2),C=_[0],S=_[1],b=e.map(function(B){return{config:B,key:String(B.key)}}),y=QFt(u),A=Go(y,2),w=A[0],P=A[1],M=P.offset,L=P.threshold,k=P.gap,O=w&&(C.length>0||b.length<=L),$=typeof o=="function"?o(n):o;return E.useEffect(function(){w&&C.length>1&&S(function(B){return B.filter(function(V){return b.some(function(X){var z=X.key;return V===z})})})},[C,b,w]),E.useEffect(function(){var B;if(w&&h.current[(B=b[b.length-1])===null||B===void 0?void 0:B.key]){var V;p(h.current[(V=b[b.length-1])===null||V===void 0?void 0:V.key])}},[b,w]),Re.createElement(HFt,N0({key:n,className:O8(r,"".concat(r,"-").concat(n),d==null?void 0:d.list,i,us(us({},"".concat(r,"-stack"),!!w),"".concat(r,"-stack-expanded"),O)),style:a,keys:b,motionAppear:!0},$,{onAllRemoved:Q(function(){s(n)},"onAllRemoved")}),function(B,V){var X=B.config,z=B.className,F=B.style,H=B.index,W=X,K=W.key,G=W.times,te=String(K),Y=X,ae=Y.className,ie=Y.style,ne=Y.classNames,de=Y.styles,_e=k_(Y,KFt),Pe=b.findIndex(function(Ye){return Ye.key===te}),De={};if(w){var Ee=b.length-1-(Pe>-1?Pe:H-1),ye=n==="top"||n==="bottom"?"-50%":"0";if(Ee>0){var Ve,ke,Ke;De.height=O?(Ve=h.current[te])===null||Ve===void 0?void 0:Ve.offsetHeight:g==null?void 0:g.offsetHeight;for(var $e=0,Fe=0;Fe<Ee;Fe++){var He;$e+=((He=h.current[b[b.length-1-Fe].key])===null||He===void 0?void 0:He.offsetHeight)+k}var ct=(O?$e:Ee*M)*(n.startsWith("top")?1:-1),_t=!O&&g!==null&&g!==void 0&&g.offsetWidth&&(ke=h.current[te])!==null&&ke!==void 0&&ke.offsetWidth?((g==null?void 0:g.offsetWidth)-M*2*(Ee<3?Ee:3))/((Ke=h.current[te])===null||Ke===void 0?void 0:Ke.offsetWidth):1;De.transform="translate3d(".concat(ye,", ").concat(ct,"px, 0) scaleX(").concat(_t,")")}else De.transform="translate3d(".concat(ye,", 0, 0)")}return Re.createElement("div",{ref:V,className:O8("".concat(r,"-notice-wrapper"),z,ne==null?void 0:ne.wrapper),style:ua(ua(ua({},F),De),de==null?void 0:de.wrapper),onMouseEnter:Q(function(){return S(function(Ye){return Ye.includes(te)?Ye:[].concat(r4(Ye),[te])})},"onMouseEnter"),onMouseLeave:Q(function(){return S(function(Ye){return Ye.filter(function(Ot){return Ot!==te})})},"onMouseLeave")},Re.createElement(XFt,N0({},_e,{ref:Q(function(Ye){Pe>-1?h.current[te]=Ye:delete h.current[te]},"ref"),prefixCls:r,classNames:ne,styles:de,className:O8(ae,d==null?void 0:d.notice),style:ie,times:G,key:K,eventKey:K,onNoticeClose:l,hovering:w&&C.length>0})))})},"NoticeList2"),JFt=E.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-notification":n,i=t.container,a=t.motion,o=t.maxCount,s=t.className,l=t.style,u=t.onAllRemoved,c=t.stack,d=t.renderNotifications,h=E.useState([]),f=Go(h,2),m=f[0],g=f[1],p=Q(function(w){var P,M=m.find(function(L){return L.key===w});M==null||(P=M.onClose)===null||P===void 0||P.call(M),g(function(L){return L.filter(function(k){return k.key!==w})})},"onNoticeClose2");E.useImperativeHandle(e,function(){return{open:Q(function(w){g(function(P){var M=r4(P),L=M.findIndex(function($){return $.key===w.key}),k=ua({},w);if(L>=0){var O;k.times=(((O=P[L])===null||O===void 0?void 0:O.times)||0)+1,M[L]=k}else k.times=0,M.push(k);return o>0&&M.length>o&&(M=M.slice(-o)),M})},"open"),close:Q(function(w){p(w)},"close"),destroy:Q(function(){g([])},"destroy")}});var v=E.useState({}),_=Go(v,2),C=_[0],S=_[1];E.useEffect(function(){var w={};m.forEach(function(P){var M=P.placement,L=M===void 0?"topRight":M;L&&(w[L]=w[L]||[],w[L].push(P))}),Object.keys(C).forEach(function(P){w[P]=w[P]||[]}),S(w)},[m]);var b=Q(function(w){S(function(P){var M=ua({},P),L=M[w]||[];return L.length||delete M[w],M})},"onAllNoticeRemoved2"),y=E.useRef(!1);if(E.useEffect(function(){Object.keys(C).length>0?y.current=!0:y.current&&(u==null||u(),y.current=!1)},[C]),!i)return null;var A=Object.keys(C);return bf.createPortal(E.createElement(E.Fragment,null,A.map(function(w){var P=C[w],M=E.createElement(ZFt,{key:w,configList:P,placement:w,prefixCls:r,className:s==null?void 0:s(w),style:l==null?void 0:l(w),motion:a,onNoticeClose:p,onAllNoticeRemoved:b,stack:c});return d?d(M,{prefixCls:r,key:w}):M})),i)}),eVt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],tVt=Q(function(){return document.body},"defaultGetContainer"),sle=0;function Dke(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(a){var o=i[a];o!==void 0&&(t[a]=o)})}),t}Q(Dke,"mergeConfig");function Ike(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.getContainer,n=e===void 0?tVt:e,r=t.motion,i=t.prefixCls,a=t.maxCount,o=t.className,s=t.style,l=t.onAllRemoved,u=t.stack,c=t.renderNotifications,d=k_(t,eVt),h=E.useState(),f=Go(h,2),m=f[0],g=f[1],p=E.useRef(),v=E.createElement(JFt,{container:m,ref:p,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:u,renderNotifications:c}),_=E.useState([]),C=Go(_,2),S=C[0],b=C[1],y=E.useMemo(function(){return{open:Q(function(A){var w=Dke(d,A);(w.key===null||w.key===void 0)&&(w.key="rc-notification-".concat(sle),sle+=1),b(function(P){return[].concat(r4(P),[{type:"open",config:w}])})},"open"),close:Q(function(A){b(function(w){return[].concat(r4(w),[{type:"close",key:A}])})},"close"),destroy:Q(function(){b(function(A){return[].concat(r4(A),[{type:"destroy"}])})},"destroy")}},[]);return E.useEffect(function(){g(n())}),E.useEffect(function(){p.current&&S.length&&(S.forEach(function(A){switch(A.type){case"open":p.current.open(A.config);break;case"close":p.current.close(A.key);break;case"destroy":p.current.destroy();break}}),b(function(A){return A.filter(function(w){return!S.includes(w)})}))},[S]),[y,v]}Q(Ike,"useNotification");const nVt="univer-notification",rVt="univer-notification-icon",iVt="univer-notification-icon-success",aVt="univer-notification-icon-info",oVt="univer-notification-icon-warning",sVt="univer-notification-icon-error",lVt="univer-notification-content-container",uVt="univer-notification-title",cVt="univer-notification-content",dVt="univer-notification-content-ellipsis",hVt="univer-notification-fade",Q1={notification:nVt,notificationIcon:rVt,notificationIconSuccess:iVt,notificationIconInfo:aVt,notificationIconWarning:oVt,notificationIconError:sVt,notificationContentContainer:lVt,notificationTitle:uVt,notificationContent:cVt,notificationContentEllipsis:dVt,notificationFade:hVt},fVt={success:We.jsx(hOe,{className:Q1.notificationIconSuccess}),info:We.jsx(Qz,{className:Q1.notificationIconInfo}),warning:We.jsx(Qz,{className:Q1.notificationIconWarning}),error:We.jsx(ixe,{className:Q1.notificationIconError})},Pke=new Zt,mVt=Q(t=>{const{type:e,content:n,title:r,lines:i=0}=t,a=hr(Q1.notificationContent,{[Q1.notificationContentEllipsis]:i!==0});return We.jsxs(We.Fragment,{children:[We.jsx("span",{className:Q1.notificationIcon,children:fVt[e]}),We.jsxs("div",{className:Q1.notificationContentContainer,children:[We.jsx("span",{className:Q1.notificationTitle,children:r}),We.jsx("span",{className:a,style:{WebkitLineClamp:i},children:n})]})]})},"PureContent");function Mke(){const{mountContainer:t}=E.useContext(Nu);if(!t)return null;const[e,n]=Ike({prefixCls:Q1.notification,maxCount:3,closeIcon:We.jsx(BS,{}),getContainer:Q(()=>t,"getContainer"),motion:{motionName:Q1.notificationFade,motionAppear:!0,motionEnter:!0,motionLeave:!0}}),r=E.useRef(Pke);return E.useEffect(()=>{const i=r.current.subscribe(a=>{var o,s,l;e.open({content:We.jsx(mVt,{content:a.content,type:a.type,title:a.title,lines:a.lines}),key:a.key,placement:(o=a.placement)!=null?o:"topRight",duration:(s=a.duration)!=null?s:4.5,closable:(l=a.closable)!=null?l:!0})});return()=>{i.unsubscribe()}},[e]),We.jsx(We.Fragment,{children:n})}Q(Mke,"Notification");const gVt={show:Q(t=>{Pke.next(t)},"show")};var pVt=Object.defineProperty,vVt=Object.getOwnPropertyDescriptor,_Vt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?vVt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pVt(e,n,i),i},"__decorateClass$4"),lle=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),qk;let PI=(qk=class extends et{constructor(t,e){super(),this._injector=t,this._uiPartsService=e,this._initUIPart()}show(t){return gVt.show(t),$t(()=>{})}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.GLOBAL,()=>yl(Mke,this._injector)))}},Q(qk,"DesktopNotificationService"),qk);PI=_Vt([lle(0,se(Wn)),lle(1,_c)],PI);const Tke=class{constructor(){gn(this,"_sidebarOptions",{}),gn(this,"sidebarOptions$",new Zt),gn(this,"scrollEvent$",new Zt)}get visible(){return this._sidebarOptions.visible||!1}get options(){return this._sidebarOptions}open(e){return this._sidebarOptions={...e,id:e.id,visible:!0},this.sidebarOptions$.next(this._sidebarOptions),$t(()=>{this.close()})}close(e){e&&this._sidebarOptions.id!==e||(this._sidebarOptions={...this._sidebarOptions,visible:!1},this.sidebarOptions$.next(this._sidebarOptions),this._sidebarOptions.onClose&&this._sidebarOptions.onClose())}};Q(Tke,"DesktopSidebarService");let Lke=Tke;var CVt=Object.defineProperty,SVt=Object.getOwnPropertyDescriptor,bVt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?SVt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&CVt(e,n,i),i},"__decorateClass$3"),yVt=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),Yk;let MI=(Yk=class{constructor(t){gn(this,"visible$",new Zt),gn(this,"componentKey$",new Zt),gn(this,"_temporaryHidden$",new Pn(!1)),gn(this,"temporaryHidden$",this._temporaryHidden$.asObservable()),gn(this,"_visible",!1),this._componentManager=t}get visible(){return this._visible}get temporaryHidden(){return this._temporaryHidden$.getValue()}hide(){this._temporaryHidden$.next(!0)}show(){this._temporaryHidden$.next(!1)}set(t,e){return this._componentManager.register(t,e),this.componentKey$.next(t),$t(()=>{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)}},Q(Yk,"DesktopZenZoneService"),Yk);MI=bVt([yVt(0,se(ja))],MI);const EVt="univer-app-layout",RVt="univer-app-header",AVt="univer-app-container",wVt="univer-app-container-header",DVt="univer-app-container-wrapper",IVt="univer-app-container-content",PVt="univer-app-container-canvas",MVt="univer-app-container-left-sidebar",TVt="univer-app-container-sidebar",Pd={appLayout:EVt,appHeader:RVt,appContainer:AVt,appContainerHeader:wVt,appContainerWrapper:DVt,appContainerContent:IVt,appContainerCanvas:PVt,appContainerLeftSidebar:MVt,appContainerSidebar:TVt},LVt="univer-mobile-menu-container",xVt="univer-mobile-menu-item",PR={mobileMenuContainer:LVt,mobileMenuItem:xVt};function xke(t){const{menuType:e,onOptionSelect:n}=t,r=Ne(sl);if(!e)return null;const i=E.useMemo(()=>{const a=r.getMenuByPositionKey(e);function o(s){return s.reduce((l,u)=>u.children?[...l,...o(u.children)]:[...l,u],[])}return Q(o,"flatMenuItems"),o(a)},[e]);return We.jsx("div",{className:PR.mobileMenuContainer,style:{gridTemplateColumns:`repeat(${Math.min(2,i.length)}, 48px)`},children:i.map(a=>a.item&&We.jsx(Oke,{menuItem:a.item,onClick:Q(o=>n==null?void 0:n({value:"",label:a.key,...o}),"onClick")},a.key))})}Q(xke,"MobileMenu");function Oke(t){const{menuItem:e,onClick:n}=t,{id:r,type:i,title:a,label:o,icon:s}=e;if(i!==Tt.BUTTON)throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${r}".`);const l=Xh(e.disabled$,!1),u=Xh(e.activated$,!1),c=Xh(e.hidden$,!1),d=Xh(e.value$),h=hr(PR.mobileMenuItem,{[PR.mobileMenuItemActivated]:u,[PR.mobileMenuItemHidden]:c});return We.jsx("button",{type:"button",className:h,disabled:l,onClick:Q(()=>n({id:r}),"onClick"),children:We.jsx(_u,{value:d,title:a,label:o,icon:s})},r)}Q(Oke,"MobileMenuItem");function Nke(){const[t,e]=E.useState(!1),[n,r]=E.useState(""),[i,a]=E.useState([0,0]),o=E.useRef(t),s=Ne(tm),l=Ne(me);o.current=t,E.useEffect(()=>{const d=s.registerContextMenuHandler({handleContextMenu:u,hideContextMenu(){e(!1)},get visible(){return o.current}});return document.addEventListener("pointerdown",c),document.addEventListener("wheel",c),()=>{document.removeEventListener("pointerdown",c),document.removeEventListener("wheel",c),d.dispose()}},[s]);function u(d,h){r(h),a([d.clientX,d.clientY]),e(!0)}Q(u,"handleContextMenu");function c(){e(!1)}return Q(c,"handleClose"),We.jsx(rS,{visible:t,offset:i,children:We.jsx("section",{onPointerDown:Q(d=>d.stopPropagation(),"onPointerDown"),children:n&&We.jsx(xke,{menuType:n,onOptionSelect:Q(d=>{const{label:h,value:f,commandId:m}=d;l&&l.executeCommand(m??h,{value:f}),e(!1)},"onOptionSelect")})})})}Q(Nke,"MobileContextMenu");function kke(t){const{header:e=!0,footer:n=!0,contextMenu:r=!0,mountContainer:i,onRendered:a}=t,o=Ne(sn),s=Ne(Ja),l=Ne(Qp),u=E.useRef(null),c=hu(Ba.FOOTER),d=hu(Ba.HEADER);hu(Ba.HEADER_MENU);const h=hu(Ba.CONTENT),f=hu(Ba.LEFT_SIDEBAR),m=hu(Ba.GLOBAL);E.useEffect(()=>{s.getCurrentTheme()||s.setTheme(tZ)},[]),E.useEffect(()=>{u.current&&(a==null||a(u.current))},[a]);const[g,p]=E.useState(o.getLocales()),v=E.useMemo(()=>document.createElement("div"),[]);return E.useEffect(()=>{document.body.appendChild(v),l.setContainer(v);const _=[o.localeChanged$.subscribe(()=>{p(o.getLocales())}),s.currentTheme$.subscribe(C=>{oD.setTheme(i,C),v&&oD.setTheme(v,C)})];return()=>{_.forEach(C=>C.unsubscribe()),document.body.removeChild(v)}},[o,l,i,v,s.currentTheme$]),We.jsxs(_Q,{locale:g==null?void 0:g.design,mountContainer:v,children:[We.jsxs("div",{className:Pd.appLayout,tabIndex:-1,onBlur:Q(_=>_.stopPropagation(),"onBlur"),children:[e&&We.jsx("header",{className:Pd.appContainerHeader}),We.jsxs("section",{className:Pd.appContainer,children:[We.jsxs("div",{className:Pd.appContainerWrapper,children:[We.jsx("aside",{className:Pd.appContainerLeftSidebar,children:We.jsx(Nl,{components:f},"left-sidebar")}),We.jsxs("section",{className:Pd.appContainerContent,children:[We.jsx("header",{className:Pd.appHeader,children:e&&We.jsx(Nl,{components:d},"header")}),We.jsx("section",{className:Pd.appContainerCanvas,ref:u,"data-range-selector":!0,onContextMenu:Q(_=>_.preventDefault(),"onContextMenu"),children:We.jsx(Nl,{components:h},"content")})]}),We.jsx("aside",{className:Pd.appContainerSidebar,children:We.jsx(Zee,{})})]}),n&&We.jsx("footer",{className:Pd.appFooter,children:We.jsx(Nl,{components:c},"footer")}),We.jsx(Jee,{})]})]}),We.jsx(Nl,{components:m},"global"),We.jsx(Nl,{components:NNe},"built-in-global"),r&&We.jsx(Nke,{})]})}Q(kke,"MobileApp");var OVt=Object.defineProperty,NVt=Object.getOwnPropertyDescriptor,kVt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?NVt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&OVt(e,n,i),i},"__decorateClass$2"),P2=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const FVt=3e3;var Xk;let mq=(Xk=class extends et{constructor(t,e,n,r,i,a,o,s){super(),this._config=t,this._instanceService=e,this._renderManagerService=n,this._injector=r,this._lifecycleService=i,this._uiPartsService=a,this._menuManagerService=o,this._layoutService=s,this._initBuiltinComponents(),Promise.resolve().then(()=>this._bootstrapWorkbench())}_initMenus(){this._menuManagerService.mergeMenu(KOe)}_bootstrapWorkbench(){this.disposeWithMe(Fke(this._injector,this._config,(t,e)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(e)),this.disposeWithMe(this._layoutService.registerContentElement(t))),this._renderManagerService.currentRender$.subscribe(n=>{if(n){const r=this._renderManagerService.getRenderById(n);if(!r.unitId||this._instanceService.getUnitType(r.unitId)!==le.UNIVER_SHEET)return;r.engine.setContainer(t)}}),setTimeout(()=>{var n;const r=(n=this._renderManagerService.getFirst())==null?void 0:n.engine;r==null||r.setContainer(t),this._lifecycleService.stage=Vt.Rendered,setTimeout(()=>this._lifecycleService.stage=Vt.Steady,FVt)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.CONTENT,()=>yl(Qee,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(Ba.CONTENT,()=>yl(RNe,this._injector)))}},Q(Xk,"MobileUIController"),Xk);mq=kVt([P2(1,Ce),P2(2,Sr),P2(3,se(Wn)),P2(4,se(b0)),P2(5,_c),P2(6,sl),P2(7,_1(Os))],mq);function Fke(t,e,n){let r;const i=e.container;if(typeof i=="string"){const l=document.getElementById(i);l?r=l:r=gq(i)}else i instanceof HTMLElement?r=i:r=gq("univer");const a=yl(kke,t),o=Q(l=>n(l,r),"onRendered");function s(){wR(We.jsx(a,{...e,mountContainer:r,onRendered:o}),r)}return Q(s,"render"),s(),$t(()=>{dNe(r)})}Q(Fke,"bootstrap");function gq(t){const e=document.createElement("div");return e.id=t,e}Q(gq,"createContainer");var Vke=Object.defineProperty,VVt=Object.getOwnPropertyDescriptor,BVt=Q((t,e,n)=>e in t?Vke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp$1"),UVt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?VVt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Vke(e,n,i),i},"__decorateClass$1"),HVt=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),jVt=Q((t,e,n)=>BVt(t,e+"",n),"__publicField$1");const $Vt="UNIVER_MOBILE_UI_PLUGIN";var Gk;let TI=(Gk=class extends Cs{constructor(t,e){super(),this._config=t,this._injector=e}onStarting(){Mp([[ja],[DOe],[Nee],[_c,{useClass:yNe}],[Os,{useClass:uI}],[Bu,{useClass:fI}],[_L,{useClass:eNe}],[bL,{useClass:_I}],[sl,{useClass:dI}],[tm,{useClass:INe}],[dh,{useClass:yI,lazy:!0}],[qS,{useClass:PI,lazy:!0}],[Rd,{useClass:RI,lazy:!0}],[Il,{useClass:EI,lazy:!0}],[ol,{useClass:Lke,lazy:!0}],[n9,{useClass:MI,lazy:!0}],[ete,{useClass:SI,lazy:!0}],[Qp,{useClass:GNe,lazy:!0}],[iM,{useClass:YNe,lazy:!0}],[BNe,{useClass:bI}],[Fo,{useClass:lI}],[fL,{useClass:YOe}],[zS,{useClass:wNe}],[hL,{useClass:WOe}],[Gee],[Xee,{useFactory:Q(t=>t.createInstance(mq,this._config),"useFactory"),deps:[Wn]}],[x8],[L8]],this._config.override).forEach(t=>this._injector.add(t))}},Q(Gk,"UniverMobileUIPlugin"),Gk);jVt(TI,"pluginName",$Vt);TI=UVt([yd(kD),HVt(1,se(Wn))],TI);const Bke=class extends et{openFile(e){return new Promise(n=>{var r,i;const a=document.createElement("input");a.type="file",a.accept=(r=e==null?void 0:e.accept)!=null?r:"",a.multiple=(i=e==null?void 0:e.multiple)!=null?i:!1,a.onchange=o=>{const s=o.target.files;s&&n(Array.from(s))},a.click()})}downloadFile(e,n){const r=document.createElement("a");r.download=n,r.href=window.URL.createObjectURL(e),r.click()}};Q(Bke,"DesktopLocalFileService");let WVt=Bke;const zVt=er("univer-ui.local-file.service");var Uke=Object.defineProperty,qVt=Object.getOwnPropertyDescriptor,YVt=Q((t,e,n)=>e in t?Uke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),XVt=Q((t,e,n,r)=>{for(var i=r>1?void 0:r?qVt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Uke(e,n,i),i},"__decorateClass"),Qk=Q((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),GVt=Q((t,e,n)=>YVt(t,e+"",n),"__publicField");const QVt="UNIVER_UI_PLUGIN",pq="DISABLE_AUTO_FOCUS";var Kk;let LI=(Kk=class extends Cs{constructor(t=_Nt,e,n,r){super(),this._config=t,this._contextService=e,this._injector=n,this._configService=r;const{menu:i,...a}=this._config;a.disableAutoFocus&&this._contextService.setContextValue(pq,!0),i&&this._configService.setConfig("menu",i,{merge:!0}),this._configService.setConfig(Yee,a)}onStarting(){Mp([[ja],[DOe],[Nee],[_c,{useClass:yNe}],[Os,{useClass:uI}],[Bu,{useClass:fI}],[_L,{useClass:eNe}],[bL,{useClass:_I}],[sl,{useClass:dI}],[tm,{useClass:INe}],[dh,{useClass:yI,lazy:!0}],[qS,{useClass:PI,lazy:!0}],[Rd,{useClass:RI,lazy:!0}],[Il,{useClass:EI,lazy:!0}],[ol,{useClass:Lke,lazy:!0}],[n9,{useClass:MI,lazy:!0}],[ete,{useClass:SI,lazy:!0}],[Qp,{useClass:GNe,lazy:!0}],[iM,{useClass:YNe,lazy:!0}],[BNe,{useClass:bI}],[zVt,{useClass:WVt}],[Fo,{useClass:lI}],[fL,{useClass:YOe}],[zS,{useClass:wNe}],[hL,{useClass:WOe}],[Gee],[Xee,{useFactory:Q(t=>t.createInstance(DR,this._config),"useFactory"),deps:[Wn]}],[x8],[L8],[AR]],this._config.override).forEach(t=>this._injector.add(t))}},Q(Kk,"UniverUIPlugin"),Kk);GVt(LI,"pluginName",QVt);LI=XVt([yd(kD),Qk(1,ui),Qk(2,se(Wn)),Qk(3,Za)],LI);const KVt=.75,ule=78,cle=9,Hke="rgba(0,0,0,0)",jke="rgb(0,0,0)";function gte(t){var e;let n=t.childNodes;if(n.length===0)return t.textContent;if(n[0].nodeName==="DIV"&&(n=n[0].childNodes),n.length===1&&n[0].nodeName==="#text")return n[0].textContent;const r=[];let i=0,a=0,o=t.textContent||"";o+=`\r |
|
|
`;for(let s=0;s<n.length;s++){let l=n[`${s}`],u;l.nodeName==="#text"?(u=(e=l.textContent)!=null?e:"",l=l.parentElement):u=l.innerText;const c=YS(l);$ke(u).forEach(d=>{const h=d.length;a+=h,i=a-h;const f=Ie.generateRandomId(6);r.push({sId:f,st:i,ed:a-1,ts:c})})}return Ie.generateRandomId(6),{id:Ie.generateRandomId(6),body:{dataStream:o,textRuns:r},documentStyle:{}}}Q(gte,"handleDomToJson");function YS(t,e=""){var n,r;let i=(r=(n=t==null?void 0:t.style)==null?void 0:n.cssText)!=null?r:"";if(i+=e,i=i.replace(/[\r\n]+/g,""),i.length===0)return{};const a=i.split(";"),o={},s={t:"",r:"",b:"",l:""};return a.forEach(l=>{var u;const c=l.toLowerCase(),d=n4(c.substr(0,c.indexOf(":"))),h=n4(c.substr(c.indexOf(":")+1));if(d==="font-weight")h==="bold"||h==="700"?o.bl=1:o.bl=0;else if(d==="font-style")h==="italic"?o.it=1:o.it=0;else if(d==="font-family"){const f=n4(l),m=qke(f);o.ff=m}else if(d==="font-size"){let f=Number.parseInt(h);i.indexOf("vertical-align")>-1&&(i.indexOf("sub")>-1||i.indexOf("sup")>-1)&&(f*=2),h.indexOf("px")!==-1&&(f=zke(Number.parseInt(h,10))),o.fs=f}else if(d==="color"){const f=new Zs(h);o.cl={rgb:f.isValid?f.toRgbString():"rgb(0,0,0)"}}else if(d==="background"||d==="background-color"){const f=new Zs(h);if(f){const m=f.toRgbString();m!==Hke&&m!==jke&&(o.bg={rgb:f.toRgbString()})}}else if(d==="text-decoration-line")h==="underline"?(o.ul||(o.ul={s:1}),o.ul.s=1):h==="line-through"?(o.st||(o.st={s:1}),o.st.s=1):h==="overline"&&(o.ol||(o.ol={s:1}),o.ol.s=1);else if(d==="text-decoration-color")o.hasOwnProperty("ul")&&(o.ul||(o.ul={s:1,cl:{rgb:h}}),o.ul.cl={rgb:h}),o.hasOwnProperty("st")&&(o.st||(o.st={s:1,cl:{rgb:h}}),o.st.cl={rgb:h}),o.hasOwnProperty("ol")&&(o.ol||(o.ol={s:1,cl:{rgb:h}}),o.ol.cl={rgb:h});else if(d==="text-decoration-style")o.hasOwnProperty("ul")&&(o.ul||(o.ul={s:1,t:Number(h)}),o.ul.t=Number(h)),o.hasOwnProperty("st")&&(o.st||(o.st={s:1,t:Number(h)}),o.st.t=Number(h)),o.hasOwnProperty("ol")&&(o.ol||(o.ol={s:1,t:Number(h)}),o.ol.t=Number(h));else if(d==="text-decoration"||d==="univer-strike"){const f=(u=h.split(" "))==null?void 0:u[0];f==="underline"?(o.ul||(o.ul={s:1}),o.ul.s=1):f==="line-through"?(o.st||(o.st={s:1}),o.st.s=1):f==="overline"&&(o.ol||(o.ol={s:1}),o.ol.s=1)}if(d==="univer-underline"&&(o.ul={s:1}),d==="vertical-align"&&(h==="sub"?o.va=ca.SUBSCRIPT:h==="super"?o.va=ca.SUPERSCRIPT:h==="top"?o.vt=1:h==="middle"?o.vt=2:h==="bottom"?o.vt=3:o.va=ca.NORMAL),d==="transform"){const f=h.split(")"),m=f.findIndex(g=>g.includes("rotate"));if(m>-1){const g=f[m].match(/\d+/g);let p=0,v=0;g!=null&&g.length&&(p=+g[0]),t!=null&&t.dataset.vertical&&(v=+t.dataset.vertical),o.tr={a:p,v}}}if(d==="text-align"&&(h==="left"?o.ht=1:h==="center"?o.ht=2:h==="right"?o.ht=3:h==="justify"?o.ht=4:o.ht=0),o.tb!==1&&(d==="overflow-wrap"||d==="word-wrap"?h==="break-word"&&(o.tb=3):d==="text-overflow"?h==="clip"&&(o.tb=2):d==="text-break"&&h==="overflow"&&(o.tb=1)),d==="white-space"&&(h==="nowrap"?o.tb=1:h==="normal"?o.tb=3:h==="clip"&&(o.tb=2)),d==="border-color"){const f=vq(h,")");if(o.bd)for(const m in f)o.bd[m].cl.rgb=f[m];else{o.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 f)o.bd[m].cl.rgb=f[m]}}if(d==="border-width"||d==="border-style"){const f=vq(h," ");for(const m in f)s[m]+=` ${f[m]}`;o.bd?(o.bd.b.s=O1(s.b),o.bd.t.s=O1(s.t),o.bd.l.s=O1(s.l),o.bd.r.s=O1(s.r)):o.bd={b:{cl:{rgb:"#000"},s:O1(s.b)},t:{cl:{rgb:"#000"},s:O1(s.t)},l:{cl:{rgb:"#000"},s:O1(s.l)},r:{cl:{rgb:"#000"},s:O1(s.r)}}}if(d==="border-bottom"||d==="border-top"||d==="border-left"||d==="border-right"||d==="border"){o.bd||(o.bd={});const f=h.split(" "),m=`${f[0]} ${f[1]}`;f.splice(0,2);const g=f.join("");if(O1(m)!==Un.NONE&&g){const p={cl:{rgb:g},s:O1(m)};d==="border-bottom"?o.bd.b=h==="none"?null:p:d==="border-top"?o.bd.t=h==="none"?null:p:d==="border-left"?o.bd.l=h==="none"?null:p:d==="border-right"?o.bd.r=h==="none"?null:p:d==="border"&&(o.bd={r:h==="none"?null:p,t:h==="none"?null:p,b:h==="none"?null:p,l:h==="none"?null:p})}}else if(d==="--data-rotate"){const f=/[+-]?\d+/,m=h.match(f);h==="(0deg ,1)"?o.tr={a:0,v:1}:m&&(o.tr={a:Number(m[0])})}}),Object.keys(o).forEach(l=>{typeof o[l]=="object"&&!Object.keys(o[l]).length&&delete o[l]}),o}Q(YS,"handleStringToStyle");function vq(t,e){let n;e===" "?n=t.trim().split(e):n=t.trim().split(e).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}Q(vq,"handleBorder");function $ke(t){if(t==="")return[t];const e=/(?:(\n+.+)|(.+))/g;return t.match(e).map(n=>n.replace(/\n/g,`\r |
|
|
`))}Q($ke,"splitSpanText");function ZVt(t){const e=document.createElement("DIV"),n=[];e.innerHTML=t;const r=e.querySelectorAll("table col");if(!r.length)return[];for(let i=0;i<r.length;i++){const a=r[i],o=a.getAttribute("span");if(o&&+o>1)for(let s=0;s<+o;s++){const l=V_(a.getAttribute("width"),72);n.push(l)}else{const s=V_(a.getAttribute("width"),72);n.push(s)}}return n}Q(ZVt,"handleTableColgroup");function V_(t,e){if(!t)return e;let n;return t.includes("pt")?n=N7e(Number.parseFloat(t)):t.includes("px")?n=Number.parseFloat(t):n=Number.parseFloat(t)*72/96,n}Q(V_,"getTdHeight");function JVt(t){const e=document.createElement("DIV"),n=[];e.innerHTML=t;const r=e.querySelectorAll("table tr");if(!r.length)return[];for(let i=0;i<r.length;i++){const a=r[i].querySelectorAll("td");let o=V_(a[0].style.height,19);for(let s=0;s<a.length;s++){const l=a[s].getAttribute("rowSpan");if(!(l&&+l>1)){o=V_(a[s].style.height,19);break}}n.push(o)}return n}Q(JVt,"handleTableRowGroup");function eBt(t){let e=[];const n=document.createElement("DIV");if(n.innerHTML=t,e=new Array(n.querySelectorAll("table tr").length),!e.length)return[];let r=0;const i=n.querySelectorAll("table tr");i[0].querySelectorAll("td").forEach(o=>{let s=0;const l=o.getAttribute("colSpan");l!==null?s=+l:s=1,r+=s});for(let o=0;o<e.length;o++)e[o]=new Array(r);let a=0;return i.forEach(o=>{let s=0;o.querySelectorAll("td").forEach(l=>{var u,c;const d={};if(l.querySelectorAll("span").length||l.querySelectorAll("font").length){const m=gte(l);typeof m!="string"&&(d.p=m)}const h=l.innerText;h.trim().length===0?d.v="":d.v=h;const f=YS(l);for(Ie.isPlainObject(f)&&(d.s=f);s<r&&e[a][s]!=null;)s++;if(s!==r){if(e[a][s]==null){e[a][s]=d;const m=(u=Number(l.getAttribute("rowSpan")))!=null?u:1,g=(c=Number(l.getAttribute("colSpan")))!=null?c:1;if(m>1||g>1){const p={rs:+m-1,cs:+g-1,r:a,c:s};e[a][s].mc=p;for(let v=0;v<m;v++)for(let _=0;_<g;_++)v===0&&_===0||(e[a+v][s+_]={mc:null})}}s++}}),a++}),e}Q(eBt,"handelTableToJson");function tBt(t){const e=[],n=document.createElement("DIV");n.innerHTML=t;const r=t.replace(/\r/g,"").split(` |
|
|
`),i=r[0].split(" ").length;for(let a=0;a<r.length;a++)r[a].split(" ").length<i||e.push(r[a].split(" "));for(let a=0;a<e.length;a++)for(let o=0;o<e[a].length;o++)e[a][o].length?e[a][o]={v:e[a][o]||"",m:e[a][o]||""}:e[a][o]=null;return e}Q(tBt,"handlePlainToJson");function nBt(t,e){t.length,t[0].length;let n=0,r=0;e&&(n=e.startRow,r=e.startColumn);const i=[];for(let a=0;a<t.length;a++)for(let o=0;o<t[a].length;o++)if(t[a][o]&&typeof t[a][o]=="object"&&"mc"in t[a][o])if(t[a][o].mc){const s=t[a][o].mc,l=s.r+n,u=l+s.rs,c=s.c+r,d=c+s.cs;i.push({startRow:l,endRow:u,startColumn:c,endColumn:d}),delete t[a][o].mc}else t[a][o]=null;return{data:t,mergeData:i}}Q(nBt,"handleTableMergeData");function rBt(t){var e;let n=[];const r=document.createElement("html");r.innerHTML=t;const i=(e=r.querySelector("style"))==null?void 0:e.innerText;if(!i)return;const a=Wke(i);if(n=new Array(r.querySelectorAll("table tr").length),!n.length)return[];let o=0;const s=r.querySelectorAll("table tr");s[0].querySelectorAll("td").forEach(u=>{let c=0;const d=u.getAttribute("colSpan");d!==null?c=+d:c=1,o+=c});for(let u=0;u<n.length;u++)n[u]=new Array(o);let l=0;return s.forEach(u=>{let c=0;u.querySelectorAll("td").forEach(d=>{var h,f;const m={};if(d.querySelectorAll("span").length||d.querySelectorAll("font").length){const _=gte(d);typeof _!="string"&&(m.p=_)}const g=d.innerText;g.trim().length===0?m.v="":m.v=g;let p="";for(const _ in a)d.classList.contains(_)&&(p+=a[_]);const v=YS(d,p);for(Ie.isPlainObject(v)&&(m.s=v);c<o&&n[l][c]!=null;)c++;if(c!==o){if(n[l][c]==null){n[l][c]=m;const _=(h=Number(d.getAttribute("rowSpan")))!=null?h:1,C=(f=Number(d.getAttribute("colSpan")))!=null?f:1;if(_>1||C>1){const S={rs:+_-1,cs:+C-1,r:l,c};n[l][c].mc=S;for(let b=0;b<_;b++)for(let y=0;y<C;y++)b===0&&y===0||(n[l+b][c+y]={mc:null})}}c++}}),l++}),n}Q(rBt,"handelExcelToJson");function Wke(t){const e={},n=t.replaceAll("<!--","").replaceAll("-->","").trim(),r=n==null?void 0:n.replaceAll(" ","").replaceAll(` |
|
|
`,"").split("}");for(let i=0;i<r.length;i++){if(!r[i])continue;let a=r[i].split("{")[0].trim();a.includes(".")&&(a=a.slice(1));const o=r[i].split("{")[1].trim();e[a]=o}return e}Q(Wke,"getStyles");function zke(t){const e=Math.round(t*KVt);return e<cle?cle:e>ule?ule:e}Q(zke,"getPtFontSizeByPx");function qke(t){const e=/font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i,n=t.match(e);return n?(n[1]||n[2]||n[3]).trim():null}Q(qke,"extractFontFamily");var Yke=Object.defineProperty,iBt=(t,e,n)=>e in t?Yke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,he=(t,e)=>Yke(t,"name",{value:e,configurable:!0}),Kt=(t,e,n)=>iBt(t,typeof e!="symbol"?e+"":e,n),aBt=Object.defineProperty,oBt=Object.getOwnPropertyDescriptor,sBt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?oBt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&aBt(e,n,i),i},"__decorateClass$q"),dle=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$q");function Xke(t,e){var n,r;const{startOffset:i,endOffset:a}=t,o=[];let s=-1;for(let l=0;l<e.length;l++){const u=e[l],c=e[l-1],{startIndex:d}=u;i>s&&i<=d||a>s&&a<=d?o.push({...u,paragraphStart:((n=c==null?void 0:c.startIndex)!=null?n:-1)+1,paragraphEnd:u.startIndex}):d>=i&&d<=a&&o.push({...u,paragraphStart:((r=c==null?void 0:c.startIndex)!=null?r:-1)+1,paragraphEnd:u.startIndex}),s=d}return o}he(Xke,"getParagraphsInRange$1");var Zk;let mp=(Zk=class extends et{constructor(t,e){super(),Kt(this,"_matches",new Map),this._univerInstanceService=t,this._textSelectionManagerService=e}registerAutoFormat(t){const e=this._matches.get(t.id);return e?(e.push(t),e.sort((n,r)=>{var i,a;return((i=r.priority)!=null?i:0)-((a=n.priority)!=null?a:0)})):this._matches.set(t.id,[t]),$t(()=>{const n=this._matches.get(t.id);if(n){const r=n.findIndex(i=>i===t);r>=0&&n.splice(r,1)}})}onAutoFormat(t,e){var n,r,i,a,o,s;const l=(n=this._matches.get(t))!=null?n:[],u=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_DOC),c=this._textSelectionManagerService.getActiveTextRange();if(u&&c){const d=u.getSelfOrHeaderFooterModel(c.segmentId),h={unit:d,selection:c,isBody:!c.segmentId,paragraphs:Xke(c,(i=(r=d.getBody())==null?void 0:r.paragraphs)!=null?i:[]),customRanges:Aa.customRange.getCustomRangesInterestsWithRange(c,(o=(a=d.getBody())==null?void 0:a.customRanges)!=null?o:[]),commandId:t,commandParams:e},f=l.find(m=>m.match(h));return(s=f==null?void 0:f.getMutations(h))!=null?s:[]}return[]}},he(Zk,"DocAutoFormatService"),Zk);mp=sBt([dle(0,Ce),dle(1,se(Or))],mp);const lBt={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},uBt={outerLeft:!1,outerRight:!1,header:!0,footer:!0,innerLeft:!1,innerRight:!1,frozenHeaderLT:!1,frozenHeaderRT:!1,frozenHeaderLM:!1,frozenContent:!1,infoBar:!0,toolbar:!0},cBt="DOC_UI_PLUGIN";var G1=(t=>(t.MAIN="__Document_Render_Main__",t.BACKGROUND="__Document_Render_Background__",t))(G1||{}),f1=(t=>(t.VIEW_MAIN="viewMain",t.VIEW_TOP="viewTop",t.VIEW_LEFT="viewLeft",t.VIEW_LEFT_TOP="viewLeftTop",t))(f1||{});const dBt=0,MR=2,hBt=4,hle=10;function hf(t){const{mainComponent:e,scene:n,engine:r,components:i}=t,a=e,o=i.get(G1.BACKGROUND);return{document:a,docBackground:o,scene:n,engine:r}}he(hf,"neoGetDocObject");function Gke(t,e){const n=t.getCurrentUnitForType(le.UNIVER_DOC);if(!n)return null;const r=n.getUnitId(),i=e.getRenderById(r);if(i==null)return;const{mainComponent:a,scene:o,engine:s,components:l}=i,u=a,c=l.get(G1.BACKGROUND);return{document:u,docBackground:c,scene:o,engine:s}}he(Gke,"getDocObject");function fBt(t,e){const n=e.getRenderById(t);if(n==null)return;const{mainComponent:r,scene:i,engine:a,components:o}=n,s=r,l=o.get(G1.BACKGROUND);return{document:s,docBackground:l,scene:i,engine:a}}he(fBt,"getDocObjectById");function Qke(t){const{unitId:e,ranges:n,id:r,type:i,segmentId:a}=t,o={id:Oi.id,params:{unitId:e,actions:[],textRanges:void 0}},s=new Vi,l=Ir.getInstance();let u=0;for(let c=0;c<n.length;c++){const d=n[c],{startOffset:h,endOffset:f}=d;h>0&&s.push({t:kt.RETAIN,len:h-u,segmentId:a}),s.push({t:kt.RETAIN,body:{dataStream:"",customDecorations:[{id:r,type:i,startIndex:0,endIndex:f-h-1}]},len:f-h,segmentId:a}),u=f}return o.params.actions=l.editOp(s.serialize()),o}he(Qke,"addCustomDecorationFactory");function mBt(t,e){const{segmentId:n,id:r,type:i}=e,a=t.get(Or),o=t.get(Ce),s=a.getCurrentTextRanges();if(!s)return!1;const l=o.getCurrentUnitForType(le.UNIVER_DOC);if(!l)return!1;const u=l.getBody(),c=l.getUnitId();return u?Qke({unitId:c,ranges:s,id:r,type:i,segmentId:n}):!1}he(mBt,"addCustomDecorationBySelectionFactory");function gBt(t,e){var n,r;const{unitId:i,id:a,segmentId:o}=e,s=t.get(Ce).getUnit(i),l=s==null?void 0:s.getBody();if(!s||!l)return!1;const u=(r=(n=s.getBody())==null?void 0:n.customDecorations)==null?void 0:r.filter(p=>p.id===a);if(!(u!=null&&u.length))return!1;const c=u.map(p=>S0(l,p.startIndex,p.endIndex+1)),d=c.map(p=>{var v;const _=Ie.deepClone(p);return _.customDecorations=(v=_.customDecorations)==null?void 0:v.filter(C=>C.id!==a),_}),h={id:Oi.id,params:{unitId:i,actions:[],textRanges:void 0}},f=new Vi,m=Ir.getInstance();let g=0;return u.forEach((p,v)=>{const _=d[v],C=c[v];p.startIndex!==g&&f.push({t:kt.RETAIN,len:p.startIndex-g,segmentId:o}),g=p.startIndex,f.push({t:kt.RETAIN,len:p.endIndex-p.startIndex+1,segmentId:o,body:_,oldBody:C,coverType:go.REPLACE}),g=g+(p.endIndex-p.startIndex+1)}),h.params.actions=m.editOp(f.serialize()),h}he(gBt,"deleteCustomDecorationFactory");function y1(t,e){var n;return(n=t.get(Sr).getRenderById(e))==null?void 0:n.with(zi)}he(y1,"getCommandSkeleton");function Ma(t,e=""){if(!e)return["body"];const{headers:n,footers:r}=t.getSnapshot();if(n==null&&r==null)throw new Error("Document data model must have headers or footers when update by segment id");if((n==null?void 0:n[e])!=null)return["headers",e,"body"];if((r==null?void 0:r[e])!=null)return["footers",e,"body"];throw new Error("Segment id not found in headers or footers")}he(Ma,"getRichTextEditPath");function pBt(t,e,n){const{unitId:r,segmentId:i}=e,a=t.get(Ce).getUnit(r);if(!a)return!1;const o={id:Oi.id,params:{unitId:e.unitId,actions:[],textRanges:void 0}},s=Ir.getInstance(),l=Aa.customRange.add({...e,body:n});if(!l)return!1;const u=Ma(a,i);return o.params.actions=s.editOp(l.serialize(),u),o}he(pBt,"addCustomRangeFactory");function vBt(t,e){const{rangeId:n,rangeType:r,wholeEntity:i,properties:a,unitId:o,selection:s}=e,l=t.get(Or),u=t.get(Ce),c=s??l.getActiveTextRange(),d=c==null?void 0:c.segmentId;if(!c)return!1;const h=u.getUnit(o,le.UNIVER_DOC);if(!h)return!1;const f=h.getSelfOrHeaderFooterModel(c.segmentId).getBody();if(!f)return!1;const{startOffset:m,endOffset:g}=Aa.selection.normalizeSelection(c),p=Aa.customRange.add({range:{startOffset:m,endOffset:g,collapsed:m===g},rangeId:n,rangeType:r,segmentId:d,wholeEntity:i,properties:a,body:f});if(!p)return!1;const v=Ir.getInstance(),_={id:Oi.id,params:{unitId:o,actions:[],textRanges:void 0},textX:p},C=Ma(h,d);return _.params.actions=v.editOp(p.serialize(),C),_}he(vBt,"addCustomRangeBySelectionFactory");function _Bt(t,e){const{unitId:n,segmentId:r,insert:i}=e,a=t.get(Ce).getUnit(n);if(!a)return!1;const o={id:Oi.id,params:{unitId:e.unitId,actions:[],textRanges:void 0,segmentId:r}},s=Ir.getInstance(),l=Aa.customRange.delete(t,{documentDataModel:a,rangeId:e.rangeId,insert:i,segmentId:r});if(!l)return!1;const u=Ma(a,r);return o.params.actions=s.editOp(l.serialize(),u),o}he(_Bt,"deleteCustomRangeFactory");function Kke(t,e){return e.some(n=>t.startIndex>n.startIndex&&t.startIndex<n.endIndex)}he(Kke,"hasParagraphInTable");function CBt(t,e){var n,r,i,a;const{unitId:o,body:s,doc:l}=e;let u=l;if(u||(u=t.get(Ce).getUnit(o)),!u)return!1;const c=(n=e.selection)==null?void 0:n.segmentId,d=(r=u.getSelfOrHeaderFooterModel(c))==null?void 0:r.getBody();if(!d)return!1;const h=t.get(Or),f=(i=e.selection)!=null?i:h.getActiveTextRange();if(!f||!d)return!1;const m=(a=e.textRanges)!=null?a:[{startOffset:f.startOffset+s.dataStream.length,endOffset:f.startOffset+s.dataStream.length,collapsed:!0,segmentId:c}],g=Aa.selection.replace({selection:f,body:s,doc:u});if(!g)return!1;const p={id:Oi.id,params:{unitId:o,actions:[],textRanges:m,debounce:!0,segmentId:c},textX:g},v=Ir.getInstance(),_=Ma(u,c);return p.params.actions=v.editOp(g.serialize(),_),p}he(CBt,"replaceSelectionFactory");function SBt(t){return{left:t.positionH.posOffset,top:t.positionV.posOffset,width:t.size.width,height:t.size.height}}he(SBt,"docDrawingPositionToTransform");function bBt(t,e=0,n=0){return{size:{width:t.width,height:t.height},positionH:{relativeFrom:no.MARGIN,posOffset:(t.left||0)-e},positionV:{relativeFrom:La.PAGE,posOffset:(t.top||0)-n},angle:t.angle||0}}he(bBt,"transformToDocDrawingPosition");const yBt="doc.command.tab",r7={id:yBt,type:Se.COMMAND,async handler(t,e){const n=t.get(mp).onAutoFormat(r7.id,e);return(await A7(n,t.get(me))).result}},EBt="doc.command.after-space",xL={id:EBt,type:Se.COMMAND,async handler(t){const e=t.get(mp).onAutoFormat(xL.id);return(await A7(e,t.get(me))).result}},B_={id:"doc.command.enter",type:Se.COMMAND,async handler(t){const e=t.get(mp).onAutoFormat(B_.id);return(await A7(e,t.get(me))).result}};var Cl=(t=>(t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t))(Cl||{});const RBt="doc.command.insert-text",U_={id:RBt,type:Se.COMMAND,handler:he(async(t,e)=>{var n;const r=t.get(me),{range:i,segmentId:a,body:o,unitId:s,cursorOffset:l,extendLastRange:u}=e,c=t.get(Or),d=t.get(Ce).getUnit(s,le.UNIVER_DOC);if(d==null)return!1;const h=c.getActiveTextRange(),f=d.getSelfOrHeaderFooterModel((n=h==null?void 0:h.segmentId)!=null?n:"").getBody();if(!f)return!1;const m=u?Aa.selection.getDeleteSelection(i,f):Aa.selection.getInsertSelection(i,f),{startOffset:g,collapsed:p}=m,v=l??o.dataStream.length,_=[{startOffset:g+v,endOffset:g+v,style:h==null?void 0:h.style,collapsed:p}],C={id:Oi.id,params:{unitId:s,actions:[],textRanges:_,debounce:!0}},S=new Vi,b=Ir.getInstance();if(p)g>0&&S.push({t:kt.RETAIN,len:g,segmentId:a});else{const{dos:A,retain:w}=Aa.selection.getDeleteActions(m,a,0,f);S.push(...A),C.params.textRanges=[{startOffset:g+v+w,endOffset:g+v+w,collapsed:p}]}S.push({t:kt.INSERT,body:o,len:o.dataStream.length,line:0,segmentId:a});const y=Ma(d,a);return C.params.actions=b.editOp(S.serialize(),y),!!r.syncExecuteCommand(C.id,C.params)},"handler")},H_={id:"doc.command.delete-text",type:Se.COMMAND,handler:he(async(t,e)=>{var n;const r=t.get(me),i=t.get(Ce),{range:a,segmentId:o,unitId:s,direction:l,len:u=1}=e,c=i.getUnit(s,le.UNIVER_DOC),d=c==null?void 0:c.getSelfOrHeaderFooterModel(o).getBody();if(c==null||d==null)return!1;const{startOffset:h}=a,f=d.dataStream,m=l===Cl.LEFT?h-u:h,g=m+u-1,p=(n=d.customRanges)==null?void 0:n.filter(P=>Aa.customRange.isIntersecting(P.startIndex,P.endIndex,m,g)),v=p==null?void 0:p.filter(P=>Aa.customRange.shouldDeleteCustomRange(m,u,P,f)),_=[];for(let P=0;P<u;P++)_.push(m+P);v==null||v.forEach(P=>{_.push(P.startIndex,P.endIndex)}),_.sort((P,M)=>P-M);const C=_[0],S={id:Oi.id,params:{unitId:s,actions:[],textRanges:[{startOffset:C,endOffset:C,collapsed:!0}],debounce:!0}},b=new Vi,y=Ir.getInstance();let A=0;for(let P=0;P<_.length;P++){const M=_[P];M-A>0&&b.push({t:kt.RETAIN,len:M-A,segmentId:o}),b.push({t:kt.DELETE,len:1,segmentId:o,line:0}),A=M+1}const w=Ma(c,o);return S.params.actions=y.editOp(b.serialize(),w),!!r.syncExecuteCommand(S.id,S.params)},"handler")},Zke={id:"doc.command.update-text",type:Se.COMMAND,handler:he(async(t,e)=>{const{range:n,segmentId:r,updateBody:i,coverType:a,unitId:o,textRanges:s}=e,l=t.get(me),u=t.get(Ce).getCurrentUniverDocInstance();if(u==null)return!1;const c={id:Oi.id,params:{unitId:o,actions:[],textRanges:s}},d=new Vi,h=Ir.getInstance(),{startOffset:f,endOffset:m}=n;d.push({t:kt.RETAIN,len:f,segmentId:r}),d.push({t:kt.RETAIN,body:i,len:m-f,segmentId:r,coverType:a});const g=Ma(u,r);return c.params.actions=h.editOp(d.serialize(),g),!!l.syncExecuteCommand(c.id,c.params)},"handler")};function xI(t,e){var n,r;const i=[];for(let a=0,o=t.length;a<o;a++)t[a]===wt.PARAGRAPH&&i.push({startIndex:a});if(e)for(const a of i)e.bullet&&(a.bullet=Ie.deepClone(e.bullet),a.bullet.listType===Na.CHECK_LIST_CHECKED&&(a.bullet.listType=Na.CHECK_LIST)),e.paragraphStyle&&(a.paragraphStyle=Ie.deepClone(e.paragraphStyle),((n=e.bullet)==null?void 0:n.listType)===Na.CHECK_LIST_CHECKED&&(r=a.paragraphStyle)!=null&&r.textStyle&&(a.paragraphStyle.textStyle.st={s:at.FALSE}));return i}he(xI,"generateParagraphs");const pte={id:"doc.command.break-line",type:Se.COMMAND,handler:he(async t=>{var e,n;const r=t.get(Or),i=t.get(Ce),a=t.get(me),o=r.getActiveTextRange(),s=r.getCurrentRectRanges();if(o==null)return!1;if(s&&s.length){const{startOffset:g}=o;return r.replaceTextRanges([{startOffset:g,endOffset:g}]),!0}const{segmentId:l}=o,u=i.getCurrentUniverDocInstance(),c=u==null?void 0:u.getSelfOrHeaderFooterModel(l).getBody();if(!u||!c)return!1;const d=u.getUnitId(),{startOffset:h,endOffset:f}=Aa.selection.getInsertSelection(o,c),m=((e=c.paragraphs)!=null?e:[]).find(g=>g.startIndex>=h);if(m&&m.startIndex>f){const g=gG(S0(c,f,m.startIndex+1));g.customRanges=(n=g.customRanges)==null?void 0:n.map(Aa.customRange.copyCustomRange);const p={startOffset:h,endOffset:m.startIndex+1,collapsed:!1};return _G(g,{dataStream:wt.PARAGRAPH,paragraphs:xI(wt.PARAGRAPH,m)},1,0),await a.executeCommand(U_.id,{unitId:d,body:g,range:p,segmentId:l,cursorOffset:1})}else return await a.executeCommand(U_.id,{unitId:d,body:{dataStream:wt.PARAGRAPH,paragraphs:xI(wt.PARAGRAPH,m)},range:o,segmentId:l})},"handler")};var OL=(t=>(t[t.ABOVE=0]="ABOVE",t[t.BELLOW=1]="BELLOW",t))(OL||{}),vte=(t=>(t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t))(vte||{});function Jke(t,e){let n=wt.TABLE_START;const r=[],i=[];for(let a=0;a<t;a++){n+=wt.TABLE_ROW_START;for(let o=0;o<e;o++)n+=`${wt.TABLE_CELL_START}\r |
|
|
${wt.TABLE_CELL_END}`,r.push({startIndex:n.length-3,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),i.push({startIndex:n.length-2});n+=wt.TABLE_ROW_END}return n+=wt.TABLE_END,{dataStream:n,paragraphs:r,sectionBreaks:i}}he(Jke,"genEmptyTable");function NL(){return{margin:{start:{v:10},end:{v:10},top:{v:5},bottom:{v:5}}}}he(NL,"getEmptyTableCell");function kL(t){const e=NL();return{tableCells:[...new Array(t).fill(null).map(()=>Ie.deepClone(e))],trHeight:{val:{v:30},hRule:hde.AUTO}}}he(kL,"getEmptyTableRow");function FL(t){return{size:{type:tG.SPECIFIED,width:{v:t}}}}he(FL,"getTableColumn");function _te(t,e,n){const r=FL(n/e),i=kL(e),a=[...new Array(t).fill(null).map(()=>Ie.deepClone(i))],o=[...new Array(e).fill(null).map(()=>Ie.deepClone(r))],s=Vl(6);return{tableRows:a,tableColumns:o,tableId:s,align:s8.START,indent:{v:0},textWrap:sw.NONE,position:{positionH:{relativeFrom:no.PAGE,posOffset:0},positionV:{relativeFrom:La.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:tG.UNSPECIFIED,width:{v:n}}}}he(_te,"genTableSource");function r9(t,e){if(!t&&!e)return null;if(e&&e.length>0){let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;const i="";for(const a of e){const{startOffset:o,endOffset:s,segmentId:l}=a;o==null||s==null||l==null||(n=Math.min(n,o),r=Math.max(r,s))}if(Number.isFinite(n)&&Number.isFinite(r))return{startOffset:n,endOffset:r,segmentId:i}}else if(t){const{startOffset:n,endOffset:r,segmentId:i}=t;return n==null||r==null||i==null?null:{startOffset:n,endOffset:r,segmentId:i}}}he(r9,"getRangeInfoFromRanges");function eFe(t){let e=wt.TABLE_ROW_START;const n=[],r=[];for(let i=0;i<t;i++)e+=`${wt.TABLE_CELL_START}\r |
|
|
${wt.TABLE_CELL_END}`,n.push({startIndex:e.length-3,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),r.push({startIndex:e.length-2});return e+=wt.TABLE_ROW_END,{dataStream:e,paragraphs:n,sectionBreaks:r}}he(eFe,"getInsertRowBody");function tFe(){const t=`${wt.TABLE_CELL_START}\r |
|
|
${wt.TABLE_CELL_END}`,e=[],n=[];return e.push({startIndex:1,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),n.push({startIndex:2}),{dataStream:t,paragraphs:e,sectionBreaks:n}}he(tFe,"getInsertColumnBody");function nFe(t,e,n){var r,i,a;const{startOffset:o,endOffset:s,segmentId:l}=t,u=n.getSelfOrHeaderFooterViewModel(l),c=e===0?o:s;let d=null;const h=(a=(i=(r=n.getBody())==null?void 0:r.tables)==null?void 0:i.find(m=>c>=m.startIndex&&c<=m.endIndex))==null?void 0:a.tableId;let f=0;for(const m of u.children){for(const g of m.children){const{children:p}=g,v=p[0];if(v){for(const _ of v.children)if(_.startIndex<=c&&c<=_.endIndex){f=v.children.indexOf(_),d=_;break}}if(d)break}if(d)break}return d==null||h==null?null:{offset:e===0?d.startIndex:d.endIndex+1,colCount:d.children.length,tableId:h,insertRowIndex:e===0?f:f+1}}he(nFe,"getInsertRowActionsParams");function rFe(t,e,n){var r,i,a;const{startOffset:o,endOffset:s,segmentId:l}=t,u=n.getSelfOrHeaderFooterViewModel(l),c=e===0?o:s,d=(a=(i=(r=n.getBody())==null?void 0:r.tables)==null?void 0:i.find(p=>c>=p.startIndex&&c<=p.endIndex))==null?void 0:a.tableId,h=[];let f=null,m=-1;for(const p of u.children){for(const v of p.children){const{children:_}=v,C=_[0];if(C){if(c<C.startIndex||c>C.endIndex)continue;f=C;for(const S of C.children){for(const b of S.children){const y=S.children.indexOf(b);if(c>=b.startIndex&&c<=b.endIndex){m=y;break}}if(m!==-1)break}}if(f)break}if(f)break}if(f==null||d==null||m===-1)return null;let g=0;for(const p of f.children){const v=p.children[m],_=e===0?v.startIndex:v.endIndex+1;h.push(_-g),g=_}return{offsets:h,tableId:d,columnIndex:m,rowCount:f.children.length}}he(rFe,"getInsertColumnActionsParams");function iFe(t,e,n){const r=[];let i=e[n].size.width.v,a=0;for(let o=0;o<e.length;o++)a+=e[o].size.width.v;a+=i;for(let o=0;o<e.length;o++)r.push(e[o].size.width.v/a*t);return i=i/a*t,{widths:r,newColWidth:i}}he(iFe,"getColumnWidths");function Cte(t,e){var n,r,i;const{startOffset:a,endOffset:o,segmentId:s}=t,l=e.getSelfOrHeaderFooterViewModel(s),u=(i=(r=(n=e.getBody())==null?void 0:n.tables)==null?void 0:r.find(g=>a>=g.startIndex&&o<=g.endIndex))==null?void 0:i.tableId,c=[];let d=-1,h=0,f=-1,m=!1;for(const g of l.children){for(const p of g.children){const{children:v}=p,_=v[0];if(_){if(a<_.startIndex||o>_.endIndex)continue;f=_.startIndex+3;for(const C of _.children){const S=_.children.indexOf(C),{startIndex:b,endIndex:y}=C;a>=b&&a<=y?(d=b,c.push(S),h+=y-b+1):(b>a&&y<o||o>=b&&o<=y)&&(c.push(S),h+=y-b+1),c.length===_.children.length&&(m=!0)}}if(c.length)break}if(c.length)break}return u==null||c.length===0?null:{tableId:u,rowIndexes:c,offset:d,len:h,cursor:f,selectWholeTable:m}}he(Cte,"getDeleteRowsActionsParams");function aFe(t,e){var n,r,i;const{startOffset:a,endOffset:o,segmentId:s}=t,l=e.getSelfOrHeaderFooterViewModel(s),u=(i=(r=(n=e.getBody())==null?void 0:n.tables)==null?void 0:r.find(v=>a>=v.startIndex&&o<=v.endIndex))==null?void 0:i.tableId,c=[];let d=null;const h=[];let f=-1,m=-1,g=-1;for(const v of l.children){for(const _ of v.children){const{children:C}=_,S=C[0];if(S){if(a<S.startIndex||o>S.endIndex)continue;d=S;for(const b of S.children)for(const y of b.children){const A=b.children.indexOf(y);a>=y.startIndex&&a<=y.endIndex&&(m=A),o>=y.startIndex&&o<=y.endIndex&&(g=A)}}if(d)break}if(d)break}if(d==null||u==null)return null;for(let v=m;v<=g;v++)h.push(v);let p=0;for(const v of d.children){const _=v.children[m],C=v.children[g];c.push({retain:_.startIndex-p,delete:C.endIndex-_.startIndex+1}),p=C.endIndex+1}return f=d.startIndex+3,{offsets:c,tableId:u,columnIndexes:h,cursor:f,selectWholeTable:h.length===d.children[0].children.length,rowCount:d.children.length}}he(aFe,"getDeleteColumnsActionParams");function Ste(t,e){var n,r,i;const{startOffset:a,endOffset:o,segmentId:s}=t,l=e.getSelfOrHeaderFooterViewModel(s),u=(i=(r=(n=e.getBody())==null?void 0:n.tables)==null?void 0:r.find(f=>a>=f.startIndex&&o<=f.endIndex))==null?void 0:i.tableId;let c=-1,d=0,h=-1;for(const f of l.children){for(const m of f.children){const{children:g}=m,p=g[0];if(p){if(a<p.startIndex||o>p.endIndex)continue;c=p.startIndex,d=p.endIndex-p.startIndex+1,h=p.startIndex}if(p)break}if(d>0)break}return u==null?null:{tableId:u,offset:c,len:d,cursor:h}}he(Ste,"getDeleteTableActionParams");function oFe(t,e){var n,r,i;const{startOffset:a,endOffset:o,segmentId:s}=t,l=e.getSelfOrHeaderFooterViewModel(s),u=(i=(r=(n=e.getBody())==null?void 0:n.tables)==null?void 0:r.find(v=>a>=v.startIndex&&o<=v.endIndex))==null?void 0:i.tableId,c=[];let d=null,h=-1,f=-1,m=-1,g=-1;for(const v of l.children){for(const _ of v.children){const{children:C}=_,S=C[0];if(S){if(a<S.startIndex||o>S.endIndex)continue;d=S;for(const b of S.children){const y=S.children.indexOf(b);for(const A of b.children){const w=b.children.indexOf(A);a>=A.startIndex&&a<=A.endIndex&&(f=y,m=w),o>=A.startIndex&&o<=A.endIndex&&(g=w)}}}if(d)break}if(d)break}if(d==null||u==null||f===-1)return null;const p=d.children[f];for(let v=m;v<=g;v++){const _=p.children[v];c.push({retain:_.startIndex+1,delete:_.endIndex-_.startIndex-3})}return h=d.startIndex+3,{offsets:c,tableId:u,cursor:h,rowCount:d.children.length}}he(oFe,"getDeleteRowContentActionParams");var _q=(t=>(t[t.NEXT=0]="NEXT",t[t.PREV=1]="PREV",t))(_q||{});function Cq(t,e,n){const{startOffset:r}=e;let i=null;for(const u of t.children){for(const c of u.children){const d=c.children[0];if(d&&r>d.startIndex&&r<d.endIndex){i=d;break}}if(i)break}if(i==null)return null;let a=-1,o=-1,s=null;for(const u of i.children){for(const c of u.children)if(r>c.startIndex&&r<c.endIndex){a=u.children.indexOf(c),o=i.children.indexOf(u),s=u;break}if(a>-1)break}if(a===-1||o===-1||s==null)return null;let l=null;if(n===0){if(l=s.children[a+1],!l){const u=i.children[o+1];u&&(l=u.children[0])}}else if(l=s.children[a-1],!l){const u=i.children[o-1];u&&(l=u.children[u.children.length-1])}if(l){const{startIndex:u,endIndex:c}=l;return{startOffset:u+1,endOffset:c-2}}}he(Cq,"getCellOffsets");function sFe(t,e){const n=[],{customBlocks:r=[]}=t;for(const i of e){const{startOffset:a,endOffset:o}=i;if(!(a==null||o==null))for(const s of r){const{startIndex:l}=s;l>=a&&l<o&&n.push(s.blockId)}}return n}he(sFe,"getCustomBlockIdsInSelections");function lFe(t){return t.some(e=>{const{startNodePosition:n}=e;return n?(n==null?void 0:n.path.indexOf("cells"))>-1:!1})}he(lFe,"hasRangeInTable");const uFe={id:"doc.command.inner-paste",type:Se.COMMAND,handler:he(async(t,e)=>{var n,r,i,a;const{segmentId:o,textRanges:s,doc:l}=e,u=t.get(me),c=t.get(Or),d=t.get(Ce),h=c.getCurrentTextRanges(),{body:f,tableSource:m,drawings:g}=l;if(!Array.isArray(h)||h.length===0||f==null)return!1;const p=d.getCurrentUniverDocInstance(),v=p==null?void 0:p.getSelfOrHeaderFooterModel(o).getBody();if(p==null||v==null)return!1;const _=p.getUnitId(),C={id:Oi.id,params:{unitId:_,actions:[],textRanges:s,segmentId:o}},S=new bd;S.reset();const b=new Vi,y=Ir.getInstance(),A=[],w=!!((n=f.tables)!=null&&n.length),P=!!((r=f.customBlocks)!=null&&r.length);if(w&&o||w&&lFe(h))return!1;for(const L of h){const{startOffset:k,endOffset:O,collapsed:$}=L,B=k-S.cursor,V=Ie.deepClone(f);if(w)for(const X of V.tables){const{tableId:z}=X,F=Ie.generateRandomId(6);X.tableId=F;const H=Ie.deepClone(m[z]);H.tableId=F;const W=y.insertOp(["tableSource",F],H);A.push(W)}if(P&&g){const X=(a=(i=p.getSnapshot().drawingsOrder)==null?void 0:i.length)!=null?a:0;for(const z of V.customBlocks){const{blockId:F}=z,H=Ie.generateRandomId(6);z.blockId=H;const W=Ie.deepClone(g[F]);W.drawingId=H;const K=y.insertOp(["drawings",H],W),G=y.insertOp(["drawingsOrder",X],H);A.push(K),A.push(G)}}if($)b.push({t:kt.RETAIN,len:B,segmentId:o});else{const{dos:X}=Aa.selection.getDeleteActions(L,o,S.cursor,v);b.push(...X)}b.push({t:kt.INSERT,body:V,len:f.dataStream.length,line:0,segmentId:o}),S.reset(),S.moveCursor(O)}const M=Ma(p,o);return A.push(y.editOp(b.serialize(),M)),C.params.actions=A.reduce((L,k)=>Ir.compose(L,k),null),!!u.syncExecuteCommand(C.id,C.params)},"handler")};function cFe(t,e,n){var r,i;const a=e.getSelfOrHeaderFooterModel(n).getBody(),o=new Vi,s=Ir.getInstance(),l=[];if(a==null)return l;const u=new bd;u.reset();for(const g of t){const{startOffset:p,endOffset:v,collapsed:_}=g;if(p==null||v==null)continue;const C=p-u.cursor;_?o.push({t:kt.RETAIN,len:C,segmentId:n}):o.push(...Aa.selection.getDeleteExculdeLastLineBreakActions(g,a,n,u.cursor,!1)),u.reset(),u.moveCursor(v)}const c=Ma(e,n);l.push(s.editOp(o.serialize(),c));const d=sFe(a,t),h=(r=e.getDrawings())!=null?r:{},f=(i=e.getDrawingsOrder())!=null?i:[],m=d.sort((g,p)=>f.indexOf(g)>f.indexOf(p)?-1:f.indexOf(g)<f.indexOf(p)?1:0);if(m.length>0)for(const g of m){const p=h[g],v=f.indexOf(g);if(p==null||v<0)continue;const _=s.removeOp(["drawings",g],p),C=s.removeOp(["drawingsOrder",v],g);l.push(_),l.push(C)}return l.reduce((g,p)=>Ir.compose(g,p),null)}he(cFe,"getCutActionsFromTextRanges");function dFe(t,e,n,r){const i=[];if(e.getSelfOrHeaderFooterModel(r).getBody()==null)return i;const a=new Vi,o=Ir.getInstance(),s=new bd;s.reset();for(const u of t){const{startOffset:c,endOffset:d,spanEntireRow:h,spanEntireTable:f}=u;if(!(c==null||d==null))if(f){const m=Ste({startOffset:c,endOffset:d,segmentId:r},n);if(m==null)continue;const{offset:g,len:p,tableId:v}=m;g-s.cursor>0&&a.push({t:kt.RETAIN,len:g-s.cursor,segmentId:r}),a.push({t:kt.DELETE,len:p,line:0,segmentId:r});const _=o.removeOp(["tableSource",v]);i.push(_),s.moveCursorTo(g+p)}else if(h){const m=Cte({startOffset:c,endOffset:d,segmentId:r},n);if(m==null)continue;const{offset:g,rowIndexes:p,len:v,tableId:_}=m;g-s.cursor>0&&a.push({t:kt.RETAIN,len:g-s.cursor,segmentId:r}),a.push({t:kt.DELETE,len:v,line:0,segmentId:r});for(const C of p.reverse()){const S=o.removeOp(["tableSource",_,"tableRows",C]);i.push(S)}s.moveCursorTo(g+v)}else{const m=oFe({startOffset:c,endOffset:d,segmentId:r},n);if(m==null)continue;const{offsets:g}=m;for(const p of g){const{retain:v,delete:_}=p;v-s.cursor>0&&a.push({t:kt.RETAIN,len:v-s.cursor,segmentId:r}),a.push({t:kt.DELETE,len:_,line:0,segmentId:r}),s.moveCursorTo(v+_)}}}const l=Ma(e,r);return i.push(o.editOp(a.serialize(),l)),i.reduce((u,c)=>Ir.compose(u,c),null)}he(dFe,"getCutActionsFromRectRanges");function hFe(t,e,n,r,i){let a=[];if(Array.isArray(t)&&(t==null?void 0:t.length)!==0&&(a=cFe(t,n,i)),Array.isArray(e)&&(e==null?void 0:e.length)!==0){const o=dFe(e,n,r,i);a==null||a.length===0?a=o:a=Ir.compose(a,Ir.transform(o,a,"right"))}return a}he(hFe,"getCutActionsFromDocRanges");const ABt="doc.command.inner-cut",i7={id:ABt,type:Se.COMMAND,handler:he(async(t,e)=>{var n,r;const{segmentId:i,textRanges:a}=e,o=t.get(me),s=t.get(Or),l=t.get(Ce),u=(n=e.selections)!=null?n:s.getCurrentTextRanges(),c=s.getCurrentRectRanges();if((!Array.isArray(u)||u.length===0)&&(!Array.isArray(c)||c.length===0))return!1;const d=(r=l.getCurrentUniverDocInstance())==null?void 0:r.getUnitId();if(!d)return!1;const h=l.getUniverDocInstance(d);if(h==null)return!1;const f=y1(t,d);if(f==null)return!1;const m=f.getViewModel(),g={id:Oi.id,params:{unitId:d,actions:[],textRanges:a}};return g.params.actions=hFe(u,c,h,m,i),!!o.syncExecuteCommand(g.id,g.params)},"handler")},bte=Aa.selection.getDeleteSelection,yte={id:"doc.command.delete-custom-block",type:Se.COMMAND,handler:he(async(t,e)=>{var n;const r=t.get(Or),i=t.get(Ce),a=t.get(me),o=r.getActiveTextRange(),s=i.getCurrentUniverDocInstance();if(o==null||s==null)return!1;const{direction:l,range:u,unitId:c,drawingId:d}=e,{startOffset:h,segmentId:f,style:m}=o,g=l===Cl.LEFT?h-1:h,p=[{startOffset:g,endOffset:g,style:m}],v={id:Oi.id,params:{unitId:c,actions:[],textRanges:p,prevTextRanges:[u]}},_=new Vi,C=Ir.getInstance(),S=[];h>0&&_.push({t:kt.RETAIN,len:l===Cl.LEFT?h-1:h,segmentId:f}),_.push({t:kt.DELETE,len:1,line:0,segmentId:f});const b=Ma(s,f);S.push(C.editOp(_.serialize(),b));const y=((n=s.getDrawings())!=null?n:{})[d],A=s.getDrawingsOrder().indexOf(d),w=C.removeOp(["drawings",d],y),P=C.removeOp(["drawingsOrder",A],d);return S.push(w),S.push(P),v.params.actions=S.reduce((M,L)=>Ir.compose(M,L),null),!!a.syncExecuteCommand(v.id,v.params)},"handler")},Ete={id:"doc.command.merge-two-paragraph",type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(Or),r=t.get(Ce),i=t.get(me),{direction:a,range:o}=e,s=n.getActiveTextRange(),l=n.getCurrentTextRanges();if(s==null||l==null)return!1;const{segmentId:u,style:c}=s,d=r.getCurrentUniverDocInstance(),h=d==null?void 0:d.getSelfOrHeaderFooterModel(u).getBody();if(!d||!h)return!1;const f=bte(s,h),m=d.getUnitId(),{startOffset:g,collapsed:p}=f;if(!p)return!1;const v=a===Cl.LEFT?g:g+1,_=h.paragraphs.find(M=>M.startIndex>=v).startIndex,C=mFe(t,m,h,v,_),S=a===Cl.LEFT?g-1:g,b=[{startOffset:S,endOffset:S,style:c}],y={id:Oi.id,params:{unitId:m,actions:[],textRanges:b,prevTextRanges:[o]}},A=new Vi,w=Ir.getInstance();A.push({t:kt.RETAIN,len:a===Cl.LEFT?g-1:g,segmentId:u}),C.dataStream.length&&A.push({t:kt.INSERT,body:C,len:C.dataStream.length,line:0,segmentId:u}),A.push({t:kt.RETAIN,len:1,segmentId:u}),A.push({t:kt.DELETE,len:_+1-v,line:0,segmentId:u});const P=Ma(d,u);return y.params.actions=w.editOp(A.serialize(),P),!!i.syncExecuteCommand(y.id,y.params)},"handler")};function VL(t,e){let n=0;if(t==null||t.length===0){if(typeof e[0].startOffset=="number"){const r=e[0],{spanEntireRow:i,spanEntireTable:a}=r;a?n=r.startOffset-3:i?r.startRow>0?n=r.startOffset-6:n=r.startOffset:n=e[0].startOffset}}else if(t.length>0&&e.length>0){const r=t[0],i=e[0];if(r.startOffset!=null&&i.startOffset!=null){if(r.startOffset<i.startOffset)n=r.startOffset;else if(r.startOffset>=i.startOffset){const{spanEntireRow:a,spanEntireTable:o}=i;o?n=i.startOffset-3:a&&(n=i.startOffset-6)}}}return n}he(VL,"getCursorWhenDelete");const XS={id:"doc.command.delete-left",type:Se.COMMAND,handler:he(async t=>{var e,n;const r=t.get(Or),i=t.get(Ce),a=t.get(me);let o=!0;const s=i.getCurrentUniverDocInstance();if(!s)return!1;const l=s.getUnitId(),u=y1(t,l),c=r.getActiveTextRange(),d=r.getCurrentRectRanges(),h=r.getCurrentTextRanges(),f=u==null?void 0:u.getSkeleton();if(f==null)return!1;if(d!=null&&d.length){const M=VL(h,d),L=d[0].segmentId,k=[{startOffset:M,endOffset:M}];return a.executeCommand(i7.id,{segmentId:L,textRanges:k})}if(c==null||h==null)return!1;const{segmentId:m,style:g,segmentPage:p}=c,v=s.getSelfOrHeaderFooterModel(m).getBody();if(v==null)return!1;const _=bte(c,v),{startOffset:C,collapsed:S}=_,b=f.findNodeByCharIndex(C,m,p),y=q7e(b),A=Y7e(b,v);let w=C;const P=f.findNodeByCharIndex(C-1,m,p);if(X7e(b)&&P!==b&&(y===!0||A===!0)&&S){const M=WZ(b,v);if(M==null)return!1;const L=M==null?void 0:M.startIndex,k={startIndex:0},O=M.paragraphStyle;if(y===!0){const B=M.paragraphStyle;if(B){k.paragraphStyle=B;const{hanging:V}=B;V&&(k.paragraphStyle.indentStart=V,k.paragraphStyle.hanging=void 0)}}else if(A===!0){const B=M.bullet;B&&(k.bullet=B),O!=null&&(k.paragraphStyle={...O},delete k.paragraphStyle.hanging,delete k.paragraphStyle.indentStart)}const $=[{startOffset:w,endOffset:w,style:g}];o=await a.executeCommand(Zke.id,{unitId:s.getUnitId(),updateBody:{dataStream:"",paragraphs:[{...k}]},range:{startOffset:L,endOffset:L+1},textRanges:$,coverType:go.REPLACE,segmentId:m})}else if(S===!0){if(P==null)return!0;if(P.content==="\r")o=await a.executeCommand(Ete.id,{direction:Cl.LEFT,range:_});else if(P.streamType==="\b"){const M=(n=s.getSnapshot().drawings)==null?void 0:n[(e=P.drawingId)!=null?e:""];if(M==null)return!0;if(M.layoutType===Sl.INLINE){const L=s.getUnitId();o=await a.executeCommand(yte.id,{direction:Cl.LEFT,range:c,unitId:L,drawingId:P.drawingId})}else{const L=f.findNodeByCharIndex(C-2);if(L==null)return!0;w-=P.count,w-=L.count;const k=[{startOffset:w,endOffset:w,style:g}];o=await a.executeCommand(H_.id,{unitId:s.getUnitId(),range:{...c,startOffset:c.startOffset-1,endOffset:c.endOffset-1},segmentId:m,direction:Cl.LEFT,len:L.count,textRanges:k})}}else w-=P.count,o=await a.executeCommand(H_.id,{unitId:s.getUnitId(),range:_,segmentId:m,direction:Cl.LEFT,len:P.count})}else{const M=Rte(_,[_]);o=await a.executeCommand(i7.id,{segmentId:m,textRanges:M,selections:[_]})}return o},"handler")},fFe={id:"doc.command.delete-right",type:Se.COMMAND,handler:he(async t=>{var e,n;const r=t.get(Or),i=t.get(Ce).getCurrentUniverDocInstance();if(!i)return!1;const a=y1(t,i.getUnitId()),o=t.get(me),s=r.getActiveTextRange(),l=r.getCurrentRectRanges(),u=r.getCurrentTextRanges(),c=a==null?void 0:a.getSkeleton();if(l!=null&&l.length){const S=VL(u,l),b=l[0].segmentId,y=[{startOffset:S,endOffset:S}];return o.executeCommand(i7.id,{segmentId:b,textRanges:y})}if(s==null||c==null||u==null)return!1;const{segmentId:d,style:h,segmentPage:f}=s,m=i==null?void 0:i.getSelfOrHeaderFooterModel(d).getBody();if(!i||!m)return!1;const g=bte(s,m,Cl.RIGHT),{startOffset:p,endOffset:v,collapsed:_}=g;if(p===m.dataStream.length-2&&_)return!0;let C=!1;if(_===!0){const S=c.findNodeByCharIndex(p,d,f),b=c.findNodeByCharIndex(p+1);if(S.streamType===wt.PARAGRAPH&&(b==null?void 0:b.streamType)===wt.SECTION_BREAK)return!1;if(S.content==="\r")C=await o.executeCommand(Ete.id,{direction:Cl.RIGHT,range:s});else if(S.streamType==="\b"){const y=(n=i.getSnapshot().drawings)==null?void 0:n[(e=S.drawingId)!=null?e:""];if(y==null)return!0;if(y.layoutType===Sl.INLINE){const A=i.getUnitId();C=await o.executeCommand(yte.id,{direction:Cl.RIGHT,range:s,unitId:A,drawingId:S.drawingId})}else{if(b==null)return!0;const A=[{startOffset:p+1,endOffset:p+1,style:h}];C=await o.executeCommand(H_.id,{unitId:i.getUnitId(),range:{...s,startOffset:p+1,endOffset:v+1},segmentId:d,direction:Cl.RIGHT,textRanges:A,len:b.count})}}else{const y=[{startOffset:p,endOffset:p,style:h}];C=await o.executeCommand(H_.id,{unitId:i.getUnitId(),range:g,segmentId:d,direction:Cl.RIGHT,textRanges:y,len:S.count})}}else{const S=Rte(g,[g]);C=await o.executeCommand(i7.id,{segmentId:d,textRanges:S,selections:[g]})}return C},"handler")};function mFe(t,e,n,r,i){const{textRuns:a=[],customBlocks:o=[]}=n,s={dataStream:n.dataStream.substring(r,i),customRanges:pG(n,r,i).customRanges.map(c=>({...Ie.deepClone(c),rangeId:Vl()})),customDecorations:vG(n,r,i)},l=[];for(const c of a){const{st:d,ed:h}=c;h<=r||d>=i||(d<r?l.push({...c,st:0,ed:h-r}):h>i?l.push({...c,st:d-r,ed:i-r}):l.push({...c,st:d-r,ed:h-r}))}l.length>0&&(s.textRuns=l);const u=[];for(const c of o){const{startIndex:d}=c;d>=r&&d<=i&&u.push({...c,startIndex:d-r})}return u.length>0&&(s.customBlocks=u),s}he(mFe,"getParagraphBody");function Rte(t,e){let n=t.endOffset;for(const r of e){const{startOffset:i,endOffset:a}=r;i==null||a==null||a<=t.endOffset&&(n-=a-i)}return[{startOffset:n,endOffset:n,style:t.style}]}he(Rte,"getTextRangesWhenDelete");const wBt=10,DBt=6;function gFe(){return Ie.generateRandomId(DBt)}he(gFe,"genId");function pFe(t){const e=t.match(/data-copy-id="([^\s]+)"/);return e&&e[1]?e[1]:null}he(pFe,"extractId");const vFe=class{constructor(){Kt(this,"_cache",new Yg(wBt))}set(e,n){this._cache.set(e,n)}get(e){return this._cache.get(e)}clear(){this._cache.clear()}};he(vFe,"CopyContentCache");let IBt=vFe;const fle=new IBt;function BL(t){const e=t.style,n={},r=t.tagName.toLowerCase();switch(r){case"b":case"em":case"strong":{n.bl=at.TRUE;break}case"s":{n.st={s:at.TRUE};break}case"u":{n.ul={s:at.TRUE};break}case"i":{n.it=at.TRUE;break}case"sub":case"sup":{n.va=r==="sup"?ca.SUPERSCRIPT:ca.SUBSCRIPT;break}}for(let i=0;i<e.length;i++){const a=e[i],o=e.getPropertyValue(a);switch(a){case"font-family":{n.ff=o.replace(/^"/g,"").replace(/"$/g,"");break}case"font-size":{const s=Number.parseInt(o);Number.isNaN(s)||(o.endsWith("pt")?n.fs=s:o.endsWith("px")&&(n.fs=U7e(s)));break}case"font-style":{o==="italic"&&(n.it=at.TRUE);break}case"font-weight":{(Number(o)>400||String(o)==="bold")&&(n.bl=at.TRUE);break}case"text-decoration":{/underline/.test(o)?n.ul={s:at.TRUE}:/overline/.test(o)?n.ol={s:at.TRUE}:/line-through/.test(o)&&(n.st={s:at.TRUE});break}case"color":{try{const s=new Zs(o);s.isValid&&(n.cl={rgb:s.toRgbString()})}catch{}break}case"background-color":{const s=new Zs(o);s.isValid&&(n.bg={rgb:s.toRgbString()});break}}}return n}he(BL,"extractNodeStyle");function _Fe(t){const e=new DOMParser,n=`<x-univer id="univer-root">${t}</x-univer>`;return e.parseFromString(n,"text/html").querySelector("#univer-root")}he(_Fe,"parseToDom");function Sq(t,e){const n=t.tagName.toLowerCase();return typeof e=="string"?n===e:Array.isArray(e)?e.some(r=>r===n):e(t)}he(Sq,"matchFilter");const mle=600,bq=class CFe{constructor(){Kt(this,"_tableCache",[]),Kt(this,"_styleCache",new Map),Kt(this,"_styleRules",[]),Kt(this,"_afterProcessRules",[])}static use(e){if(this._pluginList.includes(e))throw new Error(`Univer paste plugin ${e.name} already added`);this._pluginList.push(e)}convert(e){const n=CFe._pluginList.find(a=>a.checkPasteType(e)),r=_Fe(e),i={body:{dataStream:"",paragraphs:[],sectionBreaks:[],tables:[],textRuns:[]},tableSource:{}};return n&&(this._styleRules=[...n.stylesRules],this._afterProcessRules=[...n.afterProcessRules]),this._tableCache=[],this._styleCache.clear(),this._process(null,r.childNodes,i),this._styleCache.clear(),this._styleRules=[],this._afterProcessRules=[],i}_process(e,n,r){var i,a;const o=r.body;for(const s of n)if(s.nodeType===Node.TEXT_NODE){if(((i=s.nodeValue)==null?void 0:i.trim())==="")continue;const l=(a=s.nodeValue)==null?void 0:a.replace(/[\r\n]/g,"");let u;e&&this._styleCache.has(e)&&(u=this._styleCache.get(e)),o.dataStream+=l,u&&Object.getOwnPropertyNames(u).length&&o.textRuns.push({st:o.dataStream.length-l.length,ed:o.dataStream.length,ts:u})}else{if(She.includes(s.nodeName.toLowerCase()))continue;if(s.nodeType===Node.ELEMENT_NODE){const l=s,u=this._processBeforeLink(l,r),c=e?this._styleCache.get(e):{},d=this._styleRules.find(({filter:g})=>Sq(s,g)),h=d?d.getStyle(s):BL(s);this._styleCache.set(s,{...c,...h});const{childNodes:f}=s;this._processBeforeTable(s,r),this._process(s,f,r),this._processAfterTable(s,r);const m=this._afterProcessRules.find(({filter:g})=>Sq(s,g));m&&m.handler(r,s),this._processAfterLink(l,r,u)}}}_processBeforeTable(e,n){var r;const i=e.tagName.toUpperCase(),a=n.body;switch(i){case"TABLE":{a.dataStream[a.dataStream.length-1]!=="\r"&&(a.dataStream+="\r",a.paragraphs==null&&(a.paragraphs=[]),(r=a.paragraphs)==null||r.push({startIndex:a.dataStream.length-1}));const o=_te(0,0,mle);this._tableCache.push({table:o,startIndex:a.dataStream.length}),a.dataStream+=wt.TABLE_START;break}case"TR":{const o=kL(0);this._tableCache[this._tableCache.length-1].table.tableRows.push(o),a.dataStream+=wt.TABLE_ROW_START;break}case"TD":{const o=NL(),s=this._tableCache[this._tableCache.length-1].table;s.tableRows[s.tableRows.length-1].tableCells.push(o),a.dataStream+=wt.TABLE_CELL_START;break}}}_processAfterTable(e,n){var r,i;const a=e.tagName.toUpperCase(),o=n.body;n.tableSource==null&&(n.tableSource={}),o.tables==null&&(o.tables=[]),o.sectionBreaks==null&&(o.sectionBreaks=[]);const{tableSource:s}=n;switch(a){case"TABLE":{const l=this._tableCache.pop(),{startIndex:u,table:c}=l,d=c.tableRows[0].tableCells.length,h=FL(mle/d),f=[...new Array(d).fill(null).map(()=>Ie.deepClone(h))];c.tableColumns=f,s[c.tableId]=c,o.dataStream+=wt.TABLE_END,o.tables.push({startIndex:u,endIndex:o.dataStream.length-1,tableId:c.tableId});break}case"TR":{o.dataStream+=wt.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"),(i=o.sectionBreaks)==null||i.push({startIndex:o.dataStream.length}),o.dataStream+=` |
|
|
${wt.TABLE_CELL_END}`;break}}}_processBeforeLink(e,n){const r=n.body,i=e,a=r.dataStream.length;return i.tagName.toUpperCase()==="A"&&(r.dataStream+=wt.CUSTOM_RANGE_START),a}_processAfterLink(e,n,r){var i,a;const o=n.body,s=e;s.tagName.toUpperCase()==="A"&&(o.dataStream+=wt.CUSTOM_RANGE_END,o.customRanges=(i=o.customRanges)!=null?i:[],o.customRanges.push({startIndex:r,endIndex:o.dataStream.length-1,rangeId:(a=s.dataset.rangeid)!=null?a:Vl(),rangeType:cd.HYPERLINK,properties:{url:s.href}}))}};he(bq,"HtmlToUDMService"),Kt(bq,"_pluginList",[]);let UL=bq;const PBt={name:"univer-doc-paste-plugin-lark",checkPasteType(t){return/lark-record-clipboard/i.test(t)},stylesRules:[{filter:["s"],getStyle(t){const e=BL(t);return{st:{s:at.TRUE},...e}}}],afterProcessRules:[{filter(t){return t.tagName==="DIV"&&/ace-line/i.test(t.className)},handler(t){const e=t.body;e.paragraphs==null&&(e.paragraphs=[]),e.paragraphs.push({startIndex:e.dataStream.length}),e.dataStream+="\r"}}]},MBt=PBt;function Ate(t){const e=t.style,n={};for(let r=0;r<e.length;r++){const i=e[r],a=e.getPropertyValue(i);switch(i){case"margin-top":{const o=Number.parseInt(a);n.spaceAbove={v:/pt/.test(a)?ip(o):o};break}case"margin-bottom":{const o=Number.parseInt(a);n.spaceBelow={v:/pt/.test(a)?ip(o):o};break}case"line-height":{let o=Number.parseFloat(a);a.endsWith("%")&&(o/=100),n.lineSpacing=o;break}}}return Object.getOwnPropertyNames(n).length?n:null}he(Ate,"getParagraphStyle");const TBt={name:"univer-doc-paste-plugin-univer",checkPasteType(t){return/UniverNormal/i.test(t)},stylesRules:[],afterProcessRules:[{filter(t){return t.tagName==="P"&&/UniverNormal/i.test(t.className)},handler(t,e){const n=t.body;n.paragraphs==null&&(n.paragraphs=[]);const r={startIndex:n.dataStream.length},i=Ate(e);i&&(r.paragraphStyle=i),n.paragraphs.push(r),n.dataStream+="\r"}}]},LBt=TBt,xBt={name:"univer-doc-paste-plugin-word",checkPasteType(t){return/word|mso/i.test(t)},stylesRules:[{filter:["b"],getStyle(t){const e=BL(t);return{bl:at.TRUE,...e}}}],afterProcessRules:[{filter(t){return t.tagName==="P"},handler(t,e){const n=t.body;n.paragraphs==null&&(n.paragraphs=[]);const r={startIndex:n.dataStream.length},i=Ate(e);i&&(r.paragraphStyle=i),n.paragraphs.push(r),n.dataStream+="\r"}}]},OBt=xBt;function yq(t,e){const{st:n,ed:r,ts:i={}}=e,{ff:a,fs:o,it:s,bl:l,ul:u,st:c,ol:d,bg:h,cl:f,va:m}=i;let g=t.slice(n,r);const p=[];return s===at.TRUE&&(g=`<i>${g}</i>`),m===ca.SUPERSCRIPT?g=`<sup>${g}</sup>`:m===ca.SUBSCRIPT&&(g=`<sub>${g}</sub>`),(u==null?void 0:u.s)===at.TRUE&&(g=`<u>${g}</u>`),(c==null?void 0:c.s)===at.TRUE&&(g=`<s>${g}</s>`),l===at.TRUE&&(g=`<strong>${g}</strong>`),a&&p.push(`font-family: ${a}`),f&&p.push(`color: ${f.rgb}`),o&&p.push(`font-size: ${o}pt`),d&&p.push("text-decoration: overline"),h&&p.push(`background: ${h.rgb}`),p.length?`<span style="${p.join("; ")};">${g}</span>`:g}he(yq,"covertTextRunToHtml");function TR(t,e,n){const{dataStream:r,textRuns:i=[]}=t;let a=e;const o=[];for(const s of i){const{st:l,ed:u}=s;Ie.hasIntersectionBetweenTwoRanges(e,n,l,u)&&(l>a?(o.push(r.slice(a,l)),o.push(yq(r,{...s,ed:Math.min(u,n)}))):o.push(yq(r,{...s,st:a,ed:Math.min(u,n)}))),a=Math.max(e,Math.min(u,n))}return a!==n&&o.push(r.slice(a,n)),o.join("")}he(TR,"getBodyInlineSlice");function SFe(t,e,n){const{customRanges:r=[]}=t,i=r.filter(l=>l.startIndex>=e&&l.endIndex<=n);let a=e,o="";i.forEach(l=>{var u,c;const{startIndex:d,endIndex:h,rangeType:f,rangeId:m}=l,g=TR(t,a,d);o+=g;const p=TR(t,d+1,h);switch(f){case cd.HYPERLINK:{o+=`<a data-rangeid="${m}" href="${(c=(u=l.properties)==null?void 0:u.url)!=null?c:""}">${p}</a>`;break}default:{o+=p;break}}a=h+1});const s=TR(t,a,n);return o+=s,o}he(SFe,"getBodySliceHtml");function bFe(t){const{paragraphs:e=[],sectionBreaks:n=[]}=t;let{dataStream:r}=t;r.endsWith(`\r |
|
|
`)||(r+=`\r |
|
|
`,e.push({startIndex:r.length-2}),n.push({startIndex:r.length-1}),t.dataStream=r,t.paragraphs=e,t.sectionBreaks=n);const i={html:""},a=SD(r);for(const o of a)gg(o,t,i);return i.html}he(bFe,"convertBodyToHtml");function gg(t,e,n){var r;switch(t.nodeType){case Co.SECTION_BREAK:{for(const i of t.children)gg(i,e,n);break}case Co.PARAGRAPH:{const{children:i,startIndex:a,endIndex:o}=t,s=(r=e.paragraphs.find(f=>f.startIndex===o))!=null?r:{},{paragraphStyle:l={}}=s,{spaceAbove:u,spaceBelow:c,lineSpacing:d}=l,h=[];if(u!=null&&(typeof u=="number"?h.push(`margin-top: ${u}px`):h.push(`margin-top: ${u.v}px`)),c!=null&&(typeof c=="number"?h.push(`margin-bottom: ${c}px`):h.push(`margin-bottom: ${c.v}px`)),d!=null&&h.push(`line-height: ${d}`),n.html+=`<p class="UniverNormal" ${h.length?`style="${h.join("; ")};"`:""}>`,i.length)for(const f of i)gg(f,e,n);n.html+=`${SFe(e,a,o)}</p>`;break}case Co.TABLE:{const{children:i}=t;n.html+='<table class="UniverTable" style="width: 100%; border-collapse: collapse;"><tbody>';for(const a of i)gg(a,e,n);n.html+="</tbody></table>";break}case Co.TABLE_ROW:{const{children:i}=t;n.html+='<tr class="UniverTableRow">';for(const a of i)gg(a,e,n);n.html+="</tr>";break}case Co.TABLE_CELL:{const{children:i}=t;n.html+='<td class="UniverTableCell">';for(const a of i)gg(a,e,n);n.html+="</td>";break}default:throw new Error(`Unknown node type: ${t.nodeType}`)}}he(gg,"processNode");const yFe=class{convert(e){if(e.length===0)throw new Error("The bodyList length at least to be 1");let n="";for(const r of Ie.deepClone(e))n+=bFe(r);return n}};he(yFe,"UDMToHtmlService");let NBt=yFe;var kBt=Object.defineProperty,FBt=Object.getOwnPropertyDescriptor,VBt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?FBt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kBt(e,n,i),i},"__decorateClass$p"),G9=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$p");UL.use(OBt);UL.use(MBt);UL.use(LBt);function EFe(t,e,n){var r,i,a;const o=S0(t,e,n+2),s=wt.TABLE_START+wt.TABLE_ROW_START+wt.TABLE_CELL_START+o.dataStream+wt.TABLE_CELL_END+wt.TABLE_ROW_END+wt.TABLE_END;return o.dataStream=s,(r=o.textRuns)==null||r.forEach(l=>{const{st:u,ed:c}=l;l.st=u+3,l.ed=c+3}),(i=o.tables)==null||i.forEach(l=>{const{startIndex:u,endIndex:c}=l;l.startIndex=u+3,l.endIndex=c+3}),(a=o.paragraphs)==null||a.forEach(l=>{const{startIndex:u}=l;l.startIndex=u+3}),o}he(EFe,"getTableSlice");const GS=er("doc.clipboard-service");var Jk;let Eq=(Jk=class extends et{constructor(t,e,n,r,i){super(),Kt(this,"_clipboardHooks",[]),Kt(this,"_htmlToUDM",new UL),Kt(this,"_umdToHtml",new NBt),this._univerInstanceService=t,this._logService=e,this._commandService=n,this._clipboardInterfaceService=r,this._docSelectionManagerService=i}async copy(t=lw.copy){var e;const{bodyList:n=[],needCache:r=!1,snapshot:i}=(e=this._getDocumentBodyInRanges(t))!=null?e:{};if(n.length===0||i==null)return!1;try{const a=this._docSelectionManagerService.getActiveTextRange(),o=!!(a!=null&&a.segmentId);this._setClipboardData(n,i,!o&&r)}catch(a){return this._logService.error("[DocClipboardService] copy failed",a),!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 n;const r=this._genDocDataFromHtmlAndText(t,e);if(((n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_DOC))==null?void 0:n.getUnitId())===Yo)if(e){const i=Aa.transform.fromPlainText(e);return this._paste({body:i})}else r.body.textRuns=[];return this._paste(r)}async _cut(){var t,e,n;const{segmentId:r,endOffset:i,style:a}=(t=this._docSelectionManagerService.getActiveTextRange())!=null?t:{},o=(e=this._docSelectionManagerService.getCurrentTextRanges())!=null?e:[],s=(n=this._docSelectionManagerService.getCurrentRectRanges())!=null?n:[];if(r==null&&this._logService.error("[DocClipboardController] segmentId is not existed"),o.length===0&&s.length===0)return!1;this.copy(lw.cut);try{let l=0;if(s.length>0)l=VL(o,s);else if(i!=null){l=i;for(const c of o){const{startOffset:d,endOffset:h}=c;d==null||h==null||h<=i&&(l-=h-d)}}const u=[{startOffset:l,endOffset:l,style:a}];return this._commandService.executeCommand(i7.id,{segmentId:r,textRanges:u})}catch{return this._logService.error("[DocClipboardController] cut content failed"),!1}}async _paste(t){var e,n;const{body:r}=t;if(r==null)return!1;let i=gG(r);if(!((e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_DOC))!=null&&e.getUnitId()))return!1;this._clipboardHooks.forEach(c=>{c.onBeforePaste&&(i=c.onBeforePaste(i))}),i.customRanges=(n=i.customRanges)==null?void 0:n.map(Aa.customRange.copyCustomRange);const a=this._docSelectionManagerService.getActiveTextRange(),{segmentId:o,endOffset:s,style:l}=a||{},u=this._docSelectionManagerService.getCurrentTextRanges();if(o==null&&this._logService.error("[DocClipboardController] segmentId does not exist!"),s==null||u==null)return!1;try{let c=s;for(const h of u){const{startOffset:f,endOffset:m}=h;f==null||m==null||m<=s&&(c+=i.dataStream.length-(m-f))}const d=[{startOffset:c,endOffset:c,style:l}];return this._commandService.executeCommand(uFe.id,{doc:{...t,body:i},segmentId:o,textRanges:d})}catch{return this._logService.error("[DocClipboardController]","clipboard is empty."),!1}}async _setClipboardData(t,e,n=!0){var r,i;const a=gFe(),o=(t.length>1?t.map(l=>l.dataStream).join(` |
|
|
`):t[0].dataStream).replaceAll(wt.CUSTOM_RANGE_START,"").replaceAll(wt.CUSTOM_RANGE_END,"");let s=this._umdToHtml.convert(t);if(t.length===1&&n){s=s.replace(/(<[a-z]+)/,(c,d)=>`${d} data-copy-id="${a}"`);const l=t[0],u={body:l};if((r=l.customBlocks)!=null&&r.length){u.drawings={};for(const c of l.customBlocks){const{blockId:d}=c,h=(i=e.drawings)==null?void 0:i[d];if(h){const f=Ie.generateRandomId(6);c.blockId=f,u.drawings[f]={...Ie.deepClone(h),drawingId:f}}}}fle.set(a,u)}return this._clipboardInterfaceService.write(o,s)}addClipboardHook(t){return this._clipboardHooks.push(t),$t(()=>{const e=this._clipboardHooks.indexOf(t);e>-1&&this._clipboardHooks.splice(e,1)})}_getDocumentBodyInRanges(t){var e;const n=this._univerInstanceService.getCurrentUniverDocInstance(),r=this._docSelectionManagerService.getDocRanges(),i=[];let a=!0;if(n==null||r.length===0)return;const o=r[0].segmentId,s=(e=n==null?void 0:n.getSelfOrHeaderFooterModel(o))==null?void 0:e.getBody(),l=n.getSnapshot();if(s!=null){for(const u of r){const{startOffset:c,endOffset:d,collapsed:h,rangeType:f}=u;if(h||c==null||d==null)continue;if(f===v4.RECT){a=!1;const{spanEntireRow:p}=u;let v;v=EFe(s,c,d),i.push(v);continue}const m=Aa.selection.getDeleteSelection({startOffset:c,endOffset:d,collapsed:h},s),g=n.getSelfOrHeaderFooterModel(o).sliceBody(m.startOffset,m.endOffset,t);g!=null&&i.push(g)}return{bodyList:i,needCache:a,snapshot:l}}}async _genDocDataFromClipboardItems(t){try{let e="",n="";for(const r of t)for(const i of r.types)i===O_?n=await r.getType(i).then(a=>a&&a.text()):i===N_&&(e=await r.getType(i).then(a=>a&&a.text()));return this._genDocDataFromHtmlAndText(e,n)}catch(e){return Promise.reject(e)}}_genDocDataFromHtmlAndText(t,e){if(!t){if(e)return{body:Aa.transform.fromPlainText(e)};throw new Error("[DocClipboardService] html and text cannot be both empty!")}const n=pFe(t);if(n){const r=fle.get(n);if(r)return r}return this._htmlToUDM.convert(t)}},he(Jk,"DocClipboardService"),Jk);Eq=VBt([G9(0,Ce),G9(1,Ra),G9(2,me),G9(3,dh),G9(4,se(Or))],Eq);function QS(t){return t.getContextValue(K1)||t.getContextValue(ha)}he(QS,"whenDocOrEditor");function RFe(t){return t.getContextValue(ha)}he(RFe,"whenFocusEditor");const wte=999,OI={id:gL.id,name:"doc.command.copy",type:Se.COMMAND,multi:!0,priority:wte,preconditions:QS,handler:he(async t=>t.get(GS).copy(),"handler")},Dte={id:pL.id,name:"doc.command.cut",type:Se.COMMAND,multi:!0,priority:wte,preconditions:QS,handler:he(async t=>t.get(GS).cut(),"handler")},Ite={id:vL.id,name:"doc.command.paste",type:Se.COMMAND,multi:!0,priority:wte,preconditions:QS,handler:he(async t=>{const e=t.get(GS),n=await t.get(dh).read();return n.length===0?!1:e.paste(n)},"handler")},AFe=class extends Da{constructor(e){super(),Kt(this,"_previousActiveRange",null),Kt(this,"_undoMutationParamsCache",[]),Kt(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((r,i)=>Ir.compose(r,i.actions),null),textRanges:[]};return{redoMutationParams:{unitId:e,actions:this._redoMutationParamsCache.reduce((r,i)=>Ir.compose(r,i.actions),null),textRanges:[]},undoMutationParams:n,previousActiveRange:this._previousActiveRange}}dispose(){this._undoMutationParamsCache=[],this._redoMutationParamsCache=[],this._previousActiveRange=null}};he(AFe,"DocIMEInputManagerService");let HL=AFe;const Pte={id:"doc.command.ime-input",type:Se.COMMAND,handler:he(async(t,e)=>{var n;const{unitId:r,newText:i,oldTextLen:a,isCompositionEnd:o,isCompositionStart:s}=e,l=t.get(me),u=(n=t.get(Sr).getRenderById(r))==null?void 0:n.with(HL),c=t.get(Ce).getCurrentUniverDocInstance();if(c==null||u==null)return!1;const d=u.getActiveRange();if(!d)return!1;const{style:h,segmentId:f}=d,m=c.getSelfOrHeaderFooterModel(f).getBody();if(m==null)return!1;const g=Aa.selection.getInsertSelection(d,m);Object.assign(d,g);const{startOffset:p}=d,v=i.length,_=[{startOffset:p+v,endOffset:p+v,collapsed:!0,style:h}],C={id:Oi.id,params:{unitId:r,actions:[],textRanges:_}},S=new Vi,b=Ir.getInstance();if(!d.collapsed&&s){const{dos:w,retain:P,cursor:M}=Aa.selection.getDeleteActions(d,f,0,m);S.push(...w),C.params.textRanges=[{startOffset:p+v+P,endOffset:p+v+P,collapsed:!0}]}else S.push({t:kt.RETAIN,len:p,segmentId:f});a>0&&S.push({t:kt.DELETE,len:a,line:0,segmentId:f}),S.push({t:kt.INSERT,body:{dataStream:i},len:i.length,line:0,segmentId:f});const y=Ma(c,f);C.params.actions=b.editOp(S.serialize(),y),C.params.noHistory=!o,C.params.isCompositionEnd=o;const A=l.syncExecuteCommand(C.id,C.params);return u.pushUndoRedoMutationParams(A,C.params),!!A},"handler")};function E1(t,e,n){return n.executeCommand(Mc.id,{preCommandId:t,...e??{}})}he(E1,"handleInlineFormat");const gle="doc.command.set-inline-format-bold",Kp={id:gle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(gle,e,n)},"handler")},ple="doc.command.set-inline-format-italic",Zp={id:ple,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(ple,e,n)},"handler")},vle="doc.command.set-inline-format-underline",Jp={id:vle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(vle,e,n)},"handler")},_le="doc.command.set-inline-format-strikethrough",e3={id:_le,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(_le,e,n)},"handler")},Cle="doc.command.set-inline-format-subscript",wf={id:Cle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(Cle,e,n)},"handler")},Sle="doc.command.set-inline-format-superscript",t3={id:Sle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(Sle,e,n)},"handler")},ble="doc.command.set-inline-format-fontsize",gp={id:ble,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(ble,e,n)},"handler")},yle="doc.command.set-inline-format-font-family",pp={id:yle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(yle,e,n)},"handler")},Ele="doc.command.set-inline-format-text-color",vp={id:Ele,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(Ele,e,n)},"handler")},Rle="doc.command.set-inline-format-text-background-color",a7={id:Rle,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(Rle,e,n)},"handler")},Ale="doc.command.reset-inline-format-text-background-color",KS={id:Ale,type:Se.COMMAND,handler:he(async(t,e)=>{const n=t.get(me);return E1(Ale,e,n)},"handler")},wFe={[Kp.id]:"bl",[Zp.id]:"it",[Jp.id]:"ul",[e3.id]:"st",[gp.id]:"fs",[pp.id]:"ff",[vp.id]:"cl",[a7.id]:"bg",[KS.id]:"bg",[wf.id]:"va",[t3.id]:"va"},Mc={id:"doc.command.set-inline-format",type:Se.COMMAND,handler:he(async(t,e)=>{const{value:n,preCommandId:r}=e,i=t.get(me),a=t.get(Or),o=t.get(Ce),s=a.getDocRanges();if(s.length===0)return!1;const l=s[0].segmentId,u=o.getCurrentUniverDocInstance();if(u==null)return!1;const c=u.getUnitId();let d;switch(r){case Kp.id:case Zp.id:case Jp.id:case e3.id:case wf.id:case t3.id:{d=IFe(u.getSelfOrHeaderFooterModel(l).getBody().textRuns,r,s);break}case gp.id:case pp.id:{d=n;break}case vp.id:case a7.id:{d={rgb:n};break}case KS.id:{d={rgb:null};break}default:throw new Error(`Unknown command: ${r} in handleInlineFormat`)}const h={id:Oi.id,params:{unitId:c,actions:[],textRanges:s}},f=new Vi,m=Ir.getInstance(),g=new bd;g.reset();for(const v of s){const{startOffset:_,endOffset:C}=v;if(_==null||C==null)continue;const S={dataStream:"",textRuns:[{st:0,ed:C-_,ts:{[wFe[r]]:d}}]},b=_-g.cursor;b!==0&&f.push({t:kt.RETAIN,len:b,segmentId:l}),f.push({t:kt.RETAIN,body:S,len:C-_,segmentId:l}),g.reset(),g.moveCursor(C)}const p=Ma(u,l);return h.params.actions=m.editOp(f.serialize(),p),!!i.syncExecuteCommand(h.id,h.params)},"handler")};function DFe(t){return t!==null&&typeof t=="object"}he(DFe,"isTextDecoration");function IFe(t,e,n){let r=0,i=0;const a=wFe[e];for(;r!==t.length&&i!==n.length;){const{startOffset:o,endOffset:s}=n[i],{st:l,ed:u,ts:c}=t[r];if(s<=l)i++;else if(u<=o)r++;else{if(/bl|it/.test(a))return(c==null?void 0:c[a])===at.TRUE?at.FALSE:at.TRUE;if(/ul|st/.test(a))return DFe(c==null?void 0:c[a])&&(c==null?void 0:c[a]).s===at.TRUE?{s:at.FALSE}:{s:at.TRUE};if(/va/.test(a))return e===wf.id?(c==null?void 0:c[a])===ca.SUBSCRIPT?ca.NORMAL:ca.SUBSCRIPT:(c==null?void 0:c[a])===ca.SUPERSCRIPT?ca.NORMAL:ca.SUPERSCRIPT;r++}}return/bl|it/.test(a)?at.TRUE:/ul|st/.test(a)?{s:at.TRUE}:e===wf.id?ca.SUBSCRIPT:ca.SUPERSCRIPT}he(IFe,"getReverseFormatValueInSelection");const ZS={id:"doc.command.list-operation",type:Se.COMMAND,handler:he((t,e)=>{var n,r,i,a,o,s;const l=t.get(Or),u=t.get(Ce),c=t.get(me);let d=e.listType;const h=u.getCurrentUniverDocInstance(),f=(n=l.getDocRanges())!=null?n:[];if(h==null||f.length===0)return!1;const m=f[0].segmentId,g=(r=h.getSelfOrHeaderFooterModel(m).getBody())==null?void 0:r.paragraphs;if(g==null)return!1;const p=(a=(i=h.getSelfOrHeaderFooterModel(m).getBody())==null?void 0:i.sectionBreaks)!=null?a:[],v=i9(f,g),_=h.getUnitId(),C=v.every(O=>{var $;return(($=O.bullet)==null?void 0:$.listType.indexOf(d))===0});let S=Ie.generateRandomId(6);if(v.length===1){const O=g.indexOf(v[0]),$=g[O-1],B=g[O+1];$&&$.bullet&&$.bullet.listType.indexOf(d)===0?(S=$.bullet.listId,d!==Na.CHECK_LIST&&(d=$.bullet.listType)):B&&B.bullet&&B.bullet.listType.indexOf(d)===0&&(S=B.bullet.listId,d!==Na.CHECK_LIST&&(d=B.bullet.listType))}const b={id:Oi.id,params:{unitId:_,actions:[],textRanges:f}},y=new bd;y.reset();const A=new Vi,w=Ir.getInstance(),P=(o=h.getSnapshot().lists)!=null?o:{},M={...Z0,...P},{defaultTabStop:L=36}=h.getSnapshot().documentStyle;for(const O of v){const{startIndex:$,paragraphStyle:B={},bullet:V}=O,{indentFirstLine:X,snapToGrid:z,indentStart:F}=B,H=M[d].nestingLevel[0].paragraphProperties||{},{hanging:W,indentStart:K}=H,{charSpace:G,gridType:te}=qL($,p)||{charSpace:0,gridType:Zo.LINES},Y=w0(G,L,te,z);A.push({t:kt.RETAIN,len:$-y.cursor,segmentId:m}),A.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[C?{paragraphStyle:{...B,hanging:void 0,indentStart:F?{v:Math.max(0,Oa(F,Y)+Oa(W,Y)-Oa(K,Y))}:void 0},startIndex:0}:{startIndex:0,paragraphStyle:{...B,indentFirstLine:void 0,hanging:W,indentStart:{v:Oa(K,Y)-Oa(W,Y)+Oa(X,Y)+Oa(F,Y)}},bullet:{nestingLevel:(s=V==null?void 0:V.nestingLevel)!=null?s:0,textStyle:{fs:20},listType:d,listId:S}}]},segmentId:m,coverType:go.REPLACE}),y.moveCursorTo($+1)}const k=Ma(h,m);return b.params.actions=w.editOp(A.serialize(),k),!!c.syncExecuteCommand(b.id,b.params)},"handler")},jL={id:"doc.command.change-list-type",type:Se.COMMAND,handler:he((t,e)=>{var n,r,i,a,o,s;const l=t.get(Or),u=t.get(Ce),c=t.get(me),{listType:d}=e,h=u.getCurrentUniverDocInstance(),f=l.getDocRanges();if(h==null||f==null||!f.length)return!1;const{segmentId:m}=f[0],g=(n=l.getDocRanges())!=null?n:[],p=(r=h.getSelfOrHeaderFooterModel(m).getBody())==null?void 0:r.paragraphs;if(p==null)return!1;const v=(a=(i=h.getSelfOrHeaderFooterModel(m).getBody())==null?void 0:i.sectionBreaks)!=null?a:[],_=TFe(f,p),C=h.getUnitId(),S=Ie.generateRandomId(6),b={id:Oi.id,params:{unitId:C,actions:[],textRanges:g}},y=new bd;y.reset();const A=new Vi,w=Ir.getInstance(),P=(o=h.getSnapshot().lists)!=null?o:{},M={...Z0,...P},{defaultTabStop:L=36}=h.getSnapshot().documentStyle;for(const O of _){const{startIndex:$,paragraphStyle:B={},bullet:V}=O,{indentFirstLine:X,snapToGrid:z,indentStart:F}=B,H=M[d].nestingLevel[0].paragraphProperties||{},{hanging:W,indentStart:K}=H,{charSpace:G,gridType:te}=qL($,v)||{charSpace:0,gridType:Zo.LINES},Y=w0(G,L,te,z);A.push({t:kt.RETAIN,len:$-y.cursor,segmentId:m}),A.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...B,indentFirstLine:void 0,hanging:W,indentStart:{v:Oa(K,Y)-Oa(W,Y)+Oa(X,Y)+Oa(F,Y)}},bullet:{nestingLevel:(s=V==null?void 0:V.nestingLevel)!=null?s:0,textStyle:(V==null?void 0:V.listType)===d?V.textStyle:{fs:20},listType:d,listId:S}}]},segmentId:m,coverType:go.REPLACE}),y.moveCursorTo($+1)}const k=Ma(h,m);return b.params.actions=w.editOp(A.serialize(),k),!!c.syncExecuteCommand(b.id,b.params)},"handler")};var LR=(t=>(t[t.increase=1]="increase",t[t.decrease=-1]="decrease",t))(LR||{});const Rq={id:"doc.command.change-list-nesting-level",type:Se.COMMAND,handler:he((t,e)=>{var n,r,i,a,o;if(!e)return!1;const{type:s}=e,l=t.get(Or),u=t.get(Ce),c=t.get(me),d=u.getCurrentUniverDocInstance(),h=l.getActiveTextRange();if(d==null||h==null)return!1;const{segmentId:f}=h,m=(r=(n=d.getBody())==null?void 0:n.tables)!=null?r:[],g=(i=l.getDocRanges())!=null?i:[],p=(a=d.getSelfOrHeaderFooterModel(f).getBody())==null?void 0:a.paragraphs;if(p==null)return!1;const v=zL(h,p),_=d.getUnitId(),C={id:Oi.id,params:{unitId:_,actions:[],textRanges:g}},S=new bd;S.reset();const b=new Vi,y=Ir.getInstance(),A=(o=d.getSnapshot().lists)!=null?o:{},w={...Z0,...A};for(const M of v){const{startIndex:L,paragraphStyle:k={},bullet:O}=M,$=Kke(M,m);if(b.push({t:kt.RETAIN,len:L-S.cursor,segmentId:f}),O){const B=O.listType;let V=w[B].nestingLevel.length-1;$&&(V=Math.min(V,2)),b.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...k},bullet:{...O,nestingLevel:Math.max(Math.min(O.nestingLevel+s,V),0)}}]},segmentId:f,coverType:go.REPLACE})}else b.push({t:kt.RETAIN,len:1});S.moveCursorTo(L+1)}const P=Ma(d,f);return C.params.actions=y.editOp(b.serialize(),P),!!c.syncExecuteCommand(C.id,C.params)},"handler")},$L={id:"doc.command.bullet-list",type:Se.COMMAND,handler:he((t,e)=>{const n=t.get(me);return e!=null&&e.value?n.syncExecuteCommand(jL.id,{listType:e.value}):n.syncExecuteCommand(ZS.id,{listType:Na.BULLET_LIST})},"handler")},Mte={id:"doc.command.check-list",type:Se.COMMAND,handler:he((t,e)=>{const n=t.get(me);return e!=null&&e.value?n.syncExecuteCommand(jL.id,{listType:e.value}):n.syncExecuteCommand(ZS.id,{listType:Na.CHECK_LIST})},"handler")},PFe={id:"doc.command.toggle-check-list",type:Se.COMMAND,handler:he((t,e)=>{var n;if(!e)return!1;const r=t.get(Ce),i=t.get(me),{index:a,segmentId:o}=e,s=r.getCurrentUniverDocInstance();if(s==null)return!1;const l=(n=s.getSelfOrHeaderFooterModel(o).getBody())==null?void 0:n.paragraphs;if(l==null)return!1;const u=l.find(C=>C.startIndex===a),c=s.getUnitId();if(!(u!=null&&u.bullet)||u.bullet.listType.indexOf(Na.CHECK_LIST)===-1)return!1;const d={id:Oi.id,params:{unitId:c,actions:[],textRanges:[],segmentId:o}},h=new bd;h.reset();const f=new Vi,m=Ir.getInstance(),{startIndex:g,paragraphStyle:p={}}=u,v=u.bullet.listType===Na.CHECK_LIST?Na.CHECK_LIST_CHECKED:Na.CHECK_LIST;f.push({t:kt.RETAIN,len:g-h.cursor,segmentId:o}),f.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...u,paragraphStyle:p,startIndex:0,bullet:{...u.bullet,listType:v}}]},coverType:go.REPLACE,segmentId:o}),h.moveCursorTo(g+1);const _=Ma(s,o);return d.params.actions=m.editOp(f.serialize(),_),!!i.syncExecuteCommand(d.id,d.params)},"handler")},WL={id:"doc.command.order-list",type:Se.COMMAND,handler:he((t,e)=>{const n=t.get(me);return e!=null&&e.value?n.syncExecuteCommand(jL.id,{listType:e.value}):n.syncExecuteCommand(ZS.id,{listType:Na.ORDER_LIST})},"handler")},MFe={id:"doc.command.quick-list",type:Se.COMMAND,handler(t,e){var n,r,i,a,o;if(!e)return!1;const s=t.get(Or),l=t.get(Ce),u=t.get(me),c=l.getCurrentUniverDocInstance(),d=s.getActiveTextRange();if(c==null||d==null)return!1;const{segmentId:h}=d,{listType:f,paragraph:m}=e,{paragraphStart:g,paragraphEnd:p}=m,v=new Vi,_=Ir.getInstance(),{defaultTabStop:C=36}=c.getSnapshot().documentStyle,S=(r=(n=c.getSelfOrHeaderFooterModel(h).getBody())==null?void 0:n.sectionBreaks)!=null?r:[],{startIndex:b,paragraphStyle:y={}}=m,{indentFirstLine:A,snapToGrid:w,indentStart:P}=y,M=Z0[f].nestingLevel[0].paragraphProperties||{},{hanging:L,indentStart:k}=M,O=M.textStyle,{charSpace:$,gridType:B}=qL(b,S)||{charSpace:0,gridType:Zo.LINES},V=w0($,C,B,w);let X=Ie.generateRandomId(6);const z=(a=(i=c.getBody())==null?void 0:i.paragraphs)!=null?a:[],F=z.findIndex(te=>te.startIndex===m.startIndex),H=z[F-1],W=z[F+1];H&&H.bullet&&H.bullet.listType.indexOf(f)===0?X=H.bullet.listId:W&&W.bullet&&W.bullet.listType.indexOf(f)===0&&(X=W.bullet.listId);const K={id:Oi.id,params:{unitId:c.getUnitId(),actions:[],textRanges:[{startOffset:g,endOffset:g,collapsed:!0}]}};v.push({t:kt.RETAIN,len:g}),v.push({t:kt.DELETE,len:p-g,line:1}),v.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...y,textStyle:{...y.textStyle,...O},indentFirstLine:void 0,hanging:L,indentStart:{v:Oa(k,V)-Oa(L,V)+Oa(A,V)+Oa(P,V)}},bullet:{...(o=m.bullet)!=null?o:{nestingLevel:0,textStyle:{fs:20}},listType:f,listId:X}}]}});const G=Ma(c,h);return K.params.actions=_.editOp(v.serialize(),G),!!u.syncExecuteCommand(K.id,K.params)}};function zL(t,e){const{startOffset:n,endOffset:r}=t,i=[];let a=-1;for(const o of e){const{startIndex:s}=o;(n>a&&n<=s||r>a&&r<=s||s>=n&&s<=r)&&i.push(o),a=s}return i}he(zL,"getParagraphsInRange");function TFe(t,e){const n=i9(t,e),r=e.indexOf(n[0]),i=e.indexOf(n[n.length-1]);if(n[0].bullet)for(let o=r-1;o>=0;o--){const s=e[o];s.bullet&&s.bullet.listId===n[0].bullet.listId&&n.unshift(s)}const a=n[n.length-1];if(a.bullet)for(let o=i+1;o<e.length;o++){const s=e[o];s.bullet&&s.bullet.listId===a.bullet.listId&&n.push(s)}return n}he(TFe,"getParagraphsRelative");function i9(t,e){const n=[];for(const r of t){const i=zL(r,e);n.push(...i)}return n}he(i9,"getParagraphsInRanges");function qL(t,e){const n=e.sort(K0("startIndex"));for(let r=0;r<n.length;r++){const i=e[r];if(i.startIndex>=t)return i}}he(qL,"findNearestSectionBreak");const nm={id:"doc.command.align-action",type:Se.COMMAND,handler:he((t,e)=>{var n;const r=t.get(Or),i=t.get(Ce),a=t.get(me),{alignType:o}=e,s=i.getCurrentUniverDocInstance();if(s==null)return!1;const l=r.getDocRanges();if(l.length===0)return!1;const u=l[0].segmentId,c=(n=s.getSelfOrHeaderFooterModel(u).getBody())==null?void 0:n.paragraphs;if(c==null)return!1;const d=i9(l,c),h=s.getUnitId(),f=d.every(C=>{var S;return((S=C.paragraphStyle)==null?void 0:S.horizontalAlign)===o}),m={id:Oi.id,params:{unitId:h,actions:[],textRanges:l}},g=new bd;g.reset();const p=new Vi,v=Ir.getInstance();for(const C of d){const{startIndex:S}=C;p.push({t:kt.RETAIN,len:S-g.cursor,segmentId:u});const b={...C.paragraphStyle,horizontalAlign:f?dr.UNSPECIFIED:o};p.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...C,paragraphStyle:b,startIndex:0}]},segmentId:u,coverType:go.REPLACE}),g.moveCursorTo(S+1)}const _=Ma(s,u);return m.params.actions=v.editOp(p.serialize(),_),!!a.syncExecuteCommand(m.id,m.params)},"handler")},YL={id:"doc.command.align-left",type:Se.COMMAND,handler:he(t=>t.get(me).syncExecuteCommand(nm.id,{alignType:dr.LEFT}),"handler")},XL={id:"doc.command.align-center",type:Se.COMMAND,handler:he(t=>t.get(me).syncExecuteCommand(nm.id,{alignType:dr.CENTER}),"handler")},GL={id:"doc.command.align-right",type:Se.COMMAND,handler:he(t=>t.get(me).syncExecuteCommand(nm.id,{alignType:dr.RIGHT}),"handler")},QL={id:"doc.command.align-justify",type:Se.COMMAND,handler:he(t=>t.get(me).syncExecuteCommand(nm.id,{alignType:dr.JUSTIFIED}),"handler")},LFe={id:"doc.command-replace-content",type:Se.COMMAND,handler:he(async(t,e)=>{const{unitId:n,body:r,textRanges:i,segmentId:a="",options:o}=e,s=t.get(Ce),l=t.get(me),u=t.get(Or),c=s.getUniverDocInstance(n),d=c==null?void 0:c.getSnapshot().body,h=u.getCurrentTextRanges();if(c==null||d==null||!Array.isArray(h)||h.length===0)return!1;const f=Lte(n,a,c,d,r);return f.params.textRanges=i,o&&(f.params.options=o),!!l.syncExecuteCommand(f.id,f.params)},"handler")},Tte={id:"doc.command-cover-content",type:Se.COMMAND,handler:he(async(t,e)=>{const{unitId:n,body:r,segmentId:i=""}=e,a=t.get(Ce),o=t.get(me),s=t.get(xn),l=a.getUniverDocInstance(n),u=l==null?void 0:l.getSnapshot().body;if(l==null||u==null)return!1;const c=Lte(n,i,l,u,r);return c.params.noNeedSetTextRange=!0,c.params.noHistory=!0,o.syncExecuteCommand(c.id,c.params),s.clearUndoRedo(n),!0},"handler")};function Lte(t,e,n,r,i){const a={id:Oi.id,params:{unitId:t,actions:[],textRanges:[]}},o=new Vi,s=Ir.getInstance(),l=(r==null?void 0:r.dataStream.length)-2;l>0&&o.push({t:kt.DELETE,len:l,line:0,segmentId:e}),i.dataStream.length>0&&o.push({t:kt.INSERT,body:i,len:i.dataStream.length,line:0,segmentId:e});const u=Ma(n,e);return a.params.actions=s.editOp(o.serialize(),u),a}he(Lte,"getMutationParams");Se.COMMAND;const BBt=he((t,e)=>{const n=t.get(Ce).getUniverDocInstance(e.unitId),r=(n==null?void 0:n.zoomRatio)||1;return{...Ie.deepClone(e),zoomRatio:r}},"SetDocZoomRatioUndoMutationFactory"),Jd={id:"doc.operation.set-zoom-ratio",type:Se.OPERATION,handler:he((t,e)=>{const n=t.get(Ce).getUniverDocInstance(e.unitId);if(!n)return!1;const r=n.getSnapshot();return r.settings==null?r.settings={zoomRatio:e.zoomRatio}:r.settings.zoomRatio=e.zoomRatio,!0},"handler")},xFe={type:Se.COMMAND,id:"doc.command.set-zoom-ratio",handler:he(async(t,e)=>{var n,r,i;const a=t.get(me),o=t.get(xn),s=t.get(Ce);let l=(n=s.getCurrentUniverDocInstance())==null?void 0:n.getUnitId();if(!l)return!1;let u=1;if(e&&(l=(r=e.documentId)!=null?r:l,u=(i=e.zoomRatio)!=null?i:u),!s.getUniverDocInstance(l))return!1;const c={zoomRatio:u,unitId:l},d=BBt(t,c);return a.syncExecuteCommand(Jd.id,c)?(o.pushUndoRedo({unitID:l,undoMutations:[{id:Jd.id,params:d}],redoMutations:[{id:Jd.id,params:c}]}),!0):!1},"handler")},UBt="doc.command.create-table",OFe={id:UBt,type:Se.COMMAND,handler:he(async(t,e)=>{var n,r,i,a,o,s;const{rowCount:l,colCount:u}=e,c=t.get(Or),d=t.get(Ce),h=t.get(me),f=c.getActiveTextRange();if(f==null)return!1;const{segmentId:m,segmentPage:g}=f,p=d.getCurrentUniverDocInstance(),v=p==null?void 0:p.getSelfOrHeaderFooterModel(m).getBody();if(p==null||v==null)return!1;const _=p.getUnitId(),C=y1(t,_),S=C==null?void 0:C.getSkeleton();if(S==null)return!1;const{startOffset:b}=Aa.selection.getInsertSelection(f,v),y=((n=v.paragraphs)!=null?n:[]).find(ne=>ne.startIndex>=b),A=S.findNodeByCharIndex(b,m,g),w=(r=A==null?void 0:A.parent)==null?void 0:r.parent,P=S.findNodeByCharIndex(b-1,m,g),M=P&&P.content!=="\r";if(A==null||w==null)return!1;const L=M||w.isBehindTable,k=new Vi,O=Ir.getInstance(),$=[],B=b+(L?4:3),V=[{startOffset:B,endOffset:B,collapsed:!0}],X={id:Oi.id,params:{unitId:_,actions:[],textRanges:V}};b>0&&k.push({t:kt.RETAIN,len:b,segmentId:m}),L&&k.push({t:kt.INSERT,body:{dataStream:wt.PARAGRAPH,paragraphs:xI(wt.PARAGRAPH,y)},len:1,line:0,segmentId:m});const{dataStream:z,paragraphs:F,sectionBreaks:H}=Jke(l,u),W=(s=(o=(a=(i=A.parent)==null?void 0:i.parent)==null?void 0:a.parent)==null?void 0:o.parent)==null?void 0:s.parent;if(W==null)return!1;const{pageWidth:K,marginLeft:G,marginRight:te}=W,Y=_te(l,u,K-G-te);k.push({t:kt.INSERT,body:{dataStream:z,paragraphs:F,sectionBreaks:H,tables:[{startIndex:0,endIndex:z.length,tableId:Y.tableId}]},len:z.length,line:0,segmentId:m});const ae=Ma(p,m);$.push(O.editOp(k.serialize(),ae));const ie=O.insertOp(["tableSource",Y.tableId],Y);return $.push(ie),X.params.actions=$.reduce((ne,de)=>Ir.compose(ne,de),null),!!h.syncExecuteCommand(X.id,X.params)},"handler")},xte={id:"doc.table.delete-rows",type:Se.COMMAND,handler:he(async t=>{const e=t.get(Or),n=t.get(Ce),r=t.get(me),i=e.getCurrentRectRanges(),a=e.getActiveTextRange(),o=r9(a,i);if(o==null)return!1;const{segmentId:s}=o,l=n.getCurrentUniverDocInstance(),u=l==null?void 0:l.getSelfOrHeaderFooterModel(s).getBody();if(l==null||u==null)return!1;const c=y1(t,l.getUnitId());if(c==null)return!1;const d=c.getViewModel(),h=l==null?void 0:l.getUnitId(),f=new Vi,m=Ir.getInstance(),g=Cte(o,d);if(g==null)return!1;const{offset:p,rowIndexes:v,len:_,tableId:C,cursor:S,selectWholeTable:b}=g;if(b)return r.executeCommand(JS.id);const y=[],A=[{startOffset:S,endOffset:S,collapsed:!0}],w={id:Oi.id,params:{unitId:h,actions:[],textRanges:A}};p>0&&f.push({t:kt.RETAIN,len:p,segmentId:s}),f.push({t:kt.DELETE,len:_,line:0,segmentId:s});const P=Ma(l,s);y.push(m.editOp(f.serialize(),P));for(const M of v.reverse()){const L=m.removeOp(["tableSource",C,"tableRows",M]);y.push(L)}return w.params.actions=y.reduce((M,L)=>Ir.compose(M,L),null),!!r.syncExecuteCommand(w.id,w.params)},"handler")},Ote={id:"doc.table.delete-columns",type:Se.COMMAND,handler:he(async t=>{const e=t.get(Or),n=t.get(Ce),r=t.get(me),i=e.getCurrentRectRanges(),a=e.getActiveTextRange(),o=r9(a,i);if(o==null)return!1;const{segmentId:s}=o,l=n.getCurrentUniverDocInstance(),u=l==null?void 0:l.getSelfOrHeaderFooterModel(s).getBody();if(l==null||u==null)return!1;const c=y1(t,l.getUnitId());if(c==null)return!1;const d=c.getViewModel(),h=l==null?void 0:l.getUnitId(),f=new Vi,m=Ir.getInstance(),g=aFe(o,d);if(g==null)return!1;const{offsets:p,columnIndexes:v,tableId:_,cursor:C,rowCount:S,selectWholeTable:b}=g;if(b)return r.executeCommand(JS.id);const y=[],A=[{startOffset:C,endOffset:C,collapsed:!0}],w={id:Oi.id,params:{unitId:h,actions:[],textRanges:A}};for(const M of p){const{retain:L,delete:k}=M;L>0&&f.push({t:kt.RETAIN,len:L,segmentId:s}),f.push({t:kt.DELETE,len:k,line:0,segmentId:s})}const P=Ma(l,s);y.push(m.editOp(f.serialize(),P)),v.reverse();for(let M=0;M<S;M++)for(const L of v){const k=m.removeOp(["tableSource",_,"tableRows",M,"tableCells",L]);y.push(k)}for(const M of v){const L=m.removeOp(["tableSource",_,"tableColumns",M]);y.push(L)}return w.params.actions=y.reduce((M,L)=>Ir.compose(M,L),null),!!r.syncExecuteCommand(w.id,w.params)},"handler")},JS={id:"doc.table.delete-table",type:Se.COMMAND,handler:he(async t=>{const e=t.get(Or),n=t.get(Ce),r=t.get(me),i=e.getCurrentRectRanges(),a=e.getActiveTextRange(),o=r9(a,i);if(o==null)return!1;const{segmentId:s}=o,l=n.getCurrentUniverDocInstance(),u=l==null?void 0:l.getSelfOrHeaderFooterModel(s).getBody();if(l==null||u==null)return!1;const c=y1(t,l.getUnitId());if(c==null)return!1;const d=c.getViewModel(),h=l==null?void 0:l.getUnitId(),f=new Vi,m=Ir.getInstance(),g=Ste(o,d);if(g==null)return!1;const{offset:p,len:v,tableId:_,cursor:C}=g,S=[],b=[{startOffset:C,endOffset:C,collapsed:!0}],y={id:Oi.id,params:{unitId:h,actions:[],textRanges:b}};p>0&&f.push({t:kt.RETAIN,len:p,segmentId:s}),f.push({t:kt.DELETE,len:v,line:0,segmentId:s});const A=Ma(l,s);S.push(m.editOp(f.serialize(),A));const w=m.removeOp(["tableSource",_]);return S.push(w),y.params.actions=S.reduce((P,M)=>Ir.compose(P,M),null),!!r.syncExecuteCommand(y.id,y.params)},"handler")},Nte="doc.command.table-insert-row",kte="doc.command.table-insert-column",HBt="doc.command.table-insert-row-above",jBt="doc.command.table-insert-row-bellow",$Bt="doc.command.table-insert-column-left",WBt="doc.command.table-insert-column-right",Fte={id:HBt,type:Se.COMMAND,handler:he(async t=>t.get(me).executeCommand(Nte,{position:OL.ABOVE}),"handler")},Vte={id:jBt,type:Se.COMMAND,handler:he(async t=>t.get(me).executeCommand(Nte,{position:OL.BELLOW}),"handler")},Bte={id:$Bt,type:Se.COMMAND,handler:he(async t=>t.get(me).executeCommand(kte,{position:vte.LEFT}),"handler")},Ute={id:WBt,type:Se.COMMAND,handler:he(async t=>t.get(me).executeCommand(kte,{position:vte.RIGHT}),"handler")},NFe={id:Nte,type:Se.COMMAND,handler:he(async(t,e)=>{const{position:n}=e,r=t.get(Or),i=t.get(Ce),a=t.get(me),o=r.getCurrentRectRanges(),s=r.getActiveTextRange(),l=r9(s,o);if(l==null)return!1;const{segmentId:u}=l,c=i.getCurrentUniverDocInstance(),d=c==null?void 0:c.getSelfOrHeaderFooterModel(u).getBody();if(c==null||d==null)return!1;const h=y1(t,c.getUnitId());if(h==null)return!1;const f=h.getViewModel(),m=c==null?void 0:c.getUnitId(),g=new Vi,p=Ir.getInstance(),v=nFe(l,n,f);if(v==null)return!1;const{offset:_,colCount:C,tableId:S,insertRowIndex:b}=v,y=[],A=_+2,w=[{startOffset:A,endOffset:A,collapsed:!0}],P={id:Oi.id,params:{unitId:m,actions:[],textRanges:w}};_>0&&g.push({t:kt.RETAIN,len:_,segmentId:u});const M=eFe(C);g.push({t:kt.INSERT,body:M,len:M.dataStream.length,line:0,segmentId:u});const L=Ma(c,u);y.push(p.editOp(g.serialize(),L));const k=kL(C),O=p.insertOp(["tableSource",S,"tableRows",b],k);return y.push(O),P.params.actions=y.reduce(($,B)=>Ir.compose($,B),null),!!a.syncExecuteCommand(P.id,P.params)},"handler")},zBt={id:kte,type:Se.COMMAND,handler:he(async(t,e)=>{var n,r,i;const{position:a}=e,o=t.get(Or),s=t.get(Ce),l=t.get(me),u=o.getCurrentRectRanges(),c=o.getActiveTextRange(),d=r9(c,u);if(d==null)return!1;const{segmentId:h}=d,f=s.getCurrentUniverDocInstance(),m=f==null?void 0:f.getSelfOrHeaderFooterModel(h).getBody();if(f==null||m==null)return!1;const g=y1(t,f.getUnitId());if(g==null)return!1;const p=g.getViewModel(),v=f==null?void 0:f.getUnitId(),_=new Vi,C=Ir.getInstance(),S=rFe(d,a,p);if(S==null)return!1;const{offsets:b,columnIndex:y,tableId:A,rowCount:w}=S,P=[],M=b[0]+1,L=[{startOffset:M,endOffset:M,collapsed:!0}],k={id:Oi.id,params:{unitId:v,actions:[],textRanges:L}};for(const te of b){_.push({t:kt.RETAIN,len:te,segmentId:h});const Y=tFe();_.push({t:kt.INSERT,body:Y,len:Y.dataStream.length,line:0,segmentId:h})}const O=Ma(f,h);P.push(C.editOp(_.serialize(),O));for(let te=0;te<w;te++){const Y=NL(),ae=C.insertOp(["tableSource",A,"tableRows",te,"tableCells",y],Y);P.push(ae)}const $=f.getSnapshot(),B=$.documentStyle,{marginLeft:V=0,marginRight:X=0}=B,z=((r=(n=B.pageSize)==null?void 0:n.width)!=null?r:800)-V-X,F=(i=$==null?void 0:$.tableSource)==null?void 0:i[A].tableColumns,{newColWidth:H,widths:W}=iFe(z,F,y);for(let te=0;te<W.length;te++){const Y=C.replaceOp(["tableSource",A,"tableColumns",te,"size","width","v"],F[te].size.width.v,W[te]);P.push(Y)}const K=FL(H),G=C.insertOp(["tableSource",A,"tableColumns",y],K);return P.push(G),k.params.actions=P.reduce((te,Y)=>Ir.compose(te,Y),null),!!l.syncExecuteCommand(k.id,k.params)},"handler")},kFe={id:"doc.table.tab-in-table",type:Se.COMMAND,handler:he(async(t,e)=>{const{shift:n}=e,r=t.get(Or),i=r.getActiveTextRange(),a=t.get(me),o=t.get(Ce).getCurrentUniverDocInstance();if(!o)return!1;const s=o.getUnitId(),l=y1(t,s),u=l==null?void 0:l.getSkeleton(),c=u==null?void 0:u.getViewModel().getSelfOrHeaderFooterViewModel(i==null?void 0:i.segmentId);if(c==null||i==null)return!1;let d=null;if(n?d=Cq(c,i,_q.PREV):d=Cq(c,i,_q.NEXT),d){const{startOffset:h,endOffset:f}=d,m=[{startOffset:h,endOffset:f}];return r.replaceTextRanges(m),!0}return n===!1?await a.executeCommand(NFe.id,{position:OL.BELLOW}):!0},"handler")},FFe="COMPONENT_DOC_CREATE_TABLE_CONFIRM",eF="doc.component.create-table-confirm",Hte={id:"doc.operation.create-table",type:Se.COMMAND,handler:he(async t=>{const e=t.get(sn),n=t.get(Il),r=t.get(me),i={rowCount:3,colCount:5},a=he((o,s)=>{i.rowCount=o,i.colCount=s},"handleRowColChange");return await n.open({id:eF,children:{label:{name:FFe,props:{handleRowColChange:a,tableCreateParams:i}}},width:400,title:{title:e.t("toolbar.table.insert")},onConfirm:he(()=>{r.executeCommand(OFe.id,i),n.close(eF)},"onConfirm"),onClose:he(()=>{n.close(eF)},"onClose")}),!0},"handler")},Df={id:"doc.operation.move-cursor",type:Se.OPERATION,handler:he((t,e)=>!!e,"handler")},k0={id:"doc.operation.move-selection",type:Se.OPERATION,handler:he((t,e)=>!!e,"handler")},VFe={id:"doc.operation.select-all",type:Se.COMMAND,handler:he(async t=>{const e=t.get(Ce),n=t.get(Or),r=e.getCurrentUniverDocInstance(),i=n.getActiveTextRange();if(r==null||i==null)return!1;const{segmentId:a}=i,o=r.getSelfOrHeaderFooterModel(a).getSnapshot().body;if(o==null)return!1;const s=[{startOffset:0,endOffset:o.dataStream.length-2}];return n.replaceTextRanges(s,!1),!0},"handler")};var Kc=function(){return Kc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Kc.apply(this,arguments)},qBt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},a9=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=qBt(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(HFe()));return jte(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},Kc({ref:e,className:s},o),a)});function jte(t,e,n,r,i){return E.createElement(t.tag,Kc(Kc({key:e},BFe(t,n,i)),r),(UFe(t,n).children||[]).map(function(a,o){return jte(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}he(jte,"render");function BFe(t,e,n){var r=Kc({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}he(BFe,"replaceRuntimeIdsAndExtInAttrs");function UFe(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?Kc(Kc({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?Kc(Kc({},i),{attrs:Kc(Kc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}he(UFe,"replaceRuntimeIdsInDefs");function HFe(){return Math.random().toString(36).substring(2,8)}he(HFe,"generateShortUuid");a9.displayName="UniverIcon";var YBt={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"}}]},jFe=E.forwardRef(function(t,e){return E.createElement(a9,Object.assign({},t,{id:"align-text-both-single",ref:e,icon:YBt}))});jFe.displayName="AlignTextBothSingle";var XBt={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"}}]},$Fe=E.forwardRef(function(t,e){return E.createElement(a9,Object.assign({},t,{id:"horizontally-single",ref:e,icon:XBt}))});$Fe.displayName="HorizontallySingle";var GBt={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"}}]},WFe=E.forwardRef(function(t,e){return E.createElement(a9,Object.assign({},t,{id:"left-justifying-single",ref:e,icon:GBt}))});WFe.displayName="LeftJustifyingSingle";var QBt={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"}}]},zFe=E.forwardRef(function(t,e){return E.createElement(a9,Object.assign({},t,{id:"right-justifying-single",ref:e,icon:QBt}))});zFe.displayName="RightJustifyingSingle";var KBt={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"}}]},qFe=E.forwardRef(function(t,e){return E.createElement(a9,Object.assign({},t,{id:"todo-list",ref:e,icon:KBt}))});qFe.displayName="TodoList";var xR=(t=>(t[t.page=0]="page",t[t.section=1]="section",t[t.column=2]="column",t[t.line=3]="line",t[t.divide=4]="divide",t[t.glyph=5]="glyph",t))(xR||{});const o6={page:0,section:1,column:2,line:3,divide:4,glyph:5};function KL(t,e){return t.page>e.page?!1:t.page<e.page?!0:t.section>e.section?!1:t.section<e.section?!0:t.column>e.column?!1:t.column<e.column?!0:t.line>e.line?!1:t.line<e.line?!0:t.divide>e.divide?!1:t.divide<e.divide?!0:t.glyph>e.glyph?!1:(t.glyph<e.glyph,!0)}he(KL,"compareNodePositionLogic");function NI(t,e){return KL(t,e)?{start:t,end:e}:{start:e,end:t}}he(NI,"compareNodePosition");function Aq(t){const e=t.length;if(e===0)return;const n=t[0],r=t[e-1],i=t.length===1&&n.collapsed;return{startOffset:n.startOffset,endOffset:r.endOffset,collapsed:i}}he(Aq,"getOneTextSelectionRange");function YFe(t,e,n,r){let i=r,a=r;for(let o=0;o<t.length;o++){const s=t[o].count;o<e&&(i+=s),o<n&&(a+=s)}return{startOffset:i,endOffset:a}}he(YFe,"getOffsetInDivide");function kI(t){const{startX:e,startY:n,endX:r,endY:i}=t,a=[];return a.push({x:e,y:n}),a.push({x:r,y:n}),a.push({x:r,y:i}),a.push({x:e,y:i}),a.push({x:e,y:n}),a}he(kI,"pushToPoints");const XFe=class{constructor(e,n){Kt(this,"_liquid",new pS),Kt(this,"_currentStartState",{page:0,section:0,column:0,line:0,divide:0,glyph:0}),Kt(this,"_currentEndState",{page:0,section:0,column:0,line:0,divide:0,glyph:0}),this._documentOffsetConfig=e,this._docSkeleton=n}getRangePointData(e,n){const r=[],i=[],a=[];if(e==null||n==null)return{borderBoxPointGroup:r,contentBoxPointGroup:i,cursorList:a};if(!this._isValidPosition(e,n))throw new Error(` |
|
|
Invalid positions in NodePositionConvertToCursor, |
|
|
they are not in the same segment page when in header or footer.`);const{start:o,end:s}=NI(e,n);return this._selectionIterator(o,s,(l,u,c,d,h,f)=>{const{lineHeight:m,asc:g,paddingTop:p,marginTop:v,marginBottom:_}=f,{glyphGroup:C,st:S}=h;if(C.length===0)return;const{x:b,y}=this._liquid;let A,w;const P=C[l],M=C[u],L=C[l-1],k=(P==null?void 0:P.left)||0,O=(P==null?void 0:P.width)||0,$=(M==null?void 0:M.left)||0,B=(M==null?void 0:M.width)||0,V=(P==null?void 0:P.glyphType)===Ql.LIST,{startOffset:X,endOffset:z}=YFe(C,l,u,S),F=o.glyph===l&&c?o.isBack:!0,H=s.glyph===u&&d?s.isBack:!1,W=o===s,K=F&&L!=null?L:P;if(l===0&&u===C.length-1)A={startX:b+k+(V?O:0),startY:y,endX:b+$+(H?0:B),endY:y+m-v-_},w={startX:b+k+(V?O:0),startY:y+p+g-K.bBox.ba,endX:b+$+(H?0:B),endY:y+p+g+K.bBox.bd};else{const G=F&&!V;A={startX:b+k+(G?0:O),startY:y,endX:b+$+(H?0:B),endY:y+m-v-_},w={startX:b+k+(G?0:O),startY:y+p+g-K.bBox.ba,endX:b+$+(H?0:B),endY:y+p+g+K.bBox.bd}}r.push(kI(A)),i.push(kI(w)),a.push({startOffset:F?X:X+P.count,endOffset:H?z:z+M.count,collapsed:W})}),{borderBoxPointGroup:r,contentBoxPointGroup:i,cursorList:a}}_isValidPosition(e,n){const{segmentPage:r,pageType:i}=e,{segmentPage:a,pageType:o}=n;return i!==o?!1:i===Lr.HEADER||i===Lr.FOOTER?r===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(e=0,n,r,i){i===n?this._currentStartState[e]=1:this._currentStartState[e]=0,i===r?this._currentEndState[e]=2:this._currentEndState[e]=0}_checkPreviousNodePositionState(e,n=!0){let r=e,i;for(;r>=0;){const a=xR[r];let o;if(n?o=this._currentStartState[a]:o=this._currentEndState[a],o===void 0)return;if(i===void 0&&(i=o),o!==i)return 0;r--}return i}_getSelectionRuler(e,n,r,i,a){let o=0,s=i;const l=xR[e],u=xR[e+1];if(u===null||l===null)return{start_next:o,end_next:s};const c=n[l],d=r[l];this._setNodePositionState(l,c,d,a);const h=this._checkPreviousNodePositionState(e),f=this._checkPreviousNodePositionState(e,!1);return h===1&&(o=n[u]),f===2&&(s=r[u]),{start_next:o,end_next:s}}_selectionIterator(e,n,r){var i,a;const o=this._docSkeleton;if(!o)return[];const{pageType:s,path:l}=e;this._liquid.reset();const u=o.getSkeletonData();if(u==null)return[];const{pages:c,skeHeaders:d,skeFooters:h}=u,{page:f,segmentPage:m}=e,{page:g,segmentPage:p}=n;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:v,pageMarginLeft:_,pageMarginTop:C}=this._documentOffsetConfig,S=s===Lr.BODY||s===Lr.CELL?f:m;for(let y=0;y<S;y++){const A=c[y];this._liquid.translatePage(A,v,_,C)}const b=s===Lr.BODY||s===Lr.CELL?g:p;for(let y=S;y<=b;y++){const A=c[y],{headerId:w,footerId:P,pageWidth:M}=A;let L=A;if(s===Lr.HEADER?L=(i=d.get(w))==null?void 0:i.get(M):s===Lr.FOOTER?L=(a=h.get(P))==null?void 0:a.get(M):s===Lr.CELL&&(L=f_(u,l)),L==null){this._liquid.translatePage(A,v,_,C);continue}const k=L.sections,{start_next:O,end_next:$}=this._getSelectionRuler(o6.page,e,n,k.length-1,s===Lr.BODY||s===Lr.CELL?y:0);switch(this._liquid.translateSave(),s){case Lr.HEADER:this._liquid.translatePagePadding({...L,marginLeft:A.marginLeft});break;case Lr.FOOTER:{const B=A.pageHeight-L.height-L.marginBottom;this._liquid.translate(A.marginLeft,B);break}case Lr.CELL:{this._liquid.translatePagePadding(A);const B=L.parent,V=B.parent,{left:X}=L,{top:z,left:F}=V,{top:H}=B;this._liquid.translate(F+X,z+H),this._liquid.translatePagePadding(L);break}default:this._liquid.translatePagePadding(A);break}for(let B=O;B<=$;B++){const V=k[B],X=V.columns,{start_next:z,end_next:F}=this._getSelectionRuler(o6.section,e,n,X.length-1,B);this._liquid.translateSection(V);for(let H=z;H<=F;H++){const W=X[H],K=W.lines,{start_next:G,end_next:te}=this._getSelectionRuler(o6.column,e,n,K.length-1,H);this._liquid.translateColumn(W);for(let Y=G;Y<=te;Y++){const ae=K[Y],{divides:ie}=ae,{start_next:ne,end_next:de}=this._getSelectionRuler(o6.line,e,n,ie.length-1,Y);this._liquid.translateSave(),this._liquid.translateLine(ae,!0,!1);for(let _e=ne;_e<=de;_e++){const Pe=ie[_e];this._liquid.translateSave(),this._liquid.translateDivide(Pe);const{glyphGroup:De}=Pe,{start_next:Ee,end_next:ye}=this._getSelectionRuler(o6.divide,e,n,De.length-1,_e);let Ve=!1,ke=!1;y===S&&B===O&&H===z&&Y===G&&_e===ne&&(Ve=!0),y===b&&B===$&&H===F&&Y===te&&_e===de&&(ke=!0),r&&r(Ee,ye,Ve,ke,Pe,ae,W,V,L),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(A,v,_,C)}}};he(XFe,"NodePositionConvertToCursor");let hh=XFe;function GFe(t,e){const{path:n}=t,{path:r}=e;if(n.length!==r.length||n.indexOf("cells")===-1)return!1;const i=n.indexOf("skeTables")+1,a=n.indexOf("rows")+1,o=n.indexOf("cells")+1,s=bD(n[i]).tableId,l=bD(r[i]).tableId;if(s!==l)return!1;const u=n[a],c=r[a],d=n[o],h=r[o];return!(u===c&&d===h)}he(GFe,"isValidRectRange");function ZL(t,e){const{path:n}=t,{path:r}=e;return n.indexOf("cells")===-1||r.indexOf("cells")===-1?!1:Ie.diffValue(n,r)}he(ZL,"isInSameTableCell");function k8(t,e){if(ZL(t,e))return KL(t,e);const{path:n}=t,{path:r}=e,i=n[n.length-5],a=r[r.length-5];if(i!==a&&typeof i=="string"&&typeof a=="string"){const c=i.split("#-#")[1],d=a.split("#-#")[1];return+c<+d}const o=n[n.length-3],s=r[r.length-3],l=n[n.length-1],u=r[r.length-1];return o<s?!0:o>s?!1:l<=u}he(k8,"compareNodePositionInTable");function QFe(t){return t.sections[0].columns[0].lines[0].divides[0].glyphGroup[0]}he(QFe,"firstGlyphInCellPage");function KFe(t){const{sections:e}=t,n=e[e.length-1],r=n.columns[n.columns.length-1],i=r.lines[r.lines.length-1],a=i.divides[i.divides.length-1].glyphGroup;return a[a.length-2]}he(KFe,"lastGlyphInCellPage");const ZFe=class{constructor(e,n){Kt(this,"_liquid",new pS),this._documentOffsetConfig=e,this._docSkeleton=n}getRangePointData(e,n){const r=[],i=this._docSkeleton.getSkeletonData();if(i==null)return;const{pages:a}=i,{segmentPage:o,page:s,pageType:l}=e,{segmentPage:u,page:c}=n,d=this._getTableRectRangeInfo(e,n);if(d==null)return;const{tableId:h,startRowIndex:f,startColumnIndex:m,endRowIndex:g,endColumnIndex:p}=d;this._liquid.reset();const{pageLayoutType:v,pageMarginLeft:_,pageMarginTop:C}=this._documentOffsetConfig,S=l===Lr.BODY||l===Lr.CELL?s:o;for(let y=0;y<S;y++){const A=a[y];this._liquid.translatePage(A,v,_,C)}const b=l===Lr.BODY||l===Lr.CELL?c:u;for(let y=S;y<=b;y++){const A=a[y];this._liquid.translatePagePadding(A);const{skeTables:w}=A;let P=null;for(const[k,O]of w.entries())k.startsWith(h)&&(P=O);if(P==null){this._liquid.restorePagePadding(A),this._liquid.translatePage(A,v,_,C);continue}this._liquid.translateSave(),this._liquid.translate(0,P.top);const{x:M,y:L}=this._liquid;for(const k of P.rows)if(k.index>=f&&k.index<=g){const O=k.cells[m],$=k.cells[p],B={startX:M+O.left,startY:L+k.top,endX:M+$.left+$.pageWidth,endY:L+k.top+k.height};r.push(kI(B))}this._liquid.translateRestore(),this._liquid.restorePagePadding(A),this._liquid.translatePage(A,v,_,C)}return{pointGroup:r,startRow:f,startColumn:m,endRow:g,endColumn:p,tableId:h}}getNodePositionGroup(e,n){const r=[],i=k8(e,n),a=i?e:n,o=i?n:e,{segmentPage:s}=a,l=this._getTableRectRangeInfo(a,o);if(l==null)return;const{tableId:u,pages:c,startRowIndex:d,startColumnIndex:h,endRowIndex:f,endColumnIndex:m}=l,g=[];for(const v of c){const{skeTables:_}=v;for(const[C,S]of _.entries())C.startsWith(u)&&g.push(S)}if(g.length===0)return;const p=g[0].rows[0].cells.length;if(h===0&&m===p-1)return r.push({anchor:e,focus:n}),r;for(const v of g)this._collectPositionGroup(v,r,d,f,h,m,s,i);return r}_collectPositionGroup(e,n,r,i,a,o,s,l){for(let u=0;u<e.rows.length;u++){const c=e.rows[u];if(c.index<r)continue;if(c.index>i)break;const d=c.cells[a],h=c.cells[o],f=QFe(d),m=KFe(h);if(f==null||m==null)continue;const g=this._docSkeleton.findPositionByGlyph(f,s),p=this._docSkeleton.findPositionByGlyph(m,s);if(g==null||p==null)continue;const v=l?g:p,_=l?p:g;n.push({anchor:{...v,isBack:!0},focus:{..._,isBack:!0}})}}_getTableRectRangeInfo(e,n){const r=this._docSkeleton.getSkeletonData();if(r==null)return;const{pages:i}=r,{path:a}=e,{path:o}=n,s=f_(r,a),l=f_(r,o);if(s==null||l==null)return;const u=s.segmentId,c=s.parent.index,d=s.parent.cells.indexOf(s),h=(l==null?void 0:l.parent).index,f=(l==null?void 0:l.parent).cells.indexOf(l);return{pages:i,tableId:u,startCell:s,endCell:l,startRowIndex:c,startColumnIndex:d,endRowIndex:h,endColumnIndex:f}}};he(ZFe,"NodePositionConvertToRectRange");let JFe=ZFe;const ZBt="__TestSelectionRange__",JBt="__TestSelectionAnchor__",wle=6,tF=500,eUt=500,wq=3;function F8(t){const e=t[0],n=e[0],r=e[2],{x:i,y:a}=n,{x:o,y:s}=r;return{left:i,top:a,width:o-i,height:s-a}}he(F8,"getAnchorBounding");function o9(t){return t.map(e=>{let n=1/0,r=-1/0,i=1/0,a=-1/0;return e.forEach(o=>{n=Math.min(o.x,n),r=Math.max(o.x,r),a=Math.max(o.y,a),i=Math.min(o.y,i)}),{left:n,right:r,top:i,bottom:a}})}he(o9,"getLineBounding");const eVe=class{constructor(e,n,r,i,a,o=U4,s="",l=-1){Kt(this,"rangeType",v4.TEXT),Kt(this,"_current",!1),Kt(this,"_rangeShape"),Kt(this,"_anchorShape"),Kt(this,"_cursorList",[]),Kt(this,"_anchorBlinkTimer",null),this._scene=e,this._document=n,this._docSkeleton=r,this.anchorNodePosition=i,this.focusNodePosition=a,this.style=o,this._segmentId=s,this._segmentPage=l,this._anchorBlink(),this.refresh()}_anchorBlink(){setTimeout(()=>{this._anchorShape&&this._anchorShape.visible&&this.deactivateStatic()},tF),this._anchorBlinkTimer=setInterval(()=>{this._anchorShape&&this._anchorShape.visible&&(this.activeStatic(),setTimeout(()=>{this.deactivateStatic()},tF))},eUt+tF)}get startOffset(){var e;const{startOffset:n}=(e=Aq(this._cursorList))!=null?e:{},r=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(n==null||r==null)return n;const i=r.dataStream.length-2;return Math.min(i,n)}get endOffset(){var e;const{endOffset:n}=(e=Aq(this._cursorList))!=null?e:{},r=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(n==null||r==null)return n;const i=r.dataStream.length-2;return Math.min(n,i)}get collapsed(){const{startOffset:e,endOffset:n}=this;return e!=null&&e===n}get startNodePosition(){if(this.anchorNodePosition==null)return null;if(this.focusNodePosition==null)return this.anchorNodePosition;const{start:e}=NI(this.anchorNodePosition,this.focusNodePosition);return e}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:e}=NI(this.anchorNodePosition,this.focusNodePosition);return e}get direction(){const{collapsed:e,anchorNodePosition:n,focusNodePosition:r}=this;return e||n==null||r==null?Ws.NONE:KL(n,r)?Ws.FORWARD:Ws.BACKWARD}get segmentId(){return this._segmentId}get segmentPage(){return this._segmentPage}getAbsolutePosition(){const e=this.anchorNodePosition,n=this.focusNodePosition;if(this._isEmpty())return;const r=this._document.getOffsetConfig(),{docsLeft:i,docsTop:a}=r,o=new hh(r,this._docSkeleton);if(this._isCollapsed()){const{contentBoxPointGroup:c,cursorList:d}=o.getRangePointData(e,e);if(this._setCursorList(d),c.length===0)return;const h=F8(c);return{...h,left:h.left+i,top:h.top+a}}const{borderBoxPointGroup:s,cursorList:l}=o.getRangePointData(e,n);if(this._setCursorList(l),s.length===0)return;const u=F8(s);return{...u,left:u.left+i,top:u.top+a}}getAnchor(){return this._anchorShape}activeStatic(){var e,n;(n=this._anchorShape)==null||n.setProps({stroke:((e=this.style)==null?void 0:e.strokeActive)||pu(Gh.black,1)})}deactivateStatic(){var e,n;(n=this._anchorShape)==null||n.setProps({stroke:((e=this.style)==null?void 0:e.stroke)||pu(Gh.black,0)})}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var e,n;(e=this._rangeShape)==null||e.dispose(),this._rangeShape=null,(n=this._anchorShape)==null||n.dispose(),this._anchorShape=null,this._anchorBlinkTimer&&(clearInterval(this._anchorBlinkTimer),this._anchorBlinkTimer=null)}isIntersection(e){const{startOffset:n,endOffset:r}=this,{startOffset:i,endOffset:a}=e;return n==null||r==null||i==null||a==null?!1:n<=a&&r>=i}refresh(){var e,n;const{_document:r,_docSkeleton:i}=this,a=this.anchorNodePosition,o=this.focusNodePosition;if((e=this._anchorShape)==null||e.hide(),(n=this._rangeShape)==null||n.hide(),this._isEmpty())return;const s=r.getOffsetConfig(),{docsLeft:l,docsTop:u}=s,c=new hh(s,i);if(this._isCollapsed()){const{contentBoxPointGroup:f,cursorList:m}=c.getRangePointData(a,a);if(this._setCursorList(m),f.length>0){const g=i.findGlyphByPosition(a);this._createOrUpdateAnchor(f,l,u,g)}return}const{borderBoxPointGroup:d,cursorList:h}=c.getRangePointData(a,o);this._setCursorList(h),d.length>0&&this._createOrUpdateRange(d,l,u)}_isEmpty(){return this.anchorNodePosition==null&&this.focusNodePosition==null}_isCollapsed(){const e=this.anchorNodePosition,n=this.focusNodePosition;if(e!=null&&n==null)return!0;if(e==null||n==null)return!1;const r=Object.keys(o6);for(const i of r){const a=e[i],o=n[i];if(a!==o)return!1}return e.isBack===n.isBack}_createOrUpdateRange(e,n,r){var i;if(this._rangeShape){this._rangeShape.translate(n,r),this._rangeShape.updatePointGroup(e),this._rangeShape.show();return}const a=.3,o=new Z1(ZBt+Ie.generateRandomId(wle),{pointsGroup:e,fill:((i=this.style)==null?void 0:i.fill)||pu(Gh.black,a),left:n,top:r,evented:!1,debounceParentDirty:!1});this._rangeShape=o,this._scene.addObject(o,wq)}_createOrUpdateAnchor(e,n,r,i){var a,o,s;const l=F8(e),{left:u}=l;let{top:c,height:d}=l;const h=14;d<h&&(c-=h-d,d=h);const f=12;let m=u+n;const g=c+r,p=((a=i==null?void 0:i.ts)==null?void 0:a.it)===at.TRUE;if(p&&(m+=d*Math.tan(f*Math.PI/180)/2),this._anchorShape){this._anchorShape.transformByState({left:m,top:g,height:d}),this._anchorShape.show(),p?this._anchorShape.skew(-f,0):this._anchorShape.skew(0,0);return}const v=new ur(JBt+Ie.generateRandomId(wle),{left:m,top:g,height:d,strokeWidth:((o=this.style)==null?void 0:o.strokeWidth)||1.5,stroke:((s=this.style)==null?void 0:s.strokeActive)||pu(Gh.black,1),evented:!1});p&&v.skew(-f,0),this._anchorShape=v,this._scene.addObject(v,wq)}_setCursorList(e){e.length!==0&&(this._cursorList=e)}};he(eVe,"TextRange");let i4=eVe;const tUt="__DocTableRectRange__",nUt=6;function Dq(t,e,n,r,i,a=U4,o="",s=-1){const l=e.getOffsetConfig(),u=new JFe(l,n).getNodePositionGroup(r,i);return(u??[]).map(c=>new nVe(t,e,n,c.anchor,c.focus,a,o,s))}he(Dq,"convertPositionsToRectRanges");const tVe=class{constructor(e,n,r,i,a,o=U4,s="",l=-1){Kt(this,"rangeType",v4.RECT),Kt(this,"_rangeShape"),Kt(this,"_current",!1),Kt(this,"_startRow"),Kt(this,"_startCol"),Kt(this,"_endRow"),Kt(this,"_endCol"),Kt(this,"_tableId"),this._scene=e,this._document=n,this._docSkeleton=r,this.anchorNodePosition=i,this.focusNodePosition=a,this.style=o,this._segmentId=s,this._segmentPage=l,this.refresh()}get startOffset(){const{startNodePosition:e}=this;return this._docSkeleton.findCharIndexByPosition(e)}get endOffset(){const{endNodePosition:e}=this;return this._docSkeleton.findCharIndexByPosition(e)}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 e;const n=(e=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:e[this._tableId],{_startCol:r,_endCol:i}=this;if(n==null)throw new Error("Table is not found.");const{tableColumns:a}=n;return r===0&&i===a.length-1}get spanEntireColumn(){var e;const n=(e=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:e[this._tableId],{_startRow:r,_endRow:i}=this;if(n==null)throw new Error("Table is not found.");const{tableRows:a}=n;return r===0&&i===a.length-1}get spanEntireTable(){return this.spanEntireRow&&this.spanEntireColumn}get startNodePosition(){const{anchorNodePosition:e,focusNodePosition:n}=this;return k8(e,n)?e:n}get endNodePosition(){const{anchorNodePosition:e,focusNodePosition:n}=this;return k8(e,n)?n:e}get direction(){const{anchorNodePosition:e,focusNodePosition:n}=this;return k8(e,n)?Ws.FORWARD:Ws.BACKWARD}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var e;(e=this._rangeShape)==null||e.dispose(),this._rangeShape=null}isIntersection(e){const{startRow:n,startColumn:r,endRow:i,endColumn:a}=this,{startRow:o,startColumn:s,endRow:l,endColumn:u}=e,c={left:r,top:n,right:a,bottom:i},d={left:s,top:o,right:u,bottom:l};return ft.hasIntersectionBetweenTwoRect(c,d)}refresh(){var e;(e=this._rangeShape)==null||e.hide();const{startNodePosition:n,endNodePosition:r,_document:i,_docSkeleton:a}=this,o=i.getOffsetConfig(),{docsLeft:s,docsTop:l}=o,u=new JFe(o,a).getRangePointData(n,r);if(u==null)return;const{pointGroup:c=[],startRow:d,endRow:h,startColumn:f,endColumn:m,tableId:g}=u;(c==null?void 0:c.length)>0&&this._createOrUpdateRange(c,s,l),this._updateTableInfo(d,h,f,m,g)}_updateTableInfo(e,n,r,i,a){this._startRow=e,this._endRow=n,this._startCol=r,this._endCol=i,this._tableId=a}_createOrUpdateRange(e,n,r){var i;if(this._rangeShape){this._rangeShape.translate(n,r),this._rangeShape.updatePointGroup(e),this._rangeShape.show();return}const a=.3,o=new Z1(tUt+Ie.generateRandomId(nUt),{pointsGroup:e,fill:((i=this.style)==null?void 0:i.fill)||pu(Gh.black,a),left:n,top:r,evented:!1,debounceParentDirty:!1});this._rangeShape=o,this._scene.addObject(o,wq)}};he(tVe,"RectRange");let nVe=tVe;function rVe(t,e,n,r,i,a,o,s){const l=i.findNodePositionByCharIndex(t,!0,o,s),u=i.findNodePositionByCharIndex(e,!0,o,s);if(!(l==null||u==null))return new i4(n,r,i,l,u,a,o,s)}he(rVe,"getTextRangeFromCharIndex");function iVe(t,e,n,r,i,a,o,s){const l=i.findNodePositionByCharIndex(t,!0,o,s),u=i.findNodePositionByCharIndex(e,!0,o,s);if(!(l==null||u==null))return new nVe(n,r,i,l,u,a,o,s)}he(iVe,"getRectRangeFromCharIndex");function aVe(t,e,n,r,i,a,o,s){const l=i.findNodePositionByCharIndex(t,!0,o,s),u=i.findNodePositionByCharIndex(e,!0,o,s);if(!(l==null||u==null))return FI(l,u,n,r,i,a,o,s)}he(aVe,"getRangeListFromCharIndex");function FI(t,e,n,r,i,a,o,s){const l=[],u=[],c=[n,r,i,t,e,a,o,s];if(ZL(t,e))return l.push(new i4(...c)),{textRanges:l,rectRanges:u};if(GFe(t,e)){const C=Dq(...c);return u.push(...C),{textRanges:l,rectRanges:u}}const d=i.getViewModel().getSelfOrHeaderFooterViewModel(o),h=i.findCharIndexByPosition(t),f=i.findCharIndexByPosition(e);if(h==null||f==null)return;const m=h<=f?Ws.FORWARD:Ws.BACKWARD,g=Math.min(h,f),p=Math.max(h,f);let v=g,_=p;for(const C of d.children)for(const S of C.children){const{startIndex:b,endIndex:y,children:A}=S,w=A[0];let P=!1;if(w){const{startIndex:M,endIndex:L,children:k}=w;let O=null,$=null;const B=k.find(X=>X.startIndex<=g&&X.endIndex>=g),V=k.find(X=>X.startIndex<=p&&X.endIndex>=p);if(g>M&&g<L)O=i.findNodePositionByCharIndex(B.startIndex+2,!0,o,s),$=i.findNodePositionByCharIndex(L-4,!0,o,s),v=L+1;else if(p>M&&p<L)O=i.findNodePositionByCharIndex(M+3,!0,o,s),$=i.findNodePositionByCharIndex(V.endIndex-3,!0,o,s),_=M-1,P=!0;else if(M>g&&L<p){if(O=i.findNodePositionByCharIndex(M+3,!0,o,s),$=i.findNodePositionByCharIndex(L-4,!0,o,s),v<=M-1){const X=i.findNodePositionByCharIndex(v,!0,o,s),z=i.findNodePositionByCharIndex(M-1,!1,o,s),F=m===Ws.FORWARD?X:z,H=m===Ws.FORWARD?z:X;l.push(new i4(n,r,i,F,H,a,o,s))}v=L+1}if(O&&$){const X=m===Ws.FORWARD?O:$,z=m===Ws.FORWARD?$:O;u.push(...Dq(n,r,i,X,z,a,o,s))}}if(_>=b&&_<=y||P){const M=i.findNodePositionByCharIndex(v,!0,o,s),L=i.findNodePositionByCharIndex(_,!P,o,s),k=m===Ws.FORWARD?M:L,O=m===Ws.FORWARD?L:M;if(u.length&&Ie.diffValue(k,O))continue;l.push(new i4(n,r,i,k,O,a,o,s))}}return{textRanges:l,rectRanges:u}}he(FI,"getRangeListFromSelection");function $te(t){const e=t==null?void 0:t.getCanvasElement();if(!e)return{left:0,top:0};const{top:n,left:r}=i9e(e);return{left:r,top:n}}he($te,"getCanvasOffsetByEngine");function Iq(t){var e;const n=(e=t.parent)==null?void 0:e.parent,r=n==null?void 0:n.parent;if(n==null||r==null)return;const{paragraphIndex:i}=n,a=r.lines.filter(u=>u.paragraphIndex===i);let o=-1,s="",l=!1;for(const u of a)for(const c of u.divides)for(const d of c.glyphGroup)l||(o+=d.count),d===t&&(l=!0),s+=d.count>0?d.content:"";return{st:a[0].st,ed:i,content:s,nodeIndex:o}}he(Iq,"getParagraphInfoByGlyph");function VI(t){const{startOffset:e,endOffset:n,collapsed:r,rangeType:i,startNodePosition:a,endNodePosition:o,direction:s,segmentId:l,segmentPage:u}=t;return{startOffset:e,endOffset:n,collapsed:r,rangeType:i,startNodePosition:a,endNodePosition:o,direction:s,segmentId:l,segmentPage:u,isActive:t.isActive()}}he(VI,"serializeTextRange");function oVe(t){const e=VI(t),{startRow:n,startColumn:r,endRow:i,endColumn:a,tableId:o,spanEntireRow:s,spanEntireColumn:l,spanEntireTable:u}=t;return{...e,startRow:n,startColumn:r,endRow:i,endColumn:a,tableId:o,spanEntireRow:s,spanEntireColumn:l,spanEntireTable:u}}he(oVe,"serializeRectRange");var rUt=Object.defineProperty,iUt=Object.getOwnPropertyDescriptor,aUt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?iUt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&rUt(e,n,i),i},"__decorateClass$o"),nF=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$o"),rF;let Ms=(rF=class extends Da{constructor(t,e,n,r){super(),Kt(this,"_onInputBefore$",new Zt),Kt(this,"onInputBefore$",this._onInputBefore$.asObservable()),Kt(this,"_onKeydown$",new Pn(null)),Kt(this,"onKeydown$",this._onKeydown$.asObservable()),Kt(this,"_onInput$",new Pn(null)),Kt(this,"onInput$",this._onInput$.asObservable()),Kt(this,"_onCompositionstart$",new Pn(null)),Kt(this,"onCompositionstart$",this._onCompositionstart$.asObservable()),Kt(this,"_onCompositionupdate$",new Pn(null)),Kt(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable()),Kt(this,"_onCompositionend$",new Pn(null)),Kt(this,"onCompositionend$",this._onCompositionend$.asObservable()),Kt(this,"_onSelectionStart$",new Pn(null)),Kt(this,"onSelectionStart$",this._onSelectionStart$.asObservable()),Kt(this,"_onPaste$",new Zt),Kt(this,"onPaste$",this._onPaste$.asObservable()),Kt(this,"_textSelectionInner$",new Pn(null)),Kt(this,"textSelectionInner$",this._textSelectionInner$.asObservable()),Kt(this,"_onFocus$",new Zt),Kt(this,"onFocus$",this._onFocus$.asObservable()),Kt(this,"_onBlur$",new Zt),Kt(this,"onBlur$",this._onBlur$.asObservable()),Kt(this,"_onPointerDown$",new Zt),Kt(this,"onPointerDown$",this._onPointerDown$.asObservable()),Kt(this,"_container"),Kt(this,"_inputParent"),Kt(this,"_input"),Kt(this,"_scrollTimers",[]),Kt(this,"_rangeList",[]),Kt(this,"_rangeListCache",[]),Kt(this,"_rectRangeList",[]),Kt(this,"_rectRangeListCache",[]),Kt(this,"_anchorNodePosition",null),Kt(this,"_focusNodePosition",null),Kt(this,"_currentSegmentId",""),Kt(this,"_currentSegmentPage",-1),Kt(this,"_selectionStyle",U4),Kt(this,"_viewPortObserverMap",new Map),Kt(this,"_isIMEInputApply",!1),Kt(this,"_scenePointerMoveSubs",[]),Kt(this,"_scenePointerUpSubs",[]),Kt(this,"_editorFocusing",!0),this._context=t,this._layoutService=e,this._logService=n,this._docSkeletonManagerService=r,this._initDOM(),this._registerContainer(),this._setSystemHighlightColorToStyle()}get activeViewPort(){return this._context.scene.getViewports()[0]}setSegment(t){this._currentSegmentId=t}getSegment(){return this._currentSegmentId}setSegmentPage(t){this._currentSegmentPage=t}getSegmentPage(){return this._currentSegmentPage}_setRangeStyle(t=U4){this._selectionStyle=t}addDocRanges(t,e=!0,n){const{_currentSegmentId:r,_currentSegmentPage:i,_selectionStyle:a}=this,{scene:o,mainComponent:s}=this._context,l=s,u=this._docSkeletonManagerService.getSkeleton();for(const c of t){const{startOffset:d,endOffset:h,rangeType:f}=c;if(f===v4.RECT){const m=iVe(d,h,o,l,u,a,r,i);m&&this._addRectRanges([m])}else if(f===v4.TEXT){const m=rVe(d,h,o,l,u,a,r,i);m&&this._addTextRange(m)}else{const m=aVe(d,h,o,l,u,a,r,i);if(m==null)continue;const{textRanges:g,rectRanges:p}=m;for(const v of g)this._addTextRange(v);this._addRectRanges(p)}}this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:r,segmentPage:i,style:a,isEditing:e,options:n}),this._updateInputPosition(n==null?void 0:n.forceFocus)}setCursorManually(t,e){const n=this._findNodeByCoord(t,e,{strict:!0,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),r=this._getNodePosition(n);if(r==null){this._removeAllRanges();return}(n==null?void 0:n.node.streamType)===wt.PARAGRAPH&&(r.isBack=!0),this._createTextRangeByAnchorPosition(r),this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1})}sync(){this._updateInputPosition()}activate(t,e,n=!1){const r=this._input===document.activeElement;this._container.style.left=`${t}px`,this._container.style.top=`${e}px`,this._container.style.zIndex="1000",(r||n)&&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(t){const{offsetX:e,offsetY:n}=t,r=this._findNodeByCoord(e,n,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(r==null||r.node==null)return;const i=Iq(r.node);if(i==null)return;const{content:a,st:o,nodeIndex:s}=i;if(s===-1||Intl.Segmenter==null)return;const l=new Intl.Segmenter(void 0,{granularity:"word"}).segment(a);let u=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;for(const{segment:d,index:h,isWordLike:f}of l)if(h<=s&&s<h+d.length&&f){u=h+o,c=h+o+d.length;break}if(Number.isFinite(u)&&Number.isFinite(c)){this.removeAllRanges();const d=[{startOffset:u,endOffset:c}];this.addDocRanges(d,!1,{forceFocus:!0})}}__handleTripleClick(t){const{offsetX:e,offsetY:n}=t,r=this._findNodeByCoord(e,n,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(r==null||r.node==null)return;const i=Iq(r.node);if(i==null)return;this.removeAllRanges();const{st:a,ed:o}=i,s=[{startOffset:a,endOffset:o}];this.addDocRanges(s,!1,{forceFocus:!0})}__onPointDown(t){var e,n;this._editorFocusing=!0;const{scene:r,mainComponent:i}=this._context,a=this._docSkeletonManagerService.getSkeleton(),{offsetX:o,offsetY:s}=t,l=this._findNodeByCoord(o,s,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),u=this._getNodePosition(l);if(u==null||l==null){this._removeAllRanges();return}(l==null?void 0:l.node.streamType)===wt.PARAGRAPH&&(u.isBack=!0);const c=this._textSelectionInner$.value;if(l&&t.button===2&&c){const p=a.findCharIndexByPosition(u);if(typeof p=="number"&&c.textRanges.some(v=>v.startOffset<=p&&v.endOffset>p)||typeof p=="number"&&c.rectRanges.some(v=>v.startOffset<=p&&v.endOffset>=p))return}const{segmentId:d,segmentPage:h}=l;d&&this._currentSegmentId&&d!==this._currentSegmentId&&this.setSegment(d),d&&h!==this._currentSegmentPage&&this.setSegmentPage(h),this._anchorNodePosition=u,t.shiftKey&&this._getActiveRangeInstance()?this._updateActiveRangePosition(u):!t.ctrlKey&&!this._isEmpty()&&this._removeAllRanges(),r.disableObjectsEvent();const f=df.create(r);this._scrollTimers.push(f),f.startScroll(o,s),this._onSelectionStart$.next((e=this._getActiveRangeInstance())==null?void 0:e.startNodePosition),(n=r.getTransformer())==null||n.clearSelectedObjects();let m=o,g=s;this._scenePointerMoveSubs.push(r.onPointerMove$.subscribeEvent(p=>{const{offsetX:v,offsetY:_}=p;r.setCursor(Yn.TEXT),!(Math.sqrt((v-m)**2+(_-g)**2)<3)&&(this._moving(v,_),f.scrolling(v,_,()=>{this._moving(v,_)}),m=v,g=_)})),this._scenePointerUpSubs.push(r.onPointerUp$.subscribeEvent(()=>{if([...this._scenePointerMoveSubs,...this._scenePointerUpSubs].forEach(v=>{v.unsubscribe()}),r.enableObjectsEvent(),this._anchorNodePosition&&!this._focusNodePosition){const v=new i4(r,i,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)this._addTextRange(v);this._addRectRanges(this._rectRangeListCache),this._rangeListCache=[],this._rectRangeListCache=[]}this._anchorNodePosition=null,this._focusNodePosition=null;const p={textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1};this._textSelectionInner$.next(p),this._scrollTimers.forEach(v=>{v==null||v.dispose()}),this._scrollTimers=[],this._updateInputPosition(!0)}))}removeAllRanges(){this._removeAllRanges(),this.deactivate()}getActiveTextRange(){return this._getActiveRangeInstance()}_setSystemHighlightColorToStyle(){const{r:t,g:e,b:n,a:r}=j7e(),i={strokeWidth:1.5,stroke:"rgba(0, 0, 0, 0)",strokeActive:"rgba(0, 0, 0, 1)",fill:`rgba(${t}, ${e}, ${n}, ${r??.3})`};this._setRangeStyle(i)}_getAllTextRanges(){return this._rangeList.map(VI)}_getAllRectRanges(){return this._rectRangeList.map(oVe)}_getActiveRange(){const t=this._rangeList.find(r=>r.isActive());if(t==null)return null;const{startOffset:e,endOffset:n}=t;return e==null||n==null?null:VI(t)}_getActiveRangeInstance(){return this._rangeList.find(t=>t.isActive())}dispose(){super.dispose(),this._detachEvent(),this._removeAllRanges(),this._container.remove()}_initDOM(){const{unitId:t}=this._context,e=document.createElement("div");e.style.position="fixed",e.style.left="0px",e.style.top="0px",e.id=`univer-doc-selection-container-${t}`;const n=document.createElement("div"),r=document.createElement("div");n.appendChild(r),e.appendChild(n),this._container=e,this._inputParent=n,this._input=r,this._initInput(),this._initInputEvents(),document.body.appendChild(e)}_registerContainer(){this.disposeWithMe(this._layoutService.registerContainerElement(this._container))}_initInput(){this._inputParent.style.cssText=` |
|
|
position:absolute; |
|
|
height:1px; |
|
|
width:1px; |
|
|
overflow: hidden; |
|
|
`,this._input.contentEditable="true",this._input.classList.add("univer-editor"),this._input.style.cssText=` |
|
|
position: absolute; |
|
|
overflow: hidden; |
|
|
opacity: 1; |
|
|
background: #000; |
|
|
color: transparent; |
|
|
outline: none; |
|
|
z-index: -2; |
|
|
caret-color: transparent; |
|
|
white-space: pre-wrap; |
|
|
user-select: text; |
|
|
`}_getNodePosition(t){if(t==null)return;const{node:e,ratioX:n,segmentPage:r}=t,i=this._docSkeletonManagerService.getSkeleton().findPositionByGlyph(e,r);if(i==null)return;const a=n<.5;return{...i,isBack:a}}_interactTextRanges(t){const e=[];for(const n of this._rangeList){if(t.some(r=>r.isIntersection(n))){n.dispose();continue}e.push(n)}this._rangeList=e}_interactRectRanges(t){const e=[];for(const n of this._rectRangeList){if(t.some(r=>r.isIntersection(n))){n.dispose();continue}e.push(n)}this._rectRangeList=e}_removeAllRanges(){this._removeAllTextRanges(),this._removeAllRectRanges()}_removeAllCacheRanges(){this._rangeListCache.forEach(t=>{t.dispose()}),this._rectRangeListCache.forEach(t=>{t.dispose()}),this._rangeListCache=[],this._rectRangeListCache=[]}_removeAllTextRanges(){this._rangeList.forEach(t=>{t.dispose()}),this._rangeList=[]}_removeAllRectRanges(){this._rectRangeList.forEach(t=>{t.dispose()}),this._rectRangeList=[]}_deactivateAllTextRanges(){this._rangeList.forEach(t=>{t.deactivate()})}_deactivateAllRectRanges(){this._rectRangeList.forEach(t=>{t.deactivate()})}_addTextRangesToCache(t){this._rangeListCache.push(...t)}_addTextRange(t){this._deactivateAllTextRanges(),t.activate(),this._rangeList.push(t)}_addRectRangesToCache(t){this._rectRangeListCache.push(...t)}_addRectRanges(t){t.length!==0&&(this._deactivateAllRectRanges(),t[t.length-1].activate(),this._rectRangeList.push(...t))}_createTextRangeByAnchorPosition(t){this._removeAllRanges();const{scene:e,mainComponent:n}=this._context,r=this._docSkeletonManagerService.getSkeleton(),i=new i4(e,n,r,t,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(i)}_updateActiveRangePosition(t){const e=this._getActiveRangeInstance();if(e==null||e.anchorNodePosition==null){this._logService.error("[DocSelectionRenderService] _updateActiveRangeFocusPosition: active range has no anchor");return}this._removeAllRanges(),this._anchorNodePosition=e.anchorNodePosition,this._focusNodePosition=t;const{scene:n,mainComponent:r}=this._context,i=this._docSkeletonManagerService.getSkeleton(),{_anchorNodePosition:a,_focusNodePosition:o,_selectionStyle:s,_currentSegmentId:l,_currentSegmentPage:u}=this;if(a==null||o==null||r==null)return;const c=FI(a,o,n,r,i,s,l,u);if(c==null)return;const{textRanges:d,rectRanges:h}=c;this._addTextRangesToCache(d),this._addRectRangesToCache(h),this.deactivate()}_isEmpty(){return this._rangeList.length===0&&this._rectRangeList.length===0}_getCanvasOffset(){var t;const e=(t=this._context.scene)==null?void 0:t.getEngine();return $te(e)}_updateInputPosition(t=!1){const e=this._getActiveRangeInstance(),n=e==null?void 0:e.getAnchor();if(!n||n&&!n.visible||this.activeViewPort==null){this.focus();return}const{left:r,top:i}=n,a=this.activeViewPort.getAbsoluteVector(cn.FromArray([r,i])),{x:o,y:s}=a;let{left:l,top:u}=this._getCanvasOffset();l+=o,u+=s,this.activate(l,u,t)}_moving(t,e){var n,r;const i=this._findNodeByCoord(t,e,{strict:!0,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),a=this._getNodePosition(i);if(!a||i==null)return;const o=i==null?void 0:i.node.parent,s=o==null?void 0:o.glyphGroup[o.glyphGroup.indexOf(i.node)+1];(i==null?void 0:i.node.streamType)===wt.PARAGRAPH&&(s==null?void 0:s.streamType)===wt.SECTION_BREAK&&(a.isBack=!0),this._focusNodePosition=a,this._removeAllCacheRanges();const{_anchorNodePosition:l,_focusNodePosition:u,_selectionStyle:c,_currentSegmentId:d,_currentSegmentPage:h}=this,{scene:f,mainComponent:m}=this._context,g=this._docSkeletonManagerService.getSkeleton();if(l==null||u==null||m==null)return;const p=FI(l,u,f,m,g,c,d,h);if(p==null)return;const{textRanges:v,rectRanges:_}=p;this._rangeList.length>0&&v.length>0&&this._interactTextRanges(v),this._rectRangeList.length>0&&_.length>0&&this._interactRectRanges(_),this._addTextRangesToCache(v),this._addRectRangesToCache(_),this.deactivate(),(r=(n=this._context.scene)==null?void 0:n.getEngine())==null||r.setRemainCapture()}__attachScrollEvent(){const t=this.activeViewPort;if(!t)return;const{unitId:e}=this._context;if(this._viewPortObserverMap.has(e))return;const n=t.onScrollAfter$.subscribeEvent(i=>{if(!i.viewport)return;const a=this._getActiveRangeInstance();a==null||a.activeStatic()}),r=t.onScrollEnd$.subscribeEvent(i=>{const a=i.viewport;if(!a)return;const o=a.getBounding(),s=this._getActiveRangeInstance(),l=s==null?void 0:s.getAnchor();if(!(!l||l&&!l.visible)){if(o){const{left:u,top:c,right:d,bottom:h}=o.viewBound;if(l.left<u||l.left>d||l.top<c||l.top>h){s==null||s.deactivateStatic();return}}this._updateInputPosition()}});this._viewPortObserverMap.set(e,{scrollBefore:n,scrollStop:r})}_initInputEvents(){this.disposeWithMe(su(this._input,"keydown").subscribe(t=>{this._isIMEInputApply||this._eventHandle(t,e=>{this._onKeydown$.next(e)})})),this.disposeWithMe(su(this._input,"input").subscribe(t=>{if(!(t.inputType==="historyUndo"||t.inputType==="historyRedo")){if(this._rectRangeList.length>0)return t.stopPropagation(),t.preventDefault();this._isIMEInputApply||this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onInput$.next(e)})}})),this.disposeWithMe(su(this._input,"compositionstart").subscribe(t=>{if(this._rectRangeList.length>0)return t.stopPropagation(),t.preventDefault();this._isIMEInputApply=!0,this._eventHandle(t,e=>{this._onCompositionstart$.next(e)})})),this.disposeWithMe(su(this._input,"compositionend").subscribe(t=>{this._isIMEInputApply=!1,this._eventHandle(t,e=>{this._onCompositionend$.next(e)})})),this.disposeWithMe(su(this._input,"compositionupdate").subscribe(t=>{this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onCompositionupdate$.next(e)})})),this.disposeWithMe(su(this._input,"paste").subscribe(t=>{this._eventHandle(t,e=>{this._onPaste$.next(e)})})),this.disposeWithMe(su(this._input,"focus").subscribe(t=>{this._eventHandle(t,e=>{this._onFocus$.next(e)})})),this.disposeWithMe(su(this._input,"pointerdown").subscribe(t=>{this._eventHandle(t,()=>{this._onBlur$.next()})})),this.disposeWithMe(su(this._input,"blur").subscribe(t=>{this._eventHandle(t,e=>{this._onBlur$.next(e)})}))}_eventHandle(t,e){const n=this._input.textContent||"";this._input.innerHTML="";const r=this._getActiveRange(),i=this._getAllTextRanges();e({event:t,content:n,activeRange:r,rangeList:i})}_getTransformCoordForDocumentOffset(t,e){const n=this._context.mainComponent,{documentTransform:r}=n.getOffsetConfig();if(this.activeViewPort==null||r==null)return;const i=this.activeViewPort.transformVector2SceneCoord(cn.FromArray([t,e]));if(i)return r.clone().invert().applyPoint(i)}_findNodeByCoord(t,e,n){const r=this._getTransformCoordForDocumentOffset(t,e);if(r==null)return;const i=this._context.mainComponent,a=this._docSkeletonManagerService.getSkeleton(),{pageLayoutType:o=cc.VERTICAL,pageMarginLeft:s,pageMarginTop:l}=i.getOffsetConfig();return a.findNodeByCoord(r,o,s,l,n)}_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()}},he(rF,"DocSelectionRenderService"),rF);Ms=aUt([nF(1,Os),nF(2,Ra),nF(3,se(zi))],Ms);const sVe="COMPONENT_DOC_HEADER_FOOTER_PANEL";var lVe={exports:{}},JL={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var oUt=Re,sUt=Symbol.for("react.element"),lUt=Symbol.for("react.fragment"),uUt=Object.prototype.hasOwnProperty,cUt=oUt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dUt={key:!0,ref:!0,__self:!0,__source:!0};function Wte(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)uUt.call(e,r)&&!dUt.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:sUt,type:t,key:a,ref:o,props:i,_owner:cUt.current}}he(Wte,"q");JL.Fragment=lUt;JL.jsx=Wte;JL.jsxs=Wte;lVe.exports=JL;var qn=lVe.exports;const hUt="univer-panel",fUt="univer-options-section",mUt="univer-options-form-item",gUt="univer-options-input",pUt="univer-options-margin-setting",Xu={panel:hUt,optionsSection:fUt,optionsFormItem:mUt,optionsInput:gUt,optionsMarginSetting:pUt},vUt=he(t=>{const e=Ne(sn),n=Ne(Ce),r=Ne(Sr),i=Ne(me),a=Ne(Or),{unitId:o}=t,s=r.getRenderById(o).with(Ms),[l,u]=E.useState({}),c=he((f,m)=>{var g;u(w=>({...w,[m]:f?at.TRUE:at.FALSE}));const p=n.getUniverDocInstance(o),v=p==null?void 0:p.getSnapshot().documentStyle,_=(g=r.getRenderById(o))==null?void 0:g.with(zi),C=_==null?void 0:_.getViewModel();if(v==null||C==null)return;const S=C.getEditArea();let b=!1;const y=s.getSegmentPage();let A=!1;if(m==="useFirstPageHeaderFooter"&&f===!0&&((S===Ya.HEADER&&!v.firstPageHeaderId||S===Ya.FOOTER&&!v.firstPageFooterId)&&(b=!0),b&&y===0&&(A=!0)),m==="evenAndOddHeaders"&&f===!0&&((S===Ya.HEADER&&!v.evenPageHeaderId||S===Ya.FOOTER&&!v.evenPageFooterId)&&(b=!0),b&&y%2===1&&(A=!0)),b){const w=Ie.generateRandomId(6);A&&s.setSegment(w),i.executeCommand(NR,{unitId:o,segmentId:w,headerFooterProps:{[m]:f?at.TRUE:at.FALSE}})}else i.executeCommand(NR,{unitId:o,headerFooterProps:{[m]:f?at.TRUE:at.FALSE}})},"handleCheckboxChange"),d=he(async(f,m)=>{u(g=>({...g,[m]:f})),await i.executeCommand(NR,{unitId:o,headerFooterProps:{[m]:f}}),s.removeAllRanges(),s.blur()},"handleMarginChange"),h=he(()=>{var f;const m=r.getRenderById(o);if(m==null)return;const{scene:g}=m,p=g.getTransformerByCreate(),v=m.with(zi),_=v==null?void 0:v.getSkeleton(),C=v==null?void 0:v.getViewModel(),S=r.getRenderById(o);S==null||C==null||_==null||(a.replaceTextRanges([]),p.clearSelectedObjects(),s.setSegment(""),s.setSegmentPage(-1),C.setEditArea(Ya.BODY),_.calculate(),(f=S.mainComponent)==null||f.makeDirty(!0))},"closeHeaderFooter");return E.useEffect(()=>{const f=n.getUniverDocInstance(o),m=f==null?void 0:f.getSnapshot().documentStyle;if(m){const{marginHeader:g=0,marginFooter:p=0,useFirstPageHeaderFooter:v=at.FALSE,evenAndOddHeaders:_=at.FALSE}=m;u({marginHeader:g,marginFooter:p,useFirstPageHeaderFooter:v,evenAndOddHeaders:_})}},[o]),qn.jsxs("div",{className:Xu.options,children:[qn.jsxs("div",{className:Xu.optionsSection,children:[qn.jsx("div",{className:Xu.optionsFormItem,children:qn.jsx(tp,{checked:l.useFirstPageHeaderFooter===at.TRUE,onChange:he(f=>{c(f,"useFirstPageHeaderFooter")},"onChange"),children:e.t("headerFooter.firstPageCheckBox")})}),qn.jsx("div",{className:Xu.optionsFormItem,children:qn.jsx(tp,{checked:l.evenAndOddHeaders===at.TRUE,onChange:he(f=>{c(f,"evenAndOddHeaders")},"onChange"),children:e.t("headerFooter.oddEvenCheckBox")})})]}),qn.jsxs("div",{className:hr(Xu.optionsSection,Xu.optionsMarginSetting),children:[qn.jsxs("div",{className:Xu.optionsMarginItem,children:[qn.jsx("span",{children:e.t("headerFooter.headerTopMargin")}),qn.jsx(uh,{min:0,max:200,precision:1,value:l.marginHeader,onChange:he(f=>{d(f,"marginHeader")},"onChange"),className:Xu.optionsInput})]}),qn.jsxs("div",{className:Xu.optionsMarginItem,children:[qn.jsx("span",{children:e.t("headerFooter.footerBottomMargin")}),qn.jsx(uh,{min:0,max:200,precision:1,value:l.marginFooter,onChange:he(f=>{d(f,"marginFooter")},"onChange"),className:Xu.optionsInput})]})]}),qn.jsx("div",{className:Xu.optionsSection,children:qn.jsx(fa,{onClick:h,children:e.t("headerFooter.closeHeaderFooter")})})]})},"DocHeaderFooterOptions"),_Ut=he(()=>{var t;const e=Ne(sn),n=Ne(Sr),r=Ne(Ce).getCurrentUniverDocInstance().getUnitId(),i=((t=n.getRenderById(r))==null?void 0:t.with(zi)).getViewModel(),[a,o]=E.useState(!0);return E.useEffect(()=>{const s=i.getEditArea();o(s!==Ya.BODY);const l=i.editAreaChange$.subscribe(u=>{u!=null&&o(u!==Ya.BODY)});return()=>{l.unsubscribe()}},[]),qn.jsx("div",{className:Xu.panel,children:a?qn.jsx(vUt,{unitId:r}):qn.jsx("div",{className:Xu.panelDisableText,children:e.t("headerFooter.disableText")})})},"DocHeaderFooterPanel"),Dle=18,Ile=200,iF=6,CUt=4;function uVe(t,e){let{radius:n,width:r,height:i}=e;n=n??0,r=r??30,i=i??30;let a=0;a=Math.min(n,r/2,i/2),t.beginPath(),t.moveTo(0,0),t.lineTo(r,0),t.lineTo(r,i-a),t.arc(r-a,i-a,a,0,Math.PI/2,!1),t.lineTo(0,i),t.lineTo(0,0),t.closePath(),e.fill&&(t.save(),t.fillStyle=e.fill,e.fillRule==="evenodd"?t.fill("evenodd"):t.fill(),t.restore())}he(uVe,"drawBubble");const cVe=class dVe extends Ed{constructor(e,n){super(e,n),Kt(this,"color"),Kt(this,"text"),this.color=n==null?void 0:n.color,this.text=n==null?void 0:n.text}static drawWith(e,n){const{text:r,color:i}=n;e.save(),e.font="13px Source Han Sans CN";const a=e.measureText(r).width,o=Math.min(a+2*iF,Ile);uVe(e,{height:Dle,width:o,radius:4,fill:i}),e.fillStyle="rgba(58, 96, 247, 1)";const s=iF,l=Dle-CUt,u=Ile-2*iF;if(a>u){let c="",d=0;for(const h of r){const f=e.measureText(h).width;if(d+f<=u-e.measureText("...").width)c+=h,d+=f;else{c+="...";break}}e.fillText(c,s,l)}else e.fillText(r,s,l);e.restore()}_draw(e){dVe.drawWith(e,this)}};he(cVe,"TextBubbleShape");let Ple=cVe;var SUt=Object.defineProperty,bUt=Object.getOwnPropertyDescriptor,yUt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?bUt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&SUt(e,n,i),i},"__decorateClass$n"),_m=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$n");const Mle="rgba(58, 96, 247, 1)",Tle="rgba(58, 96, 247, 0.08)";var lu=(t=>(t[t.FIRST_PAGE_HEADER=0]="FIRST_PAGE_HEADER",t[t.FIRST_PAGE_FOOTER=1]="FIRST_PAGE_FOOTER",t[t.DEFAULT_HEADER=2]="DEFAULT_HEADER",t[t.DEFAULT_FOOTER=3]="DEFAULT_FOOTER",t[t.EVEN_PAGE_HEADER=4]="EVEN_PAGE_HEADER",t[t.EVEN_PAGE_FOOTER=5]="EVEN_PAGE_FOOTER",t))(lu||{});function hVe(t,e,n){const{documentStyle:r}=t.getDataModel().getSnapshot(),{defaultHeaderId:i,defaultFooterId:a,evenPageHeaderId:o,evenPageFooterId:s,firstPageHeaderId:l,firstPageFooterId:u,evenAndOddHeaders:c,useFirstPageHeaderFooter:d}=r;switch(e){case Ya.BODY:return{createType:null,headerFooterId:null};case Ya.HEADER:return d===at.TRUE&&!l?{createType:0,headerFooterId:null}:c===at.TRUE&&n%2===0&&!o?{createType:4,headerFooterId:null}:i?{createType:null,headerFooterId:i}:{createType:2,headerFooterId:null};case Ya.FOOTER:return d===at.TRUE&&!u?{createType:1,headerFooterId:null}:c===at.TRUE&&n%2===0&&!s?{createType:5,headerFooterId:null}:a?{createType:null,headerFooterId:a}:{createType:3,headerFooterId:null};default:throw new Error(`Invalid editArea: ${e}`)}}he(hVe,"checkCreateHeaderFooterType");var aF;let Pq=(aF=class extends et{constructor(t,e,n,r,i,a,o,s,l){super(),Kt(this,"_loadedMap",new WeakSet),this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=r,this._renderManagerService=i,this._docSkeletonManagerService=a,this._docSelectionRenderService=o,this._localeService=s,this._componentManager=l,this._initialize()}_initialize(){this._context.unit.getSnapshot().documentStyle.documentFlavor===Gg.TRADITIONAL&&(this._init(),this._drawHeaderFooterLabel(),this._initCustomComponents())}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(sVe,_Ut))}_init(){const{unitId:t}=this._context,e=hf(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_initialMain(t){const e=hf(this._context),{document:n}=e;this.disposeWithMe(n.onDblclick$.subscribeEvent(async r=>{if(this._isEditorReadOnly(t))return;const{offsetX:i,offsetY:a}=r,{pageLayoutType:o=cc.VERTICAL,pageMarginLeft:s,pageMarginTop:l}=n.getOffsetConfig(),u=this._getTransformCoordForDocumentOffset(i,a);if(u==null)return;const c=this._docSkeletonManagerService.getViewModel(),d=this._docSkeletonManagerService.getSkeleton(),h=c.getEditArea(),{editArea:f,pageNumber:m}=d.findEditAreaByCoord(u,o,s,l);if(h===f)return;c.setEditArea(f);const{createType:g,headerFooterId:p}=hVe(c,f,m);if(f===Ya.BODY)this._docSelectionRenderService.setSegment(""),this._docSelectionRenderService.setSegmentPage(-1),this._docSelectionRenderService.setCursorManually(i,a);else if(g!=null){const v=Ie.generateRandomId(6);this._docSelectionRenderService.setSegment(v),this._docSelectionRenderService.setSegmentPage(m),await this._commandService.executeCommand(mVe.id,{unitId:t,createType:g,segmentId:v})}else p!=null&&(this._docSelectionRenderService.setSegment(p),this._docSelectionRenderService.setSegmentPage(m),this._docSelectionRenderService.setCursorManually(i,a))}))}_getTransformCoordForDocumentOffset(t,e){const n=hf(this._context),{document:r,scene:i}=n,{documentTransform:a}=r.getOffsetConfig(),o=i.getViewports()[0];if(o==null)return;const s=o.transformVector2SceneCoord(cn.FromArray([t,e]));return a.clone().invert().applyPoint(s)}_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:r}=n,i=r;this.disposeWithMe($t(i.pageRender$.subscribe(a=>{if(this._editorService.isEditor(e))return;const o=this._docSkeletonManagerService.getViewModel().getEditArea()===Ya.BODY,{page:s,pageLeft:l,pageTop:u,ctx:c}=a,{pageWidth:d,pageHeight:h,marginTop:f,marginBottom:m}=s;if(c.save(),c.translate(l-.5,u-.5),o?(ur.drawWith(c,{left:0,top:0,width:d,height:f,fill:"rgba(255, 255, 255, 0.5)"}),c.save(),c.translate(0,h-m),ur.drawWith(c,{left:0,top:0,width:d,height:m,fill:"rgba(255, 255, 255, 0.5)"}),c.restore()):(c.save(),c.translate(0,f),ur.drawWith(c,{left:0,top:f,width:d,height:h-f-m,fill:"rgba(255, 255, 255, 0.5)"}),c.restore()),!o){const g={dataArray:[{command:"M",points:[0,f]},{command:"L",points:[d,f]}],strokeWidth:1,stroke:Mle},p={dataArray:[{command:"M",points:[0,h-m]},{command:"L",points:[d,h-m]}],strokeWidth:1,stroke:Mle};y_.drawWith(c,g),y_.drawWith(c,p),c.translate(0,f+1),Ple.drawWith(c,{text:t.t("headerFooter.header"),color:Tle}),c.translate(0,h-f-m),Ple.drawWith(c,{text:t.t("headerFooter.footer"),color:Tle})}c.restore()})))})}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_getDocDataModel(){return this._context.unit}},he(aF,"DocHeaderFooterController"),aF);Pq=yUt([_m(1,me),_m(2,Fo),_m(3,Ce),_m(4,Sr),_m(5,se(zi)),_m(6,se(Ms)),_m(7,se(sn)),_m(8,se(ja))],Pq);const fVe={id:"sidebar.operation.doc-header-footer-panel",type:Se.OPERATION,handler:he(async(t,e)=>{const n=t.get(ol),r=t.get(sn);switch(e.value){case"open":n.open({header:{title:r.t("headerFooter.panel")},children:{label:sVe},onClose:he(()=>{},"onClose"),width:400});break;case"close":default:n.close();break}return!0},"handler")};function Mq(){return{dataStream:`\r |
|
|
`,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}]}}he(Mq,"getEmptyHeaderFooterBody");function OR(t,e,n,r){const i=Ir.getInstance(),a=6,o=t??Ie.generateRandomId(a),s=e===lu.DEFAULT_HEADER||e===lu.FIRST_PAGE_HEADER||e===lu.EVEN_PAGE_HEADER,l=i.insertOp([s?"headers":"footers",o],{[s?"headerId":"footerId"]:o,body:Mq()});r.push(l);const u=Ie.generateRandomId(a),c=i.insertOp([s?"footers":"headers",u],{[s?"footerId":"headerId"]:u,body:Mq()});r.push(c);let d="defaultHeaderId",h="defaultFooterId";switch(e){case lu.DEFAULT_HEADER:d="defaultHeaderId",h="defaultFooterId";break;case lu.DEFAULT_FOOTER:d="defaultFooterId",h="defaultHeaderId";break;case lu.FIRST_PAGE_HEADER:d="firstPageHeaderId",h="firstPageFooterId";break;case lu.FIRST_PAGE_FOOTER:d="firstPageFooterId",h="firstPageHeaderId";break;case lu.EVEN_PAGE_HEADER:d="evenPageHeaderId",h="evenPageFooterId";break;case lu.EVEN_PAGE_FOOTER:d="evenPageFooterId",h="evenPageHeaderId";break;default:throw new Error(`Unknown header footer type: ${e}`)}for(const[f,m]of[[d,o],[h,u]])if(n[f]!=null){const g=i.replaceOp(["documentStyle",f],n[f],m);r.push(g)}else{const g=i.insertOp(["documentStyle",f],m);r.push(g)}return r}he(OR,"createHeaderFooterAction");const NR="doc.command.core-header-footer",mVe={id:NR,type:Se.COMMAND,handler:he(async(t,e)=>{var n;const r=t.get(me),i=t.get(Ce),a=t.get(Sr),{unitId:o,segmentId:s,createType:l,headerFooterProps:u}=e,c=(n=a.getRenderById(o))==null?void 0:n.with(zi),d=i.getUniverDocInstance(o),h=c==null?void 0:c.getViewModel();if(d==null||h==null)return!1;const f=h.getEditArea(),{documentStyle:m}=d.getSnapshot(),g=(u==null?void 0:u.marginFooter)!=null||(u==null?void 0:u.marginHeader)!=null,p=[{startOffset:0,endOffset:0,collapsed:!0}],v={id:Oi.id,params:{unitId:o,actions:[],textRanges:p,debounce:!0}};g&&(v.params.noNeedSetTextRange=!0);const _=Ir.getInstance(),C=[];return l!=null&&OR(s,l,m,C),u!=null&&Object.keys(u).forEach(S=>{const b=u[S],y=m[S];if(b===y)return;let A;if(y===void 0?A=_.insertOp(["documentStyle",S],b):A=_.replaceOp(["documentStyle",S],y,b),C.push(A),S==="useFirstPageHeaderFooter"&&b===at.TRUE&&!m.firstPageHeaderId){const w=f===Ya.HEADER?lu.FIRST_PAGE_HEADER:lu.FIRST_PAGE_FOOTER;OR(s,w,m,C)}else if(S==="evenAndOddHeaders"&&b===at.TRUE&&!m.evenPageHeaderId){const w=f===Ya.HEADER?lu.EVEN_PAGE_HEADER:lu.EVEN_PAGE_FOOTER;OR(s,w,m,C)}}),C.length===0?!1:(v.params.actions=C.reduce((S,b)=>Ir.compose(S,b),null),!!r.syncExecuteCommand(v.id,v.params))},"handler")},zte={id:"doc.command.open-header-footer-panel",type:Se.COMMAND,handler:he(async(t,e)=>t.get(me).executeCommand(fVe.id,{value:"open"}),"handler")},s9="UI_PLUGIN_DOCS",qte=`${s9}_COLOR_PICKER_COMPONENT`,gVe=`${s9}_FONT_FAMILY_COMPONENT`,pVe=`${s9}_FONT_FAMILY_ITEM_COMPONENT`,vVe=`${s9}_FONT_SIZE_COMPONENT`,EUt="univer-doc-list-type-picker",RUt="univer-doc-list-type-picker-item",AUt="univer-doc-list-type-picker-item-active",oF={docListTypePicker:EUt,docListTypePickerItem:RUt,docListTypePickerItemActive:AUt},_Ve=he(t=>{const{value:e,onChange:n,options:r}=t;return qn.jsx("div",{className:oF.docListTypePicker,children:r.map(i=>qn.jsx("img",{className:oF.docListTypePickerItem+(e===i.value?` ${oF.docListTypePickerItemActive}`:""),onClick:he(()=>{n(i.value)},"onClick"),src:i.img},i.value))})},"ListTypePicker"),wUt=[{value:Na.ORDER_LIST,img:"data:image/jpeg;base64,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"},{value:Na.ORDER_LIST_1,img:"data:image/jpeg;base64,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"},{value:Na.ORDER_LIST_2,img:"data:image/jpeg;base64,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"},{value:Na.ORDER_LIST_3,img:"data:image/jpeg;base64,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"},{value:Na.ORDER_LIST_4,img:"data:image/jpeg;base64,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"},{value:Na.ORDER_LIST_5,img:"data:image/jpeg;base64,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"}],DUt=he(t=>qn.jsx(_Ve,{...t,options:wUt}),"OrderListTypePicker"),IUt=[{value:Na.BULLET_LIST,img:"data:image/jpeg;base64,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"},{value:Na.BULLET_LIST_1,img:"data:image/jpeg;base64,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"},{value:Na.BULLET_LIST_2,img:"data:image/jpeg;base64,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"},{value:Na.BULLET_LIST_3,img:"data:image/jpeg;base64,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"},{value:Na.BULLET_LIST_4,img:"data:image/jpeg;base64,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"},{value:Na.BULLET_LIST_5,img:"data:image/jpeg;base64,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"}],PUt=he(t=>qn.jsx(_Ve,{...t,options:IUt}),"BulletListTypePicker"),CVe=`${s9}_ORDER_LIST_TYPE_COMPONENT`,SVe=`${s9}_BULLET_LIST_TYPE_COMPONENT`;function ao(t){return t.getContextValue(K1)&&t.getContextValue(Pu)&&!t.getContextValue(I7)}he(ao,"whenDocAndEditorFocused");function bVe(t){return t.getContextValue(K1)&&t.getContextValue(Pu)&&!t.getContextValue(S4)&&!t.getContextValue(I7)}he(bVe,"whenDocAndEditorFocusedWithBreakLine");const MUt={id:r7.id,binding:Et.TAB,preconditions:ao},TUt={id:r7.id,binding:Et.TAB|Ln.SHIFT,preconditions:ao,staticParameters:{shift:!0}},LUt={id:Kp.id,binding:Et.B|Ln.CTRL_COMMAND,preconditions:ao},xUt={id:Zp.id,binding:Et.I|Ln.CTRL_COMMAND,preconditions:ao},OUt={id:Jp.id,binding:Et.U|Ln.CTRL_COMMAND,preconditions:ao},NUt={id:e3.id,binding:Et.X|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:ao},kUt={id:wf.id,binding:Et.COMMA|Ln.CTRL_COMMAND,preconditions:ao},FUt={id:t3.id,binding:Et.PERIOD|Ln.CTRL_COMMAND,preconditions:ao},VUt={id:YL.id,binding:Et.L|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},BUt={id:GL.id,binding:Et.R|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},UUt={id:XL.id,binding:Et.E|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},HUt={id:QL.id,binding:Et.J|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},jUt={id:WL.id,binding:Et.Digit7|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},$Ut={id:$L.id,binding:Et.Digit8|Ln.CTRL_COMMAND|Ln.SHIFT,preconditions:ao},WUt="univer-doc-count-bar",zUt={docCountBar:WUt},qUt=[50,80,100,130,150,170,200,400],YUt=[10,400];function yVe(){const t=Ne(me),e=Ne(Ce),n=E.useMemo(()=>e.getCurrentTypeOfUnit$(le.UNIVER_DOC),[]),r=Xh(n),i=E.useCallback(()=>{var l,u;if(!r)return 100;const c=((u=(l=r.getSettings())==null?void 0:l.zoomRatio)!=null?u:1)*100;return Math.round(c)},[r]),[a,o]=E.useState(()=>i());E.useEffect(()=>(o(i()),t.onCommandExecuted(l=>{if(l.id===Jd.id){const u=i();o(u)}}).dispose),[t,i]);function s(l){if(o(l),r==null)return;const u=l/100;t.executeCommand(Jd.id,{unitId:r.getUnitId(),zoomRatio:u})}return he(s,"handleChange"),qn.jsx(eZ,{min:YUt[0],value:a,shortcuts:qUt,onChange:s})}he(yVe,"ZoomSlider");function EVe(t){return qn.jsx("section",{className:zUt.docCountBar,children:qn.jsx(yVe,{})})}he(EVe,"CountBar");const XUt="univer-doc-footer-container",GUt={docFooterContainer:XUt},QUt=he(()=>qn.jsxs("div",{className:GUt.docFooterContainer,children:[qn.jsx("div",{}),qn.jsx(EVe,{})]}),"DocFooter"),Yte="docs-ui.config",KUt={layout:{docContainerConfig:uBt,toolbarConfig:lBt}},yh={id:"doc-paragraph-setting.command",type:Se.COMMAND,handler:he(async(t,e)=>{var n,r,i;const a=t.get(Or),o=t.get(Ce),s=t.get(me),l=o.getCurrentUnitForType(le.UNIVER_DOC),u=a.getDocRanges();if(!l||u.length===0||!e)return!1;const c=u[0].segmentId,d=l.getUnitId(),h=(r=(n=l.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:n.paragraphs)!=null?r:[],f=(i=i9(u,h))!=null?i:[],m={id:Oi.id,params:{unitId:d,actions:[],textRanges:u}},g=new bd;g.reset();const p=new Vi,v=Ir.getInstance();for(const C of f){const{startIndex:S}=C;p.push({t:kt.RETAIN,len:S-g.cursor,segmentId:c});const b={...C.paragraphStyle,...e.paragraph};p.push({t:kt.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...C,paragraphStyle:b,startIndex:0}]},segmentId:c,coverType:go.REPLACE}),g.moveCursorTo(S+1)}const _=Ma(l,c);return m.params.actions=v.editOp(p.serialize(),_),!!s.syncExecuteCommand(m.id,m.params)},"handler")},ZUt=he(()=>{const t=Ne(Or),e=Ne(a4),n=E.useMemo(()=>t.getDocRanges(),[]);return E.useEffect(()=>{n.length||e.closePanel()},[n]),n},"useDocRanges"),JUt=he(()=>{var t,e,n;const r=Ne(Ce).getCurrentUnitForType(le.UNIVER_DOC),i=ZUt();if(!r||i.length===0)return[];const a=i[0].segmentId,o=(e=(t=r.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:t.paragraphs)!=null?e:[];return(n=i9(i,o))!=null?n:[]},"useCurrentParagraph"),eHt=he((t,e)=>{const n=Ne(me),[r,i]=E.useState(()=>{var a,o;const s=t[0];return s?String((o=(a=s.paragraphStyle)==null?void 0:a.horizontalAlign)!=null?o:e):e});return[r,he(a=>(i(a),n.executeCommand(yh.id,{paragraph:{horizontalAlign:Number(a)}})),"horizontalAlignSet")]},"useFirstParagraphHorizontalAlign"),tHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.indentStart,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{indentStart:{v:i}}})),"indentStartSet")]},"useFirstParagraphIndentStart"),nHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.indentEnd,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{indentEnd:{v:i}}})),"indentEndSet")]},"useFirstParagraphIndentEnd"),rHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.indentFirstLine,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{indentFirstLine:{v:i}}})),"indentFirstLineSet")]},"useFirstParagraphIndentFirstLine"),iHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.hanging,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{hanging:{v:i}}})),"hangingSet")]},"useFirstParagraphIndentHanging"),aHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.spaceAbove,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{spaceAbove:{v:i}}})),"spaceAboveSet")]},"useFirstParagraphIndentSpaceAbove"),oHt=he(t=>{const e=Ne(me),[n,r]=E.useState(()=>{var i;const a=t[0];return a?Oa((i=a.paragraphStyle)==null?void 0:i.spaceBelow,0):0});return[n,he(i=>(r(i),e.executeCommand(yh.id,{paragraph:{spaceBelow:{v:i}}})),"spaceBelowSet")]},"useFirstParagraphSpaceBelow"),sHt=he(t=>{const e=Ne(me),n=Ne(Sr),r=Ne(Ce),i=E.useMemo(()=>{var f;const m=r.getCurrentUnitForType(le.UNIVER_DOC);if(m)return(f=n.getRenderById(m==null?void 0:m.getUnitId()))==null?void 0:f.with(zi).getSkeleton()},[]),a=E.useMemo(()=>new Pn({}),[]),[o,s]=E.useState(()=>{var f,m;const g=t[0];return g&&(m=(f=g.paragraphStyle)==null?void 0:f.lineSpacing)!=null?m:1}),l=E.useRef(o),[u,c]=E.useState(()=>{var f,m;const g=t[0];return g&&(m=(f=g.paragraphStyle)==null?void 0:f.spacingRule)!=null?m:rd.AUTO}),d=he(async f=>{s(f),a.next({lineSpacing:f,spacingRule:u})},"lineSpacingSet"),h=he(async f=>{if(f!==u){let m=l.current;if(f===rd.AT_LEAST){const g=i==null?void 0:i.findNodeByCharIndex(t[0].startIndex),p=g==null?void 0:g.parent,v=p==null?void 0:p.parent;(v==null?void 0:v.contentHeight)!==void 0&&(m=Math.max(v.contentHeight,m))}else m>5&&(m=2);l.current=o,d(m),c(f),a.next({spacingRule:f})}},"spacingRuleSet");return E.useEffect(()=>{const f=a.pipe(mo(m=>!!Object.keys(m).length),FP(16),mo(m=>!!m.length),pr(m=>m.reduce((g,p)=>(Object.keys(p).forEach(v=>{g[v]=p[v]}),g),{}))).subscribe(m=>e.executeCommand(yh.id,{paragraph:{...m}}));return()=>f.unsubscribe()},[]),{lineSpacing:[o,d],spacingRule:[u,h]}},"useFirstParagraphLineSpacing"),lHt="univer-paragraph-setting-icon-list",uHt="univer-paragraph-setting-icon-list-item",cHt="univer-paragraph-setting-icon-list-active",dHt="univer-paragraph-setting-title",hHt="univer-paragraph-setting-label",fHt="univer-paragraph-setting-mt-base",mHt="univer-paragraph-setting-flex-col",gHt="univer-paragraph-setting-space-line",pa={paragraphSettingIconList:lHt,paragraphSettingIconListItem:uHt,paragraphSettingIconListActive:cHt,paragraphSettingTitle:dHt,paragraphSettingLabel:hHt,paragraphSettingMtBase:fHt,paragraphSettingFlexCol:mHt,paragraphSettingSpaceLine:gHt},M2=he(t=>{const{value:e,onChange:n,className:r="",min:i=0,max:a=100,step:o=1}=t,s=E.useRef(null);return qn.jsx(uh,{step:o,ref:s,min:i,max:a,value:e,onChange:he(l=>{n(l??0).finally(()=>{setTimeout(()=>{var u;(u=s.current)==null||u.focus()},30)})},"onChange"),className:r})},"AutoFocusInputNumber");function RVe(){const t=Ne(sn),e=E.useMemo(()=>[{label:t.t("toolbar.alignLeft"),value:String(dr.LEFT),icon:qn.jsx(WFe,{})},{label:t.t("toolbar.alignCenter"),value:String(dr.CENTER),icon:qn.jsx($Fe,{})},{label:t.t("toolbar.alignRight"),value:String(dr.RIGHT),icon:qn.jsx(zFe,{})},{label:t.t("toolbar.alignJustify"),value:String(dr.JUSTIFIED),icon:qn.jsx(jFe,{})}],[]),n=JUt(),[r,i]=eHt(n,e[0].value),[a,o]=tHt(n),[s,l]=nHt(n),[u,c]=rHt(n),[d,h]=iHt(n),[f,m]=aHt(n),[g,p]=oHt(n),{lineSpacing:[v,_],spacingRule:[C,S]}=sHt(n),b=E.useMemo(()=>C===rd.AUTO?{min:1,max:5,step:v<2?.5:1}:{min:1,max:100},[C,v]);return qn.jsxs("div",{className:pa.paragraphSetting,children:[qn.jsx("div",{className:pa.paragraphSettingTitle,children:t.t("doc.paragraphSetting.alignment")}),qn.jsx("div",{className:`${pa.paragraphSettingIconList} ${pa.paragraphSettingMtBase}`,children:e.map(y=>qn.jsx(n1,{title:y.label,placement:"bottom",children:qn.jsx("span",{className:hr(pa.paragraphSettingIconListItem,{[pa.paragraphSettingIconListActive]:r===y.value}),onClick:he(()=>i(y.value),"onClick"),children:y.icon})},y.value))}),qn.jsx("div",{className:pa.paragraphSettingTitle,children:t.t("doc.paragraphSetting.indentation")}),qn.jsxs("div",{children:[qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.left"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:a,onChange:he(y=>o(y??0),"onChange")})]}),qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.right"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:s,onChange:he(y=>l(y??0),"onChange")})]}),qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.firstLine"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:u,onChange:he(y=>c(y??0),"onChange")})]}),qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.hanging"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:d,onChange:he(y=>h(y??0),"onChange")})]})]}),qn.jsx("div",{className:pa.paragraphSettingTitle,children:t.t("doc.paragraphSetting.spacing")}),qn.jsxs("div",{children:[qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.before"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:f,onChange:he(y=>m(y??0),"onChange")})]}),qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsxs("div",{className:pa.paragraphSettingLabel,children:[t.t("doc.paragraphSetting.after"),"(px)"]}),qn.jsx(M2,{className:pa.paragraphSettingMtBase,value:g,onChange:he(y=>p(y??0),"onChange")})]}),qn.jsxs("div",{className:pa.paragraphSettingFlexCol,children:[qn.jsx("div",{className:pa.paragraphSettingLabel,children:t.t("doc.paragraphSetting.lineSpace")}),qn.jsxs("div",{className:`${pa.paragraphSettingMtBase} ${pa.paragraphSettingSpaceLine}`,style:{width:162},children:[qn.jsx(md,{value:`${C}`,options:[{label:t.t("doc.paragraphSetting.multiSpace"),value:`${rd.AUTO}`},{label:t.t("doc.paragraphSetting.fixedValue"),value:`${rd.AT_LEAST}`}],onChange:he(y=>S(Number(y)),"onChange")}),qn.jsx(M2,{...b,value:v,onChange:he(y=>_(y??0),"onChange")})]})]})]})]})}he(RVe,"ParagraphSetting");const pHt=he((t,e)=>e.length===t.length&&t.some(n=>e.some(r=>r.startOffset===n.startOffset&&r.endOffset===n.endOffset)),"isRangesEqual"),vHt=he((t,e)=>t.some(n=>e.some(r=>{const{startOffset:i,endOffset:a}=n,{startOffset:o,endOffset:s}=r;return i==null||a==null||o==null||s==null?!1:i<=s&&a>=o})),"isRangesIntersection");function AVe(){const t=Ne(me),e=Ne(sn),n=Xh(e.currentLocale$),[r,i]=E.useState(""),a=E.useRef([]);return E.useEffect(()=>{const o=t.onCommandExecuted(s=>{var l;if(jo.id===s.id){const u=s.params.ranges;pHt(u,a.current)||i(Vl(4)),a.current=u}if(Oi.id===s.id){const u=s.params,c=(l=u.textRanges)!=null?l:[];u.trigger!==yh.id&&vHt(c,a.current)&&i(Vl(4))}});return()=>o.dispose()},[]),E.useEffect(()=>{i(Vl(4))},[n]),qn.jsx(RVe,{},r)}he(AVe,"ParagraphSettingIndex");var _Ht=Object.defineProperty,CHt=Object.getOwnPropertyDescriptor,SHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?CHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&_Ht(e,n,i),i},"__decorateClass$m"),sF=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$m");const Lle="doc_ui_paragraph-setting-panel";var lF;let a4=(lF=class extends et{constructor(t,e,n){super(),Kt(this,"_id"),this._commandService=t,this._componentManager=e,this._sidebarService=n,this._init()}_init(){this.disposeWithMe(this._componentManager.register(Lle,AVe))}openPanel(){const t={header:{title:"doc.slider.paragraphSetting"},id:this._id,children:{label:Lle},width:300};this._sidebarService.open(t)}closePanel(){this._sidebarService.close(this._id)}},he(lF,"DocParagraphSettingController"),lF);a4=SHt([yn(Vt.Rendered,a4),sF(0,me),sF(1,se(ja)),sF(2,se(ol))],a4);const Xte={id:"sidebar.operation.doc-paragraph-setting-panel",type:Se.OPERATION,handler:he(t=>(t.get(a4).openPanel(),!0),"handler")},Gte=he(t=>{const e=t.get(Or);return new On(n=>{const r=e.textSelection$.subscribe(()=>{const i=e.getActiveTextRange();i&&!i.collapsed?n.next(!1):n.next(!0)});return()=>r.unsubscribe()})},"getDisableOnCollapsedObservable");function wVe(t){if(t.length<2)return!0;const e=t.map(n=>n.tableId);return e.every(n=>n===e[0])}he(wVe,"inSameTable");const rm=he(t=>{const e=t.get(Or),n=t.get(Ce);return new On(r=>{const i=e.textSelection$.subscribe(()=>{var a;const o=e.getCurrentRectRanges(),s=e.getActiveTextRange();if(o&&o.length&&wVe(o)){r.next(!1);return}if(s&&(o==null||o.length===0)){const{segmentId:l,startOffset:u,endOffset:c}=s,d=n.getCurrentUniverDocInstance(),h=(a=d==null?void 0:d.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:a.tables;if(h&&h.length&&h.some(f=>{const{startIndex:m,endIndex:g}=f;return u>m&&u<g||c>m&&c<g})){r.next(!1);return}}r.next(!0)});return()=>i.unsubscribe()})},"getDisableWhenSelectionNotInTableObservable"),bHt=he(t=>({id:OI.name,commandId:OI.id,type:Tt.BUTTON,icon:"Copy",title:"rightClick.copy",disabled$:Gte(t),hidden$:vn(t,le.UNIVER_DOC)}),"CopyMenuFactory"),yHt=he(t=>({id:Xte.id,type:Tt.BUTTON,icon:"MenuSingle24",title:"doc.menu.paragraphSetting",hidden$:vn(t,le.UNIVER_DOC)}),"ParagraphSettingMenuFactory"),EHt=he(t=>({id:Dte.id,type:Tt.BUTTON,icon:"Copy",title:"rightClick.cut",disabled$:Gte(t),hidden$:vn(t,le.UNIVER_DOC)}),"CutMenuFactory"),RHt=he(t=>({id:Ite.id,type:Tt.BUTTON,icon:"PasteSpecial",title:"rightClick.paste",hidden$:vn(t,le.UNIVER_DOC)}),"PasteMenuFactory"),AHt=he(t=>({id:XS.id,type:Tt.BUTTON,icon:"PasteSpecial",title:"rightClick.delete",disabled$:Gte(t),hidden$:vn(t,le.UNIVER_DOC)}),"DeleteMenuFactory"),DVe="doc.menu.table-insert";function IVe(t){return{id:DVe,type:Tt.SUBITEMS,title:"table.insert",icon:"Insert",hidden$:Sa(vn(t,le.UNIVER_DOC),rm(t),(e,n)=>e||n)}}he(IVe,"TableInsertMenuItemFactory");function PVe(t){return{id:Fte.id,type:Tt.BUTTON,title:"table.insertRowAbove",icon:"InsertRowAbove",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(PVe,"InsertRowBeforeMenuItemFactory");function MVe(t){return{id:Vte.id,type:Tt.BUTTON,title:"table.insertRowBelow",icon:"InsertRowBelow",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(MVe,"InsertRowAfterMenuItemFactory");function TVe(t){return{id:Bte.id,type:Tt.BUTTON,title:"table.insertColumnLeft",icon:"LeftInsertColumn",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(TVe,"InsertColumnLeftMenuItemFactory");function LVe(t){return{id:Ute.id,type:Tt.BUTTON,title:"table.insertColumnRight",icon:"RightInsertColumn",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(LVe,"InsertColumnRightMenuItemFactory");const xVe="doc.menu.table-delete";function OVe(t){return{id:xVe,type:Tt.SUBITEMS,title:"table.delete",icon:"Reduce",hidden$:Sa(vn(t,le.UNIVER_DOC),rm(t),(e,n)=>e||n)}}he(OVe,"TableDeleteMenuItemFactory");function NVe(t){return{id:xte.id,type:Tt.BUTTON,title:"table.deleteRows",icon:"DeleteRow",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(NVe,"DeleteRowsMenuItemFactory");function kVe(t){return{id:Ote.id,type:Tt.BUTTON,title:"table.deleteColumns",icon:"DeleteColumn",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(kVe,"DeleteColumnsMenuItemFactory");function FVe(t){return{id:JS.id,type:Tt.BUTTON,title:"table.deleteTable",icon:"GridSingle",disabled$:rm(t),hidden$:vn(t,le.UNIVER_DOC)}}he(FVe,"DeleteTableMenuItemFactory");function VVe(t){const e=t.get(Ce),n=t.get(Sr);return new On(r=>{const i=e.focused$.subscribe(s=>{if(s==null||e.getUnitType(s)!==le.UNIVER_DOC)return r.next(!0);const l=n.getRenderById(s);if(l==null)return r.next(!0);l.with(zi).getViewModel().editAreaChange$.subscribe(u=>{r.next(u===Ya.HEADER||u===Ya.FOOTER)})}),a=n.getCurrentTypeOfRenderer(le.UNIVER_DOC);if(a==null)return r.next(!0);const o=a.with(zi).getViewModel();return r.next(o.getEditArea()!==Ya.BODY),()=>i.unsubscribe()})}he(VVe,"getInsertTableHiddenObservable");function BVe(t){const e=t.get(Or),n=t.get(Ce);return new On(r=>{const i=e.textSelection$.subscribe(a=>{if(a==null){r.next(!0);return}const{textRanges:o}=a;if(o.length!==1){r.next(!0);return}const s=o[0],{collapsed:l,startNodePosition:u,startOffset:c}=s;if(!l||c==null){r.next(!0);return}const d=n.getCurrentUniverDocInstance();if(d==null){r.next(!0);return}const h=y1(t,d.getUnitId());if(h==null){r.next(!0);return}if(h.getViewModel().getCustomRangeRaw(c)){r.next(!0);return}if(u!=null){const{path:f}=u;if(f.indexOf("cells")!==-1){r.next(!0);return}}r.next(!1)});return()=>i.unsubscribe()})}he(BVe,"getTableDisabledObservable");function Ns(t){const e=t.get(Or);return new On(n=>{const r=e.textSelection$.subscribe(i=>{if(i==null){n.next(!0);return}const{textRanges:a,rectRanges:o}=i;if(a.length===0&&o.length===0){n.next(!0);return}n.next(!1)});return()=>r.unsubscribe()})}he(Ns,"disableMenuWhenNoDocRange");function UVe(t){const e=t.get(me);return{id:Kp.id,type:Tt.BUTTON,icon:"BoldSingle",title:"Set bold",tooltip:"toolbar.bold",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.bl;n.next(l===at.TRUE)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(UVe,"BoldMenuItemFactory");function HVe(t){const e=t.get(me);return{id:Zp.id,type:Tt.BUTTON,icon:"ItalicSingle",title:"Set italic",tooltip:"toolbar.italic",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.it;n.next(l===at.TRUE)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(HVe,"ItalicMenuItemFactory");function jVe(t){const e=t.get(me);return{id:Jp.id,type:Tt.BUTTON,icon:"UnderlineSingle",title:"Set underline",tooltip:"toolbar.underline",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.ul;n.next((l==null?void 0:l.s)===at.TRUE)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(jVe,"UnderlineMenuItemFactory");function $Ve(t){const e=t.get(me);return{id:e3.id,type:Tt.BUTTON,icon:"StrikethroughSingle",title:"Set strike through",tooltip:"toolbar.strikethrough",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.st;n.next((l==null?void 0:l.s)===at.TRUE)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he($Ve,"StrikeThroughMenuItemFactory");function WVe(t){const e=t.get(me);return{id:wf.id,type:Tt.BUTTON,icon:"SubscriptSingle",tooltip:"toolbar.subscript",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.va;n.next(l===ca.SUBSCRIPT)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(WVe,"SubscriptMenuItemFactory");function zVe(t){const e=t.get(me);return{id:t3.id,type:Tt.BUTTON,icon:"SuperscriptSingle",tooltip:"toolbar.superscript",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===Mc.id){const s=im(t);if(s==null){n.next(!1);return}const l=(a=s.ts)==null?void 0:a.va;n.next(l===ca.SUPERSCRIPT)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(zVe,"SuperscriptMenuItemFactory");function qVe(t){const e=t.get(me);return{id:pp.id,tooltip:"toolbar.font",type:Tt.SELECTOR,label:gVe,selections:Zz.map(n=>({label:{name:pVe,hoverable:!0},value:n.value})),value$:new On(n=>{const r=Zz[0].value,i=e.onCommandExecuted(a=>{var o;const s=a.id;if(s===jo.id||s===pp.id){const l=im(t);if(l==null){n.next(r);return}const u=(o=l.ts)==null?void 0:o.ff;n.next(u??r)}});return n.next(r),i.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(qVe,"FontFamilySelectorMenuItemFactory");function YVe(t){const e=t.get(me);return{id:gp.id,type:Tt.SELECTOR,tooltip:"toolbar.fontSize",label:{name:vVe,props:{min:1,max:400}},selections:TOe,value$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===gp.id){const s=im(t);if(s==null){n.next(14);return}const l=(a=s.ts)==null?void 0:a.fs;n.next(l??14)}});return n.next(14),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(YVe,"FontSizeSelectorMenuItemFactory");function XVe(t){const e=t.get(me),n=t.get(Ja);return{id:vp.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:Tt.BUTTON_SELECTOR,selections:[{label:{name:qte,hoverable:!1}}],value$:new On(r=>{const i=n.getCurrentTheme().textColor,a=e.onCommandExecuted(o=>{if(o.id===vp.id){const s=o.params.value;r.next(s??i)}});return r.next(i),a.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(XVe,"TextColorSelectorMenuItemFactory");function GVe(t){return{id:zte.id,type:Tt.BUTTON,icon:"FreezeRowSingle",tooltip:"toolbar.headerFooter",hidden$:Sa(vn(t,le.UNIVER_DOC),Fee(t),(e,n)=>e||n)}}he(GVe,"HeaderFooterMenuItemFactory");const wHt="GridSingle",QVe="doc.menu.table";function KVe(t){return{id:QVe,type:Tt.SUBITEMS,icon:wHt,tooltip:"toolbar.table.main",disabled$:BVe(t),hidden$:Sa(vn(t,le.UNIVER_DOC),VVe(t),Fee(t),(e,n,r)=>e||n||r)}}he(KVe,"TableMenuFactory");function ZVe(t){return{id:Hte.id,title:"toolbar.table.insert",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_DOC)}}he(ZVe,"InsertTableMenuFactory");function JVe(t){const e=t.get(me);return{id:YL.id,type:Tt.BUTTON,icon:"LeftJustifyingSingle",tooltip:"toolbar.alignLeft",disabled$:Ns(t),activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===nm.id){const s=eb(t);if(s==null)return;const l=(a=s.paragraphStyle)==null?void 0:a.horizontalAlign;n.next(l===dr.LEFT)}});return n.next(!1),r.dispose}),hidden$:vn(t,le.UNIVER_DOC)}}he(JVe,"AlignLeftMenuItemFactory");function eBe(t){const e=t.get(me);return{id:XL.id,type:Tt.BUTTON,icon:"HorizontallySingle",tooltip:"toolbar.alignCenter",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===nm.id){const s=eb(t);if(s==null)return;const l=(a=s.paragraphStyle)==null?void 0:a.horizontalAlign;n.next(l===dr.CENTER)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(eBe,"AlignCenterMenuItemFactory");function tBe(t){const e=t.get(me);return{id:GL.id,type:Tt.BUTTON,icon:"RightJustifyingSingle",tooltip:"toolbar.alignRight",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===nm.id){const s=eb(t);if(s==null)return;const l=(a=s.paragraphStyle)==null?void 0:a.horizontalAlign;n.next(l===dr.RIGHT)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(tBe,"AlignRightMenuItemFactory");function nBe(t){const e=t.get(me);return{id:QL.id,type:Tt.BUTTON,icon:"AlignTextBothSingle",tooltip:"toolbar.alignJustify",activated$:new On(n=>{const r=e.onCommandExecuted(i=>{var a;const o=i.id;if(o===jo.id||o===nm.id){const s=eb(t);if(s==null)return;const l=(a=s.paragraphStyle)==null?void 0:a.horizontalAlign;n.next(l===dr.JUSTIFIED)}});return n.next(!1),r.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(nBe,"AlignJustifyMenuItemFactory");const j_=he(t=>new On(e=>{const n=t.get(Ce),r=t.get(Or);let i;const a=n.focused$.subscribe(o=>{if(i==null||i.unsubscribe(),o==null)return;const s=n.getUniverDocInstance(o);s!=null&&(i=r.textSelection$.subscribe(()=>{var l,u;const c=r.getActiveTextRange();if(c){const d=s.getSelfOrHeaderFooterModel(c==null?void 0:c.segmentId),h=zL(c,(u=(l=d.getBody())==null?void 0:l.paragraphs)!=null?u:[]);let f;if(h.every(m=>{var g;return f||(f=(g=m.bullet)==null?void 0:g.listType),m.bullet&&m.bullet.listType===f})){e.next(f);return}}e.next(void 0)}))});return()=>{a.unsubscribe(),i==null||i.unsubscribe()}}),"listValueFactory$");function rBe(t){return{id:WL.id,type:Tt.BUTTON_SELECTOR,selections:[{label:{name:CVe,hoverable:!1},value$:j_(t)}],icon:"OrderSingle",tooltip:"toolbar.order",hidden$:vn(t,le.UNIVER_DOC),disabled$:Ns(t),activated$:j_(t).pipe(pr(e=>e&&e.indexOf("ORDER_LIST")===0))}}he(rBe,"OrderListMenuItemFactory");function iBe(t){return{id:$L.id,type:Tt.BUTTON_SELECTOR,selections:[{label:{name:SVe,hoverable:!1},value$:j_(t)}],icon:"UnorderSingle",tooltip:"toolbar.unorder",disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC),activated$:j_(t).pipe(pr(e=>e&&e.indexOf("BULLET_LIST")===0))}}he(iBe,"BulletListMenuItemFactory");function aBe(t){return{id:Mte.id,type:Tt.BUTTON,icon:"TodoList",tooltip:"toolbar.checklist",disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC),activated$:j_(t).pipe(pr(e=>e&&e.indexOf("CHECK_LIST")===0))}}he(aBe,"CheckListMenuItemFactory");function oBe(t){return{id:KS.id,type:Tt.BUTTON,title:"toolbar.resetColor",icon:"NoColor"}}he(oBe,"ResetBackgroundColorMenuItemFactory");function sBe(t){const e=t.get(me),n=t.get(Ja);return{id:a7.id,tooltip:"toolbar.fillColor.main",type:Tt.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:qte,hoverable:!1}}],value$:new On(r=>{const i=n.getCurrentTheme().primaryColor,a=e.onCommandExecuted(o=>{if(o.id===a7.id){const s=o.params.value;r.next(s??i)}});return r.next(i),a.dispose}),disabled$:Ns(t),hidden$:vn(t,le.UNIVER_DOC)}}he(sBe,"BackgroundColorSelectorMenuItemFactory");function im(t){var e;const n=t.get(Ce),r=t.get(Or),i=n.getCurrentUniverDocInstance(),a=r.getActiveTextRange();if(i==null||a==null)return;const{startOffset:o,segmentId:s}=a,l=(e=i.getSelfOrHeaderFooterModel(s).getBody())==null?void 0:e.textRuns;if(l==null)return;let u;for(let c=l.length-1;c>=0;c--){const d=l[c];if(d.st<=o&&o<=d.ed){u=d;break}}return u}he(im,"getFontStyleAtCursor");function eb(t){var e;const n=t.get(Ce),r=t.get(Or),i=n.getCurrentUniverDocInstance(),a=r.getActiveTextRange();if(i==null||a==null)return;const{startOffset:o,segmentId:s}=a,l=(e=i.getSelfOrHeaderFooterModel(s).getBody())==null?void 0:e.paragraphs;if(l==null)return;let u=-1;for(const c of l){const{startIndex:d}=c;if(o>u&&o<=d)return c;u=d}return null}he(eb,"getParagraphStyleAtCursor");const DHt={[As.FORMAT]:{[Kp.id]:{order:0,menuItemFactory:UVe},[Zp.id]:{order:1,menuItemFactory:HVe},[Jp.id]:{order:2,menuItemFactory:jVe},[e3.id]:{order:3,menuItemFactory:$Ve},[wf.id]:{order:4,menuItemFactory:WVe},[t3.id]:{order:5,menuItemFactory:zVe},[gp.id]:{order:6,menuItemFactory:YVe},[pp.id]:{order:7,menuItemFactory:qVe},[vp.id]:{order:8,menuItemFactory:XVe},[a7.id]:{order:9,menuItemFactory:sBe,[KS.id]:{order:0,menuItemFactory:oBe}}},[As.LAYOUT]:{[QVe]:{order:1,menuItemFactory:KVe,[Hte.id]:{order:0,menuItemFactory:ZVe}},[YL.id]:{order:2,menuItemFactory:JVe},[XL.id]:{order:3,menuItemFactory:eBe},[GL.id]:{order:4,menuItemFactory:tBe},[QL.id]:{order:5,menuItemFactory:nBe},[WL.id]:{order:6,menuItemFactory:rBe},[$L.id]:{order:7,menuItemFactory:iBe},[Mte.id]:{order:8,menuItemFactory:aBe},[zte.id]:{order:9,menuItemFactory:GVe}},[Xa.MAIN_AREA]:{[ei.FORMAT]:{[OI.name]:{order:0,menuItemFactory:bHt},[Dte.id]:{order:1,menuItemFactory:EHt},[Ite.id]:{order:2,menuItemFactory:RHt},[XS.id]:{order:3,menuItemFactory:AHt}},[ei.LAYOUT]:{[Xte.id]:{order:0,menuItemFactory:yHt},[DVe]:{order:1,menuItemFactory:IVe,[Fte.id]:{order:1,menuItemFactory:PVe},[Vte.id]:{order:2,menuItemFactory:MVe},[Bte.id]:{order:3,menuItemFactory:TVe},[Ute.id]:{order:4,menuItemFactory:LVe}},[xVe]:{order:2,menuItemFactory:OVe,[xte.id]:{order:1,menuItemFactory:NVe},[Ote.id]:{order:2,menuItemFactory:kVe},[JS.id]:{order:3,menuItemFactory:FVe}}}}};var IHt=Object.defineProperty,PHt=Object.getOwnPropertyDescriptor,MHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?PHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&IHt(e,n,i),i},"__decorateClass$l"),Ph=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$l"),uF;let kR=(uF=class extends et{constructor(t,e,n,r,i,a,o,s,l){super(),this._injector=t,this._componentManager=e,this._commandService=n,this._layoutService=r,this._menuManagerService=i,this._uiPartsService=a,this._univerInstanceService=o,this._shortcutService=s,this._configService=l,this._init()}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(qte,VC)),this.disposeWithMe(t.register(gVe,Hee)),this.disposeWithMe(t.register(pVe,jee)),this.disposeWithMe(t.register(vVe,$ee)),this.disposeWithMe(t.register(SVe,PUt)),this.disposeWithMe(t.register(CVe,DUt)),this.disposeWithMe(t.register("TodoList",qFe))}_initUiParts(){var t,e;const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),r=this._configService.getConfig(Yte);(e=(t=r==null?void 0:r.layout)==null?void 0:t.docContainerConfig)!=null&&e.footer&&!n&&this.disposeWithMe(this._uiPartsService.registerComponent(Ba.FOOTER,()=>yl(QUt,this._injector)))}_initMenus(){this._menuManagerService.mergeMenu(DHt)}_initShortCut(){[LUt,xUt,OUt,NUt,kUt,FUt,UUt,HUt,BUt,VUt,jUt,$Ut,MUt].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_init(){this._initCustomComponents(),this._initMenus(),this._initFocusHandler(),this._initCommands(),this._initUiParts(),this._initShortCut()}_initCommands(){[mVe,zte,fVe].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(le.UNIVER_DOC,t=>{this._injector.get(Sr).getRenderById(t).with(Ms).focus()}))}},he(uF,"DocUIController"),uF);kR=MHt([yn(Vt.Rendered,kR),Ph(0,se(Wn)),Ph(1,se(ja)),Ph(2,me),Ph(3,Os),Ph(4,sl),Ph(5,_c),Ph(6,Ce),Ph(7,Bu),Ph(8,Za)],kR);var THt=Object.defineProperty,LHt=Object.getOwnPropertyDescriptor,xHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?LHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&THt(e,n,i),i},"__decorateClass$k"),cF=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$k");const xle=1.5;var dF;let BI=(dF=class extends Da{constructor(t,e,n,r){super(),this._context=t,this._textSelectionManagerService=e,this._editorService=n,this._docSkeletonManagerService=r,this._init()}_init(){this._textSelectionManagerService.textSelection$.pipe(_a(this.dispose$)).subscribe(t=>{if(t==null)return;const{isEditing:e,unitId:n}=t;n!==this._context.unitId||!e||this._scrollToSelection()})}scrollToRange(t){const e=this._docSkeletonManagerService.getSkeleton();if(!e)return;const{startOffset:n}=t,r=e.findNodePositionByCharIndex(n);this.scrollToNode(r)}scrollToNode(t){const{unitId:e,scene:n,mainComponent:r}=this._context,i=this._docSkeletonManagerService.getSkeleton();if(r==null||i==null)return;const a=r.getOffsetConfig(),{docsLeft:o,docsTop:s}=a,l=new hh(a,i),{contentBoxPointGroup:u}=l.getRangePointData(t,t),{left:c,top:d,height:h}=F8(u),f=c+o,m=d+s,g=n.getViewport(f1.VIEW_MAIN),p=!!this._editorService.getEditor(e);if(g==null)return;const{left:v,top:_,right:C,bottom:S}=g.getBounding().viewBound;let b=0,y=0;const A=p?0:100;m<_?b=m-_-A:m>S-h&&(b=m-S+h+A),f<v?y=f-v:f>C-xle&&(y=f-C+xle);const w=g.transViewportScroll2ScrollValue(y,b);g.scrollByBarDeltaValue(w)}_scrollToSelection(){const t=this._textSelectionManagerService.getActiveTextRange();if(t==null)return;const{collapsed:e,startNodePosition:n}=t;e&&this.scrollToNode(n)}},he(dF,"DocBackScrollRenderController"),dF);BI=xHt([cF(1,se(Or)),cF(2,Fo),cF(3,se(zi))],BI);var OHt=Object.defineProperty,NHt=Object.getOwnPropertyDescriptor,kHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?NHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&OHt(e,n,i),i},"__decorateClass$j"),L3=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$j"),hF;let Tq=(hF=class extends Da{constructor(t,e,n,r,i,a,o){super(),this._context=t,this._contextService=e,this._commandService=n,this._docSelectionRenderService=r,this._docSkeletonManagerService=i,this._editorService=a,this._renderManagerService=o,this._addNewRender(),this._initRenderRefresh(),this._initCommandListener()}reRender(t){var e,n;const r=(e=this._renderManagerService.getRenderById(t))==null?void 0:e.with(zi),i=r==null?void 0:r.getSkeleton();if(!(!i||i.getViewModel().getDataModel().getSnapshot().disabled)){if(i.calculate(),this._editorService.isEditor(t)){(n=this._context.mainComponent)==null||n.makeDirty();return}this._recalculateSizeBySkeleton(i)}}_addNewRender(){const{scene:t,engine:e}=this._context,n=new xd(f1.VIEW_MAIN,t,{left:0,top:0,bottom:0,right:0,explicitViewportWidthSet:!1,explicitViewportHeightSet:!1,isWheelPreventDefaultX:!0});t.attachControl(),t.onMouseWheel$.subscribeEvent((r,i)=>{if(!this._contextService.getContextValue(K1))return;const a=r;if(a.ctrlKey){const o=Math.abs(a.deltaX);let s=o<40?.2:o<80?.4:.2;s*=a.deltaY>0?-1:1,t.scaleX<1&&(s/=2),t.scaleX+s>4?t.scale(4,4):t.scaleX+s<.1?t.scale(.1,.1):a.preventDefault()}else n.onMouseWheel(a,i)}),new G4(n),t.addLayer(new OD(t,[],MR),new OD(t,[],hBt)),this._addComponent(),e.runRenderLoop(()=>{t.render()}),this._docSelectionRenderService.__attachScrollEvent()}_addComponent(){const{scene:t,unit:e,components:n}=this._context,r={pageMarginLeft:e.documentStyle.marginLeft||0,pageMarginTop:e.documentStyle.marginTop||0},i=new E_(G1.MAIN,void 0,r);i.zIndex=hle;const a=new xyt(G1.BACKGROUND,void 0,r);a.zIndex=hle,this._context.mainComponent=i,n.set(G1.MAIN,i),n.set(G1.BACKGROUND,a),t.addObjects([i],MR),t.addObjects([a],dBt),this._editorService.getEditor(e.getUnitId())==null&&t.enableLayerCache(MR)}_initRenderRefresh(){this._docSkeletonManagerService.currentSkeletonBefore$.pipe(_a(this.dispose$)).subscribe(t=>{this._create(t)})}_create(t){if(!t)return;const{mainComponent:e,components:n}=this._context,r=e,i=n.get(G1.BACKGROUND);r.changeSkeleton(t),i.changeSkeleton(t),this._recalculateSizeBySkeleton(t)}_initCommandListener(){const t=[Oi.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:r}=n;this.reRender(r)}}))}_recalculateSizeBySkeleton(t){var e;const{mainComponent:n,scene:r,unitId:i,components:a}=this._context,o=n,s=a.get(G1.BACKGROUND),l=(e=t.getSkeletonData())==null?void 0:e.pages;if(l==null)return;let u=0,c=0;for(let d=0,h=l.length;d<h;d++){const f=l[d],{pageWidth:m,pageHeight:g}=f;o.pageLayoutType===cc.VERTICAL?(c+=g,c+=o.pageMarginTop,d===h-1&&(c+=o.pageMarginTop),u=Math.max(u,m)):o.pageLayoutType===cc.HORIZONTAL&&(u+=m,d!==h-1&&(u+=o.pageMarginLeft),c=Math.max(c,g))}o.resize(u,c),s.resize(u,c),this._editorService.isEditor(i)||r.resize(u,c)}},he(hF,"DocRenderController"),hF);Tq=kHt([L3(1,ui),L3(2,me),L3(3,se(Ms)),L3(4,se(zi)),L3(5,Fo),L3(6,Sr)],Tq);var FHt=Object.defineProperty,VHt=Object.getOwnPropertyDescriptor,BHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?VHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&FHt(e,n,i),i},"__decorateClass$i"),fF=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i"),mF;let Lq=(mF=class{constructor(t,e,n){Kt(this,"_docContainer"),Kt(this,"getComponent",he(r=>{if(this._docContainer=r,!r.getContentRef().current)throw new Error("container is not ready")},"getComponent")),Kt(this,"changeLocale",he(r=>{this._localeService.setLocale(r)},"changeLocale")),this._localeService=t,this._injector=e,this._configService=n}getUIConfig(){return{injector:this._injector,config:this._configService.getConfig(Yte),changeLocale:this.changeLocale,getComponent:this.getComponent}}getContentRef(){return this._docContainer.getContentRef()}UIDidMount(t){if(this._docContainer)return t(this._docContainer)}getDocContainer(){return this._docContainer}},he(mF,"DocContainerUIController"),mF);Lq=BHt([fF(0,se(sn)),fF(1,se(Wn)),fF(2,Za)],Lq);var UHt=Object.defineProperty,HHt=Object.getOwnPropertyDescriptor,jHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?HHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&UHt(e,n,i),i},"__decorateClass$h"),$Ht=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h"),gF;let UI=(gF=class extends Da{constructor(t){super(),Kt(this,"_docContainerController"),this._injector=t,this._docContainerController=this._injector.createInstance(Lq)}},he(gF,"AppUIController"),gF);UI=jHt([$Ht(0,se(Wn))],UI);var WHt=Object.defineProperty,zHt=Object.getOwnPropertyDescriptor,qHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?zHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&WHt(e,n,i),i},"__decorateClass$g"),YHt=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g"),pF;let FR=(pF=class extends et{constructor(t){super(),this._docAutoFormatService=t,this._initListTabAutoFormat(),this._initListSpaceAutoFormat(),this._initDefaultEnterFormat(),this._initExitListAutoFormat()}_initListTabAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:r7.id,match:he(t=>{var e;const{selection:n,paragraphs:r,unit:i}=t;if(r.length===1&&n.startOffset===r[0].paragraphStart&&r[0].bullet){const a=(e=i.getBody())==null?void 0:e.paragraphs,o=a==null?void 0:a.filter(s=>{var l;return((l=s.bullet)==null?void 0:l.listId)===r[0].bullet.listId});return(o==null?void 0:o.findIndex(s=>s.startIndex===r[0].startIndex))!==0}else if(r.length>1&&r.some(a=>a.bullet))return!0;return!1},"match"),getMutations(t){const e=t.commandParams;return[{id:Rq.id,params:{type:e!=null&&e.shift?LR.decrease:LR.increase}}]},priority:100})),this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:r7.id,match:he(t=>{const{selection:e}=t,{startNodePosition:n,endNodePosition:r}=e;return!!(n&&r&&ZL(n,r)||n&&!r&&n.path.indexOf("cells")>-1)},"match"),getMutations(t){const e=t.commandParams;return[{id:kFe.id,params:{shift:!!(e!=null&&e.shift)}}]},priority:99}))}_initListSpaceAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:xL.id,match:he(t=>{var e;const{selection:n,paragraphs:r,unit:i}=t;if(!n.collapsed||r.length!==1)return!1;const a=(e=i.getBody())==null?void 0:e.dataStream.slice(r[0].paragraphStart,r[0].paragraphEnd-1);return!!(a&&Object.keys(yO).includes(a))},"match"),getMutations(t){var e;const{paragraphs:n,unit:r}=t,i=(e=r.getBody())==null?void 0:e.dataStream.slice(n[0].paragraphStart,n[0].paragraphEnd-1);if(i&&Object.keys(yO).includes(i)){const a=yO[i];return[{id:MFe.id,params:{listType:a,paragraph:n[0]}}]}return[]}}))}_initExitListAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:B_.id,match:he(t=>{const{paragraphs:e}=t;return!!(e.length===1&&e[0].bullet&&e[0].paragraphStart===e[0].paragraphEnd)},"match"),getMutations:he(t=>{const e=t.paragraphs[0].bullet;return e?e.nestingLevel>0?[{id:Rq.id,params:{type:LR.decrease}}]:[{id:ZS.id,params:{listType:t.paragraphs[0].bullet.listType}}]:[]},"getMutations")}))}_initDefaultEnterFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:B_.id,match:he(()=>!0,"match"),getMutations(){return[{id:pte.id}]},priority:-9999}))}},he(pF,"DocAutoFormatController"),pF);FR=qHt([yn(Vt.Rendered,FR),YHt(0,se(mp))],FR);function lBe(t){return t.rows[0].cells[0].sections[0].columns[0].lines[0]}he(lBe,"firstLineInTable");function uBe(t){const e=t.rows[t.rows.length-1],n=e.cells[e.cells.length-1];return NT(n)}he(uBe,"lastLineInTable");function cBe(t,e){const{ed:n}=t,{skeTables:r}=e;let i=null;for(const a of r.values())if(a.st===n+1){i=a;break}return i}he(cBe,"findTableAfterLine");function xq(t){const e=t==null?void 0:t.parent;let n=null,r=null;if(t==null||e==null)return{lineBeforeTable:n,lineAfterTable:r};const{st:i,ed:a}=t,o=e.type===Lr.CELL?[e]:e.parent.pages;return $4(o,s=>{s.st===a+1?r=s:s.ed===i-1&&(n=s)}),{lineBeforeTable:n,lineAfterTable:r}}he(xq,"findLineBeforeAndAfterTable");function dBe(t){const e=t.parent,n=e==null?void 0:e.parent;if(e==null||n==null)return;const r=n.rows[n.rows.indexOf(e)+1];if(r==null)return;const i=e.cells.indexOf(t);return r.cells[i]}he(dBe,"findBellowCell");function hBe(t){const e=t.parent,n=e==null?void 0:e.parent;if(e==null||n==null)return;const r=n.rows[n.rows.indexOf(e)-1];if(r==null)return;const i=e.cells.indexOf(t);return r.cells[i]}he(hBe,"findAboveCell");function fBe(t,e){const{st:n}=t,{skeTables:r}=e;let i=null;for(const a of r.values())if(a.ed===n-1){i=a;break}return i}he(fBe,"findTableBeforeLine");function mBe(t){return t.sections[0].columns[0].lines[0]}he(mBe,"firstLineInCell");function gBe(t){return NT(t)}he(gBe,"lastLineInCell");var XHt=Object.defineProperty,GHt=Object.getOwnPropertyDescriptor,QHt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?GHt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&XHt(e,n,i),i},"__decorateClass$f"),Vy=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f"),vF;let VR=(vF=class extends et{constructor(t,e,n,r){super(),Kt(this,"_onInputSubscription"),this._univerInstanceService=t,this._renderManagerService=e,this._textSelectionManagerService=n,this._commandService=r,this._commandExecutedListener()}dispose(){var t;super.dispose(),(t=this._onInputSubscription)==null||t.unsubscribe()}_commandExecutedListener(){const t=[Df.id,k0.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(!t.includes(e.id))return;const n=e.params;switch(e.id){case Df.id:return this._handleMoveCursor(n.direction);case k0.id:return this._handleShiftMoveSelection(n.direction);default:throw new Error("Unknown command")}}))}_handleShiftMoveSelection(t){var e,n,r;const i=this._textSelectionManagerService.getActiveTextRange(),a=this._textSelectionManagerService.getCurrentTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return;const s=(e=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:e.with(zi).getSkeleton(),l=this._getDocObject();if(i==null||s==null||l==null)return;const{startOffset:u,endOffset:c,style:d,collapsed:h,direction:f,segmentId:m,startNodePosition:g,endNodePosition:p,segmentPage:v}=i;if(a.length>1){let b=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY;for(const A of a)b=Math.min(b,A.startOffset),y=Math.max(y,A.endOffset);this._textSelectionManagerService.replaceTextRanges([{startOffset:t===ut.LEFT||t===ut.UP?y:b,endOffset:t===ut.LEFT||t===ut.UP?b:y,style:d}],!1);return}const _=h||f===Ws.FORWARD?u:c;let C=h||f===Ws.FORWARD?c:u;const S=(n=o.getSelfOrHeaderFooterModel(m).getBody().dataStream.length)!=null?n:Number.POSITIVE_INFINITY;if(t===ut.LEFT||t===ut.RIGHT){const b=s.findNodeByCharIndex(C-1,m,v),y=s.findNodeByCharIndex(C,m,v);C=t===ut.RIGHT?C+y.count:C-((r=b==null?void 0:b.count)!=null?r:0),C=Math.min(S-2,Math.max(0,C)),this._textSelectionManagerService.replaceTextRanges([{startOffset:_,endOffset:C,style:d}],!1),this._scrollToFocusNodePosition(o.getUnitId(),C)}else{const b=s.findNodeByCharIndex(C,m,v),y=l.document.getOffsetConfig(),A=h?g:f===Ws.FORWARD?p:g,w=this._getTopOrBottomPosition(s,b,A,t===ut.DOWN,!0);if(w==null){const M=t===ut.UP?0:S-2;if(M===C)return;this._textSelectionManagerService.replaceTextRanges([{startOffset:_,endOffset:M,style:d}],!1);return}const P=new hh(y,s).getRangePointData(w,w).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{startOffset:_,endOffset:P.endOffset,style:d}],!1),this._scrollToFocusNodePosition(o.getUnitId(),P.endOffset)}}_handleMoveCursor(t){var e,n,r,i;const a=this._textSelectionManagerService.getActiveTextRange(),o=this._textSelectionManagerService.getCurrentTextRanges(),s=this._univerInstanceService.getCurrentUniverDocInstance();if(s==null)return!1;const l=(e=this._renderManagerService.getRenderById(s.getUnitId()))==null?void 0:e.with(zi).getSkeleton(),u=this._getDocObject();if(a==null||l==null||u==null||o==null)return;const{startOffset:c,endOffset:d,style:h,collapsed:f,segmentId:m,startNodePosition:g,endNodePosition:p,segmentPage:v}=a,_=s.getSelfOrHeaderFooterModel(m).getBody();if(_==null)return;const C=(n=_.dataStream.length)!=null?n:Number.POSITIVE_INFINITY,S=(r=s.getCustomRanges())!=null?r:[];if(t===ut.LEFT||t===ut.RIGHT){let b;if(!a.collapsed||o.length>1){let A=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY;for(const P of o)A=Math.min(A,P.startOffset),w=Math.max(w,P.endOffset);b=t===ut.LEFT?A:w}else{const A=l.findNodeByCharIndex(c-1,m,v),w=l.findNodeByCharIndex(c,m,v),P=l.findNodeByCharIndex(c+1,m,v);t===ut.LEFT?b=Math.max(0,c-((i=A==null?void 0:A.count)!=null?i:1)):b=Math.min(C-2,d+w.count+((P==null?void 0:P.streamType)===wt.SECTION_BREAK?1:0))}const y=[wt.CUSTOM_RANGE_START,wt.CUSTOM_RANGE_END,wt.TABLE_START,wt.TABLE_END,wt.TABLE_ROW_START,wt.TABLE_ROW_END,wt.TABLE_CELL_START,wt.TABLE_CELL_END,wt.SECTION_BREAK];if(t===ut.LEFT)for(;y.includes(_.dataStream[b]);)b--;else for(;y.includes(_.dataStream[b]);)b++;S.filter(A=>A.wholeEntity&&A.startIndex<b&&A.endIndex>=b).forEach(A=>{t===ut.LEFT?b=Math.min(A.startIndex,b):b=Math.max(A.endIndex+1,b)}),this._textSelectionManagerService.replaceTextRanges([{startOffset:b,endOffset:b,style:h}],!1),this._scrollToFocusNodePosition(s.getUnitId(),b)}else{const b=l.findNodeByCharIndex(c,m,v),y=l.findNodeByCharIndex(d,m,v),A=u.document.getOffsetConfig(),w=this._getTopOrBottomPosition(l,t===ut.UP||f?b:y,t===ut.UP||f?g:p,t===ut.DOWN);if(w==null){let M;f?M=t===ut.UP?0:C-2:M=t===ut.UP?c:d,this._textSelectionManagerService.replaceTextRanges([{startOffset:M,endOffset:M,style:h}],!1);return}const P=new hh(A,l).getRangePointData(w,w).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{...P,style:h}],!1),this._scrollToFocusNodePosition(s.getUnitId(),P.endOffset)}}_getTopOrBottomPosition(t,e,n,r,i=!1){if(e==null||n==null)return;const a=this._getGlyphLeftOffsetInLine(e),o=this._getNextOrPrevLine(e,r,i);if(o==null)return;const s=this._matchPositionByLeftOffset(t,o,a,n);if(s!=null)return{...s,isBack:!0}}_getGlyphLeftOffsetInLine(t){const e=t.parent;if(e==null)return Number.NEGATIVE_INFINITY;const n=e.left,{left:r}=t;return n+r}_matchPositionByLeftOffset(t,e,n,r){const i={distance:Number.POSITIVE_INFINITY};for(const o of e.divides){const s=o.left;for(const l of o.glyphGroup){if(l.streamType===wt.SECTION_BREAK)continue;const{left:u}=l,c=s+u,d=Math.abs(n-c);d<i.distance&&(i.glyph=l,i.distance=d)}}if(i.glyph==null)return;const{segmentPage:a}=r;return t.findPositionByGlyph(i.glyph,a)}_getNextOrPrevLine(t,e,n=!1){var r,i,a,o,s,l,u,c,d,h,f,m;const g=t.parent,p=g==null?void 0:g.parent,v=p==null?void 0:p.parent,_=v==null?void 0:v.parent,C=_==null?void 0:_.parent;if(g==null||p==null||v==null||_==null||C==null)return;const S=v.lines.indexOf(p);if(S===-1)return;let b;if(C.type===Lr.CELL&&n){const M=Oq(C,e);if(M)return M}if(e===!0){b=v.lines[S+1];const M=cBe(p,C);if(M){const L=lBe(M);L&&(b=L)}}else{b=v.lines[S-1];const M=fBe(p,C);if(M){const L=uBe(M);L&&(b=L)}}if(b!=null)return b;const y=_.columns.indexOf(v);if(y===-1)return;if(e===!0)b=(r=_.columns[y+1])==null?void 0:r.lines[0];else{const M=(a=(i=_.columns)==null?void 0:i[y-1])==null?void 0:a.lines;b=M==null?void 0:M[M.length-1]}if(b!=null)return b;const A=C.sections.indexOf(_);if(A===-1)return;if(e===!0)b=(s=(o=C.sections[A-1])==null?void 0:o.columns[0])==null?void 0:s.lines[0];else{const M=(u=(l=C.sections)==null?void 0:l[A-1])==null?void 0:u.columns,L=M==null?void 0:M[M.length-1],k=L==null?void 0:L.lines;b=k==null?void 0:k[k.length-1]}if(b!=null)return b;if(C.type===Lr.CELL)return Oq(C,e);const w=C.parent;if(w==null)return;const P=w.pages.indexOf(C);if(P!==-1){if(e===!0)b=(h=(d=(c=w.pages[P+1])==null?void 0:c.sections[0])==null?void 0:d.columns[0])==null?void 0:h.lines[0];else{const M=(f=w.pages[P-1])==null?void 0:f.sections;if(M==null)return;const L=(m=M[M.length-1])==null?void 0:m.columns,k=L[L.length-1],O=k==null?void 0:k.lines;b=O[O.length-1]}if(b!=null)return b}}_scrollToFocusNodePosition(t,e){var n;const r=(n=this._renderManagerService.getRenderById(t))==null?void 0:n.with(BI);r!=null&&r.scrollToRange({startOffset:e,endOffset:e,collapsed:!0})}_getDocObject(){return Gke(this._univerInstanceService,this._renderManagerService)}},he(vF,"DocMoveCursorController"),vF);VR=QHt([yn(Vt.Rendered,VR),Vy(0,Ce),Vy(1,Sr),Vy(2,se(Or)),Vy(3,me)],VR);function Oq(t,e){var n,r;let i=null;if(e===!0){const a=dBe(t);if(a)i=mBe(a);else{const o=(n=t.parent)==null?void 0:n.parent,{lineAfterTable:s}=xq(o);s&&(i=s)}}else{const a=hBe(t);if(a)i=gBe(a);else{const o=(r=t.parent)==null?void 0:r.parent,{lineBeforeTable:s}=xq(o);s&&(i=s)}}return i}he(Oq,"findAboveOrBellowCellLine");const KHt="univer-create",ZHt="univer-create-item",JHt="univer-create-label",ejt="univer-create-input",T2={create:KHt,createItem:ZHt,createLabel:JHt,createInput:ejt},tjt=he(({handleRowColChange:t,tableCreateParams:e})=>{const n=Ne(sn),[r,i]=E.useState(3),[a,o]=E.useState(5);function s(l,u){i(l),o(u),t(l,u)}return he(s,"handleInputChange"),E.useEffect(()=>{i(e.rowCount),o(e.colCount)},[e]),qn.jsxs("div",{className:T2.create,children:[qn.jsxs("div",{className:T2.createItem,children:[qn.jsx("span",{className:T2.createLabel,children:n.t("toolbar.table.rowCount")}),qn.jsx(uh,{min:1,max:20,precision:0,value:r,onChange:he(l=>{s(l,a)},"onChange"),className:T2.createInput})]}),qn.jsxs("div",{className:T2.createItem,children:[qn.jsx("span",{className:T2.createLabel,children:n.t("toolbar.table.colCount")}),qn.jsx(uh,{min:1,max:20,precision:0,value:a,onChange:he(l=>{s(r,l)},"onChange"),className:T2.createInput})]})]})},"DocCreateTableConfirm");var njt=Object.defineProperty,rjt=Object.getOwnPropertyDescriptor,ijt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?rjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&njt(e,n,i),i},"__decorateClass$e"),Ole=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e"),_F;let BR=(_F=class extends et{constructor(t,e){super(),this._commandService=t,this._componentManager=e,this._initialize()}_initialize(){this._init(),this._registerCommands(),this._initCustomComponents()}_registerCommands(){[Hte].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(FFe,tjt))}_init(){}},he(_F,"DocTableController"),_F);BR=ijt([yn(Vt.Rendered,BR),Ole(0,me),Ole(1,se(ja))],BR);const Nle=4;var ajt=Object.defineProperty,ojt=Object.getOwnPropertyDescriptor,sjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?ojt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ajt(e,n,i),i},"__decorateClass$d"),By=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d");function Qte(t,e){const n=Nq(t.left,t.top,e),r=Nq(t.right,t.bottom,e);return{left:n.x,top:n.y,right:r.x,bottom:r.y}}he(Qte,"transformBound2OffsetBound");function Nq(t,e,n){const{scaleX:r,scaleY:i}=n.getAncestorScale(),a=n.getViewport(f1.VIEW_MAIN);if(!a)return{x:t,y:e};const{viewportScrollX:o,viewportScrollY:s}=a,l=(t-o)*r,u=(e-s)*i;return{x:l,y:u}}he(Nq,"transformPosition2Offset");function kq(t,e,n){const{scaleX:r,scaleY:i}=n.getAncestorScale(),a=n.getViewport(f1.VIEW_MAIN);if(!a)return{x:t,y:e};const{viewportScrollX:o,viewportScrollY:s}=a,l=t/r+o,u=e/i+s;return{x:l,y:u}}he(kq,"transformOffset2Bound");const CF=he((t,e)=>{const{scene:n,mainComponent:r,engine:i}=e,a=e.with(zi).getSkeleton(),o=a.findNodePositionByCharIndex(t.startOffset,!1,t.segmentId,t.segmentPage),s=a.findNodePositionByCharIndex(t.endOffset,!1,t.segmentId,t.segmentPage),l=r;if(!s||!o)return;const u=l.getOffsetConfig(),{docsLeft:c,docsTop:d}=u,h=i.getCanvasElement(),f=h.getBoundingClientRect(),m=zh(h.style.width),{top:g,left:p,width:v}=f,_=v/m,{scaleX:C,scaleY:S}=n.getAncestorScale(),b=new hh(u,a),{borderBoxPointGroup:y}=b.getRangePointData(o,s);return o9(y).map(A=>Qte(A,n)).map(A=>({left:(A.left+c*C)*_+p,right:(A.right+c*C)*_+p,top:(A.top+d*S)*_+g,bottom:(A.bottom+d*S)*_+g}))},"calcDocRangePositions$1");var SF;let Fq=(SF=class extends et{constructor(t,e,n,r){super(),this._globalPopupManagerService=t,this._renderManagerService=e,this._univerInstanceService=n,this._commandService=r}_createObjectPositionObserver(t,e){const n=he(()=>{const{scene:s,engine:l}=e,{left:u,top:c,width:d,height:h}=t,f={left:u,right:u+d,top:c,bottom:c+h},m=l.getCanvasElement(),g=m.getBoundingClientRect(),p=zh(m.style.width),v=Qte(f,s),{top:_,left:C,width:S}=g,b=S/p;return{left:v.left*b+C,right:v.right*b+C,top:v.top*b+_,bottom:v.bottom*b+_}},"calc"),r=n(),i=new Pn(r),a=new Gi;a.add(this._commandService.onCommandExecuted(s=>{s.id===Jd.id&&i.next(n())}));const o=e.scene.getViewport(f1.VIEW_MAIN);return o&&a.add(o.onScrollAfter$.subscribeEvent(()=>{i.next(n())})),{position:r,position$:i,disposable:a}}_createRangePositionObserver(t,e){var n;const r=(n=CF(t,e))!=null?n:[],i=new Pn(r),a=new Gi;a.add(this._commandService.onCommandExecuted(s=>{if(s.id===Jd.id){const l=CF(t,e);l&&i.next(l)}}));const o=e.scene.getViewport(f1.VIEW_MAIN);return o&&a.add(o.onScrollAfter$.subscribeEvent(()=>{const s=CF(t,e);s&&i.next(s)})),{positions:r,positions$:i,disposable:a}}attachPopupToObject(t,e,n){const r=this._renderManagerService.getRenderById(n);if(!r)throw new Error(`Current render not found, unitId: ${n}`);const{position:i,position$:a,disposable:o}=this._createObjectPositionObserver(t,r),s=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:i,anchorRect$:a,canvasElement:r.engine.getCanvasElement()});return{dispose:he(()=>{this._globalPopupManagerService.removePopup(s),a.complete(),o.dispose()},"dispose")}}attachPopupToRange(t,e,n){if(!this._univerInstanceService.getUnit(n))throw new Error(`Document not found, unitId: ${n}`);const{direction:r="top",multipleDirection:i}=e,a=this._renderManagerService.getRenderById(n);if(!a)throw new Error(`Current render not found, unitId: ${n}`);const{positions:o,positions$:s,disposable:l}=this._createRangePositionObserver(t,a),u=s.pipe(pr(d=>r.includes("top")?d[0]:d[d.length-1])),c=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:r.includes("top")?o[0]:o[o.length-1],anchorRect$:u,excludeRects:o,excludeRects$:s,direction:r.includes("top")||r.includes("bottom")?o.length>1?i:r:"bottom",canvasElement:a.engine.getCanvasElement()});return{dispose:he(()=>{this._globalPopupManagerService.removePopup(c),s.complete(),l.dispose()},"dispose"),canDispose:he(()=>this._globalPopupManagerService.activePopupId!==c,"canDispose")}}},he(SF,"DocCanvasPopManagerService"),SF);Fq=sjt([By(0,se(zS)),By(1,Sr),By(2,Ce),By(3,me)],Fq);var ljt=Object.defineProperty,ujt=Object.getOwnPropertyDescriptor,cjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?ujt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ljt(e,n,i),i},"__decorateClass$c"),djt=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c");const hjt=he((t,e,n,r)=>{var i,a,o,s,l;const u=n.findNodePositionByCharIndex(t.startOffset,!1,t.segmentId,r),c=n.getSkeletonData();let d=t.endOffset;if(t.segmentId){const p=(l=Array.from((a=(i=c==null?void 0:c.skeFooters.get(t.segmentId))==null?void 0:i.values())!=null?a:[])[0])!=null?l:Array.from((s=(o=c==null?void 0:c.skeHeaders.get(t.segmentId))==null?void 0:o.values())!=null?s:[])[0];p&&(d=Math.min(p.ed,d))}const h=n.findNodePositionByCharIndex(d,!1,t.segmentId,r);if(!h||!u)return;const f=e.getOffsetConfig(),m=new hh(f,n),{borderBoxPointGroup:g}=m.getRangePointData(u,h);return o9(g).map(p=>({top:p.top+f.docsTop-Nle,bottom:p.bottom+f.docsTop+Nle,left:p.left+f.docsLeft,right:p.right+f.docsLeft}))},"calcDocRangePositions"),fjt=he((t,e,n,r=-1)=>{const i=n.findPositionByGlyph(t,r);if(!i)return;const a=e.getOffsetConfig(),o={...i,isBack:!0},s=new hh(a,n),{borderBoxPointGroup:l}=s.getRangePointData(o,o),u=o9(l)[0];return{top:u.top+a.docsTop,bottom:u.bottom+a.docsTop,left:u.left+a.docsLeft,right:u.left+a.docsLeft+t.width}},"calcDocGlyphPosition");var bF;let HI=(bF=class extends et{constructor(t,e){super(),Kt(this,"_hoverCustomRanges$",new Pn([])),Kt(this,"hoverCustomRanges$",this._hoverCustomRanges$.pipe(Hl((n,r)=>n.length===r.length&&n.every((i,a)=>r[a].range.rangeId===i.range.rangeId&&r[a].segmentId===i.segmentId&&r[a].segmentPageIndex===i.segmentPageIndex)))),Kt(this,"_clickCustomRanges$",new Zt),Kt(this,"clickCustomRanges$",this._clickCustomRanges$.asObservable()),Kt(this,"_hoverBullet$",new Zt),Kt(this,"hoverBullet$",this._hoverBullet$.pipe(Hl((n,r)=>(n==null?void 0:n.paragraph.startIndex)===(r==null?void 0:r.paragraph.startIndex)&&(n==null?void 0:n.segmentId)===(r==null?void 0:r.segmentId)&&(n==null?void 0:n.segmentPageIndex)===(r==null?void 0:r.segmentPageIndex)))),Kt(this,"_clickBullet$",new Zt),Kt(this,"clickBullets$",this._clickBullet$.asObservable()),Kt(this,"_customRangeDirty",!0),Kt(this,"_bulletDirty",!0),Kt(this,"_customRangeBounds",[]),Kt(this,"_bulletBounds",[]),this._context=t,this._docSkeletonManagerService=e,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 t=Yn.TEXT;this.disposeWithMe(this.hoverCustomRanges$.subscribe(e=>{e.length?(t=this._context.scene.getCursor(),this._context.scene.setCursor(Yn.POINTER)):this._context.scene.setCursor(t)}))}_initResetDirty(){this.disposeWithMe(this._skeleton.dirty$.subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0})),this.disposeWithMe(vg(this._context.engine.onTransformChange$).pipe(mo(t=>t.type===fo.resize)).subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0}))}_initEvents(){this.disposeWithMe(vg(this._context.scene.onPointerMove$).pipe(zg(30)).subscribe(n=>{this._hoverCustomRanges$.next(this._calcActiveRanges(n)),this._hoverBullet$.next(this._calcActiveBullet(n))})),this.disposeWithMe(this._context.scene.onPointerEnter$.subscribeEvent(()=>{this._hoverBullet$.next(null),this._hoverCustomRanges$.next([])}));const t=vg(this._context.mainComponent.onPointerDown$),e=vg(this._context.scene.onPointerUp$);this.disposeWithMe(t.pipe(kP(n=>e.pipe(Rce(1),pr(r=>({down:n,up:r})))),mo(({down:n,up:r})=>n.target===r.target&&r.timeStamp-n.timeStamp<300)).subscribe(({down:n})=>{if(n.button===2)return;const r=this._calcActiveRanges(n);r.length&&this._clickCustomRanges$.next(r.pop());const i=this._calcActiveBullet(n);i&&this._clickBullet$.next(i)}))}_buildCustomRangeBoundsBySegment(t,e=-1){var n,r,i;const a=(i=(r=(n=this._context.unit.getSelfOrHeaderFooterModel(t))==null?void 0:n.getBody())==null?void 0:r.customRanges)!=null?i:[],o=[];return a.forEach(s=>{const l={startOffset:s.startIndex,endOffset:s.endIndex,collapsed:!1,segmentId:t},u=hjt(l,this._documents,this._skeleton,e);if(!u)return null;o.push({customRange:s,rects:u,segmentId:t,segmentPageIndex:e})}),o}_buildCustomRangeBounds(){var t;if(!this._customRangeDirty)return;this._customRangeDirty=!1;const e=[];e.push(...this._buildCustomRangeBoundsBySegment()),(t=this._skeleton.getSkeletonData())==null||t.pages.forEach((n,r)=>{n.headerId&&e.push(...this._buildCustomRangeBoundsBySegment(n.headerId,r)),n.footerId&&e.push(...this._buildCustomRangeBoundsBySegment(n.footerId,r))}),this._customRangeBounds=e}_calcActiveRanges(t){this._buildCustomRangeBounds();const{offsetX:e,offsetY:n}=t,{x:r,y:i}=kq(e,n,this._context.scene);return this._customRangeBounds.filter(a=>a.rects.some(o=>{const{left:s,right:l,top:u,bottom:c}=o;return r>=s&&r<=l&&i>=u&&i<=c})).map(a=>({segmentId:a.segmentId,range:a.customRange,segmentPageIndex:a.segmentPageIndex,rects:a.rects}))}_buildBulletBoundsBySegment(t,e=-1){var n,r,i,a,o;const s=(n=this._context.unit.getSelfOrHeaderFooterModel(t))==null?void 0:n.getBody(),l=((r=s==null?void 0:s.paragraphs)!=null?r:[]).filter(h=>h.bullet&&h.bullet.listType.indexOf("CHECK_LIST")===0),u=[],c=this._skeleton.getSkeletonData();if(!c)return u;const d=he(h=>{var f,m,g;for(const p of h){const v=[...p.sections];if(p.skeTables){const _=Array.from(p.skeTables.values());v.push(..._.map(C=>C.rows.map(S=>S.cells.map(b=>b.sections))).flat(4))}for(const _ of v)for(const C of _.columns)for(const S of C.lines)if(S.paragraphStart){const b=l.find(y=>y.startIndex===S.paragraphIndex);if(b){const y=S,A=(g=(m=(f=y==null?void 0:y.divides)==null?void 0:f[0])==null?void 0:m.glyphGroup)==null?void 0:g[0];if(!A)continue;const w=fjt(A,this._documents,this._skeleton,e);if(!w)continue;u.push({rect:w,segmentId:t,segmentPageIndex:e,paragraph:b})}}}return u},"calc");if(t){const h=(o=(i=c.skeFooters.get(t))==null?void 0:i.values())!=null?o:(a=c.skeHeaders.get(t))==null?void 0:a.values();return h?d(Array.from(h)):u}return d(c.pages)}_buildBulletBounds(){var t;this._bulletDirty&&(this._bulletDirty=!1,this._bulletBounds=[],this._bulletBounds.push(...this._buildBulletBoundsBySegment()),(t=this._skeleton.getSkeletonData())==null||t.pages.forEach((e,n)=>{e.headerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(e.headerId,n)),e.footerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(e.footerId,n))}))}_calcActiveBullet(t){this._buildBulletBounds();const{offsetX:e,offsetY:n}=t,{x:r,y:i}=kq(e,n,this._context.scene);return this._bulletBounds.find(a=>{const{left:o,right:s,top:l,bottom:u}=a.rect;return r>=o&&r<=s&&i>=l&&i<=u})}},he(bF,"DocEventManagerService"),bF);HI=cjt([djt(1,se(zi))],HI);var mjt=Object.defineProperty,gjt=Object.getOwnPropertyDescriptor,pjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?gjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&mjt(e,n,i),i},"__decorateClass$b"),Uy=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b"),yF;let Vq=(yF=class extends et{constructor(t,e,n,r,i){super(),this._context=t,this._docSkeletonManagerService=e,this._commandService=n,this._docEventManagerService=r,this._textSelectionManagerService=i,this._initPointerDownObserver(),this._initHoverCursor()}_initPointerDownObserver(){this._docEventManagerService.clickBullets$.subscribe(t=>{this._commandService.executeCommand(PFe.id,{index:t.paragraph.startIndex,segmentId:t.segmentId})})}_initHoverCursor(){this.disposeWithMe(this._docEventManagerService.hoverBullet$.subscribe(t=>{t?this._context.mainComponent.setCursor(Yn.POINTER):this._context.mainComponent.setCursor(Yn.TEXT)}))}_getTransformCoordForDocumentOffset(t,e,n,r){const{documentTransform:i}=t.getOffsetConfig(),a=e.transformVector2SceneCoord(cn.FromArray([n,r]));if(a)return i.clone().invert().applyPoint(a)}},he(yF,"DocChecklistRenderController"),yF);Vq=pjt([Uy(1,se(zi)),Uy(2,me),Uy(3,se(HI)),Uy(4,se(Or))],Vq);var vjt=Object.defineProperty,_jt=Object.getOwnPropertyDescriptor,Cjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?_jt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&vjt(e,n,i),i},"__decorateClass$a"),Hy=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),EF;let jI=(EF=class extends Da{constructor(t,e,n,r,i){super(),this._context=t,this._commandService=e,this._docClipboardService=n,this._docSelectionRenderService=r,this._contextService=i,this._init()}_init(){this._initLegacyPasteCommand()}_initLegacyPasteCommand(){var t;(t=this._docSelectionRenderService)==null||t.onPaste$.pipe(_a(this.dispose$)).subscribe(e=>{var n,r;if(!QS(this._contextService))return;e.event.preventDefault();const i=e.event;let a=(n=i.clipboardData)==null?void 0:n.getData("text/html");const o=(r=i.clipboardData)==null?void 0:r.getData("text/plain");RFe(this._contextService)&&(a??"").indexOf("</table>")>-1&&(a=""),this._docClipboardService.legacyPaste(a,o)})}},he(EF,"DocClipboardController"),EF);jI=Cjt([Hy(1,me),Hy(2,GS),Hy(3,se(Ms)),Hy(4,ui)],jI);var Sjt=Object.defineProperty,bjt=Object.getOwnPropertyDescriptor,yjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?bjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Sjt(e,n,i),i},"__decorateClass$9"),kle=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9");const Ejt=[Sd,Ki,Yo,IX];var RF;let Bq=(RF=class extends et{constructor(t,e,n){super(),this._context=t,this._contextMenuService=e,this._commandService=n,Ejt.includes(this._context.unitId)||(this._initPointerDown(),this._initEditChange())}_initPointerDown(){var t,e;const n=((e=(t=this._context)==null?void 0:t.mainComponent)==null?void 0:e.onPointerDown$).subscribeEvent(r=>{r.button===2&&this._contextMenuService.triggerContextMenu(r,Xa.MAIN_AREA)});this.disposeWithMe(n)}_initEditChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{t.id===Oi.id&&this._contextMenuService.visible&&this._contextMenuService.hideContextMenu()}))}},he(RF,"DocContextMenuRenderController"),RF);Bq=yjt([kle(1,tm),kle(2,me)],Bq);var Rjt=Object.defineProperty,Ajt=Object.getOwnPropertyDescriptor,wjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Ajt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Rjt(e,n,i),i},"__decorateClass$8"),x3=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8"),AF;let $I=(AF=class extends et{constructor(t,e,n,r,i,a,o){super(),Kt(this,"_initialEditors",new Set),this._context=t,this._univerInstanceService=e,this._editorService=n,this._commandService=r,this._docSelectionRenderService=i,this._docSkeletonManagerService=a,this._renderManagerService=o,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.editorUnitId;e===this._context.unitId&&(this._initialEditors.has(e)||(this._initialEditors.add(e),this._resize(e)))}),this._commandExecutedListener(),this._initialSetValue(),this._initialBlur(),this._initialFocus(),this._initialValueChange()}_resize(t){var e,n;if(t==null)return;const r=this._editorService.getEditor(t);if((r==null?void 0:r.cancelDefaultResizeListener)===!0)return;const i=this._univerInstanceService.getUniverDocInstance(t);if(!i)return;const a=this._docSkeletonManagerService.getSkeleton();if(r==null||r.render==null||a==null||i==null)return;a.calculate();const{marginTop:o=0,marginBottom:s=0,marginLeft:l=0,marginRight:u=0}=i.getSnapshot().documentStyle,{scene:c,mainComponent:d}=r.render;let{actualHeight:h,actualWidth:f}=a.getActualSize();h+=o+s,f+=l+u;const{width:m,height:g}=r.getBoundingClientRect(),p=c.getViewport(f1.VIEW_MAIN);let v=p==null?void 0:p.getScrollBar();const _=Math.max(f,m),C=Math.max(h,g);c.transformByState({width:_,height:C}),d==null||d.resize(_,C),r.isSingle()?f>m?v==null?p&&new G4(p,{barSize:8,enableVertical:!1}):p==null||p.resetCanvasSizeAndUpdateScroll():(v=null,p==null||p.scrollToBarPos({x:0,y:0}),(n=p==null?void 0:p.getScrollBar())==null||n.dispose()):h>g?v==null?p&&new G4(p,{enableHorizontal:!1,barSize:8}):p==null||p.resetCanvasSizeAndUpdateScroll():(v=null,p==null||p.scrollToBarPos({x:0,y:0}),(e=p==null?void 0:p.getScrollBar())==null||e.dispose())}_initialSetValue(){this.disposeWithMe(this._editorService.setValue$.subscribe(t=>{t.editorUnitId===this._context.unitId&&this._commandService.executeCommand(Tte.id,{unitId:t.editorUnitId,body:t.body,segmentId:null})}))}_initialBlur(){this.disposeWithMe(this._editorService.blur$.subscribe(()=>{this._docSelectionRenderService.removeAllRanges(),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.editorUnitId===t||this._editorService.blur()}))}_initialFocus(){this.disposeWithMe(this._editorService.focus$.subscribe(e=>{var n;((n=this._editorService.getFocusEditor())==null?void 0:n.editorUnitId)===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),this._docSelectionRenderService.addDocRanges([e]))}));const t=["univer-formula-search","univer-formula-help","formula-help-decorator","univer-formula-help-param"];this.disposeWithMe(su(window,"mousedown").subscribe(e=>{const n=e.target.classList[0]||"";if(L1e(n,t)){this._editorService.changeSpreadsheetFocusState(!0),e.stopPropagation();return}this._editorService.changeSpreadsheetFocusState(!1)})),this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(e=>{const n=e.getUnitId(),r=this._renderManagerService.getRenderById(n),i=r==null?void 0:r.engine.getCanvas().getCanvasEle();i!=null&&su(i,"mousedown").subscribe(a=>{this._editorService.changeSpreadsheetFocusState(!0),a.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=[Oi.id,VS.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:r}=n;if(this._editorService.isSheetEditor(r)||r!==this._context.unitId)return;this._resize(r),this._valueChange()}}))}},he(AF,"DocEditorBridgeController"),AF);$I=wjt([x3(1,Ce),x3(2,Fo),x3(3,me),x3(4,se(Ms)),x3(5,se(zi)),x3(6,Sr)],$I);var Djt=Object.defineProperty,Ijt=Object.getOwnPropertyDescriptor,Pjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Ijt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Djt(e,n,i),i},"__decorateClass$7"),Q9=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),wF;let Uq=(wF=class extends et{constructor(t,e,n,r,i,a){super(),Kt(this,"_previousIMEContent",""),Kt(this,"_isCompositionStart",!0),Kt(this,"_onStartSubscription"),Kt(this,"_onUpdateSubscription"),Kt(this,"_onEndSubscription"),this._context=t,this._univerInstanceService=e,this._renderManagerSrv=n,this._docSelectionRenderService=r,this._docImeInputManagerService=i,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(Ie.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){var n;if(t==null)return;const r=this._univerInstanceService.getCurrentUniverDocInstance();if(!r)return;const i=(n=this._renderManagerSrv.getRenderById(r.getUnitId()))==null?void 0:n.with(zi).getSkeleton(),{event:a,activeRange:o}=t;if(i==null||o==null)return;const s=a.data;s===this._previousIMEContent&&e||(await this._commandService.executeCommand(Pte.id,{unitId:r.getUnitId(),newText:s,oldTextLen:this._previousIMEContent.length,isCompositionStart:this._isCompositionStart,isCompositionEnd:!e}),e?(this._isCompositionStart&&(this._isCompositionStart=!1),this._previousIMEContent=s):this._resetIME())}_resetIME(){this._previousIMEContent="",this._isCompositionStart=!0,this._docImeInputManagerService.clearUndoRedoMutationParamsCache(),this._docImeInputManagerService.setActiveRange(null)}},he(wF,"DocIMEInputController"),wF);Uq=Pjt([Q9(1,Ce),Q9(2,Sr),Q9(3,se(Ms)),Q9(4,se(HL)),Q9(5,me)],Uq);var Mjt=Object.defineProperty,Tjt=Object.getOwnPropertyDescriptor,Ljt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Tjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Mjt(e,n,i),i},"__decorateClass$6"),DF=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),IF;let Hq=(IF=class extends et{constructor(t,e,n,r){super(),Kt(this,"_onInputSubscription"),this._context=t,this._docSelectionRenderService=e,this._docSkeletonManagerService=n,this._commandService=r,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=>{if(t==null)return;const e=this._context.unitId,{event:n,content:r="",activeRange:i}=t,a=n,o=this._docSkeletonManagerService.getSkeleton();if(a.data==null||o==null||!o||!i)return;const{segmentId:s}=i,l=[Yo,IX,Ki];await this._commandService.executeCommand(U_.id,{unitId:e,body:{dataStream:r},range:i,segmentId:s,extendLastRange:l.includes(e)}),r===" "&&await this._commandService.executeCommand(xL.id)})}},he(IF,"DocInputController"),IF);Hq=Ljt([DF(1,se(Ms)),DF(2,se(zi)),DF(3,me)],Hq);const pBe=class extends et{constructor(e){super(),this._context=e}calculatePagePosition(){var e,n;const r=hf(this._context),i=(n=(e=this._context.unit.getSettings())==null?void 0:e.zoomRatio)!=null?n:1,{document:a,scene:o,docBackground:s}=r,l=o==null?void 0:o.getParent(),{width:u,height:c,pageMarginLeft:d,pageMarginTop:h}=a;if(l==null||u===Number.POSITIVE_INFINITY||c===Number.POSITIVE_INFINITY)return;const{width:f,height:m}=l;let g=0,p=0,v=0,_=0,C=Number.POSITIVE_INFINITY;f>(u+d*2)*i?(g=f/2-u*i/2,g/=i,v=(f-d*2)/i,C=0):(g=d,v=u+d*2,C=(v-f/i)/2),m>c?(p=m/2-c/2,_=(m-h*2)/i):(p=h,_=c+h*2),o.resize(v,_+200),a.translate(g,p),s.translate(g,p);const S=o.getViewport(f1.VIEW_MAIN);return C!==Number.POSITIVE_INFINITY&&S!=null&&S.scrollToViewportPos({viewportScrollX:C}),this}};he(pBe,"DocPageLayoutService");let Kte=pBe;var xjt=Object.defineProperty,Ojt=Object.getOwnPropertyDescriptor,Njt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Ojt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&xjt(e,n,i),i},"__decorateClass$5"),Fle=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),PF;let jq=(PF=class extends et{constructor(t,e,n){super(),this._context=t,this._docPageLayoutService=e,this._textSelectionManagerService=n;const r=this._context.unitId;if(oh(r)&&r!==IX)return this;this._initResize()}_initResize(){this.disposeWithMe(vg(this._context.engine.onTransformChange$).pipe(mo(t=>t.type===fo.resize),zg(0,eH)).subscribe(()=>{this._docPageLayoutService.calculatePagePosition(),this._textSelectionManagerService.refreshSelection()}))}},he(PF,"DocResizeRenderController"),PF);jq=Njt([Fle(1,se(Kte)),Fle(2,se(Or))],jq);var kjt=Object.defineProperty,Fjt=Object.getOwnPropertyDescriptor,Vjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Fjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kjt(e,n,i),i},"__decorateClass$4"),O3=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),MF;let $q=(MF=class extends et{constructor(t,e,n,r,i,a,o){super(),Kt(this,"_loadedMap",new WeakSet),this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=r,this._docSelectionRenderService=i,this._docSkeletonManagerService=a,this._docSelectionManagerService=o,this._initialize()}_initialize(){this._init(),this._skeletonListener(),this._commandExecutedListener(),this._refreshListener(),this._syncSelection()}_init(){const{unitId:t}=this._context,e=hf(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:r,options:i}=t;e===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),n.length&&this._docSelectionRenderService.addDocRanges(n,r,i))}))}_syncSelection(){this.disposeWithMe(this._docSelectionRenderService.textSelectionInner$.subscribe(t=>{t!=null&&this._docSelectionManagerService.__replaceTextRangesWithNoRefresh(t)}))}_initialMain(t){const e=hf(this._context),{document:n,scene:r}=e;this.disposeWithMe(n.onPointerEnter$.subscribeEvent(()=>{this._isEditorReadOnly(t)||(n.cursor=Yn.TEXT)})),this.disposeWithMe(n.onPointerLeave$.subscribeEvent(()=>{n.cursor=Yn.DEFAULT,r.resetCursor()})),this.disposeWithMe(n.onPointerDown$.subscribeEvent((i,a)=>{if(this._isEditorReadOnly(t))return;const o=this._instanceSrv.getCurrentUnitForType(le.UNIVER_DOC);(o==null?void 0:o.getUnitId())!==t&&this._instanceSrv.setCurrentUnitForType(t);const s=this._docSkeletonManagerService.getSkeleton(),{offsetX:l,offsetY:u}=i,c=this._getTransformCoordForDocumentOffset(l,u);if(c!=null){const{pageLayoutType:d=cc.VERTICAL,pageMarginLeft:h,pageMarginTop:f}=n.getOffsetConfig(),{editArea:m}=s.findEditAreaByCoord(c,d,h,f),g=this._docSkeletonManagerService.getViewModel(),p=g.getEditArea();p!==Ya.BODY&&m!==Ya.BODY&&m!==p&&g.setEditArea(m)}if(this._docSelectionRenderService.__onPointDown(i),this._editorService.getEditor(t)){this._setEditorFocus(t);const{offsetX:d,offsetY:h}=i;setTimeout(()=>{t!==this._editorService.getFocusId()&&(this._setEditorFocus(t),this._docSelectionRenderService.setCursorManually(d,h))},0)}i.button!==2&&a.stopPropagation()})),this.disposeWithMe(n.onDblclick$.subscribeEvent(i=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleDblClick(i)})),this.disposeWithMe(n.onTripleClick$.subscribeEvent(i=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleTripleClick(i)}))}_getTransformCoordForDocumentOffset(t,e){const n=hf(this._context),{document:r,scene:i}=n,{documentTransform:a}=r.getOffsetConfig(),o=i.getViewports()[0];if(o==null)return;const s=o.transformVector2SceneCoord(cn.FromArray([t,e]));return a.clone().invert().applyPoint(s)}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_setEditorFocus(t){this._editorService.focusStyle(t)}_commandExecutedListener(){const t=[Jd.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{var n;if(t.includes(e.id)){const r=e.params,{unitId:i}=r,a=(n=this._docSelectionManagerService.getCurrentSelection())==null?void 0:n.unitId;if(i!==a)return;this._docSelectionManagerService.refreshSelection()}}))}_skeletonListener(){let t=!1;this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(e=>{if(!e)return;const{unitId:n}=this._context,r=oh(n);(t||!oh(this._context.unitId))&&(r||this._docSelectionManagerService.replaceTextRanges([{startOffset:0,endOffset:0}],!1)),t=!0}))}},he(MF,"DocSelectionRenderController"),MF);$q=Vjt([O3(1,me),O3(2,Fo),O3(3,Ce),O3(4,se(Ms)),O3(5,se(zi)),O3(6,se(Or))],$q);var Bjt=Object.defineProperty,Ujt=Object.getOwnPropertyDescriptor,Hjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?Ujt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Bjt(e,n,i),i},"__decorateClass$3"),L2=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),TF;let Wq=(TF=class extends et{constructor(t,e,n,r,i,a,o,s){super(),this._context=t,this._contextService=e,this._docSkeletonManagerService=n,this._univerInstanceService=r,this._commandService=i,this._textSelectionManagerService=a,this._editorService=o,this._docPageLayoutService=s,this._initSkeletonListener(),this._initCommandExecutedListener(),this._initRenderRefresher(),setTimeout(()=>this.updateViewZoom(1,!0),20)}_initRenderRefresher(){this._docSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(t==null)return;const{unitId:e,scene:n}=this._context;this._editorService.isEditor(e)||this.disposeWithMe(n.onMouseWheel$.subscribeEvent(r=>{if(!r.ctrlKey||!this._contextService.getContextValue(K1))return;const i=this._univerInstanceService.getCurrentUniverDocInstance();if(!i)return;const a=Math.abs(r.deltaX);let o=a<40?.2:a<80?.4:.2;o*=r.deltaY>0?-1:1,n.scaleX<1&&(o/=2);const s=i.zoomRatio;let l=+Number.parseFloat(`${s+o}`).toFixed(1);l=l>=4?4:l<=.1?.1:l,this._commandService.executeCommand(xFe.id,{zoomRatio:l,unitId:i.getUnitId()}),r.preventDefault()}))})}_initSkeletonListener(){this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(t==null)return;const e=this._univerInstanceService.getCurrentUniverDocInstance();if(!e)return;const n=e.zoomRatio||1;this.updateViewZoom(n,!1)}))}_initCommandExecutedListener(){const t=[Jd.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)&&e.params.unitId===this._context.unitId){const n=this._context.unit.zoomRatio||1;this.updateViewZoom(n)}}))}updateViewZoom(t,e=!0){var n;const r=hf(this._context);r.scene.scale(t,t),this._docPageLayoutService.calculatePagePosition(),e&&!this._editorService.isEditor(this._context.unitId)&&this._textSelectionManagerService.refreshSelection(),(n=r.scene.getTransformer())==null||n.clearSelectedObjects()}},he(TF,"DocZoomRenderController"),TF);Wq=Hjt([L2(1,ui),L2(2,se(zi)),L2(3,Ce),L2(4,me),L2(5,se(Or)),L2(6,Fo),L2(7,se(Kte))],Wq);var jjt=Object.defineProperty,$jt=Object.getOwnPropertyDescriptor,Wjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?$jt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&jjt(e,n,i),i},"__decorateClass$2"),K9=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const Vle=300;var LF;let UR=(LF=class extends Da{constructor(t,e,n,r,i){super(),Kt(this,"_docStateChange$",new Pn(null)),Kt(this,"docStateChange$",this._docStateChange$.asObservable()),Kt(this,"_historyStateCache",new Map),Kt(this,"_changeStateCache",new Map),Kt(this,"_historyTimer",null),Kt(this,"_changeStateCacheTimer",null),this._undoRedoService=t,this._commandService=e,this._univerInstanceService=n,this._docStateEmitService=r,this._renderManagerService=i,this._initialize(),this._listenDocStateChange()}_setChangeState(t){this._cacheChangeState(t,"history"),this._cacheChangeState(t,"collaboration")}_initialize(){this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{if(t.id===jH||t.id===HH){const e=this._univerInstanceService.getCurrentUniverDocInstance();if(e==null)return;const n=e.getUnitId();this._pushHistory(n),this._emitChangeState(n)}}))}_listenDocStateChange(){this._docStateEmitService.docStateChangeParams$.pipe(_a(this.dispose$)).subscribe(t=>{var e;if(t==null)return;const{isCompositionEnd:n,...r}=t,i=(e=this._renderManagerService.getRenderById(t.unitId))==null?void 0:e.with(HL);if(i!=null){if(n){const a=i.fetchComposedUndoRedoMutationParams();if(a==null)throw new Error("historyParams is null in RichTextEditingMutation");const{undoMutationParams:o,redoMutationParams:s,previousActiveRange:l}=a;r.redoState.actions=s.actions,r.undoState.actions=o.actions,r.undoState.textRanges=[l]}this._setChangeState(r)}})}_cacheChangeState(t,e="history"){const{trigger:n,unitId:r,noHistory:i,debounce:a=!1}=t;if(i||n==null||e==="history"&&(n===HH||n===jH))return;const o=e==="history"?this._historyStateCache:this._changeStateCache,s=e==="history"?this._pushHistory.bind(this):this._emitChangeState.bind(this);if(o.has(r)){const l=o.get(r);l==null||l.push(t)}else o.set(r,[t]);a?e==="history"?(this._historyTimer&&clearTimeout(this._historyTimer),this._historyTimer=setTimeout(()=>{s(r)},Vle)):(this._changeStateCacheTimer&&clearTimeout(this._changeStateCacheTimer),this._changeStateCacheTimer=setTimeout(()=>{s(r)},Vle)):s(r)}_pushHistory(t){const e=this._undoRedoService,n=this._historyStateCache.get(t);if(!Array.isArray(n)||n.length===0)return;const r=n.length,i=n[0].commandId,a=n[0],o=n[r-1],s={unitId:t,actions:n.reduce((u,c)=>Ir.compose(u,c.redoState.actions),null),textRanges:o.redoState.textRanges},l={unitId:t,actions:n.reverse().reduce((u,c)=>Ir.compose(u,c.undoState.actions),null),textRanges:a.undoState.textRanges};e.pushUndoRedo({unitID:t,undoMutations:[{id:i,params:l}],redoMutations:[{id:i,params:s}]}),n.length=0}_emitChangeState(t){const e=this._changeStateCache.get(t);if(!Array.isArray(e)||e.length===0)return;const n=e.length,{commandId:r,trigger:i,segmentId:a,noHistory:o,debounce:s}=e[0],l=e[0],u=e[n-1],c={unitId:t,actions:e.reduce((f,m)=>Ir.compose(f,m.redoState.actions),null),textRanges:u.redoState.textRanges},d={unitId:t,actions:e.reverse().reduce((f,m)=>Ir.compose(f,m.undoState.actions),null),textRanges:l.undoState.textRanges},h={commandId:r,unitId:t,trigger:i,redoState:c,undoState:d,segmentId:a,noHistory:o,debounce:s};e.length=0,this._docStateChange$.next(h)}},he(LF,"DocStateChangeManagerService"),LF);UR=Wjt([yn(Vt.Ready,UR),K9(0,se(xn)),K9(1,me),K9(2,Ce),K9(3,se(QJ)),K9(4,Sr)],UR);var zjt=Object.defineProperty,qjt=Object.getOwnPropertyDescriptor,Yjt=he((t,e,n,r)=>{for(var i=r>1?void 0:r?qjt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zjt(e,n,i),i},"__decorateClass$1"),Ble=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),xF;let HR=(xF=class extends Da{constructor(t,e){super(),this._instanceSrv=t,this._renderManagerService=e,this._init()}_init(){this._renderManagerService.createRender$.pipe(_a(this.dispose$)).subscribe(t=>this._createRenderWithId(t)),this._instanceSrv.getAllUnitsForType(le.UNIVER_DOC).forEach(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitAdded$(le.UNIVER_DOC).pipe(_a(this.dispose$)).subscribe(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitDisposed$(le.UNIVER_DOC).pipe(_a(this.dispose$)).subscribe(t=>this._disposeRenderer(t))}_createRenderer(t){const e=t.getUnitId();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)}},he(xF,"DocsRenderService"),xF);HR=Yjt([yn(Vt.Ready,HR),Ble(0,Ce),Ble(1,Sr)],HR);const Xjt={id:B_.id,preconditions:bVe,binding:Et.ENTER},Gjt={id:XS.id,preconditions:ao,binding:Et.BACKSPACE},Qjt={id:fFe.id,preconditions:ao,binding:Et.DELETE},Kjt={id:Df.id,binding:Et.ARROW_UP,preconditions:ao,staticParameters:{direction:ut.UP}},Zjt={id:Df.id,binding:Et.ARROW_DOWN,preconditions:ao,staticParameters:{direction:ut.DOWN}},Jjt={id:Df.id,binding:Et.ARROW_LEFT,preconditions:ao,staticParameters:{direction:ut.LEFT}},e$t={id:Df.id,binding:Et.ARROW_RIGHT,preconditions:ao,staticParameters:{direction:ut.RIGHT}},t$t={id:k0.id,binding:Et.ARROW_UP|Ln.SHIFT,preconditions:ao,staticParameters:{direction:ut.UP}},n$t={id:k0.id,binding:Et.ARROW_DOWN|Ln.SHIFT,preconditions:ao,staticParameters:{direction:ut.DOWN}},r$t={id:k0.id,binding:Et.ARROW_LEFT|Ln.SHIFT,preconditions:ao,staticParameters:{direction:ut.LEFT}},i$t={id:k0.id,binding:Et.ARROW_RIGHT|Ln.SHIFT,preconditions:ao,staticParameters:{direction:ut.RIGHT}},a$t={id:VFe.id,binding:Et.A|Ln.CTRL_COMMAND,preconditions:he(t=>t.getContextValue(Pu)&&(t.getContextValue(K1)||t.getContextValue(ha)),"preconditions")};var o$t=Object.defineProperty,s$t=Object.getOwnPropertyDescriptor,l$t=he((t,e,n,r)=>{for(var i=r>1?void 0:r?s$t(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&o$t(e,n,i),i},"__decorateClass"),Z9=he((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),J9;let zq=(J9=class extends Cs{constructor(t=KUt,e,n,r,i,a){super(),this._config=t,this._injector=e,this._renderManagerSrv=n,this._commandService=r,this._logService=i,this._configService=a;const{menu:o,...s}=this._config;o&&this._configService.setConfig("menu",o,{merge:!0}),this._configService.setConfig(Yte,s),this._initDependencies(e),this._initializeShortcut(),this._initCommand()}onReady(){this._initRenderBasics(),this._markDocAsFocused()}onRendered(){this._initUI(),this._initRenderModules()}_initCommand(){[XS,fFe,Kp,Zp,Jp,e3,wf,t3,gp,pp,vp,KS,a7,Mc,pte,U_,H_,yte,Zke,Ete,Jd,WL,$L,ZS,YL,XL,GL,nm,QL,OFe,NFe,Fte,Vte,zBt,Bte,Ute,xte,Ote,JS,kFe,r7,xL,B_,Rq,jL,Mte,PFe,MFe,Pte,yh,uFe,i7,LFe,Tte,xFe,VFe,Xte,Df,k0].forEach(t=>{this._commandService.registerCommand(t)}),[OI,Dte,Ite].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_initializeShortcut(){[Kjt,Zjt,e$t,Jjt,t$t,n$t,r$t,i$t,a$t,Gjt,Qjt,Xjt,TUt].forEach(t=>{this._injector.get(Bu).registerShortcut(t)})}_initDependencies(t){Mp([[jI],[$I],[kR],[FR],[BR],[VR],[UI],[a4],[GS,{useClass:Eq}],[Fq],[HR],[UR],[mp]],this._config.override).forEach(e=>t.add(e))}_markDocAsFocused(){const t=this._injector.get(Ce),e=this._injector.get(Fo);try{const n=t.getCurrentUnitForType(le.UNIVER_DOC);if(!n)return;const r=n.getUnitId();e.isEditor(r)||t.focusUnit(n.getUnitId())}catch(n){this._logService.warn(n)}}_initUI(){this._injector.get(UI)}_initRenderBasics(){[[zi],[Ms],[oR],[Kte],[HL],[Tq],[Wq]].forEach(t=>{this._renderManagerSrv.registerRenderModule(le.UNIVER_DOC,t)})}_initRenderModules(){[[HI],[BI],[$q],[Pq],[jq],[Bq],[Vq],[jI],[Hq],[Uq],[$I]].forEach(t=>{this._renderManagerSrv.registerRenderModule(le.UNIVER_DOC,t)})}},he(J9,"UniverDocsUIPlugin"),Kt(J9,"pluginName",cBt),Kt(J9,"type",le.UNIVER_DOC),J9);zq=l$t([Z9(1,se(Wn)),Z9(2,Sr),Z9(3,me),Z9(4,Ra),Z9(5,Za)],zq);const Zte="@@@";var vBe=Object.defineProperty,u$t=(t,e,n)=>e in t?vBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oe=(t,e)=>vBe(t,"name",{value:e,configurable:!0}),xe=(t,e,n)=>u$t(t,typeof e!="symbol"?e+"":e,n),c$t=Object.defineProperty,d$t=Object.getOwnPropertyDescriptor,h$t=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?d$t(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&c$t(e,n,i),i},"__decorateClass$i"),f$t=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f"),eh=(t=>(t[t.MOVE_START=0]="MOVE_START",t[t.MOVING=1]="MOVING",t[t.MOVE_END=2]="MOVE_END",t))(eh||{}),OF;let Bt=(OF=class extends Da{constructor(t){super(),xe(this,"selectionMoveStart$"),xe(this,"selectionMoving$"),xe(this,"selectionMoveEnd$"),xe(this,"_workbookSelections",new Map),this._instanceSrv=t,this._init()}get _currentSelectionPos(){const t=this._instanceSrv.getCurrentUnitForType(le.UNIVER_SHEET);if(!t)return null;const e=t.getActiveSheet();return{unitId:t.getUnitId(),sheetId:e.getSheetId()}}get currentSelectionParam(){return this._currentSelectionPos}_init(){const t=this._instanceSrv.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(VP(1),_a(this.dispose$));this.selectionMoveStart$=t.pipe(Ei(e=>e?this._ensureWorkbookSelection(e.getUnitId()).selectionMoveStart$:Hr())),this.selectionMoving$=t.pipe(Ei(e=>e?this._ensureWorkbookSelection(e.getUnitId()).selectionMoving$:Hr())),this.selectionMoveEnd$=t.pipe(Ei(e=>e?this._ensureWorkbookSelection(e.getUnitId()).selectionMoveEnd$:Hr([]))),this._instanceSrv.getTypeOfUnitDisposed$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(e=>{this._removeWorkbookSelection(e.getUnitId())})}clear(){this._workbookSelections.forEach(t=>t.clear())}getCurrentSelections(){return this._getCurrentSelections()}getCurrentLastSelection(){const t=this._getCurrentSelections();return t==null?void 0:t[t.length-1]}addSelections(t,e,n){if(typeof t=="string"){this._ensureWorkbookSelection(t).addSelections(e,n);return}const r=this._currentSelectionPos;if(!r)throw new Error("[SheetsSelectionsService]: cannot find current selection position!");const{unitId:i,sheetId:a}=r;this._ensureWorkbookSelection(i).addSelections(a,t)}setSelections(t,e,n,r){if(typeof t=="string"){this._ensureWorkbookSelection(t).setSelections(e,n,r??2);return}const i=this._currentSelectionPos;if(!i)throw new Error("[SheetsSelectionsService]: cannot find current selection position!");const{unitId:a,sheetId:o}=i;this._ensureWorkbookSelection(a).setSelections(o,t??n,e??2)}clearCurrentSelections(){this._getCurrentSelections().splice(0)}isOverlapping(){const t=this.getCurrentSelections();return t==null?!1:t.some(({range:e},n)=>t.some(({range:r},i)=>n===i?!1:e.startRow<=r.endRow&&e.endRow>=r.startRow&&e.startColumn<=r.endColumn&&e.endColumn>=r.startColumn))}_getCurrentSelections(){const t=this._currentSelectionPos;if(!t)return[];const{unitId:e,sheetId:n}=t;return this._ensureWorkbookSelection(e).getSelectionOfWorksheet(n)}getWorkbookSelections(t){return this._ensureWorkbookSelection(t)}_ensureWorkbookSelection(t){let e=this._workbookSelections.get(t);if(!e){const n=this._instanceSrv.getUnit(t);if(!n)throw new Error(`[SheetsSelectionsService]: cannot resolve unit with id "${t}"!`);e=new m$t(n),this._workbookSelections.set(t,e)}return e}_removeWorkbookSelection(t){this._workbookSelections.delete(t)}},oe(OF,"SheetsSelectionsService"),OF);Bt=h$t([f$t(0,Ce)],Bt);const _Be=class extends et{constructor(e){super(),xe(this,"_selectionMoveStart$",new Zt),xe(this,"selectionMoveStart$",this._selectionMoveStart$.asObservable()),xe(this,"_selectionMoving$",new Zt),xe(this,"selectionMoving$",this._selectionMoving$.asObservable()),xe(this,"_selectionMoveEnd$",new Pn([])),xe(this,"selectionMoveEnd$",this._selectionMoveEnd$.asObservable()),xe(this,"_beforeSelectionMoveEnd$",new Pn([])),xe(this,"beforeSelectionMoveEnd$",this._beforeSelectionMoveEnd$.asObservable()),xe(this,"_worksheetSelections",new Map),this._workbook=e}dispose(){super.dispose(),this._beforeSelectionMoveEnd$.complete(),this._selectionMoveEnd$.complete(),this._selectionMoving$.complete(),this._selectionMoveStart$.complete()}clear(){this._worksheetSelections.clear(),this._emitOnEnd([])}addSelections(e,n){const r=this._ensureSheetSelection(e);r.push(...n),this._emitOnEnd(r)}setSelections(e,n=[],r){switch(this._ensureSheetSelection(e).length=0,this._ensureSheetSelection(e).push(...n),r){case 0:this._selectionMoveStart$.next(n);break;case 1:this._selectionMoving$.next(n);break;case 2:this._emitOnEnd(n);break;default:this._emitOnEnd(n);break}}getCurrentSelections(){return this._getCurrentSelections()}getSelectionOfWorksheet(e){return this._worksheetSelections.has(e)?this._worksheetSelections.get(e):[]}_getCurrentSelections(){return this.getSelectionOfWorksheet(this._workbook.getActiveSheet().getSheetId())}getCurrentLastSelection(){const e=this._getCurrentSelections();return e[e.length-1]}_ensureSheetSelection(e){let n=this._worksheetSelections.get(e);return n||(n=[],this._worksheetSelections.set(e,n)),n}_emitOnEnd(e){this._beforeSelectionMoveEnd$.next(e),this._selectionMoveEnd$.next(e)}};oe(_Be,"WorkbookSelections");let m$t=_Be;const g0="DISABLE_NORMAL_SELECTIONS",g$t=_s("CELL_CONTENT"),p$t=_s("ROW_FILTERED"),dc={CELL_CONTENT:g$t,ROW_FILTERED:p$t};var ex=(t=>(t[t.DATA_VALIDATION=9]="DATA_VALIDATION",t[t.NUMFMT=10]="NUMFMT",t))(ex||{}),v$t=Object.defineProperty,_$t=Object.getOwnPropertyDescriptor,C$t=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?_$t(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&v$t(e,n,i),i},"__decorateClass$h"),S$t=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e"),NF;let Tr=(NF=class extends et{constructor(t){super(),xe(this,"_interceptorsByName",new Map),xe(this,"_commandInterceptors",[]),xe(this,"_rangeInterceptors",[]),xe(this,"_beforeCommandInterceptor",[]),xe(this,"_workbookDisposables",new Map),xe(this,"_worksheetDisposables",new Map),this._univerInstanceService=t,this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).subscribe(e=>{this._interceptWorkbook(e)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(e=>this._disposeWorkbookInterceptor(e))),this.intercept(dc.CELL_CONTENT,{priority:-1,handler(e,n){const r=n.worksheet.getCellRaw(n.row,n.col);return e?{...r,...e}:r}})}dispose(){super.dispose(),this._workbookDisposables.forEach(t=>t.dispose()),this._workbookDisposables.clear(),this._worksheetDisposables.clear()}interceptCommand(t){if(this._commandInterceptors.includes(t))throw new Error("[SheetInterceptorService]: Interceptor already exists!");return this._commandInterceptors.push(t),this._commandInterceptors.sort((e,n)=>{var r,i;return((r=n.priority)!=null?r:0)-((i=e.priority)!=null?i:0)}),this.disposeWithMe($t(()=>Zu(this._commandInterceptors,t)))}interceptBeforeCommand(t){if(this._beforeCommandInterceptor.includes(t))throw new Error("[SheetInterceptorService]: Interceptor already exists!");return this._beforeCommandInterceptor.push(t),this._beforeCommandInterceptor.sort((e,n)=>{var r,i;return((r=n.priority)!=null?r:0)-((i=e.priority)!=null?i:0)}),this.disposeWithMe($t(()=>Zu(this._beforeCommandInterceptor,t)))}async beforeCommandExecute(t){return(await Promise.all(this._beforeCommandInterceptor.map(e=>e.performCheck(t)))).every(e=>e)}interceptRanges(t){if(this._rangeInterceptors.includes(t))throw new Error("[SheetInterceptorService]: Interceptor already exists!");return this._rangeInterceptors.push(t),this._rangeInterceptors.sort((e,n)=>{var r,i;return((r=n.priority)!=null?r:0)-((i=e.priority)!=null?i:0)}),this.disposeWithMe($t(()=>Zu(this._rangeInterceptors,t)))}onCommandExecute(t){const e=this._commandInterceptors.map(n=>n.getMutations(t));return{preUndos:e.map(n=>{var r;return(r=n.preUndos)!=null?r:[]}).flat(),undos:e.map(n=>n.undos).flat(),preRedos:e.map(n=>{var r;return(r=n.preRedos)!=null?r:[]}).flat(),redos:e.map(n=>n.redos).flat()}}generateMutationsByRanges(t){const e=this._rangeInterceptors.map(n=>n.getMutations(t));return{preUndos:e.map(n=>{var r;return(r=n.preUndos)!=null?r:[]}).flat(),undos:e.map(n=>n.undos).flat(),preRedos:e.map(n=>{var r;return(r=n.preRedos)!=null?r:[]}).flat(),redos:e.map(n=>n.redos).flat()}}intercept(t,e){const n=t;this._interceptorsByName.has(n)||this._interceptorsByName.set(n,[]);const r=this._interceptorsByName.get(n);return r.push(e),this._interceptorsByName.set(n,r.sort((i,a)=>{var o,s;return((o=a.priority)!=null?o:0)-((s=i.priority)!=null?s:0)})),this.disposeWithMe($t(()=>Zu(this._interceptorsByName.get(n),e)))}fetchThroughInterceptors(t){const e=t,n=this._interceptorsByName.get(e);return NX(n||[])}_interceptWorkbook(t){const e=new Gi,n=t.getUnitId(),r=this,i=oe(a=>{const o=a.getSheetId();a.__interceptViewModel(s=>{const l=new Gi;r._worksheetDisposables.set(qq(n,a),l),l.add(s.registerCellContentInterceptor({getCell(u,c){return r.fetchThroughInterceptors(dc.CELL_CONTENT)(a.getCellRaw(u,c),{unitId:n,subUnitId:o,row:u,col:c,worksheet:a,workbook:t})}})),l.add(s.registerRowFilteredInterceptor({getRowFiltered(u){return!!r.fetchThroughInterceptors(dc.ROW_FILTERED)(!1,{unitId:n,subUnitId:o,row:u,workbook:t,worksheet:a})}}))})},"interceptViewModel");t.getSheets().forEach(a=>i(a)),e.add(t.sheetCreated$.subscribe(a=>i(a))),e.add($t(()=>t.getSheets().forEach(a=>this._disposeSheetInterceptor(n,a)))),e.add(t.sheetDisposed$.subscribe(a=>this._disposeSheetInterceptor(n,a))),this._workbookDisposables.set(n,e)}_disposeWorkbookInterceptor(t){const e=t.getUnitId(),n=this._workbookDisposables.get(e);n&&(n.dispose(),this._workbookDisposables.delete(e))}_disposeSheetInterceptor(t,e){const n=qq(t,e),r=this._worksheetDisposables.get(n);r&&(r.dispose(),this._worksheetDisposables.delete(n))}},oe(NF,"SheetInterceptorService"),NF);Tr=C$t([S$t(0,Ce)],Tr);function qq(t,e){return`${t}|${e.getSheetId()}`}oe(qq,"getWorksheetDisposableID");function CBe(t,e,n){var r;const i=t.getStyleByCell(e);i==null&&delete e.s,typeof n.s=="string"&&(n.s=t.get(n.s));const a=V8(i,n.s?n.s:null);a&&Ie.removeNull(a),Ie.isEmptyObject(a)?delete e.s:e.s=t.setValue(a);const o=n.v?`${n.v}\r |
|
|
`:"";!n.p&&e.p&&(o&&o!==((r=e.p.body)==null?void 0:r.dataStream)?delete e.p:yBe(e.p,n.s?n.s:null))}oe(CBe,"handleStyle");function SBe(t,e){if(!e||!Object.keys(e).length)return t;const n=t||{};for(const r in e)r==="bd"?n[r]=bBe(n[r]||{},e[r]):r in n||(n[r]=null);return n}oe(SBe,"transformStyle");function bBe(t,e){if(!e||!Object.keys(e).length)return t;for(const n in e)n in t||(t[n]=null);return t}oe(bBe,"transformBorders");function V8(t,e,n=!1){if(e===null)return e;if(e===void 0)return t;const r=Ie.deepClone(t)||{};for(const i in e)n&&["bd","tr","td","ht","vt","tb","pd","bg"].includes(i)||(i in r&&i==="bd"?r[i]=Object.assign(r[i],e[i]):r[i]=e[i]);return"cl"in r&&("ul"in r&&r.ul&&(r.ul.cl=r.cl),"ol"in r&&r.ol&&(r.ol.cl=r.cl),"st"in r&&r.st&&(r.st.cl=r.cl)),r}oe(V8,"mergeStyle");function Jte(t,e){return t.some(n=>n.startIndex===e)?Jte(t,e+1):e}oe(Jte,"skipParagraphs");function yBe(t,e){var n;if(t.body==null)return;Array.isArray(t.body.textRuns)||(t.body.textRuns=[]);let r=0;const i=[],a=((n=t.body)==null?void 0:n.paragraphs)||[];for(const s of t.body.textRuns){const{st:l,ed:u,ts:c={}}=s;if(r<l){const h={st:r,ed:l},f=V8({},e,!0);f&&Ie.removeNull(f),Ie.isEmptyObject(f)||(h.ts=f),i.push(h)}const d=V8(c,e,!0);d&&Ie.removeNull(d),Ie.isEmptyObject(d)?delete s.ts:s.ts=d,i.push(s),r=Jte(a,u)}const o=t.body.dataStream.endsWith(`\r |
|
|
`)?t.body.dataStream.length-2:t.body.dataStream.length;if(r<o){const s={st:r,ed:o},l=V8({},e,!0);l&&Ie.removeNull(l),Ie.isEmptyObject(l)||(s.ts=l),i.push(s)}t.body.textRuns=PC(i)}oe(yBe,"mergeRichTextStyle");function EBe(t,e,n){if(e.t)return e.t;if(e.v===null)return null;const r=t.getStyleByCell(e),i=t.getStyleByCell(n);if(n.t===rr.FORCE_STRING){if(!jR(i)&&e.v!==void 0){if(Kr(e.v))return rr.NUMBER;if(DX(`${e.v}`))return rr.BOOLEAN}return rr.FORCE_STRING}return RBe(r)?jR(r)?rr.STRING:Yq(e,n):jR(i)?rr.STRING:Yq(e,n)}oe(EBe,"getCellType");function Yq(t,e){return t.v!==void 0?WI(t.v,t.t):WI(e.v,e.t)}oe(Yq,"checkCellValueTypeByValue");function RBe(t){var e;return!!((e=t==null?void 0:t.n)!=null&&e.pattern)}oe(RBe,"hasNumberFormat");function jR(t){var e;return((e=t==null?void 0:t.n)==null?void 0:e.pattern)===Zte}oe(jR,"isTextFormat");function WI(t,e){return t===null?null:typeof t=="string"?Kr(t)?(+t==0||+t==1)&&e===rr.BOOLEAN?rr.BOOLEAN:rr.NUMBER:DX(t)?rr.BOOLEAN:rr.STRING:typeof t=="number"?(t===0||t===1)&&e===rr.BOOLEAN?rr.BOOLEAN:rr.NUMBER:typeof t=="boolean"?rr.BOOLEAN:rr.FORCE_STRING}oe(WI,"checkCellValueType");function ABe(t,e){return t.t===rr.FORCE_STRING?rr.FORCE_STRING:e===Zte?rr.STRING:WI(t.v,t.t)}oe(ABe,"getCellTypeByPattern");function zI(t,e){return t===rr.NUMBER?Number(e.v):t===rr.BOOLEAN?wBe(e.v)?1:0:t===rr.STRING||t===rr.FORCE_STRING?`${e.v}`:e.v}oe(zI,"getCellValue");function wBe(t){if(typeof t=="string"){if(t.toUpperCase()==="TRUE")return!0;if(t.toUpperCase()==="FALSE")return!1;if(Zce(t)){if(Number(t)===0)return!1;if(Number(t)===1)return!0}}if(typeof t=="number"){if(t===0)return!1;if(t===1)return!0}return typeof t=="boolean"?t:null}oe(wBe,"extractBooleanValue");function DBe(t){return t==null?null:(t.f===void 0&&(t.f=null),t.si===void 0&&(t.si=null),t.p===void 0&&(t.p=null),t.v===void 0&&(t.v=null),t.t===void 0&&(t.t=null),t.s===void 0&&(t.s=null),t.custom===void 0&&(t.custom=null),t)}oe(DBe,"setNull");const No=oe((t,e)=>{const{unitId:n,subUnitId:r,cellValue:i}=e,a=t.get(Ce).getUniverSheetInstance(n);if(a==null)throw new Error("workbook is null error!");const o=a.getSheetBySheetId(r);if(o==null)throw new Error("worksheet is null error!");const s=o.getCellMatrix(),l=a.getStyles(),u=new Ct;return new Ct(i).forValue((c,d,h)=>{const f=Ie.deepClone(s==null?void 0:s.getValue(c,d))||{},m=l.getStyleByCell(f),g=l.getStyleByCell(h);f.s=SBe(m,g),u.setValue(c,d,DBe(f))}),{...e,options:{},cellValue:u.getMatrix()}},"SetRangeValuesUndoMutationFactory"),Mn={id:"sheet.mutation.set-range-values",type:Se.MUTATION,handler:oe((t,e)=>{const{cellValue:n,subUnitId:r,unitId:i}=e,a=t.get(Ce).getUnit(i);if(!a)return!1;const o=a.getSheetBySheetId(r);if(!o)return!1;const s=o.getCellMatrix(),l=a.getStyles();return new Ct(n).forValue((u,c,d)=>{if(!d)s==null||s.setValue(u,c,{});else{const h=s.getValue(u,c)||{},f=EBe(l,d,h);d.f!==void 0&&(h.f=d.f),d.si!==void 0&&(h.si=d.si),d.p!==void 0&&(h.p=d.p),d.v!==void 0&&(h.v=zI(f,d)),h.v!==void 0&&(h.t=f,h.v=zI(f,h)),d.s!==void 0&&CBe(l,h,d),d.custom!==void 0&&(h.custom=d.custom),s.setValue(u,c,Ie.removeNull(h))}}),!0},"handler")},b$t=oe((t,e,n="")=>t.reduce((r,i)=>{const a=i&&i[e];return typeof a!="string"?(console.warn(i,`${e} is not string`),r):(a?(r[a]||(r[a]=[]),r[a].push(i)):r[n].push(i),r)},{}),"groupByKey"),y$t=oe((t=0)=>{let e=t;return oe(function(){return e++},"getKey")},"createUniqueKey");function ene(t){const e=new Ct;return t.forEach(n=>{const{startRow:r,startColumn:i,endRow:a,endColumn:o}=n;for(let s=r;s<=a;s++)for(let l=i;l<=o;l++)e.setValue(s,l,null)}),e.clone()}oe(ene,"generateNullCell");function tne(t){const e=new Ct;return t.forEach(n=>{const{startRow:r,startColumn:i,endRow:a,endColumn:o}=n;for(let s=r;s<=a;s++)for(let l=i;l<=o;l++)e.setValue(s,l,{v:null,p:null,f:null,si:null,custom:null})}),e.clone()}oe(tne,"generateNullCellValue");function IBe(t){const e=new Ct;return t.forEach(n=>{const{startRow:r,startColumn:i,endRow:a,endColumn:o}=n;for(let s=r;s<=a;s++)for(let l=i;l<=o;l++)e.setValue(s,l,{s:null})}),e.clone()}oe(IBe,"generateNullCellStyle");const p0={id:"sheet.command.clear-selection-all",type:Se.COMMAND,handler:oe(async t=>{var e;const n=t.get(Ce),r=t.get(me),i=t.get(Bt),a=t.get(xn),o=t.get(Tr),s=n.getCurrentUnitForType(le.UNIVER_SHEET);if(!s)return!1;const l=s.getUnitId(),u=s.getActiveSheet();if(!u)return!1;const c=u.getSheetId(),d=(e=i.getCurrentSelections())==null?void 0:e.map(v=>v.range);if(!(d!=null&&d.length))return!1;const h=[],f=[],m={subUnitId:c,unitId:l,cellValue:ene(d)},g=No(t,m);h.push({id:Mn.id,params:m}),f.push({id:Mn.id,params:g});const p=o.onCommandExecute({id:p0.id});return h.push(...p.redos),f.unshift(...p.undos),ti(h,r)?(a.pushUndoRedo({unitID:l,undoMutations:f,redoMutations:h}),!0):!1},"handler")},v0={id:"sheet.command.clear-selection-content",type:Se.COMMAND,handler:oe(async t=>{var e;const n=t.get(Ce),r=t.get(me),i=t.get(Bt),a=t.get(xn),o=t.get(Tr),s=n.getCurrentUnitForType(le.UNIVER_SHEET);if(!s)return!1;const l=s.getUnitId(),u=s.getActiveSheet();if(!u)return!1;const c=u.getSheetId(),d=(e=i.getCurrentSelections())==null?void 0:e.map(v=>v.range);if(!(d!=null&&d.length))return!1;const h={subUnitId:c,unitId:l,cellValue:tne(d)},f=No(t,h),m=o.onCommandExecute({id:v0.id}),g=[{id:Mn.id,params:h},...m.redos],p=[...m.undos,{id:Mn.id,params:f}];return ti(g,r).result?(a.pushUndoRedo({unitID:l,undoMutations:p,redoMutations:g}),!0):!1},"handler")},th={id:"sheet.command.clear-selection-format",type:Se.COMMAND,handler:oe(async t=>{var e;const n=t.get(Ce),r=t.get(me),i=t.get(Bt),a=t.get(xn),o=t.get(Tr),s=n.getCurrentUnitForType(le.UNIVER_SHEET);if(!s)return!1;const l=s.getUnitId(),u=s.getActiveSheet();if(!u)return!1;const c=u.getSheetId(),d=(e=i.getCurrentSelections())==null?void 0:e.map(v=>v.range);if(!(d!=null&&d.length))return!1;const h=[],f=[],m={subUnitId:c,unitId:l,cellValue:IBe(d)},g=No(t,m);h.push({id:Mn.id,params:m}),f.push({id:Mn.id,params:g});const p=o.onCommandExecute({id:th.id});return h.push(...p.redos),f.unshift(...p.undos),ti(h,r)?(a.pushUndoRedo({unitID:l,undoMutations:f,redoMutations:h}),!0):!1},"handler")},PBe=oe((t,e)=>({subUnitId:e.sheet.id,unitId:e.unitId,subUnitName:e.sheet.name}),"InsertSheetUndoMutationFactory"),Dl={id:"sheet.mutation.insert-sheet",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce),{sheet:r,index:i,unitId:a}=e,o=n.getUniverSheetInstance(a);return o?o.addWorksheet(r.id,i,r):!1},"handler")};function MBe(t,e){const{unitId:n}=e,r=n?t.getUniverSheetInstance(n):t.getCurrentUnitForType(le.UNIVER_SHEET);return r?{workbook:r,unitId:r.getUnitId()}:null}oe(MBe,"getSheetCommandTargetWorkbook");function Dn(t,e={}){const{unitId:n,subUnitId:r}=e,i=n?t.getUniverSheetInstance(n):t.getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return null;const a=r?i.getSheetBySheetId(r):i.getActiveSheet(!0);return a?{worksheet:a,workbook:i,unitId:i.getUnitId(),subUnitId:a.getSheetId()}:null}oe(Dn,"getSheetCommandTarget");function tx(t,e){const{unitId:n,subUnitId:r}=e,i=t.getUniverSheetInstance(n);if(!i)return null;const a=i.getSheetBySheetId(r);return a?{worksheet:a,workbook:i}:null}oe(tx,"getSheetMutationTarget");const E$t=oe((t,e)=>{const n=t.get(Ce),{subUnitId:r,unitId:i}=e,a=tx(n,e);if(!a)throw new Error("[RemoveSheetUndoMutationFactory]: Worksheet is null error!");const{workbook:o,worksheet:s}=a,l=s.getConfig();return{index:o.getConfig().sheetOrder.findIndex(u=>u===r),sheet:l,unitId:i}},"RemoveSheetUndoMutationFactory"),Ls={id:"sheet.mutation.remove-sheet",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce),{subUnitId:r,unitId:i}=e,a=n.getUniverSheetInstance(i);return a?a.removeSheet(r):!1},"handler")},nne={type:Se.COMMAND,id:"sheet.command.copy-sheet",handler:oe(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=t.get(Ce),a=t.get(sn),o=Dn(i,e);if(!o)return!1;const{workbook:s,worksheet:l,unitId:u}=o,c=Ie.deepClone(l.getConfig());c.name=TBe(s,a,c.name),c.id=Ie.generateRandomId();const d={index:s.getSheetIndex(l)+1,sheet:c,unitId:u},h=PBe(t,d);return n.syncExecuteCommand(Dl.id,d)?(r.pushUndoRedo({unitID:u,undoMutations:[{id:Ls.id,params:h}],redoMutations:[{id:Dl.id,params:d}]}),!0):!1},"handler")};function TBe(t,e,n){let r=n+e.t("sheets.tabs.sheetCopy",""),i=2;for(;t.checkSheetName(r);)r=n+e.t("sheets.tabs.sheetCopy",`${i}`),i++;return r}oe(TBe,"getCopyUniqueSheetName");const $l={id:"sheet.mutation.move-range",type:Se.MUTATION,handler:oe((t,e)=>{const{from:n,to:r}=e;if(!n||!r)return!1;const i=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return!1;const a=i.getSheetBySheetId(e.from.subUnitId),o=i.getSheetBySheetId(e.to.subUnitId);if(!a||!o)return!1;const s=a.getCellMatrix(),l=o.getCellMatrix();return new Ct(n.value).forValue((u,c,d)=>{s.setValue(u,c,d)}),new Ct(r.value).forValue((u,c,d)=>{l.setValue(u,c,d)}),!0},"handler")};var R$t=Object.defineProperty,A$t=Object.getOwnPropertyDescriptor,w$t=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?A$t(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&R$t(e,n,i),i},"__decorateClass$g"),D$t=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d");const tb=er("sheets-formula.ref-selections.service");var kF;let Xq=(kF=class extends Bt{constructor(t){super(t)}_init(){const t=this._getAliveWorkbooks$().pipe(_a(this.dispose$));this.selectionMoveStart$=t.pipe(Ei(e=>Qa(...e.map(n=>n.selectionMoveStart$)))),this.selectionMoving$=t.pipe(Ei(e=>Qa(...e.map(n=>n.selectionMoving$)))),this.selectionMoveEnd$=t.pipe(Ei(e=>Qa(...e.map(n=>n.selectionMoveEnd$))))}_getAliveWorkbooks$(){const t=this._instanceSrv.getAllUnitsForType(le.UNIVER_SHEET);t.forEach(n=>this._ensureWorkbookSelection(n.getUnitId()));const e=new Pn(t);return this.disposeWithMe(this._instanceSrv.getTypeOfUnitAdded$(le.UNIVER_SHEET).subscribe(n=>{this._ensureWorkbookSelection(n.getUnitId()),e.next([...e.getValue(),n])})),this.disposeWithMe(this._instanceSrv.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(n=>{this._removeWorkbookSelection(n.getUnitId()),e.next(e.getValue().filter(r=>r!==n))})),e.pipe(pr(n=>n.map(r=>this._ensureWorkbookSelection(r.getUnitId()))))}},oe(kF,"RefSelectionsService"),kF);Xq=w$t([D$t(0,Ce)],Xq);function n3(t){const e=t.get(ui).getContextValue(g0);return t.get(e?tb:Bt)}oe(n3,"getSelectionsService");const Pr={id:"sheet.operation.set-selections",type:Se.OPERATION,handler:oe((t,e)=>{if(!e)return!1;const{selections:n,type:r,unitId:i,subUnitId:a}=e;return n3(t).setSelections(i,a,[...n],r),!0},"handler")};function Cu(t,e,n=!0){const r=e.getMatrixWithMergedCells(...I1e(t)),i=[];if(r.forValue((o,s,l)=>{if(l.colSpan!==void 0&&l.rowSpan!==void 0){const u={startRow:o,startColumn:s,endRow:o+l.rowSpan-1,endColumn:s+l.colSpan-1};ft.contains(t,u)||i.push(u)}}),i.length===0)return t;const a=ft.union(t,...i);return n?Cu(a,e,n):a}oe(Cu,"alignToMergedCellsBorders");function $_(t,e,n){let r=null;return n.getMatrixWithMergedCells(t,e,t,e).forValue((i,a,o)=>(r={actualRow:i,actualColumn:a,startRow:i,startColumn:a,isMerged:o.rowSpan!==void 0||o.colSpan!==void 0,isMergedMainCell:o.rowSpan!==void 0&&o.colSpan!==void 0,endRow:i+(o.rowSpan!==void 0?o.rowSpan-1:0),endColumn:a+(o.colSpan!==void 0?o.colSpan-1:0),rangeType:it.NORMAL},!1)),r||{actualColumn:e,actualRow:t,startRow:t,startColumn:e,endRow:t,endColumn:e,isMerged:!1,isMergedMainCell:!1,rangeType:it.NORMAL}}oe($_,"getCellAtRowCol");function rne(t,e,n){const{startRow:r,startColumn:i,endRow:a,endColumn:o}=t;return Number.isNaN(r)&&(t.startRow=0),Number.isNaN(a)&&(t.endRow=e-1),Number.isNaN(i)&&(t.startColumn=0),Number.isNaN(o)&&(t.endColumn=n-1),t}oe(rne,"setEndForRange");function tl(t,e){const n=Number.isNaN(t.startRow)?0:t.startRow,r=Number.isNaN(t.startColumn)?0:t.startColumn,i=e.getMergedCell(n,r);return i?{...i,actualRow:n,actualColumn:r,rangeType:it.NORMAL,isMerged:!0,isMergedMainCell:!0}:{startRow:n,startColumn:r,endRow:t.startRow,endColumn:t.startColumn,actualRow:n,actualColumn:r,rangeType:it.NORMAL,isMerged:!1,isMergedMainCell:!1}}oe(tl,"getPrimaryForRange");const u2=oe((t,e,n)=>({id:Pr.id,params:{unitId:e.getUnitId(),subUnitId:n.getSheetId(),selections:[{range:t,primary:tl(t,n)}]}}),"followSelectionOperation");function I$t(t){if(!t)return!1;const{range:e,primary:n}=t;return ft.equals(e,n)}oe(I$t,"isSingleCellSelection");function LBe(t){function e(n,r){function i(a){for(let o=a.startRow;o<=a.endRow;o++)if(!t.getRowFiltered(o))for(let s=a.startColumn;s<=a.endColumn;s++)r(o,s,a)}oe(i,"iterate"),i(n)}return oe(e,"forOperableEach"),{forOperableEach:e}}oe(LBe,"createRangeIteratorWithSkipFilteredRows");function nb(t,e,n,r,i,a,o){const s={};for(let l=e;l<=n;l++)for(let u=r;u<=i;u++){const c=a?t.getCell(o,u):t.getCell(l,o);!c||!c.s||(s[l]||(s[l]={}),s[l][u]={s:c.s})}return s}oe(nb,"copyRangeStyles");const xBe="sheet.command.move-range",F0={type:Se.COMMAND,id:xBe,handler:oe(async(t,e)=>{var n,r;const i=t.get(me),a=t.get(xn),o=t.get(Ce),s=t.get(zf),l=t.get(sn),u=t.get(Tr),c=Dn(o);if(!c||!await u.beforeCommandExecute({id:F0.id,params:e}))return!1;const{worksheet:d,subUnitId:h,unitId:f}=c,m=nx(t,{unitId:f,subUnitId:h,range:e.fromRange},{subUnitId:h,range:e.toRange});if(m===null)return s.emit(l.t("sheets.info.acrossMergedCell")),!1;const g=u.onCommandExecute({id:F0.id,params:{...e}}),p=[...(n=g.preRedos)!=null?n:[],...m.redos,...g.redos,{id:Pr.id,params:{unitId:f,subUnitId:h,selections:[{range:e.toRange,primary:tl(e.toRange,d)}]}}],v=[...(r=g.preUndos)!=null?r:[],...m.undos,...g.undos,{id:Pr.id,params:{unitId:f,subUnitId:h,selections:[{range:e.fromRange,primary:tl(e.fromRange,d)}]}}];return ti(p,i).result?(a.pushUndoRedo({unitID:f,undoMutations:v,redoMutations:p}),!0):!1},"handler")};function nx(t,e,n,r=!1){const i=[],a=[],{range:o,subUnitId:s,unitId:l}=e,{range:u,subUnitId:c}=n,d=t.get(Ce).getUniverSheetInstance(l),h=d==null?void 0:d.getSheetBySheetId(c),f=d==null?void 0:d.getSheetBySheetId(s),m=h==null?void 0:h.getCellMatrix(),g=f==null?void 0:f.getCellMatrix();if(h&&f&&m&&g){const p=Cu(u,h,!1);if(!ft.equals(u,p)&&!r)return null;const v=new Ct,_=new Ct;Gn.foreach(o,(A,w)=>{v.setValue(A,w,Ie.deepClone(g.getValue(A,w))),_.setValue(A,w,null)});const C=new Ct,S=new Ct;Gn.foreach(u,(A,w)=>{C.setValue(A,w,Ie.deepClone(m.getValue(A,w)))}),Gn.foreach(o,(A,w)=>{const P=DC(A,w),M=ft.getRelativeRange(P,o),L=ft.getPositionRange(M,u);S.setValue(L.startRow,L.startColumn,Ie.deepClone(g.getValue(A,w)))});const b={fromRange:e.range,toRange:n.range,from:{value:_.getMatrix(),subUnitId:s},to:{value:S.getMatrix(),subUnitId:c},unitId:l},y={fromRange:n.range,toRange:e.range,from:{value:v.getMatrix(),subUnitId:s},to:{value:C.getMatrix(),subUnitId:c},unitId:l};i.push({id:$l.id,params:b}),a.push({id:$l.id,params:y})}return{redos:i,undos:a}}oe(nx,"getMoveRangeUndoRedoMutations");var qI=(t=>(t[t.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",t[t.UNIVER_DOC=1]="UNIVER_DOC",t[t.UNIVER_SHEET=2]="UNIVER_SHEET",t[t.UNIVER_SLIDE=3]="UNIVER_SLIDE",t[t.UNIVER_PROJECT=4]="UNIVER_PROJECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(qI||{}),Xt=(t=>(t[t.View=0]="View",t[t.Edit=1]="Edit",t[t.ManageCollaborator=2]="ManageCollaborator",t[t.Print=3]="Print",t[t.Duplicate=4]="Duplicate",t[t.Comment=5]="Comment",t[t.Copy=6]="Copy",t[t.Share=7]="Share",t[t.Export=8]="Export",t[t.MoveWorksheet=9]="MoveWorksheet",t[t.DeleteWorksheet=10]="DeleteWorksheet",t[t.HideWorksheet=11]="HideWorksheet",t[t.RenameWorksheet=12]="RenameWorksheet",t[t.CreateWorksheet=13]="CreateWorksheet",t[t.SetWorksheetStyle=14]="SetWorksheetStyle",t[t.EditWorksheetCell=15]="EditWorksheetCell",t[t.InsertHyperlink=16]="InsertHyperlink",t[t.Sort=17]="Sort",t[t.Filter=18]="Filter",t[t.PivotTable=19]="PivotTable",t[t.FloatImg=20]="FloatImg",t[t.History=21]="History",t[t.RwHgtClWdt=22]="RwHgtClWdt",t[t.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",t[t.ViewFilter=24]="ViewFilter",t[t.MoveSheet=25]="MoveSheet",t[t.DeleteSheet=26]="DeleteSheet",t[t.HideSheet=27]="HideSheet",t[t.CopySheet=28]="CopySheet",t[t.RenameSheet=29]="RenameSheet",t[t.CreateSheet=30]="CreateSheet",t[t.SelectProtectedCells=31]="SelectProtectedCells",t[t.SelectUnProtectedCells=32]="SelectUnProtectedCells",t[t.SetCellStyle=33]="SetCellStyle",t[t.SetCellValue=34]="SetCellValue",t[t.SetRowStyle=35]="SetRowStyle",t[t.SetColumnStyle=36]="SetColumnStyle",t[t.InsertRow=37]="InsertRow",t[t.InsertColumn=38]="InsertColumn",t[t.DeleteRow=39]="DeleteRow",t[t.DeleteColumn=40]="DeleteColumn",t[t.EditExtraObject=41]="EditExtraObject",t[t.Delete=42]="Delete",t[t.RecoverHistory=43]="RecoverHistory",t[t.ViewHistory=44]="ViewHistory",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(Xt||{}),oi=(t=>(t[t.Unkonwn=0]="Unkonwn",t[t.Workbook=1]="Workbook",t[t.Worksheet=2]="Worksheet",t[t.SelectRange=3]="SelectRange",t[t.Document=4]="Document",t[t.Slide=5]="Slide",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(oi||{});const OBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.Copy),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.Copy}_${e}_${n}`}};oe(OBe,"WorksheetCopyPermission");let W_=OBe;const P$t=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SelectProtectedCells),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SelectProtectedCells}_${e}_${n}`}};oe(P$t,"WorksheetSelectProtectedCellsPermission");const M$t=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SelectUnProtectedCells),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SelectUnProtectedCells}_${e}_${n}`}};oe(M$t,"WorksheetSelectUnProtectedCellsPermission");const NBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SetCellStyle),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SetCellStyle}_${e}_${n}`}};oe(NBe,"WorksheetSetCellStylePermission");let Hi=NBe;const kBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SetCellValue),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SetCellValue}_${e}_${n}`}};oe(kBe,"WorksheetSetCellValuePermission");let zs=kBe;const FBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.View),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.View}_${e}_${n}`}};oe(FBe,"WorksheetViewPermission");let rb=FBe;const VBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SetRowStyle),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SetRowStyle}_${e}_${n}`}};oe(VBe,"WorksheetSetRowStylePermission");let nh=VBe;const BBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.SetColumnStyle),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.SetColumnStyle}_${e}_${n}`}};oe(BBe,"WorksheetSetColumnStylePermission");let td=BBe;const UBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.InsertRow),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.InsertRow}_${e}_${n}`}};oe(UBe,"WorksheetInsertRowPermission");let rx=UBe;const HBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.InsertColumn),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.InsertColumn}_${e}_${n}`}};oe(HBe,"WorksheetInsertColumnPermission");let ib=HBe;const jBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.InsertHyperlink),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.InsertHyperlink}_${e}_${n}`}};oe(jBe,"WorksheetInsertHyperlinkPermission");let T$t=jBe;const $Be=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.DeleteRow),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.DeleteRow}_${e}_${n}`}};oe($Be,"WorksheetDeleteRowPermission");let WBe=$Be;const zBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.DeleteColumn),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.DeleteColumn}_${e}_${n}`}};oe(zBe,"WorksheetDeleteColumnPermission");let qBe=zBe;const YBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.Sort),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.Sort}_${e}_${n}`}};oe(YBe,"WorksheetSortPermission");let L$t=YBe;const XBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.Filter),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.Filter}_${e}_${n}`}};oe(XBe,"WorksheetFilterPermission");let x$t=XBe;const GBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.PivotTable),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.PivotTable}_${e}_${n}`}};oe(GBe,"WorksheetPivotTablePermission");let O$t=GBe;const QBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.EditExtraObject),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.EditExtraObject}_${e}_${n}`}};oe(QBe,"WorksheetEditExtraObjectPermission");let N$t=QBe;const k$t=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.ManageCollaborator),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.ManageCollaborator}_${e}_${n}`}};oe(k$t,"WorksheetManageCollaboratorPermission");const KBe=class{constructor(e,n){xe(this,"value",!0),xe(this,"type",oi.Worksheet),xe(this,"status",mi.INIT),xe(this,"id"),xe(this,"subType",Xt.Edit),this.unitId=e,this.subUnitId=n,this.id=`${this.type}.${Xt.Edit}_${e}_${n}`}};oe(KBe,"WorksheetEditPermission");let Tn=KBe;const ZBe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Comment),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Comment}_${e}`}};oe(ZBe,"WorkbookCommentPermission");let F$t=ZBe;const JBe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Edit),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Edit}_${e}`}};oe(JBe,"WorkbookEditablePermission");let on=JBe;const eUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Duplicate),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Duplicate}_${e}`}};oe(eUe,"WorkbookDuplicatePermission");let V$t=eUe;const tUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Print),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Print}_${e}`}};oe(tUe,"WorkbookPrintPermission");let B$t=tUe;const nUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Export),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Export}_${e}`}};oe(nUe,"WorkbookExportPermission");let U$t=nUe;const rUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.MoveSheet),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.MoveSheet}_${e}`}};oe(rUe,"WorkbookMoveSheetPermission");let iUe=rUe;const aUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.DeleteSheet),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.DeleteSheet}_${e}`}};oe(aUe,"WorkbookDeleteSheetPermission");let oUe=aUe;const sUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.HideSheet),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.HideSheet}_${e}`}};oe(sUe,"WorkbookHideSheetPermission");let ix=sUe;const lUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.RenameSheet),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.RenameSheet}_${e}`}};oe(lUe,"WorkbookRenameSheetPermission");let ax=lUe;const uUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.CreateSheet),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.CreateSheet}_${e}`}};oe(uUe,"WorkbookCreateSheetPermission");let ine=uUe;const H$t=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.History),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.History}_${e}`}};oe(H$t,"WorkbookHistoryPermission");const cUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.View),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.View}_${e}`}};oe(cUe,"WorkbookViewPermission");let j$t=cUe;const dUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Share),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Share}_${e}`}};oe(dUe,"WorkbookSharePermission");let $$t=dUe;const hUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.Copy),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.Copy}_${e}`}};oe(hUe,"WorkbookCopyPermission");let x6=hUe;const fUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"subType",Xt.CopySheet),xe(this,"status",mi.INIT),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.CopySheet}_${e}`}};oe(fUe,"WorkbookCopySheetPermission");let W$t=fUe;const mUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.ManageCollaborator),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.ManageCollaborator}_${e}`}};oe(mUe,"WorkbookManageCollaboratorPermission");let R1=mUe;const gUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.ViewHistory),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.ViewHistory}_${e}`}};oe(gUe,"WorkbookViewHistoryPermission");let z$t=gUe;const pUe=class{constructor(e){xe(this,"id"),xe(this,"value",!0),xe(this,"type",oi.Workbook),xe(this,"status",mi.INIT),xe(this,"subType",Xt.RecoverHistory),this.unitId=e,this.unitId=e,this.id=`${this.type}.${Xt.RecoverHistory}_${e}`}};oe(pUe,"WorkbookRecoverHistoryPermission");let q$t=pUe;const vUe=class{constructor(e,n,r){xe(this,"type",oi.SelectRange),xe(this,"subType",Xt.Edit),xe(this,"status",mi.INIT),xe(this,"value",!0),xe(this,"id"),xe(this,"unitId"),xe(this,"subUnitId"),xe(this,"permissionId"),this.unitId=e,this.subUnitId=n,this.permissionId=r,this.id=`${oi.SelectRange}.${Xt.Edit}.${r}`}};oe(vUe,"RangeProtectionPermissionEditPoint");let Bn=vUe;const _Ue=class{constructor(e,n,r){xe(this,"type",oi.SelectRange),xe(this,"subType",Xt.View),xe(this,"status",mi.INIT),xe(this,"value",!0),xe(this,"id"),xe(this,"unitId"),xe(this,"subUnitId"),xe(this,"permissionId"),this.unitId=e,this.subUnitId=n,this.permissionId=r,this.id=`${oi.SelectRange}.${Xt.View}.${r}`}};oe(_Ue,"RangeProtectionPermissionViewPoint");let o7=_Ue;const Uu={id:"sheet.command.set-range-values",type:Se.COMMAND,handler:oe((t,e)=>{var n;const r=t.get(me),i=t.get(xn),a=t.get(Ce),o=t.get(Bt),s=t.get(Tr),l=t.get(Qi),u=Dn(a,{subUnitId:e.subUnitId,unitId:e.unitId});if(!u)return!1;const{subUnitId:c,unitId:d}=u,{value:h,range:f}=e,m=f?[f]:(n=o.getCurrentSelections())==null?void 0:n.map(A=>A.range);if(!m||!m.length||!l.getPermissionPoint(new Tn(d,c).id))return!1;const g=new Ct;let p;if(Ie.isArray(h))for(let A=0;A<m.length;A++){const{startRow:w,startColumn:P,endRow:M,endColumn:L}=m[A];for(let k=0;k<=M-w;k++)for(let O=0;O<=L-P;O++)g.setValue(k+w,O+P,h[k][O])}else if(YP(h))for(let A=0;A<m.length;A++){const{startRow:w,startColumn:P,endRow:M,endColumn:L}=m[A];for(let k=w;k<=M;k++)for(let O=P;O<=L;O++)g.setValue(k,O,h)}else p=h;const v={subUnitId:c,unitId:d,cellValue:p??g.getMatrix()},_=No(t,v),C=r.syncExecuteCommand(Mn.id,v),{undos:S,redos:b}=s.onCommandExecute({id:Uu.id,params:{...v,range:m}}),y=ti([...b],r);return C&&y.result?(i.pushUndoRedo({unitID:d,undoMutations:[{id:Mn.id,params:_},...S],redoMutations:[{id:Mn.id,params:v},...b]}),!0):!1},"handler")};function ane(t,e){const n=[],r=[],{unitId:i,subUnitId:a,range:o,shiftDimension:s,cellValue:l={}}=e,u=t.get(Ce),c=t.get(Tr),d=u.getUniverSheetInstance(i),h=d==null?void 0:d.getSheetBySheetId(a);if(h){const f=h.getCellMatrix(),m=f.getDataRange();if(o.startColumn<=m.endColumn||o.startRow<=m.endRow){let C,S;if(s===ts.COLUMNS){const y=Math.min(o.endRow,m.endRow);let A=0;for(let P=o.startRow;P<=y;P++){const M=f.getRow(P),L=M?Yd(M)-1:0;A=Math.max(A,L)}C={startRow:o.startRow,startColumn:o.startColumn,endRow:y,endColumn:A};const w=o.endColumn-o.startColumn+1;S={startRow:o.startRow,startColumn:C.startColumn+w,endRow:y,endColumn:C.endColumn+w}}else{const y=Math.min(o.endColumn,m.endColumn),A=m.endRow;C={startRow:o.startRow,startColumn:o.startColumn,endRow:A,endColumn:y};const w=o.endRow-o.startRow+1;S={startRow:C.startRow+w,startColumn:o.startColumn,endRow:C.endRow+w,endColumn:y}}const b=nx(t,{unitId:i,subUnitId:a,range:C},{subUnitId:a,range:S},!0);b&&(n.push(...b.redos),r.push(...b.undos))}if(Object.entries(l).length===0)for(let C=o.startRow;C<=o.endRow;C++){l[C]||(l[C]={});for(let S=o.startColumn;S<=o.endColumn;S++)l[C][S]=null}const g={subUnitId:a,unitId:i,cellValue:l},p=No(t,g),{undos:v,redos:_}=c.onCommandExecute({id:Uu.id,params:{...g,range:o}});n.push({id:Mn.id,params:g},..._),r.push({id:Mn.id,params:p},...v)}return{redo:n,undo:r}}oe(ane,"getInsertRangeMutations");function one(t,e){const n=[],r=[],{unitId:i,subUnitId:a,range:o,shiftDimension:s}=e,l=t.get(Ce),u=t.get(Tr),c=l.getUniverSheetInstance(i),d=c==null?void 0:c.getSheetBySheetId(a);if(d){const h=d.getCellMatrix(),f=h.getDataRange(),m={subUnitId:a,unitId:i,cellValue:ene([o])},g=No(t,m),p=u.onCommandExecute({id:Uu.id,params:m});if(n.push({id:Mn.id,params:m},...p.redos),r.push(...p.undos,{id:Mn.id,params:g}),o.startColumn<=f.endColumn||o.startRow<=f.endRow){let v=null,_=null;if(s===ts.COLUMNS&&o.endColumn<f.endColumn){const C=Math.min(o.endRow,f.endRow);let S=0;for(let y=o.startRow;y<=C;y++){const A=h.getRow(y),w=A?Yd(A)-1:0;S=Math.max(S,w)}v={startRow:o.startRow,startColumn:o.endColumn+1,endRow:C,endColumn:S};const b=o.endColumn-o.startColumn+1;_={startRow:o.startRow,startColumn:v.startColumn-b,endRow:C,endColumn:v.endColumn-b}}if(s===ts.ROWS&&o.endRow<f.endRow){const C=Math.min(o.endColumn,f.endColumn),S=f.endRow;v={startRow:o.endRow+1,startColumn:o.startColumn,endRow:S,endColumn:C};const b=o.endRow-o.startRow+1;_={startRow:v.startRow-b,startColumn:o.startColumn,endRow:v.endRow-b,endColumn:C}}if(v&&_){const C=nx(t,{unitId:i,subUnitId:a,range:v},{subUnitId:a,range:_},!0);C&&(n.push(...C.redos),r.push(...C.undos))}}}return{redo:n,undo:r}}oe(one,"getRemoveRangeMutations");function Y$t(t,e,n,r,i,a){const{startRow:o,endRow:s,startColumn:l,endColumn:u}=e;if(i===ts.ROWS){const c=s-o+1;for(let d=n;d>=o;d--)for(let h=l;h<=u;h++){const f=t.getValue(d,h);f==null?t.realDeleteValue(d+c,h):t.setValue(d+c,h,f)}for(let d=s;d>=o;d--)for(let h=l;h<=u;h++)a&&a[d]&&a[d][h]?t.setValue(d,h,a[d][h]):t.realDeleteValue(d,h)}else if(i===ts.COLUMNS){const c=u-l+1;for(let d=o;d<=s;d++)for(let h=r;h>=l;h--){const f=t.getValue(d,h);f==null?t.realDeleteValue(d,h+c):t.setValue(d,h+c,f)}for(let d=o;d<=s;d++)for(let h=u;h>=l;h--)a&&a[d]&&a[d][h]?t.setValue(d,h,a[d][h]):t.realDeleteValue(d,h)}}oe(Y$t,"handleInsertRangeMutation");function X$t(t,e,n,r,i){const{startRow:a,endRow:o,startColumn:s,endColumn:l}=e,u=o-a+1,c=l-s+1;if(i===ts.ROWS)for(let d=a;d<=n;d++)for(let h=s;h<=l;h++){const f=t.getValue(d+u,h);f==null?t.realDeleteValue(d,h):t.setValue(d,h,f)}else if(i===ts.COLUMNS)for(let d=a;d<=o;d++)for(let h=s;h<=r;h++){const f=t.getValue(d,h+c);f==null?t.realDeleteValue(d,h):t.setValue(d,h,f)}}oe(X$t,"handleDeleteRangeMutation");const CUe="sheet.command.delete-range-move-left",_p={type:Se.COMMAND,id:CUe,handler:oe(async(t,e)=>{var n,r,i;const a=t.get(me),o=t.get(xn),s=t.get(Ce),l=t.get(Bt),u=t.get(Tr),c=Dn(s);if(!c)return!1;const{worksheet:d,workbook:h,subUnitId:f,unitId:m}=c;let g=e==null?void 0:e.range;if(g||(g=(n=l.getCurrentLastSelection())==null?void 0:n.range),!g)return!1;const p={range:g,subUnitId:f,unitId:m,shiftDimension:ts.COLUMNS},v=u.onCommandExecute({id:_p.id,params:{range:g}}),{redo:_,undo:C}=one(t,p),S=[...(r=v.preRedos)!=null?r:[],..._],b=[...v.undos,...C];return S.push(...v.redos),S.push(u2(g,h,d)),b.push(...(i=v.preUndos)!=null?i:[]),ti(S,a).result?(o.pushUndoRedo({unitID:m,undoMutations:b.reverse(),redoMutations:S}),!0):!1},"handler")},SUe="sheet.command.delete-range-move-up",Cp={type:Se.COMMAND,id:SUe,handler:oe(async(t,e)=>{var n,r,i;const a=t.get(me),o=t.get(xn),s=t.get(Ce),l=t.get(Bt),u=t.get(Tr),c=Dn(s);if(!c)return!1;const{unitId:d,subUnitId:h,workbook:f,worksheet:m}=c;let g=e==null?void 0:e.range;if(g||(g=(n=l.getCurrentLastSelection())==null?void 0:n.range),!g)return!1;const p={range:g,subUnitId:h,unitId:d,shiftDimension:ts.ROWS},v=u.onCommandExecute({id:Cp.id,params:{range:g}}),{redo:_,undo:C}=one(t,p),S=[...(r=v.preRedos)!=null?r:[],..._],b=[...v.undos,...C];return S.push(...v.redos),S.push(u2(g,f,m)),b.push(...(i=v.preUndos)!=null?i:[]),ti(S,a).result?(o.pushUndoRedo({unitID:d,undoMutations:b.reverse(),redoMutations:S}),!0):!1},"handler")},bUe=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,range:e.range}},"InsertRowMutationUndoFactory"),A1={id:"sheet.mutation.insert-row",type:Se.MUTATION,handler:oe((t,e)=>{var n;const{unitId:r,subUnitId:i,range:a,rowInfo:o}=e,s=t.get(Ce).getUniverSheetInstance(r);if(s==null)throw new Error("universheet is null error!");const l=s.getSheetBySheetId(i);if(l==null)throw new Error("worksheet is null error!");const u=l.getRowManager().getRowData(),c={h:l.getConfig().defaultRowHeight,hd:0},d=a.startRow,h=a.endRow-a.startRow+1;for(let f=d;f<d+h;f++)o?Xg(f,(n=o[f-a.startRow])!=null?n:c,u):Xg(f,c,u);return l.setRowCount(l.getRowCount()+a.endRow-a.startRow+1),l.getCellMatrix().insertRows(a.startRow,h),!0},"handler")},yUe=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,range:e.range}},"InsertColMutationUndoFactory"),w1={id:"sheet.mutation.insert-col",type:Se.MUTATION,handler:oe((t,e)=>{var n;const r=t.get(Ce).getUniverSheetInstance(e.unitId);if(r==null)throw new Error("universheet is null error!");const i=r.getSheetBySheetId(e.subUnitId);if(!i)return!1;const a=i.getColumnManager(),{range:o,colInfo:s}=e,l=a.getColumnData(),u=o.startColumn,c=o.endColumn-o.startColumn+1,d=i.getConfig().defaultColumnWidth;for(let h=u;h<u+c;h++){const f={w:d,hd:0};s?Xg(h,(n=s[h-o.startColumn])!=null?n:f,l):Xg(h,f,l)}return i.setColumnCount(i.getColumnCount()+o.endColumn-o.startColumn+1),i.getCellMatrix().insertColumns(o.startColumn,c),!0},"handler")},G$t=oe((t,e)=>{const n=e.getRowManager().getRowData(),r={},i=t.range,a=YX(i.startRow,i.endRow,n),o=qX(r,a);return{unitId:t.unitId,subUnitId:t.subUnitId,range:t.range,rowInfo:o}},"RemoveRowsUndoMutationFactory"),Tu={id:"sheet.mutation.remove-rows",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(!r)return!1;const i=e.range,a=r.getRowManager().getRowData();for(let s=i.startRow;s<=i.endRow;s++)r.getRowFiltered(s);const o=i.endRow-i.startRow+1;return yv(i.startRow,o,a),r.getCellMatrix().removeRows(i.startRow,o),r.setRowCount(r.getRowCount()-o),!0},"handler")},Q$t=oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(r==null)throw new Error("worksheet is null error!");const i=r.getColumnManager().getColumnData(),a={},o=e.range,s=YX(o.startColumn,o.endColumn,i),l=qX(a,s);return{unitId:e.unitId,subUnitId:e.subUnitId,range:e.range,colInfo:l}},"RemoveColMutationFactory"),Wl={id:"sheet.mutation.remove-col",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(!r)return!1;const i=e.range,a=r.getColumnManager().getColumnData(),o=i.endColumn-i.startColumn+1;return yv(i.startColumn,o,a),r.setColumnCount(r.getColumnCount()-o),r.getCellMatrix().removeColumns(i.startColumn,o),!0},"handler")},K$t="sheet.command.insert-range-move-down",V0={type:Se.COMMAND,id:"sheet.command.insert-range-move-down",handler:oe(async(t,e)=>{var n,r,i;const a=t.get(me),o=t.get(xn),s=t.get(Ce),l=t.get(Bt),u=t.get(Tr),c=t.get(zf),d=t.get(sn);if(l.isOverlapping())return c.emit(d.t("sheets.info.overlappingSelections")),!1;const h=Dn(s);if(!h)return!1;const{unitId:f,subUnitId:m,worksheet:g,workbook:p}=h;let v=e==null?void 0:e.range;if(v||(v=(n=l.getCurrentLastSelection())==null?void 0:n.range),!v)return!1;const _=[],C=[],S=g.getCellMatrix(),b=S.getDataRange(),y=S.getSlice(b.startRow,b.endRow,v.startColumn,v.endColumn).getDataRange().endRow,A=Math.max(y+(v.endRow-v.startRow+1)-b.endRow,0);if(A>0){const O=v.startRow-1,$=g.getRowHeight(O),B={unitId:f,subUnitId:m,range:{startRow:b.endRow+1,endRow:b.endRow+A,startColumn:b.startColumn,endColumn:b.endColumn},rowInfo:new Array(A).fill(void 0).map(()=>({h:$,hd:at.FALSE}))};_.push({id:A1.id,params:B});const V=bUe(t,B);C.push({id:Tu.id,params:V})}const w={};Gn.foreach(v,(O,$)=>{const B=g.getCell(O,$);B&&(w[O]||(w[O]={}),w[O][$]={s:B.s})});const P={range:v,subUnitId:m,unitId:f,shiftDimension:ts.ROWS,cellValue:w},{redo:M,undo:L}=ane(t,P);_.push(...M),C.push(...L);const k=u.onCommandExecute({id:V0.id,params:{range:v}});return _.push(...k.redos),_.push(u2(v,p,g)),C.push(...(r=k.preUndos)!=null?r:[]),_.unshift(...(i=k.preRedos)!=null?i:[]),C.unshift(...k.undos),ti(_,a)?(o.pushUndoRedo({unitID:f,undoMutations:C.reverse(),redoMutations:_}),!0):!1},"handler")},EUe="sheet.command.insert-range-move-right",B0={type:Se.COMMAND,id:EUe,handler:oe(async(t,e)=>{var n,r,i;const a=t.get(me),o=t.get(xn),s=t.get(Ce),l=t.get(Bt),u=t.get(Tr),c=t.get(zf),d=t.get(sn);if(l.isOverlapping())return c.emit(d.t("sheets.info.overlappingSelections")),!1;const h=Dn(s);if(!h)return!1;const{workbook:f,worksheet:m,unitId:g,subUnitId:p}=h;let v=e==null?void 0:e.range;if(v||(v=(n=l.getCurrentLastSelection())==null?void 0:n.range),!v)return!1;const _=[],C=[],S=m.getCellMatrix(),b=S.getDataRange(),y=S.getSlice(v.startRow,v.endRow,b.startColumn,b.endColumn).getDataRange().endColumn,A=Math.max(y+(v.endColumn-v.startColumn+1)-b.endColumn,0);if(A>0){const O=v.startColumn-1,$=m.getColumnWidth(O),B={unitId:g,subUnitId:p,range:{startRow:b.startRow+1,endRow:b.endRow,startColumn:b.endColumn+1,endColumn:b.endColumn+A},colInfo:new Array(A).fill(void 0).map(()=>({w:$,hd:at.FALSE}))};_.push({id:w1.id,params:B});const V=yUe(t,B);C.push({id:Wl.id,params:V})}const w={};Gn.foreach(v,(O,$)=>{const B=m.getCell(O,$);!B||!B.s||(w[O]||(w[O]={}),w[O][$]={s:B.s})});const P={range:v,subUnitId:p,unitId:g,shiftDimension:ts.COLUMNS,cellValue:w},{redo:M,undo:L}=ane(t,P);_.push(...M),C.push(...L);const k=u.onCommandExecute({id:B0.id,params:{range:v}});return _.push(...k.redos),_.push(u2(v,f,m)),C.push(...(r=k.preUndos)!=null?r:[]),_.unshift(...(i=k.preRedos)!=null?i:[]),C.unshift(...k.undos),ti(_,a).result?(o.pushUndoRedo({unitID:g,undoMutations:C.reverse(),redoMutations:_}),!0):!1},"handler")},RUe="sheet.command.insert-row",If={type:Se.COMMAND,id:RUe,handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(me),s=t.get(xn),l=t.get(Ce),u=t.get(Tr),c=l.getUniverSheetInstance(e.unitId),d=c.getSheetBySheetId(e.subUnitId),{range:h,direction:f,unitId:m,subUnitId:g,cellValue:p}=e,{startRow:v,endRow:_}=h,C=f===ut.UP?v:v-1,S=d.getRowHeight(C),b={unitId:m,subUnitId:g,range:h,rowInfo:new Array(_-v+1).fill(void 0).map(()=>({h:S,hd:at.FALSE}))},y=bUe(t,b);if(!await u.beforeCommandExecute({id:If.id,params:b}))return!1;const A=[{id:A1.id,params:b}],w=[{id:Tu.id,params:y}];p&&A.push({id:Mn.id,params:{unitId:m,subUnitId:g,cellValue:p}});const P=u.onCommandExecute({id:If.id,params:e});return A.unshift(...(n=P.preRedos)!=null?n:[]),A.push(...(r=P.redos)!=null?r:[]),A.push(u2(h,c,d)),w.unshift(...(i=P.preUndos)!=null?i:[]),w.push(...(a=P.undos)!=null?a:[]),ti(A,o).result?(s.pushUndoRedo({unitID:e.unitId,undoMutations:w,redoMutations:A}),!0):!1},"handler")},YI={type:Se.COMMAND,id:"sheet.command.insert-row-before",handler:oe(async t=>{var e;const n=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(m=>m.range);let r;if((n==null?void 0:n.length)===1)r=n[0];else return!1;const i=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return!1;const a=i.getActiveSheet();if(!a)return!1;const o=i.getUnitId(),s=a.getSheetId(),{startRow:l,endRow:u}=r,c=0,d=a.getColumnCount()-1,h=nb(a,l,u,c,d,!0,l-1),f={unitId:o,subUnitId:s,direction:ut.UP,range:{startRow:l,endRow:u,startColumn:c,endColumn:d},cellValue:h};return t.get(me).executeCommand(If.id,f)},"handler")},sne={type:Se.COMMAND,id:"sheet.command.insert-row-after",handler:oe(async t=>{var e;const n=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(g=>g.range);let r;if((n==null?void 0:n.length)===1)r=n[0];else return!1;const i=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return!1;const a=i.getActiveSheet();if(!a)return!1;const o=i.getUnitId(),s=a.getSheetId(),l=r.endRow-r.startRow+1,u=r.endRow+1,c=r.endRow+l,d=0,h=a.getColumnCount()-1,f=nb(a,u,c,d,h,!0,r.endRow),m={unitId:o,subUnitId:s,direction:ut.DOWN,range:{startRow:u,endRow:c,startColumn:d,endColumn:h,rangeType:it.ROW},cellValue:f};return t.get(me).executeCommand(If.id,m)},"handler")},AUe="sheet.command.insert-col",Pf={type:Se.COMMAND,id:AUe,handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(me),s=t.get(xn),l=t.get(Ce),u=t.get(Tr),{range:c,direction:d,subUnitId:h,unitId:f,cellValue:m}=e,{startColumn:g,endColumn:p}=e.range,v=l.getUniverSheetInstance(e.unitId),_=v.getSheetBySheetId(e.subUnitId),C=d===ut.LEFT?g:g-1,S=_.getColumnWidth(C),b={unitId:f,subUnitId:h,range:c,colInfo:new Array(p-g+1).fill(void 0).map(()=>({w:S,hd:at.FALSE}))},y=yUe(t,b);if(!await u.beforeCommandExecute({id:Pf.id,params:b}))return!1;const A=[{id:w1.id,params:b}],w=[{id:Wl.id,params:y}];m&&A.push({id:Mn.id,params:{unitId:f,subUnitId:h,cellValue:m}});const P=u.onCommandExecute({id:Pf.id,params:e});return A.unshift(...(n=P.preRedos)!=null?n:[]),A.push(...(r=P.redos)!=null?r:[]),A.push(u2(c,v,_)),w.unshift(...(i=P.preUndos)!=null?i:[]),w.push(...(a=P.undos)!=null?a:[]),ti(A,o).result?(s.pushUndoRedo({unitID:e.unitId,undoMutations:w.filter(Boolean),redoMutations:A.filter(Boolean)}),!0):!1},"handler")},XI={type:Se.COMMAND,id:"sheet.command.insert-col-before",handler:oe(async t=>{const e=t.get(Bt).getCurrentSelections();let n;if((e==null?void 0:e.length)===1)n=e[0].range;else return!1;const r=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!r)return!1;const i=r.getActiveSheet();if(!i)return!1;const a=r.getUnitId(),o=i.getSheetId(),{startColumn:s,endColumn:l}=n,u=0,c=i.getRowCount()-1,d=nb(i,u,c,s,l,!1,s-1),h={unitId:a,subUnitId:o,direction:ut.LEFT,range:{startColumn:s,endColumn:l,startRow:u,endRow:c,rangeType:it.COLUMN},cellValue:d};return t.get(me).executeCommand(Pf.id,h)},"handler")},lne={type:Se.COMMAND,id:"sheet.command.insert-col-after",handler:oe(async t=>{const e=t.get(Bt).getCurrentSelections();let n;if((e==null?void 0:e.length)===1)n=e[0].range;else return!1;const r=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!r)return!1;const i=r.getActiveSheet();if(!i)return!1;const a=r.getUnitId(),o=i.getSheetId(),s=n.endColumn-n.startColumn+1,l=n.endColumn+1,u=n.endColumn+s,c=0,d=i.getRowCount()-1,h=nb(i,c,d,l,u,!1,n.endColumn),f={unitId:a,subUnitId:o,direction:ut.RIGHT,range:{startColumn:l,endColumn:u,startRow:c,endRow:d},cellValue:h};return t.get(me).executeCommand(Pf.id,f)},"handler")},wUe={id:"sheet.command.insert-sheet",type:Se.COMMAND,handler:oe((t,e)=>{var n;const r=t.get(me),i=t.get(xn),a=t.get(Ce),o=t.get(sn),s=MBe(a,{unitId:e==null?void 0:e.unitId});if(!s)return!1;const{unitId:l,workbook:u}=s;let c=u.getSheets().length;const d=e==null?void 0:e.sheet,h=d==null?void 0:d.id,f=yG(d||{});e?(c=(n=e.index)!=null?n:c,f.id=h||Ie.generateRandomId(),f.name=(d==null?void 0:d.name)||u.generateNewSheetName(`${o.t("sheets.tabs.sheet")}`)):(f.id=Ie.generateRandomId(),f.name=u.generateNewSheetName(`${o.t("sheets.tabs.sheet")}`));const m={index:c,sheet:f,unitId:l},g=PBe(t,m);return r.syncExecuteCommand(Dl.id,m)?(i.pushUndoRedo({unitID:l,undoMutations:[{id:Ls.id,params:g}],redoMutations:[{id:Dl.id,params:m}]}),!0):!1},"handler")};function DUe(t,e){const{unitId:n,subUnitId:r,sourceRange:i,targetRange:a}=e,o=i.startRow>a.startRow,s=i.endRow-i.startRow+1;return o?{unitId:n,subUnitId:r,sourceRange:ft.clone(a),targetRange:{...i,endRow:i.endRow+s,startRow:i.startRow+s}}:{unitId:n,subUnitId:r,targetRange:ft.clone(i),sourceRange:{...a,endRow:a.endRow-s,startRow:a.startRow-s}}}oe(DUe,"MoveRowsMutationUndoFactory");const m1={id:"sheet.mutation.move-rows",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,sourceRange:i,targetRange:a}=e,o=t.get(Ce).getUniverSheetInstance(n);if(!o)throw new Error("[MoveRowMutation] univerSheet is null!");const s=o.getSheetBySheetId(r);if(!s)throw new Error("[MoveRowMutation] worksheet is null!");const l=i.startRow,u=i.endRow-i.startRow+1,c=a.startRow,d=s.getRowManager().getRowData();return Ev(l,u,c,d),s.getCellMatrix().moveRows(l,u,c),!0},"handler")};function IUe(t,e){const{unitId:n,subUnitId:r,sourceRange:i,targetRange:a}=e,o=i.startColumn>a.startColumn,s=i.endColumn-i.startColumn+1;return o?{unitId:n,subUnitId:r,sourceRange:ft.clone(a),targetRange:{...i,endColumn:i.endColumn+s,startColumn:i.startColumn+s}}:{unitId:n,subUnitId:r,targetRange:ft.clone(i),sourceRange:{...a,startColumn:a.startColumn-s,endColumn:a.endColumn-s}}}oe(IUe,"MoveColsMutationUndoFactory");const g1={id:"sheet.mutation.move-columns",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,sourceRange:i,targetRange:a}=e,o=t.get(Ce).getUniverSheetInstance(n);if(!o)throw new Error("[MoveColumnMutation] univerSheet is null!");const s=o.getSheetBySheetId(r);if(!s)throw new Error("[MoveColumnMutation] worksheet is null!");const l=i.startColumn,u=i.endColumn-i.startColumn+1,c=a.startColumn,d=s.getColumnManager().getColumnData();return Ev(l,u,c,d),s.getCellMatrix().moveColumns(l,u,c),!0},"handler")};function PUe(t,e){return e.getMergeData().some(n=>n.startRow<t&&t<=n.endRow)}oe(PUe,"rowAcrossMergedCell");function MUe(t,e){return e.getMergeData().some(n=>n.startColumn<t&&t<=n.endColumn)}oe(MUe,"columnAcrossMergedCell");const TUe="sheet.command.move-rows",r3={id:TUe,type:Se.COMMAND,handler:oe(async(t,e)=>{var n,r;const i=t.get(Bt),{fromRange:{startRow:a},toRange:{startRow:o},range:s}=e,l=s?[une(s)]:i.getCurrentSelections(),u=l==null?void 0:l.filter(O=>O.range.rangeType===it.ROW&&O.range.startRow<=a&&a<=O.range.endRow);if((u==null?void 0:u.length)!==1)return!1;const c=t.get(Tr),d=t.get(Ce),h=Dn(d,e);if(!h)return!1;const{workbook:f,worksheet:m}=h,g=f.getUnitId(),p=m.getSheetId(),v=t.get(zf),_=t.get(sn),C=u[0].range,S=u[0].primary,b=Cu(C,m,!1);if(!ft.equals(C,b))return v.emit(_.t("sheets.info.partOfCell")),!1;if(PUe(o,m))return v.emit(_.t("sheets.info.acrossMergedCell")),!1;const y={...C,startRow:o,endRow:o+C.endRow-C.startRow},A={unitId:g,subUnitId:p,sourceRange:C,targetRange:y},w=DUe(t,A),P=t.get(me),M=c.onCommandExecute({id:r3.id,params:e}),L=[...(n=M.preRedos)!=null?n:[],{id:m1.id,params:A}],k=[...(r=M.preUndos)!=null?r:[],{id:m1.id,params:w}];if(S){const O=o-a<0,$=C.endRow-C.startRow+1,B=O?y:{...y,startRow:y.startRow-$,endRow:y.endRow-$},V={unitId:g,subUnitId:p,selections:[{range:B,primary:tl(B,m),style:null}]},X={unitId:g,subUnitId:p,selections:[{range:C,primary:S,style:null}]};L.push({id:Pr.id,params:V}),k.push({id:Pr.id,params:X})}return L.push(...M.redos),k.push(...M.undos),ti(L,P).result?(t.get(xn).pushUndoRedo({unitID:g,undoMutations:k,redoMutations:L}),!0):!1},"handler")},LUe="sheet.command.move-cols",i3={id:LUe,type:Se.COMMAND,handler:oe(async(t,e)=>{var n,r;const i=t.get(Bt),{fromRange:{startColumn:a},toRange:{startColumn:o},range:s}=e,l=s?[une(s)]:i.getCurrentSelections(),u=l==null?void 0:l.filter(O=>O.range.rangeType===it.COLUMN&&O.range.startColumn<=a&&a<=O.range.endColumn);if((u==null?void 0:u.length)!==1)return!1;const c=t.get(Tr),d=t.get(Ce),h=Dn(d,e);if(!h)return!1;const{workbook:f,worksheet:m}=h,g=f.getUnitId(),p=m.getSheetId(),v=t.get(zf),_=t.get(sn),C=u[0].range,S=u[0].primary,b=Cu(C,m,!1);if(!ft.equals(C,b))return v.emit(_.t("sheets.info.partOfCell")),!1;if(MUe(o,m))return v.emit(_.t("sheets.info.acrossMergedCell")),!1;const y={...C,startColumn:o,endColumn:o+C.endColumn-C.startColumn},A={unitId:g,subUnitId:p,sourceRange:C,targetRange:y},w=IUe(t,A),P=t.get(me),M=c.onCommandExecute({id:i3.id,params:e}),L=[...(n=M.preRedos)!=null?n:[],{id:g1.id,params:A}],k=[...(r=M.preUndos)!=null?r:[],{id:g1.id,params:w}];if(S){const O=C.endColumn-C.startColumn+1,$=o-a<0?y:{...y,startColumn:y.startColumn-O,endColumn:y.endColumn-O},B={unitId:g,subUnitId:p,selections:[{range:$,primary:tl($,m),style:null}]},V={unitId:g,subUnitId:p,selections:[{range:C,primary:S,style:null}]};L.push({id:Pr.id,params:B}),k.push({id:Pr.id,params:V})}return L.push(...M.redos),k.push(...M.undos),ti(L,P).result&&t.get(xn).pushUndoRedo({unitID:g,undoMutations:k,redoMutations:L}),!0},"handler")};function une(t){return{range:t,primary:null,style:null}}oe(une,"covertRangeToSelection");const xUe="sheet.command.remove-row",U0={type:Se.COMMAND,id:xUe,handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(Bt),s=t.get(Tr);let l=e==null?void 0:e.range;if(l||(l=(n=o.getCurrentLastSelection())==null?void 0:n.range),!l)return!1;const u=t.get(Ce),c=Dn(u);if(!c)return!1;const{workbook:d,worksheet:h,subUnitId:f,unitId:m}=c;l={...l,startColumn:0,endColumn:Math.max(h.getMaxColumns()-1,0)};const g=[];for(let b=l.startRow;b<=l.endRow;b++)h.getRowFiltered(b)&&g.push(b);const p=[];if(g.length){const b=[l.startRow,...g.map(A=>A+1)],y=[...g.map(A=>A-1),l.endRow];for(let A=b.length-1;A>=0;A--)b[A]<=y[A]&&p.push({startRow:b[A],endRow:y[A],startColumn:l.startColumn,endColumn:l.endColumn})}else p.push(l);if(!await s.beforeCommandExecute({id:U0.id,params:{range:l,ranges:p}}))return!1;const v=[],_=[];p.forEach(b=>{const y={unitId:m,subUnitId:f,range:b},A=h.getCellMatrix().getSlice(b.startRow,b.endRow,0,h.getColumnCount()-1),w={unitId:m,subUnitId:f,cellValue:A.getMatrix()},P=G$t(y,h);v.push({id:Tu.id,params:y}),_.unshift({id:A1.id,params:P},{id:Mn.id,params:w})});const C=s.onCommandExecute({id:U0.id,params:{range:l,ranges:p}}),S=t.get(me);return ti([...(r=C.preRedos)!=null?r:[],...v,...C.redos,u2(l,d,h)],S).result?(t.get(xn).pushUndoRedo({unitID:m,undoMutations:[...(i=C.preUndos)!=null?i:[],..._,...C.undos],redoMutations:[...(a=C.preRedos)!=null?a:[],...v,...C.redos]}),!0):!1},"handler")},OUe="sheet.command.remove-col",H0={type:Se.COMMAND,id:OUe,handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(Bt),s=t.get(Tr);let l=e==null?void 0:e.range;if(l||(l=(n=o.getCurrentLastSelection())==null?void 0:n.range),!l)return!1;const u=t.get(Ce),c=Dn(u);if(!c)return!1;const{workbook:d,worksheet:h,subUnitId:f,unitId:m}=c;l={...l,startRow:0,endRow:Math.max(h.getMaxRows()-1,0)};const g={unitId:m,subUnitId:f,range:l},p=Q$t(t,g),v=h.getCellMatrix().getSlice(0,h.getRowCount()-1,l.startColumn,l.endColumn),_={unitId:m,subUnitId:f,cellValue:v.getMatrix()};if(!await s.beforeCommandExecute({id:H0.id,params:{range:l}}))return!1;const C=s.onCommandExecute({id:H0.id,params:{range:l}}),S=t.get(me);return ti([...(r=C.preRedos)!=null?r:[],{id:Wl.id,params:g},...C.redos,u2(l,d,h)],S).result?(t.get(xn).pushUndoRedo({unitID:m,undoMutations:[...(i=C.preUndos)!=null?i:[],{id:w1.id,params:p},{id:Mn.id,params:_},...C.undos],redoMutations:[...(a=C.preRedos)!=null?a:[],{id:Wl.id,params:g},...C.redos]}),!0):!1},"handler")},ab={id:"sheet.command.remove-sheet",type:Se.COMMAND,handler:oe(async(t,e)=>{var n,r;const i=t.get(me),a=t.get(xn),o=t.get(Ce),s=t.get(Tr),l=Dn(o,e);if(!l)return!1;const{unitId:u,subUnitId:c,workbook:d,worksheet:h}=l;if(d.getSheets().length<=1)return!1;const f={subUnitId:c,unitId:u,subUnitName:h.getName()},m=E$t(t,f),g=s.onCommandExecute({id:ab.id,params:{unitId:u,subUnitId:c}}),p=[...(n=g.preRedos)!=null?n:[],{id:Ls.id,params:f},...g.redos],v=[...(r=g.preUndos)!=null?r:[],{id:Dl.id,params:m},...g.undos];return ti(p,i).result?(a.pushUndoRedo({unitID:u,undoMutations:v,redoMutations:p}),!0):!1},"handler")},ou=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:e.ranges}},"AddMergeUndoMutationFactory"),yi={id:"sheet.mutation.add-worksheet-merge",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(!r)return!1;const i=r.getConfig().mergeData,a=e.ranges;for(let o=0;o<a.length;o++)i.push(a[o]);return r.getSpanModel().rebuild(i),!0},"handler")},fl=oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(r==null)throw new Error("worksheet is null error!");const i=r.getConfig().mergeData,a=e.ranges,o=[];for(let s=0;s<a.length;s++)for(let l=i.length-1;l>=0;l--){const u=i[l],c=a[s];ft.intersects(u,c)&&o.push(i[l])}return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:o}},"RemoveMergeUndoMutationFactory"),Di={id:"sheet.mutation.remove-worksheet-merge",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(!r)return!1;const i=r.getConfig().mergeData,a=e.ranges;for(let o=0;o<a.length;o++)for(let s=i.length-1;s>=0;s--){const l=i[s],u=a[o];ft.intersects(l,u)&&i.splice(s,1)}return r.getSpanModel().rebuild(i),!0},"handler")},cne={type:Se.COMMAND,id:"sheet.command.remove-worksheet-merge",handler:oe(async(t,e)=>{var n;const r=t.get(Bt),i=t.get(me),a=t.get(xn),o=t.get(Ce),s=(e==null?void 0:e.ranges)||((n=r.getCurrentSelections())==null?void 0:n.map(M=>M.range));if(!(s!=null&&s.length))return!1;const l=Dn(o);if(!l)return!1;const{subUnitId:u,unitId:c,worksheet:d}=l,h={unitId:c,subUnitId:u,ranges:s},f=d.getConfig().mergeData.filter(M=>s.some(L=>ft.intersects(L,M)));if(!f.length)return!1;const m=fl(t,h),g=r.getCurrentSelections();if(!(g!=null&&g.length))return!1;const p=Ie.deepClone(g),v=Ie.deepClone(g),_=v[v.length-1],{startRow:C,startColumn:S}=_.range;_.primary={startRow:C,startColumn:S,endRow:C,endColumn:S,actualRow:C,actualColumn:S,isMerged:!1,isMergedMainCell:!1};const b=NUe(d,f),y={unitId:c,subUnitId:u,cellValue:b.redoParams.getMatrix()},A={unitId:c,subUnitId:u,cellValue:b.undoParams.getMatrix()},w=[{id:Di.id,params:m},{id:Mn.id,params:y},{id:Pr.id,params:{selections:v}}],P=[{id:yi.id,params:m},{id:Mn.id,params:A},{id:Pr.id,params:{selections:p}}];return ti(w,i)?(a.pushUndoRedo({unitID:c,undoMutations:P,redoMutations:w}),!0):!1},"handler")};function NUe(t,e){const n=new Ct,r=new Ct;return e.forEach(i=>{const{startRow:a,startColumn:o,endColumn:s,endRow:l}=i,u=t.getCellMatrix().getValue(a,o);if(u!=null&&u.s)for(let c=a;c<=l;c++)for(let d=o;d<=s;d++)(c!==a||d!==o)&&(n.setValue(c,d,{s:u.s}),r.setValue(c,d,null))}),{redoParams:n,undoParams:r}}oe(NUe,"getSetRangeStyleParamsForRemoveMerge");const kUe=class{constructor(){xe(this,"_borderInfo",{type:Wo.ALL,color:"#000000",style:Un.THIN,activeBorderType:!1}),xe(this,"_borderInfo$",new Pn(this._borderInfo)),xe(this,"borderInfo$",this._borderInfo$.asObservable())}dispose(){this._borderInfo$.complete()}setType(e){this._borderInfo.type=e,this.setActiveBorderType(!0),this.refresh()}setColor(e){this._borderInfo.color=e,this.refresh()}setStyle(e){this._borderInfo.style=e,this.refresh()}setActiveBorderType(e){this._borderInfo.activeBorderType=e}getBorderInfo(){return this._borderInfo}refresh(){this._borderInfo$.next(this._borderInfo)}};oe(kUe,"BorderStyleManagerService");let Mf=kUe;function e8(t,e){const{startRow:n,startColumn:r,endRow:i,endColumn:a}=t;for(let o=n;o<=i;o++)for(let s=r;s<=a;s++)e(o,s)}oe(e8,"forEach");const GI={id:"sheet.command.set-border-basic",type:Se.COMMAND,handler:oe(async(t,e)=>{const{unitId:n,subUnitId:r,value:i}=e,{type:a,color:o,style:s}=i,l=t.get(me),u=t.get(Mf);return u.setType(a),u.setColor(o),u.setStyle(s),l.executeCommand(a3.id,{unitId:n,subUnitId:r})},"handler")},Z$t={id:"sheet.command.set-border-position",type:Se.COMMAND,handler:oe(async(t,e)=>{if(!e.value)return!1;const n=t.get(me);return t.get(Mf).setType(e.value),n.executeCommand(a3.id)},"handler")},J$t={id:"sheet.command.set-border-style",type:Se.COMMAND,handler:oe(async(t,e)=>{const n=t.get(me);return t.get(Mf).setStyle(e.value),n.executeCommand(a3.id)},"handler")},eWt={id:"sheet.command.set-border-color",type:Se.COMMAND,handler:oe(async(t,e)=>{const n=t.get(me);return t.get(Mf).setColor(e.value),n.executeCommand(a3.id)},"handler")},a3={id:"sheet.command.set-border",type:Se.COMMAND,handler:oe(async(t,e)=>{var n;const r=t.get(me),i=t.get(xn),a=t.get(Ce),o=t.get(Bt),s=t.get(Mf),l=Dn(a,e);if(!l)return!1;const{worksheet:u,unitId:c,subUnitId:d}=l,h=(n=o.getCurrentSelections())==null?void 0:n.map(ie=>ie.range);if(!(h!=null&&h.length))return!1;const{style:f,color:m,type:g,activeBorderType:p}=s.getBorderInfo();if(!p)return!1;const v=g===Wo.TOP||g===Wo.ALL||g===Wo.OUTSIDE,_=g===Wo.LEFT||g===Wo.ALL||g===Wo.OUTSIDE,C=g===Wo.BOTTOM||g===Wo.ALL||g===Wo.OUTSIDE,S=g===Wo.RIGHT||g===Wo.ALL||g===Wo.OUTSIDE,b=g===Wo.VERTICAL||g===Wo.ALL||g===Wo.INSIDE,y=g===Wo.HORIZONTAL||g===Wo.ALL||g===Wo.INSIDE,A=g.indexOf("tlbr")>-1,w=g.indexOf("tlbc")>-1,P=g.indexOf("tlmr")>-1,M=g.indexOf("bltr")>-1,L=g.indexOf("mltr")>-1,k=g.indexOf("bctr")>-1,O=h[0],$={startRow:O.startRow-1,startColumn:O.startColumn,endRow:O.startRow-1,endColumn:O.endColumn},B={startRow:O.startRow,startColumn:O.startColumn-1,endRow:O.endRow,endColumn:O.startColumn-1},V={startRow:O.endRow+1,startColumn:O.startColumn,endRow:O.endRow+1,endColumn:O.endColumn},X={startRow:O.startRow,startColumn:O.endColumn+1,endRow:O.endRow,endColumn:O.endColumn+1},z={startRow:O.startRow,startColumn:O.startColumn,endRow:O.startRow,endColumn:O.endColumn},F={startRow:O.startRow,startColumn:O.startColumn,endRow:O.endRow,endColumn:O.startColumn},H={startRow:O.endRow,startColumn:O.startColumn,endRow:O.endRow,endColumn:O.endColumn},W={startRow:O.startRow,startColumn:O.endColumn,endRow:O.endRow,endColumn:O.endColumn},K=new Ct,G={s:f,cl:{rgb:m}};function te(ie,ne,de){ie.startRow<0||ie.startColumn<0||e8(ie,(_e,Pe)=>{var De,Ee;const ye=u.getMergedCell(_e,Pe);let Ve=ne;if(ye&&(ne.bc_tr||ne.ml_tr||ne.bl_tr||ne.tl_mr||ne.tl_bc||ne.tl_br)){if(de){const ke=Ie.deepClone((De=K.getValue(ye.startRow,ye.startColumn))==null?void 0:De.s);Ve=ke!=null&&ke.bd?Object.assign(ke.bd,ne):ne}K.setValue(ye.startRow,ye.startColumn,{s:{bd:Ve}})}else{if(de){const ke=Ie.deepClone((Ee=K.getValue(_e,Pe))==null?void 0:Ee.s);Ve=ke!=null&&ke.bd?Object.assign(ke.bd,ne):ne}K.setValue(_e,Pe,{s:{bd:Ve}})}})}oe(te,"setBorderStyle"),v&&(te($,{b:null}),te(z,{t:Ie.deepClone(G)},!0)),C&&(te(V,{t:null}),te(H,{b:Ie.deepClone(G)},!0)),_&&(te(B,{r:null}),te(F,{l:Ie.deepClone(G)},!0)),S&&(te(X,{l:null}),te(W,{r:Ie.deepClone(G)},!0)),A&&te(O,{tl_br:Ie.deepClone(G)},!0),w&&te(O,{tl_bc:Ie.deepClone(G)},!0),P&&te(O,{tl_mr:Ie.deepClone(G)},!0),M&&te(O,{bl_tr:Ie.deepClone(G)},!0),L&&te(O,{ml_tr:Ie.deepClone(G)},!0),k&&te(O,{bc_tr:Ie.deepClone(G)},!0),b&&e8(O,(ie,ne)=>{var de,_e,Pe,De;const Ee=u.getMergedCell(ie,ne);if(Ee){if(Ee.endColumn!==O.endColumn){const ye=(de=K.getValue(Ee.startRow,Ee.startColumn))==null?void 0:de.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{r:Ie.deepClone(G)}):{r:Ie.deepClone(G)}}})}if(Ee.startColumn!==O.startColumn){const ye=(_e=K.getValue(Ee.startRow,Ee.startColumn))==null?void 0:_e.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{l:Ie.deepClone(G)}):{l:Ie.deepClone(G)}}})}}else{if(ne!==O.endColumn){const ye=(Pe=K.getValue(ie,ne))==null?void 0:Pe.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{r:Ie.deepClone(G)}):{r:Ie.deepClone(G)}}})}if(ne!==O.startColumn){const ye=(De=K.getValue(ie,ne))==null?void 0:De.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{l:Ie.deepClone(G)}):{l:Ie.deepClone(G)}}})}}}),y&&e8(O,(ie,ne)=>{var de,_e,Pe,De;const Ee=u.getMergedCell(ie,ne);if(Ee){if(Ee.endRow!==O.endRow){const ye=(de=K.getValue(Ee.startRow,Ee.startColumn))==null?void 0:de.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{b:Ie.deepClone(G)}):{b:Ie.deepClone(G)}}})}if(Ee.startRow!==O.startRow){const ye=(_e=K.getValue(Ee.startRow,Ee.startColumn))==null?void 0:_e.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{t:Ie.deepClone(G)}):{t:Ie.deepClone(G)}}})}}else{if(ie!==O.endRow){const ye=(Pe=K.getValue(ie,ne))==null?void 0:Pe.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{b:Ie.deepClone(G)}):{b:Ie.deepClone(G)}}})}if(ie!==O.startRow){const ye=(De=K.getValue(ie,ne))==null?void 0:De.s;K.setValue(ie,ne,{s:{bd:ye!=null&&ye.bd?Object.assign(ye.bd,{t:Ie.deepClone(G)}):{t:Ie.deepClone(G)}}})}}}),!v&&!C&&!_&&!S&&!b&&!y&&!A&&!w&&!P&&!M&&!L&&!k&&(te($,{b:null}),te(z,{t:null},!0),te(V,{t:null}),te(H,{b:null},!0),te(B,{r:null}),te(F,{l:null},!0),te(X,{l:null}),te(W,{r:null},!0),te(O,{tl_br:null},!0),te(O,{tl_bc:null},!0),te(O,{tl_mr:null},!0),te(O,{bl_tr:null},!0),te(O,{ml_tr:null},!0),te(O,{bc_tr:null},!0),e8(O,(ie,ne)=>{var de,_e,Pe,De,Ee,ye,Ve,ke;const Ke=u.getMergedCell(ie,ne);if(Ke){if(Ke.endColumn!==O.endColumn){const $e=(de=K.getValue(Ke.startRow,Ke.startColumn))==null?void 0:de.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{r:null}):{r:null}}})}if(Ke.startColumn!==O.startColumn){const $e=(_e=K.getValue(Ke.startRow,Ke.startColumn))==null?void 0:_e.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{l:null}):{l:null}}})}if(Ke.endRow!==O.endRow){const $e=(Pe=K.getValue(Ke.startRow,Ke.startColumn))==null?void 0:Pe.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{b:null}):{b:null}}})}if(Ke.startRow!==O.startRow){const $e=(De=K.getValue(Ke.startRow,Ke.startColumn))==null?void 0:De.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{t:null}):{t:null}}})}}else{if(ne!==O.endColumn){const $e=(Ee=K.getValue(ie,ne))==null?void 0:Ee.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{r:null}):{r:null}}})}if(ne!==O.startColumn){const $e=(ye=K.getValue(ie,ne))==null?void 0:ye.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{l:null}):{l:null}}})}if(ie!==O.endRow){const $e=(Ve=K.getValue(ie,ne))==null?void 0:Ve.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{b:null}):{b:null}}})}if(ie!==O.startRow){const $e=(ke=K.getValue(ie,ne))==null?void 0:ke.s;K.setValue(ie,ne,{s:{bd:$e!=null&&$e.bd?Object.assign($e.bd,{t:null}):{t:null}}})}}}));const Y={unitId:c,subUnitId:d,cellValue:K.getData()},ae=No(t,Y);return r.syncExecuteCommand(Mn.id,Y)?(i.pushUndoRedo({unitID:c,undoMutations:[{id:Mn.id,params:ae}],redoMutations:[{id:Mn.id,params:Y}]}),!0):!1},"handler")},tWt=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:e.ranges}},"SetColHiddenUndoMutationFactory"),Tf={id:"sheet.mutation.set-col-hidden",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(!n)return!1;const r=n.getSheetBySheetId(e.subUnitId).getColumnManager();for(let i=0;i<e.ranges.length;i++){const a=e.ranges[i];for(let o=a.startColumn;o<a.endColumn+1;o++){const s=r.getColumnOrCreate(o);s!=null&&(s.hd=at.TRUE)}}return!0},"handler")},nWt=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:e.ranges}},"SetColVisibleUndoMutationFactory"),Lf={id:"sheet.mutation.set-col-visible",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(!n)return!1;const r=n.getSheetBySheetId(e.subUnitId).getColumnManager();for(let i=0;i<e.ranges.length;i++){const a=e.ranges[i];for(let o=a.startColumn;o<a.endColumn+1;o++){const s=r.getColumnOrCreate(o);s!=null&&(s.hd=at.FALSE)}}return!0},"handler")},ob={type:Se.COMMAND,id:"sheet.command.set-col-visible-on-cols",handler:oe(async(t,e)=>{var n,r;const{unitId:i,subUnitId:a,ranges:o}=e,s=t.get(Tr),l=t.get(me),u=t.get(Ce),c=Dn(u,{unitId:i,subUnitId:a});if(!c)return!1;const{worksheet:d}=c,h={unitId:i,subUnitId:a,ranges:o},f={unitId:i,subUnitId:a,reveal:!0,selections:o.map(C=>({range:C,primary:tl(C,d),style:null}))},m=nWt(t,h),g={unitId:i,subUnitId:a,selections:dne(o).map(C=>({range:C,primary:tl(C,d),style:null}))},p=ti([{id:Lf.id,params:h},{id:Pr.id,params:f}],l),v=s.onCommandExecute({id:ob.id,params:e}),_=ti([...v.redos],l);return p.result&&_.result&&t.get(xn).pushUndoRedo({unitID:i,undoMutations:[{id:Tf.id,params:m},{id:Pr.id,params:g},...(n=v.undos)!=null?n:[]],redoMutations:[...(r=v.preRedos)!=null?r:[],{id:Lf.id,params:h},{id:Pr.id,params:f},...v.redos]}),!0},"handler")},ox={type:Se.COMMAND,id:"sheet.command.set-selected-cols-visible",handler:oe(async t=>{var e;const n=t.get(Bt),r=t.get(me),i=(e=n.getCurrentSelections())==null?void 0:e.map(c=>c.range).filter(c=>c.rangeType===it.COLUMN);if(!(i!=null&&i.length))return!1;const a=Dn(t.get(Ce));if(!a)return!1;const{worksheet:o,unitId:s,subUnitId:l}=a,u=i.map(c=>o.getHiddenCols(c.startColumn,c.endColumn)).flat();return r.executeCommand(ob.id,{unitId:s,subUnitId:l,ranges:u})},"handler")},sx={type:Se.COMMAND,id:"sheet.command.set-col-hidden",handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(Bt),s=t.get(Tr),l=t.get(Ce),u=t.get(me);let c=(n=e==null?void 0:e.ranges)!=null&&n.length?e.ranges:(r=o.getCurrentSelections())==null?void 0:r.map(y=>y.range).filter(y=>y.rangeType===it.COLUMN);if(!(c!=null&&c.length))return!1;const d=Dn(l,e);if(!d)return!1;const{worksheet:h,unitId:f,subUnitId:m}=d;c=FUe(d.worksheet,c);const g={unitId:f,subUnitId:m,ranges:c},p={unitId:f,subUnitId:m,selections:dne(c).map(y=>({range:y,primary:tl(y,h),style:null}))},v=tWt(t,g),_={unitId:f,subUnitId:m,reveal:!0,selections:c.map(y=>({range:y,primary:tl(y,h),style:null}))},C=ti([{id:Tf.id,params:g},{id:Pr.id,params:p}],u),S=s.onCommandExecute({id:sx.id,params:g}),b=ti([...S.redos],u);return C.result&&b.result?(t.get(xn).pushUndoRedo({unitID:f,undoMutations:[{id:Lf.id,params:v},{id:Pr.id,params:_},...(i=S.undos)!=null?i:[]],redoMutations:[...(a=S.preRedos)!=null?a:[],{id:Tf.id,params:g},{id:Pr.id,params:p},...S.redos]}),!0):!1},"handler")};function FUe(t,e){const n=t.getRowCount()-1,r=t.getHiddenCols(),i=[];return e.forEach(a=>{const o=r.filter(s=>s.startColumn>=a.startColumn&&s.endColumn<=a.endColumn);if(o.length){let s=a.startColumn;o.forEach(l=>{l.startColumn>s&&(i.push({startColumn:s,endColumn:l.startColumn-1,startRow:0,endRow:n}),s=l.endColumn+1)}),s<=a.endColumn&&i.push({startColumn:s,endColumn:a.endColumn,startRow:0,endRow:n})}else i.push(a)}),i}oe(FUe,"divideRangesByHiddenCols");function dne(t){return VUe(t).map(e=>{const n=e.startColumn===0?e.endColumn+1:e.startColumn-1;return{...e,startColumn:n,endColumn:n}})}oe(dne,"getSelectionsAfterHiding$1");function VUe(t){const e=[];let n;return t.sort((r,i)=>r.startColumn-i.startColumn).forEach(r=>{if(!n){n=r;return}n.endColumn===r.startColumn-1?n.endColumn=r.endColumn:(e.push(n),n=r)}),e.push(n),e}oe(VUe,"mergeSelections$1");const sb=oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(r==null)throw new Error("worksheet is null error!");const i=r.getConfig().freeze;return{unitId:e.unitId,subUnitId:e.subUnitId,...i}},"SetFrozenMutationFactory"),El={id:"sheet.mutation.set-frozen",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId);if(!r)return!1;const i=r.getConfig(),{startRow:a,startColumn:o,ySplit:s,xSplit:l}=e;return i.freeze={startRow:a,startColumn:o,ySplit:s,xSplit:l},!0},"handler")},BUe={type:Se.COMMAND,id:"sheet.command.set-frozen",handler:oe(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=t.get(Ce),a=Dn(i);if(!a)return!1;const{unitId:o,subUnitId:s,worksheet:l}=a,{startColumn:u,startRow:c,xSplit:d,ySplit:h}=e;if(c>=l.getRowCount()||u>=l.getColumnCount()||d>=l.getColumnCount()||h>=l.getRowCount())return!1;const f={unitId:o,subUnitId:s,...e},m=sb(t,f);return n.syncExecuteCommand(El.id,f)?(r.pushUndoRedo({unitID:o,undoMutations:[{id:El.id,params:m}],redoMutations:[{id:El.id,params:f}]}),!0):!1},"handler")},rWt={type:Se.COMMAND,id:"sheet.command.set-frozen-cancel",handler:oe(async t=>{const e=t.get(me),n=t.get(xn),r=t.get(Ce),i=Dn(r);if(!i)return!1;const{unitId:a,subUnitId:o}=i,s={unitId:a,subUnitId:o,startRow:-1,startColumn:-1,ySplit:0,xSplit:0},l=sb(t,s);return e.syncExecuteCommand(El.id,s)?(n.pushUndoRedo({unitID:a,undoMutations:[{id:El.id,params:l}],redoMutations:[{id:El.id,params:s}]}),!0):!1},"handler")},iWt=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:e.ranges}},"SetRowVisibleUndoMutationFactory"),xf={id:"sheet.mutation.set-row-visible",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId).getRowManager();for(let i=0;i<e.ranges.length;i++){const a=e.ranges[i];for(let o=a.startRow;o<a.endRow+1;o++){const s=r.getRowOrCreate(o);s!=null&&(s.hd=0)}}return!0},"handler")},aWt=oe((t,e)=>{if(t.get(Ce).getUniverSheetInstance(e.unitId)==null)throw new Error("universheet is null error!");return{unitId:e.unitId,subUnitId:e.subUnitId,ranges:e.ranges}},"SetRowHiddenUndoMutationFactory"),Of={id:"sheet.mutation.set-row-hidden",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)throw new Error("universheet is null error!");const r=n.getSheetBySheetId(e.subUnitId).getRowManager();for(let i=0;i<e.ranges.length;i++){const a=e.ranges[i];for(let o=a.startRow;o<a.endRow+1;o++){const s=r.getRowOrCreate(o);s!=null&&(s.hd=1)}}return!0},"handler")},lb={type:Se.COMMAND,id:"sheet.command.set-specific-rows-visible",handler:oe(async(t,e)=>{var n,r,i;const{unitId:a,subUnitId:o,ranges:s}=e,l=t.get(me),u=t.get(xn),c=t.get(Tr),d=Dn(t.get(Ce),{unitId:a,subUnitId:o});if(!d)return!1;const{worksheet:h}=d,f={unitId:a,subUnitId:o,ranges:s},m={unitId:a,subUnitId:o,reveal:!0,selections:s.map(S=>({range:S,primary:tl(S,h),style:null}))},g=iWt(t,f),p={unitId:a,subUnitId:o,selections:hne(s).map(S=>({range:S,primary:tl(S,h),style:null}))},v=ti([{id:xf.id,params:f},{id:Pr.id,params:m}],l),_=c.onCommandExecute({id:lb.id,params:e}),C=ti([..._.redos],l);return v.result&&C.result&&u.pushUndoRedo({unitID:a,undoMutations:[...(n=_.preUndos)!=null?n:[],{id:Of.id,params:g},{id:Pr.id,params:p},...(r=_.undos)!=null?r:[]],redoMutations:[...(i=_.preRedos)!=null?i:[],{id:xf.id,params:f},{id:Pr.id,params:m},..._.redos]}),!0},"handler")},lx={type:Se.COMMAND,id:"sheet.command.set-selected-rows-visible",handler:oe(async t=>{var e;const n=t.get(Bt),r=t.get(Ce),i=t.get(me),a=(e=n.getCurrentSelections())==null?void 0:e.map(d=>d.range).filter(d=>d.rangeType===it.ROW);if(!(a!=null&&a.length))return!1;const o=Dn(r);if(!o)return!1;const{worksheet:s,unitId:l,subUnitId:u}=o,c=a.map(d=>s.getHiddenRows(d.startRow,d.endRow)).flat();return i.executeCommand(lb.id,{unitId:l,subUnitId:u,ranges:c})},"handler")},ux={type:Se.COMMAND,id:"sheet.command.set-rows-hidden",handler:oe(async(t,e)=>{var n,r,i,a,o,s;const l=t.get(Bt),u=t.get(me),c=t.get(xn),d=t.get(Ce),h=t.get(Tr);let f=(n=e==null?void 0:e.ranges)!=null&&n.length?e.ranges:(r=l.getCurrentSelections())==null?void 0:r.map(A=>A.range).filter(A=>A.rangeType===it.ROW);if(!(f!=null&&f.length))return!1;const m=Dn(d,e);if(!m)return!1;f=UUe(m.worksheet,f);const{unitId:g,subUnitId:p,worksheet:v}=m,_={unitId:g,subUnitId:p,ranges:f},C={unitId:g,subUnitId:p,selections:hne(f).map(A=>({range:A,primary:tl(A,v),style:null}))},S=aWt(t,_),b={unitId:g,subUnitId:p,reveal:!0,selections:f.map(A=>({range:A,primary:tl(A,v),style:null}))},y=h.onCommandExecute({id:ux.id,params:_});return ti([...(i=y.preRedos)!=null?i:[],{id:Of.id,params:_},{id:Pr.id,params:C},...y.redos],u).result&&c.pushUndoRedo({unitID:g,undoMutations:[...(a=y.preUndos)!=null?a:[],{id:xf.id,params:S},{id:Pr.id,params:b},...(o=y.undos)!=null?o:[]],redoMutations:[...(s=y.preRedos)!=null?s:[],{id:Of.id,params:_},{id:Pr.id,params:C},...y.redos]}),!0},"handler")};function UUe(t,e){const n=t.getMaxColumns()-1,r=t.getHiddenRows(),i=[];return e.forEach(a=>{const o=r.filter(s=>s.startRow>=a.startRow&&s.endRow<=a.endRow);if(o.length){let s=a.startRow;o.forEach(l=>{l.startRow>s&&(i.push({startRow:s,endRow:l.startRow-1,startColumn:0,endColumn:n}),s=l.endRow+1)}),s<=a.endRow&&i.push({startRow:s,endRow:a.endRow,startColumn:0,endColumn:n})}else i.push(a)}),i}oe(UUe,"divideRangesByHiddenRows");function hne(t){return HUe(t).map(e=>{const n=e.startRow===0?e.endRow+1:e.startRow-1;return{...e,startRow:n,endRow:n}})}oe(hne,"getSelectionsAfterHiding");function HUe(t){const e=[];let n;return t.sort((r,i)=>r.startRow-i.startRow).forEach(r=>{if(!n){n=r;return}r.startRow===n.endRow+1?n.endRow=r.endRow:(e.push(n),n=r)}),e.push(n),e}oe(HUe,"mergeSelections");const rs={type:Se.COMMAND,id:"sheet.command.set-style",handler:oe(async(t,e)=>{var n;const r=t.get(Ce),i=Dn(r);if(!i)return!1;const{unitId:a,subUnitId:o,worksheet:s}=i,{range:l,style:u}=e,c=t.get(me),d=t.get(xn),h=t.get(Bt),f=l?[l]:(n=h.getCurrentSelections())==null?void 0:n.map(y=>y.range);if(!(f!=null&&f.length))return!1;const m=new Ct,g=LBe(s);if(Ie.isArray(u.value))for(let y=0;y<f.length;y++)g.forOperableEach(f[y],(A,w,P)=>{m.setValue(A,w,{s:{[u.type]:u.value[A-P.startRow][w-P.startColumn]}})});else for(let y=0;y<f.length;y++){const A={s:{[u.type]:u.value}};g.forOperableEach(f[y],(w,P)=>m.setValue(w,P,A))}const p={subUnitId:o,unitId:a,cellValue:m.getMatrix()},v=No(t,p),_=c.syncExecuteCommand(Mn.id,p),{undos:C,redos:S}=t.get(Tr).onCommandExecute({id:rs.id,params:e}),b=ti([...S],c);return _&&b.result?(d.pushUndoRedo({unitID:a,undoMutations:[{id:Mn.id,params:v},...C],redoMutations:[{id:Mn.id,params:p},...S]}),!0):!1},"handler")},fne={type:Se.COMMAND,id:"sheet.command.set-bold",handler:oe(async t=>{const e=t.get(Bt).getCurrentLastSelection();if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{worksheet:r}=n,{actualRow:i,actualColumn:a}=e.primary,o={style:{type:"bl",value:r.getRange(i,a).getFontWeight()===Bm.BOLD?at.FALSE:at.TRUE}};return t.get(me).executeCommand(rs.id,o)},"handler")},mne={type:Se.COMMAND,id:"sheet.command.set-italic",handler:oe(async t=>{const e=t.get(Bt).getCurrentLastSelection();if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{worksheet:r}=n;let i=!0;if(e.primary){const{startRow:o,startColumn:s}=e.primary;i=r.getRange(o,s).getFontStyle()===Vm.ITALIC}const a={style:{type:"it",value:i?at.FALSE:at.TRUE}};return t.get(me).executeCommand(rs.id,a)},"handler")},gne={type:Se.COMMAND,id:"sheet.command.set-underline",handler:oe(async t=>{const e=t.get(Bt).getCurrentLastSelection();if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{worksheet:r}=n;let i=!0;e.primary&&(i=!!r.getRange(e.primary.startRow,e.primary.startColumn).getUnderline().s);const a={style:{type:"ul",value:{s:i?at.FALSE:at.TRUE}}};return t.get(me).executeCommand(rs.id,a)},"handler")},pne={type:Se.COMMAND,id:"sheet.command.set-stroke",handler:oe(async t=>{const e=t.get(Bt).getCurrentLastSelection();if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{worksheet:r}=n;let i=!0;e.primary&&(i=!!r.getRange(e.primary.actualRow,e.primary.actualColumn).getStrikeThrough().s);const a={style:{type:"st",value:{s:i?at.FALSE:at.TRUE}}};return t.get(me).executeCommand(rs.id,a)},"handler")};Se.COMMAND;const vne={type:Se.COMMAND,id:"sheet.command.set-font-family",handler:oe(async(t,e)=>{if(!e)return!1;const n=t.get(me),r={style:{type:"ff",value:e.value}};return n.executeCommand(rs.id,r)},"handler")},_ne={type:Se.COMMAND,id:"sheet.command.set-font-size",handler:oe(async(t,e)=>{if(!e)return!1;const n=t.get(me),r={style:{type:"fs",value:e.value}};return n.executeCommand(rs.id,r)},"handler")},jUe={type:Se.COMMAND,id:"sheet.command.set-text-color",handler:oe(async(t,e)=>{if(!e||!e.value)return!1;const n=t.get(me),r={style:{type:"cl",value:{rgb:e.value}}};return n.executeCommand(rs.id,r)},"handler")},Cne={type:Se.COMMAND,id:"sheet.command.reset-text-color",handler:oe(async t=>{const e=t.get(me),n={style:{type:"cl",value:{rgb:null}}};return e.executeCommand(rs.id,n)},"handler")},z_={type:Se.COMMAND,id:"sheet.command.set-background-color",handler:oe(async(t,e)=>{if(!e||!e.value)return!1;const n=t.get(me),r={style:{type:"bg",value:{rgb:e.value}}};return n.executeCommand(rs.id,r)},"handler")},Sne={type:Se.COMMAND,id:"sheet.command.reset-background-color",handler:oe(async t=>{const e=t.get(me),n={style:{type:"bg",value:{rgb:null}}};return e.executeCommand(rs.id,n)},"handler")},QI={type:Se.COMMAND,id:"sheet.command.set-vertical-text-align",handler:oe(async(t,e)=>{if(!e)return!1;const n=t.get(me),r={unitId:e.unitId,subUnitId:e.subUnitId,range:e.range,style:{type:"vt",value:e.value}};return n.executeCommand(rs.id,r)},"handler")},KI={type:Se.COMMAND,id:"sheet.command.set-horizontal-text-align",handler:oe(async(t,e)=>{if(!e)return!1;const n=t.get(me),r={unitId:e.unitId,subUnitId:e.subUnitId,range:e.range,style:{type:"ht",value:e.value}};return n.executeCommand(rs.id,r)},"handler")},ZI={type:Se.COMMAND,id:"sheet.command.set-text-wrap",handler:oe(async(t,e)=>{if(!e)return!1;const n=t.get(me),r={unitId:e.unitId,subUnitId:e.subUnitId,range:e.range,style:{type:"tb",value:e.value}};return n.executeCommand(rs.id,r)},"handler")},JI={type:Se.COMMAND,id:"sheet.command.set-text-rotation",handler:oe(async(t,e)=>{if(!e)return!1;const n=typeof e.value=="number"?{a:e.value}:{a:0,v:at.TRUE},r=t.get(me),i={style:{type:"tr",value:n}};return r.executeCommand(rs.id,i)},"handler")},oWt=oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId).getSheetBySheetId(e.subUnitId).getConfig().tabColor;return{...Ie.deepClone(e),color:n}},"SetTabColorUndoMutationFactory"),B8={id:"sheet.mutation.set-tab-color",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(!n)return!1;const r=n.getSheetBySheetId(e.subUnitId);return r?(r.getConfig().tabColor=e.color,!0):!1},"handler")},bne={type:Se.COMMAND,id:"sheet.command.set-tab-color",handler:oe(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=Dn(t.get(Ce));if(!i)return!1;const{unitId:a,subUnitId:o}=i,s={color:e.value,unitId:a,subUnitId:o},l=oWt(t,s);return n.syncExecuteCommand(B8.id,s)?(r.pushUndoRedo({unitID:a,undoMutations:[{id:B8.id,params:l}],redoMutations:[{id:B8.id,params:s}]}),!0):!1},"handler")},Ha={id:"sheet.operation.set-worksheet-active",type:Se.OPERATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(!n)return!1;const r=n.getWorksheets();for(const[,i]of r)if(i.getSheetId()===e.subUnitId)return n.setActiveSheet(i),!0;return!1},"handler")},sWt=4,l9={type:Se.COMMAND,id:"sheet.command.set-worksheet-activate",handler:oe((t,e,n)=>{const r=t.get(me),i=Dn(t.get(Ce),e);if(!i)return!1;const{unitId:a,subUnitId:o}=i;return new Promise(s=>{setTimeout(()=>{const l=r.syncExecuteCommand(Ha.id,{unitId:a,subUnitId:o},n);s(l)},sWt)})},"handler")},$Ue=oe((t,e)=>{const{unitId:n,subUnitId:r,ranges:i}=t,a={},o=e.getColumnManager();for(let s=0;s<i.length;s++){const l=i[s];for(let u=l.startColumn;u<l.endColumn+1;u++){const c=o.getColumnOrCreate(u);a[u]=c.w}}return{unitId:n,subUnitId:r,ranges:i,colWidth:a}},"SetWorksheetColWidthMutationFactory"),Xs={id:"sheet.mutation.set-worksheet-col-width",type:Se.MUTATION,handler:oe((t,e)=>{var n;const r=t.get(Ce),i=Dn(r,e);if(!i)return!1;const{worksheet:a}=i,o=a.getConfig().defaultColumnWidth,s=a.getColumnManager(),l=e.ranges;for(let u=0;u<l.length;u++){const c=l[u];for(let d=c.startColumn;d<c.endColumn+1;d++){const h=s.getColumnOrCreate(d);typeof e.colWidth=="number"?h.w=e.colWidth:h.w=(n=e.colWidth[d])!=null?n:o}}return!0},"handler")},cx={type:Se.COMMAND,id:"sheet.command.delta-column-width",handler:oe(async(t,e)=>{const n=t.get(Bt).getCurrentSelections();if(!(n!=null&&n.length))return!1;const r=t.get(me),i=t.get(xn),a=Dn(t.get(Ce));if(!a)return!1;const{worksheet:o,unitId:s,subUnitId:l}=a,{anchorCol:u,deltaX:c}=e,d=o.getColumnWidth(u)+c,h=n.length===1&&n[0].range.rangeType===it.ALL,f=n.filter(b=>b.range.rangeType===it.COLUMN),m=h?it.ALL:f.some(({range:b})=>{const{startColumn:y,endColumn:A}=b;return y<=u&&u<=A})?it.COLUMN:it.NORMAL;let g;if(m===it.ALL){const b=o.getRowCount(),y=new Array(o.getColumnCount()).fill(void 0).map((A,w)=>({startRow:0,endRow:b-1,startColumn:w,endColumn:w}));g={subUnitId:l,unitId:s,colWidth:d,ranges:y}}else m===it.COLUMN?g={subUnitId:l,unitId:s,ranges:f.map(b=>ft.clone(b.range)),colWidth:d}:g={subUnitId:l,unitId:s,colWidth:d,ranges:[{startRow:0,endRow:o.getMaxRows()-1,startColumn:u,endColumn:u}]};const{undos:p,redos:v}=t.get(Tr).onCommandExecute({id:cx.id,params:g}),_=$Ue(g,o),C=r.syncExecuteCommand(Xs.id,g),S=ti([...v],r);return C&&S.result&&i.pushUndoRedo({unitID:s,undoMutations:[{id:Xs.id,params:_},...p],redoMutations:[{id:Xs.id,params:g},...v]}),!0},"handler")},s7={type:Se.COMMAND,id:"sheet.command.set-worksheet-col-width",handler:oe(async(t,e)=>{var n,r,i,a;const o=t.get(Bt),s=t.get(me),l=t.get(xn),u=t.get(Tr),c=(n=e==null?void 0:e.ranges)!=null&&n.length?e.ranges:(r=o.getCurrentSelections())==null?void 0:r.map(y=>y.range);if(!(c!=null&&c.length))return!1;const d=Dn(t.get(Ce),e);if(!d)return!1;const{subUnitId:h,unitId:f,worksheet:m}=d,g={subUnitId:h,unitId:f,ranges:c,colWidth:e.value},p=$Ue(g,m),v=s.syncExecuteCommand(Xs.id,g),{undos:_,redos:C}=t.get(Tr).onCommandExecute({id:s7.id,params:g}),S=u.onCommandExecute({id:s7.id,params:g}),b=ti([...C,...S.redos],s);return v&&b.result?(l.pushUndoRedo({unitID:f,undoMutations:[...(i=S.preUndos)!=null?i:[],{id:Xs.id,params:p},..._],redoMutations:[...(a=S.preRedos)!=null?a:[],{id:Xs.id,params:g},...C]}),!0):!1},"handler")},WUe=oe((t,e)=>{const n=tx(t.get(Ce),e);if(!n)throw new Error("[SetWorksheetHideMutationFactory]: worksheet is null error!");const{worksheet:r}=n;return{hidden:r.isSheetHidden(),unitId:e.unitId,subUnitId:r.getSheetId()}},"SetWorksheetHideMutationFactory"),Ul={id:"sheet.mutation.set-worksheet-hidden",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)return!1;const r=n.getSheetBySheetId(e.subUnitId);return r?(r.getConfig().hidden=e.hidden,!0):!1},"handler")},yne={type:Se.COMMAND,id:"sheet.command.set-worksheet-hidden",handler:oe(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=t.get(zf),a=t.get(sn),o=Dn(t.get(Ce),e);if(!o)return!1;const{workbook:s,worksheet:l,unitId:u,subUnitId:c}=o;if(l.getConfig().hidden===at.TRUE)return!1;const d={unitId:u,subUnitId:c,hidden:at.TRUE},h=WUe(t,d);return s.getSheets().filter(f=>f.getConfig().hidden===at.FALSE).length===1?(i.emit(a.t("sheets.info.hideSheet")),!1):n.syncExecuteCommand(Ul.id,d)?(r.pushUndoRedo({unitID:u,undoMutations:[{id:Ul.id,params:h}],redoMutations:[{id:Ul.id,params:d}]}),!0):!1},"handler")},lWt=oe((t,e)=>{const n=tx(t.get(Ce),e);if(!n)throw new Error("[SetWorksheetNameMutationFactory]: worksheet is null error!");const{worksheet:r}=n;return{unitId:e.unitId,name:r.getName(),subUnitId:r.getSheetId()}},"SetWorksheetNameMutationFactory"),Sp={id:"sheet.mutation.set-worksheet-name",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(n==null)return!1;const r=n.getSheetBySheetId(e.subUnitId);return r?(r.getConfig().name=e.name,!0):!1},"handler")},ub={type:Se.COMMAND,id:"sheet.command.set-worksheet-name",handler:oe(async(t,e)=>{var n,r;const i=t.get(me),a=t.get(xn),o=t.get(Tr),s=Dn(t.get(Ce),e);if(!s)return!1;const{unitId:l,subUnitId:u}=s,c={subUnitId:u,name:e.name,unitId:l},d=lWt(t,c),h=o.onCommandExecute({id:ub.id,params:e}),f=[...(n=h.preRedos)!=null?n:[],{id:Sp.id,params:c},...h.redos],m=[...(r=h.preUndos)!=null?r:[],{id:Sp.id,params:d},...h.undos];return await ti(f,i).result?(a.pushUndoRedo({unitID:l,undoMutations:m,redoMutations:f}),!0):!1},"handler")},uWt=oe((t,e)=>({...Ie.deepClone(e),toOrder:e.fromOrder,fromOrder:e.toOrder}),"SetWorksheetOrderUndoMutationFactory"),Og={id:"sheet.mutation.set-worksheet-order",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUniverSheetInstance(e.unitId);if(!n)return!1;const r=n.getConfig();return r.sheetOrder.splice(e.fromOrder,1),r.sheetOrder.splice(e.toOrder,0,e.subUnitId),!0},"handler")},Ene={type:Se.COMMAND,id:"sheet.command.set-worksheet-order",handler:oe(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=Dn(t.get(Ce),e);if(!i)return!1;const{workbook:a,unitId:o,subUnitId:s}=i,l={fromOrder:a.getConfig().sheetOrder.indexOf(s),toOrder:e.order,unitId:o,subUnitId:s},u=uWt(t,l);return n.syncExecuteCommand(Og.id,l)?(r.pushUndoRedo({unitID:o,undoMutations:[{id:Og.id,params:u}],redoMutations:[{id:Og.id,params:l}]}),!0):!1},"handler")},cWt=2e3,zUe=oe((t,e)=>{const{unitId:n,subUnitId:r,ranges:i}=t,a={},o=e.getRowManager();for(const{startRow:s,endRow:l}of i)for(let u=s;u<l+1;u++){const c=o.getRowOrCreate(u);a[u]=c.h}return{unitId:n,subUnitId:r,ranges:i,rowHeight:a}},"SetWorksheetRowHeightMutationFactory"),Rne=oe((t,e)=>{const{unitId:n,subUnitId:r,ranges:i}=t,a={},o=e.getRowManager();for(const{startRow:s,endRow:l}of i)for(let u=s;u<=l;u++){const c=o.getRowOrCreate(u);a[u]=c.ia}return{unitId:n,subUnitId:r,ranges:i,autoHeightInfo:a}},"SetWorksheetRowIsAutoHeightMutationFactory"),qUe=oe((t,e)=>{const{unitId:n,subUnitId:r,rowsAutoHeightInfo:i}=t,a=[],o=e.getRowManager();for(const s of i){const{row:l}=s,{ah:u}=o.getRowOrCreate(l);a.push({row:l,autoHeight:u})}return{unitId:n,subUnitId:r,rowsAutoHeightInfo:a}},"SetWorksheetRowAutoHeightMutationFactory"),hc={id:"sheet.mutation.set-worksheet-row-height",type:Se.MUTATION,handler:oe((t,e)=>{var n;const{ranges:r,rowHeight:i}=e,a=t.get(Ce),o=Dn(a,e);if(!o)return!1;const{worksheet:s}=o,l=s.getRowManager(),u=s.getConfig().defaultRowHeight;for(const{startRow:c,endRow:d}of r)for(let h=c;h<=d;h++){const f=l.getRowOrCreate(h);typeof i=="number"?f.h=i:f.h=(n=i[h])!=null?n:u,f.h=Math.min(cWt,f.h)}return!0},"handler")},fc={id:"sheet.mutation.set-worksheet-row-is-auto-height",type:Se.MUTATION,handler:oe((t,e)=>{var n;const{ranges:r,autoHeightInfo:i}=e,a=t.get(Ce),o=Dn(a,e);if(!o)return!1;const s=o.worksheet.getRowManager();for(const{startRow:l,endRow:u}of r)for(let c=l;c<=u;c++){const d=s.getRowOrCreate(c);typeof i=="number"?d.ia=i:d.ia=(n=i[c])!=null?n:void 0}return!0},"handler")},Nf={id:"sheet.mutation.set-worksheet-row-auto-height",type:Se.MUTATION,handler:oe((t,e)=>{const{rowsAutoHeightInfo:n}=e,r=t.get(Ce),i=Dn(r,e);if(!i)return!1;const a=i.worksheet.getRowManager();for(const{row:o,autoHeight:s}of n){const l=a.getRowOrCreate(o);l.ah=s}return!0},"handler")},dx={type:Se.COMMAND,id:"sheet.command.delta-row-height",handler:oe(async(t,e)=>{var n,r;const i=t.get(Bt).getCurrentSelections(),a=t.get(Tr);if(!(i!=null&&i.length))return!1;const o=Dn(t.get(Ce));if(!o)return!1;const{worksheet:s,subUnitId:l,unitId:u}=o,{anchorRow:c,deltaY:d}=e,h=s.getRowHeight(c)+d,f=i.length===1&&i[0].range.rangeType===it.ALL,m=i.filter(P=>P.range.rangeType===it.ROW),g=f?it.ALL:m.some(({range:P})=>{const{startRow:M,endRow:L}=P;return M<=c&&c<=L})?it.ROW:it.NORMAL;let p;if(g===it.ALL){const P=s.getRowCount(),M=new Array(s.getColumnCount()).fill(void 0).map((L,k)=>({startRow:k,endRow:k,startColumn:0,endColumn:P-1}));p={subUnitId:l,unitId:u,rowHeight:h,ranges:M}}else g===it.ROW?p={subUnitId:l,unitId:u,ranges:m.map(P=>ft.clone(P.range)),rowHeight:h}:p={subUnitId:l,unitId:u,rowHeight:h,ranges:[{startRow:c,endRow:c,startColumn:0,endColumn:s.getMaxColumns()-1}]};const v=zUe(p,s),_={unitId:u,subUnitId:l,ranges:p.ranges,autoHeightInfo:at.FALSE},C=Rne(_,s),S=t.get(me),b=t.get(xn),y=a.onCommandExecute({id:dx.id,params:p}),A=ti([{id:hc.id,params:p},{id:fc.id,params:_}],S),w=ti([...y.redos],S);return A.result&&w.result?(b.pushUndoRedo({unitID:u,undoMutations:[...(n=y.preUndos)!=null?n:[],{id:hc.id,params:v},{id:fc.id,params:C},...y.undos],redoMutations:[...(r=y.preRedos)!=null?r:[],{id:hc.id,params:p},{id:fc.id,params:_},...y.redos]}),!0):!1},"handler")},cb={type:Se.COMMAND,id:"sheet.command.set-row-height",handler:oe((t,e)=>{var n,r,i,a;const o=t.get(Bt),s=t.get(me),l=t.get(xn),u=t.get(Ce),c=t.get(Tr),d=(n=e==null?void 0:e.ranges)!=null&&n.length?e.ranges:(r=o.getCurrentSelections())==null?void 0:r.map(A=>A.range);if(!(d!=null&&d.length))return!1;const h=Dn(u,e);if(!h)return!1;const{unitId:f,subUnitId:m,worksheet:g}=h,p={subUnitId:m,unitId:f,ranges:d,rowHeight:e.value},v=zUe(p,g),_={unitId:f,subUnitId:m,ranges:p.ranges,autoHeightInfo:at.FALSE},C=Rne(_,g),S=ti([{id:hc.id,params:p},{id:fc.id,params:_}],s),b=c.onCommandExecute({id:cb.id,params:p}),y=ti([...b.redos],s);return S.result&&y.result?(l.pushUndoRedo({unitID:f,undoMutations:[...(i=b.preRedos)!=null?i:[],{id:hc.id,params:v},{id:fc.id,params:C},...b.undos],redoMutations:[...(a=b.preRedos)!=null?a:[],{id:hc.id,params:p},{id:fc.id,params:_},...b.redos]}),!0):!1},"handler")},o3={type:Se.COMMAND,id:"sheet.command.set-row-is-auto-height",handler:oe(async(t,e)=>{var n,r;const i=t.get(me),a=t.get(xn),o=t.get(Bt),s=t.get(Ce),l=Dn(s,e);if(!l)return!1;const{unitId:u,subUnitId:c,worksheet:d}=l,h=(n=e==null?void 0:e.ranges)!=null&&n.length?e.ranges:(r=o.getCurrentSelections())==null?void 0:r.map(C=>C.range);if(!(h!=null&&h.length))return!1;const f={unitId:u,subUnitId:c,ranges:h,autoHeightInfo:at.TRUE},m=Rne(f,d),g=i.syncExecuteCommand(fc.id,f),{undos:p,redos:v}=t.get(Tr).onCommandExecute({id:o3.id,params:f}),_=ti([...v],i);return g&&_.result?(a.pushUndoRedo({unitID:u,undoMutations:[{id:fc.id,params:m},...p],redoMutations:[{id:fc.id,params:f},...v]}),!0):!1},"handler")},Ane={type:Se.COMMAND,id:"sheet.command.set-worksheet-show",handler:oe(async(t,e)=>{const{unitId:n,subUnitId:r}=e,i=t.get(me),a=t.get(xn),o=t.get(Ce);if(!Dn(t.get(Ce)))return!1;const s=o.getCurrentUnitForType(le.UNIVER_SHEET);if(!s)return!1;const l=s.getSheetBySheetId(r);if(!l||l.getConfig().hidden===at.FALSE)return!1;const u={unitId:n,subUnitId:r,hidden:at.FALSE},c=WUe(t,u),d=i.syncExecuteCommand(Ul.id,u),h={unitId:n,subUnitId:r},f=i.syncExecuteCommand(Ha.id,h);return d&&f?(a.pushUndoRedo({unitID:n,undoMutations:[{id:Ul.id,params:c}],redoMutations:[{id:Ul.id,params:u}]}),!0):!1},"handler")},dWt=oe(t=>{const e=new Ct;return t.forEach(n=>{Gn.foreach(n,(r,i)=>{e.setValue(r,i,1)})}),e.forValue((n,r)=>{const i=e.getValue(n-1,r);i&&e.setValue(n,r,i+1)}),e},"createTopMatrixFromRanges"),hWt=oe(t=>{const e=t;return e.forValue((n,r)=>{const i=t.getValue(n-1,r);i&&e.setValue(n,r,i+1)}),e},"createTopMatrixFromMatrix"),Ule=oe(t=>{const e={area:0},n=oe((r,i)=>e.area<r?(e.area=r,e.range=i,!0):!1,"checkArea");return t.forValue((r,i,a)=>{let o=1,s=a;n(o*s,{startRow:r-s+1,endRow:r,startColumn:i,endColumn:i});const l={startRow:r-s+1,endRow:r,startColumn:0,endColumn:i};for(let u=i-1;u>=0&&t.getValue(r,u);u--){s=Math.min(t.getValue(r,u)||0,s),o++;const c=s*o;l.startColumn=u,l.startRow=r-s+1,n(c,l)}}),e},"findMaximalRectangle"),fWt=oe((t,e)=>{Gn.foreach(e,(n,r)=>{t.realDeleteValue(n,r)});for(let n=e.startColumn;n<=e.endColumn;n++){const r=e.endRow+1;if(t.getValue(r,n)>0){t.setValue(r,n,1);let i=r+1;for(;t.getValue(i,n)>0;)t.setValue(i,n,t.getValue(i-1,n)+1),i++}}return t},"filterLeftMatrix"),YUe=oe(t=>{const e=[];let n=Ule(t);for(;n.area>0;)n.range&&(e.push(n.range),fWt(t,n.range)),n=Ule(t);return e},"findAllRectangle"),eP=oe(t=>{const e=dWt(t);return YUe(e)},"rangeMerge"),mWt=class{constructor(){xe(this,"_matrix",new Ct)}add(...e){return e.forEach(n=>{Gn.foreach(n,(r,i)=>{this._matrix.setValue(r,i,1)})}),this}subtract(...e){return e.forEach(n=>{Gn.foreach(n,(r,i)=>{this._matrix.realDeleteValue(r,i)})}),this}merge(){const e=hWt(this._matrix);return YUe(e)}};oe(mWt,"RangeMergeUtil");const Tc=er("INumfmtService");e2(Vt.Ready,Tc);const XUe=oe((t,e)=>{const n=t.get(Tc),{values:r,unitId:i,subUnitId:a}=e,o=[],s=[];Object.keys(r).forEach(u=>{r[u].ranges.forEach(c=>{Gn.foreach(c,(d,h)=>{const f=n.getValue(i,a,d,h);f?o.push({pattern:f.pattern,row:d,col:h}):s.push({startColumn:h,endColumn:h,startRow:d,endRow:d})})})});const l=[];if(o.length){const u=q_(i,a,o);Object.keys(u.values).forEach(c=>{const d=u.values[c];d.ranges=eP(d.ranges)}),l.push({id:c2.id,params:q_(i,a,o)})}return s.length&&l.push({id:u9.id,params:{unitId:i,subUnitId:a,ranges:s}}),l},"factorySetNumfmtUndoMutation"),c2={id:"sheet.mutation.set.numfmt",type:Se.MUTATION,handler:oe((t,e)=>{if(!e)return!1;const{values:n,refMap:r}=e,i=t.get(Tc),a=e.unitId,o=e.subUnitId,s=Object.keys(n).reduce((l,u)=>{const c=r[u],d=n[u].ranges;return c&&l.push({...c,ranges:d}),l},[]);return i.setValues(a,o,s),!0},"handler")},u9={id:"sheet.mutation.remove.numfmt",type:Se.MUTATION,handler:oe((t,e)=>{if(!e)return!1;const{unitId:n,subUnitId:r,ranges:i}=e;return t.get(Tc).deleteValues(n,r,i),!0},"handler")},GUe=oe((t,e)=>{const n=t.get(Tc),{ranges:r,unitId:i,subUnitId:a}=e,o=[];if(r.forEach(l=>{Gn.foreach(l,(u,c)=>{const d=n.getValue(i,a,u,c);d&&o.push({pattern:d.pattern,row:u,col:c})})}),!o.length)return[];const s=q_(i,a,o);return Object.keys(s.values).forEach(l=>{const u=s.values[l];u.ranges=eP(u.ranges)}),[{id:c2.id,params:s}]},"factoryRemoveNumfmtUndoMutation"),q_=oe((t,e,n)=>{const r=b$t(n,"pattern"),i={},a={},o=y$t();return Object.keys(r).forEach(s=>{const l=r[s],u=o();i[u]={pattern:s},l.forEach(c=>{a[u]||(a[u]={ranges:[]}),a[u].ranges.push(DC(c.row,c.col))})}),{unitId:t,subUnitId:e,refMap:i,values:a}},"transformCellsToRange"),gWt={id:"sheet.mutation.empty",type:Se.MUTATION,handler:oe(()=>!0,"handler")},wne={id:"sheet.command.insert-defined-name",type:Se.COMMAND,handler:oe((t,e)=>{const n=t.get(me),r=t.get(xn);if(!e)return!1;const i={...e};return n.syncExecuteCommand(ld.id,i)?(r.pushUndoRedo({unitID:e.unitId,undoMutations:[{id:O0.id,params:i}],redoMutations:[{id:ld.id,params:i}]}),!0):!1},"handler")},Dne={id:"sheet.command.remove-defined-name",type:Se.COMMAND,handler:oe((t,e)=>{const n=t.get(me),r=t.get(xn);if(!e)return!1;const i={...e};return n.syncExecuteCommand(O0.id,i)?(r.pushUndoRedo({unitID:e.unitId,undoMutations:[{id:ld.id,params:i}],redoMutations:[{id:O0.id,params:i}]}),!0):!1},"handler")},Y_={id:"sheet.command.set-defined-name",type:Se.COMMAND,handler:oe((t,e)=>{const n=t.get(me),r=t.get(xn);return e&&n.syncExecuteCommand(ld.id,e.newDefinedName)?(r.pushUndoRedo({unitID:e.unitId,undoMutations:[{id:ld.id,params:e.oldDefinedName}],redoMutations:[{id:ld.id,params:e.newDefinedName}]}),!0):!1},"handler")},hx={id:"sheet.operation.scroll-to-cell",type:Se.OPERATION,handler:oe(()=>!0,"handler")},QUe={id:"sheet.mutation.set-workbook-name",type:Se.MUTATION,handler:oe((t,e)=>{const n=t.get(Ce).getUnit(e.unitId,le.UNIVER_SHEET);return n?(n.setName(e.name),!0):!1},"handler")},KUe={type:Se.COMMAND,id:"sheet.command.set-workbook-name",handler:oe(async(t,e)=>{var n;if(!t.get(Ce).getUnit(e.unitId,le.UNIVER_SHEET))return!1;const r=t.get(Tr).onCommandExecute({id:KUe.id,params:e}),i={name:e.name,unitId:e.unitId},a=[...(n=r.preRedos)!=null?n:[],{id:QUe.id,params:i},...r.redos],o=t.get(me);return ti(a,o).result},"handler")};var pWt=Object.defineProperty,vWt=Object.getOwnPropertyDescriptor,_Wt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?vWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pWt(e,n,i),i},"__decorateClass$f"),FF;let ga=(FF=class{constructor(){xe(this,"_model",new Map),xe(this,"_ruleChange",new Zt),xe(this,"_ruleRefresh",new Zt),xe(this,"_resetOrder",new Zt),xe(this,"ruleChange$",this._ruleChange.asObservable()),xe(this,"ruleRefresh$",this._ruleRefresh.asObservable()),xe(this,"resetOrder$",this._resetOrder.asObservable()),xe(this,"_worksheetRuleInitStateChange",new Pn(!1)),xe(this,"worksheetRuleInitStateChange$",this._worksheetRuleInitStateChange.asObservable())}changeRuleInitState(t){this._worksheetRuleInitStateChange.next(t)}getSheetRuleInitState(){return this._worksheetRuleInitStateChange.value}addRule(t,e){this._ensureSubUnitMap(t).set(e.subUnitId,e),this._ruleChange.next({unitId:t,rule:e,type:"add",subUnitId:e.subUnitId})}deleteRule(t,e){var n,r,i;const a=(r=(n=this._model)==null?void 0:n.get(t))==null?void 0:r.get(e);a&&((i=this._model.get(t))==null||i.delete(e),this._ruleChange.next({unitId:t,rule:a,type:"delete",subUnitId:e}))}setRule(t,e,n){var r,i;const a=this.getRule(t,e);a&&((i=(r=this._model)==null?void 0:r.get(t))==null||i.set(e,n),this._ruleChange.next({unitId:t,oldRule:a,rule:n,type:"set",subUnitId:e}))}getRule(t,e){var n,r;return(r=(n=this._model)==null?void 0:n.get(t))==null?void 0:r.get(e)}toObject(){const t={};return[...this._model.keys()].forEach(e=>{const n=this._model.get(e);n!=null&&n.size&&(t[e]=[],[...n.keys()].forEach(r=>{const i=n.get(r);i&&t[e].push(i)}))}),t}fromObject(t){const e=new Map;Object.keys(t).forEach(n=>{const r=t[n];if(r!=null&&r.length){const i=new Map;r.forEach(a=>{i.set(a.subUnitId,a)}),e.set(n,i)}}),this._model=e}deleteUnitModel(t){this._model.delete(t)}_ensureSubUnitMap(t){let e=this._model.get(t);return e||(e=new Map,this._model.set(t,e)),e}ruleRefresh(t){this._ruleRefresh.next(t)}resetOrder(){this._resetOrder.next(Math.random())}getTargetByPermissionId(t,e){const n=this._model.get(t);if(!n)return null;for(const[r,i]of n)if(i.permissionId===e)return[t,r]}},oe(FF,"WorksheetProtectionRuleModel"),FF);ga=_Wt([yn(Vt.Starting,ga)],ga);const bp={id:"sheet.mutation.add-worksheet-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,rule:r}=e;return t.get(ga).addRule(n,r),!0},"handler")},o4={id:"sheet.mutation.set-worksheet-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,rule:i}=e;return t.get(ga).setRule(n,r,i),!0},"handler")},l7={id:"sheet.mutation.delete-worksheet-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r}=e;return t.get(ga).deleteRule(n,r),!0},"handler")};var CWt=Object.defineProperty,SWt=Object.getOwnPropertyDescriptor,bWt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?SWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&CWt(e,n,i),i},"__decorateClass$e"),VF;let li=(VF=class{constructor(){xe(this,"_model",new Map),xe(this,"_ruleChange",new Zt),xe(this,"ruleChange$",this._ruleChange.asObservable()),xe(this,"_ruleRefresh",new Zt),xe(this,"ruleRefresh$",this._ruleRefresh.asObservable()),xe(this,"_rangeRuleInitStateChange",new Pn(!1)),xe(this,"rangeRuleInitStateChange$",this._rangeRuleInitStateChange.asObservable())}ruleRefresh(t){this._ruleRefresh.next(t)}getRangeRuleInitState(){return this._rangeRuleInitStateChange.value}changeRuleInitState(t){this._rangeRuleInitStateChange.next(t)}addRule(t,e,n){this._ensureRuleMap(t,e).set(n.id,n),this._ruleChange.next({unitId:t,subUnitId:e,rule:n,type:"add"})}deleteRule(t,e,n){var r,i,a,o;const s=(i=(r=this._model.get(t))==null?void 0:r.get(e))==null?void 0:i.get(n);s&&((o=(a=this._model.get(t))==null?void 0:a.get(e))==null||o.delete(n),this._ruleChange.next({unitId:t,subUnitId:e,rule:s,type:"delete"}))}setRule(t,e,n,r){var i,a;const o=this.getRule(t,e,n);o&&((a=(i=this._model.get(t))==null?void 0:i.get(e))==null||a.set(n,r),this._ruleChange.next({unitId:t,subUnitId:e,oldRule:o,rule:r,type:"set"}))}getRule(t,e,n){var r,i;return(i=(r=this._model.get(t))==null?void 0:r.get(e))==null?void 0:i.get(n)}getSubunitRuleList(t,e){var n;return[...(((n=this._model.get(t))==null?void 0:n.get(e))||new Map).values()]}_ensureRuleMap(t,e){let n=this._model.get(t);n||(n=new Map,this._model.set(t,n));let r=n.get(e);return r||(r=new Map,n.set(e,r)),r}toObject(){const t={};return[...this._model.keys()].forEach(e=>{const n=this._model.get(e),r=[...n.keys()];t[e]={},r.forEach(i=>{const a=n.get(i);t[e][i]=[...a.values()]})}),t}fromObject(t){const e=new Map;Object.keys(t).forEach(n=>{const r=t[n],i=new Map;Object.keys(r).forEach(a=>{const o=r[a].reduce((s,l)=>(s.set(l.id,l),s),new Map);i.set(a,o)}),e.set(n,i)}),this._model=e}deleteUnitModel(t){this._model.delete(t)}createRuleId(t,e){let n=Ie.generateRandomId(4);const r=this._ensureRuleMap(t,e);for(;r.has(n);)n=Ie.generateRandomId(4);return n}getTargetByPermissionId(t,e){const n=this._model.get(t);if(!n)return null;for(const[r,i]of n)for(const a of i.values())if(a.permissionId===e)return[t,r];return null}},oe(VF,"RangeProtectionRuleModel"),VF);li=bWt([yn(Vt.Starting,li)],li);const Qu=oe(()=>[Tn,rb],"getAllWorksheetPermissionPoint"),Bd=oe(()=>[W_,qBe,WBe,N$t,x$t,ib,rx,T$t,O$t,Hi,zs,td,nh,L$t],"getAllWorksheetPermissionPointByPointPanel"),BF=[Xt.Copy,Xt.DeleteColumn,Xt.DeleteRow,Xt.EditExtraObject,Xt.Filter,Xt.InsertColumn,Xt.InsertRow,Xt.InsertHyperlink,Xt.PivotTable,Xt.SetCellStyle,Xt.SetCellValue,Xt.SetColumnStyle,Xt.SetRowStyle,Xt.Sort];var yWt=Object.defineProperty,EWt=Object.getOwnPropertyDescriptor,RWt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?EWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&yWt(e,n,i),i},"__decorateClass$d"),UF;let _0=(UF=class{constructor(){xe(this,"_model",new Map),xe(this,"_pointChange",new Zt),xe(this,"pointChange$",this._pointChange.asObservable())}addRule(t){this._ensureSubUnitMap(t.unitId).set(t.subUnitId,t),this._pointChange.next(t)}deleteRule(t,e){var n,r,i;const a=(n=this._model.get(t))==null?void 0:n.get(e);a&&((i=(r=this._model)==null?void 0:r.get(t))==null||i.delete(e),this._pointChange.next(a))}getRule(t,e){var n,r;return(r=(n=this._model)==null?void 0:n.get(t))==null?void 0:r.get(e)}toObject(){const t={};return[...this._model.keys()].forEach(e=>{const n=this._model.get(e);n!=null&&n.size&&(t[e]=[],[...n.keys()].forEach(r=>{const i=n.get(r);i&&t[e].push(i)}))}),t}fromObject(t){const e=new Map;Object.keys(t).forEach(n=>{const r=t[n];if(r!=null&&r.length){const i=new Map;r.forEach(a=>{i.set(a.subUnitId,a)}),e.set(n,i)}}),this._model=e}deleteUnitModel(t){this._model.delete(t)}_ensureSubUnitMap(t){let e=this._model.get(t);return e||(e=new Map,this._model.set(t,e)),e}getTargetByPermissionId(t,e){const n=this._model.get(t);if(!n)return null;for(const[r,i]of n)if(i.permissionId===e)return[t,r]}},oe(UF,"WorksheetProtectionPointModel"),UF);_0=RWt([yn(Vt.Starting,_0)],_0);var AWt=Object.defineProperty,wWt=Object.getOwnPropertyDescriptor,DWt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?wWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&AWt(e,n,i),i},"__decorateClass$c"),x2=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c");const IWt="SHEET_WORKSHEET_PROTECTION_PLUGIN",PWt="SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN";var HF;let $R=(HF=class extends Da{constructor(t,e,n,r,i,a,o){super(),this._permissionService=t,this._univerInstanceService=e,this._injector=n,this._worksheetProtectionRuleModel=r,this._worksheetProtectionPointRuleModel=i,this._resourceManagerService=a,this._rangeProtectionRuleModel=o,this._init(),this._initRuleChange(),this._initRuleSnapshot(),this._initPointSnapshot()}_init(){const t=oe(e=>{const n=e.getUnitId(),r=oe(i=>{const a=i.getSheetId();[...Qu(),...Bd()].forEach(o=>{const s=new o(n,a);this._permissionService.addPermissionPoint(s)})},"handleWorksheet");e.getSheets().forEach(i=>{r(i)}),e.sheetCreated$.subscribe(i=>{r(i)}),e.sheetDisposed$.subscribe(i=>{const a=i.getSheetId();this._rangeProtectionRuleModel.getSubunitRuleList(n,a).forEach(o=>{[Bn,o7].forEach(s=>{const l=new s(n,a,o.permissionId);this._permissionService.deletePermissionPoint(l.id)})}),[...Qu(),...Bd()].forEach(o=>{const s=new o(n,a);this._permissionService.deletePermissionPoint(s.id)})})},"handleWorkbook");this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(e=>{t(e)}),this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(t),this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(e=>{e.getSheets().forEach(n=>{const r=e.getUnitId(),i=n.getSheetId();Qu().forEach(a=>{const o=new a(r,i);this._permissionService.deletePermissionPoint(o.id)})})})}_initRuleChange(){this.disposeWithMe(this._worksheetProtectionRuleModel.ruleChange$.subscribe(t=>{switch(t.type){case"add":break;case"delete":{Qu().forEach(e=>{const n=new e(t.unitId,t.subUnitId);this._permissionService.updatePermissionPoint(n.id,!0)});break}case"set":{Qu().forEach(e=>{const n=new e(t.unitId,t.subUnitId);this._permissionService.updatePermissionPoint(n.id,t.rule)});break}}}))}_initRuleSnapshot(){const t=oe(()=>{const n=this._worksheetProtectionRuleModel.toObject();return JSON.stringify(n)},"toJson"),e=oe(n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({toJson:t,parseJson:e,pluginName:IWt,businesses:[qI.UNIVER_SHEET],onLoad:oe((n,r)=>{this._worksheetProtectionRuleModel.fromObject(r),Object.keys(r).forEach(i=>{Qu().forEach(a=>{const o=new a(n,i);o.value=!1,this._permissionService.addPermissionPoint(o)})}),this._worksheetProtectionRuleModel.changeRuleInitState(!0)},"onLoad"),onUnLoad:oe(n=>{this._worksheetProtectionRuleModel.deleteUnitModel(n)},"onUnLoad")}))}_initPointSnapshot(){const t=oe(()=>{const n=this._worksheetProtectionPointRuleModel.toObject();return JSON.stringify(n)},"toJson"),e=oe(n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({toJson:t,parseJson:e,pluginName:PWt,businesses:[qI.UNIVER_SHEET],onLoad:oe((n,r)=>{this._worksheetProtectionPointRuleModel.fromObject(r),Object.keys(r).forEach(i=>{Bd().forEach(a=>{const o=new a(n,i);this._permissionService.addPermissionPoint(o)})})},"onLoad"),onUnLoad:oe(n=>{this._worksheetProtectionPointRuleModel.deleteUnitModel(n)},"onUnLoad")}))}},oe(HF,"WorksheetPermissionService"),HF);$R=DWt([yn(Vt.Starting,$R),x2(0,se(Qi)),x2(1,se(Ce)),x2(2,se(Wn)),x2(3,se(ga)),x2(4,se(_0)),x2(5,se(J0)),x2(6,se(li))],$R);const Ine={id:"sheet.mutation.set-worksheet-permission-points",type:Se.MUTATION,handler:oe((t,e)=>{const{rule:n}=e;return t.get(_0).addRule(n),!0},"handler")},ZUe={type:Se.COMMAND,id:"sheet.command.set-worksheet-permission-points",async handler(t,e){if(!e)return!1;const n=t.get(me),{rule:r}=e;return n.executeCommand(Ine.id,{rule:r,unitId:r.unitId,subUnitId:r.subUnitId}),!0}},kf={id:"sheet.mutation.delete-range-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,ruleIds:i}=e,a=t.get(li);return i.forEach(o=>{a.deleteRule(n,r,o)}),!0},"handler")},fh={id:"sheet.mutation.add-range-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,rules:i}=e,a=t.get(li);return i.forEach(o=>{a.addRule(n,r,o)}),!0},"handler")},JUe={type:Se.COMMAND,id:"sheet.command.add-range-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(li),{rule:a,permissionId:o}=e,{unitId:s,subUnitId:l,ranges:u,name:c,description:d}=a,h=[{ranges:u,permissionId:o,id:i.createRuleId(s,l),name:c,description:d,unitType:a.unitType,unitId:s,subUnitId:l}];if(await n.executeCommand(fh.id,{unitId:s,subUnitId:l,rules:h})){const f=[{id:fh.id,params:{unitId:s,subUnitId:l,rules:h}}],m=[{id:kf.id,params:{unitId:s,subUnitId:l,ruleIds:h.map(g=>g.id)}}];r.pushUndoRedo({unitID:s,redoMutations:f,undoMutations:m})}return!0}},eHe={type:Se.COMMAND,id:"sheet.command.delete-range-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),{unitId:i,subUnitId:a,rule:o}=e,s={unitId:i,subUnitId:a,ruleIds:[o.id]};return await n.executeCommand(kf.id,s)&&r.pushUndoRedo({unitID:i,redoMutations:[{id:kf.id,params:s}],undoMutations:[{id:fh.id,params:{unitId:i,subUnitId:a,rules:[o]}}]}),!0}},ls={id:"sheet.mutation.set-range-protection",type:Se.MUTATION,handler:oe((t,e)=>{const{unitId:n,subUnitId:r,rule:i,ruleId:a}=e;return t.get(li).setRule(n,r,a,i),!0},"handler")},MWt={type:Se.COMMAND,id:"sheet.command.set-range-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(li),i=t.get(xn),{rule:a,permissionId:o,oldRule:s}=e,{unitId:l,subUnitId:u,ranges:c,name:d,description:h}=a;if(a.id){const f={unitId:l,subUnitId:u,ruleId:a.id,rule:{ranges:c,permissionId:o,id:r.createRuleId(l,u),name:d,description:h}};if(await n.executeCommand(ls.id,f)){const m=[{id:ls.id,params:f}],g=[{id:ls.id,params:{unitId:l,subUnitId:u,ruleId:a.id,rule:s}}];i.pushUndoRedo({unitID:l,redoMutations:m,undoMutations:g})}}return!0}},TWt=oe(t=>{const{order:e}=t,n={};return Object.keys(e).forEach(r=>{n[e[Number(r)]]=Number(r)}),{...t,order:n}},"ReorderRangeUndoMutationFactory"),u7={id:"sheet.mutation.reorder-range",type:Se.MUTATION,handler:oe((t,e)=>{const{subUnitId:n,unitId:r,range:i,order:a}=e,o=t.get(Ce).getUnit(r).getSheetBySheetId(n);if(!o)return!1;const s=new Ct;Gn.foreach(i,(u,c)=>{if(a.hasOwnProperty(u)){const d=a[u],h=Ie.deepClone(o.getCellRaw(d,c));s.setValue(u,c,h)}});const l=o.getCellMatrix();return s.forValue((u,c,d)=>{l.setValue(u,c,d)}),!0},"handler")},tHe="sheet.command.reorder-range",nHe={id:tHe,type:Se.COMMAND,handler:oe((t,e)=>{var n,r;const{subUnitId:i,unitId:a,range:o,order:s}=e,l=t.get(me),u={id:u7.id,params:{unitId:a,subUnitId:i,order:s,range:o}},c={id:u7.id,params:TWt(u.params)},d=t.get(Tr).onCommandExecute({id:nHe.id,params:e}),h=[...(n=d.preRedos)!=null?n:[],u,...d.redos],f=[...(r=d.preUndos)!=null?r:[],c,...d.undos];return ti(h,l).result?(t.get(xn).pushUndoRedo({unitID:a,undoMutations:f,redoMutations:h}),!0):!1},"handler")},rHe="maxCellsPerSheet",LWt=3e6,iHe="ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY";var xWt=Object.defineProperty,OWt=Object.getOwnPropertyDescriptor,NWt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?OWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&xWt(e,n,i),i},"__decorateClass$b"),jF=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b"),$F;let WR=($F=class extends et{constructor(t,e,n){var r;super(),this._commandService=t,this._configService=e,this._dataSyncPrimaryController=n,[Mn,w1,A1,Dl,$l,m1,g1,Wl,Tu,Ls,Di,u9,yi,QUe,Sp,c2,u7,gWt,Xs].forEach(i=>{var a;this._commandService.registerCommand(i),(a=this._dataSyncPrimaryController)==null||a.registerSyncingMutations(i)}),(r=this._configService.getConfig(iHe))!=null&&r||[p0,v0,th,nne,_p,Cp,cx,dx,lne,XI,Pf,V0,B0,sne,YI,If,wUe,i3,F0,r3,H0,U0,ab,nHe,cne,Sne,Cne,z_,GI,eWt,a3,Z$t,J$t,sx,Tf,Lf,s7,rWt,BUe,El,KI,Uu,cb,ux,Of,xf,ox,lx,ob,lb,rs,bne,B8,jUe,JI,ZI,QI,KUe,l9,Ha,yne,Ul,ub,Ene,Og,Nf,hc,o3,fc,Pr,hx,wne,Dne,Y_,Ane,ZUe,bp,o4,l7,Ine,JUe,eHe,MWt,fh,kf,ls].forEach(i=>this.disposeWithMe(this._commandService.registerCommand(i))),this._configService.setConfig(rHe,LWt)}},oe($F,"BasicWorksheetController"),$F);WR=NWt([yn(Vt.Starting,WR),jF(0,me),jF(1,Za),jF(2,_1(Lg))],WR);var kWt=Object.defineProperty,FWt=Object.getOwnPropertyDescriptor,VWt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?FWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kWt(e,n,i),i},"__decorateClass$a"),Hle=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),WF;let zR=(WF=class extends et{constructor(t,e){super(),this._univerInstanceService=t,this._commandService=e,this._initialize()}_initialize(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id!==FS.id)return;const e=t.params,{unitData:n}=e,r=Object.keys(n),i=[];return r.forEach(a=>{const o=n[a];if(o==null)return!0;Object.keys(o).forEach(s=>{const l=o[s];if(l==null)return!0;const u=this._getMergedCellData(a,s,l),c={subUnitId:s,unitId:a,cellValue:u};i.push({id:Mn.id,params:c})})}),i.every(a=>this._commandService.executeCommand(a.id,a.params,{onlyLocal:!0}))}))}_getMergedCellData(t,e,n){const r=this._univerInstanceService.getUniverSheetInstance(t),i=r==null?void 0:r.getStyles(),a=r==null?void 0:r.getSheetBySheetId(e),o=a==null?void 0:a.getCellMatrix(),s=new Ct(n);return s.forValue((l,u,c)=>{const d=o==null?void 0:o.getValue(l,u),h=IRe(d,c,i);s.setValue(l,u,h)}),s.clone()}},oe(WF,"CalculateResultApplyController"),WF);zR=VWt([yn(Vt.Ready,zR),Hle(0,se(Ce)),Hle(1,me)],zR);const zn={MoveRangeCommandId:xBe,InsertRowCommandId:RUe,InsertColCommandId:AUe,RemoveColCommandId:OUe,RemoveRowCommandId:xUe,DeleteRangeMoveLeftCommandId:CUe,DeleteRangeMoveUpCommandId:SUe,InsertRangeMoveDownCommandId:K$t,InsertRangeMoveRightCommandId:EUe,MoveColsCommandId:LUe,MoveRowsCommandId:TUe,ReorderRangeCommandId:tHe};var Ti=(t=>(t[t.Set=0]="Set",t[t.Delete=1]="Delete",t[t.HorizontalMove=2]="HorizontalMove",t[t.VerticalMove=3]="VerticalMove",t[t.Unknown=4]="Unknown",t))(Ti||{});const jy=Number.MAX_SAFE_INTEGER,rh=oe(t=>{const e={...t},n=Number.isNaN(e.startRow)&&Number.isNaN(e.endRow)&&!Number.isNaN(e.startColumn)&&!Number.isNaN(e.endColumn),r=Number.isNaN(e.startColumn)&&Number.isNaN(e.endColumn)&&!Number.isNaN(e.startRow)&&!Number.isNaN(e.endRow);return(e.rangeType===it.COLUMN||n)&&(e.startRow=0,e.endRow=jy),(e.rangeType===it.ROW||r)&&(e.startColumn=0,e.endColumn=jy),e.rangeType===it.ALL&&(e.startColumn=0,e.endColumn=jy,e.startRow=0,e.endRow=jy),e},"handleRangeTypeInput"),s1=oe(t=>{let e=t.rangeType;return t.rangeType===it.COLUMN?e=it.ROW:t.rangeType===it.ROW&&(e=it.COLUMN),{startRow:t.startColumn,endRow:t.endColumn,startColumn:t.startRow,endColumn:t.endRow,rangeType:e}},"rotateRange"),tP=oe((t,e,n)=>{const r={...n},i={...e},a=oe((g,p)=>{const v=Math.max(g.start,p.start),_=Math.min(g.end,p.end);return _<v?null:{start:v,end:_}},"getIntersects"),o=oe(g=>g.end-g.start+1,"getLength"),s=oe((g,p)=>({start:g.start-p.start,end:g.start-p.start+g.end-g.start}),"getRelative"),l=oe((g,p)=>({start:p.start+g.start,end:p.start+g.start+g.end-g.start}),"getAbsolute"),u=e.start>t.start;if(u){const g=Math.min(t.end,e.start)-t.start+1;i.start-=g,i.end-=g}const c=o(t),d=c,h=a(t,r),f=h&&o(h)>=o(r);if(t.end<r.start)r.start-=c,r.end-=c;else if(h){const g=o(h);if(f){const p=s(r,t),v=l(p,i);r.start=v.start,r.end=v.end}else h.start>t.start?u?(r.end-=g+c,r.start-=c):r.end-=g:u?r.end-=g:r.start>t.start&&r.end>t.end?(r.start-=c,r.end-=c+g):r.end-=g}const m=a(i,r);return f||(i.start<=r.start?(r.start+=d,r.end+=d):m&&(u?i.end<=r.start||i.start<=r.start&&i.end>=r.start?(r.start+=d,r.end+=d):i.start>=r.start&&i.start<=r.end&&(r.end+=d):r.start<i.start&&r.end>i.start?r.end+=d:(r.start>=i.end||r.start>=i.start&&r.start<=i.end)&&(r.end+=d,r.start+=d))),{step:r.start-n.start,length:o(r)-o(n)}},"handleBaseMoveRowsCols"),fx=oe((t,e)=>{const{fromRange:n,toRange:r}=t.params||{};if(!r||!n)return[];const i=rh(n),a=rh(r),o=rh(e),s=tP({start:i.startRow,end:i.endRow},{start:a.startRow,end:a.endRow},{start:o.startRow,end:o.endRow});return s===null?[{type:Ti.Delete}]:[{type:Ti.VerticalMove,step:s.step||0,length:s.length||0}]},"handleMoveRows"),BWt=oe((t,e)=>{const{fromRange:n,toRange:r}=t.params||{};if(!n||!r)return[e];const i=n.startRow,a=n.endRow-n.startRow+1,o=r.startRow,s=new Ct;return Gn.foreach(e,(l,u)=>{s.setValue(l,u,1)}),s.moveRows(i,a,o),pc(s,l=>l===1)},"handleMoveRowsCommon"),UWt=oe((t,e)=>{const{range:n,order:r}=t.params||{};if(!n||!r)return[e];const i=new Ct;Gn.foreach(e,(o,s)=>{i.setValue(o,s,1)});const a=new Ct;return Gn.foreach(n,(o,s)=>{var l;if(r.hasOwnProperty(o)){const u=r[o],c=(l=i.getValue(u,s))!=null?l:0;a.setValue(o,s,c)}}),a.forValue((o,s,l)=>{i.setValue(o,s,l)}),pc(i,o=>o===1)},"handleReorderRangeCommon"),mx=oe((t,e)=>{const{fromRange:n,toRange:r}=t.params||{};if(!r||!n)return[];const i=rh(n),a=rh(r),o=rh(e),s=tP({start:i.startColumn,end:i.endColumn},{start:a.startColumn,end:a.endColumn},{start:o.startColumn,end:o.endColumn});return s===null?[{type:Ti.Delete}]:[{type:Ti.HorizontalMove,step:s.step||0,length:s.length||0}]},"handleMoveCols"),HWt=oe((t,e)=>{const{fromRange:n,toRange:r}=t.params||{};if(!n||!r)return[e];const i=n.startColumn,a=n.endColumn-n.startColumn+1,o=r.startColumn,s=new Ct;return Gn.foreach(e,(l,u)=>{s.setValue(l,u,1)}),s.moveColumns(i,a,o),pc(s,l=>l===1)},"handleMoveColsCommon"),Pne=oe((t,e)=>{var n,r;const i=(n=t.params)==null?void 0:n.toRange,a=(r=t.params)==null?void 0:r.fromRange;if(!i||!a)return[];const o=[];if(ft.contains(i,e)&&o.push({type:Ti.Delete}),ft.contains(a,e)){o.push({type:Ti.Delete});const s=ft.getRelativeRange(e,a),l=ft.getPositionRange(s,i);return[{type:Ti.Set,range:l}]}return o},"handleMoveRange"),jWt=oe((t,e)=>{var n,r;const i=(n=t.params)==null?void 0:n.toRange,a=(r=t.params)==null?void 0:r.fromRange;if(!i||!a)return[e];if(!ft.intersects(a,e)&&!ft.intersects(i,e))return[e];if(ft.contains(a,e)){const h=ft.getRelativeRange(e,a);return[ft.getPositionRange(h,i)]}const o=new Ct;Gn.foreach(e,(h,f)=>{o.setValue(h,f,1)});const s=new Ct,l=ft.getIntersects(a,e);l&&Gn.foreach(l,(h,f)=>{o.getValue(h,f)&&(o.setValue(h,f,void 0),s.setValue(h,f,1))});const u=i.startColumn-a.startColumn,c=i.startRow-a.startRow,d={startColumn:i.startColumn-u,endColumn:i.endColumn-u,startRow:i.startRow-c,endRow:i.endRow-c};return d&&Gn.foreach(d,(h,f)=>{var m;const g=h+c,p=f+u;o.setValue(g,p,(m=s.getValue(h,f))!=null?m:0)}),pc(o,h=>h===1)},"handleMoveRangeCommon"),c7=oe((t,e)=>{const n=rh(t),r=rh(e),i=oe(o=>o.endColumn-o.startColumn+1,"getLength"),a=oe(o=>o.endRow-o.startRow+1,"getRowLength");if(n.startRow<=r.startRow&&n.endRow>=r.endRow){if(r.startColumn<n.startColumn&&r.endColumn>=n.startColumn&&r.endColumn<=n.endColumn||r.startColumn<n.startColumn&&r.endColumn>=n.endColumn){const o=ft.getIntersects(r,n);if(o)return{step:0,length:-i(o)}}if(r.startColumn>=n.startColumn&&r.endColumn<=n.endColumn&&a(n)>=a(r))return null;if(r.startColumn>=n.startColumn&&r.startColumn<=n.endColumn&&r.endColumn>n.endColumn){const o=ft.getIntersects(r,n);if(o){const s=-i(o);return{step:-(i(n)-i(o)),length:s}}}if(r.startColumn>n.endColumn)return{step:-i(n),length:0}}return{step:0,length:0}},"handleBaseRemoveRange"),gx=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=c7(r,e);if(!a)i.push({type:Ti.Delete});else{const{step:o,length:s}=a;i.push({type:Ti.HorizontalMove,step:o,length:s})}return i},"handleIRemoveCol"),Mne=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=c7(s1(r),s1(e));if(!a)i.push({type:Ti.Delete});else{const{step:o,length:s}=a;i.push({type:Ti.VerticalMove,step:o,length:s})}return i},"handleIRemoveRow"),$Wt=oe((t,e)=>{const{range:n,order:r}=t.params||{};if(!n||!r)return[];if(ft.contains(n,e)&&e.endRow===e.startRow){const i=[],a=e.startRow;for(const o in r)if(r[o]===a){const s=Number(o);return i.push({type:Ti.VerticalMove,step:s-a,length:0}),i}return[]}return[]},"handleReorderRange"),d7=oe((t,e)=>{const n=rh(t),r=rh(e),i=oe(a=>a.endColumn-a.startColumn+1,"getLength");if(n.startRow<=r.startRow&&n.endRow>=r.endRow){if(r.startColumn<n.startColumn&&r.endColumn>=n.startColumn&&r.endColumn<=n.endColumn||r.startColumn<n.startColumn&&r.endColumn>=n.endColumn)return{step:0,length:i(n)};if(r.startColumn>=n.startColumn&&r.endColumn<=n.endColumn||r.startColumn>n.startColumn&&r.startColumn<=n.endColumn&&r.endColumn>n.endColumn||r.startColumn>=n.endColumn)return{step:i(n),length:0}}return{step:0,length:0}},"handleBaseInsertRange");function aHe(t,e,n){const r=[];if(ft.contains(e,n)&&r.push({type:Ti.Delete}),ft.contains(t,n)){r.push({type:Ti.Delete});const i=ft.getRelativeRange(n,t),a=ft.getPositionRange(i,e);return[{type:Ti.Set,range:a}]}return r}oe(aHe,"handleBaseMoveRange");const px=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=d7(s1(r),s1(e)),{step:o,length:s}=a;return i.push({type:Ti.VerticalMove,step:o,length:s}),i},"handleInsertRow"),vx=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=d7(r,e),{step:o,length:s}=a;return i.push({type:Ti.HorizontalMove,step:o,length:s}),i},"handleInsertCol"),Tne=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=d7(s1(r),s1(e)),{step:o,length:s}=a;return i.push({type:Ti.VerticalMove,step:o,length:s}),i},"handleInsertRangeMoveDown"),WWt=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[e];const i=r.endRow-r.startRow+1,a={...r,startRow:r.startRow,endRow:Number.POSITIVE_INFINITY},o=ft.subtract(e,a),s=ft.getIntersects(a,e);if(!s)return[e];const l=new Ct;return o.forEach(u=>{Gn.foreach(u,(c,d)=>{l.setValue(c,d,1)})}),s&&Gn.foreach(s,(u,c)=>{l.setValue(u+i,c,1)}),pc(l,u=>u===1)},"handleInsertRangeMoveDownCommon"),Lne=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=d7(r,e),{step:o,length:s}=a;return i.push({type:Ti.HorizontalMove,step:o,length:s}),i},"handleInsertRangeMoveRight"),zWt=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[e];const i=r.endColumn-r.startColumn+1,a={...r,startColumn:r.startColumn,endColumn:Number.POSITIVE_INFINITY},o=ft.subtract(e,a),s=ft.getIntersects(a,e);if(!s)return[e];const l=new Ct;return o.forEach(u=>{Gn.foreach(u,(c,d)=>{l.setValue(c,d,1)})}),s&&Gn.foreach(s,(u,c)=>{l.setValue(u,c+i,1)}),pc(l,u=>u===1)},"handleInsertRangeMoveRightCommon"),xne=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=c7(r,e);if(!a)i.push({type:Ti.Delete});else{const{step:o,length:s}=a;i.push({type:Ti.HorizontalMove,step:o,length:s})}return i},"handleDeleteRangeMoveLeft"),qWt=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[e];const i={startRow:r.startRow,endRow:r.endRow,startColumn:r.startColumn,endColumn:Number.POSITIVE_INFINITY},a=r.endColumn-r.startColumn+1,o=ft.getIntersects(r,e),s=ft.subtract(e,i),l=ft.getIntersects(i,e);if(!o&&!l)return[e];const u=new Ct;return l&&Gn.foreach(l,(c,d)=>{u.setValue(c,d-a,1)}),o&&Gn.foreach(o,(c,d)=>{u.setValue(c,d-a,0)}),s.forEach(c=>{Gn.foreach(c,(d,h)=>{u.setValue(d,h,1)})}),pc(u,c=>c===1)},"handleDeleteRangeMoveLeftCommon"),One=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[];const i=[],a=c7(s1(r),s1(e));if(!a)i.push({type:Ti.Delete});else{const{step:o,length:s}=a;i.push({type:Ti.VerticalMove,step:o,length:s})}return i},"handleDeleteRangeMoveUp"),YWt=oe((t,e)=>{var n;const r=(n=t.params)==null?void 0:n.range;if(!r)return[e];const i={...r,startRow:r.startRow,endRow:Number.POSITIVE_INFINITY},a=r.endRow-r.startRow+1,o=ft.getIntersects(r,e),s=ft.subtract(e,i),l=ft.getIntersects(i,e);if(!o&&!l)return[e];const u=new Ct;return l&&Gn.foreach(l,(c,d)=>{u.setValue(c-a,d,1)}),o&&Gn.foreach(o,(c,d)=>{u.setValue(c-a,d,0)}),s.forEach(c=>{Gn.foreach(c,(d,h)=>{u.setValue(d,h,1)})}),pc(u,c=>c===1)},"handleDeleteRangeMoveUpCommon"),XWt=oe((t,e)=>{var n;const r=(n=t.ranges)!=null?n:[t.range],i=new Ct;return Gn.foreach(e,(a,o)=>{i.setValue(a,o,1)}),r.forEach(a=>{const o=a.startRow,s=a.endRow-o+1;i.removeRows(o,s)}),pc(i,a=>a===1)},"handleRemoveRowCommon"),xa=oe((t,e)=>{let n={...e};return t.forEach(r=>{switch(r.type){case Ti.Delete:{n=null;break}case Ti.HorizontalMove:{if(!n)return;n.startColumn+=r.step,n.endColumn+=r.step+(r.length||0);break}case Ti.VerticalMove:{if(!n)return;n.startRow+=r.step,n.endRow+=r.step+(r.length||0);break}case Ti.Set:{n=r.range;break}}}),n&&(n.endColumn<n.startColumn||n.endRow<n.startRow)?null:n},"runRefRangeMutations"),GWt=oe((t,e)=>{let n=[];switch(e.id){case zn.DeleteRangeMoveLeftCommandId:{n=xne(e,t);break}case zn.DeleteRangeMoveUpCommandId:{n=One(e,t);break}case zn.InsertColCommandId:{n=vx(e,t);break}case zn.InsertRangeMoveDownCommandId:{n=Tne(e,t);break}case zn.InsertRangeMoveRightCommandId:{n=Lne(e,t);break}case zn.InsertRowCommandId:{n=px(e,t);break}case zn.MoveColsCommandId:{n=mx(e,t);break}case zn.MoveRangeCommandId:{n=Pne(e,t);break}case zn.MoveRowsCommandId:{n=fx(e,t);break}case zn.RemoveColCommandId:{n=gx(e,t);break}case zn.RemoveRowCommandId:{n=Mne(e,t);break}case zn.ReorderRangeCommandId:{n=$Wt(e,t);break}}return xa(n,t)},"handleDefaultRangeChangeWithEffectRefCommands"),QWt=oe((t,e)=>{let n=[];switch(e.id){case zn.DeleteRangeMoveLeftCommandId:return qWt(e,t);case zn.DeleteRangeMoveUpCommandId:return YWt(e,t);case zn.InsertRangeMoveDownCommandId:return WWt(e,t);case zn.InsertRangeMoveRightCommandId:return zWt(e,t);case zn.InsertColCommandId:{n=vx(e,t);break}case zn.InsertRowCommandId:{n=px(e,t);break}case zn.MoveColsCommandId:return HWt(e,t);case zn.MoveRangeCommandId:return jWt(e,t);case zn.MoveRowsCommandId:return BWt(e,t);case zn.ReorderRangeCommandId:return UWt(e,t);case zn.RemoveColCommandId:{n=gx(e,t);break}case zn.RemoveRowCommandId:return XWt(e.params,t)}return xa(n,t)},"handleCommonDefaultRangeChangeWithEffectRefCommands");function oHe(t,e){const{id:n,params:r}=e;let i={length:0,step:0,type:Ti.Unknown};switch(n){case Ls.id:i.type=Ti.Delete;break;case m1.id:i=tP({start:r.sourceRange.startRow,end:r.sourceRange.endRow},{start:r.targetRange.startRow,end:r.targetRange.endRow},{start:t.startRow,end:t.endRow}),i.type=Ti.VerticalMove;break;case g1.id:i=tP({start:r.sourceRange.startColumn,end:r.sourceRange.endColumn},{start:r.targetRange.startColumn,end:r.targetRange.endColumn},{start:t.startColumn,end:t.endColumn}),i.type=Ti.HorizontalMove;break;case Wl.id:i=c7(r.range,t),i?i.type=Ti.HorizontalMove:i={step:0,length:0,type:Ti.Delete};break;case Tu.id:i=c7(s1(r.range),s1(t)),i?i.type=Ti.VerticalMove:i={step:0,length:0,type:Ti.Delete};break;case A1.id:i=d7(s1(r.range),s1(t)),i.type=Ti.VerticalMove;break;case w1.id:i=d7(r.range,t),i.type=Ti.HorizontalMove;break;case $l.id:{const a=r.fromRange||new Ct(r.from).getRange(),o=r.toRange||new Ct(r.to).getRange();i=aHe(a,o,t)}break}return i?Array.isArray(i)?xa(i,t):xa([i],t):t}oe(oHe,"adjustRangeOnMutation");function KWt(t,e){var n,r,i,a,o,s;const{selectionManagerService:l}=e;switch(t.id){case zn.MoveColsCommandId:{const u=t.params;return[u.fromRange,{...u.toRange,startColumn:u.toRange.startColumn-.5,endColumn:u.toRange.endColumn-.5}]}case zn.MoveRowsCommandId:{const u=t.params;return[u.fromRange,{...u.toRange,startRow:u.toRange.startRow-.5,endRow:u.toRange.startRow-.5}]}case zn.MoveRangeCommandId:{const u=t;return[u.params.fromRange,u.params.toRange]}case zn.InsertRowCommandId:{const u=t.params.range;return[{...u,startRow:u.startRow-.5,endRow:u.endRow-.5}]}case zn.InsertColCommandId:{const u=t.params.range;return[{...u,startColumn:u.startColumn-.5,endColumn:u.endColumn-.5}]}case zn.RemoveRowCommandId:return[t.params.range];case zn.RemoveColCommandId:return[t.params.range];case zn.DeleteRangeMoveUpCommandId:case zn.InsertRangeMoveDownCommandId:{const u=((n=t.params)==null?void 0:n.range)||((i=(r=l.getCurrentSelections())==null?void 0:r.map(c=>c.range))==null?void 0:i[0]);return u?[u]:[]}case zn.DeleteRangeMoveLeftCommandId:case zn.InsertRangeMoveRightCommandId:{const u=((a=t.params)==null?void 0:a.range)||((s=(o=l.getCurrentSelections())==null?void 0:o.map(c=>c.range))==null?void 0:s[0]);return u?[u]:[]}case zn.ReorderRangeCommandId:{const u=t,{range:c,order:d}=u.params,h=[];for(let f=c.startRow;f<=c.endRow;f++)f in d&&h.push({startRow:f,endRow:f,startColumn:c.startColumn,endColumn:c.endColumn});return h}}}oe(KWt,"getEffectedRangesOnCommand");function sHe(t){switch(t.id){case g1.id:{const e=t.params;return[e.sourceRange,{...e.targetRange,startColumn:e.targetRange.startColumn-.5,endColumn:e.targetRange.startColumn-.5}]}case m1.id:{const e=t.params;return[e.sourceRange,{...e.targetRange,startRow:e.targetRange.startRow-.5,endRow:e.targetRange.startRow-.5}]}case $l.id:{const e=t.params;return[new Ct(e.from.value).getRange(),new Ct(e.to.value).getRange()]}case w1.id:{const e=t.params.range;return[{...e,startColumn:e.startColumn-.5,endColumn:e.startColumn-.5}]}case A1.id:{const e=t.params.range;return[{...e,startRow:e.startRow-.5,endRow:e.startRow-.5}]}case Wl.id:return[t.params.range];case Tu.id:return[t.params.range]}}oe(sHe,"getEffectedRangesOnMutation");var ZWt=Object.defineProperty,JWt=Object.getOwnPropertyDescriptor,ezt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?JWt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ZWt(e,n,i),i},"__decorateClass$9"),$y=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9");const tzt=_s("MERGE_REDO"),nzt=_s("MERGE_UNDO"),jle=Math.floor(Number.MAX_SAFE_INTEGER/10),lHe=class extends et{constructor(e,n,r,i,a=!1){super(),this._unitId=e,this._subUnitId=n,this._range=r,this._callback=i,this._skipIntersects=a}onMutation(e){var n,r;if(((n=e.params)==null?void 0:n.unitId)!==this._unitId)return;if(e.id===$l.id){const o=e.params;if(o.from.subUnitId!==this._subUnitId||o.to.subUnitId!==this._subUnitId)return}else if(((r=e.params)==null?void 0:r.subUnitId)!==this._subUnitId)return;if(!this._range)return;if(this._skipIntersects){if(e.id===Ls.id)return;const o=sHe(e);if(o!=null&&o.some(s=>ft.intersects(s,this._range)))return}const i=oHe(this._range,e);if(i&&ft.equals(i,this._range))return!1;const a=this._range;this._range=i,this._callback(a,i)}};oe(lHe,"WatchRange");let rzt=lHe;var zF;let ff=(zF=class extends et{constructor(t,e,n,r){super(),xe(this,"interceptor",new Wf({MERGE_REDO:tzt,MERGE_UNDO:nzt})),xe(this,"_watchRanges",new Set),xe(this,"_refRangeManagerMap",new Map),xe(this,"_serializer",uHe()),xe(this,"_onRefRangeChange",oe(()=>{this._sheetInterceptorService.interceptCommand({getMutations:oe(i=>{const a=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet(),o=Gq(this._univerInstanceService),s=Qq(this._univerInstanceService);if(!a||!o||!s)return{redos:[],undos:[],preRedos:[],preUndos:[]};const l=(oe(()=>{switch(i.id){case zn.MoveColsCommandId:{const f=i.params,m=Math.min(f.fromRange.startColumn,f.toRange.startColumn);return this._checkRange([{...f.fromRange,startColumn:m,endColumn:a.getColumnCount()-1}],o,s)}case zn.MoveRowsCommandId:{const f=i.params,m=Math.min(f.fromRange.startRow,f.toRange.startRow);return this._checkRange([{...f.fromRange,startRow:m,endRow:a.getRowCount()-1}],o,s)}case zn.MoveRangeCommandId:{const f=i;return this._checkRange([f.params.fromRange,f.params.toRange],o,s)}case zn.InsertRowCommandId:{const f={startRow:i.params.range.startRow,endRow:a.getRowCount()-1,startColumn:0,endColumn:a.getColumnCount()-1,rangeType:it.ROW};return this._checkRange([f],o,s)}case zn.InsertColCommandId:{const f=i.params.range.startColumn,m={startRow:0,endRow:a.getRowCount()-1,startColumn:f,endColumn:a.getColumnCount()-1,rangeType:it.COLUMN};return this._checkRange([m],o,s)}case zn.RemoveRowCommandId:{const f={startRow:i.params.range.startRow,endRow:a.getRowCount()-1,startColumn:0,endColumn:a.getColumnCount()-1,rangeType:it.ROW};return this._checkRange([f],o,s)}case zn.RemoveColCommandId:{const f=i.params.range.startColumn,m={startRow:0,endRow:a.getRowCount()-1,startColumn:f,endColumn:a.getColumnCount()-1,rangeType:it.COLUMN};return this._checkRange([m],o,s)}case zn.DeleteRangeMoveUpCommandId:case zn.InsertRangeMoveDownCommandId:{const f=i.params.range||Kq(this._selectionManagerService)[0],m={startRow:f.startRow,startColumn:f.startColumn,endColumn:f.endColumn,endRow:jle};return this._checkRange([m],o,s)}case zn.DeleteRangeMoveLeftCommandId:case zn.InsertRangeMoveRightCommandId:{const f=i.params.range||Kq(this._selectionManagerService)[0],m={startRow:f.startRow,startColumn:f.startColumn,endColumn:jle,endRow:f.endRow};return this._checkRange([m],o,s)}case zn.ReorderRangeCommandId:{const f=i,{range:m,order:g}=f.params,p=[];for(let v=m.startRow;v<=m.endRow;v++)v in g&&p.push({startRow:v,endRow:v,startColumn:m.startColumn,endColumn:m.endColumn});return this._checkRange(p,o,s)}}},"getEffectsCbList")()||[]).reduce((f,m)=>{const g=m(i);return f.push(g),f},[]).reduce((f,m)=>{var g,p;return f.redos.push(...m.redos),f.undos.push(...m.undos),f.preRedos.push(...(g=m.preRedos)!=null?g:[]),f.preUndos.push(...(p=m.preUndos)!=null?p:[]),f},{redos:[],undos:[],preUndos:[],preRedos:[]}),u=this.interceptor.fetchThroughInterceptors(this.interceptor.getInterceptPoints().MERGE_REDO)(l.preRedos,null)||[],c=this.interceptor.fetchThroughInterceptors(this.interceptor.getInterceptPoints().MERGE_REDO)(l.redos,null)||[],d=this.interceptor.fetchThroughInterceptors(this.interceptor.getInterceptPoints().MERGE_UNDO)(l.preUndos,null)||[],h=this.interceptor.fetchThroughInterceptors(this.interceptor.getInterceptPoints().MERGE_UNDO)(l.undos,null)||[];return{redos:c,undos:h,preRedos:u,preUndos:d}},"getMutations")})},"_onRefRangeChange")),xe(this,"_checkRange",oe((i,a,o)=>{const s=Zq(a,o),l=this._refRangeManagerMap.get(s);if(l){const u=new Set;return[...l.keys()].forEach(c=>{const d=l.get(c),h=this._serializer.deserialize(c),f={...h,startRow:+h.startRow,endRow:+h.endRow,startColumn:+h.startColumn,endColumn:+h.endColumn,rangeType:h.rangeType&&+h.rangeType};i.some(m=>ft.intersects(m,f))&&d&&d.forEach(m=>{u.add(m)})}),[...u]}return[]},"_checkRange")),xe(this,"registerRefRange",oe((i,a,o,s)=>{const l=o||Gq(this._univerInstanceService),u=s||Qq(this._univerInstanceService);if(!l||!u)return $t(()=>{});const c=Zq(l,u),d=this._serializer.serialize(i);let h=this._refRangeManagerMap.get(c);h||(h=new Map,this._refRangeManagerMap.set(c,h));const f=h.get(d);return f?f.add(a):h.set(d,new Set([a])),$t(()=>{const m=h.get(d);m&&(m.delete(a),m.size||(h.delete(d),h.size||this._refRangeManagerMap.delete(c)))})},"registerRefRange")),this._commandService=t,this._sheetInterceptorService=e,this._univerInstanceService=n,this._selectionManagerService=r,this._onRefRangeChange(),this.interceptor.intercept(this.interceptor.getInterceptPoints().MERGE_REDO,{priority:-1,handler:oe(i=>i,"handler")}),this.interceptor.intercept(this.interceptor.getInterceptPoints().MERGE_UNDO,{priority:-1,handler:oe(i=>i,"handler")})}watchRange(t,e,n,r,i){let a;this._watchRanges.size===0&&(a=this._commandService.onCommandExecuted(u=>{if(u.type!==Se.MUTATION)return!1;for(const c of this._watchRanges)c.onMutation(u)}));const o=new rzt(t,e,n,r,i);this._watchRanges.add(o);const s=$t(()=>{this._watchRanges.delete(o),this._watchRanges.size===0&&(a==null||a.dispose(),a=null)}),l=this.disposeWithMe(s);return $t(()=>{l.dispose(),s.dispose()})}},oe(zF,"RefRangeService"),zF);ff=ezt([yn(Vt.Ready,ff),$y(0,me),$y(1,se(Tr)),$y(2,se(Ce)),$y(3,se(Bt))],ff);function Gq(t){return t.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()}oe(Gq,"getUnitId");function Qq(t){var e;return(e=t.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet())==null?void 0:e.getSheetId()}oe(Qq,"getSubUnitId");function Kq(t){var e;return((e=t.getCurrentSelections())==null?void 0:e.map(n=>n.range))||[]}oe(Kq,"getSelectionRanges");function Zq(t,e){return`${t}_${e}`}oe(Zq,"getRefRangId");function uHe(){const t=["startRow","startColumn","endRow","endColumn","rangeType"],e="_";return{deserialize:oe(n=>{const r=t.reduce((i,a,o)=>(i[String(o)]=a,i),{});return n.split(e).reduce((i,a,o)=>{const s=String(o);return a&&r[s]&&(i[r[s]]=a),i},{})},"deserialize"),serialize:oe(n=>t.reduce((r,i,a)=>{const o=n[i];return o!==void 0?`${r}${a>0?e:""}${o}`:`${r}`},""),"serialize")}}oe(uHe,"createRangeSerializer");var izt=Object.defineProperty,azt=Object.getOwnPropertyDescriptor,ozt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?azt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&izt(e,n,i),i},"__decorateClass$8"),N3=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8");const szt=[w1.id,A1.id,Wl.id,Tu.id],lzt=[m1.id,g1.id];function c9(t,e){let n=t;if(e!==void 0){const r=[];for(let i=0;i<n.length;i++){const{startRow:a,endRow:o,startColumn:s,endColumn:l}=n[i];if(e===ts.ROWS)for(let u=a;u<=o;u++){const c={startRow:u,endRow:u,startColumn:s,endColumn:l};r.push(c)}else if(e===ts.COLUMNS)for(let u=s;u<=l;u++){const c={startRow:a,endRow:o,startColumn:u,endColumn:u};r.push(c)}}n=r}return n}oe(c9,"getAddMergeMutationRangeByType");const cHe=_s("mergeCellPermissionCheck");var qF;let U8=(qF=class extends et{constructor(t,e,n,r,i,a){super(),xe(this,"disposableCollection",new Gi),xe(this,"interceptor",new Wf({MERGE_CELL_INTERCEPTOR_CHECK:cHe})),this._commandService=t,this._refRangeService=e,this._univerInstanceService=n,this._injector=r,this._sheetInterceptorService=i,this._selectionManagerService=a,this._onRefRangeChange(),this._initCommandInterceptor(),this._commandExecutedListener()}_initCommandInterceptor(){const t=this;this._sheetInterceptorService.interceptCommand({getMutations(e){var n;switch(e.id){case p0.id:case th.id:{const r=t._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),i=r.getUnitId(),a=r.getActiveSheet();if(!a)return{redos:[],undos:[]};const o=a.getSheetId(),s=a.getConfig().mergeData,l=(n=t._selectionManagerService.getCurrentSelections())==null?void 0:n.map(u=>u.range);if(l&&l.length>0&&l.some(u=>s.some(c=>ft.intersects(c,u)))){const u={unitId:i,subUnitId:o,ranges:l},c=fl(t._injector,u),d=[{id:Di.id,params:u}],h=[{id:yi.id,params:c}];return{redos:d,undos:h}}}}return{redos:[],undos:[]}}}),this._sheetInterceptorService.interceptRanges({getMutations:oe(({unitId:e,subUnitId:n,ranges:r})=>{const i=[],a=[],o={redos:i,undos:a};if(!r||!r.length)return o;const s=Dn(this._univerInstanceService,{unitId:e,subUnitId:n});if(!s)return o;const{worksheet:l}=s,u=l.getMergeData().filter(c=>r.some(d=>ft.intersects(c,d)));return u.length?(i.push({id:Di.id,params:{unitId:e,subUnitId:n,ranges:u}}),a.push({id:yi.id,params:{unitId:e,subUnitId:n,ranges:u}}),{undos:a,redos:i}):o},"getMutations")})}refRangeHandle(t,e,n){switch(t.id){case zn.MoveColsCommandId:{const r=t.params;return this._handleMoveColsCommand(r,e,n)}case zn.MoveRowsCommandId:{const r=t.params;return this._handleMoveRowsCommand(r,e,n)}case If.id:{const r=t.params,i=r.unitId||e,a=r.subUnitId||n;return this._handleInsertRowCommand(r,i,a)}case Pf.id:{const r=t.params,i=r.unitId||e,a=r.subUnitId||n;return this._handleInsertColCommand(r,i,a)}case H0.id:{const r=t.params;return this._handleRemoveColCommand(r,e,n)}case U0.id:{const r=t.params;return this._handleRemoveRowCommand(r,e,n)}case F0.id:{const r=t.params;return this._handleMoveRangeCommand(r,e,n)}case B0.id:{const r=t.params;return this._handleInsertRangeMoveRightCommand(r,e,n)}case V0.id:{const r=t.params;return this._handleInsertRangeMoveDownCommand(r,e,n)}case Cp.id:{const r=t.params;return this._handleDeleteRangeMoveUpCommand(r,e,n)}case _p.id:{const r=t.params;return this._handleDeleteRangeMoveLeftCommand(r,e,n)}}return{redos:[],undos:[]}}_onRefRangeChange(){const t=oe((n,r)=>{const i=this._univerInstanceService.getUniverSheetInstance(n);if(!i)return;const a=i==null?void 0:i.getSheetBySheetId(r);if(!a)return;this.disposableCollection.dispose();const o=a.getMergeData(),s=oe(l=>this.refRangeHandle(l,n,r),"handler");o.forEach(l=>{this.disposableCollection.add(this._refRangeService.registerRefRange(l,s,n,r))})},"registerRefRange");this.disposeWithMe(this._commandService.onCommandExecuted(n=>{if(n.id===l9.id){const r=n.params,i=r.subUnitId,a=r.unitId;if(!i||!a)return;t(a,i)}if(n.id===yi.id){const r=n.params,i=r.subUnitId,a=r.unitId;if(!i||!a)return;t(r.unitId,r.subUnitId)}}));const e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(e){const n=e.getActiveSheet();if(!n)return;t(e.getUnitId(),n.getSheetId())}}_handleMoveRowsCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=[...i.getMergeData()],o={unitId:e,subUnitId:n,ranges:[]},s={unitId:e,subUnitId:n,ranges:[]},{fromRange:l}=t,{startRow:u,endRow:c}=l;if(a.forEach(f=>{if(u<=f.startRow&&c>=f.endRow){o.ranges.push(f);const m=fx({id:zn.MoveRowsCommandId,params:t},f),g=xa(m,f);g&&s.ranges.push(g)}}),o.ranges.length===0)return this._handleNull();const d=fl(this._injector,o),h=ou(this._injector,s);return{redos:[{id:Di.id,params:o},{id:yi.id,params:s}],undos:[{id:Di.id,params:h},{id:yi.id,params:d}]}}_handleMoveColsCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=[...i.getMergeData()],o={unitId:e,subUnitId:n,ranges:[]},s={unitId:e,subUnitId:n,ranges:[]},{fromRange:l}=t,{startColumn:u,endColumn:c}=l;if(a.forEach(f=>{if(u<=f.startColumn&&c>=f.endColumn){o.ranges.push(f);const m=mx({id:zn.MoveColsCommandId,params:t},f),g=xa(m,f);g&&s.ranges.push(g)}}),o.ranges.length===0)return this._handleNull();const d=fl(this._injector,o),h=ou(this._injector,s);return{redos:[{id:Di.id,params:o},{id:yi.id,params:s}],undos:[{id:Di.id,params:h},{id:yi.id,params:d}]}}_handleMoveRangeCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=i.getMergeData(),o=a.filter(h=>ft.intersects(h,t.fromRange)),s=a.filter(h=>ft.intersects(h,t.toRange)),l=o.map(h=>ft.getRelativeRange(h,t.fromRange)).map(h=>ft.getPositionRange(h,t.toRange)),u=c9(l).filter(h=>!a.some(f=>ft.equals(h,f))),c=[{id:Di.id,params:{unitId:e,subUnitId:n,ranges:o}},{id:Di.id,params:{unitId:e,subUnitId:n,ranges:s}},{id:yi.id,params:{unitId:e,subUnitId:n,ranges:u}}],d=[{id:Di.id,params:{unitId:e,subUnitId:n,ranges:u}},{id:yi.id,params:{unitId:e,subUnitId:n,ranges:s}},{id:yi.id,params:{unitId:e,subUnitId:n,ranges:o}}];return{redos:c,undos:d}}_handleInsertRowCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const{range:a}=t,{startRow:o,endRow:s}=a,l=Ie.deepClone(i.getMergeData()).reduce((p,v)=>(o>v.startRow&&o<=v.endRow&&p.push(v),p),[]);if(l.length===0)return this._handleNull();const u=Ie.deepClone(i.getMergeData()).reduce((p,v)=>{if(o>v.startRow&&o<=v.endRow){const _=s-o+1;v.endRow+=_,this._checkIsMergeCell(v)&&p.push(v)}return p},[]),c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c},{id:yi.id,params:h}],g=[{id:Di.id,params:f},{id:yi.id,params:d}];return{redos:m,undos:g}}_handleInsertColCommand(t,e,n){const{range:r}=t,i=Vc(this._univerInstanceService,e);if(!i)return this._handleNull();const a=Bc(i,n);if(!a)return this._handleNull();const{startColumn:o,endColumn:s}=r,l=Ie.deepClone(a.getMergeData()).reduce((p,v)=>(o>v.startColumn&&o<=v.endColumn&&p.push(v),p),[]);if(l.length===0)return this._handleNull();const u=Ie.deepClone(a.getMergeData()).reduce((p,v)=>{if(o>v.startColumn&&o<=v.endColumn){const _=s-o+1;v.endColumn+=_,this._checkIsMergeCell(v)&&p.push(v)}return p},[]),c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c},{id:yi.id,params:h}],g=[{id:Di.id,params:f},{id:yi.id,params:d}];return{redos:m,undos:g}}_handleRemoveColCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const{range:a}=t,{startColumn:o,endColumn:s}=a,l=Ie.deepClone(i.getMergeData()).reduce((_,C)=>(ft.intersects(a,C)&&_.push(C),_),[]);if(l.length===0)return this._handleNull();const u=Ie.deepClone(i.getMergeData()).reduce((_,C)=>{if(ft.intersects(a,C)){if(o<=C.startColumn&&s>=C.endColumn)return _;o>=C.startColumn&&s<=C.endColumn?C.endColumn-=s-o+1:o<C.startColumn?(C.startColumn=o,C.endColumn-=s-o+1):s>C.endColumn&&(C.endColumn=o-1),this._checkIsMergeCell(C)&&_.push(C)}return _},[]),c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c}],g=[{id:yi.id,params:h}],p=[{id:Di.id,params:f}],v=[{id:yi.id,params:d}];return{preUndos:p,undos:v,preRedos:m,redos:g}}_handleRemoveRowCommand(t,e,n){const{range:r}=t,i=Vc(this._univerInstanceService,e);if(!i)return this._handleNull();const a=Bc(i,n);if(!a)return this._handleNull();const{startRow:o,endRow:s}=r,l=Ie.deepClone(a.getMergeData()).reduce((_,C)=>(ft.intersects(r,C)&&_.push(C),_),[]);if(l.length===0)return this._handleNull();const u=Ie.deepClone(a.getMergeData()).reduce((_,C)=>{if(ft.intersects(r,C)){if(o<=C.startRow&&s>=C.endRow)return _;o>=C.startRow&&s<=C.endRow?C.endRow-=s-o+1:o<C.startRow?(C.startRow=o,C.endRow-=s-o+1):s>C.endRow&&(C.endRow=o-1),this._checkIsMergeCell(C)&&_.push(C)}return _},[]),c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c}],g=[{id:yi.id,params:h}],p=[{id:Di.id,params:f}],v=[{id:yi.id,params:d}];return{preUndos:p,undos:v,preRedos:m,redos:g}}_handleInsertRangeMoveRightCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=t.range,o=i.getMaxColumns()-1,s=i.getMergeData(),l=[],u=[];s.forEach(m=>{const{startRow:g,endRow:p,startColumn:v,endColumn:_}=a;if(ft.intersects({startRow:g,startColumn:v,endRow:p,endColumn:o},m)&&(l.push(m),ft.contains({startRow:g,startColumn:v,endRow:p,endColumn:o},m))){const C=_-v+1;u.push({startRow:m.startRow,startColumn:m.startColumn+C,endRow:m.endRow,endColumn:m.endColumn+C})}});const c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h);return{redos:[{id:Di.id,params:c},{id:yi.id,params:h}],undos:[{id:yi.id,params:d},{id:Di.id,params:f}]}}_handleInsertRangeMoveDownCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=t.range,o=i.getMaxRows()-1,s=i.getMergeData(),l=[],u=[];s.forEach(p=>{const{startRow:v,startColumn:_,endColumn:C,endRow:S}=a;if(ft.intersects({startRow:v,startColumn:_,endRow:o,endColumn:C},p)&&(l.push(p),ft.contains({startRow:v,startColumn:_,endRow:o,endColumn:C},p))){const b=S-v+1;u.push({startRow:p.startRow+b,startColumn:p.startColumn,endRow:p.endRow+b,endColumn:p.endColumn})}});const c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c},{id:yi.id,params:h}],g=[{id:yi.id,params:d},{id:Di.id,params:f}];return{redos:m,undos:g}}_handleDeleteRangeMoveUpCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=t.range,o=i.getMaxRows()-1,s=i.getMergeData(),l=[],u=[];s.forEach(p=>{const{startRow:v,startColumn:_,endColumn:C,endRow:S}=a;if(ft.intersects({startRow:v,startColumn:_,endRow:o,endColumn:C},p)&&(l.push(p),ft.contains({startRow:v,startColumn:_,endRow:o,endColumn:C},p))){const b=S-v+1,y=ft.moveVertical(p,-b);u.push(y)}});const c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h),m=[{id:Di.id,params:c},{id:yi.id,params:h}],g=[{id:yi.id,params:d},{id:Di.id,params:f}];return{redos:m,undos:g}}_handleDeleteRangeMoveLeftCommand(t,e,n){const r=Vc(this._univerInstanceService,e);if(!r)return this._handleNull();const i=Bc(r,n);if(!i)return this._handleNull();const a=t.range,o=i.getMaxColumns()-1,s=i.getMergeData(),l=[],u=[];s.forEach(m=>{const{startRow:g,endRow:p,startColumn:v,endColumn:_}=a;if(ft.intersects({startRow:g,startColumn:v,endRow:p,endColumn:o},m)&&(l.push(m),ft.contains({startRow:g,startColumn:v,endRow:p,endColumn:o},m))){const C=_-v+1;u.push({startRow:m.startRow,startColumn:m.startColumn-C,endRow:m.endRow,endColumn:m.endColumn-C})}});const c={unitId:e,subUnitId:n,ranges:l},d=fl(this._injector,c),h={unitId:e,subUnitId:n,ranges:u},f=ou(this._injector,h);return{redos:[{id:Di.id,params:c},{id:yi.id,params:h}],undos:[{id:yi.id,params:d},{id:Di.id,params:f}]}}_checkIsMergeCell(t){return!(t.startRow===t.endRow&&t.startColumn===t.endColumn)}_handleNull(){return{redos:[],undos:[]}}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(lzt.includes(t.id)){if(!t.params)return;const e=this._univerInstanceService.getUniverSheetInstance(t.params.unitId);if(!e)return;const n=e.getSheetBySheetId(t.params.subUnitId);if(!n)return;const{sourceRange:r,targetRange:i}=t.params,a=r.startColumn===i.startColumn&&r.endColumn===i.endColumn,o=a?r.endRow-r.startRow+1:r.endColumn-r.startColumn+1,s=a?r.startRow:r.startColumn,l=a?i.startRow:i.startColumn,u=n.getConfig().mergeData,c=[];u.forEach(m=>{let{startRow:g,endRow:p,startColumn:v,endColumn:_,rangeType:C}=m;ft.intersects(m,r)||(a?s<g&&l>p?(g-=o,p-=o):s>p&&l<=g&&(g+=o,p+=o):s<v&&l>_?(v-=o,_-=o):s>_&&l<=v&&(v+=o,_+=o)),m.startRow===m.endRow&&m.startColumn===m.endColumn||c.push({startRow:g,endRow:p,startColumn:v,endColumn:_,rangeType:C})}),n.setMergeData(c),this.disposableCollection.dispose();const{unitId:d,subUnitId:h}=t.params,f=oe(m=>this.refRangeHandle(m,d,h),"handler");c.forEach(m=>{this.disposableCollection.add(this._refRangeService.registerRefRange(m,f,d,h))})}if(szt.includes(t.id)){const e=this._univerInstanceService.getUniverSheetInstance(t.params.unitId);if(!e)return;const n=e.getSheetBySheetId(t.params.subUnitId);if(!n)return;const r=n.getConfig().mergeData,i=t.params;if(!i)return;const{range:a}=i,o=t.id.includes("row"),s=t.id.includes("insert"),l=o?a.startRow:a.startColumn,u=o?a.endRow:a.endColumn,c=u-l+1,d=[];r.forEach(g=>{let{startRow:p,endRow:v,startColumn:_,endColumn:C,rangeType:S}=g;s?o?l<=p&&(p+=c,v+=c):l<=_&&(_+=c,C+=c):o?u<p&&(p-=c,v-=c):u<_&&(_-=c,C-=c),g.startRow===g.endRow&&g.startColumn===g.endColumn||d.push({startRow:p,endRow:v,startColumn:_,endColumn:C,rangeType:S})}),n.setMergeData(d),this.disposableCollection.dispose();const{unitId:h,subUnitId:f}=t.params,m=oe(g=>this.refRangeHandle(g,h,f),"handler");d.forEach(g=>{this.disposableCollection.add(this._refRangeService.registerRefRange(g,m,h,f))})}}))}},oe(qF,"MergeCellController"),qF);U8=ozt([yn(Vt.Steady,U8),N3(0,se(me)),N3(1,se(ff)),N3(2,se(Ce)),N3(3,se(Wn)),N3(4,se(Tr)),N3(5,se(Bt))],U8);function Vc(t,e){return e?t.getUniverSheetInstance(e):t.getCurrentUnitForType(le.UNIVER_SHEET)}oe(Vc,"getWorkbook");function Bc(t,e){return e?t.getSheetBySheetId(e):t.getActiveSheet()}oe(Bc,"getWorksheet");var uzt=Object.defineProperty,czt=Object.getOwnPropertyDescriptor,dzt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?czt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&uzt(e,n,i),i},"__decorateClass$7"),YF=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),XF;let Jq=(XF=class extends et{constructor(t,e,n){super(),this._resourceManagerService=t,this._univerInstanceService=e,this._logService=n}getValue(t,e,n,r){const i=this._univerInstanceService.getUniverSheetInstance(t);if(!i)return;const a=i==null?void 0:i.getSheetBySheetId(e);if(!a)return;const o=i.getStyles(),s=a.getCellRaw(n,r);if(s!=null&&s.s){const l=o.get(s.s);if(l!=null&&l.n)return l.n}return null}deleteValues(t,e,n){const r=this._univerInstanceService.getUniverSheetInstance(t);if(!r)return;const i=r==null?void 0:r.getSheetBySheetId(e);if(!i)return;const a=r.getStyles();n.forEach(o=>{Gn.foreach(o,(s,l)=>{const u=i.getCellRaw(s,l);if(!u)return;const c=u==null?void 0:u.s,d={...c&&a.get(c)||{}};delete d.n;const h=a.setValue(d);u.s=h})})}setValues(t,e,n){const r=this._univerInstanceService.getUniverSheetInstance(t);if(!r)return;const i=r==null?void 0:r.getSheetBySheetId(e);if(!i)return;const a=r.getStyles(),o=i.getCellMatrix();n.forEach(s=>{s.ranges.forEach(l=>{Gn.foreach(l,(u,c)=>{const d=i.getCellRaw(u,c);if(d){const h={...a.getStyleByCell(d)||{},n:{pattern:s.pattern}},f=a.setValue(h);d.s=f;const m=ABe(d,s.pattern);d.v!==void 0&&(d.t=m,d.v=zI(m,d))}else{const h={n:{pattern:s.pattern}},f=a.setValue(h);f&&o.setValue(u,c,{s:f})}})})})}},oe(XF,"NumfmtService"),XF);Jq=dzt([YF(0,J0),YF(1,Ce),YF(2,Ra)],Jq);const nP=oe(()=>[on,B$t,F$t,j$t,x6,U$t,R1,ine,oUe,ax,ix,V$t,$$t,iUe,W$t,z$t,q$t],"getAllWorkbookPermissionPoint"),hzt=[Xt.Edit,Xt.Print,Xt.Comment,Xt.View,Xt.Copy,Xt.Export,Xt.ManageCollaborator,Xt.CreateSheet,Xt.DeleteSheet,Xt.RenameSheet,Xt.HideSheet,Xt.Duplicate,Xt.Share,Xt.MoveSheet,Xt.CopySheet,Xt.RecoverHistory,Xt.ViewHistory];var fzt=Object.defineProperty,mzt=Object.getOwnPropertyDescriptor,gzt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?mzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fzt(e,n,i),i},"__decorateClass$6"),GF=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),QF;let qR=(QF=class extends et{constructor(t,e,n){super(),this._permissionService=t,this._univerInstanceService=e,this._rangeProtectionRuleModel=n,this._init()}_init(){const t=oe(e=>{const n=e.getUnitId();nP().forEach(r=>{const i=new r(n);this._permissionService.addPermissionPoint(i)})},"handleWorkbook");this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(e=>{t(e)}),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).subscribe(e=>{t(e)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(e=>{const n=e.getUnitId();e.getSheets().forEach(r=>{const i=r.getSheetId();this._rangeProtectionRuleModel.getSubunitRuleList(n,i).forEach(a=>{[Bn,o7].forEach(o=>{const s=new o(n,i,a.permissionId);this._permissionService.deletePermissionPoint(s.id)})}),[...Qu(),...Bd()].forEach(a=>{const o=new a(n,i);this._permissionService.deletePermissionPoint(o.id)})}),nP().forEach(r=>{const i=new r(n);this._permissionService.deletePermissionPoint(i.id)})}))}},oe(QF,"WorkbookPermissionService"),QF);qR=gzt([yn(Vt.Starting,qR),GF(0,se(Qi)),GF(1,se(Ce)),GF(2,se(li))],qR);var pzt=Object.defineProperty,vzt=Object.getOwnPropertyDescriptor,_zt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?vzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pzt(e,n,i),i},"__decorateClass$5"),$le=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5");const Czt="SHEET_DEFINED_NAME_PLUGIN";var KF;let YR=(KF=class extends et{constructor(t,e){super(),this._definedNamesService=t,this._resourceManagerService=e,this._initialize()}_initialize(){this._initSnapshot()}_initSnapshot(){const t=oe(n=>{const r=this._definedNamesService.getDefinedNameMap(n);return r?JSON.stringify(r):""},"toJson"),e=oe(n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:Czt,businesses:[le.UNIVER_SHEET],toJson:oe(n=>t(n),"toJson"),parseJson:oe(n=>e(n),"parseJson"),onUnLoad:oe(n=>{this._definedNamesService.removeUnitDefinedName(n)},"onUnLoad"),onLoad:oe((n,r)=>{this._definedNamesService.registerDefinedNames(n,r)},"onLoad")}))}},oe(KF,"DefinedNameDataController"),KF);YR=_zt([yn(Vt.Ready,YR),$le(0,Dc),$le(1,J0)],YR);const zd=oe(()=>[o7,Bn],"getAllRangePermissionPoint");var Szt=Object.defineProperty,bzt=Object.getOwnPropertyDescriptor,yzt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?bzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Szt(e,n,i),i},"__decorateClass$4"),Wle=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),ZF;let Ng=(ZF=class{constructor(t,e){xe(this,"_cache",new Yg(1e4)),this._selectionProtectionRuleModel=t,this._permissionService=e,this._init()}_init(){this._permissionService.permissionPointUpdate$.pipe(mo(t=>t.type===oi.SelectRange),mo(t=>zd().some(e=>t instanceof e)),pr(t=>t)).subscribe(t=>{const e=this._selectionProtectionRuleModel.getSubunitRuleList(t.unitId,t.subUnitId);for(const n of e)n.permissionId===t.permissionId&&n.ranges.forEach(r=>{Gn.foreach(r,(i,a)=>{const o=this._createKey(t.unitId,t.subUnitId,i,a);this._cache.delete(o)})})}),this._selectionProtectionRuleModel.ruleChange$.subscribe(t=>{var e;t.rule.ranges.forEach(n=>{Gn.foreach(n,(r,i)=>{const a=this._createKey(t.unitId,t.subUnitId,r,i);this._cache.delete(a)})}),t.type==="set"&&((e=t.oldRule)==null||e.ranges.forEach(n=>{Gn.foreach(n,(r,i)=>{const a=this._createKey(t.unitId,t.subUnitId,r,i);this._cache.delete(a)})}))})}_createKey(t,e,n,r){return`${t}_${e}_${n}_${r}`}getCellInfo(t,e,n,r){const i=this._createKey(t,e,n,r),a=this._cache.get(i);if(a)return a;const o=this._selectionProtectionRuleModel.getSubunitRuleList(t,e),s=[];if(!o||!o.length)return s;const l=[];for(const u of o)if(u.ranges.some(c=>c.startRow<=n&&c.endRow>=n&&c.startColumn<=r&&c.endColumn>=r)){const c=zd().reduce((d,h)=>{var f;const m=new h(t,e,u.permissionId),g=this._permissionService.getPermissionPoint(m.id);return d[m.subType]=(f=g==null?void 0:g.value)!=null?f:m.value,d},{});l.push({...c,ruleId:u.id,ranges:u.ranges})}return this._cache.set(i,l),l}clear(){this._cache.clear()}},oe(ZF,"RangeProtectionRenderModel"),ZF);Ng=yzt([yn(Vt.Ready,Ng),Wle(0,se(li)),Wle(1,se(Qi))],Ng);var Ezt=Object.defineProperty,Rzt=Object.getOwnPropertyDescriptor,Azt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?Rzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ezt(e,n,i),i},"__decorateClass$3"),e5=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3");const wzt=[w1.id,A1.id,Wl.id,Tu.id],Dzt=[m1.id,g1.id];var JF;let XR=(JF=class extends et{constructor(t,e,n,r,i){super(),xe(this,"disposableCollection",new Gi),this._selectionProtectionRuleModel=t,this._univerInstanceService=e,this._commandService=n,this._refRangeService=r,this._selectionProtectionRenderModel=i,this._onRefRangeChange(),this._correctPermissionRange()}_onRefRangeChange(){const t=oe((n,r)=>{const i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!i||!(i!=null&&i.getSheetBySheetId(r)))return;this.disposableCollection.dispose();const a=oe(o=>this.refRangeHandle(o,n,r),"handler");this._selectionProtectionRuleModel.getSubunitRuleList(n,r).reduce((o,s)=>[...o,...s.ranges],[]).forEach(o=>{this.disposableCollection.add(this._refRangeService.registerRefRange(o,a,n,r))})},"registerRefRange");this.disposeWithMe(this._commandService.onCommandExecuted(n=>{if(n.id===l9.id){const r=n.params,i=r.subUnitId,a=r.unitId;if(!i||!a)return;t(a,i)}if(n.id===ls.id||n.id===fh.id){const r=n.params,i=r.subUnitId,a=r.unitId;if(!i||!a)return;t(a,i)}}));const e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(e){const n=e.getActiveSheet();if(!n)return;t(e.getUnitId(),n.getSheetId())}}refRangeHandle(t,e,n){switch(t.id){case r3.id:return this._getRefRangeMutationsByMoveRows(t.params,e,n);case i3.id:return this._getRefRangeMutationsByMoveCols(t.params,e,n);case If.id:return this._getRefRangeMutationsByInsertRows(t.params,e,n);case Pf.id:return this._getRefRangeMutationsByInsertCols(t.params,e,n);case H0.id:return this._getRefRangeMutationsByDeleteCols(t.params,e,n);case U0.id:return this._getRefRangeMutationsByDeleteRows(t.params,e,n)}return{redos:[],undos:[]}}_getRefRangeMutationsByDeleteCols(t,e,n){const r=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(a=>a.ranges.some(o=>ft.intersects(o,t.range))),i=t.range;if(r.length){const a=[],o=[];return r.forEach(s=>{const l=Ie.deepClone(s),u=l.ranges.reduce((c,d)=>{if(ft.intersects(d,i)){const h=Ie.deepClone(d),{startColumn:f,endColumn:m}=i;if(f<=h.startColumn&&m>=h.endColumn)return c;f>=h.startColumn&&m<=h.endColumn?h.endColumn-=m-f+1:f<h.startColumn?(h.startColumn=f,h.endColumn-=m-f+1):m>h.endColumn&&(h.endColumn=f-1),this._checkIsRightRange(h)&&c.push(h)}return c},[]);l.ranges=u,l.ranges.length?(a.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:l,ruleId:s.id}}),o.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:s,ruleId:s.id}})):(a.push({id:kf.id,params:{unitId:e,subUnitId:n,ruleIds:[s.id]}}),o.push({id:fh.id,params:{unitId:e,subUnitId:n,name:"",rules:[s]}}))}),{redos:a,undos:o}}return{undos:[],redos:[]}}_getRefRangeMutationsByDeleteRows(t,e,n){const r=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(a=>a.ranges.some(o=>ft.intersects(o,t.range))),i=t.range;if(r.length){const a=[],o=[];return r.forEach(s=>{const l=Ie.deepClone(s),u=l.ranges.reduce((c,d)=>{if(ft.intersects(d,i)){const h=Ie.deepClone(d),{startRow:f,endRow:m}=i;if(f<=h.startRow&&m>=h.endRow)return c;f>=h.startRow&&m<=h.endRow?h.endRow-=m-f+1:f<h.startRow?(h.startRow=f,h.endRow-=m-f+1):m>h.endRow&&(h.endRow=f-1),this._checkIsRightRange(h)&&c.push(h)}return c},[]);l.ranges=u,a.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:l,ruleId:s.id}}),o.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:s,ruleId:s.id}})}),{redos:a,undos:o}}return{undos:[],redos:[]}}_getRefRangeMutationsByInsertCols(t,e,n){const r=t.range.startColumn,i=t.range.endColumn-t.range.startColumn+1,a=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(o=>o.ranges.some(s=>r>s.startColumn&&r<=s.endColumn));if(a.length){const o=[],s=[];return a.forEach(l=>{const u=Ie.deepClone(l);let c=!1;u.ranges.forEach(d=>{r>d.startColumn&&r<=d.endColumn&&(d.endColumn+=i,c=!0)}),c&&(o.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:u,ruleId:l.id}}),s.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:l,ruleId:l.id}}))}),{redos:o,undos:s}}return{undos:[],redos:[]}}_getRefRangeMutationsByInsertRows(t,e,n){const r=t.range.startRow,i=t.range.endRow-t.range.startRow+1,a=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(o=>o.ranges.some(s=>r>s.startRow&&r<=s.endRow));if(a.length){const o=[],s=[];return a.forEach(l=>{const u=Ie.deepClone(l);let c=!1;u.ranges.forEach(d=>{r>d.startRow&&r<=d.endRow&&(d.endRow+=i,c=!0)}),c&&(o.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:u,ruleId:l.id}}),s.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:l,ruleId:l.id}}))}),{redos:o,undos:s}}return{undos:[],redos:[]}}_getRefRangeMutationsByMoveRows(t,e,n){const r=t.toRange,i=r.startRow,a=r.endRow-r.startRow+1,o=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(s=>s.ranges.some(l=>i>l.startRow&&i<=l.endRow));if(o.length){const s=[],l=[];return o.forEach(u=>{const c=Ie.deepClone(u),d=t.fromRange.startRow;let h=!1;c.ranges.forEach(f=>{i>f.startRow&&i<=f.endRow&&(d<f.startRow&&(f.startRow=f.startRow-a,f.endRow=f.endRow-a),f.endRow+=a,h=!0)}),h&&(s.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:c,ruleId:u.id}}),l.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:u,ruleId:u.id}}))}),{redos:s,undos:l}}return{undos:[],redos:[]}}_getRefRangeMutationsByMoveCols(t,e,n){const r=t.toRange,i=r.startColumn,a=r.endColumn-r.startColumn+1,o=this._selectionProtectionRuleModel.getSubunitRuleList(e,n).filter(s=>s.ranges.some(l=>i>l.startColumn&&i<=l.endColumn));if(o.length){const s=[],l=[];return o.forEach(u=>{const c=Ie.deepClone(u),d=t.fromRange.startColumn;let h=!1;c.ranges.forEach(f=>{i>f.startColumn&&i<=f.endColumn&&(d<f.startColumn&&(f.startColumn=f.startColumn-a,f.endColumn=f.endColumn-a),f.endColumn+=a,h=!0)}),h&&(s.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:c,ruleId:u.id}}),l.push({id:ls.id,params:{unitId:e,subUnitId:n,rule:u,ruleId:u.id}}))}),{redos:s,undos:l}}return{undos:[],redos:[]}}_correctPermissionRange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(Dzt.includes(t.id)){if(!t.params)return;const e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!e)return;const n=e.getSheetBySheetId(t.params.subUnitId);if(!n)return;const{sourceRange:r,targetRange:i}=t.params,a=r.startColumn===i.startColumn&&r.endColumn===i.endColumn,o=a?r.endRow-r.startRow+1:r.endColumn-r.startColumn+1,s=a?r.startRow:r.startColumn,l=a?i.startRow:i.startColumn;this._selectionProtectionRuleModel.getSubunitRuleList(e.getUnitId(),n.getSheetId()).forEach(h=>{h.ranges.forEach(f=>{let{startRow:m,endRow:g,startColumn:p,endColumn:v}=f;ft.intersects(f,r)||(a?s<m&&l>g?(m-=o,g-=o):s>g&&l<=m&&(m+=o,g+=o):s<p&&l>v?(p-=o,v-=o):s>v&&l<=p&&(p+=o,v+=o)),this._checkIsRightRange({startRow:m,endRow:g,startColumn:p,endColumn:v})&&(f.startColumn=p,f.endColumn=v,f.startRow=m,f.endRow=g)})}),this.disposableCollection.dispose();const{unitId:u,subUnitId:c}=t.params,d=oe(h=>this.refRangeHandle(h,u,c),"handler");this._selectionProtectionRuleModel.getSubunitRuleList(u,c).reduce((h,f)=>[...h,...f.ranges],[]).forEach(h=>{this.disposableCollection.add(this._refRangeService.registerRefRange(h,d,u,c))}),this._selectionProtectionRenderModel.clear()}if(wzt.includes(t.id)){const e=this._univerInstanceService.getUniverSheetInstance(t.params.unitId);if(!e)return;const n=e.getSheetBySheetId(t.params.subUnitId);if(!n)return;const r=t.params;if(!r)return;const{range:i}=r,a=t.id.includes("row"),o=t.id.includes("insert"),s=a?i.startRow:i.startColumn,l=a?i.endRow:i.endColumn,u=l-s+1;this._selectionProtectionRuleModel.getSubunitRuleList(e.getUnitId(),n.getSheetId()).forEach(f=>{f.ranges.forEach(m=>{let{startRow:g,endRow:p,startColumn:v,endColumn:_}=m;o?a?s<=g&&(g+=u,p+=u):s<=v&&(v+=u,_+=u):a?l<g&&(g-=u,p-=u):l<v&&(v-=u,_-=u),this._checkIsRightRange({startRow:g,endRow:p,startColumn:v,endColumn:_})&&(m.startColumn=v,m.endColumn=_,m.startRow=g,m.endRow=p)})}),this.disposableCollection.dispose();const{unitId:c,subUnitId:d}=t.params,h=oe(f=>this.refRangeHandle(f,c,d),"handler");this._selectionProtectionRuleModel.getSubunitRuleList(c,d).reduce((f,m)=>[...f,...m.ranges],[]).forEach(f=>{this.disposableCollection.add(this._refRangeService.registerRefRange(f,h,c,d))}),this._selectionProtectionRenderModel.clear()}}))}_checkIsRightRange(t){return t.startRow<=t.endRow&&t.startColumn<=t.endColumn}},oe(JF,"RangeProtectionRefRangeService"),JF);XR=Azt([yn(Vt.Ready,XR),e5(0,se(li)),e5(1,se(Ce)),e5(2,me),e5(3,se(ff)),e5(4,se(Ng))],XR);var Izt=Object.defineProperty,Pzt=Object.getOwnPropertyDescriptor,Mzt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?Pzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Izt(e,n,i),i},"__decorateClass$2"),eV=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const Tzt="SHEET_RANGE_PROTECTION_PLUGIN";var tV;let rP=(tV=class extends et{constructor(t,e,n){super(),this._selectionProtectionRuleModel=t,this._permissionService=e,this._resourceManagerService=n,this._initSnapshot(),this._initRuleChange()}_initRuleChange(){this.disposeWithMe(this._selectionProtectionRuleModel.ruleChange$.subscribe(t=>{switch(t.type){case"add":{zd().forEach(e=>{const n=new e(t.unitId,t.subUnitId,t.rule.permissionId);this._permissionService.addPermissionPoint(n)});break}case"delete":{zd().forEach(e=>{const n=new e(t.unitId,t.subUnitId,t.rule.permissionId);this._permissionService.deletePermissionPoint(n.id)});break}case"set":{t.oldRule.permissionId!==t.rule.permissionId&&zd().forEach(e=>{const n=new e(t.unitId,t.subUnitId,t.oldRule.permissionId);this._permissionService.deletePermissionPoint(n.id);const r=new e(t.unitId,t.subUnitId,t.rule.permissionId);this._permissionService.addPermissionPoint(r)});break}}}))}_initSnapshot(){const t=oe(n=>{const r=this._selectionProtectionRuleModel.toObject()[n];return r?JSON.stringify(r):""},"toJson"),e=oe(n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({toJson:t,parseJson:e,pluginName:Tzt,businesses:[qI.UNIVER_SHEET],onLoad:oe((n,r)=>{const i=this._selectionProtectionRuleModel.toObject();i[n]=r,this._selectionProtectionRuleModel.fromObject(i);const a=[];Object.keys(r).forEach(o=>{const s=r[o];this._selectionProtectionRuleModel.getSubunitRuleList(n,o).forEach(l=>{a.push({objectID:l.permissionId,unitID:n,objectType:oi.SelectRange,actions:[Xt.View,Xt.Edit]})}),s.forEach(l=>{zd().forEach(u=>{const c=new u(n,o,l.permissionId);c.value=!1,this._permissionService.addPermissionPoint(c)})})})},"onLoad"),onUnLoad:oe(n=>{this._selectionProtectionRuleModel.deleteUnitModel(n)},"onUnLoad")}))}},oe(tV,"RangeProtectionService"),tV);rP=Mzt([eV(0,se(li)),eV(1,se(Qi)),eV(2,se(J0))],rP);var Lzt=Object.defineProperty,xzt=Object.getOwnPropertyDescriptor,Ozt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?xzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Lzt(e,n,i),i},"__decorateClass$1"),Nzt=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),nV;let GR=(nV=class extends et{constructor(t){super(),this._sheetInterceptorService=t,this._initialize()}_initialize(){this._initInterceptorCellContent()}_initInterceptorCellContent(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:11,handler:oe((t,e,n)=>{var r;const i=e.workbook.getStyles().getStyleByCell(t);return(r=i==null?void 0:i.n)!=null&&r.pattern?n({...t}):(t==null?void 0:t.t)===rr.NUMBER&&typeof(t==null?void 0:t.v)=="number"?n({...t,v:JT(t.v)}):n({...t})},"handler")}))}},oe(nV,"NumberCellDisplayController"),nV);GR=Ozt([yn(Vt.Ready,GR),Nzt(0,se(Tr))],GR);const eY=er("univer.exclusive-range-service"),dHe=class extends et{constructor(){super(...arguments),xe(this,"_exclusiveRanges",new Map)}_ensureUnitMap(e){return this._exclusiveRanges.has(e)||this._exclusiveRanges.set(e,new Map),this._exclusiveRanges.get(e)}_ensureSubunitMap(e,n){const r=this._ensureUnitMap(e);return r.has(n)||r.set(n,new Map),r.get(n)}_ensureFeature(e,n,r){const i=this._ensureSubunitMap(e,n);return i.has(r)||i.set(r,[]),i.get(r)}addExclusiveRange(e,n,r,i){this._ensureFeature(e,n,r).push(...i)}getExclusiveRanges(e,n,r){var i,a;return(a=(i=this._exclusiveRanges.get(e))==null?void 0:i.get(n))==null?void 0:a.get(r)}clearExclusiveRanges(e,n,r){this._ensureFeature(e,n,r),this._exclusiveRanges.get(e).get(n).set(r,[])}clearExclusiveRangesByGroupId(e,n,r,i){const a=this.getExclusiveRanges(e,n,r);if(a){const o=a.filter(s=>s.groupId!==i);this._exclusiveRanges.get(e).get(n).set(r,o)}}getInterestGroupId(e){const n=[];return e.forEach(r=>{var i;const a=r.range,{unitId:o,sheetId:s}=a;if(!o||!s)return;const l=(i=this._exclusiveRanges.get(o))==null?void 0:i.get(s);if(l)for(const u of l.keys()){const c=l.get(u);if(c){for(const d of c)if(ft.intersects(a,d.range)){n.push(u);break}}}}),n}};oe(dHe,"ExclusiveRangeService");let kzt=dHe;const Fzt="sheets.config",Vzt={};var hHe=Object.defineProperty,Bzt=Object.getOwnPropertyDescriptor,Uzt=oe((t,e,n)=>e in t?hHe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),Hzt=oe((t,e,n,r)=>{for(var i=r>1?void 0:r?Bzt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&hHe(e,n,i),i},"__decorateClass"),zle=oe((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),fHe=oe((t,e,n)=>Uzt(t,typeof e!="symbol"?e+"":e,n),"__publicField");const jzt="SHEET_PLUGIN";var rV;let Ff=(rV=class extends Cs{constructor(t=Vzt,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(Fzt,r),this._initConfig(),this._initDependencies(e)}onRendered(){}_initConfig(){var t;(t=this._config)!=null&&t.onlyRegisterFormulaRelatedMutations&&this._configService.setConfig(iHe,!0)}_initDependencies(t){var e,n;const r=[[Mf],[Bt],[ff],[qR],[Tc,{useClass:Jq}],[Tr],[WR],[U8],[GR],[YR],[$R],[ga],[_0],[Ng],[li],[XR],[rP],[eY,{useClass:kzt,deps:[Bt]}]];(e=this._config)!=null&&e.notExecuteFormula||r.push([zR]),Mp(r,(n=this._config)==null?void 0:n.override).forEach(i=>{t.add(i)}),this._injector.get(Tr),this._injector.get(rP),this._injector.get(eY)}},oe(rV,"UniverSheetsPlugin"),rV);fHe(Ff,"pluginName",jzt);fHe(Ff,"type",le.UNIVER_SHEET);Ff=Hzt([yd(x_),zle(1,se(Wn)),zle(2,Za)],Ff);const Nne=[hc.id,fc.id,Nf.id,Xs.id,Ha.id,m1.id,g1.id,Tf.id,Lf.id,Of.id,xf.id,w1.id,A1.id,Wl.id,Tu.id],$zt=[Mn.id,$l.id,Di.id,yi.id,u7.id],iP=1.5,Wy="rgba(255, 255, 255, 0.01)";function mf(t){const e=t.getCurrentTheme(),n=new Zs(e.primaryColor).setAlpha(.07).toRgbString();return{strokeWidth:1,stroke:e.primaryColor,fill:n,widgets:{},widgetSize:6,widgetStrokeWidth:1,widgetStroke:e.colorWhite,hasAutoFill:!0,AutofillSize:6,AutofillStrokeWidth:1,AutofillStroke:e.colorWhite,hasRowHeader:!0,rowHeaderFill:n,rowHeaderStroke:e.primaryColor,rowHeaderStrokeWidth:1,hasColumnHeader:!0,columnHeaderFill:n,columnHeaderStroke:e.primaryColor,columnHeaderStrokeWidth:1,expandCornerSize:40}}oe(mf,"getNormalSelectionStyle");function kg(t){const{rangeWithCoord:e,primaryWithCoord:n,style:r}=t,i={range:{startRow:e.startRow,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn,rangeType:e.rangeType,unitId:e.unitId,sheetId:e.sheetId},primary:null,style:r};return n!=null&&(i.primary=mHe(n)),i}oe(kg,"convertSelectionDataToRange");function mHe(t){const{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i}=t,{startRow:a,startColumn:o,endRow:s,endColumn:l}=t.mergeInfo;return{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i,startRow:a,startColumn:o,endRow:s,endColumn:l}}oe(mHe,"convertPrimaryWithCoordToPrimary");function gHe(t,e,n){const r=XP(t,e,n),i=P1e(r);if(i)return{range:i,primary:r,style:null}}oe(gHe,"transformCellDataToSelectionData");const Wzt=oe((t,e,n)=>{const r=t.get(Bt).getCurrentSelections(),{value:i,selections:a,unitId:o,subUnitId:s}=e;if(r){const l=r[(r==null?void 0:r.length)-1].primary;if(l){const{actualColumn:u,actualRow:c}=l;let{startRow:d,startColumn:h,endRow:f,endColumn:m}=a[a.length-1];if(i===ts.COLUMNS){const _=n.find(C=>C.startColumn===u&&C.endColumn===u&&c===C.startRow);_&&(m=_.endColumn,d=_.startRow,f=_.endRow)}else if(i===ts.ROWS){const _=n.find(C=>C.startRow===c&&C.endRow===c&&u===C.startColumn);_&&(f=_.endRow,h=_.startColumn,m=_.endColumn)}const g={startRow:d,startColumn:h,endRow:f,endColumn:m,actualRow:c,actualColumn:u,isMerged:!0,isMergedMainCell:d===c&&h===u},p=r.map((_,C,S)=>({range:_.range,style:null,primary:C===S.length-1?g:null})),v={unitId:o,subUnitId:s,selections:p};return{id:Pr.id,params:v}}return null}return null},"AddMergeRedoSelectionsOperationFactory"),zzt=oe((t,e)=>{const n=t.get(Bt).getCurrentSelections(),{unitId:r,subUnitId:i}=e;if(n&&n[(n==null?void 0:n.length)-1].primary){const a={unitId:r,subUnitId:i,selections:[...n]};return{id:Pr.id,params:a}}return null},"AddMergeUndoSelectionsOperationFactory");function tY(t){return t==null?!1:t.v!==void 0&&t.v!==null&&t.v!==""||t.p!==void 0}oe(tY,"cellHasValue");function db(t,e){return t&&t.spanAnchor?tY(e.getValue(t.spanAnchor.startRow,t.spanAnchor.startColumn)):tY(t)}oe(db,"hasValueFromMatrixWithSpanInfo");function pHe(t,e,n,r,i){const a=t.getCellMatrix(),o=t.getSpanModel().getMergedCellRange(e,n,r,i),s=new Ct;return a.forValue((l,u)=>{const c=a.getValue(l,u);c&&s.setValue(l,u,c)}),o.forEach(l=>{const{startColumn:u,startRow:c,endColumn:d,endRow:h}=l;nw(c,h,u,d).forEach((f,m)=>{f===c&&m===u&&s.setValue(f,m,{...a.getValue(f,m),spanAnchor:{startRow:c,endRow:h,startColumn:u,endColumn:d}}),(f!==c||m!==u)&&(s.realDeleteValue(f,m),s.setValue(f,m,{spanAnchor:{startRow:c,endRow:h,startColumn:u,endColumn:d}}))})}),s}oe(pHe,"getMatrixWithSpanInfo");function vHe(t,e,n,r){const{startRow:i,startColumn:a,endRow:o}=t;let s=null,l=!1;for(let u=i;u<=o;u++){const c=e.getValue(u,a-n);if(l=l||db(c,e),!r&&l)break;c&&c.spanAnchor&&(s?s={startRow:Math.min(c.spanAnchor.startRow,s.startRow),startColumn:Math.min(c.spanAnchor.startColumn,s.startColumn),endRow:Math.max(c.spanAnchor.endRow,s.endRow),endColumn:Math.max(c.spanAnchor.endColumn,s.endColumn)}:s={startRow:c.spanAnchor.startRow,startColumn:c.spanAnchor.startColumn,endRow:c.spanAnchor.endRow,endColumn:c.spanAnchor.endColumn})}return l?(t.startColumn=t.startColumn-n,{spanAnchor:s,hasValue:!0,range:t}):{spanAnchor:null,hasValue:!1,range:t}}oe(vHe,"getExpandedRangeLeft");function _He(t,e,n,r){const{startRow:i,endColumn:a,endRow:o}=t;let s=null,l=!1;for(let u=i;u<=o;u++){const c=e.getValue(u,a+n);if(l=l||db(c,e),!r&&l)break;c&&c.spanAnchor&&(s?s={startRow:Math.min(c.spanAnchor.startRow,s.startRow),startColumn:Math.min(c.spanAnchor.startColumn,s.startColumn),endRow:Math.max(c.spanAnchor.endRow,s.endRow),endColumn:Math.max(c.spanAnchor.endColumn,s.endColumn)}:s={startRow:c.spanAnchor.startRow,startColumn:c.spanAnchor.startColumn,endRow:c.spanAnchor.endRow,endColumn:c.spanAnchor.endColumn})}return l?(t.endColumn=t.endColumn+n,{spanAnchor:s,hasValue:!0,range:t}):{spanAnchor:null,hasValue:!1,range:t}}oe(_He,"getExpandedRangeRight");function CHe(t,e,n,r){const{startRow:i,startColumn:a,endColumn:o}=t;let s=null,l=!1;for(let u=a;u<=o;u++){const c=e.getValue(i-n,u);if(l=l||db(c,e),!r&&l)break;c&&c.spanAnchor&&(s?s={startRow:Math.min(c.spanAnchor.startRow,s.startRow),startColumn:Math.min(c.spanAnchor.startColumn,s.startColumn),endRow:Math.max(c.spanAnchor.endRow,s.endRow),endColumn:Math.max(c.spanAnchor.endColumn,s.endColumn)}:s={startRow:c.spanAnchor.startRow,startColumn:c.spanAnchor.startColumn,endRow:c.spanAnchor.endRow,endColumn:c.spanAnchor.endColumn})}return l?(t.startRow=t.startRow-n,{spanAnchor:s,hasValue:!0,range:t}):{spanAnchor:null,hasValue:!1,range:t}}oe(CHe,"getExpandedRangeUp");function SHe(t,e,n,r){const{startColumn:i,endColumn:a,endRow:o}=t;let s=null,l=!1;for(let u=i;u<=a;u++){const c=e.getValue(o+n,u);if(l=l||db(c,e),!r&&l)break;c&&c.spanAnchor&&(s?s={startRow:Math.min(c.spanAnchor.startRow,s.startRow),startColumn:Math.min(c.spanAnchor.startColumn,s.startColumn),endRow:Math.max(c.spanAnchor.endRow,s.endRow),endColumn:Math.max(c.spanAnchor.endColumn,s.endColumn)}:s={startRow:c.spanAnchor.startRow,startColumn:c.spanAnchor.startColumn,endRow:c.spanAnchor.endRow,endColumn:c.spanAnchor.endColumn})}return l?(t.endRow=t.endRow+n,{spanAnchor:s,hasValue:!0,range:t}):{spanAnchor:null,hasValue:!1,range:t}}oe(SHe,"getExpandedRangeDown");function bHe(t,e,n){const r=n.getMaxRows(),i=n.getMaxColumns(),a=pHe(n,0,0,r-1,i-1),o=n.getSnapshot().mergeData.length>0,{left:s,right:l,up:u,down:c}=e;let d=!0,h={...t};const f=[];for(;d;){if(d=!1,u&&h.startRow!==0){const{hasValue:m,range:g,spanAnchor:p}=CHe(h,a,1,o);if(p&&f.push(p),m){h=g,d=!0;continue}}if(c&&h.endRow!==r-1){const{hasValue:m,range:g,spanAnchor:p}=SHe(h,a,1,o);if(p&&f.push(p),m){h=g,d=!0;continue}}if(s&&h.startColumn!==0){const{hasValue:m,range:g,spanAnchor:p}=vHe(h,a,1,o);if(p&&f.push(p),m){h=g,d=!0;continue}}if(l&&h.endColumn!==i-1){const{hasValue:m,range:g,spanAnchor:p}=_He(h,a,1,o);if(p&&f.push(p),m){h=g,d=!0;continue}}}return f.length>0&&(h=ft.union(h,...f)),h}oe(bHe,"expandToContinuousRange");const qzt=oe((t,e,n,r)=>{const i=t.get(Qi),a=t.get(li),o=i.getPermissionPoint(new on(e).id);if(!(o!=null&&o.value))return!1;const s=i.getPermissionPoint(new Tn(e,n).id);if(!(s!=null&&s.value))return!1;const l=a.getSubunitRuleList(e,n).filter(u=>u.ranges.some(c=>r.some(d=>ft.intersects(c,d))));return l.length?l.every(u=>{const c=u.permissionId,d=i.getPermissionPoint(new Bn(e,n,c).id);return!!(d!=null&&d.value)}):!0},"checkRangesEditablePermission");function Yzt(t,e){return e.some(n=>yHe(t,n))}oe(Yzt,"checkCellContentInRanges");function yHe(t,e){const{startRow:n,startColumn:r,endColumn:i,endRow:a}=e,o=t.getMatrixWithMergedCells(n,r,a,i);let s=!1;return o.forValue((l,u,c)=>{if(c&&(l!==n||u!==r)&&t.cellHasValue(c))return s=!0,!1}),s}oe(yHe,"checkCellContentInRange");function Xzt(t,e,n,r){const i=[],a=[],o=n.getSheetId();return r.forEach(s=>{const l=EHe(n,s),u={unitId:e,subUnitId:o,cellValue:l.getData()},c=No(t,u);i.push({id:Mn.id,params:c}),a.push({id:Mn.id,params:u})}),{undos:i,redos:a}}oe(Xzt,"getClearContentMutationParamsForRanges");function EHe(t,e){const{startRow:n,startColumn:r,endColumn:i,endRow:a}=e,o=t.getMatrixWithMergedCells(n,r,a,i,!0),s=new Ct;return o.forValue((l,u,c)=>{c&&(l!==n||u!==r)&&s.setValue(l,u,null)}),s}oe(EHe,"getClearContentMutationParamForRange");const RHe={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge"},Gzt={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-all"},Qzt={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-vertical"},Kzt={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-horizontal"};async function Zzt(t,e,n,r){const i=t.get(Ce),a=Dn(i,{unitId:e,subUnitId:n});if(!a)return;const{worksheet:o}=a;if(o.getMergeData().some(s=>r.some(l=>ft.intersects(l,s))))throw new Error("The ranges to be merged overlap with the existing merged cells");await t.get(me).executeCommand(RHe.id,{unitId:e,subUnitId:n,selections:r})}oe(Zzt,"addMergeCellsUtil");Se.MUTATION;Se.COMMAND;Se.MUTATION;Se.COMMAND;const Jzt=er("telemetry.service");var AHe=Object.defineProperty,eqt=(t,e,n)=>e in t?AHe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e)=>AHe(t,"name",{value:e,configurable:!0}),fe=(t,e,n)=>eqt(t,typeof e!="symbol"?e+"":e,n);function _x(t,e){if(t==null)return;const n=e.getRenderById(t);if(n==null)return;const{mainComponent:r,scene:i,engine:a,components:o}=n,s=r,l=o.get(G1.BACKGROUND);return{document:s,docBackground:l,scene:i,engine:a}}N(_x,"getEditorObject");var tqt=Object.defineProperty,nqt=Object.getOwnPropertyDescriptor,rqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?nqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&tqt(e,n,i),i},"__decorateClass$T"),iqt=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$S"),iV;let Gr=(iV=class extends et{constructor(t,e){super(),fe(this,"_currentSkeletonSearchParam",{sheetId:""}),fe(this,"_sheetSkeletonParam",[]),fe(this,"_currentSkeleton$",new Pn(null)),fe(this,"currentSkeleton$",this._currentSkeleton$.asObservable()),fe(this,"_currentSkeletonBefore$",new Pn(null)),fe(this,"currentSkeletonBefore$",this._currentSkeletonBefore$.asObservable()),this._context=t,this._injector=e,this.disposeWithMe(()=>{this._currentSkeletonBefore$.complete(),this._currentSkeleton$.complete(),this._sheetSkeletonParam=[]}),this._initRemoveSheet()}_initRemoveSheet(){this.disposeWithMe(this._context.unit.sheetDisposed$.subscribe(t=>{this.disposeSkeleton({sheetId:t.getSheetId()})}))}getCurrentSkeleton(){var t;return(t=this.getCurrent())==null?void 0:t.skeleton}getCurrent(){return this._getSkeleton(this._currentSkeletonSearchParam)}getWorksheetSkeleton(t){return this._getSkeleton({sheetId:t})}getUnitSkeleton(t,e){const n=this._getSkeleton({sheetId:e});return n!=null&&(n.unitId=t),n}setCurrent(t){this._setCurrent(t)}_setCurrent(t){const e=this._getSkeleton(t);if(e!=null)this._reCalculate(e);else{const{sheetId:a}=t,o=this._context.unit.getSheetBySheetId(t.sheetId);if(o==null)return;const s=this._buildSkeleton(o);this._sheetSkeletonParam.push({sheetId:a,skeleton:s,dirty:!1})}this._currentSkeletonSearchParam=t;const n=this._context.unitId,r=this._currentSkeletonSearchParam.sheetId,i=this.getUnitSkeleton(n,r);this._currentSkeletonBefore$.next(i),this._currentSkeleton$.next(i)}reCalculate(){const t=this.getCurrent();t!=null&&this._reCalculate(t)}_reCalculate(t){t.dirty&&(t.skeleton.makeDirty(!0),t.dirty=!1),t.skeleton.calculate()}makeDirty(t,e=!0){const n=this._getSkeleton(t);n!=null&&(n.dirty=e)}getOrCreateSkeleton(t){const e=this._getSkeleton(t);if(e)return e.skeleton;const n=this._context.unit.getSheetBySheetId(t.sheetId);if(!n)return;const r=this._buildSkeleton(n);return this._sheetSkeletonParam.push({sheetId:t.sheetId,skeleton:r,dirty:!1}),r}disposeSkeleton(t){const e=this._sheetSkeletonParam.findIndex(n=>n.sheetId===t.sheetId);e>-1&&(this._sheetSkeletonParam[e].skeleton.dispose(),this._sheetSkeletonParam.splice(e,1))}attachRangeWithCoord(t){const e=this.getCurrentSkeleton();return e?kne(e,t):null}_getSkeleton(t){const e=this._sheetSkeletonParam.find(n=>n.sheetId===t.sheetId);return e!=null&&(e.commandId=t.commandId),e}_buildSkeleton(t){const e=t.getConfig();return this._injector.createInstance(fz,t,e,t.getCellMatrix(),this._context.unit.getStyles())}},N(iV,"SheetSkeletonManagerService"),iV);Gr=rqt([iqt(1,se(Wn))],Gr);function kne(t,e){const{startRow:n,startColumn:r,endRow:i,endColumn:a,rangeType:o}=e,s=i<n?i:n,l=i<n?n:i,u=a<r?a:r,c=a<r?r:a,d=t.getNoMergeCellPositionByIndex(s,u),h=t.getNoMergeCellPositionByIndex(l,c);return{startRow:n,startColumn:r,endRow:i,endColumn:a,rangeType:o,startY:(d==null?void 0:d.startY)||0,endY:(h==null?void 0:h.endY)||0,startX:(d==null?void 0:d.startX)||0,endX:(h==null?void 0:h.endX)||0}}N(kne,"attachRangeWithCoord");var aqt=Object.defineProperty,oqt=Object.getOwnPropertyDescriptor,sqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?oqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&aqt(e,n,i),i},"__decorateClass$S"),lqt=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$R"),aV;let zl=(aV=class{constructor(t,e){fe(this,"_scrollStateMap",new Map),fe(this,"_rawscrollInfo$",new Pn(null)),fe(this,"rawScrollInfo$",this._rawscrollInfo$.asObservable()),fe(this,"validViewportScrollInfo$",new Pn(null)),fe(this,"_searchParamForScroll",null),this._context=t,this._sheetSkeletonManagerService=e}dispose(){this._rawscrollInfo$.complete()}setSearchParam(t){this._searchParamForScroll=t}setSearchParamAndRefresh(t){this._searchParamForScroll=t,this._scrollStateNext(t)}getScrollStateByParam(t){return this._getCurrentScroll(t)}getCurrentScrollState(){return this._getCurrentScroll(this._searchParamForScroll)}setScrollInfoAndEmitEvent(t){this._setScrollState(t),this._scrollStateNext(t)}setScrollStateToCurrSheetAndEmitEvent(t){this._searchParamForScroll!=null&&(this._setScrollState({...this._searchParamForScroll,...t}),this._scrollStateNext(this._searchParamForScroll))}setScrollStateToCurrSheet(t){this._searchParamForScroll!=null&&this._setScrollState({...this._searchParamForScroll,...t})}clear(){this._searchParamForScroll!=null&&this._clearByParamAndNotify(this._searchParamForScroll)}calcViewportScrollFromRowColOffset(t){if(!t)return{viewportScrollX:0,viewportScrollY:0};let{sheetViewStartColumn:e,sheetViewStartRow:n,offsetX:r,offsetY:i}=t;n=n||0,i=i||0;const a=this._sheetSkeletonManagerService.getCurrentSkeleton(),o=(a==null?void 0:a.rowHeightAccumulation[n-1])||0,s=((a==null?void 0:a.columnWidthAccumulation[e-1])||0)+r,l=o+i;return{viewportScrollX:s,viewportScrollY:l}}_setScrollState(t){const{unitId:e,sheetId:n,sheetViewStartColumn:r,sheetViewStartRow:i,offsetX:a,offsetY:o}=t;this._scrollStateMap.has(e)||this._scrollStateMap.set(e,new Map);const s=this._scrollStateMap.get(e),l={sheetViewStartRow:i,sheetViewStartColumn:r,offsetX:a,offsetY:o};s.set(n,l)}_clearByParamAndNotify(t){this._setScrollState({...t,sheetViewStartRow:0,sheetViewStartColumn:0,offsetX:0,offsetY:0}),this._scrollStateNext(t)}_getCurrentScroll(t){var e;if(t==null)return;const{unitId:n,sheetId:r}=t;return(e=this._scrollStateMap.get(n))==null?void 0:e.get(r)}_scrollStateNext(t){const e=this._getCurrentScroll(t);this._rawscrollInfo$.next(e)}},N(aV,"SheetScrollManagerService"),aV);zl=sqt([lqt(1,se(Gr))],zl);const yp={id:"sheet.operation.set-scroll",type:Se.OPERATION,handler:N((t,e)=>{if(!e)return!1;const{unitId:n,sheetId:r,offsetX:i,offsetY:a,sheetViewStartColumn:o,sheetViewStartRow:s}=e,l=t.get(Ce),u=t.get(Sr),c=l.getUniverSheetInstance(n).getSheetBySheetId(r),d=u.getRenderById(n).with(zl),{xSplit:h,ySplit:f}=c.getConfig().freeze;return d.setScrollInfoAndEmitEvent({unitId:n,sheetId:r,offsetX:i,offsetY:a,sheetViewStartRow:s-f,sheetViewStartColumn:o-h}),!0},"handler")},Fg={id:"sheet.command.set-scroll-relative",type:Se.COMMAND,handler:N(async(t,e)=>{const n=t.get(me),r=t.get(Ce),i=t.get(Sr),a=Dn(r);if(!a)return!1;const{unitId:o,subUnitId:s,worksheet:l}=a,{xSplit:u,ySplit:c}=l.getConfig().freeze,d=i.getRenderById(o).with(zl).getCurrentScrollState(),{offsetX:h=0,offsetY:f=0}=e||{},{sheetViewStartRow:m=0,sheetViewStartColumn:g=0,offsetX:p=0,offsetY:v=0}=d||{};return n.executeCommand(yp.id,{unitId:o,sheetId:s,sheetViewStartRow:m+c,sheetViewStartColumn:g+u,offsetX:p+h,offsetY:v+f})},"handler")},gf={id:"sheet.command.scroll-view",type:Se.COMMAND,handler:N((t,e)=>{if(!e)return!1;const n=t.get(Ce),r=t.get(Sr),i=Dn(n);if(!i)return!1;const{workbook:a,worksheet:o,unitId:s}=i,l=r.getRenderById(s).with(zl).getCurrentScrollState();if(!o)return!1;const{sheetViewStartRow:u,sheetViewStartColumn:c,offsetX:d,offsetY:h}=e,{sheetViewStartColumn:f,sheetViewStartRow:m,offsetX:g,offsetY:p}=l||{},{xSplit:v,ySplit:_}=o.getConfig().freeze;return t.get(me).syncExecuteCommand(yp.id,{unitId:a.getUnitId(),sheetId:o.getSheetId(),sheetViewStartRow:u??(m??0)+_,sheetViewStartColumn:c??(f??0)+v,offsetX:d??g,offsetY:h??p})},"handler")},wHe={id:"sheet.command.scroll-to-cell",type:Se.COMMAND,handler:N((t,e)=>{const n=t.get(Ce);return t.get(Sr).getRenderById(n.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()).with(X_).scrollToRange(e.range)},"handler")};Se.COMMAND;var uqt=Object.defineProperty,cqt=Object.getOwnPropertyDescriptor,dqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?cqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&uqt(e,n,i),i},"__decorateClass$R"),qle=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$Q"),oV;let h7=(oV=class{constructor(t,e){fe(this,"_current",null),fe(this,"_shortcutParam",[]),this._univerInstanceService=t,this._localeService=e}dispose(){this._shortcutParam=[]}getCurrentBySearch(t){return this._getCurrentBySearch(t)}getCurrent(){return this._getCurrentBySearch(this._current)}addOrUpdate(t){const e=this._getCurrentBySearch({unitId:t.unitId,sheetId:t.sheetId,keycode:t.keycode});if(e!=null){const n=this._shortcutParam.indexOf(e);this._shortcutParam.splice(n,1)}return this._shortcutParam.push(t),e}remove(t){if(t==null)return;const e=this._getCurrentBySearch(t);if(e==null)return;const n=this._shortcutParam.indexOf(e);return this._shortcutParam.splice(n,1)[0]}_getCurrentBySearch(t){return t==null?void 0:this._shortcutParam.find(e=>e.unitId===t.unitId&&e.sheetId===t.sheetId&&e.keycode===t.keycode)}},N(oV,"ShortcutExperienceService"),oV);h7=dqt([qle(0,Ce),qle(1,se(sn))],h7);const DHe=class extends et{constructor(){super(...arguments),fe(this,"rangesStack",[]),fe(this,"selectedRangeWorksheet","")}};N(DHe,"SelectAllService");let Fne=DHe;var Cx=(t=>(t.MergeAll="mergeAll",t.MergeVertical="mergeVertical",t.MergeHorizontal="mergeHorizontal",t))(Cx||{});function rf(t,e,n,r,i=!0,a=1,o=!0){let s={...t};r==null&&(r={startRow:0,endRow:n.getRowCount()-1,startColumn:0,endColumn:n.getColumnCount()-1});let l;switch(e){case ut.UP:for(l=t.startRow-a;l>-1&&!n.getRowVisible(l);)l-=1;l>=r.startRow?(s.startRow=l,s.endRow=l):o&&(s.startRow=r.endRow,s.endRow=r.endRow,i&&(s=rf(s,ut.LEFT,n,r,!1)));break;case ut.DOWN:for(l=t.endRow+a;l<n.getRowCount()&&!n.getRowVisible(l);)l+=1;l<=r.endRow?(s.startRow=l,s.endRow=l):o&&(s.startRow=r.startRow,s.endRow=r.startRow,i&&(s=rf(s,ut.RIGHT,n,r,!1)));break;case ut.LEFT:for(l=t.startColumn-a;l>-1&&!n.getColVisible(l);)l-=1;l>=r.startColumn?(s.startColumn=l,s.endColumn=l):o&&(s.startColumn=r.endColumn,s.endColumn=r.endColumn,i&&(s=rf(s,ut.UP,n,r,!1)));break;case ut.RIGHT:for(l=t.endColumn+a;l<n.getColumnCount()&&!n.getColVisible(l);)l+=1;l<=r.endColumn?(s.startColumn=l,s.endColumn=l):o&&(s.startColumn=r.startColumn,s.endColumn=r.startColumn,i&&(s=rf(s,ut.DOWN,n,r,!1)));break}return s}N(rf,"findNextRange");function Sx(t,e,n){const r={...t},{startRow:i,startColumn:a,endRow:o,endColumn:s}=f7(t,e,n);let l=s6(n,i,a,o,s).hasValue,u=!0,c=!0;for(;c;){if(ut.UP===e){let d=r.startRow-1;for(;d>-1&&!n.getRowVisible(d);)d-=1;if(d===-1){c=!1;break}const{hasValue:h,matrix:f}=s6(n,d,r.startColumn,d,r.endColumn);if(l&&!h&&!u){c=!1;break}else{if(f.getLength()!==0){let m=d;f.forValue(g=>{m=Math.min(g,m)}),r.startRow=m}else r.startRow=d;if(r.endRow=r.startRow,!l&&h){c=!1;break}l=h,u=!1}}if(ut.DOWN===e){let d=r.endRow+1;for(;d<n.getRowCount()&&!n.getRowVisible(d);)d+=1;if(d===n.getRowCount()){c=!1;break}const{hasValue:h,matrix:f}=s6(n,d,r.startColumn,d,r.endColumn);if(l&&!h&&!u){c=!1;break}else{if(f.getLength()!==0){let m=d;f.forValue((g,p,v)=>{m=Math.max(g+(v.rowSpan||1)-1,m)}),r.endRow=m}else r.endRow=d;if(r.startRow=r.endRow,!l&&h){c=!1;break}l=h,u=!1}}if(ut.LEFT===e){let d=r.startColumn-1;for(;d>-1&&!n.getColVisible(d);)d-=1;if(d===-1){c=!1;break}const{hasValue:h,matrix:f}=s6(n,r.startRow,d,r.endRow,d);if(l&&!h&&!u){c=!1;break}else{if(f.getLength()!==0){let m=d;f.forValue((g,p)=>{m=Math.min(p,m)}),r.startColumn=m}else r.startColumn=d;if(r.endColumn=r.startColumn,!l&&h){c=!1;break}l=h,u=!1}}if(ut.RIGHT===e){let d=r.endColumn+1;for(;d<n.getColumnCount()&&!n.getColVisible(d);)d+=1;if(d===n.getColumnCount()){c=!1;break}const{hasValue:h,matrix:f}=s6(n,r.startRow,d,r.endRow,d);if(l&&!h&&!u){c=!1;break}else{if(f.getLength()!==0){let m=d;f.forValue((g,p,v)=>{m=Math.max(p+(v.colSpan||1)-1,m)}),r.endColumn=m}else r.endColumn=d;if(r.startColumn=r.endColumn,!l&&h){c=!1;break}l=h,u=!1}}}return Cu(r,n,!0)}N(Sx,"findNextGapRange");function Vne(t,e,n){return rf(t,e,n,void 0,!1,1,!1)}N(Vne,"findNextRangeExpand");function IHe(t,e,n){const r=Sx(t,e,n);return Cu(ft.union(r,t),n,!0)}N(IHe,"expandToNextGapRange");function PHe(t,e,n){const r=Vne(t,e,n),i={startRow:Math.min(t.startRow,r.startRow),startColumn:Math.min(t.startColumn,r.startColumn),endRow:Math.max(t.endRow,r.endRow),endColumn:Math.max(t.endColumn,r.endColumn)};return Cu(ft.union(t,i),n)}N(PHe,"expandToNextCell");function MHe(t,e,n,r){const i=kX(n),a=Sx(f7(t,i,r),n,r);return n===ut.UP&&a.startRow<=t.startRow?Cu({...e,startColumn:t.startColumn,endColumn:t.endColumn},r,!0):n===ut.DOWN&&a.endRow>=t.endRow?Cu({...e,startColumn:t.startColumn,endColumn:t.endColumn},r,!0):n===ut.LEFT&&a.startColumn<=t.startColumn?Cu({...e,startRow:t.startRow,endRow:t.endRow},r,!0):n===ut.RIGHT&&a.endColumn>=t.endColumn?Cu({...e,startRow:t.startRow,endRow:t.endRow},r,!0):ft.union(ft.clone(e),a)}N(MHe,"shrinkToNextGapRange");function THe(t,e,n){const r=kX(e),i=f7(t,r,n),a=f7(t,e,n),o=Vne(i,e,n);return Cu(ft.union(a,o),n,!1)}N(THe,"shrinkToNextCell");function nY(t){return{startRow:0,startColumn:0,endRow:t.getRowCount()-1,endColumn:t.getColumnCount()-1,rangeType:it.ALL}}N(nY,"expandToWholeSheet");function f7(t,e,n){let r;switch(e){case ut.UP:r={startRow:t.startRow,startColumn:t.startColumn,endRow:t.startRow,endColumn:t.endColumn,rangeType:it.NORMAL};break;case ut.DOWN:r={startRow:t.endRow,startColumn:t.startColumn,endRow:t.endRow,endColumn:t.endColumn,rangeType:it.NORMAL};break;case ut.LEFT:r={startRow:t.startRow,startColumn:t.startColumn,endRow:t.endRow,endColumn:t.startColumn,rangeType:it.NORMAL};break;case ut.RIGHT:r={startRow:t.startRow,startColumn:t.endColumn,endRow:t.endRow,endColumn:t.endColumn,rangeType:it.NORMAL};break;default:throw new Error("Invalid direction")}return Cu(r,n,!1)}N(f7,"getEdgeOfRange");function s6(t,e,n,r,i){let a=!1;const o=t.getMatrixWithMergedCells(e,n,r,i).forValue((s,l,u)=>{if(xHe(u))return a=!0,!1});return{hasValue:a,matrix:o}}N(s6,"rangeHasValue");function aP(t,e,n){const r=ft.clone(t);if(e==null)return r;switch(n){case ut.UP:case ut.DOWN:r.startColumn=r.endColumn=e.actualColumn;break;case ut.LEFT:case ut.RIGHT:r.startRow=r.endRow=e.actualRow;break}return r}N(aP,"getStartRange");function LHe(t,e,n){const{primary:r,range:i}=t,a=ft.clone(i);switch(e){case ut.UP:case ut.DOWN:a.startRow=r.startRow,a.endRow=r.endRow;break;case ut.LEFT:case ut.RIGHT:a.startColumn=r.startColumn,a.endColumn=r.endColumn;break}const o=f7(a,e,n);switch(e){case ut.DOWN:return i.startRow<o.startRow;case ut.UP:return i.endRow>o.endRow;case ut.LEFT:return o.endColumn<i.endColumn;case ut.RIGHT:return o.startColumn>i.startColumn}}N(LHe,"checkIfShrink");function Bne(t,e){let n=t[0].startRow,r=t[0].endRow;t.forEach(a=>{const{startRow:o,endRow:s}=a;n=Math.min(n,o),r=Math.max(r,s)});const i=new Array(r-n+1).fill(!1);return e.forEach(a=>{const{startRow:o,endRow:s}=a;for(let l=Math.max(o,n);l<=Math.min(s,r);l++)i[l-n]=!0}),t.every(a=>{const{startRow:o,endRow:s}=a;for(let l=o;l<=s;l++)if(!i[l-n])return!1;return!0})}N(Bne,"isAllRowsCovered");function Une(t,e){let n=t[0].startColumn,r=t[0].endColumn;t.forEach(a=>{const{startColumn:o,endColumn:s}=a;n=Math.min(n,o),r=Math.max(r,s)});const i=new Array(r-n+1).fill(!1);return e.forEach(a=>{const{startColumn:o,endColumn:s}=a;for(let l=Math.max(o,n);l<=Math.min(s,r);l++)i[l-n]=!0}),t.every(a=>{const{startColumn:o,endColumn:s}=a;for(let l=o;l<=s;l++)if(!i[l-n])return!1;return!0})}N(Une,"isAllColumnsCovered");function bx(t,e){return e?t==="mergeAll"?e.filter(n=>!(n.startRow===n.endRow&&n.startColumn===n.endColumn)):t==="mergeVertical"?e.filter(n=>n.startRow!==n.endRow):t==="mergeHorizontal"?e.filter(n=>n.startColumn!==n.endColumn):e:null}N(bx,"getMergeableSelectionsByType");function xHe(t){return t.v!==void 0&&t.v!==null&&t.v!==""||t.p!==void 0}N(xHe,"cellHasValue");var Cd=(t=>(t[t.moveStopeOne=0]="moveStopeOne",t[t.moveGap=1]="moveGap",t[t.moveStepPage=2]="moveStepPage",t[t.moveStepEnd=3]="moveStepEnd",t))(Cd||{});const ql={id:"sheet.command.move-selection",type:Se.COMMAND,handler:N(async(t,e)=>{if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{workbook:r,worksheet:i}=n,a=n3(t).getCurrentLastSelection();if(!a)return!1;const{direction:o,jumpOver:s}=e,{range:l,primary:u}=a,c=aP(l,u,o),d=s===1?Sx(c,o,i):rf(c,o,i),h=$_(d.startRow,d.startColumn,i);return ft.equals(h,c)?!1:(t.get(h7).remove({unitId:r.getUnitId(),sheetId:i.getSheetId(),keycode:Et.TAB}),t.get(me).executeCommand(Pr.id,{unitId:r.getUnitId(),subUnitId:i.getSheetId(),selections:[{range:ft.clone(h),primary:{startRow:h.startRow,startColumn:h.startColumn,endRow:h.endRow,endColumn:h.endColumn,actualRow:d.startRow,actualColumn:d.startColumn,isMerged:h.isMerged,isMergedMainCell:h.startRow===d.startRow&&h.startColumn===d.startColumn}}]}))},"handler")},am={id:"sheet.command.move-selection-enter-tab",type:Se.COMMAND,handler:N(async(t,e)=>{if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{workbook:r,worksheet:i}=n,a=n3(t).getCurrentLastSelection();if(!a)return!1;const o=r.getUnitId(),s=i.getSheetId();if(!a)return!1;const{direction:l,keycode:u}=e,{range:c,primary:d}=a;let h=aP(c,d,l);const f=t.get(h7),m=f.getCurrentBySearch({unitId:o,sheetId:s,keycode:Et.TAB});let g;const{startRow:p,endRow:v,startColumn:_,endColumn:C}=c;if(ft.equals(c,d)){if(u===Et.TAB)m==null&&f.addOrUpdate({unitId:o,sheetId:s,keycode:Et.TAB,selection:a});else{const y=m==null?void 0:m.selection;if(y!=null){const{range:A,primary:w}=y;h=aP(A,w,l)}f.remove({unitId:o,sheetId:s,keycode:Et.TAB})}const S=rf(h,l,i),b=$_(S.startRow,S.startColumn,i);if(ft.equals(b,h))return!1;g={range:ft.clone(b),primary:{startRow:b.startRow,startColumn:b.startColumn,endRow:b.endRow,endColumn:b.endColumn,actualRow:S.startRow,actualColumn:S.startColumn,isMerged:b.isMerged,isMergedMainCell:b.startRow===S.startRow&&b.startColumn===S.startColumn}}}else{f.remove({unitId:o,sheetId:s,keycode:Et.TAB});const S=Ie.deepClone(d),b=rf({startRow:S.startRow,startColumn:S.startColumn,endRow:S.endRow,endColumn:S.endColumn},l,i,{startRow:p,endRow:v,startColumn:_,endColumn:C}),y=$_(b.startRow,b.startColumn,i);g={range:ft.clone(c),primary:{startRow:y.startRow,startColumn:y.startColumn,endRow:y.endRow,endColumn:y.endColumn,actualRow:b.startRow,actualColumn:b.startColumn,isMerged:y.isMerged,isMergedMainCell:y.startRow===b.startRow&&y.startColumn===b.startColumn}}}return t.get(me).executeCommand(Pr.id,{unitId:o,subUnitId:s,selections:[g]})},"handler")},Lu={id:"sheet.command.expand-selection",type:Se.COMMAND,handler:N(async(t,e)=>{if(!e)return!1;const n=Dn(t.get(Ce));if(!n)return!1;const{worksheet:r,unitId:i,subUnitId:a}=n,o=n3(t).getCurrentLastSelection();if(!o)return!1;const{range:s,primary:l}=o,{jumpOver:u,direction:c}=e,d=LHe(o,c,r)?u===1?MHe(s,{...ft.clone(l),rangeType:it.NORMAL},c,r):THe(s,c,r):u===1?IHe(s,c,r):PHe(s,c,r);return ft.equals(d,s)?!1:t.get(me).executeCommand(Pr.id,{unitId:i,subUnitId:a,selections:[{range:d,primary:l}]})},"handler")},Hne={id:"sheet.command.select-all",type:Se.COMMAND,handler:N(async(t,e={expandToGapFirst:!0,loop:!1})=>{const n=Dn(t.get(Ce));if(!n)return!1;const r=n3(t).getCurrentLastSelection();if(!r)return!1;const i=t.get(Fne),{worksheet:a,unitId:o,subUnitId:s}=n,l=`${o}|${s}`;l!==i.selectedRangeWorksheet&&(i.rangesStack=[],i.selectedRangeWorksheet=l);const u=a.getMaxRows(),c=a.getMaxColumns(),{expandToGapFirst:d,loop:h}=e,{range:f,primary:m}=r,g=f.endColumn===c-1&&f.endRow===u-1&&f.startRow===0&&f.startColumn===0;i.rangesStack.some(v=>ft.equals(v,f))||(i.rangesStack=[],i.rangesStack.push(f));let p;if(g)if(h){if(i.rangesStack.findIndex(v=>ft.equals(v,f))!==i.rangesStack.length-1)return!1;p=i.rangesStack[0]}else return!1;else d?(p=bHe(f,{left:!0,right:!0,up:!0,down:!0},a),ft.equals(p,f)&&(p=nY(a))):p=nY(a);return i.rangesStack.some(v=>ft.equals(v,p))||i.rangesStack.push(p),t.get(me).executeCommand(Pr.id,{unitId:o,subUnitId:s,selections:[{range:p,primary:m}]})},"handler")},rY=[10,400];var _o=(t=>(t.MAIN="__SpreadsheetRender__",t.ROW="__SpreadsheetRowHeader__",t.COLUMN="__SpreadsheetColumnHeader__",t.LEFT_TOP="__SpreadsheetLeftTopPlaceholder__",t))(_o||{});const Yle=0,oP=1,j0=10,hqt=11,Xle=12;function OHe(t){return typeof t.isMainScene>"u"}N(OHe,"isRenderManagerService");function Ad(t,e){const n=t instanceof b4?t:t.getCurrentUnitForType(le.UNIVER_SHEET);if(!n)return null;const r=n.getUnitId();let i,a,o,s;if(OHe(e)){const h=e.getRenderById(r);if(h==null)return null;i=h.components,i=h.components,a=h.mainComponent,o=h.scene,s=h.engine}else i=e.components,a=e.mainComponent,o=e.scene,s=e.engine;if(!i||!a)return null;const l=a,u=i.get(_o.ROW),c=i.get(_o.COLUMN),d=i.get(_o.LEFT_TOP);return{spreadsheet:l,spreadsheetRowHeader:u,spreadsheetColumnHeader:c,spreadsheetLeftTopPlaceholder:d,scene:o,engine:s}}N(Ad,"getSheetObject");function iY(t,e,n,r){const{startX:i,startY:a,endX:o,endY:s}=r.getCellByIndex(t,e);return{startX:i,startY:a,endX:o,endY:s}}N(iY,"getCoordByCell");function p1(t,e,n,r,i,a){const o=n.getRelativeToViewportCoord(cn.FromArray([t,e])),{x:s,y:l}=o,u=n.getVpScrollXYInfoByPosToVp(o,i),{scaleX:c,scaleY:d}=n.getAncestorScale(),h=r.getCellPositionByOffset(s,l,c,d,u,a),{row:f,column:m}=h,g=r.getNoMergeCellPositionByIndex(f,m),{startX:p,startY:v,endX:_,endY:C}=g;return{startX:p,startY:v,endX:_,endY:C,row:f,column:m}}N(p1,"getCoordByOffset");function H8(t,e,n,r){const i=n.getRelativeToViewportCoord(cn.FromArray([t,e])),a=n.getViewport(an.VIEW_MAIN),o=n.getVpScrollXYInfoByPosToVp(i,a),{scaleX:s,scaleY:l}=n.getAncestorScale(),{x:u,y:c}=o,d=t/s+u,h=e/l+c;return{x:d,y:h}}N(H8,"getTransformCoord");var fqt=Object.defineProperty,mqt=Object.getOwnPropertyDescriptor,gqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?mqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fqt(e,n,i),i},"__decorateClass$Q"),k3=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$P");const pqt=[ql.id,am.id];var sV;let X_=(sV=class extends et{constructor(t,e,n,r,i,a,o){super(),this._context=t,this._injector=e,this._sheetSkeletonManagerService=n,this._contextService=r,this._commandService=i,this._renderManagerService=a,this._scrollManagerService=o,this._initCommandListener(),this._wheelEventListener(),this._scrollBarEventListener(),this._initSkeletonListener()}scrollToRange(t){let{endRow:e,endColumn:n,startColumn:r,startRow:i}=t;const a=this._getViewportBounding();if(t.rangeType===it.ROW?(r=0,n=0):t.rangeType===it.COLUMN&&(i=0,e=0),a){const o=a.startRow>e?i:e,s=a.startColumn>n?r:n;return this._scrollToCell(o,s)}else return this._scrollToCell(i,r)}_initCommandListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(pqt.includes(t.id))this._scrollToSelection();else if(t.id===hx.id){const e=t.params;this.scrollToRange(e)}else if(t.id===Lu.id){const e=t.params;this._scrollToSelectionForExpand(e)}else t.id===Pr.id&&t.params.reveal&&this._scrollToSelection()}))}_scrollToSelectionForExpand(t){setTimeout(()=>{const e=this._getSelectionsService().getCurrentLastSelection();if(e==null)return;const{startRow:n,startColumn:r,endRow:i,endColumn:a}=e.range,o=this._getViewportBounding();if(o==null)return;const{startRow:s,startColumn:l,endRow:u,endColumn:c}=o;let d=0,h=0;n>s?d=i:i<u?d=n:d=s,r>l?h=a:a<c?h=r:h=l,t.direction===ut.DOWN?d=i:t.direction===ut.UP?d=n:t.direction===ut.RIGHT?h=a:t.direction===ut.LEFT&&(h=r),this._scrollToCell(d,h)},0)}_getFreeze(){var t;const e=(t=this._sheetSkeletonManagerService.getCurrent())==null?void 0:t.skeleton.getWorksheetConfig();if(e!=null)return e.freeze}_wheelEventListener(){const{scene:t}=this._context;if(!t)return;const e=t.getViewport(an.VIEW_MAIN);e&&this.disposeWithMe(t.onMouseWheel$.subscribeEvent((n,r)=>{if(n.ctrlKey||!this._contextService.getContextValue(ms))return;let i=0,a=0;const o=e.limitedScroll();if(n.inputIndex===Kn.MouseWheelX){const s=Math.abs(n.deltaX);i=n.deltaX>0?s:-s,this._commandService.executeCommand(Fg.id,{offsetX:i}),t.getParent().classType===ar.SCENE_VIEWER?o!=null&&o.isLimitedX||r.stopPropagation():e.isWheelPreventDefaultX?n.preventDefault():o!=null&&o.isLimitedX||n.preventDefault()}if(n.inputIndex===Kn.MouseWheelY){let s=Math.abs(n.deltaY);n.shiftKey?(s*=3,n.deltaY>0?i=s:i=-s,this._commandService.executeCommand(Fg.id,{offsetX:i}),t.getParent().classType===ar.SCENE_VIEWER?o!=null&&o.isLimitedX||r.stopPropagation():e.isWheelPreventDefaultX?n.preventDefault():o!=null&&o.isLimitedX||n.preventDefault()):(a=n.deltaY>0?s:-s,this._commandService.executeCommand(Fg.id,{offsetY:a}),t.getParent().classType===ar.SCENE_VIEWER?o!=null&&o.isLimitedY||r.stopPropagation():e.isWheelPreventDefaultY?n.preventDefault():o!=null&&o.isLimitedY||n.preventDefault())}this._context.scene.makeDirty(!0)}))}_scrollBarEventListener(){const{scene:t}=this._context;if(t==null)return;const e=t.getViewport(an.VIEW_MAIN);e&&(this.disposeWithMe($t(this._scrollManagerService.rawScrollInfo$.subscribe(n=>{var r;const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(!i)return;if(n==null){e.scrollToViewportPos({viewportScrollX:0,viewportScrollY:0});return}const{sheetViewStartRow:a,sheetViewStartColumn:o,offsetX:s,offsetY:l}=n,{startX:u,startY:c}=i.getCellByIndexWithNoHeader(a,o),d=u+s,h=c+l;e.scrollToViewportPos({viewportScrollX:d,viewportScrollY:h})}))),this.disposeWithMe(e.onScrollAfter$.subscribeEvent(n=>{var r;const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(i==null||n.isTrigger===!1)return;const a=this._getSheetObject();if(i==null||a==null)return;const{viewportScrollX:o,viewportScrollY:s,scrollX:l,scrollY:u}=n,{row:c,column:d,rowOffset:h,columnOffset:f}=i.getDecomposedOffset(o,s),m={sheetViewStartRow:c,sheetViewStartColumn:d,offsetX:f,offsetY:h};this._scrollManagerService.setScrollStateToCurrSheet(m),this._scrollManagerService.validViewportScrollInfo$.next({...m,viewportScrollX:o,viewportScrollY:s,scrollX:l,scrollY:u})})),this.disposeWithMe(e.onScrollByBar$.subscribeEvent(n=>{var r;const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(i==null||n.isTrigger===!1)return;const a=this._getSheetObject();if(i==null||a==null)return;const{viewportScrollX:o=0,viewportScrollY:s=0}=n,l=this._getFreeze(),{row:u,column:c,rowOffset:d,columnOffset:h}=i.getDecomposedOffset(o,s);this._commandService.executeCommand(gf.id,{sheetViewStartRow:u+((l==null?void 0:l.ySplit)||0),sheetViewStartColumn:c+((l==null?void 0:l.xSplit)||0),offsetX:h,offsetY:d})})))}_initSkeletonListener(){this.disposeWithMe($t(this._sheetSkeletonManagerService.currentSkeletonBefore$.subscribe(t=>{if(t==null)return;const e={unitId:t.unitId,sheetId:t.sheetId};this._scrollManagerService.setSearchParam(e);const n=this._getSheetObject();if(!n)return;const r=n.scene.getViewport(an.VIEW_MAIN),i=this._scrollManagerService.getScrollStateByParam(e),{viewportScrollX:a,viewportScrollY:o}=this._scrollManagerService.calcViewportScrollFromRowColOffset(i);r&&(i?(r.viewportScrollX=a,r.viewportScrollY=o):(r.viewportScrollX=0,r.viewportScrollY=0),this._updateSceneSize(t))})))}_updateSceneSize(t){var e;if(t==null)return;const{unitId:n}=this._context,{skeleton:r}=t,i=(e=this._renderManagerService.getRenderById(n))==null?void 0:e.scene;if(r==null||i==null)return;const{rowTotalHeight:a,columnTotalWidth:o,rowHeaderWidthAndMarginLeft:s,columnHeaderHeightAndMarginTop:l}=r,u=this._context.unit.getActiveSheet();if(!u)return;const c=u.getZoomRatio()||1;i==null||i.setScaleValue(c,c),i==null||i.transformByState({width:s+o,height:l+a})}_getSheetObject(){return Ad(this._context.unit,this._context)}_scrollToSelectionByDirection(t){const e=this._getViewportBounding();if(e==null)return!1;const{startRow:n,startColumn:r,endRow:i,endColumn:a}=e;let o=0,s=0;const{startRow:l,startColumn:u,endRow:c,endColumn:d}=t;l>=n&&(o=c),c<=i&&(o=l),u>=r&&(s=d),d<=a&&(s=u),this._scrollToCell(o,s)}_scrollToSelection(t=!0){const e=this._getSelectionsService().getCurrentLastSelection();if(!e)return;const{startRow:n,startColumn:r,actualRow:i,actualColumn:a}=e.primary,o=t?i:n,s=t?a:r;this._scrollToCell(o,s)}_getSelectionsService(){return n3(this._injector)}_getViewportBounding(){var t,e;const n=(t=this._getSheetObject())==null?void 0:t.scene;if(n==null)return;const r=n.getViewport(an.VIEW_MAIN);if(r==null)return;const i=(e=this._sheetSkeletonManagerService.getCurrent())==null?void 0:e.skeleton;if(i==null)return;const a=r.getBounding();return i.getRowColumnSegment(a)}_scrollToCell(t,e){var n,r,i,a;const{rowHeightAccumulation:o,columnWidthAccumulation:s}=(r=(n=this._sheetSkeletonManagerService.getCurrent())==null?void 0:n.skeleton)!=null?r:{};if(o==null||s==null)return!1;const l=(i=this._getSheetObject())==null?void 0:i.scene;if(l==null)return!1;const u=l.getViewport(an.VIEW_MAIN);if(u==null||((a=this._sheetSkeletonManagerService.getCurrent())==null?void 0:a.skeleton)==null)return!1;const c=this._context.unit.getActiveSheet();if(!c)return!1;const{startColumn:d,startRow:h,ySplit:f,xSplit:m}=c.getFreeze(),g=this._getViewportBounding();if(g==null)return!1;const{startRow:p,startColumn:v,endRow:_,endColumn:C}=g;let S,b;if(t>=h&&e>=d-m&&(t<=p&&(S=t),t>=_)){const w=o[t]-u.height;for(let P=p;P<=t;P++)if(o[P]>=w){S=P+1;break}}if(e>=d&&t>=h-f&&(e<=v&&(b=e),e>=C)){const w=s[e]-u.width;for(let P=v;P<=e;P++)if(s[P]>=w){b=P+1;break}}if(S===void 0&&b===void 0)return!1;const{offsetX:y,offsetY:A}=this._scrollManagerService.getCurrentScrollState()||{};return this._commandService.syncExecuteCommand(gf.id,{sheetViewStartRow:S,sheetViewStartColumn:b,offsetX:b===void 0?y:0,offsetY:S===void 0?A:0})}},N(sV,"SheetsScrollRenderController"),sV);X_=gqt([k3(1,se(Wn)),k3(2,se(Gr)),k3(3,ui),k3(4,me),k3(5,Sr),k3(6,se(zl))],X_);function NHe(t){return t.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(Ei(e=>e?e.activeSheet$.pipe(pr(n=>n?{workbook:e,worksheet:n}:null)):Hr(null)))}N(NHe,"getActiveSheet$");function Pl(t,e,n){return NHe(t).pipe(Ei(r=>r?n(r):Hr(e)))}N(Pl,"deriveStateFromActiveSheet$");function kHe(t,e){const n=t.get(Ce),r=t.get(eY),i=t.get(Bt);return n.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(Ei(a=>a?Sa([i.selectionMoveEnd$,a.activeSheet$]).pipe(Ei(([o,s])=>{if(!s||o.length===0)return Hr(!1);const l=r.getInterestGroupId(o);if(e){const u=l.filter(c=>e.has(c));return Hr(u.length>0)}else return Hr(l.length>0)})):Hr(!1)))}N(kHe,"getCurrentExclusiveRangeInterest$");function d9(t,e,n){return Sa([e,kHe(t,n)]).pipe(pr(([r,i])=>r||i))}N(d9,"getObservableWithExclusiveRange$");function Mr(t,e={}){const n=t.get(Ce).getCurrentTypeOfUnit$(le.UNIVER_SHEET),r=t.get(vs);return Sa([r.currentUser$,n]).pipe(Ei(([i,a])=>a?a.activeSheet$.pipe(Ei(o=>{if(!o)return Hr(!0);const s=t.get(Bt),l=t.get(li),u=t.get(ga),c=t.get(ui).subscribeContextValue$(I7).pipe(Du(!1));return Sa([s.selectionMoveEnd$,c]).pipe(Ei(([d,h])=>{if(h)return Hr(!0);const f=a.getUnitId(),m=o.getSheetId(),g=t.get(Qi),{workbookTypes:p=[on],worksheetTypes:v,rangeTypes:_}=e,C=[];if(p==null||p.forEach(y=>{C.push(new y(f).id)}),v==null||v.forEach(y=>{C.push(new y(f,m).id)}),u.getRule(f,m))return g.composePermission$(C).pipe(pr(y=>y.some(A=>A.value===!1)));const S=d==null?void 0:d.map(y=>y.range),b=l.getSubunitRuleList(f,m).filter(y=>S==null?void 0:S.some(A=>y.ranges.some(w=>ft.intersects(A,w))));return _==null||_.forEach(y=>{b.forEach(A=>{C.push(new y(f,m,A.permissionId).id)})}),g.composePermission$(C).pipe(pr(y=>y.some(A=>A.value===!1)))}))})):Hr(!0)))}N(Mr,"getCurrentRangeDisable$");function hb(t){const e=t.get(Ce),n=t.get(Bt),r=t.get(li),i=t.get(Qi);return Qa(n.selectionMoveEnd$,i.permissionPointUpdate$).pipe(pr(()=>{var a;const o=(a=n.getCurrentLastSelection())==null?void 0:a.range;if(!o)return!0;const s=e.getCurrentUnitForType(le.UNIVER_SHEET),l=s==null?void 0:s.getActiveSheet();if(!s||!l)return!0;const u=s.getUnitId(),c=l.getSheetId(),d=[new on(u).id,new Tn(u,c).id];return r.getSubunitRuleList(u,c).filter(h=>h.ranges.some(f=>ft.intersects(o,f))).forEach(h=>{d.push(new Bn(u,c,h.permissionId).id)}),i.composePermission(d).some(h=>h.value===!1)}))}N(hb,"getBaseRangeMenuHidden$");function jne(t,e){const n=t.get(Ce),r=t.get(Bt),i=t.get(li),a=t.get(Qi);return Qa(r.selectionMoveEnd$,a.permissionPointUpdate$).pipe(pr(()=>{var o;const s=(o=r.getCurrentLastSelection())==null?void 0:o.range;if(!s)return!0;const l=n.getCurrentUnitForType(le.UNIVER_SHEET),u=l==null?void 0:l.getActiveSheet();if(!l||!u)return!0;const c=l.getUnitId(),d=u.getSheetId(),h=[new on(c).id,new Tn(c,d).id];return i.getSubunitRuleList(c,d).filter(f=>e==="row"?f.ranges.some(m=>s.endRow>m.startRow&&s.endRow<=m.endRow):f.ranges.some(m=>s.endColumn>m.startColumn&&s.endColumn<=m.endColumn)).forEach(f=>{h.push(new Bn(c,d,f.permissionId).id)}),a.composePermission(h).some(f=>f.value===!1)}))}N(jne,"getInsertAfterMenuHidden$");function $ne(t,e){const n=t.get(Ce),r=t.get(Bt),i=t.get(li),a=t.get(Qi);return Qa(r.selectionMoveEnd$,a.permissionPointUpdate$).pipe(pr(()=>{var o;const s=(o=r.getCurrentLastSelection())==null?void 0:o.range;if(!s)return!0;const l=n.getCurrentUnitForType(le.UNIVER_SHEET),u=l==null?void 0:l.getActiveSheet();if(!l||!u)return!0;const c=l.getUnitId(),d=u.getSheetId(),h=[new on(c).id,new Tn(c,d).id];return i.getSubunitRuleList(c,d).filter(f=>e==="row"?f.ranges.some(m=>s.startRow>m.startRow&&s.startRow<=m.endRow):f.ranges.some(m=>s.startColumn>m.startColumn&&s.startColumn<=m.endColumn)).forEach(f=>{h.push(new Bn(c,d,f.permissionId).id)}),a.composePermission(h).some(f=>f.value===!1)}))}N($ne,"getInsertBeforeMenuHidden$");function Wne(t,e){const n=t.get(Ce),r=t.get(Bt),i=t.get(li),a=t.get(Qi);return Qa(r.selectionMoveEnd$,a.permissionPointUpdate$).pipe(pr(()=>{var o;const s=(o=r.getCurrentLastSelection())==null?void 0:o.range;if(!s)return!0;const l=n.getCurrentUnitForType(le.UNIVER_SHEET),u=l==null?void 0:l.getActiveSheet();if(!l||!u)return!0;const c=l.getUnitId(),d=u.getSheetId(),h=[new on(c).id,new Tn(c,d).id],f=Ie.deepClone(s);return e==="row"?(f.startColumn=0,f.endColumn=u.getColumnCount()-1):(f.startRow=0,f.endRow=u.getRowCount()-1),i.getSubunitRuleList(c,d).filter(m=>m.ranges.some(g=>ft.intersects(f,g))).forEach(m=>{h.push(new Bn(c,d,m.permissionId).id)}),a.composePermission(h).some(m=>m.value===!1)}))}N(Wne,"getDeleteMenuHidden$");function fb(t,e){const n=t.get(Ce),r=t.get(Bt),i=t.get(li),a=t.get(Qi);return Qa(r.selectionMoveEnd$,a.permissionPointUpdate$).pipe(pr(()=>{var o;const s=(o=r.getCurrentLastSelection())==null?void 0:o.range;if(!s)return!0;const l=n.getCurrentUnitForType(le.UNIVER_SHEET),u=l==null?void 0:l.getActiveSheet();if(!l||!u)return!0;const c=l.getUnitId(),d=u.getSheetId(),h=[new on(c).id,new Tn(c,d).id],f=Ie.deepClone(s);return e==="row"?f.endRow=u.getRowCount()-1:f.endColumn=u.getColumnCount()-1,i.getSubunitRuleList(c,d).filter(m=>m.ranges.some(g=>ft.intersects(f,g))).forEach(m=>{h.push(new Bn(c,d,m.permissionId).id)}),a.composePermission(h).some(m=>m.value===!1)}))}N(fb,"getCellMenuHidden$");function s3(t,e){const n=t.get(Ce).getCurrentTypeOfUnit$(le.UNIVER_SHEET),r=t.get(ga),i=t.get(li),a=t.get(Qi),o=t.get(vs);return Sa([o.currentUser$,n]).pipe(Ei(([s,l])=>l?l.activeSheet$.pipe(Ei(u=>{var c,d;if(!u)return Hr(!0);const h=l.getUnitId(),f=[];e.forEach(p=>f.push(new p(h).id));const m=a.composePermission$(f).pipe(pr(p=>p.every(v=>v.value===!0))),g=(d=(c=a.getPermissionPoint$(new R1(h).id))==null?void 0:c.pipe(pr(p=>p.value)))!=null?d:Hr(!1);return Sa([m,g]).pipe(pr(([p,v])=>{if(!p)return!0;const _=u.getSheetId(),C=r.getRule(h,_),S=i.getSubunitRuleList(h,_);return C||S.length?!v:!1}))})):Hr(!0)))}N(s3,"getWorkbookPermissionDisable$");var vqt=Object.defineProperty,_qt=Object.getOwnPropertyDescriptor,Cqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?_qt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&vqt(e,n,i),i},"__decorateClass$P"),lV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$O"),uV;let Vg=(uV=class extends Da{constructor(t,e,n){super(),fe(this,"_skeletonChangeMutations",new Set),this._contextService=t,this._instanceSrv=e,this._renderManagerService=n,Promise.resolve().then(()=>this._init())}registerSkeletonChangingMutations(t){return this._skeletonChangeMutations.has(t)?$t(()=>{}):(this._skeletonChangeMutations.add(t),$t(()=>this._skeletonChangeMutations.delete(t)))}checkMutationShouldTriggerRerender(t){return this._skeletonChangeMutations.has(t)}_init(){this._initWorkbookListener(),this._initContextListener()}_initWorkbookListener(){this._instanceSrv.getTypeOfUnitAdded$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(t=>{this._createRenderer(t)}),this._instanceSrv.getAllUnitsForType(le.UNIVER_SHEET).forEach(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitDisposed$(le.UNIVER_SHEET).pipe(_a(this.dispose$)).subscribe(t=>this._disposeRenderer(t))}_createRenderer(t){const e=t.getUnitId();this._renderManagerService.createRender(e),this._renderManagerService.setCurrent(e)}_disposeRenderer(t){const e=t.getUnitId();this._renderManagerService.removeRender(e)}_initContextListener(){this._contextService.subscribeContextValue$(Nbe).pipe(Hl(),_a(this.dispose$)).subscribe(()=>{this._renderManagerService.getRenderAll().forEach(t=>{t.mainComponent instanceof hye&&t.mainComponent.makeForceDirty(!0)})})}},N(uV,"SheetsRenderService"),uV);Vg=Cqt([yn(Vt.Ready,Vg),lV(0,ui),lV(1,Ce),lV(2,Sr)],Vg);const aY=_s("rangeMovePermissionCheck"),oY=_s("rangeFillPermissionCheck");var zne=(t=>(t[t.FORMULA_EDITOR_SHOW=100]="FORMULA_EDITOR_SHOW",t[t.MARK_SELECTION=1e4]="MARK_SELECTION",t))(zne||{});const FHe=class{constructor(){fe(this,"_startColumn",-1),fe(this,"_startRow",-1),fe(this,"_endColumn",-1),fe(this,"_endRow",-1),fe(this,"_startX",0),fe(this,"_startY",0),fe(this,"_endX",0),fe(this,"_endY",0),fe(this,"_primary"),fe(this,"_rangeType",it.NORMAL)}get startColumn(){return this._startColumn}get startRow(){return this._startRow}get endColumn(){return this._endColumn}get endRow(){return this._endRow}get startX(){return this._startX}get startY(){return this._startY}get endX(){return this._endX}get endY(){return this._endY}get currentCell(){return this._primary}get rangeType(){return this._rangeType}isEqual(e){const{startColumn:n,startRow:r,endColumn:i,endRow:a}=this,{startColumn:o,startRow:s,endColumn:l,endRow:u}=e;return n===o&&r===s&&i===l&&a===u}isInclude(e){const{startColumn:n,startRow:r,endColumn:i,endRow:a}=this,{startColumn:o,startRow:s,endColumn:l,endRow:u}=e;return!(l<n||o>i||s>a||u<r)}highlightToSelection(){if(this._primary)return GP(this._primary)}getRange(){return{startColumn:this._startColumn,startRow:this._startRow,endColumn:this._endColumn,endRow:this._endRow,startX:this._startX,startY:this._startY,endX:this._endX,endY:this._endY,rangeType:this.rangeType}}getCell(){return this._primary}getRangeType(){return this._rangeType}setRangeType(e){this._rangeType=e}getValue(){return{rangeWithCoord:this.getRange(),primaryWithCoord:this._primary}}setValue(e,n){const{startColumn:r,startRow:i,endColumn:a,endRow:o,startX:s,startY:l,endX:u,endY:c,rangeType:d}=e;this._startColumn=r,this._startRow=i,this._endColumn=a,this._endRow=o,this._startX=s,this._startY=l,this._endX=u,this._endY=c,d!==void 0&&(this._rangeType=d),this.setCurrentCell(n)}setCurrentCell(e){e&&(this._primary=e)}clearCurrentCell(){this._primary=null}};N(FHe,"SelectionRenderModel");let Sqt=FHe;var sY=(t=>(t.Selection="__SpreadsheetSelectionShape__",t.top="__SpreadsheetSelectionTopControl__",t.bottom="__SpreadsheetSelectionBottomControl__",t.left="__SpreadsheetSelectionShapeLeftControl__",t.right="__SpreadsheetSelectionShapeRightControl__",t.backgroundTop="__SpreadsheetSelectionBackgroundControlTop__",t.backgroundMiddleLeft="__SpreadsheetSelectionBackgroundControlMiddleLeft__",t.backgroundMiddleRight="__SpreadsheetSelectionBackgroundControlMiddleRight__",t.backgroundBottom="__SpreadsheetSelectionBackgroundControlBottom__",t.fill="__SpreadsheetSelectionFillControl__",t.fillTopLeft="__SpreadsheetSelectionFillControlTopLeft__",t.fillBottomRight="__SpreadsheetSelectionFillControlBottomRight__",t.fillTopLeftInner="__SpreadsheetSelectionFillControlTopLeftInner__",t.fillBottomRightInner="__SpreadsheetSelectionFillControlBottomRightInner__",t.lineMain="__SpreadsheetDragLineMainControl__",t.lineContent="__SpreadsheetDragLineContentControl__",t.line="__SpreadsheetDragLineControl__",t.dash="__SpreadsheetDragDashControl__",t.rowHeaderBackground="__SpreadSheetSelectionRowHeaderBackground__",t.rowHeaderBorder="__SpreadSheetSelectionRowHeaderBorder__",t.rowHeaderGroup="__SpreadSheetSelectionRowHeaderGroup__",t.columnHeaderBackground="__SpreadSheetSelectionColumnHeaderBackground__",t.columnHeaderBorder="__SpreadSheetSelectionColumnHeaderBorder__",t.columnHeaderGroup="__SpreadSheetSelectionColumnHeaderGroup__",t.topLeftWidget="__SpreadSheetSelectionTopLeftWidget__",t.topCenterWidget="__SpreadSheetSelectionTopCenterWidget__",t.topRightWidget="__SpreadSheetSelectionTopRightWidget__",t.middleLeftWidget="__SpreadSheetSelectionMiddleLeftWidget__",t.middleRightWidget="__SpreadSheetSelectionMiddleRightWidget__",t.bottomLeftWidget="__SpreadSheetSelectionBottomLeftWidget__",t.bottomCenterWidget="__SpreadSheetSelectionBottomCenterWidget__",t.bottomRightWidget="__SpreadSheetSelectionBottomRightWidget__",t))(sY||{});const Gle=.3,VHe=class extends et{constructor(e,n,r,i=!0,a){super(),fe(this,"_leftBorder"),fe(this,"_rightBorder"),fe(this,"_topBorder"),fe(this,"_bottomBorder"),fe(this,"_backgroundControlTop"),fe(this,"_backgroundControlBottom"),fe(this,"_backgroundControlMiddleLeft"),fe(this,"_backgroundControlMiddleRight"),fe(this,"_fillControl"),fe(this,"_selectionShapeGroup"),fe(this,"_rowHeaderBackground"),fe(this,"_rowHeaderBorder"),fe(this,"_rowHeaderGroup"),fe(this,"_columnHeaderBackground"),fe(this,"_columnHeaderBorder"),fe(this,"_columnHeaderGroup"),fe(this,"_topLeftWidget"),fe(this,"_topCenterWidget"),fe(this,"_topRightWidget"),fe(this,"_middleLeftWidget"),fe(this,"_middleRightWidget"),fe(this,"_bottomLeftWidget"),fe(this,"_bottomCenterWidget"),fe(this,"_bottomRightWidget"),fe(this,"_dashedRect"),fe(this,"_selectionModel"),fe(this,"_defaultStyle"),fe(this,"_currentStyle"),fe(this,"_rowHeaderWidth",0),fe(this,"_columnHeaderHeight",0),fe(this,"_widgetRects",[]),fe(this,"_dispose$",new Pn(this)),fe(this,"dispose$",this._dispose$.asObservable()),fe(this,"selectionMoving$",new Zt),fe(this,"selectionMoved$",new Zt),fe(this,"selectionScaling$",new Zt),fe(this,"selectionScaled$",new Zt),fe(this,"selectionFilling$",new Zt),fe(this,"_selectionFilled$",new Zt),fe(this,"selectionFilled$",this._selectionFilled$.asObservable()),fe(this,"_isHelperSelection",!0),fe(this,"_antLineOffset",0),fe(this,"_antRequestNewFrame",-1),this._scene=e,this._zIndex=n,this._themeService=r,this._highlightHeader=i,this._rowHeaderWidth=(a==null?void 0:a.rowHeaderWidth)||0,this._columnHeaderHeight=(a==null?void 0:a.columnHeaderHeight)||0,this._initialize()}get zIndex(){return this._zIndex}get leftControl(){return this._leftBorder}get rightControl(){return this._rightBorder}get topControl(){return this._topBorder}get bottomControl(){return this._bottomBorder}get fillControl(){return this._fillControl}get backgroundControlTop(){return this._backgroundControlTop}get backgroundControlBottom(){return this._backgroundControlBottom}get backgroundControlMiddleLeft(){return this._backgroundControlMiddleLeft}get backgroundControlMiddleRight(){return this._backgroundControlMiddleRight}get selectionShape(){return this._selectionShapeGroup}get columnHeaderGroup(){return this._columnHeaderGroup}get rowHeaderGroup(){return this._rowHeaderGroup}get selectionShapeGroup(){return this._selectionShapeGroup}get model(){return this._selectionModel}get topLeftWidget(){return this._topLeftWidget}get topCenterWidget(){return this._topCenterWidget}get topRightWidget(){return this._topRightWidget}get middleLeftWidget(){return this._middleLeftWidget}get middleRightWidget(){return this._middleRightWidget}get bottomLeftWidget(){return this._bottomLeftWidget}get bottomCenterWidget(){return this._bottomCenterWidget}get bottomRightWidget(){return this._bottomRightWidget}get themeService(){return this._themeService}get selectionModel(){return this._selectionModel}set selectionModel(e){this._selectionModel=e}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get dashedRect(){return this._dashedRect}get currentStyle(){return this._currentStyle}set currentStyle(e){e&&(this._currentStyle=e)}get isHelperSelection(){return this._isHelperSelection}get rowHeaderWidth(){return this._rowHeaderWidth}set rowHeaderWidth(e){this._rowHeaderWidth=e}get columnHeaderHeight(){return this._columnHeaderHeight}set columnHeaderHeight(e){this._columnHeaderHeight=e}setEvent(e){this.leftControl.evented=e,this.rightControl.evented=e,this.topControl.evented=e,this.bottomControl.evented=e}refreshSelectionFilled(e){this._selectionFilled$.next(e)}_setSizeAndStyleForSelectionControl(e){this.currentStyle=e;const n=this._defaultStyle,r=this.currentStyle,{stroke:i=n.stroke,widgets:a=n.widgets,hasAutoFill:o=n.hasAutoFill,AutofillStroke:s=n.AutofillStroke,strokeDash:l,isAnimationDash:u}=r;let{strokeWidth:c=n.strokeWidth,AutofillSize:d=n.AutofillSize,AutofillStrokeWidth:h=n.AutofillStrokeWidth}=r;const f=this._getScale(),m=(c+iP)/2/f;c/=f,d/=f,h/=f<1?1:f;const g=iP/f,p=Lo/f,{startX:v,startY:_,endX:C,endY:S}=this._selectionModel;if(this.leftControl.transformByState({height:S-_,left:-m+p,width:c,strokeWidth:g,top:-g/2+p}),this.leftControl.setProps({fill:i,stroke:Wy}),this.rightControl.transformByState({height:S-_,left:C-v-m+p,width:c,strokeWidth:g,top:-g/2+p}),this.rightControl.setProps({fill:i,stroke:Wy}),this.topControl.transformByState({width:C-v+c,top:-m+p,left:-m+p,height:c,strokeWidth:g}),this.topControl.setProps({fill:i,stroke:Wy}),this.bottomControl.transformByState({width:C-v+c,top:S-_-m+p,height:c,left:-m+p,strokeWidth:g}),this.bottomControl.setProps({fill:i,stroke:Wy}),l==null)this.dashedRect.hide(),this._stopAntLineAnimation();else{const b=r.strokeWidth*2/f;this.dashedRect.transformByState({height:S-_,width:C-v,strokeWidth:b,left:-b/2+p,top:-b/2+p}),this.dashedRect.setProps({strokeDashArray:[0,l/f]}),this._stopAntLineAnimation(),u!==!1&&this._startAntLineAnimation(),this.dashedRect.show()}if(o===!0&&!this._hasWidgets(a)){const b={fill:i,stroke:s,strokeScaleEnabled:!1},y={width:d-h,height:d-h,left:C-v-d/2+h/2-p,top:S-_-d/2+h/2-p,strokeWidth:h};this.fillControl.setProps(b),this.fillControl.transformByState(y),this.fillControl.show()}else this.fillControl.hide();this._updateBackgroundControl(e),this._updateHeaderBackground(e),this._updateWidgets(e)}_refreshControlPosition(){const{startX:e,startY:n}=this._selectionModel;this.selectionShapeGroup.show(),this.selectionShapeGroup.translate(e,n),this.selectionShapeGroup.makeDirtyNoDebounce(!0)}updateStyle(e){this._setSizeAndStyleForSelectionControl(e),this._refreshControlPosition()}updateRange(e,n){this._selectionModel.setValue(e,n),this._setSizeAndStyleForSelectionControl(this._currentStyle),this._refreshControlPosition()}update(e,n=0,r=0,i,a){this._selectionModel.setValue(e,a),this._rowHeaderWidth=n,this._columnHeaderHeight=r,this._setSizeAndStyleForSelectionControl(i||this._currentStyle),this._refreshControlPosition()}updateCurrCell(e){this._selectionModel.setCurrentCell(e)}clearHighlight(){this._selectionModel.clearCurrentCell(),this._setSizeAndStyleForSelectionControl(this._currentStyle)}getScene(){return this._scene}dispose(){var e,n,r,i,a,o,s,l,u,c,d,h,f,m,g,p,v,_,C,S,b,y,A,w;(e=this._leftBorder)==null||e.dispose(),(n=this._rightBorder)==null||n.dispose(),(r=this._topBorder)==null||r.dispose(),(i=this._bottomBorder)==null||i.dispose(),(a=this._backgroundControlTop)==null||a.dispose(),(o=this._backgroundControlMiddleLeft)==null||o.dispose(),(s=this._backgroundControlMiddleRight)==null||s.dispose(),(l=this._backgroundControlBottom)==null||l.dispose(),this._fillControl.dispose(),(u=this._selectionShapeGroup)==null||u.dispose(),(c=this._rowHeaderBackground)==null||c.dispose(),(d=this._rowHeaderBorder)==null||d.dispose(),(h=this._rowHeaderGroup)==null||h.dispose(),(f=this._rowHeaderBackground)==null||f.dispose(),(m=this._columnHeaderBackground)==null||m.dispose(),(g=this._columnHeaderBorder)==null||g.dispose(),(p=this._columnHeaderGroup)==null||p.dispose(),(v=this._topLeftWidget)==null||v.dispose(),(_=this._topCenterWidget)==null||_.dispose(),(C=this._topRightWidget)==null||C.dispose(),(S=this._middleLeftWidget)==null||S.dispose(),(b=this._middleRightWidget)==null||b.dispose(),(y=this._bottomLeftWidget)==null||y.dispose(),(A=this._bottomCenterWidget)==null||A.dispose(),(w=this._bottomRightWidget)==null||w.dispose(),super.dispose(),this._dispose$.next(this),this._dispose$.complete()}getCurrentCellInfo(){const e=this.model.currentCell;if(e){let n;if(e.isMerged){const r=e.mergeInfo;n={startRow:r.startRow,endRow:r.endRow,startColumn:r.startColumn,endColumn:r.endColumn,startX:r.startX,endX:r.endX,startY:r.startY,endY:r.endY}}else{const{actualRow:r,actualColumn:i,startX:a,endX:o,startY:s,endY:l}=e;n={startRow:r,endRow:r,startColumn:i,endColumn:i,startX:a,endX:o,startY:s,endY:l}}return n}}getValue(){return{...this._selectionModel.getValue(),style:this._currentStyle}}getRange(){return this._selectionModel.getValue().rangeWithCoord}enableHelperSelection(){this._isHelperSelection=!0}disableHelperSelection(){this._isHelperSelection=!1}_initialize(){this._defaultStyle=mf(this._themeService),this._currentStyle=mf(this._themeService),this._selectionModel=new Sqt;const e=this._zIndex;this._leftBorder=new ur("__SpreadsheetSelectionShapeLeftControl__"+e,{zIndex:e}),this._rightBorder=new ur("__SpreadsheetSelectionShapeRightControl__"+e,{zIndex:e}),this._topBorder=new ur("__SpreadsheetSelectionTopControl__"+e,{zIndex:e}),this._bottomBorder=new ur("__SpreadsheetSelectionBottomControl__"+e,{zIndex:e}),this._backgroundControlTop=new ur("__SpreadsheetSelectionBackgroundControlTop__"+e,{zIndex:e-1,evented:!1}),this._backgroundControlBottom=new ur("__SpreadsheetSelectionBackgroundControlBottom__"+e,{zIndex:e-1,evented:!1}),this._backgroundControlMiddleLeft=new ur("__SpreadsheetSelectionBackgroundControlMiddleLeft__"+e,{zIndex:e-1,evented:!1}),this._backgroundControlMiddleRight=new ur("__SpreadsheetSelectionBackgroundControlMiddleRight__"+e,{zIndex:e-1,evented:!1}),this._fillControl=new ur("__SpreadsheetSelectionFillControl__"+e,{zIndex:e+1}),this._dashedRect=new Syt("__SpreadsheetDragDashControl__"+e,{zIndex:e+2,evented:!1,stroke:"#fff"});const n=[this._fillControl,this._leftBorder,this._rightBorder,this._topBorder,this._bottomBorder,this._backgroundControlTop,this._backgroundControlMiddleLeft,this._backgroundControlMiddleRight,this._backgroundControlBottom,this._dashedRect];this._widgetRects=this._initialWidget(),this._selectionShapeGroup=new E8("__SpreadsheetSelectionShape__"+e,...n,...this._widgetRects),this._selectionShapeGroup.hide(),this._selectionShapeGroup.evented=!1,this._selectionShapeGroup.zIndex=e;const r=this.getScene();r.addObject(this._selectionShapeGroup,oP),this.disposeWithMe($t(r.onTransformChange$.subscribeEvent(i=>{i.type===fo.scale&&(this._setSizeAndStyleForSelectionControl(this._currentStyle),this._refreshControlPosition())}))),this._initialHeader()}_initialHeader(){const e=this._zIndex;this._rowHeaderBackground=new ur("__SpreadSheetSelectionRowHeaderBackground__"+e,{zIndex:e-1,evented:!1}),this._rowHeaderBorder=new ur("__SpreadSheetSelectionRowHeaderBorder__"+e,{zIndex:e-1,evented:!1}),this._rowHeaderGroup=new E8("__SpreadSheetSelectionRowHeaderGroup__"+e,this._rowHeaderBackground,this._rowHeaderBorder),this._rowHeaderGroup.hide(),this._rowHeaderGroup.evented=!1,this._rowHeaderGroup.zIndex=e,this._columnHeaderBackground=new ur("__SpreadSheetSelectionColumnHeaderBackground__"+e,{zIndex:e-1,evented:!1}),this._columnHeaderBorder=new ur("__SpreadSheetSelectionColumnHeaderBorder__"+e,{zIndex:e-1,evented:!1}),this._columnHeaderGroup=new E8("__SpreadSheetSelectionColumnHeaderGroup__"+e,this._columnHeaderBackground,this._columnHeaderBorder),this._columnHeaderGroup.hide(),this._columnHeaderGroup.evented=!1,this._columnHeaderGroup.zIndex=e,this.getScene().addObjects([this._rowHeaderGroup,this._columnHeaderGroup],hqt)}_initialWidget(){const e=this._zIndex;return this._topLeftWidget=new ur("__SpreadSheetSelectionTopLeftWidget__"+e,{zIndex:e+1}),this._topCenterWidget=new ur("__SpreadSheetSelectionTopCenterWidget__"+e,{zIndex:e+1}),this._topRightWidget=new ur("__SpreadSheetSelectionTopRightWidget__"+e,{zIndex:e+1}),this._middleLeftWidget=new ur("__SpreadSheetSelectionMiddleLeftWidget__"+e,{zIndex:e+1}),this._middleRightWidget=new ur("__SpreadSheetSelectionMiddleRightWidget__"+e,{zIndex:e+1}),this._bottomLeftWidget=new ur("__SpreadSheetSelectionBottomLeftWidget__"+e,{zIndex:e+1}),this._bottomCenterWidget=new ur("__SpreadSheetSelectionBottomCenterWidget__"+e,{zIndex:e+1}),this._bottomRightWidget=new ur("__SpreadSheetSelectionBottomRightWidget__"+e,{zIndex:e+1}),[this._topLeftWidget,this._topCenterWidget,this._topRightWidget,this._middleLeftWidget,this._middleRightWidget,this._bottomLeftWidget,this._bottomCenterWidget,this._bottomRightWidget]}_updateHeaderBackground(e){const{startX:n,startY:r,endX:i,endY:a,rangeType:o}=this._selectionModel,s=this._defaultStyle;e==null&&(e=s);const l=this._getScale(),{stroke:u,hasRowHeader:c,rowHeaderFill:d=s.rowHeaderFill,rowHeaderStroke:h=s.rowHeaderStroke,hasColumnHeader:f,columnHeaderFill:m=s.columnHeaderFill,columnHeaderStroke:g=s.columnHeaderStroke}=e;let{rowHeaderStrokeWidth:p=s.rowHeaderStrokeWidth,columnHeaderStrokeWidth:v=s.columnHeaderStrokeWidth}=e;p/=l,v/=l;const _=this._rowHeaderWidth,C=this._columnHeaderHeight;if(f===!0){let S=m;this._highlightHeader&&o===it.COLUMN&&(S=new Zs(u).setAlpha(Gle).toString()),this._columnHeaderBackground.setProps({fill:S}),this._columnHeaderBackground.resize(i-n,C),this._columnHeaderBorder.setProps({fill:g}),this._columnHeaderBorder.transformByState({width:i-n,height:v,top:C-v+1/l}),this._columnHeaderGroup.show(),this._columnHeaderGroup.translate(n,0)}else this._columnHeaderGroup.hide();if(this._columnHeaderGroup.makeDirty(!0),c===!0){let S=d;this._highlightHeader&&o===it.ROW&&(S=new Zs(u).setAlpha(Gle).toString()),this._rowHeaderBackground.setProps({fill:S}),this._rowHeaderBackground.resize(_,a-r),this._rowHeaderBorder.setProps({fill:h}),this._rowHeaderBorder.transformByState({width:p,height:a-r,left:_-p+1/l}),this._rowHeaderGroup.show(),this._rowHeaderGroup.translate(0,r)}else this._rowHeaderGroup.hide();this._rowHeaderGroup.makeDirty(!0)}_updateBackgroundControl(e){const{startX:n,startY:r,endX:i,endY:a}=this._selectionModel,o=this._defaultStyle;e==null&&(e=o);const s=this._getScale(),{fill:l=o.fill}=e;let{strokeWidth:u=o.strokeWidth}=e;u/=s;const c=this._selectionModel.highlightToSelection();if(!c){this._backgroundControlTop.resize(i-n,a-r),this._backgroundControlTop.setProps({fill:l}),this._backgroundControlBottom.resize(0,0),this._backgroundControlMiddleLeft.resize(0,0),this._backgroundControlMiddleRight.resize(0,0);return}const{startX:d,startY:h,endX:f,endY:m}=c,g=u/2,p={left:-g,top:-g,width:i-n+g*2,height:h-r+g};p.height<0&&(p.width=0,p.height=0),this._backgroundControlTop.transformByState(p);const v={left:-g,top:h-r,width:d-n+g,height:m-h};v.width<0&&(v.width=0,v.height=0),this._backgroundControlMiddleLeft.transformByState(v);const _={left:f-n-g,top:h-r,width:i-f+g*2,height:m-h};_.width<0&&(_.width=0,_.height=0),this._backgroundControlMiddleRight.transformByState(_);const C={left:-g,top:m-r,width:i-n+g*2,height:a-m+g};C.height<0&&(C.width=0,C.height=0),this._backgroundControlBottom.transformByState(C),this._backgroundControlTop.setProps({fill:l}),this._backgroundControlMiddleLeft.setProps({fill:l}),this._backgroundControlMiddleRight.setProps({fill:l}),this._backgroundControlBottom.setProps({fill:l})}_updateWidgets(e){const{startX:n,startY:r,endX:i,endY:a}=this._selectionModel,o=this._defaultStyle;e==null&&(e=o);const{stroke:s=o.stroke,widgets:l=o.widgets,widgetStroke:u=o.widgetStroke}=e,c=this._getScale();let{widgetSize:d=o.widgetSize,widgetStrokeWidth:h=o.widgetStrokeWidth}=e;d/=c,h/=c;const f={left:-d/2+h/2,center:(i-n)/2-d/2+h/2,right:i-n-d/2+h/2,top:-d/2,middle:(a-r)/2-d/2,bottom:a-r-d/2+h/2},m=d-h;this._widgetRects.forEach(g=>{g.setProps({fill:s,stroke:u})}),l.tl===!0?(this._topLeftWidget.transformByState({height:m,width:m,left:f.left,top:f.top,strokeWidth:h}),this._topLeftWidget.show()):this._topLeftWidget.hide(),l.tc===!0?(this._topCenterWidget.transformByState({height:m,width:m,left:f.center,top:f.top,strokeWidth:h}),this._topCenterWidget.show()):this._topCenterWidget.hide(),l.tr===!0?(this._topRightWidget.transformByState({height:m,width:m,left:f.right,top:f.top,strokeWidth:h}),this._topRightWidget.show()):this._topRightWidget.hide(),l.ml===!0?(this._middleLeftWidget.transformByState({height:m,width:m,left:f.left,top:f.middle,strokeWidth:h}),this._middleLeftWidget.show()):this._middleLeftWidget.hide(),l.mr===!0?(this._middleRightWidget.transformByState({height:m,width:m,left:f.right,top:f.middle,strokeWidth:h}),this._middleRightWidget.show()):this._middleRightWidget.hide(),l.bl===!0?(this._bottomLeftWidget.transformByState({height:m,width:m,left:f.left,top:f.bottom,strokeWidth:h}),this._bottomLeftWidget.show()):this._bottomLeftWidget.hide(),l.bc===!0?(this._bottomCenterWidget.transformByState({height:m,width:m,left:f.center,top:f.bottom,strokeWidth:h}),this._bottomCenterWidget.show()):this._bottomCenterWidget.hide(),l.br===!0?(this._bottomRightWidget.transformByState({height:m,width:m,left:f.right,top:f.bottom,strokeWidth:h}),this._bottomRightWidget.show()):this._bottomRightWidget.hide()}_hasWidgets(e){if(e==null)return!1;const n=Object.keys(e);if(n.length===0)return!1;for(const r of n)if(e[r]===!0)return!0;return!0}_getScale(){const{scaleX:e,scaleY:n}=this._scene.getAncestorScale();return Math.max(e,n)}_stopAntLineAnimation(){this._antLineOffset=0,M7e(this._antRequestNewFrame)}_startAntLineAnimation(){const e=this._getScale();this._antLineOffset+=.6/e,this._antLineOffset>160/e&&(this._antLineOffset=0),this.dashedRect.setProps({strokeDashOffset:-this._antLineOffset}),this._antRequestNewFrame=o_(()=>{this._startAntLineAnimation()})}};N(VHe,"SelectionControl");let yx=VHe;const Qle="__SpreadsheetHelperSelectionTempRect",bqt=35,BHe=class{constructor(e,n,r,i,a,o){fe(this,"_startOffsetX",0),fe(this,"_startOffsetY",0),fe(this,"_relativeSelectionPositionRow",0),fe(this,"_relativeSelectionPositionColumn",0),fe(this,"_relativeSelectionRowLength",0),fe(this,"_relativeSelectionColumnLength",0),fe(this,"_scenePointerMoveSub"),fe(this,"_scenePointerUpSub"),fe(this,"_helperSelection"),fe(this,"_scrollTimer"),fe(this,"_activeViewport"),fe(this,"_targetSelection",{startY:0,endY:0,startX:0,endX:0,startRow:-1,endRow:-1,startColumn:-1,endColumn:-1}),fe(this,"_isInMergeState",!1),fe(this,"_fillControlColors",[]),this._control=e,this._skeleton=n,this._scene=r,this._themeService=i,this._injector=a,this._selectionHooks=o,this._initialControl(),this._initialWidget(),this._initialFill(),this._control.dispose$.subscribe(()=>{this.dispose()})}get isHelperSelection(){return this._control.isHelperSelection}dispose(){var e,n;(e=this._scrollTimer)==null||e.dispose(),this._fillControlColors=[],this._clearObserverEvent(),(n=this._helperSelection)==null||n.dispose()}_getFreeze(){var e,n;return(n=(e=this._injector.get(Sr).withCurrentTypeOfUnit(le.UNIVER_SHEET,Gr))==null?void 0:e.getCurrent())==null?void 0:n.skeleton.getWorksheetConfig().freeze}_isSelectionInViewport(e,n){const r=this._getFreeze()||{startRow:-1,startColumn:-1};switch(n.viewportKey){case an.VIEW_MAIN:return e.endRow>=r.startRow&&e.endColumn>=r.startColumn;case an.VIEW_MAIN_TOP:case an.VIEW_COLUMN_RIGHT:return e.endColumn>=r.startColumn&&e.startRow<r.startRow;case an.VIEW_MAIN_LEFT:case an.VIEW_ROW_BOTTOM:return e.endRow>=r.startRow&&e.startColumn<r.startColumn;case an.VIEW_MAIN_LEFT_TOP:case an.VIEW_COLUMN_LEFT:case an.VIEW_ROW_TOP:case an.VIEW_LEFT_TOP:return e.startRow<r.startRow&&e.startColumn<r.startColumn}}_clearObserverEvent(){var e,n;(e=this._scenePointerMoveSub)==null||e.unsubscribe(),(n=this._scenePointerUpSub)==null||n.unsubscribe(),this._scenePointerMoveSub=null,this._scenePointerUpSub=null}_initialControl(){const{leftControl:e,rightControl:n,topControl:r,bottomControl:i}=this._control;[e,n,r,i].forEach(a=>{a.onPointerEnter$.subscribeEvent(()=>{var o;((o=this._injector.get(Ds,va.OPTIONAL))==null?void 0:o.interceptor.fetchThroughInterceptors(aY)(!1,null))!==!1&&a.setCursor(Yn.MOVE)}),a.onPointerLeave$.subscribeEvent(()=>{a.resetCursor()}),a.onPointerDown$.subscribeEvent(this._controlEvent.bind(this))})}_controlMoving(e,n){var r;const i=this._scene,a=i.getVpScrollXYInfoByPosToVp(cn.FromArray([e,n])),{scaleX:o,scaleY:s}=i.getAncestorScale(),l=this._skeleton.getCellPositionByOffset(e,n,o,s,a),{row:u,column:c}=l,d=this._skeleton.getRowCount()-1,h=this._skeleton.getColumnCount()-1;let f=u+this._relativeSelectionPositionRow;f<0&&(f=0);let m=f+this._relativeSelectionRowLength;m>d&&(m=d,m-f<this._relativeSelectionRowLength&&(f=m-this._relativeSelectionRowLength));let g=c+this._relativeSelectionPositionColumn;g<0&&(g=0);let p=g+this._relativeSelectionColumnLength;p>h&&(p=h,p-g<this._relativeSelectionColumnLength&&(g=p-this._relativeSelectionColumnLength));const v=this._skeleton.getNoMergeCellPositionByIndex(f,g),_=this._skeleton.getNoMergeCellPositionByIndex(m,p),C=(v==null?void 0:v.startY)||0,S=(_==null?void 0:_.endY)||0,b=(v==null?void 0:v.startX)||0,y=(_==null?void 0:_.endX)||0;(r=this._helperSelection)==null||r.transformByState({left:b,top:C,width:y-b,height:S-C}),this._targetSelection={startY:C,endY:S,startX:b,endX:y,startRow:f,endRow:m,startColumn:g,endColumn:p},this._control.selectionMoving$.next(this._targetSelection)}_controlEvent(e){const{offsetX:n,offsetY:r}=e,i=this._scene,a=i.getRelativeToViewportCoord(cn.FromArray([n,r])),{x:o,y:s}=a,l=i.getVpScrollXYInfoByPosToVp(a),{scaleX:u,scaleY:c}=i.getAncestorScale(),d=this._skeleton.getCellPositionByOffset(o,s,u,c,l);this._startOffsetX=o,this._startOffsetY=s;const{row:h,column:f}=d,{startRow:m,startColumn:g,endRow:p,endColumn:v}=this._control.model;let _=0,C=0;h<m?_-=1:h>p&&(_+=1),f<g?C-=1:f>v&&(C+=1),this._relativeSelectionPositionRow=m-h+_,this._relativeSelectionPositionColumn=g-f+C,this._relativeSelectionRowLength=p-m,this._relativeSelectionColumnLength=v-g;const S=this._control.currentStyle,b=this._getScale();this.isHelperSelection&&(this._helperSelection=new ur(Qle,{stroke:S.stroke,strokeWidth:S.strokeWidth/b}),i.addObject(this._helperSelection));const y=i.getViewport(an.VIEW_MAIN),A=df.create(i);this._scrollTimer=A,A.startScroll(o,s,y),i.disableObjectsEvent(),this._scenePointerMoveSub=i.onPointerMove$.subscribeEvent(w=>{var P;const{offsetX:M,offsetY:L}=w;if(((P=this._injector.get(Ds,va.OPTIONAL))==null?void 0:P.interceptor.fetchThroughInterceptors(aY)(!1,null))===!1)return;const{x:k,y:O}=i.getRelativeToViewportCoord(cn.FromArray([M,L]));this._controlMoving(k,O),i.setCursor(Yn.MOVE),A.scrolling(k,O,()=>{this._controlMoving(k,O)})}),this._scenePointerUpSub=i.onPointerUp$.subscribeEvent(()=>{var w,P,M,L;(w=this._helperSelection)==null||w.dispose();const k=this._scene;k.resetCursor(),this._clearObserverEvent(),k.enableObjectsEvent(),(P=this._scrollTimer)==null||P.dispose(),this._control.selectionMoved$.next(this._targetSelection),(L=(M=this._selectionHooks).selectionMoveEnd)==null||L.call(M)})}_initialWidget(){const{topLeftWidget:e,topCenterWidget:n,topRightWidget:r,middleLeftWidget:i,middleRightWidget:a,bottomLeftWidget:o,bottomCenterWidget:s,bottomRightWidget:l}=this._control,u=[Yn.NORTH_WEST_RESIZE,Yn.NORTH_RESIZE,Yn.NORTH_EAST_RESIZE,Yn.WEST_RESIZE,Yn.EAST_RESIZE,Yn.SOUTH_WEST_RESIZE,Yn.SOUTH_RESIZE,Yn.SOUTH_EAST_RESIZE];[e,n,r,i,a,o,s,l].forEach((c,d)=>{c.onPointerEnter$.subscribeEvent(()=>{c.setCursor(u[d])}),c.onPointerLeave$.subscribeEvent(()=>{c.resetCursor()}),c.onPointerDown$.subscribeEvent(h=>{this._widgetPointerDownEvent(h,u[d])})})}_widgetPointerDownEvent(e,n){const r=this._scene,{offsetX:i,offsetY:a}=e,o=r.getRelativeToViewportCoord(cn.FromArray([i,a])),{x:s,y:l}=o;this._startOffsetX=i,this._startOffsetY=a;const{startRow:u,startColumn:c,endRow:d,endColumn:h}=this._control.model,f=Math.min(u,d),m=Math.min(c,h),g=Math.max(u,d),p=Math.max(c,h);this._relativeSelectionPositionRow=f,this._relativeSelectionPositionColumn=m,this._relativeSelectionRowLength=g-f,this._relativeSelectionColumnLength=p-m,n===Yn.NORTH_WEST_RESIZE?(this._relativeSelectionPositionRow=g,this._relativeSelectionPositionColumn=p):n===Yn.NORTH_RESIZE?this._relativeSelectionPositionRow=g:n===Yn.NORTH_EAST_RESIZE?this._relativeSelectionPositionRow=g:n===Yn.WEST_RESIZE?this._relativeSelectionPositionColumn=p:n===Yn.SOUTH_WEST_RESIZE?this._relativeSelectionPositionColumn=p:n===Yn.SOUTH_RESIZE&&(this._relativeSelectionPositionRow=f);const v=df.create(r);v.startScroll(s,l),this._scrollTimer=v,r.disableObjectsEvent(),this._scenePointerMoveSub=r.onPointerMove$.subscribeEvent(_=>{const{offsetX:C,offsetY:S}=_,{x:b,y}=r.getRelativeToViewportCoord(cn.FromArray([C,S]));this._widgetMoving(b,y,n),r.setCursor(n),v.scrolling(b,y,()=>{this._widgetMoving(b,y,n)})}),this._scenePointerUpSub=r.onPointerUp$.subscribeEvent(()=>{var _,C,S;const b=this._scene;b.resetCursor(),this._clearObserverEvent(),b.enableObjectsEvent(),(_=this._scrollTimer)==null||_.dispose(),this._control.selectionScaled$.next(this._targetSelection),(S=(C=this._selectionHooks).selectionMoveEnd)==null||S.call(C)})}_widgetMoving(e,n,r){const i=this._scene,a=i.getVpScrollXYInfoByPosToVp(cn.FromArray([this._startOffsetX,this._startOffsetY])),{scaleX:o,scaleY:s}=i.getAncestorScale(),l=this._skeleton.getCellPositionByOffset(e,n,o,s,a),{row:u,column:c}=l,{rowHeaderWidth:d,columnHeaderHeight:h}=this._skeleton;let f=this._relativeSelectionPositionRow,m=this._relativeSelectionPositionColumn,g=u,p=c;r===Yn.NORTH_WEST_RESIZE?(f=u,m=c,g=this._relativeSelectionPositionRow,p=this._relativeSelectionPositionColumn):r===Yn.NORTH_RESIZE?(f=u,m=this._relativeSelectionPositionColumn,g=this._relativeSelectionPositionRow,p=this._relativeSelectionPositionColumn+this._relativeSelectionColumnLength):r===Yn.NORTH_EAST_RESIZE?(f=u,m=this._relativeSelectionPositionColumn,g=this._relativeSelectionPositionRow,p=c):r===Yn.WEST_RESIZE?(f=this._relativeSelectionPositionRow,m=c,g=this._relativeSelectionPositionRow+this._relativeSelectionRowLength,p=this._relativeSelectionPositionColumn):r===Yn.EAST_RESIZE?g=this._relativeSelectionPositionRow+this._relativeSelectionRowLength:r===Yn.SOUTH_WEST_RESIZE?(f=this._relativeSelectionPositionRow,m=c,g=u,p=this._relativeSelectionPositionColumn):r===Yn.SOUTH_RESIZE&&(f=this._relativeSelectionPositionRow,m=this._relativeSelectionPositionColumn,g=u,p=this._relativeSelectionPositionColumn+this._relativeSelectionColumnLength);const{startRow:v,startColumn:_,endRow:C,endColumn:S}=this._swapPositions(f,m,g,p),b=this._skeleton.getNoMergeCellPositionByIndex(v,_),y=this._skeleton.getNoMergeCellPositionByIndex(C,S),A=(b==null?void 0:b.startY)||0,w=(y==null?void 0:y.endY)||0,P=(b==null?void 0:b.startX)||0,M=(y==null?void 0:y.endX)||0;this._targetSelection={startY:A,endY:w,startX:P,endX:M,startRow:f,endRow:g,startColumn:m,endColumn:p},this._control.update(this._targetSelection,d,h,this._control.currentStyle),this._control.clearHighlight(),this._control.selectionScaling$.next(this._targetSelection)}_initialFill(){const{fillControl:e}=this._control;e.onPointerEnter$.subscribeEvent(n=>{this._injector.get(Ds).interceptor.fetchThroughInterceptors(oY)(!1,{x:n.offsetX,y:n.offsetY,skeleton:this._skeleton,scene:this._scene})&&e.setCursor(Yn.CROSSHAIR)}),e.onPointerLeave$.subscribeEvent(()=>{e.resetCursor()}),e.onPointerDown$.subscribeEvent(this._fillEvent.bind(this))}_fillMoving(e,n){var r,i,a;const o=this._scene,s=o.getViewportScrollXY(this._activeViewport),{scaleX:l,scaleY:u}=o.getAncestorScale(),c=this._skeleton.getCellPositionByOffset(e,n,l,u,s),{row:d,column:h}=c,f=o.getRelativeToViewportCoord(cn.FromArray([e,n])),m=this._skeleton.getRowCount()-1,g=this._skeleton.getColumnCount()-1;let p=this._relativeSelectionPositionRow,v=this._relativeSelectionPositionColumn,_=this._relativeSelectionPositionRow+this._relativeSelectionRowLength,C=this._relativeSelectionPositionColumn+this._relativeSelectionColumnLength,S=!1,b=!0;if((h<v||h>C)&&d>=p&&d<=_){const O=this._fillRuler(h,v,C,this._relativeSelectionColumnLength,g);v=O.startRowOrColumn,C=O.endRowOrColumn,S=O.isLighten,b=!1}else if((d<p||d>_)&&h>=v&&h<=C){const O=this._fillRuler(d,p,_,this._relativeSelectionRowLength,m);p=O.startRowOrColumn,_=O.endRowOrColumn,S=O.isLighten}else if(Math.abs(this._startOffsetX-f.x-s.x)/2>Math.abs(this._startOffsetY-f.y-s.y)){const O=this._fillRuler(h,v,C,this._relativeSelectionColumnLength,g);v=O.startRowOrColumn,C=O.endRowOrColumn,S=O.isLighten,b=!1}else{const O=this._fillRuler(d,p,_,this._relativeSelectionRowLength,m);p=O.startRowOrColumn,_=O.endRowOrColumn,S=O.isLighten}const y=this._skeleton.getNoMergeCellPositionByIndex(p,v),A=this._skeleton.getNoMergeCellPositionByIndex(_,C),w=(y==null?void 0:y.startY)||0,P=(A==null?void 0:A.endY)||0,M=(y==null?void 0:y.startX)||0,L=(A==null?void 0:A.endX)||0;S?this._controlHandler((O,$)=>{const B=new Zs(this._fillControlColors[$]).lighten(bqt).toRgbString();O.setProps({fill:B})}):this._controlHandler((O,$)=>{O.setProps({fill:this._fillControlColors[$]})});const k=iP/this._getScale();p===_&&b===!0||v===C&&b===!1?(r=this._helperSelection)==null||r.hide():((i=this._helperSelection)==null||i.transformByState({left:M-k/2,top:w-k/2,width:L-M,height:P-w}),(a=this._helperSelection)==null||a.show()),this._targetSelection={startY:w,endY:P,startX:M,endX:L,startRow:p,endRow:_,startColumn:v,endColumn:C},this._control.selectionFilling$.next(this._targetSelection)}_fillEvent(e){const{offsetX:n,offsetY:r}=e,i=this._scene,a=i.getRelativeToViewportCoord(cn.FromArray([n,r])),{x:o,y:s}=a;this._startOffsetX=o,this._startOffsetY=s;const{startRow:l,startColumn:u,endRow:c,endColumn:d}=this._control.model;this._isInMergeState=this._hasMergeInRange(l,u,c,d),this._relativeSelectionPositionRow=l,this._relativeSelectionPositionColumn=u,this._relativeSelectionRowLength=c-l,this._relativeSelectionColumnLength=d-u;const h=this._control.currentStyle;let f=h==null?void 0:h.stroke,m=h==null?void 0:h.strokeWidth;const g=mf(this._themeService);f==null&&(f=g.stroke),m==null&&(m=g.strokeWidth);const p=this._getScale();m/=p;const v=iP/p,_=new Zs(f).darken(2).toRgbString();this.isHelperSelection&&(this._helperSelection=new ur(Qle,{stroke:_,strokeWidth:m+v/2}),i.addObject(this._helperSelection)),this._activeViewport=i.getActiveViewportByCoord(cn.FromArray([n,r]));const C=i.getViewport(an.VIEW_MAIN),S=df.create(i,this._activeViewport.viewportKey===an.VIEW_MAIN?Rs.ALL:Rs.NONE);S.startScroll(o,s,C),this._scrollTimer=S,i.disableObjectsEvent(),this._controlHandler(b=>{this._fillControlColors.push(b.fill)}),this._scenePointerMoveSub=i.onPointerMove$.subscribeEvent(b=>{var y;const{offsetX:A,offsetY:w}=b,P=i.getActiveViewportByCoord(cn.FromArray([A,w]));if(!this._injector.get(Ds).interceptor.fetchThroughInterceptors(oY)(!1,{x:e.offsetX,y:e.offsetY,skeleton:this._skeleton,scene:this._scene}))return;const{x:M,y:L}=i.getRelativeToViewportCoord(cn.FromArray([A,w]));this._fillMoving(M,L),i.setCursor(Yn.CROSSHAIR);const k=this._targetSelection;if(C&&P&&((y=this._activeViewport)==null?void 0:y.viewportKey)!==(P==null?void 0:P.viewportKey)){let O;k.startRow!==l?(S.scrollTimerType=Rs.Y,O={...k,endRow:k.startRow}):k.endRow!==c?(S.scrollTimerType=Rs.Y,O={...k,startRow:k.endRow}):k.startColumn!==u?(S.scrollTimerType=Rs.X,O={...k,endColumn:k.startColumn}):(S.scrollTimerType=Rs.X,O={...k,startColumn:k.endColumn}),this._isSelectionInViewport(O,P)&&(C.scrollToBarPos({x:S.scrollTimerType===Rs.X?0:void 0,y:S.scrollTimerType===Rs.Y?0:void 0}),this._activeViewport=P)}S.scrolling(M,L,()=>{this._fillMoving(M,L)})}),this._scenePointerUpSub=i.onPointerUp$.subscribeEvent(()=>{var b,y;(b=this._helperSelection)==null||b.dispose();const A=this._scene;A.resetCursor(),this._clearObserverEvent(),A.enableObjectsEvent(),(y=this._scrollTimer)==null||y.dispose(),this._control.refreshSelectionFilled(this._targetSelection),this._isInMergeState=!1,this._controlHandler((w,P)=>{w.setProps({fill:this._fillControlColors[P]})}),this._fillControlColors=[]})}_hasMergeInRange(e,n,r,i){return this._skeleton.worksheet.getMergedCellRange(e,n,r,i).length>0}_swapPositions(e,n,r,i){const a=Math.min(e,r),o=Math.min(n,i),s=Math.max(e,r),l=Math.max(n,i);return{startRow:a,startColumn:o,endRow:s,endColumn:l}}_controlHandler(e){const{leftControl:n,rightControl:r,topControl:i,bottomControl:a,backgroundControlTop:o,backgroundControlMiddleLeft:s,backgroundControlMiddleRight:l,backgroundControlBottom:u,fillControl:c}=this._control,d=[n,r,i,a,o,s,l,u,c];for(let h=0,f=d.length;h<f;h++){const m=d[h];e(m,h)}}_fillRuler(e,n,r,i,a){let o=!1;if(e<n)if(this._isInMergeState&&e<n){const s=n-e,l=i+1,u=Math.ceil(s/l);let c=n-u*l;c<0&&(c=n-(u-1)*l),n=c}else n=e;else if(e>=n&&e<=r)o=!0,this._isInMergeState||(r=e);else if(this._isInMergeState&&e>r){const s=e-r,l=i+1,u=Math.ceil(s/l);let c=r+u*l;c>a&&(c=r+(u-1)*l),r=c}else r=e;return{rowOrColumn:e,startRowOrColumn:n,endRowOrColumn:r,isLighten:o}}_getScale(){const{scaleX:e,scaleY:n}=this._scene.getAncestorScale();return Math.max(e,n)}};N(BHe,"SelectionShapeExtension");let yqt=BHe;function Vf(t,e){const{range:n,primary:r,style:i}=t;return{rangeWithCoord:kne(e,n),primaryWithCoord:r?Ex(r,e):null,style:i}}N(Vf,"attachSelectionWithCoord");function Ex(t,e){const{actualRow:n,actualColumn:r,isMerged:i,isMergedMainCell:a,startRow:o,startColumn:s,endRow:l,endColumn:u}=t,c=e.getNoMergeCellPositionByIndex(n,r),d=e.getNoMergeCellPositionByIndex(o,s),h=e.getNoMergeCellPositionByIndex(l,u);return{actualRow:n,actualColumn:r,isMerged:i,isMergedMainCell:a,startX:c.startX,startY:c.startY,endX:c.endX,endY:c.endY,mergeInfo:{startRow:o,startColumn:s,endRow:l,endColumn:u,startY:(d==null?void 0:d.startY)||0,endY:(h==null?void 0:h.endY)||0,startX:(d==null?void 0:d.startX)||0,endX:(h==null?void 0:h.endX)||0}}}N(Ex,"attachPrimaryWithCoord");const UHe=class extends OD{render(e,n=!1){const r=Ie.now();return super.render(e,n),this._afterRender(r),this}_afterRender(e){this.scene.getEngine().renderFrameTimeMetric$.next(["selectionLayer",Ie.now()-e])}};N(UHe,"SelectionLayer");let Eqt=UHe;const Ds=er("univer.sheet.selection-render-service"),HHe=class extends et{constructor(e,n,r,i){super(),fe(this,"_downObserver"),fe(this,"_scenePointerMoveSub"),fe(this,"_scenePointerUpSub"),fe(this,"_controlFillConfig$",new Pn(null)),fe(this,"controlFillConfig$",this._controlFillConfig$.asObservable()),fe(this,"_selectionControls",[]),fe(this,"_startRangeWhenPointerDown",{startY:0,endY:0,startX:0,endX:0,startRow:-1,endRow:-1,startColumn:-1,endColumn:-1}),fe(this,"_startViewportPosX",0),fe(this,"_startViewportPosY",0),fe(this,"_scrollTimer"),fe(this,"_cancelDownSubscription"),fe(this,"_cancelUpSubscription"),fe(this,"_skeleton"),fe(this,"_scene"),fe(this,"_isHeaderHighlight",!0),fe(this,"_shouldDetectMergedCells",!0),fe(this,"_selectionStyle"),fe(this,"_remainLastEnabled",!1),fe(this,"_skipLastEnabled",!1),fe(this,"_singleSelectionEnabled",!1),fe(this,"_selectionMoveEnd$",new Pn([])),fe(this,"selectionMoveEnd$",this._selectionMoveEnd$.asObservable()),fe(this,"_selectionMoving$",new Zt),fe(this,"selectionMoving$",this._selectionMoving$.asObservable()),fe(this,"_selectionMoveStart$",new Zt),fe(this,"selectionMoveStart$",this._selectionMoveStart$.asObservable()),fe(this,"_selectionMoving",!1),fe(this,"_activeViewport"),fe(this,"interceptor",new Wf({RANGE_MOVE_PERMISSION_CHECK:aY,RANGE_FILL_PERMISSION_CHECK:oY})),fe(this,"_escapeShortcutDisposable",null),this._injector=e,this._themeService=n,this._shortcutService=r,this._sheetSkeletonManagerService=i,this._resetSelectionStyle(),this._initMoving()}get selectionMoving(){return this._selectionMoving}_initMoving(){this.disposeWithMe(this._selectionMoving$.subscribe(()=>{this._selectionMoving=!0})),this.disposeWithMe(this._selectionMoveEnd$.subscribe(()=>{this._selectionMoving=!1}))}_setSelectionStyle(e){this._selectionStyle=e}_resetSelectionStyle(){this._setSelectionStyle(mf(this._themeService))}getViewPort(){return this._activeViewport}setSingleSelectionEnabled(e=!1){this._singleSelectionEnabled=e}_addSelectionControlBySelectionData(e){var n;const r=this._skeleton,i=(n=e.style)!=null?n:mf(this._themeService),a=this._scene;if(!a||!r)return;const{rangeWithCoord:o,primaryWithCoord:s}=e,{rangeType:l}=o,u=this.newSelectionControl(a,l||it.NORMAL,r);new yqt(u,r,a,this._themeService,this._injector,{selectionMoveEnd:N(()=>{this._selectionMoveEnd$.next(this.getSelectionDataWithStyle())},"selectionMoveEnd")});const{rowHeaderWidth:c,columnHeaderHeight:d}=r;u.update(o,c,d,i,s)}newSelectionControl(e,n,r){const i=this.getSelectionControls().length,{rowHeaderWidth:a,columnHeaderHeight:o}=r,s=new yx(e,i,this._themeService,this._isHeaderHighlight,{rowHeaderWidth:a,columnHeaderHeight:o});return this._selectionControls.push(s),s}updateControlForCurrentByRangeData(e){const n=this.getSelectionControls();if(!(!n||this._skeleton==null))for(let r=0,i=e.length;r<i;r++){const{rangeWithCoord:a,primaryWithCoord:o}=e[r],s=n[r];s&&s.updateRange(a,o)}}refreshSelectionMoveStart(){this._selectionMoveStart$.next(this.getSelectionDataWithStyle())}_changeRuntime(e,n,r){this._skeleton=e,this._scene=n,this._activeViewport=r||(n==null?void 0:n.getViewports()[0]),n.findLayerByZIndex(oP)||n.addLayer(new Eqt(n,[],oP))}getSkeleton(){return this._skeleton}getSelectionDataWithStyle(){const e=this._selectionControls,[n,r]=this._skeleton.getLocation();return e.map(i=>{const a=i.getValue();return a.rangeWithCoord.sheetId=r,a.rangeWithCoord.unitId=n,a})}getSelectionControls(){return this._selectionControls}_clearSelectionControls(){const e=this._selectionControls;for(const n of e)n.dispose();this._selectionControls.length=0}_getFreeze(){var e;return(e=this._sheetSkeletonManagerService.getCurrent())==null?void 0:e.skeleton.getWorksheetConfig().freeze}_getViewportByCell(e,n){if(e===void 0||n===void 0)return null;const r=this._getFreeze();if(!r||r.startRow<=0&&r.startColumn<=0)return this._scene.getViewport(an.VIEW_MAIN);if(e>r.startRow&&n>r.startColumn)return this._scene.getViewport(an.VIEW_MAIN);if(e<=r.startRow&&n<=r.startColumn)return this._scene.getViewport(an.VIEW_MAIN_LEFT_TOP);if(e<=r.startRow&&n>r.startColumn)return this._scene.getViewport(an.VIEW_MAIN_TOP);if(e>r.startRow&&n<=r.startColumn)return this._scene.getViewport(an.VIEW_MAIN_LEFT)}getActiveRange(){const e=this.getSelectionControls(),n=e&&e[e.length-1].model;return n&&{startRow:n.startRow,startColumn:n.startColumn,endRow:n.endRow,endColumn:n.endColumn}}getActiveSelectionControl(){const e=this.getSelectionControls();if(e)return e[e.length-1]}endSelection(){var e;this._clearUpdatingListeners(),this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()),(e=this._escapeShortcutDisposable)==null||e.dispose(),this._escapeShortcutDisposable=null}_reset(){var e;this._clearSelectionControls(),(e=this._downObserver)==null||e.unsubscribe(),this._downObserver=null}resetAndEndSelection(){this.endSelection(),this._reset()}_onPointerDown(e,n=0,r=it.NORMAL,i,a=Rs.ALL){var o;this._shouldDetectMergedCells=r===it.NORMAL;const s=this._skeleton,l=this._scene;if(!l||!s)return;i&&(this._activeViewport=i);const{offsetX:u,offsetY:c}=e,d=l.getViewport(an.VIEW_MAIN);if(!d)return;const h=l.getRelativeToViewportCoord(cn.FromArray([u,c]));let{x:f,y:m}=h;this._startViewportPosX=f,this._startViewportPosY=m;const g=l.getVpScrollXYInfoByPosToVp(h),{scaleX:p,scaleY:v}=l.getAncestorScale(),_=this._getCellRangeByCursorPosition(f,m,p,v,g);if(!_)return;const{rangeWithCoord:C,primaryWithCoord:S}=_,b={...C,rangeType:r};this._startRangeWhenPointerDown={...C,rangeType:r};let y=this.getActiveSelectionControl();const A=this.getSelectionControls();for(const L of A){if(e.button===2&&L.model.isInclude(b)){y=L;return}if(L.model.isEqual(b)){y=L;break}e.shiftKey||L.clearHighlight()}this._checkClearPreviousControls(e);const w=y==null?void 0:y.model.currentCell,P=e.shiftKey&&w,M=this._remainLastEnabled&&!e.ctrlKey&&!e.shiftKey&&!this._skipLastEnabled&&!this._singleSelectionEnabled;P&&w?this._performSelectionByTwoCells(w,b,s,r,y):M&&y?this._updateSelectionControlByRange(y,b,S):(y=this.newSelectionControl(l,r,s),this._updateSelectionControlByRange(y,b,S)),this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),l.disableObjectsEvent(),this._clearUpdatingListeners(),this._addEndingListeners(),(o=l.getTransformer())==null||o.clearSelectedObjects(),(r===it.ROW||r===it.COLUMN)&&(r===it.ROW?f=0:r===it.COLUMN&&(m=0),this._movingHandler(f,m,y,r)),this._setupPointerMoveListener(d,y,r,a,f,m),this._escapeShortcutDisposable=this._shortcutService.forceEscape(),this._scenePointerUpSub=l.onPointerUp$.subscribeEvent(()=>{var L;this._clearUpdatingListeners(),this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()),(L=this._escapeShortcutDisposable)==null||L.dispose(),this._escapeShortcutDisposable=null})}_setupPointerMoveListener(e,n,r,i=Rs.ALL,a,o){var s,l;let u=0,c=0,d=a,h=o;this._scrollTimer=df.create(this._scene,i),this._scrollTimer.startScroll((s=e==null?void 0:e.left)!=null?s:0,(l=e==null?void 0:e.top)!=null?l:0,e);const f=this._scene,m=f.getActiveViewportByCoord(cn.FromArray([a,o]));this._scenePointerMoveSub=f.onPointerMove$.subscribeEvent(g=>{var p,v,_,C,S,b,y,A,w;const{offsetX:P,offsetY:M}=g,{x:L,y:k}=f.getRelativeToViewportCoord(cn.FromArray([P,M]));this._movingHandler(L,k,n,r);let O=L,$=k;const B=this.getActiveSelectionControl(),V=this._getFreeze(),X=B==null?void 0:B.model,z=(p=f.getActiveViewportByCoord(cn.FromArray([P,M])))!=null?p:this._getViewportByCell(X==null?void 0:X.endRow,X==null?void 0:X.endColumn);if(N(()=>{if(!m||!z||!e)return!1;const F=[an.VIEW_MAIN,an.VIEW_MAIN_LEFT_TOP,an.VIEW_MAIN_TOP,an.VIEW_MAIN_LEFT];return F.includes(m.viewportKey)&&F.includes(z.viewportKey)},"isCrossableViewports")()){if(!m||!z||!e)return!1;const F=d<e.left&&L>e.left||d>e.left&&L<e.left,H=h<e.top&&k>e.top||h>e.top&&k<e.top;F&&(u+=1),H&&(c+=1);const W=m.viewportKey,K=z.viewportKey;if(W===an.VIEW_ROW_TOP)M<e.top&&((v=X==null?void 0:X.endRow)!=null?v:0)<((_=V==null?void 0:V.startRow)!=null?_:0)?$=e.top:H&&c%2===1&&e.scrollToViewportPos({viewportScrollY:0});else if(W===an.VIEW_COLUMN_LEFT)P<e.left&&((C=X==null?void 0:X.endColumn)!=null?C:0)<((S=V==null?void 0:V.startColumn)!=null?S:0)?O=e.left:F&&u%2===1&&e.scrollToViewportPos({viewportScrollX:0});else if(W===K){let G=!1,te=!1;W===an.VIEW_MAIN_LEFT_TOP?(G=!0,te=!0):W===an.VIEW_MAIN_TOP?te=!0:W===an.VIEW_MAIN_LEFT&&(G=!0),((b=X==null?void 0:X.endRow)!=null?b:0)>((y=V==null?void 0:V.startRow)!=null?y:0)&&(te=!1),((A=X==null?void 0:X.endColumn)!=null?A:0)>((w=V==null?void 0:V.startColumn)!=null?w:0)&&(G=!1),G&&(O=e.left),te&&($=e.top)}else{const G={x:m.scrollX,y:m.scrollY},te={x:z.scrollX,y:z.scrollY},Y=G.x!==te.x&&F&&u%2===1,ae=G.y!==te.y&&H&&c%2===1;(Y||ae)&&(e.scrollToBarPos({x:Y?G.x:void 0,y:ae?G.y:void 0}),Y||(O=e.left),ae||($=e.top)),(W===an.VIEW_MAIN_LEFT_TOP&&K===an.VIEW_MAIN_LEFT||K===an.VIEW_MAIN_LEFT_TOP&&W===an.VIEW_MAIN_LEFT)&&(O=e.left),(W===an.VIEW_MAIN_LEFT_TOP&&K===an.VIEW_MAIN_TOP||K===an.VIEW_MAIN_LEFT_TOP&&W===an.VIEW_MAIN_TOP)&&($=e.top)}d=L,h=k}this._scrollTimer.scrolling(O,$,()=>{this._movingHandler(L,k,n,r)})})}attachSelectionWithCoord(e){return Vf(e,this._skeleton)}attachPrimaryWithCoord(e){return Ex(e,this._skeleton)}getSelectionCellByPosition(e,n){const r=this._scene,i=this._skeleton,a=r.getViewportScrollXY(r.getViewport(an.VIEW_MAIN)),{scaleX:o,scaleY:s}=r.getAncestorScale();return i.calculateCellIndexByPosition(e,n,o,s,a)}_movingHandler(e,n,r,i){var a,o,s,l,u;const c=this._skeleton,d=this._scene,[h,f]=c.getLocation(),m={startRow:(a=r==null?void 0:r.model.startRow)!=null?a:-1,endRow:(o=r==null?void 0:r.model.endRow)!=null?o:-1,startColumn:(s=r==null?void 0:r.model.startColumn)!=null?s:-1,endColumn:(l=r==null?void 0:r.model.endColumn)!=null?l:-1},g=d.getViewport(an.VIEW_MAIN),p=(u=this._getViewportByCell(m.endRow,m.endColumn))!=null?u:g,v=d.getVpScrollXYInfoByPosToVp(cn.FromArray([this._startViewportPosX,this._startViewportPosY]),p),{scaleX:_,scaleY:C}=d.getAncestorScale();i===it.ROW?e=Number.POSITIVE_INFINITY:i===it.COLUMN&&(n=Number.POSITIVE_INFINITY);const S=this._getCellRangeByCursorPosition(e,n,_,C,v);if(!S)return;const{rangeWithCoord:b}=S,y=this._startRangeWhenPointerDown;let A={startRow:Math.min(b.startRow,y.startRow),startColumn:Math.min(b.startColumn,y.startColumn),endRow:Math.max(b.endRow,y.endRow),endColumn:Math.max(b.endColumn,y.endColumn)};if(this._shouldDetectMergedCells&&(A=c.getSelectionMergeBounding(A.startRow,A.startColumn,A.endRow,A.endColumn)),!A)return;const w=c.getNoMergeCellPositionByIndex(A.startRow,A.startColumn),P=c.getNoMergeCellPositionByIndex(A.endRow,A.endColumn),M={startRow:A.startRow,startColumn:A.startColumn,endRow:A.endRow,endColumn:A.endColumn,unitId:h,sheetId:f,startY:(w==null?void 0:w.startY)||0,endY:(P==null?void 0:P.endY)||0,startX:(w==null?void 0:w.startX)||0,endX:(P==null?void 0:P.endX)||0},L=m.startRow!==A.startRow||m.startColumn!==A.startColumn||m.endRow!==A.endRow||m.endColumn!==A.endColumn;r!=null&&L&&(this._updateSelectionControlByRange(r,M),this._selectionMoving$.next(this.getSelectionDataWithStyle()))}_updateSelectionControlByRange(e,n,r){e.updateRange(n,r)}_clearUpdatingListeners(){var e,n,r,i,a;this._scene.enableObjectsEvent(),(e=this._scenePointerMoveSub)==null||e.unsubscribe(),this._scenePointerMoveSub=null,(n=this._scenePointerUpSub)==null||n.unsubscribe(),this._scenePointerUpSub=null,(r=this._cancelDownSubscription)==null||r.unsubscribe(),this._cancelDownSubscription=null,(i=this._cancelUpSubscription)==null||i.unsubscribe(),this._cancelUpSubscription=null,(a=this._scrollTimer)==null||a.dispose()}_addEndingListeners(){var e,n,r;const i=this._scene,a=(e=i.getEngine())==null?void 0:e.activeScene;!a||a===i||((n=this._cancelDownSubscription)==null||n.unsubscribe(),this._cancelDownSubscription=null,(r=this._cancelUpSubscription)==null||r.unsubscribe(),this._cancelUpSubscription=null,this._cancelDownSubscription=a.onPointerDown$.subscribeEvent(()=>this._clearUpdatingListeners()),this._cancelUpSubscription=a.onPointerUp$.subscribeEvent(()=>this._clearUpdatingListeners()))}_getCellRangeByCursorPosition(e,n,r,i,a){var o;if(this._shouldDetectMergedCells){const v=(o=this._skeleton)==null?void 0:o.calculateCellIndexByPosition(e,n,r,i,a);if(!v)return;const _=GP(v);return{primaryWithCoord:v,rangeWithCoord:_}}const s=this._skeleton;if(s==null)return;const l=s.getCellPositionByOffset(e,n,r,i,a),{row:u,column:c}=l,d=s.getNoMergeCellPositionByIndex(u,c),{startX:h,startY:f,endX:m,endY:g}=d,p={startY:f,endY:g,startX:h,endX:m,startRow:u,endRow:u,startColumn:c,endColumn:c};return{primaryWithCoord:{actualRow:u,actualColumn:c,isMerged:!1,isMergedMainCell:!1,startY:f,endY:g,startX:h,endX:m,mergeInfo:p},rangeWithCoord:p}}_checkClearPreviousControls(e){this.getSelectionControls().length!==0&&(!e.ctrlKey&&!e.shiftKey&&!this._remainLastEnabled||this._singleSelectionEnabled&&!e.shiftKey)&&this._clearSelectionControls()}_performSelectionByTwoCells(e,n,r,i,a){const{actualRow:o,actualColumn:s,mergeInfo:l}=e,u=Math.min(o,n.startRow,l.startRow),c=Math.max(o,n.endRow,l.endRow),d=Math.min(s,n.startColumn,l.startColumn),h=Math.max(s,n.endColumn,l.endColumn),f=r.getMergeBounding(u,d,c,h),m=r.getNoMergeCellPositionByIndex(f.startRow,f.startColumn),g=r.getNoMergeCellPositionByIndex(f.endRow,f.endColumn),p={startColumn:f.startColumn,startRow:f.startRow,endColumn:f.endColumn,endRow:f.endRow,startY:m.startY,endY:g.endY,startX:m.startX,endX:g.endX,rangeType:i},v=r.getCellByIndex(o,s);this._startRangeWhenPointerDown={startColumn:v.mergeInfo.startColumn,startRow:v.mergeInfo.startRow,endColumn:v.mergeInfo.endColumn,endRow:v.mergeInfo.endRow,startY:v.mergeInfo.startY||0,endY:v.mergeInfo.endY||0,startX:v.mergeInfo.startX||0,endX:v.mergeInfo.endX||0,rangeType:i},this._updateSelectionControlByRange(a,p,e)}_refreshSelectionControl(e){const n=e.map(r=>{const i=Vf(r,this._skeleton);return i.style=mf(this._themeService),i});this.updateControlForCurrentByRangeData(n)}};N(HHe,"BaseSelectionRenderService");let qne=HHe;function Rx(t){return{range:{startRow:0,startColumn:0,endRow:t.getRowCount()-1,endColumn:t.getColumnCount()-1,rangeType:it.ALL},primary:Ax(t).primary,style:null}}N(Rx,"getAllSelection");function Ax(t){const e=t.mergeData;return gHe(0,0,e)||{range:{startRow:0,startColumn:0,endRow:0,endColumn:0},primary:{actualRow:0,actualColumn:0,startRow:0,startColumn:0,endRow:0,endColumn:0,isMerged:!1,isMergedMainCell:!1},style:null}}N(Ax,"getTopLeftSelection");var Rqt=Object.defineProperty,Aqt=Object.getOwnPropertyDescriptor,wqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Aqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Rqt(e,n,i),i},"__decorateClass$O"),F3=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$N");const Dqt=_s("BEFORE_CELL_EDIT"),Iqt=_s("AFTER_CELL_EDIT"),Pqt=_s("AFTER_CELL_EDIT_ASYNC");var cV;let lY=(cV=class extends et{constructor(t,e,n,r,i,a){super(),fe(this,"_editorUnitId",Yo),fe(this,"_isForceKeepVisible",!1),fe(this,"_editorIsDirty",!1),fe(this,"_visible",{visible:!1,eventType:$i.Dblclick,unitId:""}),fe(this,"_currentEditCell",null),fe(this,"_currentEditCellState",null),fe(this,"_currentEditCellState$",new Pn(null)),fe(this,"currentEditCellState$",this._currentEditCellState$.asObservable()),fe(this,"_visible$",new Pn(this._visible)),fe(this,"visible$",this._visible$.asObservable()),fe(this,"_afterVisible$",new Pn(this._visible)),fe(this,"afterVisible$",this._afterVisible$.asObservable()),fe(this,"interceptor",new Wf({BEFORE_CELL_EDIT:Dqt,AFTER_CELL_EDIT:Iqt,AFTER_CELL_EDIT_ASYNC:Pqt})),this._renderManagerService=t,this._themeService=e,this._univerInstanceService=n,this._editorService=r,this._refSelectionsService=i,this._contextService=a,this.disposeWithMe($t(()=>{this._currentEditCellState$.complete(),this._currentEditCell=null})),this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().AFTER_CELL_EDIT,{priority:-1,handler:N(o=>o,"handler")})),this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,{priority:-1,handler:N(o=>o,"handler")})),this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().AFTER_CELL_EDIT_ASYNC,{priority:-1,handler:N(o=>o,"handler")})),this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(o=>{var s;o.getUnitId()===((s=this._currentEditCellState)==null?void 0:s.unitId)&&this._clearCurrentEditCellState()})}refreshEditCellState(){const t=this.getLatestEditCellState();this._currentEditCellState=t,this._currentEditCellState$.next(t)}setEditCell(t){this._currentEditCell=t,this._editorService.getFocusEditor()||(this._editorService.focus(Yo),this._contextService.setContextValue(ha,!1),this._contextService.setContextValue(Dg,!1),this._contextService.setContextValue(S4,!1));const e=this.getLatestEditCellState();this._currentEditCellState=e,this._currentEditCellState$.next(e)}_clearCurrentEditCellState(){this._currentEditCellState=null,this._currentEditCellState$.next(null)}getEditCellState(){return this._currentEditCellState}getLatestEditCellState(){var t,e,n;const r=this._currentEditCell;if(r==null)return;const i=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_SHEET);if(!i)return;const a=i.with(Gr).getCurrentSkeleton(),o=i.with(Ds);if(!a)return;const{primary:s,unitId:l,sheetId:u,scene:c,engine:d}=r,{startRow:h,startColumn:f}=s,m=Ex(s,a);if(m==null)return;const g=GP(m),p=$te(d);let{startX:v,startY:_,endX:C,endY:S}=g;const{scaleX:b,scaleY:y}=c.getAncestorScale(),A=c.getViewportScrollXY(o.getViewPort());v=a.convertTransformToOffsetX(v,b,A),_=a.convertTransformToOffsetY(_,y,A),C=a.convertTransformToOffsetX(C,b,A),S=a.convertTransformToOffsetY(S,y,A);const w=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),P=w.getActiveSheet();if(!P)return;const M={workbook:w,worksheet:P,unitId:w.getUnitId(),subUnitId:P.getSheetId(),row:h,col:f,origin:P.getCellRaw(h,f)},L=this.interceptor.fetchThroughInterceptors(this.interceptor.getInterceptPoints().BEFORE_CELL_EDIT)(P.getCell(h,f),M);let k=L&&a.getCellDocumentModelWithFormula(L);const O=(t=k==null?void 0:k.documentModel)==null?void 0:t.documentStyle.renderConfig;if(O!=null&&(O.cellValueType=rr.STRING),!k||k.documentModel==null){const $=a.getBlankCellDocumentModel(L);if(k!=null){const{verticalAlign:B,horizontalAlign:V,wrapStrategy:X,textRotation:z,fill:F}=k,{centerAngle:H,vertexAngle:W}=Qm(z);$.documentModel.documentStyle.renderConfig={verticalAlign:B,horizontalAlign:V,wrapStrategy:X,background:{rgb:F},centerAngle:H,vertexAngle:W}}k=$}if(k.fill=k.fill||"#fff",(e=k.documentModel)==null||e.setZoomRatio(Math.max(b,y)),(L==null?void 0:L.isInArrayFormulaRange)===!0){const $=(n=k.documentModel)==null?void 0:n.getBody();$&&($.textRuns=[{st:0,ed:$.dataStream.length-2,ts:{cl:{rgb:this._themeService.getCurrentTheme().textColorSecondary}}}])}return this._editorService.setOperationSheetUnitId(l),this._editorService.setOperationSheetSubUnitId(u),{position:{startX:v,startY:_,endX:C,endY:S},scaleX:b,scaleY:y,canvasOffset:p,row:h,column:f,unitId:l,sheetId:u,documentLayoutObject:k,editorUnitId:this._editorUnitId,isInArrayFormulaRange:L==null?void 0:L.isInArrayFormulaRange}}getCurrentEditorId(){return this._editorUnitId}changeVisible(t){const e=this._editorService.getFocusEditor();this._refSelectionsService.getCurrentSelections().length>0&&e&&!e.isSheetEditor()||(this._visible=t,t.visible&&(this._editorIsDirty=!1),this._visible$.next(this._visible),this._afterVisible$.next(this._visible))}isVisible(){return this._visible}enableForceKeepVisible(){this._isForceKeepVisible=!0}disableForceKeepVisible(){this._isForceKeepVisible=!1}isForceKeepVisible(){return this._isForceKeepVisible}changeEditorDirty(t){this._editorIsDirty=t}getEditorDirty(){return this._editorIsDirty}},N(cV,"EditorBridgeService"),cV);lY=wqt([F3(0,Sr),F3(1,se(Ja)),F3(2,Ce),F3(3,Fo),F3(4,tb),F3(5,ui)],lY);const Zl=er("univer.sheet-editor-bridge.service"),Mqt=N((t,e)=>{var n,r,i,a,o;const s=e.findNodePositionByCharIndex(t.startOffset,!1,t.segmentId,-1),l=e.getSkeletonData();let u=t.endOffset;if(t.segmentId){const m=(o=Array.from((r=(n=l==null?void 0:l.skeFooters.get(t.segmentId))==null?void 0:n.values())!=null?r:[])[0])!=null?o:Array.from((a=(i=l==null?void 0:l.skeHeaders.get(t.segmentId))==null?void 0:i.values())!=null?a:[])[0];m&&(u=Math.min(m.ed,u))}const c=e.findNodePositionByCharIndex(u,!1,t.segmentId,-1);if(!c||!s)return;const d={docsLeft:0,docsTop:0,pageMarginLeft:0,pageMarginTop:0},h=new hh(d,e),{borderBoxPointGroup:f}=h.getRangePointData(s,c);return o9(f).map(m=>({top:m.top,bottom:m.bottom,left:m.left,right:m.right}))},"calcDocRangePositions"),Tqt=N((t,e,n=-1)=>{const r=e.findPositionByGlyph(t,n);if(!r)return;const i={...r,isBack:!0},a={docsLeft:0,docsTop:0,pageMarginLeft:0,pageMarginTop:0},o=new hh(a,e),{borderBoxPointGroup:s}=o.getRangePointData(i,i),l=o9(s)[0];return{top:l.top,bottom:l.bottom,left:l.left,right:l.left}},"calcDocGlyphPosition"),Lqt=N((t,e,n=0,r=0)=>{const i=Mqt({startOffset:e.startIndex,endOffset:e.endIndex+1,collapsed:!1},t);if(i)return{rects:i.map(a=>({top:a.top+r,bottom:a.bottom+r,left:a.left+n,right:a.right+n})),range:e}},"calcLinkPosition"),xqt=N((t,e,n=0,r=0)=>{var i,a,o;const s=t.findNodeByCharIndex(e.startIndex),l=s==null?void 0:s.parent,u=l==null?void 0:l.parent,c=u==null?void 0:u.parent,d=c==null?void 0:c.lines.find(m=>m.paragraphStart&&m.paragraphIndex===e.startIndex),h=(o=(a=(i=d==null?void 0:d.divides)==null?void 0:i[0])==null?void 0:a.glyphGroup)==null?void 0:o[0];if(!h||!h)return;const f=Tqt(h,t);if(f)return{rect:{top:f.top+r,bottom:f.bottom+r,left:f.left+n,right:f.right+n},segmentId:void 0,segmentPageIndex:-1,paragraph:e}},"calcBulletPosition"),Oqt=N((t,e=0,n=0)=>{var r,i,a,o,s,l;const u=t.getViewModel().getDataModel(),c=(a=(i=(r=u.getBody())==null?void 0:r.customRanges)==null?void 0:i.filter(h=>h.rangeType===cd.HYPERLINK))!=null?a:[],d=(l=(s=(o=u.getBody())==null?void 0:o.paragraphs)==null?void 0:s.filter(h=>{var f;return((f=h.bullet)==null?void 0:f.listType.indexOf(Na.CHECK_LIST))===0}))!=null?l:[];return{links:c.map(h=>Lqt(t,h,e,n)).filter(Boolean),checkLists:d.map(h=>xqt(t,h,e,n)).filter(Boolean)}},"calculateDocSkeletonRects");function Bg(t,e,n,r){const i=e.get(Ce),a=n?i.getUnit(n,le.UNIVER_SHEET):i.getCurrentUnitForType(le.UNIVER_SHEET),o=r?a==null?void 0:a.getSheetBySheetId(r):a==null?void 0:a.getActiveSheet();if(!o)return null;const{startRow:s,endRow:l,startColumn:u,endColumn:c}=t,d=[],h=[];for(let f=s;f<=l;f++)o.getRowFiltered(f)||d.push(f);for(let f=u;f<=c;f++)h.push(f);return{rows:d,cols:h}}N(Bg,"rangeToDiscreteRange");function $0(t){const{rows:e,cols:n}=t;return{startRow:e[0],endRow:e[e.length-1],startColumn:n[0],endColumn:n[n.length-1]}}N($0,"discreteRangeToRange");function Bf(t){let e=[],n=[];const r=[];return t.forEach(i=>{e.push(...i.rows),n.push(...i.cols)}),e=Array.from(new Set(e)).sort((i,a)=>i-a),n=Array.from(new Set(n)).sort((i,a)=>i-a),t.forEach(i=>{r.push({startRow:e.findIndex(a=>a===i.rows[0]),endRow:e.findIndex(a=>a===i.rows[i.rows.length-1]),startColumn:n.findIndex(a=>a===i.cols[0]),endColumn:n.findIndex(a=>a===i.cols[i.cols.length-1])})}),{ranges:r,mapFunc:N((i,a)=>({row:e[i],col:n[a]}),"mapFunc")}}N(Bf,"virtualizeDiscreteRanges");function jHe(t){const e=new Ct;return t.forEach(n=>{const{rows:r,cols:i}=n;r.forEach(a=>{i.forEach(o=>{e.setValue(a,o,{v:null,p:null,f:null,si:null,custom:null})})})}),e.getData()}N(jHe,"generateNullCellValueRowCol");var Nqt=Object.defineProperty,kqt=Object.getOwnPropertyDescriptor,Fqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?kqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Nqt(e,n,i),i},"__decorateClass$N"),t5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$M");const $He=["ff","fs","tr","tb"];var dV;let Ug=(dV=class extends et{constructor(t,e,n,r,i){super(),this._renderManagerService=t,this._injector=e,this._sheetInterceptorService=n,this._selectionManagerService=r,this._univerInstanceService=i,this._initialize()}getUndoRedoParamsOfAutoHeight(t){const{_univerInstanceService:e}=this,n=e.getCurrentUnitForType(le.UNIVER_SHEET),r=n.getActiveSheet(),i=n.getUnitId(),a=r.getSheetId(),o=this._renderManagerService.getRenderById(i).with(Gr);if(!a||!o.getCurrent())return{redos:[],undos:[]};const{skeleton:s}=o.getCurrent(),l=s.calculateAutoHeightInRange(t),u={subUnitId:a,unitId:i,rowsAutoHeightInfo:l},c=qUe(u,r);return{undos:[{id:Nf.id,params:c}],redos:[{id:Nf.id,params:u}]}}_initialize(){const{_sheetInterceptorService:t,_selectionManagerService:e}=this;this.disposeWithMe(t.interceptCommand({getMutations:N(n=>n.id!==Uu.id?{redos:[],undos:[]}:this.getUndoRedoParamsOfAutoHeight(n.params.range),"getMutations")})),this.disposeWithMe(t.interceptCommand({getMutations:N(n=>n.id!==o3.id?{redos:[],undos:[]}:this.getUndoRedoParamsOfAutoHeight(n.params.ranges),"getMutations")})),this.disposeWithMe(t.interceptCommand({getMutations:N(n=>{var r,i;if(n.id!==rs.id)return{redos:[],undos:[]};if(!$He.includes((r=n.params)==null?void 0:r.style.type))return{redos:[],undos:[]};const a=(i=e.getCurrentSelections())==null?void 0:i.map(o=>o.range);return a!=null&&a.length?this.getUndoRedoParamsOfAutoHeight(a):{redos:[],undos:[]}},"getMutations")}))}},N(dV,"AutoHeightController"),dV);Ug=Fqt([yn(Vt.Ready,Ug),t5(0,Sr),t5(1,se(Wn)),t5(2,se(Tr)),t5(3,se(Bt)),t5(4,se(Ce))],Ug);const uY={零:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},sP=["零","一","二","三","四","五","六","七","八","九"],Kle=["","万","亿","万亿","亿亿"],Vqt=["","十","百","千"],WHe={十:{value:10,secUnit:!1},百:{value:100,secUnit:!1},千:{value:1e3,secUnit:!1},万:{value:1e4,secUnit:!0},亿:{value:1e8,secUnit:!0}};function jd(t){if(!t)return 0;let e=0,n=0,r=0,i=!1;const a=t.split("");for(let o=0;o<a.length;o++){const s=uY[a[o]];if(typeof s<"u")r=s,o===a.length-1&&(n+=r);else{const l=WHe[a[o]],u=l.value;i=l.secUnit,i?(n=(n+r)*u,e+=n,n=0):n+=r*u,r=0}}return e+n}N(jd,"chineseToNumber");function zHe(t){let e="",n="",r=0,i=!0;for(;t>0;){const a=t%10;a===0?i||(i=!0,n=sP[a]+n):(i=!1,e=sP[a],e+=Vqt[r],n=e+n),r++,t=Math.floor(t/10)}return n}N(zHe,"sectionToChinese");function qHe(t){let e=0,n="",r="",i=!1;if(t===0)return sP[0];for(;t>0;){const a=t%1e4;i&&(r=sP[0]+r),n=zHe(a),n+=a!==0?Kle[e]:Kle[0],r=n+r,i=a<1e3&&a>0,t=Math.floor(t/1e4),e++}return r}N(qHe,"numberToChinese");function YHe(t){if(!t)return!1;let e=!0;if(t)if(t.length===1)t==="日"||t in uY?e=!0:e=!1;else{const n=t.split("");for(let r=0;r<n.length;r++)if(!(n[r]in uY||n[r]in WHe)){e=!1;break}}return e}N(YHe,"isChnNumber");function t8(t){if(!t)return{isExtendNumber:!1};const e=/0|([1-9]+[0-9]*)/g,n=e.test(t);if(n){const r=t.match(e);if(r&&r.length>0){const i=r[r.length-1],a=t.lastIndexOf(i),o=t.substr(0,a),s=t.substr(a+i.length);return{isExtendNumber:!0,matchTxt:Number(i),beforeTxt:o,afterTxt:s}}return{isExtendNumber:!1}}return{isExtendNumber:n}}N(t8,"matchExtendNumber");function XHe(t){let e;return t.length===2&&(t==="周一"||t==="周二"||t==="周三"||t==="周四"||t==="周五"||t==="周六"||t==="周日")?e=!0:e=!1,e}N(XHe,"isChnWeek2");function GHe(t){let e;return t.length===3&&(t==="星期一"||t==="星期二"||t==="星期三"||t==="星期四"||t==="星期五"||t==="星期六"||t==="星期日")?e=!0:e=!1,e}N(GHe,"isChnWeek3");function QHe(t,e){let n=0;for(let r=0;r<t.length&&t[r]<e;r++)n++;return n}N(QHe,"getLenS");function h9(t){let e=!0;const n=t[1]-t[0];for(let r=1;r<t.length;r++)if(t[r]-t[r-1]!==n){e=!1;break}return e}N(h9,"isEqualDiff");function KHe(t,e,n){const r=[],i=Math.floor(e/t),a=e%t;let o=0;if(i>0){for(let s=0;s<i;s++)for(let l=0;l<n.length;l++)r[n[l]+s*t]=o,o++;for(let s=0;s<n.length&&n[s]<a;s++)r[n[s]+t*i]=o,o++}else for(let s=0;s<n.length&&n[s]<a;s++)r[n[s]]=o,o++;return r}N(KHe,"getDataIndex");function W0(t,e){const n=[];for(let r=1;r<=e;r++){const i=(r-1)%t.length,a=Ie.deepClone(t[i]);n.push({v:null,s:null,p:null,f:null,si:null,t:null,...a})}return n}N(W0,"fillCopy");function ZHe(t,e){var n;const r=[];for(let i=1;i<=e;i++){const a=(i-1)%t.length,o={s:(n=t[a])==null?void 0:n.s};r.push(o)}return r}N(ZHe,"fillCopyStyles");function JHe(t){let e=!0;const n=t[1]/t[0];for(let r=1;r<t.length;r++)if(t[r]/t[r-1]!==n){e=!1;break}return e}N(JHe,"isEqualRatio");function eje(t){const e=[];for(let n=1;n<=t;n++)e.push(n);return e}N(eje,"getXArr");function G_(t,e,n){var r,i,a,o;const s=[],l=[];for(let u=0;u<t.length;u++)l.push(Number((r=t[u])==null?void 0:r.v));if(t.length>2&&JHe(l))for(let u=1;u<=e;u++){const c=(u-1)%t.length,d=Ie.deepClone(t[c]),h=Number((i=t[t.length-1])==null?void 0:i.v)*(Number((a=t[1])==null?void 0:a.v)/Number((o=t[0])==null?void 0:o.v))**u;d&&(fY(d)&&(d.v=h),s.push(d))}else{const u=eje(t.length);for(let c=1;c<=e;c++){const d=(c-1)%t.length,h=Ie.deepClone(t[d]),f=n===ut.DOWN||n===ut.RIGHT,m=tje(t.length+c,l,u,f);h&&(fY(h)&&(h.v=m),s.push(h))}}return s}N(G_,"fillSeries");function tje(t,e,n,r=!0){function i(d){let h=0;for(let f=0;f<d.length;f++)h+=d[f];return h/d.length}N(i,"getAverage");const a=i(n),o=i(e);let s=0,l=0;for(let d=0;d<n.length;d++)s+=(n[d]-a)*(e[d]-o),l+=(n[d]-a)*(n[d]-a);let u;l===0?u=r?1:-1:u=s/l;const c=o-u*a;return Math.round((c+u*t)*1e5)/1e5}N(tje,"forecast");function cY(t,e,n){var r;const i=[],a=/0|([1-9]+[0-9]*)/g;for(let o=1;o<=e;o++){const s=(o-1)%t.length,l=Ie.deepClone(t[s]),u=`${(r=t[t.length-1])==null?void 0:r.v}`,c=u==null?void 0:u.match(a),d=c==null?void 0:c[c.length-1],h=Math.abs(Number(d)+n*o);if(!u||!d)continue;const f=u.lastIndexOf(d),m=u.substr(0,f)+h.toString()+u.substr(f+d.length);l&&(l.v=m,i.push(l))}return i}N(cY,"fillExtendNumber");function Ep(t,e,n,r=0){var i,a;const o=[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]];if(r>=o.length)return[];const s=o[r],l=[];for(let u=1;u<=e;u++){const c=(u-1)%t.length,d=Ie.deepClone(t[c]);let h=0;if(((i=t[t.length-1])==null?void 0:i.v)===s[0])h=7+n*u;else{const m=`${(a=t[t.length-1])==null?void 0:a.v}`;if(m){const g=m.substr(m.length-1,1);h=jd(g)+n*u}}h<0&&(h=Math.ceil(Math.abs(h)/7)*7+h);const f=h%7;d&&(d.v=s[f],l.push(d))}return l}N(Ep,"fillChnWeek");function dY(t,e,n){var r;const i=[];for(let a=1;a<=e;a++){const o=(a-1)%t.length,s=Ie.deepClone(t[o]),l=`${(r=t[t.length-1])==null?void 0:r.v}`,u=jd(l)+n*a;let c;u<=0?c="零":c=qHe(u),s&&(s.v=c,i.push(s))}return i}N(dY,"fillChnNumber");const j8={enWeek1:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],enWeek2:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],enMonth1:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],enMonth2:["January","February","March","April","May","June","July","August","September","October","November","December"],chnMonth1:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],chnMonth2:["正月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","腊月"],chHour1:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],chHour2:["子时","丑时","寅时","卯时","辰时","巳时","午时","未时","申时","酉时","戌时","亥时"],chYear1:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],chSeason1:["春","夏","秋","冬"],chSeason2:["春季","夏季","秋季","冬季"]};function nje(t){let e=!1;return Object.keys(j8).forEach(n=>{j8[n].includes(t)&&(e=!0)}),e}N(nje,"isLoopSeries");function QR(t){let e="";const n=[];return Object.keys(j8).forEach(r=>{j8[r].includes(t)&&(e=r,n.push(...j8[r]))}),{name:e,series:n}}N(QR,"getLoopSeriesInfo");function hY(t,e,n,r){var i;const a=r.length,o=[];for(let s=1;s<=e;s++){const l=(s-1)%t.length,u=Ie.deepClone(t[l]),c=`${(i=t[t.length-1])==null?void 0:i.v}`;let d=r.indexOf(c)+n*s;d<0&&(d+=Math.abs(n)*a);const h=d%a;u&&(u.v=r[h],o.push(u))}return o}N(hY,"fillLoopSeries");function rje(t,e){const n=[];let r;if(e.startRow<t.startRow)r=ut.UP;else if(e.endRow>t.endRow)r=ut.DOWN;else if(e.startColumn<t.startColumn)r=ut.LEFT;else if(e.endColumn>t.endColumn)r=ut.RIGHT;else return[];if(r===ut.DOWN||r===ut.UP){const i=t.endRow-t.startRow+1,a=e.endRow-e.startRow+1,o=Math.floor(a/i),s=a%i,l={startRow:0,startColumn:0,endRow:t.endRow-t.startRow,endColumn:t.endColumn-t.startColumn};if(r===ut.DOWN){for(let u=0;u<o;u++)n.push({repeatStartCell:{row:t.startRow+(u+1)*i,col:t.startColumn},relativeRange:l});s>0&&n.push({repeatStartCell:{row:t.startRow+(o+1)*i,col:t.startColumn},relativeRange:{startRow:0,startColumn:0,endRow:s-1,endColumn:t.endColumn-t.startColumn}})}else{for(let u=0;u<o;u++)n.push({repeatStartCell:{row:t.startRow-(u+1)*i,col:t.startColumn},relativeRange:l});s>0&&n.push({repeatStartCell:{row:t.startRow-(o+1)*i,col:t.startColumn},relativeRange:{startRow:i-s,endRow:i-1,startColumn:0,endColumn:t.endColumn-t.startColumn}})}}if(r===ut.RIGHT||r===ut.LEFT){const i=t.endColumn-t.startColumn+1,a=e.endColumn-e.startColumn+1,o=Math.floor(a/i),s=a%i,l={startRow:0,startColumn:0,endRow:t.endRow-t.startRow,endColumn:t.endColumn-t.startColumn};if(r===ut.RIGHT){for(let u=0;u<o;u++)n.push({repeatStartCell:{row:t.startRow,col:t.startColumn+(u+1)*i},relativeRange:l});s>0&&n.push({repeatStartCell:{row:t.startRow,col:t.startColumn+(o+1)*i},relativeRange:{startRow:0,startColumn:0,endRow:t.endRow-t.startRow,endColumn:s-1}})}else{for(let u=0;u<o;u++)n.push({repeatStartCell:{row:t.startRow,col:t.startColumn-(u+1)*i},relativeRange:l});s>0&&n.push({repeatStartCell:{row:t.startRow,col:t.startColumn-(o+1)*i},relativeRange:{startRow:0,startColumn:i-s,endRow:t.endRow-t.startRow,endColumn:i-1}})}}return n}N(rje,"getAutoFillRepeatRange");function fY(t){return!(Ar(t.f)||Rl(t.si)||t.t===rr.BOOLEAN)}N(fY,"needsUpdateCellValue");var O6=(t=>(t.Append="APPEND",t.Default="DEFAULT",t.Only="ONLY",t))(O6||{}),Oo=(t=>(t.NUMBER="number",t.DATE="date",t.EXTEND_NUMBER="extendNumber",t.CHN_NUMBER="chnNumber",t.CHN_WEEK2="chnWeek2",t.CHN_WEEK3="chnWeek3",t.LOOP_SERIES="loopSeries",t.FORMULA="formula",t.OTHER="other",t))(Oo||{}),Mi=(t=>(t.COPY="COPY",t.SERIES="SERIES",t.ONLY_FORMAT="ONLY_FORMAT",t.NO_FORMAT="NO_FORMAT",t))(Mi||{});const Bqt={type:Oo.DATE,priority:1100,match:N((t,e)=>{var n;if(t!=null&&t.f||t!=null&&t.si)return!1;if((typeof(t==null?void 0:t.v)=="number"||(t==null?void 0:t.t)===rr.NUMBER)&&t.s){if(typeof t.s=="string"){const r=e.get(Ce).getFocusedUnit().getStyles().get(t.s),i=(n=r==null?void 0:r.n)==null?void 0:n.pattern;if(i)return Fi.getInfo(i).isDate}else if(t.s.n&&Fi.getInfo(t.s.n.pattern).isDate)return!0}return!1},"match"),isContinue:N((t,e)=>t.type===Oo.DATE,"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{const{data:r}=t;return n===ut.LEFT||n===ut.UP?(r.reverse(),G_(r,e,n).reverse()):G_(r,e,n)}}},Uqt={type:Oo.NUMBER,priority:1e3,match:N(t=>typeof(t==null?void 0:t.v)=="number"||(t==null?void 0:t.t)===rr.NUMBER,"match"),isContinue:N((t,e)=>t.type===Oo.NUMBER,"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{const{data:r}=t;return n===ut.LEFT||n===ut.UP?(r.reverse(),G_(r,e,n).reverse()):G_(r,e,n)}}},ije={type:Oo.OTHER,priority:0,match:N(()=>!0,"match"),isContinue:N((t,e)=>t.type===Oo.OTHER,"isContinue")},Hqt={type:Oo.EXTEND_NUMBER,priority:900,match:N(t=>t8(`${t==null?void 0:t.v}`||"").isExtendNumber,"match"),isContinue:N((t,e)=>{var n;if(t.type===Oo.EXTEND_NUMBER){const{beforeTxt:r,afterTxt:i}=t8(`${(n=t.cellData)==null?void 0:n.v}`||""),{beforeTxt:a,afterTxt:o}=t8(`${e==null?void 0:e.v}`||"");if(r===a&&i===o)return!0}return!1},"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{var r;const{data:i}=t,a=n===ut.UP||n===ut.LEFT;let o;if(i.length===1)return o=a?-1:1,nc(cY(i,e,o),a);const s=[];for(let l=0;l<i.length;l++){const u=`${(r=i[l])==null?void 0:r.v}`;u&&s.push(Number(t8(u).matchTxt))}return a&&(i.reverse(),s.reverse()),h9(s)?(o=s[1]-s[0],nc(cY(i,e,o),a)):W0(i,e)}}},jqt={type:Oo.CHN_NUMBER,priority:830,match:N(t=>!!YHe(`${t==null?void 0:t.v}`||""),"match"),isContinue:N((t,e)=>t.type===Oo.CHN_NUMBER,"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{var r,i,a;const{data:o}=t,s=n===ut.LEFT||n===ut.UP;if(o.length===1){const d=`${(r=o[0])==null?void 0:r.v}`;let h;return s?h=-1:h=1,d&&(d==="日"||jd(d)<7)?nc(Ep(o,e,h),s):nc(dY(o,e,h),s)}let l=!1;for(let d=0;d<o.length;d++)if(((i=o[d])==null?void 0:i.v)==="日"){l=!0;break}const u=[];let c=0;for(let d=0;d<o.length;d++){const h=`${(a=o[d])==null?void 0:a.v}`;h==="日"?d===0?u.push(0):(c++,u.push(c*7)):l&&jd(h)>0&&jd(h)<7?u.push(jd(h)+c*7):u.push(jd(h))}if(s&&(o.reverse(),u.reverse()),h9(u)){if(l||u[u.length-1]<6&&u[0]>0||u[0]<6&&u[u.length-1]>0){const h=u[1]-u[0];return nc(Ep(o,e,h),s)}const d=u[1]-u[0];return nc(dY(o,e,d),s)}return W0(o,e)}}},$qt={type:Oo.CHN_WEEK2,priority:820,match:N(t=>!!XHe(`${t==null?void 0:t.v}`||""),"match"),isContinue:N((t,e)=>t.type===Oo.CHN_WEEK2,"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{var r;const{data:i}=t,a=n===ut.LEFT||n===ut.UP;if(i.length===1){let l;return a?l=-1:l=1,nc(Ep(i,e,l,1),a)}const o=[];let s=0;for(let l=0;l<i.length;l++){const u=`${(r=i[l])==null?void 0:r.v}`,c=u==null?void 0:u.substr(u.length-1,1);u==="周日"?l===0?o.push(0):(s++,o.push(s*7)):o.push(jd(c)+s*7)}if(a&&(i.reverse(),o.reverse()),h9(o)){const l=o[1]-o[0];return nc(Ep(i,e,l,1),a)}return W0(i,e)}}},Wqt={type:Oo.CHN_WEEK3,priority:810,match:N(t=>GHe(`${t==null?void 0:t.v}`||""),"match"),isContinue:N((t,e)=>t.type===Oo.CHN_WEEK3,"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{var r;const{data:i}=t,a=n===ut.LEFT||n===ut.UP;if(i.length===1){let l;return a?l=-1:l=1,nc(Ep(i,e,l,2),a)}const o=[];let s=0;for(let l=0;l<i.length;l++){const u=`${(r=i[l])==null?void 0:r.v}`;if(u){const c=u.substr(u.length-1,1);u==="星期日"?l===0?o.push(0):(s++,o.push(s*7)):o.push(jd(c)+s*7)}}if(a&&(i.reverse(),o.reverse()),h9(o)){const l=o[1]-o[0];return nc(Ep(i,e,l,2),a)}return W0(i,e)}}},zqt={type:Oo.LOOP_SERIES,priority:800,match:N(t=>nje(`${t==null?void 0:t.v}`||""),"match"),isContinue:N((t,e)=>{var n;return t.type===Oo.LOOP_SERIES?QR(`${(n=t.cellData)==null?void 0:n.v}`||"").name===QR(`${e==null?void 0:e.v}`||"").name:!1},"isContinue"),applyFunctions:{[Mi.SERIES]:(t,e,n)=>{var r,i;const{data:a}=t,o=n===ut.LEFT||n===ut.UP,{series:s}=QR(`${(r=a[0])==null?void 0:r.v}`||"");if(a.length===1){let c;return o?c=-1:c=1,nc(hY(a,e,c,s),o)}const l=[];let u=0;for(let c=0;c<a.length;c++){const d=`${(i=a[c])==null?void 0:i.v}`;d&&(d===s[0]?c===0?l.push(0):(u++,l.push(u*s.length)):l.push(s.indexOf(d)+u*7))}if(o&&(a.reverse(),l.reverse()),h9(l)){const c=l[1]-l[0];return nc(hY(a,e,c,s),o)}return W0(a,e)}}};function nc(t,e){return e?t.reverse():t}N(nc,"reverseIfNeed");var qqt=Object.defineProperty,Yqt=Object.getOwnPropertyDescriptor,Xqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Yqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&qqt(e,n,i),i},"__decorateClass$M"),V3=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$L"),hV;let $8=(hV=class extends et{constructor(t,e,n,r,i,a){super(),fe(this,"_rules",[]),fe(this,"_hooks",[]),fe(this,"_applyType$",new Pn(Mi.SERIES)),fe(this,"_isFillingStyle",!0),fe(this,"_prevUndos",[]),fe(this,"_autoFillLocation$",new Pn(null)),fe(this,"autoFillLocation$",this._autoFillLocation$.asObservable()),fe(this,"_showMenu$",new Pn(!1)),fe(this,"showMenu$",this._showMenu$.asObservable()),fe(this,"_direction",ut.DOWN),fe(this,"applyType$",this._applyType$.asObservable()),fe(this,"_menu$",new Pn([{label:"autoFill.copy",value:Mi.COPY,disable:!1},{label:"autoFill.series",value:Mi.SERIES,disable:!1},{label:"autoFill.formatOnly",value:Mi.ONLY_FORMAT,disable:!1},{label:"autoFill.noFormat",value:Mi.NO_FORMAT,disable:!1}])),fe(this,"menu$",this._menu$.asObservable()),this._commandService=t,this._undoRedoService=e,this._renderManagerService=n,this._univerInstanceService=r,this._selectionManagerService=i,this._injector=a,this._init()}_init(){this._rules=[Bqt,Uqt,Hqt,jqt,$qt,Wqt,zqt,ije].sort((t,e)=>e.priority-t.priority),this._isFillingStyle=!0}_getOneByPriority(t){return t.length<=0?[]:[t.reduce((e,n)=>(n.priority||0)>(e.priority||0)?n:e,t[0])]}initPrevUndo(){this._prevUndos=[]}addHook(t){if(this._hooks.find(e=>e.id===t.id))throw new Error(`Add hook failed, hook id '${t.id}' already exist!`);return t.priority===void 0&&(t.priority=0),t.type===void 0&&(t.type=O6.Append),this._hooks.push(t),$t(()=>{const e=this._hooks.findIndex(n=>n===t);e>-1&&this._hooks.splice(e,1)})}registerRule(t){if(this._rules.find(n=>n.type===t.type))throw new Error(`Registry rule failed, type '${t.type}' already exist!`);const e=this._rules.findIndex(n=>n.priority<t.priority);this._rules.splice(e===-1?this._rules.length:e,0,t)}getRules(){return this._rules}getAllHooks(){return this._hooks}getActiveHooks(){const{source:t,target:e,unitId:n,subUnitId:r}=this.autoFillLocation||{};if(!t||!e||!n||!r)return[];const i=this._hooks.filter(l=>{var u;return!((u=l.disable)!=null&&u.call(l,{source:t,target:e,unitId:n,subUnitId:r},this._direction,this.applyType))}),a=i.filter(l=>l.type===O6.Only);if(a.length>0)return this._getOneByPriority(a);const o=this._getOneByPriority(i.filter(l=>l.type===O6.Default)),s=i.filter(l=>l.type===O6.Append)||[];return[...o,...s]}get applyType(){return this._applyType$.getValue()}set applyType(t){this._applyType$.next(t)}get menu(){return this._menu$.getValue()}get direction(){return this._direction}set direction(t){this._direction=t}isFillingStyle(){return this._isFillingStyle}setFillingStyle(t){this._isFillingStyle=t}get autoFillLocation(){return this._autoFillLocation$.getValue()}set autoFillLocation(t){this._autoFillLocation$.next(t)}setDisableApplyType(t,e){this._menu$.next(this._menu$.getValue().map(n=>n.value===t?{...n,disable:e}:n))}setShowMenu(t){this._showMenu$.next(t)}fillData(t,e){var n,r,i;const{source:a,target:o,unitId:s=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId(),subUnitId:l=(n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet())==null?void 0:n.getSheetId()}=this.autoFillLocation||{},u=this.direction;if(!a||!a.cols.length||!a.rows.length||!o||!o.cols.length||!o.rows.length||s!==t||l!==e)return!1;this._prevUndos.length>0&&this._prevUndos.forEach(_=>{this._commandService.syncExecuteCommand(_.id,_.params)}),this._prevUndos=[];const c=ft.union($0(a),$0(o)),d=this.applyType,h=this.getActiveHooks();this._commandService.syncExecuteCommand(Pr.id,{selections:[{primary:{...(i=(r=this._selectionManagerService.getCurrentLastSelection())==null?void 0:r.primary)!=null?i:c},range:{...c,rangeType:it.NORMAL}}],unitId:s,subUnitId:l});const f=[],m=[];h.forEach(_=>{var C;const{undos:S,redos:b}=((C=_.onFillData)==null?void 0:C.call(_,{source:a,target:o,unitId:s,subUnitId:l},u,d))||{};S&&f.push(...S),b&&m.push(...b)});const g=m.every(_=>this._commandService.syncExecuteCommand(_.id,_.params)),p=[];d!==Mi.NO_FORMAT&&m.forEach(_=>{if(_.id===Mn.id){const{cellValue:C}=_.params;new Ct(C).forValue((S,b,y)=>{const A=Object.keys((y==null?void 0:y.s)||{});A.length&&$He.some(w=>A.includes(w))&&p.push({startRow:S,endRow:S,startColumn:b,endColumn:b})})}});const v=this._getAutoHeightUndoRedos(t,e,p);return v.redos.every(_=>this._commandService.syncExecuteCommand(_.id,_.params))&&(f.push(...v.undos),m.push(...v.redos)),g&&(this._prevUndos=f,this._undoRedoService.pushUndoRedo({unitID:s,undoMutations:f,redoMutations:m})),h.forEach(_=>{var C;(C=_.onAfterFillData)==null||C.call(_,{source:a,target:o,unitId:s,subUnitId:l},u,d)}),this.setShowMenu(!0),!0}_getAutoHeightUndoRedos(t,e,n){var r,i;const a=(r=this._renderManagerService.getRenderById(t))==null?void 0:r.with(Gr),o=(i=a==null?void 0:a.getCurrent())==null?void 0:i.skeleton;if(!o)return{redos:[],undos:[]};const s=o.calculateAutoHeightInRange(n),l={subUnitId:e,unitId:t,rowsAutoHeightInfo:s},u=o.worksheet,c=qUe(l,u);return{undos:[{id:Nf.id,params:c}],redos:[{id:Nf.id,params:l}]}}},N(hV,"AutoFillService"),hV);$8=Xqt([yn(Vt.Rendered,$8),V3(0,me),V3(1,xn),V3(2,Sr),V3(3,se(Ce)),V3(4,se(Bt)),V3(5,se(Wn))],$8);const om=er("univer.auto-fill-service"),s4={type:Se.COMMAND,id:"sheet.command.auto-fill",handler:N(async(t,e)=>t.get(om).fillData(e.unitId,e.subUnitId),"handler")},W8={id:"sheet.command.auto-clear-content",type:Se.COMMAND,handler:N(async(t,e)=>{const n=t.get(Ce),r=t.get(me),i=t.get(xn),a=Dn(n);if(!a)return!1;const{unitId:o,subUnitId:s}=a,{clearRange:l,selectionRange:u}=e,c={subUnitId:s,unitId:o,cellValue:tne([l])},d=No(t,c),{startColumn:h,startRow:f}=u;return r.executeCommand(Pr.id,{selections:[{primary:{startColumn:h,startRow:f,endColumn:h,endRow:f,actualRow:f,actualColumn:h,isMerge:!1,isMergedMainCell:!1},range:{...u}}],unitId:o,subUnitId:s}),r.syncExecuteCommand(Mn.id,c)?(i.pushUndoRedo({unitID:o,undoMutations:[{id:Mn.id,params:d}],redoMutations:[{id:Mn.id,params:c}]}),!0):!1},"handler")},Cc={id:"sheet.operation.set-cell-edit-visible",type:Se.OPERATION,handler:N((t,e)=>e?(t.get(Zl).changeVisible(e),!0):!1,"handler")},wx={id:"sheet.operation.set-cell-edit-visible-f2",type:Se.OPERATION,handler:N((t,e)=>(t.get(me).syncExecuteCommand(Cc.id,e),!0),"handler")},Q_={id:"sheet.operation.set-cell-edit-visible-arrow",type:Se.OPERATION,handler:N(()=>!0,"handler")},mb={id:"sheet.command.change-zoom-ratio",type:Se.COMMAND,handler:N(async(t,e)=>{if(!e)return!1;const n=t.get(Ce),r=Dn(n);if(!r)return!1;const{worksheet:i,subUnitId:a,unitId:o}=r,{delta:s,reset:l}=e;let u=l?100:Math.round((i.getConfig().zoomRatio+s)*100);u=Math.max(rY[0],u),u=Math.min(rY[1],u);const c=u/100;return t.get(me).executeCommand(Uf.id,{unitId:o,subUnitId:a,zoomRatio:c})},"handler")},gb={id:"sheet.command.set-zoom-ratio",type:Se.COMMAND,handler:N(async(t,e)=>{if(!e)return!1;const{unitId:n,subUnitId:r,zoomRatio:i}=e;return t.get(me).executeCommand(Uf.id,{unitId:n,subUnitId:r,zoomRatio:i})},"handler")};var Gqt=Object.defineProperty,Qqt=Object.getOwnPropertyDescriptor,Kqt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Qqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Gqt(e,n,i),i},"__decorateClass$L"),fV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$K"),mV;let K_=(mV=class extends et{constructor(t,e,n,r){super(),this._context=t,this._sheetSkeletonManagerService=e,this._commandService=n,this._contextService=r,this._initSkeletonListener(),this._initZoomEventListener()}updateZoom(t,e){const n=this._context.unit.getSheetBySheetId(t);return n?(n.getConfig().zoomRatio=e,n===this._context.unit.getActiveSheet()&&this._updateViewZoom(e),!0):!1}_initZoomEventListener(){const t=this._getSheetObject().scene;this.disposeWithMe(t.onMouseWheel$.subscribeEvent(e=>{if(!e.ctrlKey||!this._contextService.getContextValue(ms))return;const n=Math.abs(e.deltaX);let r=n<40?.2:n<80?.4:.2;r*=e.deltaY>0?-1:1,t.scaleX<1&&(r/=2);const i=this._context.unit,a=i.getActiveSheet();if(!a)return;const o=a.getZoomRatio();let s=+Number.parseFloat(`${o+r}`).toFixed(1);s=s>=4?4:s<=.1?.1:s,this._commandService.executeCommand(gb.id,{zoomRatio:Math.round(s*10)/10,unitId:i.getUnitId(),subUnitId:a.getSheetId()}),e.preventDefault()}))}_initSkeletonListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeletonBefore$.subscribe(t=>{if(t==null)return;const e=this._context.unit.getActiveSheet();if(!e)return;const n=e.getZoomRatio()||1;this._updateViewZoom(n)}))}_updateViewZoom(t){const e=this._getSheetObject();e==null||e.scene.scale(t,t),e==null||e.spreadsheet.makeForceDirty()}_getSheetObject(){return Ad(this._context.unit,this._context)}},N(mV,"SheetsZoomRenderController"),mV);K_=Kqt([fV(1,se(Gr)),fV(2,me),fV(3,ui)],K_);const Uf={id:"sheet.operation.set-zoom-ratio",type:Se.OPERATION,handler:N((t,e)=>{const n=t.get(Sr).getRenderById(e.unitId);return n?n.with(K_).updateZoom(e.subUnitId,e.zoomRatio):!1},"handler")};var Zqt=Object.defineProperty,Jqt=Object.getOwnPropertyDescriptor,eYt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Jqt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Zqt(e,n,i),i},"__decorateClass$K"),O2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$J"),gV;let KR=(gV=class extends et{constructor(t,e,n,r,i,a,o){super(),fe(this,"_beforeApplyData",[]),fe(this,"_currentLocation",null),fe(this,"_copyData",[]),fe(this,"_defaultHook"),this._univerInstanceService=t,this._commandService=e,this._autoFillService=n,this._editorBridgeService=r,this._renderManagerService=i,this._injector=a,this._sheetsRenderService=o,this._defaultHook={id:"default",type:O6.Default,priority:0,onBeforeFillData:N((s,l)=>this._presetAndCacheData(s,l),"onBeforeFillData"),onFillData:N((s,l,u)=>this._fillData(s,l,u),"onFillData")},this._init()}_init(){this._initDefaultHook(),this._onSelectionControlFillChanged(),this._onApplyTypeChanged(),this._initQuitListener(),this._initSkeletonChange()}_initSkeletonChange(){this.disposeWithMe(this._sheetsRenderService.registerSkeletonChangingMutations(s4.id))}_initDefaultHook(){this.disposeWithMe(this._autoFillService.addHook(this._defaultHook))}_initQuitListener(){const t=[Cc.id,W8.id,Uu.id,Uf.id,Ha.id,$l.id,Tu.id,Wl.id,A1.id,w1.id,m1.id,g1.id,Xs.id,hc.id,Mn.id];this.disposeWithMe(this._commandService.onCommandExecuted((e,n)=>{var r,i;const a=n==null?void 0:n.fromCollab,o=n==null?void 0:n.fromSync,s=n==null?void 0:n.fromFormula;t.includes(e.id)&&!a&&!o&&!s&&e.params.trigger!==s4.id&&this._quit(),e.id===Ls.id&&e.params.unitId===((r=this._currentLocation)==null?void 0:r.unitId)&&e.params.subUnitId===((i=this._currentLocation)==null?void 0:i.subUnitId)&&this._quit()})),this.disposeWithMe(this._univerInstanceService.unitDisposed$.subscribe(e=>{var n;e.getUnitId()===((n=this._currentLocation)==null?void 0:n.unitId)&&this._quit()}))}_quit(){this._currentLocation=null,this._beforeApplyData=[],this._copyData=[],this._autoFillService.setShowMenu(!1)}_onSelectionControlFillChanged(){const t=new Gi,e=N(n=>{n.dispose();const r=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_SHEET);r&&r.with(Ds).getSelectionControls().forEach(i=>{n.add($t(i.selectionFilled$.subscribe(a=>{if(a==null||a.startColumn===-1||a.startRow===-1||a.endColumn===-1||a.endRow===-1)return;const o={startColumn:i.model.startColumn,endColumn:i.model.endColumn,startRow:i.model.startRow,endRow:i.model.endRow},s={startColumn:a.startColumn,endColumn:a.endColumn,startRow:a.startRow,endRow:a.endRow};this._triggerAutoFill(o,s)}))),n.add($t(i.fillControl.onDblclick$.subscribeEvent(()=>{const a={startColumn:i.model.startColumn,endColumn:i.model.endColumn,startRow:i.model.startRow,endRow:i.model.endRow};this._handleDbClickFill(a)}))),n.add($t(i.fillControl.onPointerDown$.subscribeEvent(()=>{this._editorBridgeService.isVisible().visible&&this._editorBridgeService.changeVisible({visible:!1,eventType:$i.PointerDown,unitId:r.unitId})})))})},"addListener");e(t),this.disposeWithMe(this._commandService.onCommandExecuted(n=>{n.id===Pr.id&&e(t)}))}_onApplyTypeChanged(){this.disposeWithMe($t(this._autoFillService.applyType$.subscribe(()=>{this._handleFillData()})))}_triggerAutoFill(t,e){var n,r;if(t.startColumn===e.startColumn&&t.startRow===e.startRow&&t.endColumn===e.endColumn&&t.endRow===e.endRow)return;if(e.endColumn<t.endColumn&&e.endColumn>t.startColumn){this._commandService.executeCommand(W8.id,{clearRange:{startRow:e.startRow,endRow:e.endRow,startColumn:e.endColumn+1,endColumn:t.endColumn},selectionRange:e});return}if(e.endRow<t.endRow&&e.endRow>t.startRow){this._commandService.executeCommand(W8.id,{clearRange:{startRow:e.endRow+1,endRow:t.endRow,startColumn:e.startColumn,endColumn:e.endColumn},selectionRange:e});return}const i={startRow:e.startRow,endRow:e.endRow,startColumn:e.startColumn,endColumn:e.endColumn};let a=null;if(e.startRow<t.startRow)a=ut.UP,i.endRow=t.startRow-1;else if(e.endRow>t.endRow)a=ut.DOWN,i.startRow=t.endRow+1;else if(e.startColumn<t.startColumn)a=ut.LEFT,i.endColumn=t.startColumn-1;else if(e.endColumn>t.endColumn)a=ut.RIGHT,i.startColumn=t.endColumn+1;else return;const o=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!o)return;const s=o.getUnitId(),l=(n=o.getActiveSheet())==null?void 0:n.getSheetId();if(!l)return;this._autoFillService.direction=a;const u=this._injector.invoke(f=>Bg(t,f)),c=this._injector.invoke(f=>Bg(i,f));if(!u||!c)return;this._autoFillService.autoFillLocation={source:u,target:c,unitId:s,subUnitId:l};const d=[];this._autoFillService.getActiveHooks().forEach(f=>{var m;const g=(m=f==null?void 0:f.onBeforeFillData)==null?void 0:m.call(f,{source:u,target:c,unitId:s,subUnitId:l},a);g&&d.unshift(g)}),this._autoFillService.initPrevUndo();for(let f=0;f<d.length;f++){const m=this._autoFillService.menu.find(g=>g.value===d[f]);if(m&&!m.disable){this._autoFillService.applyType=d[f];return}}const h=(r=this._autoFillService.menu.find(f=>f.disable===!1))==null?void 0:r.value;h&&(this._autoFillService.applyType=h)}_handleDbClickFill(t){const e=this._detectFillRange(t);e.endRow<=t.endRow||this._triggerAutoFill(t,e)}_detectFillRange(t){var e,n,r,i,a,o;const{startRow:s,endRow:l,startColumn:u,endColumn:c}=t,d=(e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:e.getActiveSheet();if(!d)return t;const h=d.getCellMatrix(),f=d.getMaxRows()-1,m=d.getMaxColumns()-1;let g=l;if(u>0&&((n=h.getValue(s,u-1))==null?void 0:n.v)!=null){let p=s;for(;((r=h.getValue(p,u-1))==null?void 0:r.v)!=null&&p<f;)p+=1;g=p-1}else if(c<m&&((i=h.getValue(l,c+1))==null?void 0:i.v)!=null){let p=s;for(;((a=h.getValue(p,c+1))==null?void 0:a.v)!=null&&p<f;)p+=1;g=p-1}for(let p=l+1;p<=g;p++)for(let v=u;v<=c;v++)if(((o=h.getValue(p,v))==null?void 0:o.v)!=null){g=p-1;break}return{startColumn:u,endColumn:c,startRow:s,endRow:g}}_handleFillData(){var t,e;this._currentLocation&&this._commandService.executeCommand(s4.id,{unitId:(t=this._currentLocation)==null?void 0:t.unitId,subUnitId:(e=this._currentLocation)==null?void 0:e.subUnitId})}_getApplyData(t,e,n,r,i,a=!0){const o=[],s=Math.floor(n/e),l=n%e,u=this._autoFillService.getRules();if(!a&&i===Mi.ONLY_FORMAT)return console.error("ERROR: only format can not be applied when hasStyle is false"),[];const c={};u.forEach(d=>{c[d.type]=[]}),u.forEach(d=>{const{type:h,applyFunctions:f={}}=d,m=t[h];m&&m.forEach(g=>{const p=QHe(g.index,l),v=g.index.length*s+p,_=this._applyFunctions(g,v,r,i,f,t),C=KHe(e,n,g.index);c[h].push({data:_,index:C})})});for(let d=0;d<n;d++)u.forEach(h=>{const{type:f}=h,m=c[f];for(let g=0;g<m.length;g++)d in m[g].index&&o.push(m[g].data[m[g].index[d]])});return o}_applyFunctions(t,e,n,r,i,a){const{data:o}=t,s=n===ut.UP||n===ut.LEFT;if(r===Mi.COPY){const l=i==null?void 0:i[Mi.COPY];return l?l(t,e,n,a):(s&&o.reverse(),W0(o,e))}if(r===Mi.SERIES){const l=i==null?void 0:i[Mi.SERIES];return l?l(t,e,n,a):(s&&o.reverse(),i!=null&&i[Mi.COPY]?i[Mi.COPY](t,e,n,a):W0(o,e))}if(r===Mi.ONLY_FORMAT){const l=i==null?void 0:i[Mi.ONLY_FORMAT];return l?l(t,e,n,a):ZHe(o,e)}}_getCopyData(t,e){const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet();if(!n)throw new Error("No active sheet found");const r=n.getCellMatrix(),i=this._autoFillService.getRules(),a=[],o=e===ut.DOWN||e===ut.UP;let s,l;return o?(s=t.cols,l=t.rows):(s=t.rows,l=t.cols),s.forEach(u=>{const c=this._getEmptyCopyDataPiece(),d={type:void 0,cellData:void 0};l.forEach(h=>{let f;o?f=r.getValue(h,u):f=r.getValue(u,h);const{type:m,isContinue:g}=i.find(p=>p.match(f,this._injector))||ije;if(g(d,f)){const p=c[m],v=p[p.length-1];v.data.push(f),v.index.push(h-l[0])}else{const p=c[m];p?p.push({data:[f],index:[h-l[0]]}):c[m]=[{data:[f],index:[h-l[0]]}]}d.type=m,d.cellData=f}),a.push(c)}),a}_getEmptyCopyDataPiece(){const t={};return this._autoFillService.getRules().forEach(e=>{t[e.type]=[]}),t}_getMergeApplyData(t,e,n,r){const i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet();if(!i)throw new Error("No active sheet found");const a=[];for(let o=t.startRow;o<=t.endRow;o++)for(let s=t.startColumn;s<=t.endColumn;s++){const{isMergedMainCell:l,startRow:u,startColumn:c,endRow:d,endColumn:h}=i.getCellInfoInMergeData(o,s);if(l){if(n===ut.DOWN){let f=u+r,m=d+r;for(;m<=e.endRow;)a.push({startRow:f,startColumn:c,endRow:m,endColumn:h}),f+=r,m+=r}else if(n===ut.UP){let f=u-r,m=d-r;for(;f>=e.startRow;)a.push({startRow:f,startColumn:c,endRow:m,endColumn:h}),f-=r,m-=r}else if(n===ut.RIGHT){let f=c+r,m=h+r;for(;m<=e.endColumn;)a.push({startRow:u,startColumn:f,endRow:d,endColumn:m}),f+=r,m+=r}else if(n===ut.LEFT){let f=c-r,m=h-r;for(;f>=e.startColumn;)a.push({startRow:u,startColumn:f,endRow:d,endColumn:m}),f-=r,m-=r}}}return a}_presetAndCacheData(t,e){const{source:n,target:r}=t,i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet();if(!i)throw new Error("No active sheet found");const a=i.getCellMatrix(),o=[];return r.rows.forEach(s=>{const l=[];r.cols.forEach(u=>{l.push(Ie.deepClone(a.getValue(s,u)))}),o.push(l)}),this._beforeApplyData=o,this._copyData=this._getCopyData(n,e),this._currentLocation=t,this._shouldDisableSeries(this._copyData)?(this._autoFillService.setDisableApplyType(Mi.SERIES,!0),Mi.COPY):(this._autoFillService.setDisableApplyType(Mi.SERIES,!1),this._getPreferredApplyType(this._copyData))}_fillData(t,e,n){var r,i;const a=[],o=[];let s=!0;n===Mi.NO_FORMAT&&(s=!1,n=Mi.SERIES);const{source:l,target:u,unitId:c,subUnitId:d}=t;if(!l||!u||e==null)return{undos:a,redos:o};const h=$0(l),f=$0(u),{cols:m,rows:g}=u,{cols:p,rows:v}=l,_=this._copyData;let C;e===ut.DOWN||e===ut.UP?C=v.length:C=p.length;const S=[];if(e===ut.DOWN||e===ut.UP){const V=g.length,X=[];m.forEach((z,F)=>{const H=_[F],W=this._getApplyData(H,C,V,e,n,s);X.push(W)});for(let z=0;z<X[0].length;z++){const F=[];for(let H=0;H<X.length;H++)F.push({s:null,...X[H][z]});S.push(F)}}else{const V=m.length;g.forEach((X,z)=>{const F=_[z],H=this._getApplyData(F,C,V,e,n,s),W=[];for(let K=0;K<H.length;K++)W.push({s:null,...H[K]});S.push(W)})}let b=[];const y=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getStyles();s?(b=this._getMergeApplyData(h,f,e,C),S.forEach(V=>{V.forEach(X=>{X&&y&&y&&(X.s=y.getStyleByCell(X))})})):S.forEach((V,X)=>{V.forEach((z,F)=>{z&&y&&(z.s=y.getStyleByCell(this._beforeApplyData[X][F])||null)})}),n===Mi.ONLY_FORMAT&&S.forEach((V,X)=>{V.forEach((z,F)=>{if(z){const H=this._beforeApplyData[X][F]||{};z.f=H.f,z.si=H.si,z.t=H.t,z.v=H.v}})});const A=[],w=(i=(r=this._univerInstanceService.getUniverSheetInstance(c))==null?void 0:r.getSheetBySheetId(d))==null?void 0:i.getMergeData();w&&w.forEach(V=>{ft.intersects(V,f)&&A.push(V)});const P={unitId:c,subUnitId:d,ranges:A},M=this._injector.invoke(ou,P);A.length&&(o.push({id:Di.id,params:P}),a.push({id:yi.id,params:M}));const L={subUnitId:d,unitId:c,cellValue:jHe([u])},k=this._injector.invoke(No,L);o.push({id:Mn.id,params:L}),a.push({id:Mn.id,params:k});const O=new Ct;g.forEach((V,X)=>{m.forEach((z,F)=>{S[X][F]&&O.setValue(V,z,S[X][F])})});const $={subUnitId:d,unitId:c,cellValue:O.getMatrix()},B=this._injector.invoke(No,$);if(a.push({id:Mn.id,params:B}),o.push({id:Mn.id,params:$}),b!=null&&b.length){const V=c9(b),X={unitId:c,subUnitId:d,ranges:V},z=this._injector.invoke(fl,X);a.push({id:Di.id,params:z}),o.push({id:yi.id,params:X})}return{undos:a,redos:o}}_shouldDisableSeries(t){return t.every(e=>Object.keys(e).every(n=>{var r;return((r=e[n])==null?void 0:r.length)===0||[Oo.OTHER,Oo.FORMULA].includes(n)}))}_getPreferredApplyType(t){return t.every(e=>Object.keys(e).every(n=>{var r,i;return((r=e[n])==null?void 0:r.length)===0||((i=e[n])==null?void 0:i.length)===1&&e[n][0].data.length===1&&Oo.NUMBER===n}))?Mi.COPY:Mi.SERIES}},N(gV,"AutoFillController"),gV);KR=eYt([yn(Vt.Steady,KR),O2(0,Ce),O2(1,me),O2(2,om),O2(3,Zl),O2(4,Sr),O2(5,se(Wn)),O2(6,se(Vg))],KR);var tYt=Object.defineProperty,nYt=Object.getOwnPropertyDescriptor,rYt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?nYt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&tYt(e,n,i),i},"__decorateClass$J"),pV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$I"),vV;let z8=(vV=class extends et{constructor(t,e,n,r){super(),fe(this,"_enterActiveRender"),this._context=t,this._sheetSkeletonManagerService=e,this._renderManagerService=n,this._univerInstanceService=r,this._initEventBinding()}_initEventBinding(){const t=new Gi,e=this._context.unit,n=N(r=>{if(t.dispose(),!r)return;const i=this._context.unitId,{skeleton:a}=r,o=this._renderManagerService.getRenderById(i);if(o&&o.mainComponent){const s=o.mainComponent,l=N(d=>{const{offsetX:h,offsetY:f}=d,m=o.scene,g=e.getActiveSheet();if(!g)return;const p=m.getActiveViewportByCoord(cn.FromArray([h,f]));if(!p)return;const{scaleX:v,scaleY:_}=m.getAncestorScale(),C={x:p.viewportScrollX,y:p.viewportScrollY},S=a.getCellPositionByOffset(h,f,v,_,C),b=a.worksheet.getMergedCell(S.row,S.column),y={actualRow:b?b.startRow:S.row,actualCol:b?b.startColumn:S.column,row:S.row,col:S.column};if(!y||!a)return;const A=g.getCell(y.actualRow,y.actualCol);if(!A)return;const w=A.customRender;if(!(w!=null&&w.length))return;const P=y.actualRow,M=y.actualCol,L=w.sort(Ol),k=g.getSheetId(),O={data:A,style:a.getsStyles().getStyleByCell(A),primaryWithCoord:a.getCellByIndex(y.actualRow,y.actualCol),unitId:i,subUnitId:k,row:P,col:M,workbook:e,worksheet:g},$={x:C.x+h/v,y:C.y+f/_},B=L.find(V=>{var X;return(X=V.isHit)==null?void 0:X.call(V,$,O)});if(B)return[B,O]},"getActiveRender"),u=s.onPointerDown$.subscribeEvent(d=>{var h;const f=l(d);if(f){const[m,g]=f;(h=m.onPointerDown)==null||h.call(m,g,d)}}),c=s.onPointerMove$.subscribeEvent(d=>{var h,f,m,g;const p=l(d);if(p){const[v,_]=p;this._enterActiveRender?this._enterActiveRender.render!==v&&((f=(h=this._enterActiveRender.render).onPointerLeave)==null||f.call(h,this._enterActiveRender.cellContext,d),this._enterActiveRender={render:v,cellContext:_},(m=v.onPointerEnter)==null||m.call(v,_,d)):(this._enterActiveRender={render:v,cellContext:_},(g=v.onPointerEnter)==null||g.call(v,_,d))}});u&&t.add(u),c&&t.add(c)}},"handleSkeletonChange");this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(n)),n(this._sheetSkeletonManagerService.getCurrent()),this.disposeWithMe(t)}},N(vV,"CellCustomRenderController"),vV);z8=rYt([yn(Vt.Rendered,z8),pV(1,se(Gr)),pV(2,Sr),pV(3,Ce)],z8);function aje(t,e){if(t.length!==e.length)return!1;const n=t.sort((i,a)=>i.id.localeCompare(a.id)),r=e.sort((i,a)=>i.id.localeCompare(a.id));return n.every((i,a)=>{var o,s;return((o=i.subject)==null?void 0:o.userID)===((s=r[a].subject)==null?void 0:s.userID)&&i.role===r[a].role})}N(aje,"getUserListEqual");function Yne(t,e){return e.some(n=>oje(t,n))}N(Yne,"checkCellContentInRanges");function oje(t,e){const{startRow:n,startColumn:r,endColumn:i,endRow:a}=e,o=t.getMatrixWithMergedCells(n,r,a,i);let s=!1;return o.forValue((l,u,c)=>{if(c&&(l!==n||u!==r)&&t.cellHasValue(c))return s=!0,!1}),s}N(oje,"checkCellContentInRange");function Xne(t,e,n,r){const i=[],a=[],o=n.getSheetId();return r.forEach(s=>{const l=sje(n,s),u={unitId:e,subUnitId:o,cellValue:l.getData()},c=No(t,u);i.push({id:Mn.id,params:c}),a.push({id:Mn.id,params:u})}),{undos:i,redos:a}}N(Xne,"getClearContentMutationParamsForRanges");function sje(t,e){const{startRow:n,startColumn:r,endColumn:i,endRow:a}=e,o=t.getMatrixWithMergedCells(n,r,a,i,!0),s=new Ct;let l=null;return o.forValue((u,c,d)=>{d&&(!l&&t.cellHasValue(d)&&(l=d),s.setValue(u,c,null))}),s.setValue(n,r,l),s}N(sje,"getClearContentMutationParamForRange");function lje(t,e,n,r){const i=n.getActiveViewportByCoord(cn.FromArray([t,e]));if(!i)return;const{scaleX:a,scaleY:o}=n.getAncestorScale(),s={x:i.viewportScrollX,y:i.viewportScrollY},l=r.getCellPositionByOffset(t,e,a,o,s),u=r.worksheet.getMergedCell(l.row,l.column);return{actualRow:u?u.startRow:l.row,actualCol:u?u.startColumn:l.column,mergeCell:u,row:l.row,col:l.column}}N(lje,"getCellIndexByOffsetWithMerge");function uje(t,e,n,r){const i=r.getFreeze();if(!i||i.startRow<=0&&i.startColumn<=0||t>i.startRow&&e>i.startColumn)return n.getViewport(an.VIEW_MAIN);if(t<=i.startRow&&e<=i.startColumn)return n.getViewport(an.VIEW_MAIN_LEFT_TOP);if(t<=i.startRow&&e>i.startColumn)return n.getViewport(an.VIEW_MAIN_TOP);if(t>i.startRow&&e<=i.startColumn)return n.getViewport(an.VIEW_MAIN_LEFT)}N(uje,"getViewportByCell");function cje(t,e,n,r){const i=mY(t.left,t.top,e,n,r),a=mY(t.right,t.bottom,e,n,r);return{left:i.x,top:i.y,right:a.x,bottom:a.y}}N(cje,"transformBound2OffsetBound");function mY(t,e,n,r,i){const{scaleX:a,scaleY:o}=n.getAncestorScale(),s=n.getViewport(an.VIEW_MAIN);if(!s)return{x:t,y:e};const l=i.getFreeze(),{startColumn:u,startRow:c,xSplit:d,ySplit:h}=l,f=r.getNoMergeCellPositionByIndexWithNoHeader(c-h,u-d),m=r.getNoMergeCellPositionByIndexWithNoHeader(c,u),{rowHeaderWidth:g,columnHeaderHeight:p}=r,v=m.startX-f.startX,_=m.startY-f.startY,{top:C,left:S,viewportScrollX:b,viewportScrollY:y}=s;let A;t>S?A=(t-b)*a:A=(v+g-(S-t))*a;let w;return e>C?w=(e-y)*o:w=(_+p-(C-e))*a,{x:A,y:w}}N(mY,"transformPosition2Offset");function Gne(t,e,n,r,i,a){const{scene:o}=t,s=e.getUnitId(),{skeleton:l,sheetId:u}=r,c=lje(i,a,o,l);if(!c)return null;let{actualCol:d,actualRow:h}=c;l.overflowCache.forValue((y,A,w)=>{w.startRow<=h&&w.endRow>=h&&w.startColumn<=d&&w.endColumn>=d&&(d=A,h=y)});const f=l.getCellByIndex(h,d),m=l.getCellByIndex(c.row,c.col),g={unitId:s,subUnitId:u,workbook:e,worksheet:n,row:m.actualRow,col:m.actualColumn},p={unitId:s,subUnitId:u,workbook:e,worksheet:n,row:f.actualRow,col:f.actualColumn};let v;f.mergeInfo?v=f.mergeInfo:v={startRow:p.row,endRow:p.row,startColumn:p.col,endColumn:p.col};const _=o.getActiveViewportByCoord(cn.FromArray([i,a]));if(!_)return;const{scaleX:C,scaleY:S}=o.getAncestorScale(),b={x:_.viewportScrollX,y:_.viewportScrollY};return{position:{startX:(l.getOffsetByPositionX(v.startColumn-1)-b.x)*C,endX:(l.getOffsetByPositionX(v.endColumn)-b.x)*C,startY:(l.getOffsetByPositionY(v.startRow-1)-b.y)*S,endY:(l.getOffsetByPositionY(v.endRow)-b.y)*S},location:g,overflowLocation:p}}N(Gne,"getHoverCellPosition");const f9={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge",handler:N(async(t,e)=>{const n=t.get(me),r=t.get(xn),i=t.get(Ce),a=t.get(Il),o=t.get(sn),s=e.unitId,l=e.subUnitId,u=e.selections,c=c9(u,e.value),d=i.getUniverSheetInstance(s).getSheetBySheetId(l),h=[],f=[],m=Yne(d,c);if(m&&!await a.confirm({id:"merge.confirm.add-worksheet-merge",title:{title:"merge.confirm.title"},cancelText:o.t("merge.confirm.cancel"),confirmText:o.t("merge.confirm.confirm")}))return!1;const g={unitId:s,subUnitId:l,ranges:c},p={unitId:s,subUnitId:l,ranges:c},v=fl(t,g),_=ou(t,p);if(v.ranges.length>0&&h.push({id:Di.id,params:v}),h.push({id:yi.id,params:p}),f.push({id:Di.id,params:_}),v.ranges.length>0&&f.push({id:yi.id,params:v}),m){const b=Xne(t,s,d,c);h.unshift(...b.redos),f.push(...b.undos)}const C=Wzt(t,e,c);C&&h.push(C);const S=zzt(t,e);return S&&f.push(S),ti(h,n).result?(r.pushUndoRedo({unitID:s,undoMutations:f,redoMutations:h}),!0):!1},"handler")},Qne={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-all",handler:N(async t=>{var e;const n=t.get(me),r=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(u=>u.range),i=bx(Cx.MergeAll,r);if(!(i!=null&&i.length))return!1;const a=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!a)return!1;const o=a.getActiveSheet();if(!o)return!1;const s=a.getUnitId(),l=o.getSheetId();return n.executeCommand(f9.id,{selections:i,unitId:s,subUnitId:l})},"handler")},Kne={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-vertical",handler:N(async t=>{var e;const n=t.get(me),r=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(u=>u.range),i=bx(Cx.MergeVertical,r);if(!(i!=null&&i.length))return!1;const a=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!a)return!1;const o=a.getActiveSheet();if(!o)return!1;const s=a.getUnitId(),l=o.getSheetId();return n.executeCommand(f9.id,{value:ts.COLUMNS,selections:i,unitId:s,subUnitId:l})},"handler")},Zne={type:Se.COMMAND,id:"sheet.command.add-worksheet-merge-horizontal",handler:N(async t=>{var e;const n=t.get(me),r=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(u=>u.range),i=bx(Cx.MergeHorizontal,r);if(!(i!=null&&i.length))return!1;const a=t.get(Ce).getCurrentUnitForType(le.UNIVER_SHEET);if(!a)return!1;const o=a.getActiveSheet();if(!o)return!1;const s=a.getUnitId(),l=o.getSheetId();return n.executeCommand(f9.id,{value:ts.ROWS,selections:i,unitId:s,subUnitId:l})},"handler")},pb={type:Se.COMMAND,id:"sheet.command.delete-range-move-left-confirm",handler:N(async t=>{const e=t.get(Il),n=t.get(me),r=t.get(sn),i=t.get(Bt),a=t.get(Ce),o=i.getCurrentSelections();if(!o)return!1;const s=Dn(a);if(!s)return!1;const{worksheet:l}=s;let u=o[0].range;if(!u)return!1;u={...u,endColumn:l.getColumnCount()-1};const c=N(d=>d.endRow-d.startRow,"getRowLength");return l.getMergeData().find(d=>{const h=ft.getIntersects(d,u);return h?c(d)>c(h):!1})?await e.confirm({id:pb.id,title:{title:r.t("merge.confirm.waring")},children:{title:r.t("merge.confirm.dismantleMergeCellWaring")},cancelText:r.t("button.cancel"),confirmText:r.t("button.confirm")})?n.executeCommand(_p.id):!0:n.executeCommand(_p.id)},"handler")},m7={type:Se.COMMAND,id:"sheet.command.delete-range-move-up-confirm",handler:N(async t=>{const e=t.get(Il),n=t.get(me),r=t.get(sn),i=t.get(Bt),a=t.get(Ce),o=i.getCurrentSelections();if(!o)return!1;const s=Dn(a);if(!s)return!1;const{worksheet:l}=s;let u=o[0].range;if(!u)return!1;u={...u,endRow:l.getRowCount()-1};for(let d=u.startRow;d<=u.endRow;d++)if(l.getRowFiltered(d)&&await e.confirm({id:m7.id,title:{title:r.t("filter.confirm.error")},children:{title:r.t("filter.confirm.notAllowedToInsertRange")},confirmText:r.t("button.confirm")}))return!1;const c=N(d=>d.endColumn-d.startColumn,"getColLength");return l.getMergeData().find(d=>{const h=ft.getIntersects(d,u);return h?c(d)>c(h):!1})?await e.confirm({id:m7.id,title:{title:r.t("merge.confirm.waring")},children:{title:r.t("merge.confirm.dismantleMergeCellWaring")},cancelText:r.t("button.cancel"),confirmText:r.t("button.confirm")})?n.executeCommand(Cp.id):!0:n.executeCommand(Cp.id)},"handler")},Dx={id:"sheet.command.hide-row-confirm",type:Se.COMMAND,handler:N(async t=>{var e;const n=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(l=>l.range);if(!(n!=null&&n.length))return!1;const r=t.get(me),i=t.get(Ce),a=Dn(i);if(!a)return!1;const{worksheet:o}=a,s=o.getVisibleRows();if(Bne(s,n)){const l=t.get(Il),u=t.get(sn);return await l.confirm({id:"sheet.confirm.hide-row",title:{title:u.t("info.problem")},children:{title:u.t("rightClick.hideAllRowsAlert")},cancelText:u.t("button.cancel"),confirmText:u.t("button.confirm")}),!1}return await r.executeCommand(ux.id),!0},"handler")},Ix={id:"sheet.command.hide-col-confirm",type:Se.COMMAND,handler:N(async t=>{var e;const n=(e=t.get(Bt).getCurrentSelections())==null?void 0:e.map(l=>l.range);if(!(n!=null&&n.length))return!1;const r=t.get(me),i=t.get(Ce),a=Dn(i);if(!a)return!1;const{worksheet:o}=a,s=o.getVisibleCols();if(Une(s,n)){const l=t.get(Il),u=t.get(sn);return await l.confirm({id:"sheet.confirm.hide-col",title:{title:u.t("info.problem")},children:{title:u.t("rightClick.hideAllColumnsAlert")},cancelText:u.t("button.cancel"),confirmText:u.t("button.confirm")}),!1}return await r.executeCommand(sx.id),!0},"handler")},m9={type:Se.COMMAND,id:"sheet.command.set-range-bold",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(Kp.id):e.executeCommand(fne.id)},"handler")},g9={type:Se.COMMAND,id:"sheet.command.set-range-italic",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(Zp.id):e.executeCommand(mne.id)},"handler")},p9={type:Se.COMMAND,id:"sheet.command.set-range-underline",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(Jp.id):e.executeCommand(gne.id)},"handler")},v9={type:Se.COMMAND,id:"sheet.command.set-range-stroke",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(e3.id):e.executeCommand(pne.id)},"handler")},dje={type:Se.COMMAND,id:"sheet.command.set-range-subscript",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(wf.id):!1},"handler")},hje={type:Se.COMMAND,id:"sheet.command.set-range-superscript",handler:N(async t=>{const e=t.get(me);return t.get(ui).getContextValue(ha)?e.executeCommand(t3.id):!1},"handler")},Px={type:Se.COMMAND,id:"sheet.command.set-range-fontsize",handler:N(async(t,e)=>{const n=t.get(me);return t.get(ui).getContextValue(ha)?n.executeCommand(gp.id,e):n.executeCommand(_ne.id,e)},"handler")},Mx={type:Se.COMMAND,id:"sheet.command.set-range-font-family",handler:N(async(t,e)=>{const n=t.get(me);return t.get(ui).getContextValue(ha)?n.executeCommand(pp.id,e):n.executeCommand(vne.id,e)},"handler")},Z_={type:Se.COMMAND,id:"sheet.command.set-range-text-color",handler:N(async(t,e)=>{const n=t.get(me);return t.get(ui).getContextValue(ha)?n.executeCommand(vp.id,e):n.executeCommand(jUe.id,e)},"handler")},g7={type:Se.COMMAND,id:"sheet.command.insert-range-move-down-confirm",handler:N(async t=>{const e=t.get(Il),n=t.get(me),r=t.get(sn),i=t.get(Bt),a=t.get(Ce),o=i.getCurrentSelections();if(!o)return!1;const s=Dn(a);if(!s)return!1;const{worksheet:l}=s;let u=o[0].range;if(!u)return!1;u={...u,endRow:l.getRowCount()-1};for(let d=u.startRow;d<=u.endRow;d++)if(l.getRowFiltered(d)&&await e.confirm({id:g7.id,title:{title:r.t("filter.confirm.error")},children:{title:r.t("filter.confirm.notAllowedToInsertRange")},confirmText:r.t("button.confirm")}))return!1;const c=N(d=>d.endColumn-d.startColumn,"getColLength");return l.getMergeData().find(d=>{const h=ft.getIntersects(d,u);return h?c(d)>c(h):!1})?await e.confirm({id:g7.id,title:{title:r.t("merge.confirm.waring")},children:{title:r.t("merge.confirm.dismantleMergeCellWaring")},cancelText:r.t("button.cancel"),confirmText:r.t("button.confirm")})?n.executeCommand(V0.id):!0:n.executeCommand(V0.id)},"handler")},vb={type:Se.COMMAND,id:"sheet.command.insert-range-move-right-confirm",handler:N(async t=>{const e=t.get(Il),n=t.get(me),r=t.get(sn),i=t.get(Bt),a=t.get(Ce),o=i.getCurrentSelections();if(!o)return!1;const s=Dn(a);if(!s)return!1;const{worksheet:l}=s;let u=o[0].range;if(!u)return!1;u={...u,endColumn:l.getColumnCount()-1};const c=N(d=>d.endRow-d.startRow,"getRowLength");return l.getMergeData().find(d=>{const h=ft.getIntersects(d,u);return h?c(d)>c(h):!1})?await e.confirm({id:vb.id,title:{title:r.t("merge.confirm.waring")},children:{title:r.t("merge.confirm.dismantleMergeCellWaring")},cancelText:r.t("button.cancel"),confirmText:r.t("button.confirm")})?n.executeCommand(B0.id):!0:n.executeCommand(B0.id)},"handler")};var fje=(t=>(t[t.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",t[t.UNIVER_DOC=1]="UNIVER_DOC",t[t.UNIVER_SHEET=2]="UNIVER_SHEET",t[t.UNIVER_SLIDE=3]="UNIVER_SLIDE",t[t.UNIVER_PROJECT=4]="UNIVER_PROJECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(fje||{}),Jn=(t=>(t[t.View=0]="View",t[t.Edit=1]="Edit",t[t.ManageCollaborator=2]="ManageCollaborator",t[t.Print=3]="Print",t[t.Duplicate=4]="Duplicate",t[t.Comment=5]="Comment",t[t.Copy=6]="Copy",t[t.Share=7]="Share",t[t.Export=8]="Export",t[t.MoveWorksheet=9]="MoveWorksheet",t[t.DeleteWorksheet=10]="DeleteWorksheet",t[t.HideWorksheet=11]="HideWorksheet",t[t.RenameWorksheet=12]="RenameWorksheet",t[t.CreateWorksheet=13]="CreateWorksheet",t[t.SetWorksheetStyle=14]="SetWorksheetStyle",t[t.EditWorksheetCell=15]="EditWorksheetCell",t[t.InsertHyperlink=16]="InsertHyperlink",t[t.Sort=17]="Sort",t[t.Filter=18]="Filter",t[t.PivotTable=19]="PivotTable",t[t.FloatImg=20]="FloatImg",t[t.History=21]="History",t[t.RwHgtClWdt=22]="RwHgtClWdt",t[t.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",t[t.ViewFilter=24]="ViewFilter",t[t.MoveSheet=25]="MoveSheet",t[t.DeleteSheet=26]="DeleteSheet",t[t.HideSheet=27]="HideSheet",t[t.CopySheet=28]="CopySheet",t[t.RenameSheet=29]="RenameSheet",t[t.CreateSheet=30]="CreateSheet",t[t.SelectProtectedCells=31]="SelectProtectedCells",t[t.SelectUnProtectedCells=32]="SelectUnProtectedCells",t[t.SetCellStyle=33]="SetCellStyle",t[t.SetCellValue=34]="SetCellValue",t[t.SetRowStyle=35]="SetRowStyle",t[t.SetColumnStyle=36]="SetColumnStyle",t[t.InsertRow=37]="InsertRow",t[t.InsertColumn=38]="InsertColumn",t[t.DeleteRow=39]="DeleteRow",t[t.DeleteColumn=40]="DeleteColumn",t[t.EditExtraObject=41]="EditExtraObject",t[t.Delete=42]="Delete",t[t.RecoverHistory=43]="RecoverHistory",t[t.ViewHistory=44]="ViewHistory",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(Jn||{}),vl=(t=>(t[t.Reader=0]="Reader",t[t.Editor=1]="Editor",t[t.Owner=2]="Owner",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(vl||{}),Ni=(t=>(t[t.Unkonwn=0]="Unkonwn",t[t.Workbook=1]="Workbook",t[t.Worksheet=2]="Worksheet",t[t.SelectRange=3]="SelectRange",t[t.Document=4]="Document",t[t.Slide=5]="Slide",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(Ni||{}),r1=(t=>(t[t.SomeCollaborator=0]="SomeCollaborator",t[t.AllCollaborator=1]="AllCollaborator",t[t.OneSelf=2]="OneSelf",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(r1||{}),iYt=Object.defineProperty,aYt=Object.getOwnPropertyDescriptor,oYt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?aYt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&iYt(e,n,i),i},"__decorateClass$I");const Zle={name:"",unitId:"",subUnitId:"",permissionId:"",unitType:Ni.Unkonwn,id:"",ranges:[]};var kd=(t=>(t.othersCanView="othersCanView",t.noOneElseCanView="noOneElseCanView",t))(kd||{}),zc=(t=>(t.designedUserCanEdit="designedUserCanEdit",t.onlyMe="onlyMe",t))(zc||{}),_V;let Ks=(_V=class{constructor(){fe(this,"_rule",Zle),fe(this,"_rule$",new Pn(this._rule)),fe(this,"_oldRule"),fe(this,"_rangeErrorMsg$",new Pn("")),fe(this,"_visible",!1),fe(this,"rangeErrorMsg$",this._rangeErrorMsg$.asObservable()),fe(this,"rule$",this._rule$.asObservable())}setVisible(t){this._visible=t}getVisible(){return this._visible}setRangeErrorMsg(t){this._rangeErrorMsg$.next(t)}get rule(){return this._rule}setRule(t){this._rule={...this._rule,...t},this._rule$.next(this._rule)}resetRule(){this._rule=Zle,this._rule$.next(this._rule)}reset(){this.setVisible(!1),this.resetRule(),this.setRangeErrorMsg(""),this.setOldRule(null)}get oldRule(){return this._oldRule}setOldRule(t){this._oldRule=t}},N(_V,"SheetPermissionPanelModel"),_V);Ks=oYt([yn(Vt.Starting,Ks)],Ks);const mje=class{constructor(){fe(this,"_userList",[]),fe(this,"_oldCollaboratorList",[]),fe(this,"_selectUserList",[]),fe(this,"_allUserList",[]),fe(this,"_selectUserList$",new Pn(this._selectUserList)),fe(this,"selectUserList$",this._selectUserList$.asObservable())}get userList(){return this._userList}get allUserList(){return this._allUserList}setAllUserList(e){this._allUserList=e}setUserList(e){this._userList=e}reset(){this._userList=[],this._oldCollaboratorList=[],this._selectUserList=[],this._selectUserList$.next([]),this._allUserList=[]}get oldCollaboratorList(){return this._oldCollaboratorList}setOldCollaboratorList(e){this._oldCollaboratorList=e}get selectUserList(){return this._selectUserList}setSelectUserList(e){this._selectUserList=e,this._selectUserList$.next(e)}};N(mje,"SheetPermissionUserManagerService");let _9=mje;const _b="UNIVER_SHEET_PERMISSION_PANEL",Cb="UNIVER_SHEET_PERMISSION_PANEL_FOOTER",gje="UNIVER_SHEET_PERMISSION_USER_DIALOG",pje="UNIVER_SHEET_PERMISSION_DIALOG",lP="UNIVER_SHEET_PERMISSION_USER_DIALOG_ID",uP="UNIVER_SHEET_PERMISSION_DIALOG_ID",zy={[Jn.Copy]:"Copy",[Jn.SetCellStyle]:"SetCellStyle",[Jn.SetCellValue]:"SetCellValue",[Jn.SetRowStyle]:"SetRowStyle",[Jn.SetColumnStyle]:"SetColumnStyle",[Jn.InsertRow]:"InsertRow",[Jn.InsertColumn]:"InsertColumn",[Jn.InsertHyperlink]:"InsertHyperlink",[Jn.DeleteRow]:"DeleteRow",[Jn.DeleteColumn]:"DeleteColumn",[Jn.Sort]:"Sort",[Jn.Filter]:"Filter",[Jn.PivotTable]:"PivotTable",[Jn.EditExtraObject]:"EditExtraObject"},sYt=[Jn.Copy,Jn.SetCellStyle,Jn.SetCellValue,Jn.SetRowStyle,Jn.SetColumnStyle,Jn.InsertRow,Jn.InsertColumn,Jn.InsertHyperlink,Jn.DeleteRow,Jn.DeleteColumn,Jn.Sort,Jn.Filter,Jn.PivotTable,Jn.EditExtraObject,Jn.View],vje="sheet-permission-menu-icon",lYt="sheet-permission-delete-icon",uYt="sheet-permission-edit-icon",cYt="sheet-permission-check-icon",_je="sheet-permission-lock-icon",Hf={type:Se.OPERATION,id:"sheet-permission.operation.openPanel",async handler(t,e={}){const n=t.get(ol),r=t.get(Ks),i=t.get(_9),{showDetail:a=!0,fromSheetBar:o=!1}=e,s={header:{title:"permission.panel.title"},children:{label:_b,showDetail:a,fromSheetBar:o},width:330,footer:{label:Cb,showDetail:a},onClose:N(()=>{r.reset(),i.reset()},"onClose")};return r.setVisible(!0),n.open(s),!0}},Tx={type:Se.COMMAND,id:"sheet.command.add-worksheet-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),{rule:i,unitId:a}=e,o=i.subUnitId;if(await n.executeCommand(bp.id,{unitId:a,rule:i,subUnitId:i.subUnitId})){const s=[{id:bp.id,params:{unitId:a,rule:i,subUnitId:i.subUnitId}}],l=[{id:l7.id,params:{unitId:a,subUnitId:o}}];r.pushUndoRedo({unitID:a,redoMutations:s,undoMutations:l})}return!0}},p7={type:Se.COMMAND,id:"sheet.command.delete-worksheet-protection",handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),{rule:i,unitId:a,subUnitId:o}=e;n.executeCommand(l7.id,{unitId:a,subUnitId:o});const s=[{id:l7.id,params:{unitId:a,subUnitId:o}}],l=[{id:bp.id,params:{unitId:a,rule:i,subUnitId:o}}];return r.pushUndoRedo({unitID:a,redoMutations:s,undoMutations:l}),!0}},Cje={type:Se.COMMAND,id:"sheet.command.set-worksheet-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(Ks),i=t.get(xn),{rule:a,permissionId:o}=e,{unitId:s,subUnitId:l}=a,u={...a,permissionId:o},c=r.oldRule;if(await n.executeCommand(o4.id,{unitId:s,subUnitId:l,newRule:u})){const d=[{id:o4.id,params:{unitId:s,subUnitId:l,newRule:u}}],h=[{id:o4.id,params:{unitId:s,subUnitId:l,rule:c}}];i.pushUndoRedo({unitID:s,redoMutations:d,undoMutations:h})}return!0}},Lx={type:Se.COMMAND,id:"sheet.command.delete-worksheet-protection-from-sheet-bar",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(ga),a=t.get(Ce).getCurrentUnitForType(fje.UNIVER_SHEET),o=a==null?void 0:a.getActiveSheet(),s=a.getUnitId();if(!o)return!1;const l=o.getSheetId(),u=i.getRule(s,l);if(await n.executeCommand(p7.id,{unitId:s,subUnitId:l})){const c=[{id:p7.id,params:{unitId:s,subUnitId:l}}],d=[{id:Tx.id,params:{unitId:s,rule:u}}];r.pushUndoRedo({unitID:s,redoMutations:c,undoMutations:d})}return!0}},xx={type:Se.COMMAND,id:"sheet.command.change-sheet-protection-from-sheet-bar",async handler(t){return await t.get(me).executeCommand("sheet-permission.operation.openDialog"),!0}},Ox={type:Se.COMMAND,id:"sheet.command.add-range-protection-from-toolbar",async handler(t){const e=t.get(me);return t.get(Ks).resetRule(),await e.executeCommand(Hf.id,{showDetail:!0}),!0}},l4={type:Se.COMMAND,id:"sheet.command.add-range-protection-from-context-menu",async handler(t){const e=t.get(me);return t.get(Ks).resetRule(),await e.executeCommand(Hf.id,{showDetail:!0}),!0}},u4={type:Se.COMMAND,id:"sheet.command.view-sheet-permission-from-context-menu",async handler(t){return await t.get(me).executeCommand(Hf.id,{showDetail:!1}),!0}},Nx={type:Se.COMMAND,id:"sheet.command.add-range-protection-from-sheet-bar",async handler(t){const e=t.get(me);return t.get(Ks).resetRule(),await e.executeCommand(Hf.id,{fromSheetBar:!0,showDetail:!0}),!0}},kx={type:Se.COMMAND,id:"sheet.command.view-sheet-permission-from-sheet-bar",async handler(t){return await t.get(me).executeCommand(Hf.id,{showDetail:!1}),!0}};Se.COMMAND;Se.COMMAND;Se.COMMAND;const c4={type:Se.COMMAND,id:"sheet.command.delete-range-protection-from-context-menu",async handler(t){var e;const n=t.get(me),r=t.get(Ce),i=t.get(xn),a=t.get(Bt),o=t.get(ga),s=r.getCurrentUnitForType(le.UNIVER_SHEET),l=s.getActiveSheet(),u=s.getUnitId(),c=l.getSheetId(),d=o.getRule(u,c);if(d!=null&&d.permissionId&&d!=null&&d.name)return n.executeCommand(p7.id,{unitId:u,subUnitId:c,rule:d});{const h=(e=a.getCurrentLastSelection())==null?void 0:e.range;if(!h)return!1;const f=t.get(li).getSubunitRuleList(u,c).find(m=>m.ranges.some(g=>ft.intersects(g,h)));if(f){const m={unitId:u,subUnitId:c,ruleIds:[f.id]};return await n.executeCommand(kf.id,m)&&i.pushUndoRedo({unitID:u,redoMutations:[{id:kf.id,params:m}],undoMutations:[{id:fh.id,params:{unitId:u,subUnitId:c,rules:[f]}}]}),!0}else return!1}}},d4={type:Se.COMMAND,id:"sheet.command.set-range-protection-from-context-menu",async handler(t){var e;const n=t.get(me),r=t.get(Ce),i=t.get(Bt),a=t.get(ga),o=r.getCurrentUnitForType(le.UNIVER_SHEET),s=o.getActiveSheet(),l=o.getUnitId(),u=s.getSheetId(),c=a.getRule(l,u),d=t.get(Ks);if(c!=null&&c.permissionId&&c!=null&&c.name){const h={...c,unitId:l,subUnitId:u,ranges:[]};return d.setRule(h),d.setOldRule(h),await n.executeCommand(Hf.id,{showDetail:!0}),!0}else{const h=(e=i.getCurrentLastSelection())==null?void 0:e.range;if(!h)return!1;const f=t.get(li).getSubunitRuleList(l,u).find(m=>{var g;return(g=m==null?void 0:m.ranges)==null?void 0:g.some(p=>ft.intersects(p,h))});if(f){const m={...f,unitId:l,subUnitId:u};return d.setRule(m),d.setOldRule(m),await n.executeCommand(Hf.id,{showDetail:!0}),!0}else return!1}}},Jne={type:Se.COMMAND,id:"sheet.command.set-protection",async handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(Ks),a=t.get(li),{rule:o}=e,{unitId:s,subUnitId:l}=o,u=[],c=[],d=i.oldRule;return(d==null?void 0:d.unitType)===o.unitType?o.unitType===Ni.Worksheet?(u.push({id:o4.id,params:{unitId:s,subUnitId:l,rule:o}}),c.push({id:o4.id,params:{unitId:s,subUnitId:l,rule:d}})):(u.push({id:ls.id,params:{unitId:s,subUnitId:l,rule:o,ruleId:o.id}}),c.push({id:ls.id,params:{unitId:s,subUnitId:l,ruleId:d.id,rule:d}})):(d&&(d.unitType===Ni.Worksheet?(u.push({id:l7.id,params:{unitId:s,subUnitId:l}}),c.push({id:bp.id,params:{unitId:s,rule:d,subUnitId:d.subUnitId}})):d.unitType===Ni.SelectRange&&(u.push({id:kf.id,params:{unitId:s,subUnitId:l,ruleIds:[d.id]}}),c.push({id:fh.id,params:{unitId:s,subUnitId:l,rules:[d]}}))),o.unitType===Ni.Worksheet?(u.push({id:bp.id,params:{unitId:s,rule:o,subUnitId:o.subUnitId}}),c.unshift({id:l7.id,params:{unitId:s,subUnitId:l}})):o.unitType===Ni.SelectRange&&(o.id=a.createRuleId(s,l),u.push({id:fh.id,params:{unitId:s,subUnitId:l,rules:[o]}}),c.unshift({id:kf.id,params:{unitId:s,subUnitId:l,ruleIds:[o.id]}}))),ti(u,n)&&r.pushUndoRedo({unitID:s,undoMutations:c,redoMutations:u}),!0}},ere={id:"sheet.command.refill",type:Se.COMMAND,handler:N(async(t,e)=>{const n=t.get(om);return n.applyType=e.type,!0},"handler")},J_={id:"sheet.command.remove-row-confirm",type:Se.COMMAND,handler:N(async(t,e)=>{var n;const r=t.get(Bt);let i=e==null?void 0:e.range;if(i||(i=(n=r.getCurrentLastSelection())==null?void 0:n.range),!i)return!1;const a=t.get(me),o=t.get(Ce),s=Dn(o);if(!s)return!1;const{worksheet:l}=s,u=l.getVisibleRows();if(Bne(u,[i])){const c=t.get(Il),d=t.get(sn);return await c.confirm({id:"sheet.confirm.remove-row",title:{title:d.t("info.problem")},children:{title:d.t("rightClick.deleteAllRowsAlert")},cancelText:d.t("button.cancel"),confirmText:d.t("button.confirm")}),!1}return await a.executeCommand(U0.id,{range:i}),!0},"handler")},eC={id:"sheet.command.remove-col-confirm",type:Se.COMMAND,handler:N(async(t,e)=>{var n;const r=t.get(Bt);let i=e==null?void 0:e.range;if(i||(i=(n=r.getCurrentLastSelection())==null?void 0:n.range),!i)return!1;const a=t.get(me),o=t.get(Ce),s=Dn(o);if(!s)return!1;const{worksheet:l}=s,u=l.getVisibleCols();if(Une(u,[i])){const c=t.get(Il),d=t.get(sn);return await c.confirm({id:"sheet.confirm.remove-col",title:{title:d.t("info.problem")},children:{title:d.t("rightClick.deleteAllColumnsAlert")},cancelText:d.t("button.cancel"),confirmText:d.t("button.confirm")}),!1}return await a.executeCommand(H0.id,{range:i}),!0},"handler")},Fx={id:"sheet.command.remove-sheet-confirm",type:Se.COMMAND,handler:N(async(t,e)=>{const{subUnitId:n}=e,r=t.get(Il),i=t.get(me),a=t.get(sn);return await r.confirm({id:"sheet.confirm.remove-sheet",title:{title:a.t("sheetConfig.deleteSheet")},children:{title:a.t("sheetConfig.deleteSheetContent")},cancelText:a.t("button.cancel"),confirmText:a.t("button.confirm")})?(await i.executeCommand(ab.id,{subUnitId:n}),!0):!1},"handler")};var dYt=Object.defineProperty,hYt=Object.getOwnPropertyDescriptor,fYt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?hYt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&dYt(e,n,i),i},"__decorateClass$H"),CV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$H");const mYt=zne.MARK_SELECTION,l3=er("univer.mark-selection-service");var SV;let cP=(SV=class extends et{constructor(t,e,n){super(),fe(this,"_shapeMap",new Map),this._currentService=t,this._renderManagerService=e,this._themeService=n}addShape(t,e=[],n=mYt){var r;const i=this._currentService.getCurrentUnitForType(le.UNIVER_SHEET),a=(r=i.getActiveSheet())==null?void 0:r.getSheetId();if(!a)return null;const o=Ie.generateRandomId();return this._shapeMap.set(o,{selection:t,subUnitId:a,unitId:i.getUnitId(),zIndex:n,control:null,exits:e}),this.refreshShapes(),o}refreshShapes(){var t;const e=this._currentService.getCurrentUnitForType(le.UNIVER_SHEET);if(!e)return;const n=e.getUnitId(),r=(t=e.getActiveSheet())==null?void 0:t.getSheetId();this._shapeMap.forEach(i=>{var a;const{unitId:o,subUnitId:s,selection:l,control:u,zIndex:c}=i;if(u==null||u.dispose(),o!==n||s!==r)return;const d=this._renderManagerService.getRenderById(o);if(!d)return;const h=(a=this._renderManagerService.withCurrentTypeOfUnit(le.UNIVER_SHEET,Gr))==null?void 0:a.getCurrentSkeleton();if(!h)return;const{scene:f}=d,{rowHeaderWidth:m,columnHeaderHeight:g}=h,p=new yx(f,c,this._themeService,!1,{rowHeaderWidth:m,columnHeaderHeight:g}),{rangeWithCoord:v,primaryWithCoord:_}=d.with(Ds).attachSelectionWithCoord(l);p.updateRange(v,_);const{style:C}=l;C&&p.updateStyle(C),i.control=p})}getShapeMap(){return this._shapeMap}removeShape(t){const e=this._shapeMap.get(t);if(!e)return;const{control:n}=e;n==null||n.dispose(),this._shapeMap.delete(t)}removeAllShapes(){for(const t of this._shapeMap.values()){const{control:e}=t;e==null||e.dispose()}this._shapeMap.clear()}},N(SV,"MarkSelectionService"),SV);cP=fYt([CV(0,Ce),CV(1,Sr),CV(2,se(Ja))],cP);function tre(t){return{strokeWidth:1.5,stroke:t.getCurrentTheme().primaryColor,fill:"rgba(178, 178, 178, 0.10)",widgets:{},hasAutoFill:!1,strokeDash:8}}N(tre,"createCopyPasteSelectionStyle");var gYt=Object.defineProperty,pYt=Object.getOwnPropertyDescriptor,vYt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?pYt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&gYt(e,n,i),i},"__decorateClass$G"),B3=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$G"),u1=(t=>(t[t.OFF=0]="OFF",t[t.ONCE=1]="ONCE",t[t.INFINITE=2]="INFINITE",t))(u1||{});const sm=er("univer.format-painter-service");var bV;let dP=(bV=class extends et{constructor(t,e,n,r,i,a){super(),fe(this,"status$"),fe(this,"_selectionFormat"),fe(this,"_markId",null),fe(this,"_status$"),fe(this,"_defaultHook",null),fe(this,"_extendHooks",[]),this._selectionManagerService=t,this._themeService=e,this._markSelectionService=n,this._logService=r,this._commandService=i,this._undoRedoService=a,this._status$=new Pn(0),this.status$=this._status$.asObservable(),this._selectionFormat={styles:new Ct,merges:[]}}addHook(t){var e,n,r;t.isDefaultHook&&((e=t.priority)!=null?e:0)>((r=(n=this._defaultHook)==null?void 0:n.priority)!=null?r:-1)?this._defaultHook=t:(this._extendHooks.push(t),this._extendHooks.sort((i,a)=>(i.priority||0)-(a.priority||0)))}getHooks(){return this._defaultHook?[this._defaultHook,...this._extendHooks]:this._extendHooks}setStatus(t){this._updateRangeMark(t),this._status$.next(t),this.getHooks().forEach(e=>{e.onStatusChange!==void 0&&e.onStatusChange(t)})}getStatus(){return this._status$.getValue()}setSelectionFormat(t){this._selectionFormat=t}getSelectionFormat(){return this._selectionFormat}applyFormatPainter(t,e,n){const r=this.getHooks(),i=[],a=[];r.forEach(s=>{if(s.onApply!==void 0){const l=s.onApply(t,e,n,this._selectionFormat);l&&(i.push(...l.redos),a.push(...l.undos))}});for(const s of r)if(s.onBeforeApply!==void 0&&!s.onBeforeApply({unitId:t,subUnitId:e,range:n,redoMutationsInfo:i,format:this._selectionFormat,undoMutationsInfo:a}))return!1;this._logService.log("[FormatPainterService]","apply mutations",{undoMutationsInfo:a,redoMutationsInfo:i});const o=i.every(s=>this._commandService.executeCommand(s.id,s.params));return o&&this._undoRedoService.pushUndoRedo({unitID:t,undoMutations:a,redoMutations:i}),o}_updateRangeMark(t){if(this._markSelectionService.removeAllShapes(),t!==0){const e=this._selectionManagerService.getCurrentLastSelection();if(e){const n=tre(this._themeService);t===2?this._markId=this._markSelectionService.addShape({...e,style:n}):this._markId=this._markSelectionService.addShape({...e,style:n},[Mn.id])}}}},N(bV,"FormatPainterService"),bV);dP=vYt([B3(0,se(Bt)),B3(1,se(Ja)),B3(2,l3),B3(3,Ra),B3(4,me),B3(5,xn)],dP);const Vx={id:"sheet.operation.set-format-painter",type:Se.OPERATION,handler:N((t,e)=>e?(t.get(sm).setStatus(e.status),!0):!1,"handler")},nre={type:Se.COMMAND,id:"sheet.command.set-infinite-format-painter",handler:N(async t=>{const e=t.get(sm).getStatus();let n;return e!==u1.OFF?n=u1.OFF:n=u1.INFINITE,t.get(me).executeCommand(Vx.id,{status:n})},"handler")},Sb={type:Se.COMMAND,id:"sheet.command.set-once-format-painter",handler:N(async t=>{const e=t.get(sm).getStatus();let n;return e!==u1.OFF?n=u1.OFF:n=u1.ONCE,t.get(me).executeCommand(Vx.id,{status:n})},"handler")},Bx={type:Se.COMMAND,id:"sheet.command.apply-format-painter",handler:N(async(t,e)=>t.get(sm).applyFormatPainter(e.unitId,e.subUnitId,e.range),"handler")},C0={type:Se.COMMAND,id:"sheet.command.set-selection-frozen",handler:N(async(t,e)=>{const{type:n}=e||{},r=t.get(Ce),i=t.get(xn),a=Dn(r);if(!a)return!1;const{unitId:o,subUnitId:s}=a,l=t.get(me),u=t.get(Bt).getCurrentSelections();if(!u)return!1;const c=u[(u==null?void 0:u.length)-1],{range:d}=c,h=t.get(Sr).getRenderById(o).with(zl),{sheetViewStartRow:f=0,sheetViewStartColumn:m=0}=h.getCurrentScrollState()||{};let g,p,v,_;const{startRow:C,startColumn:S,rangeType:b}=d;if(b===it.ROW||n===1)g=C,v=C-f,p=-1,_=0;else if(b===it.COLUMN||n===2)g=-1,v=0,p=S,_=S-m;else if(b===it.NORMAL)g=C,v=C-f,p=S,_=S-m;else return!1;const y={unitId:o,subUnitId:s,startRow:g,startColumn:p,xSplit:p>0?Math.max(1,_):_,ySplit:g>0?Math.max(1,v):v},A=sb(t,y);return l.syncExecuteCommand(El.id,y)&&i.pushUndoRedo({unitID:o,undoMutations:[{id:El.id,params:A}],redoMutations:[{id:El.id,params:y}]}),!0},"handler")},Ux={type:Se.COMMAND,id:"sheet.command.set-row-frozen",handler:N(async t=>(t.get(me).executeCommand(C0.id,{type:1}),!0),"handler")},Hx={type:Se.COMMAND,id:"sheet.command.set-col-frozen",handler:N(async t=>(t.get(me).executeCommand(C0.id,{type:2}),!0),"handler")},h4={type:Se.COMMAND,id:"sheet.command.cancel-frozen",handler:N(async t=>{const e=t.get(me),n=t.get(Ce),r=t.get(xn),i=Dn(n);if(!i)return!1;const{unitId:a,subUnitId:o}=i,s={unitId:a,subUnitId:o,startRow:-1,startColumn:-1,xSplit:0,ySplit:0},l=sb(t,s);return e.syncExecuteCommand(El.id,s)&&r.pushUndoRedo({unitID:a,undoMutations:[{id:El.id,params:l}],redoMutations:[{id:El.id,params:s}]}),!0},"handler")},u3=er("univer.sheetbar-service"),Sje=class extends et{constructor(){super(),fe(this,"renameId$"),fe(this,"removeId$"),fe(this,"scroll$"),fe(this,"scrollX$"),fe(this,"addSheet$"),fe(this,"_renameId$"),fe(this,"_removeId$"),fe(this,"_scroll$"),fe(this,"_scrollX$"),fe(this,"_addSheet$"),fe(this,"_currentHandler",null),this._renameId$=new Zt,this.renameId$=this._renameId$.asObservable(),this._removeId$=new Zt,this.removeId$=this._removeId$.asObservable(),this._scroll$=new Zt,this.scroll$=this._scroll$.asObservable(),this._scrollX$=new Zt,this.scrollX$=this._scrollX$.asObservable(),this._addSheet$=new Zt,this.addSheet$=this._addSheet$.asObservable()}setRenameId(e){this._renameId$.next(e)}setRemoveId(e){this._removeId$.next(e)}setScroll(e){this._scroll$.next(e)}setScrollX(e){this._scrollX$.next(e)}setAddSheet(e){this._addSheet$.next(e)}triggerSheetBarMenu(){var e;(e=this._currentHandler)==null||e.handleSheetBarMenu()}registerSheetBarMenuHandler(e){if(this._currentHandler)throw new Error("There is already a context menu handler!");return this._currentHandler=e,$t(()=>{this._currentHandler=null})}};N(Sje,"SheetBarService");let bje=Sje;const jx={id:"ui-sheet.command.show-menu-list",type:Se.OPERATION,handler:N(async t=>(t.get(u3).triggerSheetBarMenu(),!0),"handler")},rre={id:"sheet.operation.set-activate-cell-edit",type:Se.OPERATION,handler:N((t,e)=>(t.get(Zl).setEditCell(e),!0),"handler")},$x={id:"sheet.operation.rename-sheet",type:Se.OPERATION,handler:N(async(t,e)=>{const n=t.get(u3);return e&&n.setRenameId(e.subUnitId),!0},"handler")},_Yt={id:"sheet.operation.scroll-to-range",type:Se.OPERATION,handler:N((t,e)=>{const n=t.get(Ce);return t.get(Sr).getRenderById(n.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()).with(X_).scrollToRange(e.range)},"handler")},yje={type:Se.OPERATION,id:"sheet-permission.operation.openDialog",async handler(t,e){const n=t.get(Rd);return n.close("DESKTOP_FIND_REPLACE_DIALOG"),n.open({id:uP,title:{title:"permission.dialog.allowedPermissionType"},children:{label:pje},width:393,destroyOnClose:!0,onClose:N(()=>n.close(uP),"onClose")}),!0}},ire="DefinedNameContainer",gY="AllDefaultWorkbook",are={id:"sidebar.operation.defined-name",type:Se.COMMAND,handler:N(async(t,e)=>{const n=t.get(ol),r=t.get(Fo),i=t.get(sn),a=t.get(Ce),o=Dn(a);if(!o)return!1;const{unitId:s}=o;switch(e.value){case"open":r.setOperationSheetUnitId(s),n.open({header:{title:i.t("definedName.featureTitle")},children:{label:ire},onClose:N(()=>{r.closeRangePrompt()},"onClose"),width:333});break;case"close":default:n.close();break}return!0},"handler")};var Eje={exports:{}},Wx={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var CYt=Re,SYt=Symbol.for("react.element"),bYt=Symbol.for("react.fragment"),yYt=Object.prototype.hasOwnProperty,EYt=CYt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RYt={key:!0,ref:!0,__self:!0,__source:!0};function ore(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)yYt.call(e,r)&&!RYt.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:SYt,type:t,key:a,ref:o,props:i,_owner:EYt.current}}N(ore,"q");Wx.Fragment=bYt;Wx.jsx=ore;Wx.jsxs=ore;Eje.exports=Wx;var J=Eje.exports,Zc=function(){return Zc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Zc.apply(this,arguments)},AYt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},ks=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=AYt(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(wje()));return sre(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},Zc({ref:e,className:s},o),a)});function sre(t,e,n,r,i){return E.createElement(t.tag,Zc(Zc({key:e},Rje(t,n,i)),r),(Aje(t,n).children||[]).map(function(a,o){return sre(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}N(sre,"render");function Rje(t,e,n){var r=Zc({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}N(Rje,"replaceRuntimeIdsAndExtInAttrs");function Aje(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?Zc(Zc({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?Zc(Zc({},i),{attrs:Zc(Zc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}N(Aje,"replaceRuntimeIdsInDefs");function wje(){return Math.random().toString(36).substring(2,8)}N(wje,"generateShortUuid");ks.displayName="UniverIcon";var wYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z",fillRule:"evenodd",clipRule:"evenodd"}}]},Dje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"autofill",ref:e,icon:wYt}))});Dje.displayName="Autofill";var DYt={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"}}]},z0=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"check-mark-single",ref:e,icon:DYt}))});z0.displayName="CheckMarkSingle";var IYt={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"}}]},Ije=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"close-single",ref:e,icon:IYt}))});Ije.displayName="CloseSingle";var PYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"g",attrs:{fill:"currentColor",clipPath:"url(#convert-single_clip0_911_593)"},children:[{tag:"path",attrs:{d:"M2.44766.848145C1.564.848145.847656 1.56449.847656 2.44814V6.44814C.847656 7.3318 1.564 8.04814 2.44766 8.04814H6.44766C7.33131 8.04814 8.04766 7.3318 8.04766 6.44814V2.44814C8.04766 1.56449 7.33131.848145 6.44766.848145H2.44766zM2.04766 6.44814V5.04824H3.84775V6.84814H2.44766C2.22674 6.84814 2.04766 6.66906 2.04766 6.44814zM2.04766 3.84824H3.84775V2.04814H2.44766C2.22674 2.04814 2.04766 2.22723 2.04766 2.44814V3.84824zM5.04775 6.84814V5.04824H6.84766V6.44814C6.84766 6.66906 6.66857 6.84814 6.44766 6.84814H5.04775zM5.04775 3.84824H6.84766V2.44814C6.84766 2.22723 6.66857 2.04814 6.44766 2.04814H5.04775V3.84824zM9.55215 7.95166C8.66849 7.95166 7.95215 8.668 7.95215 9.55166V13.5517C7.95215 14.4353 8.66849 15.1517 9.55215 15.1517L11.5522 15.1517 13.5521 15.1517C14.4358 15.1517 15.1521 14.4353 15.1521 13.5517L15.1521 11.5518 15.1521 9.55166C15.1521 8.668 14.4358 7.95166 13.5521 7.95166H9.55215zM13.9521 10.9518V9.55166C13.9521 9.33075 13.7731 9.15166 13.5521 9.15166H12.1522V10.9518H13.9521zM10.9522 10.9518V9.15166H9.55215C9.33123 9.15166 9.15215 9.33075 9.15215 9.55166V10.9518H10.9522zM9.15215 12.1518H10.9522V13.9517H9.55215C9.33123 13.9517 9.15215 13.7726 9.15215 13.5517V12.1518zM12.1522 12.1518H13.9521V13.5517C13.9521 13.7726 13.7731 13.9517 13.5521 13.9517H12.1522V12.1518z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{d:"M9.62158 2.44912C9.62158 2.11775 9.89021 1.84912 10.2216 1.84912H12.7516C13.6352 1.84912 14.3516 2.56547 14.3516 3.44912V5.9791C14.3516 6.31047 14.0829 6.5791 13.7516 6.5791 13.4202 6.5791 13.1516 6.31047 13.1516 5.9791V3.44912C13.1516 3.22821 12.9725 3.04912 12.7516 3.04912H10.2216C9.89021 3.04912 9.62158 2.78049 9.62158 2.44912zM5.77871 14.1507C6.11008 14.1507 6.37871 13.8821 6.37871 13.5507 6.37871 13.2193 6.11008 12.9507 5.77871 12.9507L3.24873 12.9507C3.02782 12.9507 2.84873 12.7716 2.84873 12.5507L2.84873 10.0207C2.84873 9.68933 2.5801 9.4207 2.24873 9.4207 1.91736 9.4207 1.64873 9.68933 1.64873 10.0207L1.64873 12.5507C1.64873 13.4343 2.36507 14.1507 3.24873 14.1507H5.77871z"}}]},{tag:"defs",attrs:{},children:[{tag:"clipPath",attrs:{id:"convert-single_clip0_911_593"},children:[{tag:"path",attrs:{fill:"#fff",d:"M0 0H16V16H0z"}}]}]}],defIds:["convert-single_clip0_911_593"]},Pje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"convert-single",ref:e,icon:PYt}))});Pje.displayName="ConvertSingle";var MYt={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"}}]},zx=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"delete-single",ref:e,icon:MYt}))});zx.displayName="DeleteSingle";var TYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_371_77",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_371_77)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z"}}]}]},pY=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"dropdown-single",ref:e,icon:TYt}))});pY.displayName="DropdownSingle";var LYt={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"}}]},lre=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"error-single",ref:e,icon:LYt}))});lre.displayName="ErrorSingle";var xYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.28096 4.6541C1.57489 4.50109 1.93721 4.61533 2.09022 4.90926C2.27315 5.26067 2.55999 5.60455 2.94829 5.92278C4.04628 6.82266 5.87505 7.44865 7.99828 7.44865C10.1215 7.44865 11.9503 6.82267 13.0482 5.92279C13.4366 5.60455 13.7234 5.26067 13.9063 4.90927C14.0594 4.61533 14.4217 4.50109 14.7156 4.65409C15.0095 4.8071 15.1238 5.16941 14.9708 5.46334C14.6995 5.98445 14.2981 6.44997 13.8089 6.8509C13.7298 6.91575 13.6481 6.97914 13.564 7.041L15.2245 8.70153C15.4588 8.93585 15.4588 9.31575 15.2245 9.55006C14.9902 9.78438 14.6103 9.78438 14.376 9.55006L12.5041 7.67822C11.8977 7.97568 11.2181 8.21208 10.4884 8.37706L11.0996 10.6581C11.1853 10.9782 10.9954 11.3072 10.6753 11.393C10.3552 11.4787 10.0262 11.2888 9.94045 10.9687L9.29949 8.57652C8.8758 8.62404 8.44081 8.64865 7.99828 8.64865C7.55276 8.64865 7.11487 8.62371 6.68846 8.57555L6.04723 10.9687C5.96147 11.2888 5.63247 11.4788 5.31239 11.393C4.99231 11.3073 4.80236 10.9783 4.88812 10.6582L5.49983 8.37516C4.7743 8.2105 4.09843 7.9752 3.49498 7.67947L1.62436 9.55009C1.39005 9.78441 1.01015 9.78441 0.775835 9.5501C0.54152 9.31578 0.541518 8.93588 0.775832 8.70157L2.43478 7.04261C2.34987 6.98024 2.26746 6.91632 2.18764 6.8509C1.69842 6.44997 1.29706 5.98445 1.0258 5.46335C0.872791 5.16942 0.987031 4.80711 1.28096 4.6541Z"}}]},Mje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"eyelash-single",ref:e,icon:xYt}))});Mje.displayName="EyelashSingle";var OYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.06409 5.53454C5.93592 5.53454 5.84083 5.41567 5.86897 5.29063L5.95442 4.9109C6.05444 4.48178 6.23806 4.11547 6.51182 3.81952 6.81082 3.49628 7.25398 3.35405 7.79738 3.35405 7.99847 3.35405 8.21359 3.37775 8.44188 3.42245 8.46089 3.42617 8.47974 3.43006 8.49846 3.4341 8.7099 3.4798 8.93698 3.38478 9.02031 3.18514L9.24767 2.6404C9.33457 2.43219 9.23178 2.19404 9.01582 2.12874 8.98358 2.11899 8.95028 2.10912 8.91591 2.09914 8.62745 2.01631 8.28392 1.97217 7.88074 1.97217 6.82015 1.97217 6.02714 2.23936 5.4746 2.7444 4.90987 3.26069 4.50889 3.99917 4.28413 4.9762L2.83703 11.1909C2.76126 11.5286 2.666 11.8917 2.54844 12.2812 2.42975 12.6734 2.2873 13.0595 2.12221 13.4373 1.95577 13.8159 1.76813 14.1762 1.55955 14.5171 1.49345 14.6251 1.42515 14.7282 1.35467 14.8263 1.26508 14.9509 1.3347 15.133 1.48655 15.1554 2.13635 15.2509 2.8179 15.0763 3.18197 14.5296 3.32661 14.3124 3.46779 14.0646 3.60509 13.7851 3.96635 13.0497 4.30522 12.0103 4.61867 10.6574L5.469 7.01534C5.49013 6.92483 5.57082 6.86081 5.66376 6.86081H7.62478C7.8097 6.86081 7.97051 6.73405 8.01371 6.55425L8.14014 6.02798C8.20057 5.77642 8.00992 5.53454 7.75121 5.53454H6.06409zM14.3211 5.72037L12.5124 7.96963 11.4089 5.77754C11.3422 5.63012 11.1954 5.5354 11.0336 5.5354H10.3129C10.0085 5.5354 9.80921 5.85428 9.9427 6.1279L11.4089 9.05502 8.79783 12.1493C8.56587 12.4158 8.75519 12.8315 9.10855 12.8315H9.68607C9.80672 12.8315 9.9605 12.7822 10.0388 12.6904L12.1108 10.2648 13.1176 12.561C13.1786 12.7231 13.333 12.8315 13.5061 12.8315H14.3C14.5831 12.8315 14.7417 12.6175 14.6426 12.3524L13.1728 9.28628C13.1728 9.28628 15.4009 6.45542 15.6013 6.17892 15.7966 5.90929 15.6023 5.5354 15.2693 5.5354H14.6661C14.5275 5.5354 14.4333 5.58887 14.3211 5.72037z"}}]},Tje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"fx-single",ref:e,icon:OYt}))});Tje.displayName="FxSingle";var NYt={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"}}]},ure=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"increase-single",ref:e,icon:NYt}))});ure.displayName="IncreaseSingle";var kYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.62402 7.72905C2.58427 7.72905 2.55205 7.76127 2.55205 7.80102V13.6782C2.55205 13.7179 2.58427 13.7502 2.62402 13.7502H13.3755C13.4152 13.7502 13.4474 13.7179 13.4474 13.6782V7.80102C13.4474 7.76127 13.4152 7.72905 13.3755 7.72905H2.62402ZM1.35205 7.80102C1.35205 7.09853 1.92153 6.52905 2.62402 6.52905H13.3755C14.0779 6.52905 14.6474 7.09853 14.6474 7.80102V13.6782C14.6474 14.3807 14.0779 14.9502 13.3755 14.9502H2.62402C1.92153 14.9502 1.35205 14.3807 1.35205 13.6782V7.80102Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M8 2.25005C6.69847 2.25003 5.64336 3.30513 5.64336 4.60666V7.12895C5.64336 7.46032 5.37473 7.72895 5.04336 7.72895 4.71199 7.72895 4.44336 7.46032 4.44336 7.12895V4.60666C4.44336 2.64239 6.04451 1.05565 8.00879 1.05566M8 2.25005L8.00879 1.05566 8 2.25005zM8.00879 1.05566L8 2.25005C9.30154 2.25003 10.3567 3.30513 10.3567 4.60666V7.12895C10.3567 7.46032 10.6253 7.72895 10.9567 7.72895 11.288 7.72895 11.5567 7.46032 11.5567 7.12895V4.60666C11.5567 2.64239 9.97306 1.05565 8.00879 1.05566zM8.00039 9.4668C8.33176 9.4668 8.60039 9.73543 8.60039 10.0668V12.0827C8.60039 12.4141 8.33176 12.6827 8.00039 12.6827 7.66902 12.6827 7.40039 12.4141 7.40039 12.0827V10.0668C7.40039 9.73543 7.66902 9.4668 8.00039 9.4668z",fillRule:"evenodd",clipRule:"evenodd"}}]},cre=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"lock-single",ref:e,icon:kYt}))});cre.displayName="LockSingle";var FYt={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"}}]},tC=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"more-down-single",ref:e,icon:FYt}))});tC.displayName="MoreDownSingle";var VYt={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"}}]},vY=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"more-single",ref:e,icon:VYt}))});vY.displayName="MoreSingle";var BYt={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"}}]}]},Lje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"paint-bucket",ref:e,icon:BYt}))});Lje.displayName="PaintBucket";var UYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.785 6.77762C5.78908 6.7777 5.79316 6.77774 5.79725 6.77774C5.80134 6.77774 5.80543 6.7777 5.8095 6.77762H10.0184C10.0225 6.7777 10.0266 6.77774 10.0307 6.77774C10.0347 6.77774 10.0388 6.7777 10.0429 6.77762H13.6638V7.63727C13.6638 7.96864 13.9324 8.23727 14.2638 8.23727C14.5951 8.23727 14.8638 7.96864 14.8638 7.63727V3.9999C14.8638 2.56395 13.6997 1.39989 12.2637 1.3999L3.56389 1.39999C2.12797 1.40001 0.96393 2.56405 0.96392 3.99998L0.963867 11.6666C0.963857 13.1025 2.12792 14.2666 3.56387 14.2666H8.0542C8.38557 14.2666 8.6542 13.9979 8.6542 13.6666C8.6542 13.3352 8.38557 13.0666 8.0542 13.0666H3.56387C2.79067 13.0666 2.16386 12.4398 2.16387 11.6666L2.1639 6.77762H5.785ZM6.39725 2.59996L9.43065 2.59993V5.57762H6.39725V2.59996ZM5.19725 5.57762V2.59998L3.56391 2.59999C2.79072 2.6 2.16393 3.22679 2.16392 3.99998L2.16391 5.57762H5.19725ZM13.6638 5.57762V3.9999C13.6638 3.2267 13.037 2.59989 12.2638 2.5999L10.6307 2.59992V5.57762H13.6638Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M14.1223 10.2333V10.7496C14.7087 10.9869 15.1223 11.5618 15.1223 12.2333V12.8999C15.1223 13.7836 14.406 14.4999 13.5223 14.4999H11.5223C10.6387 14.4999 9.92235 13.7836 9.92235 12.8999V12.2333C9.92235 11.5618 10.336 10.9869 10.9223 10.7496V10.2333C10.9223 9.34961 11.6387 8.63328 12.5223 8.63328C13.406 8.63328 14.1223 9.34961 14.1223 10.2333ZM11.1223 12.2333C11.1223 12.0124 11.3014 11.8333 11.5223 11.8333H13.5223C13.7433 11.8333 13.9223 12.0124 13.9223 12.2333V12.8999C13.9223 13.1209 13.7433 13.2999 13.5223 13.2999H11.5223C11.3014 13.2999 11.1223 13.1209 11.1223 12.8999V12.2333ZM12.9223 10.2333V10.6333H12.1223V10.2333C12.1223 10.0124 12.3014 9.83328 12.5223 9.83328C12.7433 9.83328 12.9223 10.0124 12.9223 10.2333Z",fillRule:"evenodd",clipRule:"evenodd"}}]},xje=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"protect-single",ref:e,icon:UYt}))});xje.displayName="ProtectSingle";var HYt={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"}}]},_Y=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"warning-single",ref:e,icon:HYt}))});_Y.displayName="WarningSingle";var jYt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z"}}]},dre=E.forwardRef(function(t,e){return E.createElement(ks,Object.assign({},t,{id:"write-single",ref:e,icon:jYt}))});dre.displayName="WriteSingle";const $Yt=N(()=>J.jsxs("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M0.98999 1.08218H-0.0100098V0.0821838H0.98999V1.08218Z",fill:"black"}),J.jsx("path",{d:"M5.78992 1.08218H2.78992V0.0821838H5.78992V1.08218Z",fill:"black"}),J.jsx("path",{d:"M7.58984 1.08218H8.58984V0.0821838H7.58984V1.08218Z",fill:"black"}),J.jsx("path",{d:"M14.9152 1.08218H13.9152V0.0821838H14.9152V1.08218Z",fill:"black"}),J.jsx("path",{d:"M16.7151 1.08218H19.7151V0.0821838H16.7151V1.08218Z",fill:"black"}),J.jsx("path",{d:"M22.515 1.08218H21.515V0.0821838H22.515V1.08218Z",fill:"black"}),J.jsx("path",{d:"M27.8405 1.08218H28.8405V0.0821838H27.8405V1.08218Z",fill:"black"}),J.jsx("path",{d:"M33.6404 1.08218H30.6404V0.0821838H33.6404V1.08218Z",fill:"black"}),J.jsx("path",{d:"M35.4403 1.08218H36.4403V0.0821838H35.4403V1.08218Z",fill:"black"}),J.jsx("path",{d:"M42.7657 1.08218H41.7657V0.0821838H42.7657V1.08218Z",fill:"black"}),J.jsx("path",{d:"M44.5657 1.08218H47.5657V0.0821838H44.5657V1.08218Z",fill:"black"}),J.jsx("path",{d:"M50.3656 1.08218H49.3656V0.0821838H50.3656V1.08218Z",fill:"black"}),J.jsx("path",{d:"M55.691 1.08218H56.691V0.0821838H55.691V1.08218Z",fill:"black"}),J.jsx("path",{d:"M61.491 1.08218H58.491V0.0821838H61.491V1.08218Z",fill:"black"}),J.jsx("path",{d:"M63.2909 1.08218H64.2909V0.0821838H63.2909V1.08218Z",fill:"black"}),J.jsx("path",{d:"M70.6163 1.08218H69.6163V0.0821838H70.6163V1.08218Z",fill:"black"}),J.jsx("path",{d:"M72.4163 1.08218H75.4163V0.0821838H72.4163V1.08218Z",fill:"black"}),J.jsx("path",{d:"M78.2162 1.08218H77.2162V0.0821838H78.2162V1.08218Z",fill:"black"}),J.jsx("path",{d:"M83.5416 1.08218H84.5416V0.0821838H83.5416V1.08218Z",fill:"black"}),J.jsx("path",{d:"M89.3416 1.08218H86.3416V0.0821838H89.3416V1.08218Z",fill:"black"}),J.jsx("path",{d:"M91.1415 1.08218H92.1415V0.0821838H91.1415V1.08218Z",fill:"black"}),J.jsx("path",{d:"M98.4669 1.08218H97.4669V0.0821838H98.4669V1.08218Z",fill:"black"}),J.jsx("path",{d:"M100.267 1.08218H103.267V0.0821838H100.267V1.08218Z",fill:"black"}),J.jsx("path",{d:"M106.067 1.08218H105.067V0.0821838H106.067V1.08218Z",fill:"black"}),J.jsx("path",{d:"M111.392 1.08218H112.392V0.0821838H111.392V1.08218Z",fill:"black"}),J.jsx("path",{d:"M117.192 1.08218H114.192V0.0821838H117.192V1.08218Z",fill:"black"}),J.jsx("path",{d:"M118.992 1.08218H119.992V0.0821838H118.992V1.08218Z",fill:"black"})]}),"BorderDashDot"),WYt=N(()=>J.jsxs("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.0100098 1.15771H0.98999V0.157715H-0.0100098V1.15771Z",fill:"black"}),J.jsx("path",{d:"M2.78992 1.15771H5.78992V0.157715H2.78992V1.15771Z",fill:"black"}),J.jsx("path",{d:"M8.58984 1.15771H7.58984V0.157715H8.58984V1.15771Z",fill:"black"}),J.jsx("path",{d:"M10.3899 1.15771H11.3899V0.157715H10.3899V1.15771Z",fill:"black"}),J.jsx("path",{d:"M19.0903 1.15771H18.0903V0.157715H19.0903V1.15771Z",fill:"black"}),J.jsx("path",{d:"M20.8903 1.15771H23.8903V0.157715H20.8903V1.15771Z",fill:"black"}),J.jsx("path",{d:"M26.6902 1.15771H25.6902V0.157715H26.6902V1.15771Z",fill:"black"}),J.jsx("path",{d:"M28.4902 1.15771H29.4902V0.157715H28.4902V1.15771Z",fill:"black"}),J.jsx("path",{d:"M37.1907 1.15771H36.1907V0.157715H37.1907V1.15771Z",fill:"black"}),J.jsx("path",{d:"M38.9906 1.15771H41.9906V0.157715H38.9906V1.15771Z",fill:"black"}),J.jsx("path",{d:"M44.7905 1.15771H43.7905V0.157715H44.7905V1.15771Z",fill:"black"}),J.jsx("path",{d:"M46.5906 1.15771H47.5906V0.157715H46.5906V1.15771Z",fill:"black"}),J.jsx("path",{d:"M55.291 1.15771H54.291V0.157715H55.291V1.15771Z",fill:"black"}),J.jsx("path",{d:"M57.0909 1.15771H60.0909V0.157715H57.0909V1.15771Z",fill:"black"}),J.jsx("path",{d:"M62.8909 1.15771H61.8909V0.157715H62.8909V1.15771Z",fill:"black"}),J.jsx("path",{d:"M64.6909 1.15771H65.6909V0.157715H64.6909V1.15771Z",fill:"black"}),J.jsx("path",{d:"M73.3914 1.15771H72.3914V0.157715H73.3914V1.15771Z",fill:"black"}),J.jsx("path",{d:"M75.1913 1.15771H78.1913V0.157715H75.1913V1.15771Z",fill:"black"}),J.jsx("path",{d:"M80.9912 1.15771H79.9912V0.157715H80.9912V1.15771Z",fill:"black"}),J.jsx("path",{d:"M82.7913 1.15771H83.7913V0.157715H82.7913V1.15771Z",fill:"black"}),J.jsx("path",{d:"M91.4917 1.15771H90.4917V0.157715H91.4917V1.15771Z",fill:"black"}),J.jsx("path",{d:"M93.2916 1.15771H96.2916V0.157715H93.2916V1.15771Z",fill:"black"}),J.jsx("path",{d:"M99.0916 1.15771H98.0916V0.157715H99.0916V1.15771Z",fill:"black"}),J.jsx("path",{d:"M100.892 1.15771H101.892V0.157715H100.892V1.15771Z",fill:"black"}),J.jsx("path",{d:"M109.592 1.15771H108.592V0.157715H109.592V1.15771Z",fill:"black"}),J.jsx("path",{d:"M111.392 1.15771H114.392V0.157715H111.392V1.15771Z",fill:"black"}),J.jsx("path",{d:"M117.192 1.15771H116.192V0.157715H117.192V1.15771Z",fill:"black"}),J.jsx("path",{d:"M118.992 1.15771H119.992V0.157715H118.992V1.15771Z",fill:"black"})]}),"BorderDashDotDot"),zYt=N(()=>J.jsxs("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.00842285 1.22449H2.99158V0.224487H-0.00842285V1.22449Z",fill:"black"}),J.jsx("path",{d:"M6.14941 1.22449H9.14941V0.224487H6.14941V1.22449Z",fill:"black"}),J.jsx("path",{d:"M15.3073 1.22449H12.3073V0.224487H15.3073V1.22449Z",fill:"black"}),J.jsx("path",{d:"M18.4651 1.22449H21.4651V0.224487H18.4651V1.22449Z",fill:"black"}),J.jsx("path",{d:"M27.6229 1.22449H24.6229V0.224487H27.6229V1.22449Z",fill:"black"}),J.jsx("path",{d:"M30.7808 1.22449H33.7808V0.224487H30.7808V1.22449Z",fill:"black"}),J.jsx("path",{d:"M39.9386 1.22449H36.9386V0.224487H39.9386V1.22449Z",fill:"black"}),J.jsx("path",{d:"M43.0964 1.22449H46.0964V0.224487H43.0964V1.22449Z",fill:"black"}),J.jsx("path",{d:"M52.2543 1.22449H49.2543V0.224487H52.2543V1.22449Z",fill:"black"}),J.jsx("path",{d:"M55.4121 1.22449H58.4121V0.224487H55.4121V1.22449Z",fill:"black"}),J.jsx("path",{d:"M64.5699 1.22449H61.5699V0.224487H64.5699V1.22449Z",fill:"black"}),J.jsx("path",{d:"M67.7278 1.22449H70.7278V0.224487H67.7278V1.22449Z",fill:"black"}),J.jsx("path",{d:"M76.8856 1.22449H73.8856V0.224487H76.8856V1.22449Z",fill:"black"}),J.jsx("path",{d:"M80.0435 1.22449H83.0435V0.224487H80.0435V1.22449Z",fill:"black"}),J.jsx("path",{d:"M89.2013 1.22449H86.2013V0.224487H89.2013V1.22449Z",fill:"black"}),J.jsx("path",{d:"M92.3591 1.22449H95.3591V0.224487H92.3591V1.22449Z",fill:"black"}),J.jsx("path",{d:"M101.517 1.22449H98.517V0.224487H101.517V1.22449Z",fill:"black"}),J.jsx("path",{d:"M104.675 1.22449H107.675V0.224487H104.675V1.22449Z",fill:"black"}),J.jsx("path",{d:"M113.833 1.22449H110.833V0.224487H113.833V1.22449Z",fill:"black"}),J.jsx("path",{d:"M116.99 1.22449H119.99V0.224487H116.99V1.22449Z",fill:"black"})]}),"BorderDashed"),qYt=N(()=>J.jsxs("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.00976562 1.65707H0.990234V0.657074H-0.00976562V1.65707Z",fill:"black"}),J.jsx("path",{d:"M2.32361 1.65707H3.32361V0.657074H2.32361V1.65707Z",fill:"black"}),J.jsx("path",{d:"M5.65698 1.65707H4.65698V0.657074H5.65698V1.65707Z",fill:"black"}),J.jsx("path",{d:"M6.99036 1.65707H7.99036V0.657074H6.99036V1.65707Z",fill:"black"}),J.jsx("path",{d:"M10.3237 1.65707H9.32373V0.657074H10.3237V1.65707Z",fill:"black"}),J.jsx("path",{d:"M11.6571 1.65707H12.6571V0.657074H11.6571V1.65707Z",fill:"black"}),J.jsx("path",{d:"M14.9905 1.65707H13.9905V0.657074H14.9905V1.65707Z",fill:"black"}),J.jsx("path",{d:"M16.3239 1.65707H17.3239V0.657074H16.3239V1.65707Z",fill:"black"}),J.jsx("path",{d:"M19.6572 1.65707H18.6572V0.657074H19.6572V1.65707Z",fill:"black"}),J.jsx("path",{d:"M20.9906 1.65707H21.9906V0.657074H20.9906V1.65707Z",fill:"black"}),J.jsx("path",{d:"M24.324 1.65707H23.324V0.657074H24.324V1.65707Z",fill:"black"}),J.jsx("path",{d:"M25.6573 1.65707H26.6573V0.657074H25.6573V1.65707Z",fill:"black"}),J.jsx("path",{d:"M28.9907 1.65707H27.9907V0.657074H28.9907V1.65707Z",fill:"black"}),J.jsx("path",{d:"M30.3241 1.65707H31.3241V0.657074H30.3241V1.65707Z",fill:"black"}),J.jsx("path",{d:"M33.6575 1.65707H32.6575V0.657074H33.6575V1.65707Z",fill:"black"}),J.jsx("path",{d:"M34.9908 1.65707H35.9908V0.657074H34.9908V1.65707Z",fill:"black"}),J.jsx("path",{d:"M38.3242 1.65707H37.3242V0.657074H38.3242V1.65707Z",fill:"black"}),J.jsx("path",{d:"M39.6576 1.65707H40.6576V0.657074H39.6576V1.65707Z",fill:"black"}),J.jsx("path",{d:"M42.991 1.65707H41.991V0.657074H42.991V1.65707Z",fill:"black"}),J.jsx("path",{d:"M44.3243 1.65707H45.3243V0.657074H44.3243V1.65707Z",fill:"black"}),J.jsx("path",{d:"M47.6577 1.65707H46.6577V0.657074H47.6577V1.65707Z",fill:"black"}),J.jsx("path",{d:"M48.9911 1.65707H49.9911V0.657074H48.9911V1.65707Z",fill:"black"}),J.jsx("path",{d:"M52.3245 1.65707H51.3245V0.657074H52.3245V1.65707Z",fill:"black"}),J.jsx("path",{d:"M53.6578 1.65707H54.6578V0.657074H53.6578V1.65707Z",fill:"black"}),J.jsx("path",{d:"M56.9912 1.65707H55.9912V0.657074H56.9912V1.65707Z",fill:"black"}),J.jsx("path",{d:"M58.3246 1.65707H59.3246V0.657074H58.3246V1.65707Z",fill:"black"}),J.jsx("path",{d:"M61.658 1.65707H60.658V0.657074H61.658V1.65707Z",fill:"black"}),J.jsx("path",{d:"M62.9913 1.65707H63.9913V0.657074H62.9913V1.65707Z",fill:"black"}),J.jsx("path",{d:"M66.3247 1.65707H65.3247V0.657074H66.3247V1.65707Z",fill:"black"}),J.jsx("path",{d:"M67.6581 1.65707H68.6581V0.657074H67.6581V1.65707Z",fill:"black"}),J.jsx("path",{d:"M70.9915 1.65707H69.9915V0.657074H70.9915V1.65707Z",fill:"black"}),J.jsx("path",{d:"M72.3248 1.65707H73.3248V0.657074H72.3248V1.65707Z",fill:"black"}),J.jsx("path",{d:"M75.6582 1.65707H74.6582V0.657074H75.6582V1.65707Z",fill:"black"}),J.jsx("path",{d:"M76.9916 1.65707H77.9916V0.657074H76.9916V1.65707Z",fill:"black"}),J.jsx("path",{d:"M80.325 1.65707H79.325V0.657074H80.325V1.65707Z",fill:"black"}),J.jsx("path",{d:"M81.6583 1.65707H82.6583V0.657074H81.6583V1.65707Z",fill:"black"}),J.jsx("path",{d:"M84.9917 1.65707H83.9917V0.657074H84.9917V1.65707Z",fill:"black"}),J.jsx("path",{d:"M86.3251 1.65707H87.3251V0.657074H86.3251V1.65707Z",fill:"black"}),J.jsx("path",{d:"M89.6584 1.65707H88.6584V0.657074H89.6584V1.65707Z",fill:"black"}),J.jsx("path",{d:"M90.9918 1.65707H91.9918V0.657074H90.9918V1.65707Z",fill:"black"}),J.jsx("path",{d:"M94.3252 1.65707H93.3252V0.657074H94.3252V1.65707Z",fill:"black"}),J.jsx("path",{d:"M95.6586 1.65707H96.6586V0.657074H95.6586V1.65707Z",fill:"black"}),J.jsx("path",{d:"M98.9919 1.65707H97.9919V0.657074H98.9919V1.65707Z",fill:"black"}),J.jsx("path",{d:"M100.325 1.65707H101.325V0.657074H100.325V1.65707Z",fill:"black"}),J.jsx("path",{d:"M103.659 1.65707H102.659V0.657074H103.659V1.65707Z",fill:"black"}),J.jsx("path",{d:"M104.992 1.65707H105.992V0.657074H104.992V1.65707Z",fill:"black"}),J.jsx("path",{d:"M108.325 1.65707H107.325V0.657074H108.325V1.65707Z",fill:"black"}),J.jsx("path",{d:"M109.659 1.65707H110.659V0.657074H109.659V1.65707Z",fill:"black"}),J.jsx("path",{d:"M112.992 1.65707H111.992V0.657074H112.992V1.65707Z",fill:"black"}),J.jsx("path",{d:"M114.325 1.65707H115.325V0.657074H114.325V1.65707Z",fill:"black"}),J.jsx("path",{d:"M117.659 1.65707H116.659V0.657074H117.659V1.65707Z",fill:"black"}),J.jsx("path",{d:"M118.992 1.65707H119.992V0.657074H118.992V1.65707Z",fill:"black"})]}),"BorderHair"),YYt=N(()=>J.jsx("svg",{width:"120",height:"3",viewBox:"0 0 120 3",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:J.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.991 2.42035H-0.0090332V0.420349H119.991V2.42035Z",fill:"black"})}),"BorderMedium"),XYt=N(()=>J.jsxs("svg",{width:"120",height:"3",viewBox:"0 0 120 3",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.0100098 2.47614H1.98999V0.476135H-0.0100098V2.47614Z",fill:"black"}),J.jsx("path",{d:"M3.99014 2.47614H9.99014V0.476135H3.99014V2.47614Z",fill:"black"}),J.jsx("path",{d:"M13.9901 2.47614H11.9901V0.476135H13.9901V2.47614Z",fill:"black"}),J.jsx("path",{d:"M21.1904 2.47614H23.1904V0.476135H21.1904V2.47614Z",fill:"black"}),J.jsx("path",{d:"M31.1906 2.47614H25.1906V0.476135H31.1906V2.47614Z",fill:"black"}),J.jsx("path",{d:"M33.1906 2.47614H35.1906V0.476135H33.1906V2.47614Z",fill:"black"}),J.jsx("path",{d:"M44.3909 2.47614H42.3909V0.476135H44.3909V2.47614Z",fill:"black"}),J.jsx("path",{d:"M46.391 2.47614H52.391V0.476135H46.391V2.47614Z",fill:"black"}),J.jsx("path",{d:"M56.391 2.47614H54.391V0.476135H56.391V2.47614Z",fill:"black"}),J.jsx("path",{d:"M63.5913 2.47614H65.5913V0.476135H63.5913V2.47614Z",fill:"black"}),J.jsx("path",{d:"M73.5915 2.47614H67.5915V0.476135H73.5915V2.47614Z",fill:"black"}),J.jsx("path",{d:"M75.5915 2.47614H77.5915V0.476135H75.5915V2.47614Z",fill:"black"}),J.jsx("path",{d:"M86.7917 2.47614H84.7917V0.476135H86.7917V2.47614Z",fill:"black"}),J.jsx("path",{d:"M88.7919 2.47614H94.7919V0.476135H88.7919V2.47614Z",fill:"black"}),J.jsx("path",{d:"M98.7919 2.47614H96.7919V0.476135H98.7919V2.47614Z",fill:"black"}),J.jsx("path",{d:"M105.992 2.47614H107.992V0.476135H105.992V2.47614Z",fill:"black"}),J.jsx("path",{d:"M115.992 2.47614H109.992V0.476135H115.992V2.47614Z",fill:"black"}),J.jsx("path",{d:"M117.992 2.47614H119.992V0.476135H117.992V2.47614Z",fill:"black"})]}),"BorderMediumDashDot"),GYt=N(()=>J.jsxs("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.0100098 2.00415H1.98999V0.00415039H-0.0100098V2.00415Z",fill:"black"}),J.jsx("path",{d:"M3.99014 2.00415H9.99014V0.00415039H3.99014V2.00415Z",fill:"black"}),J.jsx("path",{d:"M13.9901 2.00415H11.9901V0.00415039H13.9901V2.00415Z",fill:"black"}),J.jsx("path",{d:"M15.9901 2.00415H17.9901V0.00415039H15.9901V2.00415Z",fill:"black"}),J.jsx("path",{d:"M27.4905 2.00415H25.4905V0.00415039H27.4905V2.00415Z",fill:"black"}),J.jsx("path",{d:"M29.4906 2.00415H35.4906V0.00415039H29.4906V2.00415Z",fill:"black"}),J.jsx("path",{d:"M39.4906 2.00415H37.4906V0.00415039H39.4906V2.00415Z",fill:"black"}),J.jsx("path",{d:"M41.4906 2.00415H43.4906V0.00415039H41.4906V2.00415Z",fill:"black"}),J.jsx("path",{d:"M52.991 2.00415H50.991V0.00415039H52.991V2.00415Z",fill:"black"}),J.jsx("path",{d:"M54.9911 2.00415H60.9911V0.00415039H54.9911V2.00415Z",fill:"black"}),J.jsx("path",{d:"M64.9911 2.00415H62.9911V0.00415039H64.9911V2.00415Z",fill:"black"}),J.jsx("path",{d:"M66.9911 2.00415H68.9911V0.00415039H66.9911V2.00415Z",fill:"black"}),J.jsx("path",{d:"M78.4915 2.00415H76.4915V0.00415039H78.4915V2.00415Z",fill:"black"}),J.jsx("path",{d:"M80.4916 2.00415H86.4916V0.00415039H80.4916V2.00415Z",fill:"black"}),J.jsx("path",{d:"M90.4916 2.00415H88.4916V0.00415039H90.4916V2.00415Z",fill:"black"}),J.jsx("path",{d:"M92.4916 2.00415H94.4916V0.00415039H92.4916V2.00415Z",fill:"black"}),J.jsx("path",{d:"M103.992 2.00415H101.992V0.00415039H103.992V2.00415Z",fill:"black"}),J.jsx("path",{d:"M105.992 2.00415H111.992V0.00415039H105.992V2.00415Z",fill:"black"}),J.jsx("path",{d:"M115.992 2.00415H113.992V0.00415039H115.992V2.00415Z",fill:"black"}),J.jsx("path",{d:"M117.992 2.00415H119.992V0.00415039H117.992V2.00415Z",fill:"black"})]}),"BorderMediumDashDotDot"),QYt=N(()=>J.jsxs("svg",{width:"118",height:"3",viewBox:"0 0 118 3",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[J.jsx("path",{d:"M-0.00854492 2.94815H1.99146V0.948151H-0.00854492V2.94815Z",fill:"black"}),J.jsx("path",{d:"M6.09668 2.94815H8.09668V0.948151H6.09668V2.94815Z",fill:"black"}),J.jsx("path",{d:"M14.2019 2.94815H12.2019V0.948151H14.2019V2.94815Z",fill:"black"}),J.jsx("path",{d:"M18.3071 2.94815H20.3071V0.948151H18.3071V2.94815Z",fill:"black"}),J.jsx("path",{d:"M26.4124 2.94815H24.4124V0.948151H26.4124V2.94815Z",fill:"black"}),J.jsx("path",{d:"M30.5176 2.94815H32.5176V0.948151H30.5176V2.94815Z",fill:"black"}),J.jsx("path",{d:"M38.6228 2.94815H36.6228V0.948151H38.6228V2.94815Z",fill:"black"}),J.jsx("path",{d:"M42.728 2.94815H44.728V0.948151H42.728V2.94815Z",fill:"black"}),J.jsx("path",{d:"M50.8333 2.94815H48.8333V0.948151H50.8333V2.94815Z",fill:"black"}),J.jsx("path",{d:"M54.9385 2.94815H56.9385V0.948151H54.9385V2.94815Z",fill:"black"}),J.jsx("path",{d:"M63.0437 2.94815H61.0437V0.948151H63.0437V2.94815Z",fill:"black"}),J.jsx("path",{d:"M67.1489 2.94815H69.1489V0.948151H67.1489V2.94815Z",fill:"black"}),J.jsx("path",{d:"M75.2542 2.94815H73.2542V0.948151H75.2542V2.94815Z",fill:"black"}),J.jsx("path",{d:"M79.3594 2.94815H81.3594V0.948151H79.3594V2.94815Z",fill:"black"}),J.jsx("path",{d:"M87.4645 2.94815H85.4645V0.948151H87.4645V2.94815Z",fill:"black"}),J.jsx("path",{d:"M91.5697 2.94815H93.5697V0.948151H91.5697V2.94815Z",fill:"black"}),J.jsx("path",{d:"M99.6749 2.94815H97.6749V0.948151H99.6749V2.94815Z",fill:"black"}),J.jsx("path",{d:"M103.78 2.94815H105.78V0.948151H103.78V2.94815Z",fill:"black"}),J.jsx("path",{d:"M111.885 2.94815H109.885V0.948151H111.885V2.94815Z",fill:"black"}),J.jsx("path",{d:"M115.991 2.94815H117.991V0.948151H115.991V2.94815Z",fill:"black"})]}),"BorderMediumDashed"),KYt=N(()=>J.jsx("svg",{width:"120",height:"4",viewBox:"0 0 120 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:J.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.991 3.86215H-0.0090332V0.862152H119.991V3.86215Z",fill:"black"})}),"BorderThick"),Jle=N(()=>J.jsx("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:J.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.991 1.15668H-0.0090332V0.156677H119.991V1.15668Z",fill:"black"})}),"BorderThin");function CY(t){const{type:e=Un.THIN}=t;switch(e){case Un.DASH_DOT:return J.jsx($Yt,{});case Un.DASH_DOT_DOT:return J.jsx(WYt,{});case Un.DASHED:return J.jsx(zYt,{});case Un.HAIR:return J.jsx(qYt,{});case Un.MEDIUM:return J.jsx(YYt,{});case Un.MEDIUM_DASH_DOT:return J.jsx(XYt,{});case Un.MEDIUM_DASH_DOT_DOT:return J.jsx(GYt,{});case Un.MEDIUM_DASHED:return J.jsx(QYt,{});case Un.THICK:return J.jsx(KYt,{});case Un.THIN:return J.jsx(Jle,{});default:return J.jsx(Jle,{})}}N(CY,"BorderLine");const ZYt="univer-ui-plugin-sheets-border-panel",JYt="univer-ui-plugin-sheets-border-panel-position",eXt="univer-ui-plugin-sheets-border-panel-position-item",tXt="univer-ui-plugin-sheets-border-panel-position-item-active",nXt="univer-ui-plugin-sheets-border-panel-styles",rXt="univer-ui-plugin-sheets-border-panel-board",iXt="univer-ui-plugin-sheets-border-panel-button",aXt="univer-ui-plugin-sheets-border-panel-more-icon",x1={uiPluginSheetsBorderPanel:ZYt,uiPluginSheetsBorderPanelPosition:JYt,uiPluginSheetsBorderPanelPositionItem:eXt,uiPluginSheetsBorderPanelPositionItemActive:tXt,uiPluginSheetsBorderPanelStyles:nXt,uiPluginSheetsBorderPanelBoard:rXt,uiPluginSheetsBorderPanelButton:iXt,uiPluginSheetsBorderPanelMoreIcon:aXt},C9="UI_PLUGIN_SHEETS",hre=`${C9}_BORDER_PANEL_COMPONENT`,Oje=[{label:"borderLine.borderTop",icon:"UpBorder",value:"top"},{label:"borderLine.borderBottom",icon:"DownBorder",value:"bottom"},{label:"borderLine.borderLeft",icon:"LeftBorder",value:"left"},{label:"borderLine.borderRight",icon:"RightBorder",value:"right"},{label:"borderLine.borderNone",icon:"NoBorderSingle",value:"none"},{label:"borderLine.borderAll",icon:"AllBorderSingle",value:"all"},{label:"borderLine.borderOutside",icon:"OuterBorder",value:"outside"},{label:"borderLine.borderInside",icon:"InnerBorder",value:"inside"},{label:"borderLine.borderHorizontal",icon:"HorizontalBorder",value:"horizontal"},{label:"borderLine.borderVertical",icon:"VerticalBorder",value:"vertical"},{label:"borderLine.borderTlbr",icon:"BackSlashSingle",value:"tlbr"},{label:"borderLine.borderTlbcTlmr",icon:"LeftDoubleDiagonalSingle",value:"tlbc_tlmr"},{label:"borderLine.borderTlbrTlbcTlmr",icon:"LeftTridiagonalSingle",value:"tlbr_tlbc_tlmr"},{label:"borderLine.borderBlTr",icon:"SlashSingle",value:"bltr"},{label:"borderLine.borderMltrBctr",icon:"RightDoubleDiagonalSingle",value:"mltr_bctr"}],oXt=[{label:Un.THIN,value:Un.THIN},{label:Un.HAIR,value:Un.HAIR},{label:Un.DOTTED,value:Un.DOTTED},{label:Un.DASHED,value:Un.DASHED},{label:Un.DASH_DOT,value:Un.DASH_DOT},{label:Un.DASH_DOT_DOT,value:Un.DASH_DOT_DOT},{label:Un.MEDIUM,value:Un.MEDIUM},{label:Un.MEDIUM_DASHED,value:Un.MEDIUM_DASHED},{label:Un.MEDIUM_DASH_DOT,value:Un.MEDIUM_DASH_DOT},{label:Un.MEDIUM_DASH_DOT_DOT,value:Un.MEDIUM_DASH_DOT_DOT},{label:Un.THICK,value:Un.THICK}];function fre(t){var e;const n=Ne(ja),r=Ne(Mf),{onChange:i,value:a}=t;function o(u,c){i==null||i({...a,[c]:u})}N(o,"handleClick");function s(u){const c=n.get(u);return c&&J.jsx(c,{extend:{colorChannel1:"rgb(var(--primary-color))"}})}N(s,"renderIcon");function l(u){u.stopPropagation()}return N(l,"stopPropagation"),J.jsxs("section",{className:x1.uiPluginSheetsBorderPanel,children:[J.jsx("div",{className:x1.uiPluginSheetsBorderPanelPosition,children:Oje.map(u=>J.jsx("div",{className:r.getBorderInfo().type===u.value?`${x1.uiPluginSheetsBorderPanelPositionItemActive} ${x1.uiPluginSheetsBorderPanelPositionItem}`:x1.uiPluginSheetsBorderPanelPositionItem,onClick:N(c=>{c.stopPropagation(),o(u.value,"type")},"onClick"),children:s(u.icon)},u.value))}),J.jsxs("div",{className:x1.uiPluginSheetsBorderPanelStyles,children:[J.jsx("div",{children:J.jsx(Ef,{align:{offset:[0,18]},overlay:J.jsx("section",{className:x1.uiPluginSheetsBorderPanelBoard,onClick:l,children:J.jsx(VC,{onChange:N(u=>o(u,"color"),"onChange")})}),children:J.jsxs("a",{className:x1.uiPluginSheetsBorderPanelButton,onClick:l,children:[J.jsx(Lje,{extend:{colorChannel1:(e=a.color)!=null?e:"rgb(var(--primary-color))"}}),J.jsx("span",{className:x1.uiPluginSheetsBorderPanelMoreIcon,children:J.jsx(tC,{})})]})})}),J.jsx("div",{children:J.jsx(Ef,{align:{offset:[0,18]},overlay:J.jsx("section",{onClick:l,children:J.jsx(m3e,{children:oXt.map(u=>J.jsx(Kv,{eventKey:u.value.toString(),onClick:N(()=>o(u.value,"style"),"onClick"),children:J.jsx(CY,{type:u.value})},u.value))})}),children:J.jsxs("a",{className:x1.uiPluginSheetsBorderPanelButton,onClick:l,children:[J.jsx(CY,{type:Un.THIN}),J.jsx("span",{className:x1.uiPluginSheetsBorderPanelMoreIcon,children:J.jsx(tC,{})})]})})})]})]})}N(fre,"BorderPanel");const bb=`${C9}_COLOR_PICKER_COMPONENT`,mre=`${C9}_FONT_FAMILY_COMPONENT`,gre=`${C9}_FONT_FAMILY_ITEM_COMPONENT`,pre=`${C9}_FONT_SIZE_COMPONENT`,qx=`${C9}_MENU_ITEM_INPUT_COMPONENT`,sXt="univer-sheets-ui-context-menu-input",lXt="univer-sheets-ui-context-menu-input-container",uXt="univer-sheets-ui-context-menu-input-number",yV={sheetsUiContextMenuInput:sXt,sheetsUiContextMenuInputContainer:lXt,sheetsUiContextMenuInputNumber:uXt},Nje=N(t=>{const{prefix:e,suffix:n,value:r,onChange:i,min:a=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER}=t,s=Ne(sn),[l,u]=E.useState(),c=N(h=>{var f;u(h==null?void 0:h.toString()),i((f=h==null?void 0:h.toString())!=null?f:"")},"handleChange");E.useEffect(()=>{u(r)},[r]);function d(h){h.key==="Backspace"&&h.stopPropagation()}return N(d,"handleKeyDown"),J.jsxs("div",{className:yV.sheetsUiContextMenuInput,children:[s.t(e),J.jsx("span",{className:yV.sheetsUiContextMenuInputContainer,onClick:N(h=>h.stopPropagation(),"onClick"),children:J.jsx(uh,{className:yV.sheetsUiContextMenuInputNumber,value:Number(l),precision:0,onKeyDown:d,onChange:c,min:a,max:o})}),s.t(n)]})},"MenuItemInput"),cXt="univer-defined-name",dXt="univer-defined-name-drop-down",hXt="univer-defined-name-drop-down-disable",fXt="univer-defined-name-overlay",mXt="univer-defined-name-overlay-container",gXt="univer-defined-name-overlay-item",pXt="univer-defined-name-overlay-item-name",vXt="univer-defined-name-overlay-item-formula",_Xt="univer-defined-name-overlay-manager",CXt="univer-defined-name-overlay-manager-title",SXt="univer-defined-name-overlay-manager-content",bXt="univer-defined-name-container",yXt="univer-defined-name-container-scroll",EXt="univer-defined-name-container-addButton",RXt="univer-defined-name-container-addButton-text",AXt="univer-defined-name-container-item",wXt="univer-defined-name-container-item-name",DXt="univer-defined-name-container-item-name-for-sheet",IXt="univer-defined-name-container-item-formula-or-refString",PXt="univer-defined-name-container-item-update",MXt="univer-defined-name-container-item-delete",TXt="univer-defined-name-container-item-show",LXt="univer-defined-name-input",xXt="univer-defined-name-input-validation",qa={definedName:cXt,definedNameDropDown:dXt,definedNameDropDownDisable:hXt,definedNameOverlay:fXt,definedNameOverlayContainer:mXt,definedNameOverlayItem:gXt,definedNameOverlayItemName:pXt,definedNameOverlayItemFormula:vXt,definedNameOverlayManager:_Xt,definedNameOverlayManagerTitle:CXt,definedNameOverlayManagerContent:SXt,definedNameContainer:bXt,definedNameContainerScroll:yXt,definedNameContainerAddButton:EXt,definedNameContainerAddButtonText:RXt,definedNameContainerItem:AXt,definedNameContainerItemName:wXt,definedNameContainerItemNameForSheet:DXt,definedNameContainerItemFormulaOrRefString:IXt,definedNameContainerItemUpdate:PXt,definedNameContainerItemDelete:MXt,definedNameContainerItemShow:TXt,definedNameInput:LXt,definedNameInputValidation:xXt},EV={width:"100%"},eue=N(t=>{const{inputId:e,state:n=!1,type:r="range",confirm:i,cancel:a,name:o,formulaOrRefString:s,comment:l="",localSheetId:u=gY,hidden:c=!1,id:d}=t,h=Ne(Ce).getCurrentUnitForType(le.UNIVER_SHEET),f=Ne(sn),m=Ne(Dc),g=Ne(Vu),p=Ne(Kl);if(h==null)return;const v=h.getUnitId(),[_,C]=E.useState(o),[S,b]=E.useState(s),[y,A]=E.useState(l),[w,P]=E.useState(u),[M,L]=E.useState(""),[k,O]=E.useState(r),[$,B]=E.useState(!0),V=[{label:f.t("definedName.scopeWorkbook"),value:gY}],X=N(G=>!K7(G),"isFormula");E.useEffect(()=>{B(!0),C(o),A(l),P(u);let G=s;s.substring(0,1)===di.EQUALS?O("formula"):X(s)?(O("formula"),G=di.EQUALS+s):O("range"),b(G),L("")},[n]),h.getSheetOrders().forEach(G=>{const te=h.getSheetBySheetId(G);V.push({label:(te==null?void 0:te.getName())||"",value:G})});const z=N(G=>G.map(te=>{var Y;return tc({...te,sheetName:((Y=h.getSheetBySheetId(te.sheetId))==null?void 0:Y.getName())||""})}).join(","),"convertRangeToString"),F=N(G=>{b(z(G))},"rangeSelectorChange"),H=N(G=>{b(G||"")},"formulaEditorChange"),W=N(()=>{if(_.length===0){L(f.t("definedName.nameEmpty"));return}if(m.getValueByName(v,_)!=null&&(d==null||d.length===0)){L(f.t("definedName.nameDuplicate"));return}if(!Ie.isValidParameter(_)||sp(_)||!Ie.isStartValidPosition(_)&&!B4(_.substring(0,1))){L(f.t("definedName.nameInvalid"));return}if(h.getSheetOrders().map(G=>{var te;return((te=h.getSheetBySheetId(G))==null?void 0:te.getName())||""}).includes(_)){L(f.t("definedName.nameSheetConflict"));return}if(S.length===0){L(f.t("definedName.formulaOrRefStringEmpty"));return}if(!$){L(f.t("definedName.formulaOrRefStringInvalid"));return}if(g.hasExecutor(_.toUpperCase())){L(f.t("definedName.nameConflict"));return}i&&i({id:d||"",name:_,formulaOrRefString:p.convertRefersToAbsolute(S,yr.ALL,yr.ALL),comment:y,localSheetId:w})},"confirmChange"),K=N(G=>{const te=G;te==="formula"&&S.substring(0,1)!==di.EQUALS?(b(`${di.EQUALS}`),b(`${di.EQUALS}`)):S.substring(0,1)===di.EQUALS&&(b(""),b("")),O(te)},"typeValueChange");return J.jsxs("div",{className:qa.definedNameInput,style:{display:n?"block":"none"},children:[J.jsx("div",{children:J.jsx(Qs,{placeholder:f.t("definedName.inputNamePlaceholder"),value:_,allowClear:!0,onChange:C,affixWrapperStyle:EV})}),J.jsx("div",{children:J.jsxs(np,{value:k,onChange:K,children:[J.jsx(gu,{value:"range",children:f.t("definedName.ratioRange")}),J.jsx(gu,{value:"formula",children:f.t("definedName.ratioFormula")})]})}),J.jsx("div",{style:{display:k==="range"?"block":"none"},children:J.jsx(mL,{value:S,onValid:B,onChange:F,placeholder:f.t("definedName.inputRangePlaceholder"),id:qg(`${e}-rangeSelector`),width:"99%",openForSheetUnitId:v},`${e}-rangeSelector`)}),J.jsx("div",{style:{display:k==="range"?"none":"block"},children:J.jsx(Gp,{value:S,onValid:B,onChange:H,id:qg(`${e}-editor`),placeholder:f.t("definedName.inputFormulaPlaceholder"),openForSheetUnitId:v,onlyInputFormula:!0,style:{width:"99%"},canvasStyle:{fontSize:10}},`${e}-editor`)}),J.jsx("div",{children:J.jsx(md,{style:EV,value:w,options:V,onChange:P})}),J.jsx("div",{children:J.jsx(Qs,{affixWrapperStyle:EV,placeholder:f.t("definedName.inputCommentPlaceholder"),value:y,onChange:A})}),J.jsxs("div",{style:{display:M.length===0?"none":"flex"},className:qa.definedNameInputValidation,children:[J.jsx("span",{children:M}),J.jsx(lre,{})]}),J.jsxs("div",{children:[J.jsx(fa,{onClick:N(()=>{a&&a()},"onClick"),children:f.t("definedName.cancel")}),J.jsx(fa,{style:{marginLeft:15},type:"primary",onClick:W,children:f.t("definedName.confirm")})]})]})},"DefinedNameInput"),kje=N(()=>{const t=Ne(me),e=Ne(Ce).getCurrentUnitForType(le.UNIVER_SHEET),n=Ne(sn),r=Ne(Dc),i=Ne(Bt);if(e==null)return;const a=e.getUnitId(),o=N(()=>{const M=r.getDefinedNameMap(a);return M?Array.from(Object.values(M)):[]},"getDefinedNameMap"),[s,l]=E.useState(!1),[u,c]=E.useState(o()),[d,h]=E.useState(null),[f,m]=E.useState();E.useEffect(()=>{const M=r.update$.subscribe(()=>{c(o())});return()=>{M.unsubscribe()}},[]);const g=N(M=>{const{name:L,formulaOrRefString:k,comment:O,localSheetId:$,hidden:B}=M;let V=M.id;if(V==null||V.length===0)V=Ie.generateRandomId(10),t.executeCommand(wne.id,{id:V,unitId:a,name:L,formulaOrRefString:k,comment:O,localSheetId:$,hidden:B});else{const X=r.getValueById(a,V),z={id:V,unitId:a,name:L,formulaOrRefString:k,comment:O,localSheetId:$,hidden:B};t.executeCommand(Y_.id,{unitId:a,oldDefinedName:{...X,unitId:a},newDefinedName:z})}l(!1),h(null)},"insertConfirm"),p=N(M=>{m(M)},"deleteDefinedName");function v(){m(null)}N(v,"handleDeleteClose");function _(M){const L=r.getValueById(a,M);t.executeCommand(Dne.id,{...L,unitId:a}),m(null)}N(_,"handleDeleteConfirm");const C=N(M=>{r.focusRange(a,M.id)},"focusDefinedName"),S=N(()=>{const M=u.length+1,L=n.t("definedName.defaultName")+M;if(r.getValueByName(a,L)==null)return L;let k=M+1;for(;;){const O=n.t("definedName.defaultName")+k;if(r.getValueByName(a,O)==null)return O;k++}},"getInsertDefinedName"),b=N(()=>{var M;const L=(M=e.getActiveSheet())==null?void 0:M.getName();if(!L)return"";const k=i.getCurrentSelections();return k==null?"":k.map(O=>Q7(L,O.range)).join(",")},"getInertFormulaOrRefString"),y=N(()=>{l(!1),h(null)},"closeInput"),A=N(()=>{l(!0),h(null)},"openInsertCloseKeyEditor"),w=N(M=>{l(!1),h(M)},"closeInsertOpenKeyEditor"),P=N(M=>{const L=e.getSheetBySheetId(M);return L==null?"":L.getName()},"getSheetNameBySheetId");return J.jsx("div",{className:qa.definedNameContainer,children:J.jsxs("div",{className:qa.definedNameContainerScroll,children:[J.jsxs("div",{children:[J.jsxs("div",{onClick:A,className:qa.definedNameContainerAddButton,style:{display:s?"none":"flex"},children:[J.jsx(ure,{}),J.jsx("span",{className:qa.definedNameContainerAddButtonText,children:n.t("definedName.addButton")})]}),J.jsx(eue,{confirm:g,cancel:y,state:s,inputId:"insertDefinedName",name:S(),formulaOrRefString:b()})]},"insertDefinedName"),u.map((M,L)=>J.jsxs("div",{children:[J.jsxs("div",{onClick:N(()=>{C(M)},"onClick"),className:qa.definedNameContainerItem,style:{display:M.id===d?"none":"flex"},children:[J.jsxs("div",{title:M.comment,children:[J.jsxs("div",{className:qa.definedNameContainerItemName,children:[M.name,J.jsx("span",{className:qa.definedNameContainerItemNameForSheet,children:M.localSheetId===gY||M.localSheetId==null?"":P(M.localSheetId)})]}),J.jsx("div",{className:qa.definedNameContainerItemFormulaOrRefString,children:M.formulaOrRefString})]}),J.jsx(n1,{title:n.t("definedName.updateButton"),placement:"top",style:{pointerEvents:"none"},children:J.jsx("div",{className:hr(qa.definedNameContainerItemUpdate,qa.definedNameContainerItemShow),onClick:N(()=>{w(M.id)},"onClick"),children:J.jsx(z0,{})})}),J.jsx(n1,{title:n.t("definedName.deleteButton"),placement:"top",style:{pointerEvents:"none"},children:J.jsx("div",{className:hr(qa.definedNameContainerItemDelete,qa.definedNameContainerItemShow),onClick:N(()=>{p(M.id)},"onClick"),children:J.jsx(zx,{})})})]}),J.jsx(JQ,{visible:f===M.id,onClose:v,onConfirm:N(()=>{_(M.id)},"onConfirm"),children:n.t("definedName.deleteConfirmText")}),J.jsx(eue,{confirm:g,cancel:y,state:M.id===d,id:M.id,inputId:M.id+L,name:M.name,formulaOrRefString:M.formulaOrRefString,comment:M.comment,localSheetId:M.localSheetId})]},L))]})})},"DefinedNameContainer"),OXt="univer-count-bar",NXt={countBar:OXt};function lm(){const t=Ne(Ce),e=ai(()=>t.getCurrentTypeOfUnit$(le.UNIVER_SHEET),void 0,void 0,[]);return e??null}N(lm,"useActiveWorkbook");function kXt(t){return ai(()=>{var e;return(e=t==null?void 0:t.activeSheet$)!=null?e:Hr(null)},void 0,void 0,[t])}N(kXt,"useActiveWorksheet");function FXt(){const t=Ne(Ce);return ai(()=>Qa([t.getTypeOfUnitAdded$(le.UNIVER_SHEET),t.getTypeOfUnitDisposed$(le.UNIVER_SHEET)]).pipe(pr(()=>t.getAllUnitsForType(le.UNIVER_SHEET)),Du(t.getAllUnitsForType(le.UNIVER_SHEET))),[],void 0,[t])}N(FXt,"useWorkbooks");const VXt=[50,80,100,130,150,170,200,400];function Fje(){const t=Ne(me),e=Ne(Ce),n=lm(),r=E.useCallback(()=>{if(!n)return 100;const s=n.getActiveSheet(),l=s&&s.getZoomRatio()*100||100;return Math.round(l)},[n]),[i,a]=E.useState(()=>r());E.useEffect(()=>(a(r()),t.onCommandExecuted(s=>{if(s.id===Uf.id||s.id===Ha.id){const l=r();a(l)}}).dispose),[t,r]);function o(s){a(s);const l=e.getCurrentUnitForType(le.UNIVER_SHEET),u=l==null?void 0:l.getActiveSheet();if(u==null)return;const c=s/100;t.executeCommand(gb.id,{unitId:l.getUnitId(),subUnitId:u.getSheetId(),zoomRatio:c})}return N(o,"handleChange"),J.jsx(eZ,{min:rY[0],value:i,shortcuts:VXt,onChange:o})}N(Fje,"ZoomSlider");function Vje(t){return J.jsx("section",{className:NXt.countBar,children:J.jsx(Fje,{})})}N(Vje,"CountBar");const Bje=class{constructor(){fe(this,"_state",null),fe(this,"_rect",null),fe(this,"_state$",new Pn(null)),fe(this,"state$",this._state$.asObservable()),fe(this,"_rect$",new Pn(null)),fe(this,"rect$",this._rect$.asObservable()),fe(this,"_focus",!1),fe(this,"_focus$",new Pn(this._focus)),fe(this,"focus$",this._focus$.asObservable())}dispose(){this._state$.complete(),this._state=null,this._rect$.complete(),this._rect=null}setState(e){this._state=e,this._refresh(e)}getRect(){return this._rect}setRect(e){this._rect=e,this._rect$.next(e)}getState(){return this._state}setFocus(e=!1){this._focus=e,this._focus$.next(e)}_refresh(e){this._state$.next(e)}};N(Bje,"CellEditorManagerService");let BXt=Bje;const vre=er("univer.sheet-cell-editor-manager.service"),UXt="univer-editor-container",HXt="univer-editor-input",tue={editorContainer:UXt,editorInput:HXt},hP=-1e3,nue={width:0,height:0,top:hP,left:hP},jXt=N(()=>{const[t,e]=E.useState({...nue}),n=Ne(vre),r=Ne(Fo),i=Ne(ui),a=ai(()=>i.subscribeContextValue$(pq),!1,void 0,[i,pq]),o={id:Yo,body:{dataStream:`${Sd}`,tables:[],textRuns:[],paragraphs:[{startIndex:0}],sectionBreaks:[{startIndex:1}]},tableSource:{},documentStyle:{documentFlavor:Gg.MODERN}};return E.useEffect(()=>{n.state$.subscribe(s=>{if(s==null)return;const{startX:l=hP,startY:u=hP,endX:c=0,endY:d=0,show:h=!1}=s;if(!h)e({...nue});else{e({width:c-l-Lo+2,height:d-u-Lo+2,left:l+Lo,top:u+Lo});const f=r.getEditor(Yo);if(f==null)return;const{left:m,top:g,width:p,height:v}=f.getBoundingClientRect();n.setRect({left:m,top:g,width:p,height:v})}})},[]),E.useEffect(()=>{a||n.setFocus(!0)},[a,t]),J.jsx("div",{className:tue.editorContainer,style:{left:t.left,top:t.top,width:t.width,height:t.height},children:J.jsx(Gp,{id:Yo,className:tue.editorInput,snapshot:o,cancelDefaultResizeListener:!0,isSheetEditor:!0,isSingle:!1})})},"EditorContainer"),Uje=class{constructor(){fe(this,"_position",null),fe(this,"_position$",new Pn(null)),fe(this,"position$",this._position$.asObservable()),fe(this,"_focus",!1),fe(this,"_focus$",new Pn(this._focus)),fe(this,"focus$",this._focus$.asObservable()),fe(this,"_fxBtnClick$",new Zt),fe(this,"fxBtnClick$",this._fxBtnClick$.asObservable()),fe(this,"_foldBtnStatus$",new Zt),fe(this,"foldBtnStatus$",this._foldBtnStatus$.asObservable())}dispose(){this._position$.complete(),this._focus$.complete(),this._position=null,this._focus=!1}setPosition(e){this._position=e,this._refresh(e)}getPosition(){return this._position}setFocus(e=!1){this._focus=e,this._focus$.next(e)}handleFxBtnClick(e){this._fxBtnClick$.next(e)}handleFoldBtnClick(e){this._foldBtnStatus$.next(e)}_refresh(e){this._position$.next(e)}};N(Uje,"FormulaEditorManagerService");let $Xt=Uje;const _re=er("univer.sheet-formula-editor-manager.service");function Hje(t){const e=Ne(me),n=Ne(sn),r=Ne(Dc),i=Ne(Ce).getCurrentUnitForType(le.UNIVER_SHEET).getUnitId(),a=N(()=>{const c=r.getDefinedNameMap(i);return c?Array.from(Object.values(c)):[]},"getDefinedNameMap"),[o,s]=E.useState(a());E.useEffect(()=>{const c=r.update$.subscribe(()=>{s(a())});return()=>{c.unsubscribe()}},[]);const l=N(()=>{e.executeCommand(are.id,{value:"open"})},"openSlider"),u=N(c=>{r.focusRange(i,c.id)},"focusDefinedName");return J.jsxs("div",{className:qa.definedNameOverlay,children:[J.jsx("div",{className:qa.definedNameOverlayContainer,children:o.map((c,d)=>J.jsxs("div",{className:qa.definedNameOverlayItem,onClick:N(()=>{u(c)},"onClick"),children:[J.jsx("div",{className:qa.definedNameOverlayItemName,title:c.name,children:c.name}),J.jsx("div",{className:qa.definedNameOverlayItemFormula,title:c.formulaOrRefString,children:c.formulaOrRefString})]},d))}),J.jsxs("div",{className:qa.definedNameOverlayManager,onClick:l,children:[J.jsx("div",{className:qa.definedNameOverlayManagerTitle,children:n.t("definedName.managerTitle")}),J.jsx("div",{className:qa.definedNameOverlayManagerContent,children:n.t("definedName.managerDescription")})]})]})}N(Hje,"DefinedNameOverlay");function jje({disable:t}){const[e,n]=Re.useState(""),r=Ne(Dc);return E.useEffect(()=>{const i=r.currentRange$.subscribe(()=>{n(r.getCurrentRangeForString())});return()=>{i.unsubscribe()}},[]),J.jsxs("div",{className:qa.definedName,children:[J.jsx(Qs,{className:hr({[qa.defineNameInputDisable]:t}),value:e,type:"text",size:"small",affixWrapperStyle:{border:"none",paddingLeft:"6px",paddingRight:"6px",height:"100%"}}),J.jsx(Ef,{overlay:J.jsx(Hje,{}),children:J.jsx("div",{className:hr(qa.definedNameDropDown,{[qa.definedNameDropDownDisable]:t}),children:J.jsx(tC,{})})})]})}N(jje,"DefinedName");const WXt="univer-formula-box",zXt="univer-name-ranges",qXt="univer-formula-bar",YXt="univer-formula-icon",XXt="univer-formula-icon-disable",GXt="univer-formula-icon-wrapper",QXt="univer-icon-container",KXt="univer-icon-container-success",ZXt="univer-formula-active",JXt="univer-icon-container-error",eGt="univer-icon-container-fx",tGt="univer-formula-input",nGt="univer-formula-content",rGt="univer-arrow-container",iGt="univer-arrow-container-disable",as={formulaBox:WXt,nameRanges:zXt,formulaBar:qXt,formulaIcon:YXt,formulaIconDisable:XXt,formulaIconWrapper:GXt,iconContainer:QXt,iconContainerSuccess:KXt,formulaActive:ZXt,iconContainerError:JXt,iconContainerFx:eGt,formulaInput:tGt,formulaContent:nGt,arrowContainer:rGt,arrowContainerDisable:iGt};function $je(){const[t,e]=E.useState(as.formulaGrey),[n,r]=E.useState(0),i=Ne(_re),a=Ne(Zl),o=Ne(Ja).getCurrentTheme().primaryColor,[s,l]=E.useState(!1),u=Ne(Ce),c=Ne(Bt),d=Ne(ga),h=Ne(li),f=Ne(Qi),m=lm(),g=Xh(()=>u.getCurrentTypeOfUnit$(le.UNIVER_SHEET),void 0,void 0,[]);function p(A,w){return[new on(A).id,new zs(A,w).id,new Tn(A,w).id]}N(p,"getPermissionIds"),E.useLayoutEffect(()=>{const A=g.activeSheet$.pipe(Ei(w=>w?Qa(d.ruleChange$,h.ruleChange$,c.selectionMoveEnd$).pipe(Ei(()=>{var P,M;const L=g.getUnitId(),k=w.getSheetId();if(!((P=c.getCurrentLastSelection())!=null&&P.range))return GA;const O=p(L,k),$=(M=c.getCurrentSelections())==null?void 0:M.map(B=>B.range);return h.getSubunitRuleList(L,k).filter(B=>B.ranges.some(V=>$==null?void 0:$.some(X=>ft.intersects(V,X)))).forEach(B=>{O.push(new Bn(L,k,B.permissionId).id)}),f.composePermission$(O)})):GA)).subscribe(w=>{w&&l(!w.every(P=>P.value))});return()=>{A.unsubscribe()}},[g]);const v={id:Ki,body:{dataStream:`${Sd}`,textRuns:[],tables:[],paragraphs:[{startIndex:0}],sectionBreaks:[{startIndex:1}]},tableSource:{},documentStyle:{pageSize:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY},documentFlavor:Gg.MODERN,marginTop:5,marginBottom:5,marginRight:0,marginLeft:0,paragraphLineGapDefault:0,renderConfig:{horizontalAlign:dr.UNSPECIFIED,verticalAlign:ea.TOP,centerAngle:0,vertexAngle:0,wrapStrategy:Li.WRAP,isRenderStyle:at.FALSE}}};E.useEffect(()=>{const A=a.visible$.subscribe(w=>{e(w.visible?as.formulaActive:as.formulaGrey)});return()=>A.unsubscribe()},[a.visible$]);function _(A){if(A==null)return;const w=A.getBoundingClientRect();i.setPosition(w)}N(_,"resizeCallBack");function C(){r(n===0?1:0),setTimeout(()=>{i.handleFoldBtnClick(n===1)},150)}N(C,"handleArrowClick");function S(){var A;a.isVisible().visible&&a.changeVisible({visible:!1,eventType:$i.Keyboard,keycode:Et.ESC,unitId:(A=m==null?void 0:m.getUnitId())!=null?A:""})}N(S,"handleCloseBtnClick");function b(){var A;a.isVisible().visible&&a.changeVisible({visible:!1,eventType:$i.PointerDown,unitId:(A=m==null?void 0:m.getUnitId())!=null?A:""})}N(b,"handleConfirmBtnClick");function y(){i.handleFxBtnClick(!0)}return N(y,"handlerFxBtnClick"),J.jsxs("div",{className:as.formulaBox,style:{height:n===0?"28px":"82px",pointerEvents:s?"none":"auto"},children:[J.jsx("div",{className:as.nameRanges,children:J.jsx(jje,{disable:s})}),J.jsxs("div",{className:as.formulaBar,children:[J.jsx("div",{className:hr(as.formulaIcon,{[as.formulaIconDisable]:s}),children:J.jsxs("div",{className:as.formulaIconWrapper,children:[J.jsx("span",{className:hr(as.iconContainer,as.iconContainerError,t),onClick:S,children:J.jsx(Ije,{})}),J.jsx("span",{className:hr(as.iconContainer,as.iconContainerSuccess,t),onClick:b,children:J.jsx(z0,{})}),J.jsx("span",{className:hr(as.iconContainer,as.iconContainerFx),onClick:y,children:J.jsx(Tje,{})})]})}),J.jsxs("div",{className:as.formulaInput,children:[J.jsx(Gp,{id:Ki,isSheetEditor:!0,resizeCallBack:_,cancelDefaultResizeListener:!0,onContextMenu:N(A=>A.preventDefault(),"onContextMenu"),className:as.formulaContent,snapshot:v,isSingle:!1}),J.jsx("div",{className:hr(as.arrowContainer,{[as.arrowContainerDisable]:s}),onClick:C,children:n===0?J.jsx(pY,{}):J.jsx(pY,{style:{transform:"rotateZ(180deg)"}})})]})]}),J.jsx(zOe,{barColor:o})]})}N($je,"FormulaBar");const aGt="univer-operate-container",oGt="univer-auto-fill-popup-menu",sGt="univer-auto-fill-popup-menu-item",lGt="univer-auto-fill-popup-menu-item-icon",uGt="univer-auto-fill-popup-menu-item-title",cGt="univer-btn-container",dGt="univer-btn-container-expand",ug={operateContainer:aGt,autoFillPopupMenu:oGt,autoFillPopupMenuItem:sGt,autoFillPopupMenuItemIcon:lGt,autoFillPopupMenuItemTitle:uGt,btnContainer:cGt,btnContainerExpand:dGt},hGt=N(()=>{const[,t]=E.useState({});return E.useCallback(()=>t(e=>!e),[])},"useUpdate"),fGt=N(()=>{const t=Ne(me),e=Ne(Ce),n=Ne(Sr),r=Ne(om),i=Ne(sn),[a,o]=E.useState([]),[s,l]=E.useState(!1),[u,c]=E.useState({row:-1,col:-1}),[d,h]=E.useState(Mi.SERIES),[f,m]=E.useState(!1),g=lm(),{sheetSkeletonManagerService:p,selectionRenderService:v}=E.useMemo(()=>{if(g){const H=n.getRenderById(g.getUnitId());return{sheetSkeletonManagerService:H==null?void 0:H.with(Gr),selectionRenderService:H==null?void 0:H.with(Ds)}}return{sheetSkeletonManagerService:null,selectionRenderService:null}},[g,n]),_=N(()=>{m(!0)},"handleMouseEnter"),C=N(()=>{m(!1)},"handleMouseLeave"),S=hGt();if(E.useEffect(()=>t.onCommandExecuted((H,W)=>{H.id===yp.id&&S()}).dispose,[S,t]),E.useEffect(()=>{const H=p&&$t(p.currentSkeleton$.subscribe(W=>{W&&S()}));return H==null?void 0:H.dispose},[p,S]),E.useEffect(()=>$t(r.menu$.subscribe(H=>{o(H.map(W=>({...W,index:H.indexOf(W)})))})).dispose,[r]),E.useEffect(()=>$t(r.showMenu$.subscribe(H=>{const{source:W,target:K}=r.autoFillLocation||{source:null,target:null};if(H&&W&&K){const G=Math.max(W.rows[W.rows.length-1],K.rows[K.rows.length-1]),te=Math.max(W.cols[W.cols.length-1],K.cols[K.cols.length-1]);c({row:G,col:te})}else c({row:-1,col:-1})})).dispose,[r]),E.useEffect(()=>$t(r.applyType$.subscribe(H=>{h(H)})).dispose,[r]),E.useEffect(()=>{function H(){l(!1)}return N(H,"handleClose"),document.addEventListener("wheel",H),()=>{document.removeEventListener("wheel",H)}},[s]),u.col<0||u.row<0)return null;const b=Ad(e,n);if(!b||!v)return null;const{scene:y}=b,A=p==null?void 0:p.getCurrentSkeleton(),w=v.getViewPort(),P=y==null?void 0:y.scaleX,M=y==null?void 0:y.scaleY,L=y==null?void 0:y.getViewportScrollXY(w);if(!P||!y||!P||!M||!L)return null;const k=(A==null?void 0:A.getNoMergeCellPositionByIndex(u.row,u.col).endX)||0,O=(A==null?void 0:A.getNoMergeCellPositionByIndex(u.row,u.col).endY)||0,$=A==null?void 0:A.convertTransformToOffsetX(k,P,L),B=A==null?void 0:A.convertTransformToOffsetY(O,M,L);if($==null||B==null)return null;const V=N(H=>{l(H)},"onVisibleChange"),X=N(H=>{t.executeCommand(ere.id,{type:H.value}),l(!1)},"handleClick"),z=s||f,F=a.filter(H=>!H.disable);return J.jsx("div",{onMouseEnter:_,onMouseLeave:C,style:{left:`${$+2}px`,top:`${B+2}px`,position:"absolute"},children:J.jsx(Ef,{placement:"bottomLeft",trigger:["click"],overlay:J.jsx("ul",{className:ug.autoFillPopupMenu,children:F.map(H=>J.jsxs("li",{onClick:N(()=>X(H),"onClick"),className:ug.autoFillPopupMenuItem,children:[J.jsx("span",{className:ug.autoFillPopupMenuItemIcon,children:H.value===d&&J.jsx(z0,{style:{color:"rgb(var(--green-700, #409f11))"}})}),J.jsx("span",{className:ug.autoFillPopupMenuItemTitle,children:i.t(H.label)})]},H.index))}),visible:s,onVisibleChange:V,children:J.jsxs("div",{className:hr(ug.btnContainer,{[ug.btnContainerExpand]:s}),children:[J.jsx(Dje,{style:{color:"#35322B"},extend:{colorChannel1:"rgb(var(--green-700, #409f11))"}}),z&&J.jsx(tC,{style:{color:"#CCCCCC",fontSize:"8px",marginLeft:"8px"}})]})})})},"AutoFillPopupMenu"),mGt=N(()=>J.jsx("div",{className:ug.operateContainer,children:J.jsx(fGt,{})}),"OperateContainer"),gGt="univer-sheet-bar",pGt="univer-sheet-bar-options",vGt="univer-sheet-bar-options-divider",qy={sheetBar:gGt,sheetBarOptions:pGt,sheetBarOptionsDivider:vGt},_Gt="univer-sheet-bar-btn",CGt={sheetBarBtn:_Gt};function q8(t){const{children:e,className:n,style:r,disabled:i=!1,onClick:a,...o}=t,s=N(l=>{if(i){l.preventDefault();return}a&&a(l)},"handleClick");return J.jsx("button",{className:CGt.sheetBarBtn,style:r,disabled:i,onClick:s,...o,children:e})}N(q8,"SheetBarButton");const SGt="univer-sheet-bar-menu",bGt="univer-sheet-bar-menu-item",yGt="univer-sheet-bar-menu-item-icon",EGt="univer-sheet-bar-menu-item-hide",RGt="univer-sheet-bar-menu-item-select",AGt="univer-sheet-bar-menu-item-label",Cm={sheetBarMenu:SGt,sheetBarMenuItem:bGt,sheetBarMenuItemIcon:yGt,sheetBarMenuItemHide:EGt,sheetBarMenuItemSelect:RGt,sheetBarMenuItemLabel:AGt};function Wje(t){const{style:e}=t,[n,r]=E.useState([]),[i,a]=E.useState(!1),o=Ne(Ce),s=Ne(me),l=Ne(u3),u=Ne(ga),c=ai(()=>o.getCurrentTypeOfUnit$(le.UNIVER_SHEET),null,!1,[]),d=N(p=>{const{sheetId:v}=p;!v||!c||(p.hidden?s.executeCommand(Ane.id,{unitId:c.getUnitId(),subUnitId:v,value:v}):p.selected||s.executeCommand(l9.id,{unitId:c.getUnitId(),subUnitId:v}),a(!1))},"handleClick"),h=E.useCallback(()=>{if(!c)return;const p=c.getSheets(),v=c.getActiveSheet(),_=p.map((C,S)=>({label:C.getName(),index:`${S}`,sheetId:C.getSheetId(),hidden:C.isSheetHidden()===at.TRUE,selected:v===C}));r(_)},[c,u]),f=E.useCallback(()=>s.onCommandExecuted(p=>{switch(p.id){case Ul.id:case Ls.id:case Sp.id:case Dl.id:case Og.id:case Ha.id:h();break}}),[s,h]);function m(){a(!0)}N(m,"handleSheetBarMenu");const g=N(p=>{a(p)},"onVisibleChange");return E.useEffect(()=>{h();const p=new Gi;return p.add(f()),p.add(l.registerSheetBarMenuHandler({handleSheetBarMenu:m})),()=>p.dispose()},[f,l,h,c]),J.jsx(Ef,{placement:"topLeft",trigger:["click"],overlay:J.jsx("ul",{className:Cm.sheetBarMenu,style:{...e},children:n.map(p=>J.jsxs("li",{onClick:N(()=>d(p),"onClick"),className:p.selected?`${Cm.sheetBarMenuItem} ${Cm.sheetBarMenuItemSelect}`:p.hidden?`${Cm.sheetBarMenuItem} ${Cm.sheetBarMenuItemHide}`:Cm.sheetBarMenuItem,children:[J.jsx("span",{className:Cm.sheetBarMenuItemIcon,children:p.selected?J.jsx(z0,{}):p.hidden?J.jsx(Mje,{}):J.jsx(z0,{})}),J.jsx("div",{className:Cm.sheetBarMenuItemLabel,children:p.label})]},p.index))}),visible:i,onVisibleChange:g,children:J.jsx("div",{children:J.jsx(q8,{children:J.jsx(Pje,{})})})})}N(Wje,"SheetBarMenu");const wGt="univer-slide-tab-bar-container",DGt="univer-slide-tab-bar",IGt="univer-slide-tab-item",PGt="univer-slide-tab-active",MGt="univer-slide-tab-div",TGt="univer-slide-tab-div-edit",LGt="univer-slide-tab-item-dropdown",qc={slideTabBarContainer:wGt,slideTabBar:DGt,slideTabItem:IGt,slideTabActive:PGt,slideTabDiv:MGt,slideTabDivEdit:TGt,slideTabItemDropdown:LGt};function zje(t){const{sheetId:e,label:n,color:r,selected:i}=t,[a,o]=E.useState(i),s=Ne(Ja);E.useEffect(()=>{o(i)},[i]);const l=N(u=>{const c=s.getCurrentTheme(),d=c.textColor,h=c.colorWhite;return new Zs(u).isDark()?h:d},"getTextColor");return J.jsx("div",{"data-id":e,className:a?`${qc.slideTabActive} ${qc.slideTabItem}`:qc.slideTabItem,style:{backgroundColor:!a&&r?r:"",color:!a&&r?l(r):"",boxShadow:a&&r?`0px 0px 8px rgba(0, 0, 0, 0.08), inset 0px -2px 0px 0px ${r}`:""},children:J.jsx("div",{className:qc.slideTabDiv,children:n})},e)}N(zje,"SheetBarItem");const xGt={easeOutStrong(t,e,n,r){return-n*((t=t/r-1)*t*t*t-1)+e},backOut(t,e,n,r,i){return typeof i>"u"&&(i=.7),n*((t=t/r-1)*t*((i+1)*t+i)+1)+e}},OGt={loop:!1,begin:0,end:0,duration:300,delay:0,type:"easeOutStrong",receive(t){},success(t){},cancel(t){},complete(t){}},qje=class{constructor(e){fe(this,"_config"),fe(this,"_status",0),fe(this,"_start",0),fe(this,"_handle",0),fe(this,"_delayHandle",null),this._config={...OGt,...e},this._config.loop&&(this._config.complete=()=>{},this._config.success=()=>{this.request()})}static success(...e){let n=0;return new Promise(r=>{for(let i=0;i<e.length;i++){const a=e[i],o=a._config,s=o.success;o.loop||(o.success=l=>{n++,s&&s.call(a,l),n===e.length&&r()})}})}request(){this._config.delay===0?(this._status=0,this._start=Date.now(),this._fakeHandle()):(this._delayHandle&&clearTimeout(this._delayHandle),this._delayHandle=setTimeout(()=>{this._status=0,this._start=Date.now(),this._fakeHandle()},this._config.delay))}cancel(){this._status=1,this._delayHandle&&clearTimeout(this._delayHandle),cancelAnimationFrame(this._handle)}_fakeHandle(){let e=Date.now()-this._start;e=e>=this._config.duration?this._config.duration:e;const n=xGt[this._config.type](e,this._config.begin,this._config.end-this._config.begin,this._config.duration,.7).toFixed(2);if(this._config.receive(n),this._status===1){this._config.cancel(n),this._config.complete(n);return}if(e===this._config.duration){this._config.success(n),this._config.complete(n);return}this._handle=requestAnimationFrame(()=>{this._fakeHandle()})}};N(qje,"Animate");let NGt=qje;const Yje=class ZR{constructor(e,n){fe(this,"_slideTabItem"),fe(this,"_animate"),fe(this,"_midline",0),fe(this,"_translateX"),fe(this,"_scrollbar"),fe(this,"_slideTabBar"),fe(this,"_editMode"),fe(this,"_placeholder"),this._slideTabItem=e,this._animate=null,this._translateX=0,this._editMode=!1,this._slideTabBar=n,this._placeholder=null,this._scrollbar=n.getScrollbar(),this.update()}static midline(e){return e.getBoundingRect().x+e.getBoundingRect().width/2}static leftLine(e){return e.getBoundingRect().x}static rightLine(e){return e.getBoundingRect().x+e.getBoundingRect().width}static make(e,n){const r=[];return e.forEach(i=>r.push(new ZR(i,n))),r}getSlideTabItem(){return this._slideTabItem}getEditor(){return this._slideTabItem.querySelector("span")}focus(){var e;(e=this.getEditor())==null||e.focus()}selectAll(){const e=this.getEditor();e&&eA.keepSelectAll(e)}isEditMode(){return this._editMode}classList(){return this._slideTabItem.classList}translateX(e){return this._translateX=e,this._slideTabItem.style.transform=`translateX(${e}px)`,this.getTranslateXDirection()}setEditor(e){if(!this._slideTabBar.getConfig().onNameChangeCheck())return;let n=!0;if(this._editMode===!1){const r=this._slideTabItem.querySelector("span"),i=N(u=>{if(!this.nameCheck()){if(this._editMode=!1,r&&(r.removeAttribute("contentEditable"),r.removeEventListener("focusout",i),r.removeEventListener("compositionstart",o),r.removeEventListener("compositionend",s),r.removeEventListener("input",l),r.removeEventListener("keydown",a),r.classList.remove(this._slideTabBar.getConfig().slideTabBarSpanEditClassName)),this._slideTabBar.removeListener(),this._slideTabBar.updateItems(),this._slideTabBar.getConfig().onChangeName){const c=(r==null?void 0:r.innerText)||"",d=this.getId();this._slideTabBar.getConfig().onChangeName(d,c)}e&&e(u)}},"blurAction");let a=N(u=>{r&&(u.stopPropagation(),u.key==="Enter"&&r.blur())},"keydownAction");const o=N(u=>{n=!1},"compositionstartAction"),s=N(u=>{n=!0},"compositionendAction"),l=N(u=>{if(!r)return;const c=31;setTimeout(()=>{if(n){const d=r.innerText;d.length>c&&(r.innerText=d.substring(0,c),eA.keepLastIndex(r))}},0)},"inputAction");r&&(r.setAttribute("contentEditable","true"),r.addEventListener("focusout",i),r.addEventListener("compositionstart",o),r.addEventListener("compositionend",s),r.addEventListener("input",l),r.addEventListener("keydown",a),r.classList.add(this._slideTabBar.getConfig().slideTabBarSpanEditClassName),this._editMode=!0,eA.keepSelectAll(r))}}nameCheck(){const e=this._slideTabItem.querySelector("span");if(!e)return!1;const n=e.innerText;return this._slideTabBar.getConfig().onNameCheckAlert(n)}animate(){return{translateX:N(e=>{this._translateX!==e&&(this._animate&&(this._animate.cancel(),this._animate=null),this._animate=new NGt({begin:this._translateX,end:e,receive:N(n=>{this._slideTabItem.style.transform=`translateX(${n}px)`},"receive")}),this._translateX=e,this._animate.request())},"translateX"),cancel:N(()=>{this._animate&&(this._animate.cancel(),this._animate=null)},"cancel")}}after(e){this._slideTabItem.after(e._slideTabItem||e)}update(){this._midline=ZR.midline(this)}disableFixed(){if(this._placeholder){const e=this._slideTabBar.primeval();this._slideTabItem.style.removeProperty("position"),this._slideTabItem.style.removeProperty("left"),this._slideTabItem.style.removeProperty("top"),this._slideTabItem.style.removeProperty("width"),this._slideTabItem.style.removeProperty("height"),this._slideTabItem.style.removeProperty("background"),this._slideTabItem.style.removeProperty("padding"),this._slideTabItem.style.removeProperty("box-sizing"),this._slideTabItem.style.removeProperty("font-size"),this._slideTabItem.style.removeProperty("font-family"),this._slideTabItem.style.removeProperty("font-weight"),this._slideTabItem.style.removeProperty("color"),this._slideTabItem.style.removeProperty("border-radius"),this._placeholder.after(this._slideTabItem),e.removeChild(this._placeholder),this._placeholder=null}}enableFixed(){const e=document.createElement("div"),n=this.getBoundingRect(),r=getComputedStyle(this._slideTabItem),i=this._slideTabItem.querySelector("span");if(this._placeholder=e,this._placeholder.style.width=`${n.width}px`,this._placeholder.style.height=`${n.height}px`,this._placeholder.style.flexShrink="0",this._placeholder.style.margin=r.margin,this._slideTabItem.style.background=r.background,i){const a=getComputedStyle(i).padding;this._slideTabItem.style.padding=a}this._slideTabItem.style.boxSizing=r.boxSizing,this._slideTabItem.style.fontSize=r.fontSize,this._slideTabItem.style.fontFamily=r.fontFamily,this._slideTabItem.style.fontWeight=r.fontWeight,this._slideTabItem.style.color=r.color,this._slideTabItem.style.borderRadius=r.borderRadius,this._slideTabItem.style.left=`${n.x-this.getScrollbar().getScrollX()}px`,this._slideTabItem.style.top=`${n.y}px`,this._slideTabItem.style.width=`${n.width}px`,this._slideTabItem.style.height=`${n.height}px`,this._slideTabItem.style.position="fixed",this._slideTabItem.after(e),document.body.appendChild(this._slideTabItem)}addEventListener(e,n,r){this._slideTabItem.addEventListener(e,n,r)}removeEventListener(e,n,r){this._slideTabItem.removeEventListener(e,n,r)}getScrollbar(){return this._scrollbar}getMidLine(){return this._midline}getBoundingRect(){const e=this._slideTabItem.getBoundingClientRect();return e.x+=this._scrollbar.getScrollX(),e}getWidth(){return this.getBoundingRect().width}getTranslateXDirection(){const e=ZR.midline(this);return e>this._midline?1:e<this._midline?-1:0}equals(e){return e&&e._slideTabItem===this._slideTabItem}getId(){return this._slideTabItem.dataset.id||""}};N(Yje,"SlideTabItem");let RV=Yje;const Xje=class{constructor(e){fe(this,"_slideTabBar"),fe(this,"_scrollX");const n=e.primeval();this._scrollX=n.scrollLeft,this._slideTabBar=e}scrollX(e){const n=this._slideTabBar.primeval();n.scrollLeft=e,this._scrollX=n.scrollLeft}scrollRight(){const e=this._slideTabBar.primeval();e.scrollLeft=e.scrollWidth,this._scrollX=e.scrollLeft}getScrollX(){return this._scrollX}};N(Xje,"SlideScrollbar");let kGt=Xje;const JR=class SY{constructor(e){fe(this,"_activeTabItemIndex",0),fe(this,"_slideTabBar"),fe(this,"_slideTabItems",[]),fe(this,"_config"),fe(this,"_downActionX",0),fe(this,"_moveActionX",0),fe(this,"_compareIndex",0),fe(this,"_activeTabItem",null),fe(this,"_moveAction"),fe(this,"_upAction"),fe(this,"_downAction"),fe(this,"_wheelAction"),fe(this,"_scrollIncremental",0),fe(this,"_compareDirection",0),fe(this,"_autoScrollTime",null),fe(this,"_slideScrollbar"),fe(this,"_longPressTimer",null),fe(this,"_leftBoundingLine",0),fe(this,"_rightBoundingLine",0),fe(this,"_leftMoveX",0),fe(this,"_rightMoveX",0);var n;if(e.slideTabBarContainer==null)throw new Error("not found slide-tab-bar root element");const r=e.slideTabBarContainer.querySelector(`.${(n=e.slideTabBarClassName)!=null?n:"slide-tab-bar"}`);if(r==null)throw new Error("not found slide-tab-bar");this._slideTabBar=r,this._slideScrollbar=new kGt(this),this._config=e,this._initConfig();let i=0,a=0,o=0;this._downAction=s=>{var l,u,c,d,h,f;if((l=this._activeTabItem)!=null&&l.isEditMode())return;this._longPressTimer&&(clearTimeout(this._longPressTimer),this._longPressTimer=null);const m=(c=(u=s.target)==null?void 0:u.closest(`.${e.slideTabBarItemClassName}`))==null?void 0:c.getAttribute("data-id"),g=this._slideTabItems.findIndex(k=>k.getId()===m);if(m==null||g===-1)return;if(this._activeTabItemIndex!==g){(d=this._activeTabItem)==null||d.removeEventListener("pointermove",this._moveAction),(h=this._activeTabItem)==null||h.removeEventListener("pointerup",this._upAction),this.removeListener(),this._config.onChangeTab(s,m);return}if(this._compareIndex=g,this._downActionX=s.pageX,this._moveActionX=0,this._scrollIncremental=0,this._activeTabItem=this._slideTabItems[g],!this._activeTabItem){console.error("Not found active slide-tab-item in sheet bar");return}const p=this._activeTabItem.getSlideTabItem();p==null||p.setPointerCapture(s.pointerId),(f=this._activeTabItem)==null||f.addEventListener("pointerup",this._upAction);const{x:v,width:_}=this._activeTabItem.getBoundingRect(),{x:C,width:S}=this.getBoundingRect(),b=this._slideScrollbar.getScrollX();if(this._leftBoundingLine=this._downActionX-(v-b),this._rightBoundingLine=v-b+_-this._downActionX,this._leftMoveX=v-C-b,this._rightMoveX=C+S-(v+_)+b,s.button===2||this._hasEditItem())return;const{pageX:y,pageY:A}=s,w=Date.now(),P=w-o<=SY.DoubleClickDelay,M=Math.abs(y-i)<10,L=Math.abs(A-a)<10;P&&M&&L&&this._activeTabItem.setEditor(),i=y,a=A,o=w,this._longPressTimer=setTimeout(()=>{var k,O,$;!p||(k=this._activeTabItem)!=null&&k.isEditMode()||((O=this._activeTabItem)==null||O.enableFixed(),this._startAutoScroll(),p.setPointerCapture(s.pointerId),p.style.cursor="move",($=this._activeTabItem)==null||$.addEventListener("pointermove",this._moveAction))},SY.LongPressDelay)},this._upAction=s=>{var l,u,c,d;if((l=this._activeTabItem)!=null&&l.isEditMode()||(this._longPressTimer&&(clearTimeout(this._longPressTimer),this._longPressTimer=null),!this._activeTabItem))return;const h=this._autoScrollTime!==null;this._closeAutoScroll(),this._activeTabItem.disableFixed(),this.updateItems();const f=(u=this._activeTabItem)==null?void 0:u.getSlideTabItem();f&&(f.style.cursor="",f.releasePointerCapture(s.pointerId),(c=this._activeTabItem)==null||c.removeEventListener("pointermove",this._moveAction),(d=this._activeTabItem)==null||d.removeEventListener("pointerup",this._upAction),this._config.onSlideEnd&&this._activeTabItemIndex!==this._compareIndex&&h&&(this.removeListener(),this._config.onSlideEnd(s,this._compareIndex||0)),this._scrollIncremental=0,this._downActionX=0,this._moveActionX=0,this._compareIndex=0)},this._moveAction=s=>{this._activeTabItem&&(this._moveActionX=s.pageX-this._downActionX,this._moveActionX<=-this._leftMoveX?this._moveActionX=-this._leftMoveX:this._moveActionX>=this._rightMoveX&&(this._moveActionX=this._rightMoveX),this._scrollIncremental=0,this._scrollLeft(s),this._scrollRight(s))},this._wheelAction=s=>{this.setScroll(s.deltaY)},this.addListener()}static checkedSkipSlide(e){let n=e.target;for(;n!=null&&n!==document.body;){if(n.getAttribute("data-slide-skip"))return!0;n=n.parentElement}return!1}static keepLastIndex(e){setTimeout(()=>{const n=window.getSelection();n&&(n.selectAllChildren(e),n.collapseToEnd())})}static keepSelectAll(e){setTimeout(()=>{const n=window.getSelection();if(!n)return;const r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r)})}update(e){this._config.currentIndex=e,this._initConfig(),this.removeListener(),this.addListener(),this.scrollToItem(e)}primeval(){return this._slideTabBar}updateItems(){for(let e=0;e<this._slideTabItems.length;e++)this._slideTabItems[e].animate().cancel(),this._slideTabItems[e].translateX(0),this._slideTabItems[e].update()}getScrollbar(){return this._slideScrollbar}getConfig(){return this._config}getBoundingRect(){return this._slideTabBar.getBoundingClientRect()}getSlideTabItems(){return this._slideTabItems}getActiveItem(){return this._activeTabItem}isLeftEnd(){return this._slideTabBar.scrollLeft===0}isRightEnd(){const e=this._slideTabBar.parentElement;return e?this._slideTabBar.scrollWidth-e.clientWidth===this._slideTabBar.scrollLeft:!1}addListener(){this._slideTabBar.addEventListener("wheel",this._wheelAction),this._slideTabItems.forEach(e=>{e.addEventListener("pointerdown",this._downAction)})}removeListener(){this._slideTabBar.removeEventListener("wheel",this._wheelAction),this._slideTabItems.forEach(e=>{e.removeEventListener("pointerdown",this._downAction)})}setScroll(e){if(this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+e),e>0){const n=this.calculateLeftScrollX();this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+n)}else if(e<0){const n=this.calculateRightScrollX();this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+n)}this._config.onScroll({leftEnd:this.isLeftEnd(),rightEnd:this.isRightEnd()})}flipPage(e){if(e>0){const n=this.calculateLeftScrollX(!0);this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+n)}else if(e<0){const n=this.calculateRightScrollX(!0);this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+n)}this._config.onScroll({leftEnd:this.isLeftEnd(),rightEnd:this.isRightEnd()})}scrollToItem(e){if(e=e??this._config.currentIndex,e<0||e>=this._slideTabItems.length){console.error("Index out of bounds");return}const n=this.calculateTabItemScrollX(e);this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+n),this._config.onScroll({leftEnd:this.isLeftEnd(),rightEnd:this.isRightEnd()})}calculateLeftScrollX(e){let n=0;const r=4;return this._slideTabItems.some(i=>{const a=this._slideTabBar.getBoundingClientRect(),o=a.left+a.width,s=i.getSlideTabItem().getBoundingClientRect(),l=s.left,u=s.width;return l<o&&l+u+r*2>o?(n=e?l-a.left-r:l+u-o+r,!0):!1}),n}calculateRightScrollX(e){let n=0;const r=4;return this._slideTabItems.some(i=>{const a=this._slideTabBar.getBoundingClientRect(),o=a.left,s=i.getSlideTabItem().getBoundingClientRect(),l=s.left,u=s.width;return l-r*2<o&&l+u>o?(n=e?l+u-a.left-a.width+r:l-o-r,!0):!1}),n}calculateTabItemScrollX(e){let n=0;const r=4,i=this._slideTabBar.getBoundingClientRect(),a=i.left,o=i.left+i.width,s=this._slideTabItems[e].getSlideTabItem().getBoundingClientRect(),l=s.left,u=s.width;return l-r*2<a&&(n=l-a-r),l+u+r*2>o&&(n=l+u-o+r),n}calculateActiveTabItemScrollX(){var e;let n=0;const r=4,i=this._slideTabBar.getBoundingClientRect(),a=i.left,o=i.left+i.width,s=(e=this._activeTabItem)==null?void 0:e.getSlideTabItem().getBoundingClientRect();if(!s)return 0;const l=s.left,u=s.width;return l-r*2<a&&l+u>a&&(n=l-a-r),l<o&&l+u+r*2>o&&(n=l+u-o+r),n}destroy(){this._downActionX=0,this._moveActionX=0,this._compareDirection=0,this._compareIndex=0,this._slideTabItems=[],this._activeTabItem=null,this.removeListener()}_hasEditItem(){for(let e=0;e<this._slideTabItems.length;e++)if(this._slideTabItems[e].isEditMode())return!0;return!1}_autoScrollFrame(){if(this._activeTabItem)switch(this._compareDirection=this._activeTabItem.translateX(this._moveActionX),this._compareDirection){case 1:{this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+this._scrollIncremental),this._compareRight();break}case 0:{this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+this._scrollIncremental),this._compareIndex=this._activeTabItemIndex;break}case-1:{this._slideScrollbar.scrollX(this._slideScrollbar.getScrollX()+this._scrollIncremental),this._compareLeft();break}}this._autoScrollTime=requestAnimationFrame(()=>{this._autoScrollFrame()})}_startAutoScroll(){this._autoScrollTime==null&&this._autoScrollFrame()}_closeAutoScroll(){this._autoScrollTime&&cancelAnimationFrame(this._autoScrollTime),this._autoScrollTime=null}_scrollLeft(e){const n=this.getBoundingRect(),r=e.pageX-n.x;r<this._leftBoundingLine&&(this._scrollIncremental=-Math.min(Math.abs(r-this._leftBoundingLine)*.1,50))}_scrollRight(e){const n=this.getBoundingRect(),r=e.pageX-n.x;r>n.width-this._rightBoundingLine&&(this._scrollIncremental=Math.min(Math.abs(r-(n.width-this._rightBoundingLine))*.1,50))}_sortedItems(){if(this._activeTabItem!=null&&this._activeTabItemIndex!=null&&this._compareIndex!=null&&(this._slideTabItems.splice(this._activeTabItemIndex,1),this._slideTabItems.splice(this._compareIndex,0,this._activeTabItem),this._config.slideTabBarItemAutoSort))for(let e=0;e<this._slideTabItems.length;e++){const n=this._slideTabItems[e],r=this._slideTabItems[e+1];r&&n.after(r)}}_compareLeft(){if(this._activeTabItem&&this._activeTabItemIndex){const e=this._slideTabItems.findIndex(a=>a.equals(this._activeTabItem)),n=this._slideTabItems.length,r=[];for(let a=0;a<e&&!(a>=e);a++)r.push(this._slideTabItems[a]);for(let a=e+1;a<n;a++)this._slideTabItems[a].animate().translateX(0);let i=!0;for(let a=r.length-1;a>=0;a--){const o=r[a];RV.leftLine(this._activeTabItem)<o.getMidLine()?(o.animate().translateX(this._activeTabItem.getWidth()),this._compareIndex=a,i=!1):(o.animate().translateX(0),i&&(this._compareIndex=this._activeTabItemIndex))}}}_compareRight(){if(this._activeTabItem){const e=this._slideTabItems.findIndex(a=>a.equals(this._activeTabItem)),n=this._slideTabItems.length,r=[];for(let a=e+1;a<n;a++)r.push(this._slideTabItems[a]);for(let a=0;a<e;a++)this._slideTabItems[a].animate().translateX(0);let i=!0;for(let a=0;a<r.length;a++){const o=r[a];RV.rightLine(this._activeTabItem)>o.getMidLine()?(o.animate().translateX(-this._activeTabItem.getWidth()),this._compareIndex=e+a+1,i=!1):(o.animate().translateX(0),i&&(this._compareIndex=this._activeTabItemIndex))}}}_initConfig(){var e;const n=this._slideTabBar.querySelectorAll(`.${(e=this._config.slideTabBarItemClassName)!=null?e:"slide-tab-item"}`);this._downActionX=0,this._moveActionX=0,this._compareDirection=0,this._compareIndex=0,this._slideTabItems=RV.make(n,this),this._activeTabItemIndex=this._config.currentIndex,this._activeTabItem=this._slideTabItems[this._activeTabItemIndex]}};N(JR,"SlideTabBar"),fe(JR,"LongPressDelay",500),fe(JR,"DoubleClickDelay",300);let eA=JR;function Gje(){var t;const[e,n]=E.useState([]),[r,i]=E.useState(""),[a,o]=E.useState(""),[s,l]=E.useState(!1),[u,c]=E.useState([0,0]),d=E.useRef({slideTabBar:null}),h=E.useRef(null),f=Ne(me),m=Ne(u3),g=Ne(sn),p=Ne(Il),v=Ne(Za),_=Ne(Zl,va.OPTIONAL),C=Ne(ga),S=Ne(li),b=ai(C.resetOrder$),y=lm(),A=Ne(Qi),w=E.useCallback(()=>{var ae;const ie=((ae=y.getActiveSheet())==null?void 0:ae.getSheetId())||"";i(ie);const ne=y.getSheets(),de=y.getActiveSheet(),_e=ne.filter(Pe=>!Pe.isSheetHidden()).map((Pe,De)=>{var Ee;const ye=C.getRule(y.getUnitId(),Pe.getSheetId()),Ve=S.getSubunitRuleList(y.getUnitId(),Pe.getSheetId()).length>0,ke=ye!=null&&ye.permissionId||Ve?J.jsxs(J.Fragment,{children:[J.jsx(cre,{}),J.jsx("span",{children:Pe.getName()})]}):J.jsx("span",{children:Pe.getName()});return{sheetId:Pe.getSheetId(),label:ke,index:De,selected:de===Pe,color:(Ee=Pe.getTabColor())!=null?Ee:void 0}});n(_e),i(ie)},[S,y,C]);E.useEffect(()=>{w();const ae=P(),ie=z(),ne=[F(),H(),W()];return()=>{ie.dispose(),ae.destroy(),ne.forEach(de=>de.unsubscribe())}},[b,y]),E.useEffect(()=>{e.length>0&&X()},[e]),E.useEffect(()=>{const ae=Qa(C.ruleChange$,S.ruleChange$).subscribe(()=>{w()});return()=>{ae.unsubscribe()}},[C,w]);const P=N(()=>{const ae=new eA({slideTabBarClassName:qc.slideTabBar,slideTabBarItemActiveClassName:qc.slideTabActive,slideTabBarItemClassName:qc.slideTabItem,slideTabBarSpanEditClassName:qc.slideTabDivEdit,slideTabBarItemAutoSort:!0,slideTabBarContainer:h.current,currentIndex:0,onChangeName:N((ie,ne)=>{f.executeCommand(ub.id,{subUnitId:ie,name:ne})},"onChangeName"),onSlideEnd:N(async(ie,ne)=>{await f.executeCommand(Ene.id,{order:ne})},"onSlideEnd"),onChangeTab:N((ie,ne)=>{f.executeCommand(Ha.id,{subUnitId:ne,unitId:y.getUnitId()}).then(()=>{ie.button===2&&Y(!0)})},"onChangeTab"),onScroll:N(ie=>{m.setScroll(ie)},"onScroll"),onNameCheckAlert:N(ie=>k(ie)||O(ie)||$(ie),"onNameCheckAlert"),onNameChangeCheck:N(()=>{var ie,ne,de,_e;const Pe=y.getUnitId(),De=y==null?void 0:y.getActiveSheet();if(!De)throw new Error("No active sheet found");const Ee=De.getSheetId(),ye=C.getRule(Pe,Ee),Ve=S.getSubunitRuleList(Pe,Ee).length>0;return ye||Ve?(ne=(ie=A.getPermissionPoint(new R1(Pe).id))==null?void 0:ie.value)!=null?ne:!1:(_e=(de=A.getPermissionPoint(new ax(Pe).id))==null?void 0:de.value)!=null?_e:!1},"onNameChangeCheck")});return d.current.slideTabBar=ae,te(ae),ae},"setupSlideTabBarInit"),M=v.getConfig(Yee),L=(t=M==null?void 0:M.contextMenu)!=null?t:!0,k=N(ae=>{if(ae.trim()===""){const ie="sheetNameEmptyAlert";return p.open({id:ie,title:{title:g.t("sheetConfig.sheetNameErrorTitle")},children:{title:g.t("sheetConfig.sheetNameCannotIsEmptyError")},cancelText:g.t("button.cancel"),confirmText:g.t("button.confirm"),onClose(){B(),p.close(ie)},onConfirm(){B(),p.close(ie)}}),!0}return!1},"nameEmptyCheck"),O=N(ae=>{if(!Che(ae)){const ie="sheetNameSpecCharAlert";return p.open({id:ie,title:{title:g.t("sheetConfig.sheetNameErrorTitle")},children:{title:g.t("sheetConfig.sheetNameSpecCharError")},cancelText:g.t("button.cancel"),confirmText:g.t("button.confirm"),onClose(){B(),p.close(ie)},onConfirm(){B(),p.close(ie)}}),!0}return!1},"sheetNameSpecCharCheck"),$=N(ae=>{const ie=y.getActiveSheet();if((ie==null?void 0:ie.getName())===ae)return!1;const ne=y.checkSheetName(ae);if(ne){const de="sheetNameRepeatAlert";p.open({id:de,title:{title:g.t("sheetConfig.sheetNameErrorTitle")},children:{title:g.t("sheetConfig.sheetNameAlreadyExistsError")},cancelText:g.t("button.cancel"),confirmText:g.t("button.confirm"),onClose(){p.close(de),B()},onConfirm(){p.close(de),B()}})}return ne},"nameRepeatCheck"),B=N(()=>{setTimeout(()=>{var ae;const ie=(ae=d.current.slideTabBar)==null?void 0:ae.getActiveItem();ie&&(ie.focus(),ie.selectAll())},0)},"focusTabEditor"),V=N(()=>{var ae,ie;(ie=(ae=d.current.slideTabBar)==null?void 0:ae.getActiveItem())==null||ie.setEditor()},"setTabEditor"),X=N(()=>{var ae;const ie=e.findIndex(ne=>ne.selected);(ae=d.current.slideTabBar)==null||ae.update(ie)},"setupSlideTabBarUpdate"),z=N(()=>f.onCommandExecuted(ae=>{switch(ae.id){case B8.id:case Ul.id:case Ls.id:case Sp.id:case Dl.id:case Og.id:case Ha.id:w();break}}),"setupStatusUpdate"),F=N(()=>m.scroll$.subscribe(ae=>{K(ae)}),"setupSubscribeScroll"),H=N(()=>m.scrollX$.subscribe(ae=>{var ie;(ie=d.current.slideTabBar)==null||ie.flipPage(ae)}),"setupSubscribeScrollX"),W=N(()=>m.renameId$.subscribe(()=>{V()}),"setupSubscribeRenameId"),K=N(ae=>{const{leftEnd:ie,rightEnd:ne}=ae;let de="";ie&&ne?de="":ie&&!ne?de="inset -10px 0px 10px -10px rgba(0, 0, 0, 0.2)":!ie&&ne?de="inset 10px 0px 10px -10px rgba(0, 0, 0, 0.2)":!ie&&!ne&&(de="inset 10px 0px 10px -10px rgba(0, 0, 0, 0.2), inset -10px 0px 10px -10px rgba(0, 0, 0, 0.2)"),o(de)},"updateScrollButtonState"),G=N(ae=>{const ie=ae.calculateActiveTabItemScrollX();if(ie){const ne=ae.getScrollbar();ne.scrollX(ne.getScrollX()+ie)}m.setScroll({leftEnd:ae.isLeftEnd(),rightEnd:ae.isRightEnd()})},"buttonScroll"),te=N(ae=>{var ie;const ne=(ie=h.current)==null?void 0:ie.querySelector(`.${qc.slideTabBar}`);ne&&new ResizeObserver(()=>{G(ae)}).observe(ne)},"resizeInit"),Y=N(ae=>{var ie,ne,de,_e,Pe;if(L&&!(_!=null&&_.isForceKeepVisible())){if(ae){const{left:De}=(ne=(ie=h.current)==null?void 0:ie.getBoundingClientRect())!=null?ne:{},{left:Ee}=(Pe=(_e=(de=d.current.slideTabBar)==null?void 0:de.getActiveItem())==null?void 0:_e.getSlideTabItem().getBoundingClientRect())!=null?Pe:{};De!==void 0&&Ee!==void 0&&c([Ee-De,0])}l(ae)}},"onVisibleChange");return J.jsx(Ef,{className:qc.slideTabItemDropdown,visible:s,align:{offset:u},trigger:["contextMenu"],overlay:J.jsx(hI,{menuType:Xa.FOOTER_TABS,onOptionSelect:N(ae=>{const{label:ie,value:ne,commandId:de}=ae;f.executeCommand(de??ie,{value:ne,subUnitId:r}),l(!1)},"onOptionSelect")}),onVisibleChange:Y,children:J.jsx("div",{className:qc.slideTabBarContainer,ref:h,onDragStart:N(ae=>ae.preventDefault(),"onDragStart"),onContextMenu:N(ae=>ae.preventDefault(),"onContextMenu"),children:J.jsx("div",{className:qc.slideTabBar,style:{boxShadow:a},children:e.map(ae=>E.createElement(zje,{...ae,key:ae.sheetId,selected:r===ae.sheetId}))})})})}N(Gje,"SheetBarTabs");const rue=100,FGt=N(()=>{var t,e;const[n,r]=E.useState(!0),[i,a]=E.useState(!0),o=Ne(me),s=Ne(u3),l=Ne(Qi),u=lm().getUnitId(),c=ai(l.getPermissionPoint$((t=new on(u))==null?void 0:t.id)),d=ai(l.getPermissionPoint$((e=new ine(u))==null?void 0:e.id));E.useEffect(()=>{const p=s.scroll$.subscribe(v=>{h(v)});return()=>{p.unsubscribe()}},[]);const h=N(p=>{const{leftEnd:v,rightEnd:_}=p;r(v),a(_)},"updateScrollButtonState"),f=N(()=>{o.executeCommand(wUe.id),setTimeout(()=>{s.setAddSheet(0)},0)},"addSheet"),m=N(()=>{s.setScrollX(-rue)},"handleScrollLeft"),g=N(()=>{s.setScrollX(rue)},"handleScrollRight");return J.jsxs("div",{className:qy.sheetBar,children:[J.jsxs("div",{className:qy.sheetBarOptions,children:[J.jsx(q8,{onClick:f,disabled:!(d!=null&&d.value&&c!=null&&c.value),children:J.jsx(ure,{})}),J.jsx(Wje,{})]}),J.jsx(Gje,{}),(!n||!i)&&J.jsxs("div",{className:`${qy.sheetBarOptions} ${qy.sheetBarOptionsDivider}`,children:[J.jsx(q8,{disabled:n,onClick:m,children:J.jsx(vY,{style:{transform:"rotateZ(180deg)"}})}),J.jsx(q8,{disabled:i,onClick:g,children:J.jsx(vY,{})})]})]})},"SheetBar"),Qje=class{constructor(){fe(this,"_functions",[{func:gt.MAX,filter:N(e=>{var n,r,i,a;return((r=(n=e.values.find(o=>o.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1&&((a=(i=e.values.find(o=>o.func===gt.COUNT))==null?void 0:i.value)!=null?a:0)>0},"filter")},{func:gt.MIN,filter:N(e=>{var n,r,i,a;return((r=(n=e.values.find(o=>o.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1&&((a=(i=e.values.find(o=>o.func===gt.COUNT))==null?void 0:i.value)!=null?a:0)>0},"filter")},{func:mt.SUM,filter:N(e=>{var n,r,i,a;return((r=(n=e.values.find(o=>o.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1&&((a=(i=e.values.find(o=>o.func===gt.COUNT))==null?void 0:i.value)!=null?a:0)>0},"filter")},{func:gt.COUNTA,filter:N(e=>{var n,r;return((r=(n=e.values.find(i=>i.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1},"filter")},{func:gt.COUNT,filter:N(e=>{var n,r,i,a;return((r=(n=e.values.find(o=>o.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1&&((a=(i=e.values.find(o=>o.func===gt.COUNT))==null?void 0:i.value)!=null?a:0)>0},"filter")},{func:gt.AVERAGE,filter:N(e=>{var n,r,i,a;return((r=(n=e.values.find(o=>o.func===gt.COUNTA))==null?void 0:n.value)!=null?r:0)>1&&((a=(i=e.values.find(o=>o.func===gt.COUNT))==null?void 0:i.value)!=null?a:0)>0},"filter")}]),fe(this,"_state$",new Pn(null)),fe(this,"state$",this._state$.asObservable())}dispose(){this._state$.complete()}setState(e){var n;const r={values:[],pattern:null};e==null||e.values.forEach(i=>{const a=this._functions.find(o=>o.func===i.func);a&&(a.filter===void 0||a.filter(e))&&r.values.push(i)}),r.pattern=(n=e==null?void 0:e.pattern)!=null?n:null,this._state$.next(r)}getState(){return this._state$.getValue()}getFunctions(){return this._functions}addFunctions(e){this._functions.push(...e)}};N(Qje,"StatusBarService");let Kje=Qje;const Yx=er("univer.sheet-status-bar.service"),VGt="univer-status-bar",BGt="univer-single-mode",UGt="univer-status-bar-div",HGt="univer-statistic-list",jGt="univer-statistic-list-column",$Gt="univer-statistic-item",l6={statusBar:VGt,singleMode:BGt,statusBarDiv:UGt,statisticList:HGt,statisticListColumn:jGt,statisticItem:$Gt},WGt=[mt.SUM,gt.AVERAGE,gt.MIN,gt.MAX],iue={[mt.SUM]:"statusbar.sum",[gt.AVERAGE]:"statusbar.average",[gt.MIN]:"statusbar.min",[gt.MAX]:"statusbar.max",[gt.COUNT]:"statusbar.count",[gt.COUNTA]:"statusbar.countA",[Cr.CONCATENATE]:"concatenate"},AV=N(t=>{const e=Ne(sn),n=Ne(Qp),r=Ne(dh),i=Zje(t),a=N(async()=>{await r.writeText(t.value.toString()),n.show({type:hT.Success,content:e.t("statusbar.copied")})},"copyToClipboard");return J.jsx(n1,{title:e.t("statusbar.clickToCopy"),placement:"top",children:J.jsx("div",{className:l6.statisticItem,onClick:a,children:J.jsx("span",{children:`${e.t((iue==null?void 0:iue[t.name])||t.name)}: ${i}`})},t.name)})},"CopyableStatisticItem");function Zje(t){const{pattern:e,value:n}=t;return typeof n!="number"?0:n>=1e8?n.toExponential(2):e&&WGt.includes(t.name)?Fi.format(e,n,{throws:!1}):n.toLocaleString()}N(Zje,"formatNumber");const aue=800,zGt=3,qGt=N(()=>{const[t,e]=E.useState(window.innerWidth<aue),[n,r]=E.useState(!0),i=Ne(Yx),a=i.getFunctions().map((h,f)=>({name:h.func,value:0,show:!0,disable:!1,pattern:null})),[o,s]=E.useState(a),l=o.find(h=>h.show&&!h.disable),u=t&&l?[l]:o.filter(h=>h.show&&!h.disable);E.useEffect(()=>{const h=i.state$.subscribe(f=>{const m=f==null?void 0:f.values;if(!m||m.length===0)r(!1);else{r(!0);const g=o.map(p=>{var v;const _=m.find(C=>C.func===p.name);return _?(p.value=_.value,p.disable=!1):p.disable=!0,p.pattern=(v=f==null?void 0:f.pattern)!=null?v:null,p});s(g)}});return()=>{h.unsubscribe()}},[i]);const c=_4(()=>{const h=window.innerWidth<aue;t!==h&&e(h)},100);E.useEffect(()=>(window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}),[t]);let d=null;if(u.length>zGt){const h=[];u.forEach((f,m)=>{m%2===0&&h.push(u.slice(m,m+2))}),d=J.jsxs(J.Fragment,{children:[" ",h.map((f,m)=>J.jsxs("div",{className:l6.statisticListColumn,children:[(f==null?void 0:f[0])&&J.jsx(AV,{...f==null?void 0:f[0]},f==null?void 0:f[0].name),(f==null?void 0:f[1])&&J.jsx(AV,{...f==null?void 0:f[1]},f==null?void 0:f[1].name)]},`stat-col-${m}`))," "]})}else d=J.jsx(J.Fragment,{children:u.map(h=>J.jsx(AV,{...h},h.name))});return n&&J.jsxs("div",{className:hr(l6.statusBar,{[l6.singleMode]:t}),children:[J.jsx("div",{className:hr(l6.statisticList),children:d}),J.jsx("div",{className:l6.statusBarDiv})]})},"StatusBar"),YGt="36",XGt="univer-sheet-container",Jje={sheetFooterBarHeight:YGt,sheetContainer:XGt};function e$e(){const t=Ne(sl),e=lm(),n=t.getMenuByPositionKey(Xa.FOOTER_MENU);return e?J.jsxs("section",{className:Jje.sheetContainer,"data-range-selector":!0,children:[J.jsx(FGt,{}),J.jsx(qGt,{}),n.map(r=>{var i;return(i=r.children)==null?void 0:i.map(a=>(a==null?void 0:a.item)&&J.jsx(a6,{align:{offset:[-32,18]},...a.item},a.key))}),J.jsx(Vje,{})]}):null}N(e$e,"RenderSheetFooter");function t$e(){return Cre()?J.jsx($je,{}):null}N(t$e,"RenderSheetHeader");function n$e(){return Cre()?J.jsxs(J.Fragment,{children:[J.jsx(jXt,{}),J.jsx(mGt,{})]}):null}N(n$e,"RenderSheetContent");function Cre(){const t=Ne(Ce),e=ai(()=>t.getCurrentTypeOfUnit$(le.UNIVER_SHEET),null,!1,[]);return E.useMemo(()=>t.getAllUnitsForType(le.UNIVER_SHEET).length>0,[t,e])}N(Cre,"useHasWorkbook");function Xx(t){return t.getContextValue(ms)}N(Xx,"whenSheetFocused");function na(t){return t.getContextValue(ms)&&t.getContextValue(Pu)&&!t.getContextValue(ha)&&!t.getContextValue(I7)}N(na,"whenSheetEditorFocused");function Sre(t){return t.getContextValue(ms)&&t.getContextValue(Pu)&&!t.getContextValue(ha)&&!t.getContextValue(of)&&!t.getContextValue(I7)}N(Sre,"whenSheetEditorFocusedAndFxNotFocused");function r$e(t){return t.getContextValue(ms)&&t.getContextValue(Pu)&&t.getContextValue(ha)}N(r$e,"whenSheetEditorActivated");function i$e(t){return t.getContextValue(Pu)&&t.getContextValue(ha)}N(i$e,"whenEditorActivated");function bre(t){return t.getContextValue(of)&&t.getContextValue(Pu)}N(bre,"whenFormulaEditorFocused");function S9(t){return t.getContextValue(ms)&&t.getContextValue(ha)&&t.getContextValue(Um)&&t.getContextValue(Pu)}N(S9,"whenFormulaEditorActivated");function v7(t){return t.getContextValue(ms)&&t.getContextValue(Pu)&&t.getContextValue(ha)&&!t.getContextValue(Um)&&!t.getContextValue(Dg)}N(v7,"whenEditorDidNotInputFormulaActivated");const GGt=10,QGt=6;function a$e(){return Ie.generateRandomId(QGt)}N(a$e,"genId");function o$e(t){const e=t.match(/data-copy-id="([^\s]+)"/);return e&&e[1]?e[1]:null}N(o$e,"extractId");const s$e=class{constructor(){fe(this,"_cache",new Yg(GGt))}set(e,n){this._cache.set(e,n)}get(e){return this._cache.get(e)}del(e){this._cache.delete(e)}clear(){this._cache.clear()}};N(s$e,"CopyContentCache");let KGt=s$e;function nC(t,e){const n=e??t.style,r={},i=t.tagName.toLowerCase();switch(i){case"b":case"em":case"strong":{r.bl=at.TRUE;break}case"s":{r.st={s:at.TRUE};break}case"u":{r.ul={s:at.TRUE};break}case"i":{r.it=at.TRUE;break}case"sub":case"sup":{r.va=i==="sup"?ca.SUPERSCRIPT:ca.SUBSCRIPT;break}}return l$e(n,r),r}N(nC,"extractNodeStyle");function l$e(t,e){if(t instanceof CSSStyleDeclaration)for(let n=0;n<t.length;n++){const r=t[n],i=t.getPropertyValue(r);bY(r,i,e)}else for(const n in t){const r=t[n];bY(n,r,e)}}N(l$e,"parseStyleByProperty");function bY(t,e,n){switch(t){case"font-family":n.ff=e;break;case"font-size":{const r=Number.parseInt(e);Number.isNaN(r)||(e.endsWith("pt")?n.fs=r:e.endsWith("px")&&(n.fs=r*.75));break}case"font-style":e==="italic"&&(n.it=at.TRUE);break;case"font-weight":{(Number(e)>400||e==="bold")&&(n.bl=at.TRUE);break}case"text-decoration":{/underline/.test(e)?n.ul={s:at.TRUE}:/overline/.test(e)?n.ol={s:at.TRUE}:/line-through/.test(e)&&(n.st={s:at.TRUE});break}case"color":{try{const r=new Zs(e);r.isValid&&(n.cl={rgb:r.toRgbString()})}catch{}break}case"background-color":{const r=new Zs(e),i=r.isValid?r.toRgbString():"";i!==jke&&i!==Hke&&(n.bg={rgb:i});break}}}N(bY,"handleStyle");function u$e(t){const e=document.createElement("body");return e.innerHTML=t,e}N(u$e,"parseToDom");function yre(t){const e=t.style,n={};for(let r=0;r<e.length;r++){const i=e[r],a=e.getPropertyValue(i);switch(i){case"margin-top":{const o=Number.parseInt(a);n.spaceAbove={v:/pt/.test(a)?ip(o):o};break}case"margin-bottom":{const o=Number.parseInt(a);n.spaceBelow={v:/pt/.test(a)?ip(o):o};break}case"line-height":{const o=Number.parseFloat(a);n.lineSpacing=o;break}}}return Object.getOwnPropertyNames(n).length?n:null}N(yre,"getParagraphStyle");function tA(t,e){const n=[];for(let r=0,i=t.length;r<i;r++)t[r]===wt.PARAGRAPH&&n.push({startIndex:r});return n}N(tA,"generateParagraphs");const oue=["color","background","font-size","text-align","vertical-align","font-weight","font-style","font-family","text-decoration","white-space","word-wrap","border-left","border-right","border-top","border-bottom","--data-rotate"];function yY(t,e){const n=t.tagName.toLowerCase();return typeof e=="string"?n===e:Array.isArray(e)?e.some(r=>r===n):e(t)}N(yY,"matchFilter");const EY=class c$e{constructor(e){fe(this,"_styleMap",new Map),fe(this,"_styleCache",new Map),fe(this,"_styleRules",[]),fe(this,"_afterProcessRules",[]),fe(this,"_dom",null),fe(this,"_getCurrentSkeleton"),this._getCurrentSkeleton=e.getCurrentSkeleton}static use(e){if(this._pluginList.includes(e))throw new Error(`Univer paste plugin ${e.name} already added`);this._pluginList.push(e)}convert(e){var n;const r=c$e._pluginList.find(p=>p.checkPasteType(e));r&&(this._styleRules=[...r.stylesRules],this._afterProcessRules=[...r.afterProcessRules]);const i=new Ct;this._dom=u$e(e);const a=this._dom.querySelector("style");if(a){const p=document.createElement("div"),v=p.attachShadow({mode:"open"});document.body.appendChild(p),v.appendChild(a);for(const _ of a.sheet.cssRules){const C=_,S=C.selectorText,b=C.style;this._styleMap.set(S,b)}a.remove(),p.remove()}const o={dataStream:"",textRuns:[]},s=[],l=[],u=e.match(/<table\b[^>]*>([\s\S]*?)<\/table>/gi),c=[];this.process(null,this._dom.childNodes,o,c);const{paragraphs:d,dataStream:h,textRuns:f,payloads:m,customRanges:g}=o;if(d){const p=d.map(v=>v.startIndex+1);p.unshift(0);for(let v=0;v<p.length;v++){let _;if(v===p.length-1){if(_=`${h.substring(p[v])}\r |
|
|
`,_===`\r |
|
|
`)continue}else _=`${h.substring(p[v],p[v+1]-1)}\r |
|
|
`;const C=[];f==null||f.forEach(A=>{A.st>=p[v]&&A.ed<=p[v+1]&&C.push({st:A.st-p[v],ed:A.ed-p[v],ts:A.ts})});const S=[];g==null||g.forEach(A=>{A.startIndex>=p[v]&&A.endIndex<=p[v+1]&&S.push({...A,startIndex:A.startIndex-p[v],endIndex:A.endIndex-p[v]})});const b=this._generateDocumentDataModelSnapshot({body:{dataStream:_,textRuns:C,paragraphs:tA(_),customRanges:S}}),y=Object.keys(i.getMatrix()).length===0;i.setValue(y?0:i.getLength(),0,{v:_,p:b}),s.push({})}}else if(h){const p=`${h}\r |
|
|
`,v={dataStream:p,textRuns:f,paragraphs:tA(p),payloads:m,customRanges:g},_=h.length,C=(n=f==null?void 0:f.length)!=null?n:0;if(!(g!=null&&g.length)&&(!C||C===1&&f[0].st===0&&f[0].ed===_))i.setValue(0,0,{v:h});else{const S=this._generateDocumentDataModelSnapshot({body:v});i.setValue(0,0,{v:h,p:S})}s.push({})}return u&&u.forEach((p,v)=>{const _=i.getDataRange().endRow+1,{cellMatrix:C,rowProperties:S,colProperties:b}=this._parseTable(p,v);C&&C.forValue((y,A,w)=>{i.setValue(_+y,A,w)}),b&&l.push(...b),s.push(...S)}),this.dispose(),{rowProperties:s,colProperties:l,cellMatrix:i}}_getStyleBySelectorText(e,n){var r;return((r=this._styleMap.get(e))==null?void 0:r.getPropertyValue(n))||""}_getStyle(e,n){const r=RY(n),i=e.style;let a="";for(let o=0;o<oue.length;o++){const s=oue[o];if(s==="background"){let u="";e.classList.forEach(d=>{u=this._getStyleBySelectorText(`.${d}`,"background-color")||this._getStyleBySelectorText(`.${d}`,s)});const c=i.getPropertyValue("background-color")||u||this._getStyleBySelectorText(`#${e.id}`,"background-color")||this._getStyleBySelectorText(`#${e.id}`,s)||this._getStyleBySelectorText(e.nodeName.toLowerCase(),s)||this._getStyleBySelectorText(e.nodeName,"background-color")||r["background-color"]||"";c&&(a+=`background:${c};`);continue}if(s==="text-decoration"){let u="";e.classList.forEach(d=>{u=this._getStyleBySelectorText(`.${d}`,"text-decoration-line")||this._getStyleBySelectorText(`.${d}`,s)});const c=i.getPropertyValue("text-decoration-line")||i.getPropertyValue("text-decoration")||u||this._getStyleBySelectorText(`#${e.id}`,"text-decoration-line")||this._getStyleBySelectorText(`#${e.id}`,s)||this._getStyleBySelectorText(e.nodeName.toLowerCase(),s)||this._getStyleBySelectorText(e.nodeName,"text-decoration-line")||r["text-decoration-line"]||"";c&&(a+=`text-decoration:${c};`);continue}let l="";e.classList.forEach(u=>{l=this._getStyleBySelectorText(`.${u}`,s)}),l=i.getPropertyValue(s)||this._getStyleBySelectorText(`#${e.id}`,s)||l||this._getStyleBySelectorText(e.nodeName.toLowerCase(),s)||r[s]||"",l&&(a+=`${s}:${l};`)}return a}_parseTable(e,n){var r,i;const a=new Ct,o=(r=h$e(e))!=null?r:[],{rowProperties:s=[]}=d$e(e),l=this._parseTableByHtml(this._dom,n,(i=this._getCurrentSkeleton())==null?void 0:i.skeleton);return l&&l.forValue((u,c,d)=>{var h,f,m,g,p,v,_,C,S,b,y,A,w,P,M,L,k,O,$,B,V,X,z,F;let H=YS(void 0,d.style);if((g=(m=(f=(h=d==null?void 0:d.richTextParma)==null?void 0:h.p)==null?void 0:f.body)==null?void 0:m.textRuns)!=null&&g.length){const K=(v=(p=d==null?void 0:d.richTextParma)==null?void 0:p.v)==null?void 0:v.length;for(let G=0;G<((b=(S=(C=(_=d==null?void 0:d.richTextParma)==null?void 0:_.p)==null?void 0:C.body)==null?void 0:S.textRuns)==null?void 0:b.length);G++){const te=(w=(A=(y=d==null?void 0:d.richTextParma)==null?void 0:y.p)==null?void 0:A.body)==null?void 0:w.textRuns[G];te.st===0&&te.ed===K&&(H={...te.ts,...H},(L=(M=(P=d==null?void 0:d.richTextParma)==null?void 0:P.p)==null?void 0:M.body)==null||L.textRuns.splice(G,1),G--)}((B=($=(O=(k=d==null?void 0:d.richTextParma)==null?void 0:k.p)==null?void 0:O.body)==null?void 0:$.textRuns)==null?void 0:B.length)===0&&(d.content=(V=d==null?void 0:d.richTextParma)==null?void 0:V.v,delete d.richTextParma)}const W=(F=(z=(X=d==null?void 0:d.richTextParma)==null?void 0:X.p)==null?void 0:z.body)!=null&&F.textRuns?{v:d.richTextParma.v,p:d.richTextParma.p,s:H,rowSpan:d.rowSpan,colSpan:d.colSpan}:{v:d.content,s:H,rowSpan:d.rowSpan,colSpan:d.colSpan};a.setValue(u,c,W)}),{rowProperties:s,colProperties:o,cellMatrix:a}}_parseTableByHtml(e,n,r){var i,a;const o=new Ct,s=e.querySelectorAll("table")[n];if(!s)return o;const l=this._getStyle(s,""),u=s==null?void 0:s.querySelectorAll("tr");for(let c=0;c<u.length;c++){const d=u[c],h=this._getStyle(d,l),f=d.querySelectorAll("td, th");let m=0;for(let g=0;g<f.length;){const p=f[g];let v="";const _=Number(p.getAttribute("rowSpan"))||1,C=Number(p.getAttribute("colSpan"))||1;if(v=this._getStyle(p,h),c>0){const A=o.getValue(c-1,m);if((i=A==null?void 0:A.style)!=null&&i.includes("border-bottom")&&v.includes("border-top")){const w=AY(A.style,"border-bottom");w&&n4(w.substr(w.indexOf(":")+1))!=="none"&&(v=v.replace(/border-top:[^;]+;/,""))}}if(g>0){const A=o.getValue(c,m-1);if((a=A==null?void 0:A.style)!=null&&a.includes("border-right")&&v.includes("border-left")){const w=AY(A.style,"border-right");w&&n4(w.substr(w.indexOf(":")+1))!=="none"&&(v=v.replace(/border-left:[^;]+;/,""))}}const{cellText:S,cellRichStyle:b}=this._getCellTextAndRichText(p,v,r),y={rowSpan:_,colSpan:C,content:S,style:v,richTextParma:{p:b,v:S}};if(o.getValue(c,m)){m+=1;continue}else _>1||C>1?m$e(o,v,y,{colSpan:C,rowSpan:_,rowIndex:c,colSetValueIndex:m}):o.setValue(c,m,y),m+=C,g++}}return o}_parseCellHtml(e,n,r,i=new Map,a){var o;for(const s of n)if(s.nodeType===Node.TEXT_NODE){const l=(o=s.nodeValue)==null?void 0:o.replace(/[\r\n]/g,"");let u;e&&i.has(e)&&(u=i.get(e)),r.dataStream+=l,u&&Object.getOwnPropertyNames(u).length&&r.textRuns.push({st:r.dataStream.length-l.length,ed:r.dataStream.length,ts:u})}else{if(s.nodeType===Node.COMMENT_NODE||s.nodeName==="STYLE")continue;if(s.nodeType===Node.ELEMENT_NODE){const l=this._getStyle(s,a),u=e?i.get(e):{},c=RY(l),d=nC(s,c);i.set(s,{...u,...d});const{childNodes:h}=s;this._parseCellHtml(s,h,r,i,l)}}}_getCellTextAndRichText(e,n,r){var i;let a="",o;if(/<[^>]+>/.test(e.innerHTML)&&r){const s={dataStream:"",textRuns:[]};this._parseCellHtml(null,e.childNodes,s,void 0,n);const l=(i=r.getBlankCellDocumentModel())==null?void 0:i.documentModel,u=l==null?void 0:l.getSnapshot(),c=`${s.dataStream}\r |
|
|
`,d={...u,body:{dataStream:c,textRuns:s.textRuns,paragraphs:tA(c)}};l==null||l.reset(d),o=l==null?void 0:l.getSnapshot(),a=s.dataStream}else a=f$e(e.innerHTML.replace(/[\r\n]/g,""));return{cellText:a,cellRichStyle:o}}_generateDocumentDataModelSnapshot(e){var n;const r=this._getCurrentSkeleton();if(r==null)return null;const{skeleton:i}=r,a=(n=i.getBlankCellDocumentModel())==null?void 0:n.documentModel,o={...a==null?void 0:a.getSnapshot(),...e};return a==null||a.reset(o),a==null?void 0:a.getSnapshot()}process(e,n,r,i){var a,o,s;for(const l of n)if(l.nodeName.toLowerCase()==="table")i.push({index:((a=r==null?void 0:r.paragraphs)==null?void 0:a.length)||0});else if(l.nodeType===Node.TEXT_NODE){if(((o=l.nodeValue)==null?void 0:o.trim())==="")continue;const u=(s=l.nodeValue)==null?void 0:s.replace(/[\r\n]/g,"");let c;e&&this._styleCache.has(e)&&(c=this._styleCache.get(e));const d={dataStream:"",textRuns:[]};r.dataStream+=u,d.dataStream+=u,c&&Object.getOwnPropertyNames(c).length&&(r.textRuns.push({st:r.dataStream.length-u.length,ed:r.dataStream.length,ts:c}),d.textRuns.push({st:r.dataStream.length-u.length,ed:r.dataStream.length,ts:c}))}else{if(She.includes(l.nodeName.toLowerCase()))continue;if(l.nodeType===Node.ELEMENT_NODE){if(l.nodeName==="STYLE")continue;const u=l,c=this._processBeforeLink(u,{body:r}),d=e?this._styleCache.get(e):{},h=this._styleRules.find(({filter:p})=>yY(l,p)),f=h?h.getStyle(l):nC(l);this._styleCache.set(l,{...d,...f});const{childNodes:m}=l;this.process(l,m,r,i);const g=this._afterProcessRules.find(({filter:p})=>yY(l,p));g&&g.handler(r,l),this._processAfterLink(u,{body:r},c)}}}_processBeforeLink(e,n){const r=n.body,i=e,a=r.dataStream.length;return i.tagName.toUpperCase()==="A"&&(r.dataStream+=wt.CUSTOM_RANGE_START),a}_processAfterLink(e,n,r){var i,a;const o=n.body,s=e;s.tagName.toUpperCase()==="A"&&(o.dataStream+=wt.CUSTOM_RANGE_END,o.customRanges=(i=o.customRanges)!=null?i:[],o.customRanges.push({startIndex:r,endIndex:o.dataStream.length-1,rangeId:(a=s.dataset.rangeid)!=null?a:Vl(),rangeType:cd.HYPERLINK,properties:{url:s.href}}))}dispose(){this._dom=null,this._styleCache.clear(),this._styleMap.clear()}};N(EY,"HtmlToUSMService"),fe(EY,"_pluginList",[]);let Gx=EY;function d$e(t){const e=/<tr([\s\S]*?)>([\s\S]*?)<\/tr>/gi,n=t.matchAll(e);if(!n)return{rowProperties:[],rowCount:0};const r=Array.from(n).map(i=>Ere(i[1])).map(i=>{if(!i.height){const a=i.style,o=a&&a.match(/height\s*:\s*(\d+(\.\d+)?)px/);i.height=`${o?Number.parseInt(o[1],10):uw}`}return i});return{rowProperties:r,rowCount:r.length}}N(d$e,"parseTableRows");function RY(t){const e={};return t.split(";").forEach(n=>{const[r,i]=n.split(":");e[r]=i}),e}N(RY,"turnToStyleObject");function Ere(t){if(!t)return{};const e={},n=/([\w-]+)\s*=\s*(?:(['"])([^'"]*)\2|(\S+))/g;let r;for(;(r=n.exec(t))!==null;){const[,i,,a,o]=r,s=a!==void 0?a:o;e[i]=s}return e}N(Ere,"parseProperties");function h$e(t){const e=/<colgroup([\s\S]*?)>(.*?)<\/colgroup>/,n=t.match(e),r=/<col([\s\S]*?)>/g;let i;if(n!=null&&n[2]?i=n[2].matchAll(r):i=t.matchAll(r),!i)return null;const a=Array.from(i).map(s=>Ere(s[1])),o=[];return a.forEach(s=>{const l=Number(s.span);if(l)for(let u=0;u<l;u++){const c={...s};delete c.span,o.push(c)}else o.push(s)}),o}N(h$e,"parseColGroup");function f$e(t){const e={"<":"<",">":">","&":"&",""":'"',"'":"'"," ":" "};return t.replace(/<|>|&|"|'| |<br>/g,n=>e[n])}N(f$e,"decodeHTMLEntities");function AY(t,e){if(!t||!e)return null;const n=new RegExp(`(${e}\\s*:\\s*[^;]+);`,"i"),r=t.match(n);return r?r[1]:null}N(AY,"extractStyleProperty");function m$e(t,e,n,r){const{rowSpan:i,colSpan:a,rowIndex:o,colSetValueIndex:s}=r;for(let l=o;l<o+i;l++)for(let u=s;u<s+a;u++)l===o&&u===s?t.setValue(l,u,{...n,style:e}):t.setValue(l,u,{style:e})}N(m$e,"setMergedCellStyle");const ZGt={name:"univer-doc-paste-plugin-lark",checkPasteType(t){return/lark-record-clipboard/i.test(t)},stylesRules:[{filter:["s"],getStyle(t){const e=nC(t);return{st:{s:at.TRUE},...e}}}],afterProcessRules:[{filter(t){return t.tagName==="DIV"&&/ace-line/i.test(t.className)},handler(t){t.paragraphs==null&&(t.paragraphs=[]),t.paragraphs.push({startIndex:t.dataStream.length}),t.dataStream+="\r"}}]},JGt={name:"univer-doc-paste-plugin-univer",checkPasteType(t){return/UniverNormal/i.test(t)},stylesRules:[],afterProcessRules:[{filter(t){return t.tagName==="P"&&/UniverNormal/i.test(t.className)},handler(t,e){t.paragraphs==null&&(t.paragraphs=[]);const n={startIndex:t.dataStream.length},r=yre(e);r&&(n.paragraphStyle=r),t.paragraphs.push(n),t.dataStream+="\r"}}]},eQt={name:"univer-doc-paste-plugin-word",checkPasteType(t){return/word|mso/i.test(t)},stylesRules:[{filter:["b"],getStyle(t){const e=nC(t);return{bl:at.TRUE,...e}}}],afterProcessRules:[{filter(t){return t.tagName==="P"&&/mso/i.test(t.className)},handler(t,e){t.paragraphs==null&&(t.paragraphs=[]);const n={startIndex:t.dataStream.length},r=yre(e);r&&(n.paragraphStyle=r),t.paragraphs.push(n),t.dataStream+="\r"}}]};var $d=(t=>(t.COPY="COPY",t.CUT="CUT",t))($d||{});function g$e(t,e,n,r,i){const a=n.map(u=>{var c;return(c=u.onCopyRow)==null?void 0:c.call(u,t)}).filter(u=>!!u),o=Qx(a),s=Kx(o),l=e.map(u=>{if(!i.has(`${t}-${u}`)){const c=r.getValue(t,u);if(c!=null&&c.rowSpan&&c!=null&&c.colSpan)for(let d=t;d<t+c.rowSpan;d++)for(let h=u;h<u+c.colSpan;h++)i.add(`${d}-${h}`);return p$e(t,u,n,r)}return null}).filter(u=>!!u).join("");return`<tr${s}>${l}</tr>`}N(g$e,"getRowContent");function p$e(t,e,n,r){const i=r.getValue(t,e),a=n.map(u=>{var c;return(c=u.onCopyCellStyle)==null?void 0:c.call(u,t,e,i==null?void 0:i.rowSpan,i==null?void 0:i.colSpan)}).filter(u=>!!u),o=Qx(a),s=Kx(o),l=n.reduce((u,c)=>{var d;return u||((d=c.onCopyCellContent)==null?void 0:d.call(c,t,e))||""},"");return`<td${s}>${l}</td>`}N(p$e,"getTDContent");function v$e(t,e){return`<colgroup>${t.map(n=>{const r=e.map(a=>{var o;return(o=a.onCopyColumn)==null?void 0:o.call(a,n)}).filter(a=>!!a),i=Qx(r);return`<col ${Kx(i)}>`}).join("")}</colgroup>`}N(v$e,"getColStyle");function Qx(t){return t.reduce((e,n)=>(Object.keys(n).forEach(r=>{e[r]?e[r]+=`;${n[r]}`:e[r]=n[r]}),e),{})}N(Qx,"mergeProperties");function Kx(t){return Object.keys(t).reduce((e,n)=>(e+=` ${n}="${t[n]}"`,e),"")}N(Kx,"zipClipboardPropertyItemToString");const _$e=class{convert(e,n,r){const{cols:i,rows:a}=n;if(!i.length)return"";const o=v$e(i,r),s=[],l=new Set;return a.forEach(u=>{s.push(g$e(u,i,r,e,l))}),`<google-sheets-html-origin><table xmlns="http://www.w3.org/1999/xhtml" cellspacing="0" cellpadding="0" dir="ltr" style="table-layout:fixed;font-size:10pt;font-family:Arial;width:0px;border-collapse:collapse;border:none">${o} |
|
|
<tbody>${s.join("")}</tbody></table>`}};N(_$e,"USMToHtmlService");let tQt=_$e;const sue=N((t,e,n=!1)=>{const r=N(d=>d.endRow-d.startRow+1,"getRowLength"),i=N(d=>d.endColumn-d.startColumn+1,"getColLength"),a=r(e)%r(t),o=i(e)%i(t),s={startRow:0,endRow:r(t)-1,startColumn:0,endColumn:i(t)-1},l=Math.floor(r(e)/r(t)),u=Math.floor(i(e)/i(t)),c=[];if(!a&&!o)for(let d=1;d<=l;d++)for(let h=1;h<=u;h++){const f=r(t)*(d-1),m=i(t)*(h-1),g={startRow:f+e.startRow,endRow:f+e.startRow,startColumn:m+e.startColumn,endColumn:m+e.startColumn};c.push({repeatRelativeRange:s,startRange:g})}else if(!a&&o&&!n)for(let d=1;d<=l;d++){const h=r(t)*(d-1),f=0,m={startRow:h+e.startRow,endRow:h+e.startRow,startColumn:f+e.startColumn,endColumn:f+e.startColumn};c.push({repeatRelativeRange:s,startRange:m})}else if(a&&!o&&!n)for(let d=1;d<=u;d++){const h=i(t)*(d-1),f={startRow:0+e.startRow,endRow:0+e.startRow,startColumn:h+e.startColumn,endColumn:h+e.startColumn};c.push({repeatRelativeRange:s,startRange:f})}else{const d={startRow:e.startRow,endRow:e.startRow,startColumn:e.startColumn,endColumn:e.startColumn};c.push({startRange:d,repeatRelativeRange:s})}return c},"getRepeatRange");async function C$e(t){return t?/<td[^>]*class=".*?xl.*?"[^>]*>.*?<\/td>/.test(t):!1}N(C$e,"clipboardItemIsFromExcel");function S$e(...t){if(t.length===1)return t[0];const e=new Ct;return t.forEach(n=>{n&&new Ct(n).forValue((r,i,a)=>{e.setValue(r,i,{...e.getValue(r,i),...a})})}),e.getMatrix()}N(S$e,"mergeCellValues");function b$e(t,e){return t.id===e.id&&t.params.unitId===e.params.unitId&&t.params.subUnitId===e.params.subUnitId}N(b$e,"getRangeValuesMergeable");function wY(t){const e=[];for(let n=0;n<t.length;){let r=1;if(t[n].id===Mn.id){const i=t[n],a=[i];for(;n+r<t.length&&b$e(i,t[n+r]);)a.push(t[n+r]),r+=1;const o=S$e(...a.map(s=>s.params.cellValue||{}));e.push({...i,params:{...i.params,cellValue:o}})}else e.push(t[n]);n+=r}return e}N(wY,"mergeSetRangeValues");function nA(t,e){const{startRow:n,endRow:r,startColumn:i,endColumn:a}=t;for(let o=n;o<=r;o++)for(let s=i;s<=a;s++)if(e.rows.includes(o)&&e.cols.includes(s))return!0}N(nA,"rangeIntersectWithDiscreteRange");function DY(t,e){const{startRow:n,endRow:r,startColumn:i,endColumn:a}=e;for(let o=n;o<=r;o++)if(!t.rows.includes(o))return!1;for(let o=i;o<=a;o++)if(!t.cols.includes(o))return!1;return!0}N(DY,"discreteRangeContainsRange");function y$e(t){const e=t.trim().split(` |
|
|
`);let n="<table>";return e.forEach(r=>{const i=r.split(" ");n+="<tr>",i.forEach(a=>{n+=`<td>${a}</td>`}),n+="</tr>"}),n+="</table>",n}N(y$e,"convertTextToTable");var nQt=Object.defineProperty,rQt=Object.getOwnPropertyDescriptor,iQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?rQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&nQt(e,n,i),i},"__decorateClass$F"),iu=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$F");const ka={DEFAULT_COPY:"default-copy",DEFAULT_PASTE:"default-paste",SPECIAL_PASTE_VALUE:"special-paste-value",SPECIAL_PASTE_FORMAT:"special-paste-format",SPECIAL_PASTE_COL_WIDTH:"special-paste-col-width",SPECIAL_PASTE_BESIDES_BORDER:"special-paste-besides-border",SPECIAL_PASTE_FORMULA:"special-paste-formula"};Gx.use(eQt);Gx.use(ZGt);Gx.use(JGt);const Eh=er("sheet.clipboard-service");var wV;let fP=(wV=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c,d,h,f){super(),fe(this,"_clipboardHooks",[]),fe(this,"_clipboardHooks$",new Pn([])),fe(this,"clipboardHooks$",this._clipboardHooks$.asObservable()),fe(this,"_htmlToUSM"),fe(this,"_usmToHtml"),fe(this,"_copyContentCache"),fe(this,"_copyMarkId",null),this._logService=t,this._univerInstanceService=e,this._selectionManagerService=n,this._clipboardInterfaceService=r,this._undoRedoService=i,this._commandService=a,this._markSelectionService=o,this._notificationService=s,this._platformService=l,this._renderManagerService=u,this._themeService=c,this._localeService=d,this._errorService=h,this._injector=f,this._htmlToUSM=new Gx({getCurrentSkeleton:N(()=>{var m;return(m=this._renderManagerService.withCurrentTypeOfUnit(le.UNIVER_SHEET,Gr))==null?void 0:m.getCurrent()},"getCurrentSkeleton")}),this._usmToHtml=new tQt,this._copyContentCache=new KGt,this.disposeWithMe(this._htmlToUSM)}copyContentCache(){return this._copyContentCache}generateCopyContent(t,e,n){const r=this._clipboardHooks;r.forEach(a=>{var o;return(o=a.onBeforeCopy)==null?void 0:o.call(a,t,e,n)});const i=this._generateCopyContent(t,e,n,r);return r.forEach(a=>{var o;return(o=a.onAfterCopy)==null?void 0:o.call(a)}),i}async copy(t=$d.COPY){const e=this._selectionManagerService.getCurrentLastSelection();if(!e)return!1;const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),r=n.getActiveSheet();if(!r)return!1;const i=this.generateCopyContent(n.getUnitId(),r.getSheetId(),e.range);if(!i)return!1;const{html:a,plain:o,matrixFragment:s,copyId:l,discreteRange:u}=i;this._copyContentCache.set(l,{unitId:n.getUnitId(),subUnitId:r.getSheetId(),range:u,matrix:s,copyType:t}),await this._clipboardInterfaceService.write(o,a),this._markSelectionService.removeAllShapes();const c=tre(this._themeService);return this._copyMarkId=this._markSelectionService.addShape({...e,style:c}),!0}async cut(){return this.copy($d.CUT)}async paste(t,e=ka.DEFAULT_PASTE){const n=t.types,r=n.indexOf(O_)!==-1?await t.getType(O_).then(a=>a&&a.text()):"",i=n.indexOf(N_)!==-1?await t.getType(N_).then(a=>a&&a.text()):"";return i?this._platformService.isWindows&&await C$e(i)?(this._notificationService.show({type:"warning",title:this._localeService.t("clipboard.shortCutNotify.title"),content:this._localeService.t("clipboard.shortCutNotify.useShortCutInstead")}),!1):this._pasteHTML(i,e):r?this._pastePlainText(r,e):(this._logService.error("[SheetClipboardService]","No valid data on clipboard"),!1)}legacyPaste(t,e){return t?this._pasteHTML(t,ka.DEFAULT_PASTE):e?/[\n\t]/.test(e)?this._pasteHTML(y$e(e),ka.DEFAULT_PASTE):this._pastePlainText(e,ka.DEFAULT_PASTE):Promise.resolve(!1)}addClipboardHook(t){if(this._clipboardHooks.findIndex(n=>n.id===t.id)!==-1)return this._logService.error("[SheetClipboardService]","hook already exists",t.id),{dispose:N(()=>{},"dispose")};const e=this._clipboardHooks.findIndex(n=>{const r=n.priority||0;return(t.priority||0)<r});return this._clipboardHooks.splice(e!==-1?e:this._clipboardHooks.length,0,t),this._notifyClipboardHook(),$t(()=>{const n=this._clipboardHooks.indexOf(t);n>-1&&(this._clipboardHooks.splice(n,1),this._notifyClipboardHook())})}getClipboardHooks(){return this._clipboardHooks}_generateCopyContent(t,e,n,r){const i=this._univerInstanceService.getUniverSheetInstance(t),a=i==null?void 0:i.getSheetBySheetId(e);if(!i||!a)return null;const o=r.reduce((_,C)=>{var S;const b=(S=C.getFilteredOutRows)==null?void 0:S.call(C,n);return b==null||b.forEach(y=>_.add(y)),_},new Set),{startColumn:s,startRow:l,endColumn:u,endRow:c}=n,d=a.getMatrixWithMergedCells(l,s,c,u,!0),h=new Ct;let f=l;const m={rows:[],cols:[]};for(let _=l;_<=c;_++)if(!o.has(_)){m.rows.push(_);for(let C=s;C<=u;C++){const S=d.getValue(_,C);S?h.setValue(f-l,C-s,{...rA(),...Ie.deepClone(S)}):(h.setValue(f-l,C-s,rA()),d.setValue(_,C,rA()))}f+=1}for(let _=s;_<=u;_++)m.cols.push(_);let g=this._usmToHtml.convert(d,m,r);const p=E$e(h),v=a$e();return g=g.replace(/(<[a-z]+)/,(_,C)=>`${C} data-copy-id="${v}"`),{copyId:v,plain:p,html:g,matrixFragment:h,discreteRange:m}}_notifyClipboardHook(){this._clipboardHooks$.next(this._clipboardHooks)}async _pastePlainText(t,e){const n=this._getPastingTarget();if(!n.subUnitId||!n.selection)return!1;const r=this._injector.invoke(d=>Bg(n.selection.range,d,n.unitId,n.subUnitId));if(!r)return!1;const{unitId:i,subUnitId:a}=n,o=this._clipboardHooks,s=[];if(o.some(d=>{var h;return s.push(d)&&((h=d.onBeforePaste)==null?void 0:h.call(d,{unitId:i,subUnitId:a,range:r}))===!1}))return s.forEach(d=>{var h;return(h=d.onAfterPaste)==null?void 0:h.call(d,!1)}),!1;const l=[],u=[];s.forEach(d=>{var h;const f=(h=d.onPastePlainText)==null?void 0:h.call(d,{unitId:i,subUnitId:a,range:r},t,{pasteType:e});f&&(l.push(...f.redos),u.push(...f.undos))});const c=l.every(d=>this._commandService.executeCommand(d.id,d.params));return c&&this._undoRedoService.pushUndoRedo({unitID:this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId(),undoMutations:u,redoMutations:l}),c}async _pasteHTML(t,e){const n=o$e(t);return n&&this._copyContentCache.get(n)?this._pasteInternal(n,e):this._pasteExternal(t,e)}async _pasteExternal(t,e){var n;const{rowProperties:r,colProperties:i,cellMatrix:a}=this._htmlToUSM.convert(t);if(!a)return!1;const o=this._getPastedRange(a);if(!o)return!1;const s=(n=this._univerInstanceService.getUniverSheetInstance(o.unitId))==null?void 0:n.getSheetBySheetId(o.subUnitId);if(!s)return!1;const l=s==null?void 0:s.getMergeData();return l.length&&l.some(u=>nA(u,o.pastedRange)&&!DY(o.pastedRange,u))?(this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")),!1):this._pasteUSM({rowProperties:r,colProperties:i,cellMatrix:a},o,e)}async _pasteInternal(t,e){var n,r;const i=Ie.deepClone(this._copyContentCache.get(t)),{range:a,matrix:o,unitId:s,subUnitId:l}=i||{};if(!o||!i||!a||!s||!l||!o||!i)return!1;const u=(n=this._univerInstanceService.getUniverSheetInstance(s))==null?void 0:n.getStyles();o.forValue((y,A,w)=>{if(typeof w.s=="string"){const P=Ie.deepClone(w);P.s=u==null?void 0:u.getStyleByCell(w),o.setValue(y,A,P)}if(w.colSpan||w.rowSpan)for(let P=0;P<w.rowSpan;P++)for(let M=0;M<w.colSpan;M++){if(P===0&&M===0)continue;const L=y+P,k=A+M;o.setValue(L,k,{s:u==null?void 0:u.getStyleByCell(w)})}});const c=this._getPastedRange(o);if(!c)return!1;const d=(r=this._univerInstanceService.getUniverSheetInstance(c.unitId))==null?void 0:r.getSheetBySheetId(c.subUnitId);if(!d)return!1;const h=d==null?void 0:d.getMergeData();if(h&&h.some(y=>nA(y,c.pastedRange)&&!DY(c.pastedRange,y)))return this._errorService.emit(this._localeService.t("clipboard.paste.overlappingMergedCells")),!1;const f=this._univerInstanceService.getUnit(s);if(!f)return!1;const m=f.getSheetBySheetId(l);if(!m)return!1;const g=m.getColumnManager(),p=m.getRowManager(),v=m.getConfig().defaultColumnWidth,_=m.getConfig().defaultRowHeight,C=[],S=[];if(a.cols.forEach(y=>{const A=g.getColumnOrCreate(y);C.push({width:`${A.w||v}`})}),a.rows.forEach(y=>{const A=p.getRowOrCreate(y),{ah:w=_,h:P=_}=A,M=Math.max(w,P);S.push({height:`${M}`})}),i.copyType===$d.CUT){const y=c.pastedRange.rows[0],A=a.rows[a.rows.length-1]-a.rows[0]+y;c.pastedRange.rows=Array.from(new Array(A+1).keys()).slice(y)}const b=this._pasteUSM({cellMatrix:o,colProperties:C,rowProperties:S},c,e,{range:a,unitId:i.unitId,subUnitId:i.subUnitId,copyType:i.copyType,copyId:t});return i.copyType===$d.CUT&&(this._copyContentCache.set(t,{...i,matrix:null}),this._copyMarkId&&this._markSelectionService.removeShape(this._copyMarkId),this._copyMarkId=null),b}_pasteUSM(t,e,n,r){const{rowProperties:i,colProperties:a,cellMatrix:o}=t,{unitId:s,subUnitId:l,pastedRange:u}=e,c=u.cols.length,d=this._clipboardHooks,h=[];if(d.some(C=>{var S;return h.push(C)&&((S=C.onBeforePaste)==null?void 0:S.call(C,{unitId:s,subUnitId:l,range:u}))===!1}))return h.forEach(C=>{var S;return(S=C.onAfterPaste)==null?void 0:S.call(C,!1)}),!1;if(!o)return!1;const f=r?{unitId:r.unitId,subUnitId:r.subUnitId,range:r.range}:null,m={copyType:(r==null?void 0:r.copyType)||$d.COPY,copyId:r==null?void 0:r.copyId,pasteType:n};let g=[],p=[];h.filter(C=>!C.specialPasteInfo&&C.id!==ka.DEFAULT_PASTE||n===C.id).forEach(C=>{var S,b,y;if(i){const P=(S=C.onPasteRows)==null?void 0:S.call(C,{range:u,unitId:s,subUnitId:l},i,{pasteType:n});P&&(g.push(...P.redos),p.push(...P.undos))}const A=(b=C.onPasteColumns)==null?void 0:b.call(C,{range:u,unitId:s,subUnitId:l},a||new Array(c).map(()=>({})),{pasteType:n});A&&(g.push(...A.redos),p.push(...A.undos));const w=(y=C.onPasteCells)==null?void 0:y.call(C,f,{range:u,unitId:s,subUnitId:l},o,m);w&&(g.push(...w.redos),p.push(...w.undos))});const v=this._getSetSelectionOperation(s,l,u,o);v&&g.push(v),g=wY(g),p=wY(p),this._logService.log("[SheetClipboardService]","pasting mutations",{undoMutationsInfo:p,redoMutationsInfo:g});const _=g.every(C=>this._commandService.syncExecuteCommand(C.id,C.params));return _&&this._undoRedoService.pushUndoRedo({unitID:s,undoMutations:p,redoMutations:g}),_}_getSetSelectionOperation(t,e,n,r){var i;const a=(i=this._univerInstanceService.getUniverSheetInstance(t))==null?void 0:i.getSheetBySheetId(e);if(!a)return null;const{rows:o,cols:s}=n,l=o[0],u=s[0],c=o[o.length-1],d=s[s.length-1],h=tl({startRow:l,startColumn:u},a),f=r.getValue(0,0),m=(f==null?void 0:f.rowSpan)||1,g=(f==null?void 0:f.colSpan)||1;if(m>1||g>1){const v={startRow:l,endRow:l+m-1,startColumn:u,endColumn:u+g-1};h.startRow=v.startRow,h.endRow=v.endRow,h.startColumn=v.startColumn,h.endColumn=v.endColumn,h.isMerged=!0,h.isMergedMainCell=!0}const p={unitId:t,subUnitId:e,selections:[{range:{startRow:l,endRow:c,startColumn:u,endColumn:d},primary:h,style:null}]};return{id:Pr.id,params:p}}_getPastingTarget(){const t=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),e=t.getActiveSheet(),n=this._selectionManagerService.getCurrentLastSelection();return{unitId:t.getUnitId(),subUnitId:e==null?void 0:e.getSheetId(),selection:n}}_transformPastedData(t,e,n){const r=this._getPastingTarget(),{selection:i,unitId:a,subUnitId:o}=r;if(!o||!i)return null;const s=this._injector.invoke(w=>Bg(i.range,w,a,o));if(!s)return null;const{ranges:[l],mapFunc:u}=Bf([s]),{startRow:c,startColumn:d,endRow:h,endColumn:f}=l,m=h-c+1,g=f-d+1,p=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),v=p==null?void 0:p.getActiveSheet();if(!v)return null;const _=v.getMergeData().filter(w=>s.rows.includes(w.startRow)&&s.cols.includes(w.startColumn)),C=_[0];let S=0,b=0,y=0,A=0;if(C&&(S=C.startRow,b=C.startColumn,y=C.endRow,A=C.endColumn),m%t===0&&g%e===0)if(_.length>0&&(m!==t||g!==e))if(S===s.rows[0]&&b===s.cols[0]&&y===s.rows[m-1]&&A===s.cols[g-1])if(D$e(n))for(let w=0;w<m;w++)for(let P=0;P<g;P++){const M=n.getValue(w%t,P%e);M&&n.setValue(w,P,M)}else n.forValue((w,P,M)=>{M.s=null,delete M.colSpan,delete M.rowSpan});else for(let w=0;w<m;w++)for(let P=0;P<g;P++){const M=n.getValue(w%t,P%e);M&&n.setValue(w,P,M)}else for(let w=0;w<m;w++)for(let P=0;P<g;P++){const M=n.getValue(w%t,P%e);M&&n.setValue(w,P,M)}else if(_.length>0){const{row:w,col:P}=u(c,d);if(this._topLeftCellsMatch(t,e,{topRow:w,leftCol:P})){const M=this._expandOrShrinkRowsCols(a,o,s,e,t);s.rows=M.rows,s.cols=M.cols}else{if(h>C.endRow||f>C.endColumn)return null;n.forValue((M,L,k)=>{k.s=null,delete k.colSpan,delete k.rowSpan})}}else{const w=this._expandOrShrinkRowsCols(a,o,s,e,t);s.rows=w.rows,s.cols=w.cols}return{pastedRange:s,unitId:a,subUnitId:o}}_getPastedRange(t){var e;const n=this._getPastingTarget(),{selection:r,unitId:i,subUnitId:a}=n;if(!a||!r)return null;const o=this._injector.invoke(_=>Bg(r.range,_,i,a));if(!o)return null;const{startColumn:s,endColumn:l,startRow:u,endRow:c}=t.getDataRange(),d=c-u+1,h=l-s+1;if(d<=0||h<=0)return null;const f=o.rows.length,m=o.cols.length,g=(e=this._univerInstanceService.getUniverSheetInstance(i))==null?void 0:e.getSheetBySheetId(a);if(!g)return null;const p=g==null?void 0:g.getMergeData();if(f%d===0&&m%h===0&&!(p!=null&&p.some(_=>nA(_,o)))){for(let _=0;_<f;_++)for(let C=0;C<m;C++){const S=t.getValue(_%d,C%h);S&&t.setValue(_,C,S)}return{pastedRange:o,unitId:i,subUnitId:a}}const v=this._expandOrShrinkRowsCols(i,a,o,h,d);return o.rows=v.rows,o.cols=v.cols,{pastedRange:o,unitId:i,subUnitId:a}}_expandOrShrinkRowsCols(t,e,n,r,i){const{rows:a,cols:o}=n,s=this._univerInstanceService.getUniverSheetInstance(t),l=s==null?void 0:s.getSheetBySheetId(e);let u,c;if(a.length>=i)u=a.slice(0,i);else{u=a.slice(0);let d=a[a.length-1]+1;for(;u.length<i;)l.getRowFiltered(d)||u.push(d),d++}if(o.length>=r)c=o.slice(0,r);else{c=o.slice(0);let d=o[o.length-1]+1;for(;c.length<r;)c.push(d),d++}return{rows:u,cols:c}}_topLeftCellsMatch(t,e,n){const r=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),i=r==null?void 0:r.getActiveSheet();if(!i)return!1;const{topRow:a,leftCol:o}=n,s=A$e(a+t-1,o,o+e-1,i),l=w$e(o+e-1,a,a+t-1,i);return!s&&!l}},N(wV,"SheetClipboardService"),wV);fP=iQt([iu(0,Ra),iu(1,Ce),iu(2,se(Bt)),iu(3,dh),iu(4,xn),iu(5,me),iu(6,l3),iu(7,qS),iu(8,_L),iu(9,Sr),iu(10,se(Ja)),iu(11,se(sn)),iu(12,se(zf)),iu(13,se(Wn))],fP);function E$e(t){let e="";const n=t.getLength();return t.forRow((r,i)=>{const a=[];i.forEach(o=>{const s=t.getValue(r,o);if(s){const l=R$e(s);a.push(l)}}),e+=a.join(" "),r!==n-1&&(e+=` |
|
|
`)}),e}N(E$e,"getMatrixPlainText");function R$e(t){return rM(t)}N(R$e,"getCellTextForClipboard");function A$e(t,e,n,r){return r.getMergeData().some(i=>i.startRow<=t&&t<i.endRow&&e<=i.startColumn&&i.startColumn<=n)}N(A$e,"rowAcrossMergedCell");function w$e(t,e,n,r){return r.getMergeData().some(i=>i.startColumn<=t&&t<i.endColumn&&e<=i.startRow&&i.startRow<=n)}N(w$e,"columnAcrossMergedCell");function D$e(t){let e=0;return t.forValue((n,r,i)=>{if(i&&e++,e>1)return!1}),e>1}N(D$e,"isMultipleCells");function rA(){return{p:null,v:null,s:null,f:null,si:null,t:null}}N(rA,"getEmptyCell");const Rre=998,ih={id:gL.id,name:"sheet.command.copy",type:Se.COMMAND,multi:!0,priority:Rre,preconditions:Xx,handler:N(async t=>t.get(Eh).copy(),"handler")},I$e={id:pL.id,name:"sheet.command.cut",type:Se.COMMAND,multi:!0,priority:Rre,preconditions:Xx,handler:N(async t=>t.get(Eh).cut(),"handler")},ud={id:vL.id,type:Se.COMMAND,multi:!0,name:"sheet.command.paste",priority:Rre,preconditions:Xx,handler:N(async(t,e)=>{const n=await t.get(dh).read(),r=t.get(Eh);return n.length!==0?r.paste(n[0],e==null?void 0:e.value):!1},"handler")},IY={id:"sheet.command.paste-bu-short-key",type:Se.COMMAND,handler:N(async(t,e)=>{const n=t.get(Eh),{htmlContent:r,textContent:i}=e;return n.legacyPaste(r,i),!0},"handler")},Y8={id:"sheet.command.paste-value",type:Se.COMMAND,handler:N(async t=>t.get(me).executeCommand(ud.id,{value:ka.SPECIAL_PASTE_VALUE}),"handler")},X8={id:"sheet.command.paste-format",type:Se.COMMAND,handler:N(async t=>t.get(me).executeCommand(ud.id,{value:ka.SPECIAL_PASTE_FORMAT}),"handler")},f4={id:"sheet.command.paste-col-width",type:Se.COMMAND,handler:N(async t=>t.get(me).executeCommand(ud.id,{value:ka.SPECIAL_PASTE_COL_WIDTH}),"handler")},G8={id:"sheet.command.paste-besides-border",type:Se.COMMAND,handler:N(async t=>t.get(me).executeCommand(ud.id,{value:ka.SPECIAL_PASTE_BESIDES_BORDER}),"handler")};function P$e(t){const e=t.get(sm);return{id:Sb.id,subId:nre.id,type:Tt.BUTTON,icon:"BrushSingle",title:"Format Painter",tooltip:"toolbar.formatPainter",activated$:new On(n=>{let r=!1;const i=e.status$.subscribe(a=>{r=a!==u1.OFF,n.next(r)});return n.next(r),()=>{i.unsubscribe()}}),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[W_,Tn],rangeTypes:[Bn]})}}N(P$e,"FormatPainterMenuItemFactory");function M$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(ui),i=t.get(Bt);return{id:m9.id,type:Tt.BUTTON,icon:"BoldSingle",title:"Set bold",tooltip:"toolbar.bold",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),activated$:Pl(n,!1,({worksheet:a})=>new On(o=>{var s;const l=e.onCommandExecuted(d=>{var h,f;const m=d.id;if(m===Mn.id||m===Pr.id||m===Ha.id){const g=(h=i.getCurrentLastSelection())==null?void 0:h.primary;let p=Bm.NORMAL;if(g!=null){const v=a.getRange(g.startRow,g.startColumn);p=v==null?void 0:v.getFontWeight()}o.next(p===Bm.BOLD)}if((m===jo.id||m===Mc.id)&&r.getContextValue(ha)&&r.getContextValue(ms)){const g=y9(t);if(g==null)return;const p=(f=g.ts)==null?void 0:f.bl;o.next(p===at.TRUE)}}),u=(s=i.getCurrentLastSelection())==null?void 0:s.primary;if(!a){o.next(!1);return}let c=Bm.NORMAL;if(u!=null){const d=a.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getFontWeight()}return o.next(c===Bm.BOLD),l.dispose})),hidden$:vn(t,le.UNIVER_SHEET)}}N(M$e,"BoldMenuItemFactory");function T$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=t.get(ui);return{id:g9.id,type:Tt.BUTTON,icon:"ItalicSingle",title:"Set italic",tooltip:"toolbar.italic",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),activated$:Pl(n,!1,({worksheet:a})=>new On(o=>{var s;const l=e.onCommandExecuted(d=>{var h,f;const m=d.id;if(m===Mn.id||m===Pr.id||m===Ha.id){const g=(h=r.getCurrentLastSelection())==null?void 0:h.primary;let p=Vm.NORMAL;if(g!=null){const v=a.getRange(g.startRow,g.startColumn);p=v==null?void 0:v.getFontStyle()}o.next(p===Vm.ITALIC)}if((m===jo.id||m===Mc.id)&&i.getContextValue(ha)&&i.getContextValue(ms)){const g=y9(t);if(g==null)return;const p=(f=g.ts)==null?void 0:f.it;o.next(p===at.TRUE)}}),u=(s=r.getCurrentLastSelection())==null?void 0:s.primary;let c=Vm.NORMAL;if(u!=null){const d=a.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getFontStyle()}return o.next(c===Vm.ITALIC),l.dispose})),hidden$:vn(t,le.UNIVER_SHEET)}}N(T$e,"ItalicMenuItemFactory");function L$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=t.get(ui);return{id:p9.id,type:Tt.BUTTON,icon:"UnderlineSingle",title:"Set underline",tooltip:"toolbar.underline",activated$:Pl(n,!1,({worksheet:a})=>new On(o=>{var s;const l=e.onCommandExecuted(d=>{var h,f;const m=d.id;if(m===Mn.id||m===Pr.id||m===Ha.id){const g=(h=r.getCurrentLastSelection())==null?void 0:h.primary;let p;if(g!=null){const v=a.getRange(g.startRow,g.startColumn);p=v==null?void 0:v.getUnderline()}o.next(!!(p&&p.s))}if((m===jo.id||m===Mc.id)&&i.getContextValue(ha)&&i.getContextValue(ms)){const g=y9(t);if(g==null)return;const p=(f=g.ts)==null?void 0:f.ul;o.next((p==null?void 0:p.s)===at.TRUE)}}),u=(s=r.getCurrentLastSelection())==null?void 0:s.primary;let c;if(u!=null){const d=a.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getUnderline()}return o.next(!!(c&&c.s)),l.dispose})),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(L$e,"UnderlineMenuItemFactory");function x$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=t.get(ui);return{id:v9.id,type:Tt.BUTTON,icon:"StrikethroughSingle",title:"Set strike through",tooltip:"toolbar.strikethrough",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),activated$:Pl(n,!1,({worksheet:a})=>new On(o=>{var s;const l=e.onCommandExecuted(d=>{var h,f;const m=d.id;if(m===Mn.id||m===Pr.id||m===Ha.id){const g=(h=r.getCurrentLastSelection())==null?void 0:h.primary;let p;if(g!=null){const v=a.getRange(g.startRow,g.startColumn);p=v==null?void 0:v.getStrikeThrough()}o.next(!!(p&&p.s))}if((m===jo.id||m===Mc.id)&&i.getContextValue(ha)&&i.getContextValue(ms)){const g=y9(t);if(g==null)return;const p=(f=g.ts)==null?void 0:f.st;o.next((p==null?void 0:p.s)===at.TRUE)}}),u=(s=r.getCurrentLastSelection())==null?void 0:s.primary;let c;if(u!=null){const d=a.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getStrikeThrough()}return o.next(!!(c&&c.s)),l.dispose})),hidden$:vn(t,le.UNIVER_SHEET)}}N(x$e,"StrikeThroughMenuItemFactory");function O$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=ba.ff;return{id:Mx.id,tooltip:"toolbar.font",type:Tt.SELECTOR,label:mre,selections:Zz.map(a=>({label:{name:gre,hoverable:!0},value:a.value})),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),value$:Pl(n,i,({worksheet:a})=>new On(o=>{var s;const l=e.onCommandExecuted(d=>{var h;const f=d.id;if(f!==Mn.id&&f!==Pr.id&&f!==Ha.id)return;const m=(h=r.getCurrentLastSelection())==null?void 0:h.primary;let g;if(m!=null){const p=a.getRange(m.startRow,m.startColumn);g=p==null?void 0:p.getFontFamily()}o.next(g??i)}),u=(s=r.getCurrentLastSelection())==null?void 0:s.primary;let c;if(u!=null){const d=a.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getFontFamily()}return o.next(c??i),l.dispose})),hidden$:vn(t,le.UNIVER_SHEET)}}N(O$e,"FontFamilySelectorMenuItemFactory");function N$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=t.get(ui),a=ba.fs,o=Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]});return{id:Px.id,type:Tt.SELECTOR,tooltip:"toolbar.fontSize",label:{name:pre,props:{min:1,max:400,disabled$:o}},selections:TOe,disabled$:o,value$:Pl(n,a,({worksheet:s})=>new On(l=>{var u;const c=e.onCommandExecuted(f=>{var m,g;const p=f.id;if(p===Mn.id||p===Pr.id||p===Ha.id){const v=(m=r.getCurrentLastSelection())==null?void 0:m.primary;let _;if(v!=null){const C=s.getRange(v.startRow,v.startColumn);_=C==null?void 0:C.getFontSize()}l.next(_??a)}if((p===jo.id||p===Mc.id)&&i.getContextValue(ha)&&i.getContextValue(ms)){const v=y9(t);if(v==null)return;const _=(g=v.ts)==null?void 0:g.fs;l.next(_??a)}}),d=(u=r.getCurrentLastSelection())==null?void 0:u.primary;let h;if(d!=null){const f=s.getRange(d.startRow,d.startColumn);h=f==null?void 0:f.getFontSize()}return l.next(h??a),c.dispose})),hidden$:vn(t,le.UNIVER_SHEET)}}N(N$e,"FontSizeSelectorMenuItemFactory");function k$e(t){return{id:Cne.id,type:Tt.BUTTON,title:"toolbar.resetColor",icon:"NoColor",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(k$e,"ResetTextColorMenuItemFactory");function F$e(t){const e=t.get(me),n=t.get(Ja);return{id:Z_.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:Tt.BUTTON_SELECTOR,selections:[{label:{name:bb,hoverable:!1}}],value$:new On(r=>{const i=n.getCurrentTheme().textColor,a=e.onCommandExecuted(o=>{if(o.id===Z_.id){const s=o.params.value;r.next(s??i)}});return r.next(i),a.dispose}),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(F$e,"TextColorSelectorMenuItemFactory");function V$e(t){return{id:Sne.id,type:Tt.BUTTON,title:"toolbar.resetColor",icon:"NoColor",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(V$e,"ResetBackgroundColorMenuItemFactory");function B$e(t){const e=t.get(me),n=t.get(Ja);return{id:z_.id,tooltip:"toolbar.fillColor.main",type:Tt.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:bb,hoverable:!1}}],value$:new On(r=>{const i=n.getCurrentTheme().primaryColor,a=e.onCommandExecuted(o=>{if(o.id===z_.id){const s=o.params.value;r.next(s??i)}});return r.next(i),a.dispose}),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(B$e,"BackgroundColorSelectorMenuItemFactory");const lue=[{label:"align.left",icon:"LeftJustifyingSingle",value:dr.LEFT},{label:"align.center",icon:"HorizontallySingle",value:dr.CENTER},{label:"align.right",icon:"RightJustifyingSingle",value:dr.RIGHT}];function U$e(t){const e=t.get(Ce),n=t.get(Bt),r=dr.LEFT;return{id:KI.id,icon:lue[0].icon,tooltip:"toolbar.horizontalAlignMode.main",type:Tt.SELECTOR,selections:lue,value$:Pl(e,r,({worksheet:i})=>new On(a=>{var o;const s=t.get(me).onCommandExecuted(c=>{var d;const h=c.id;if(h!==KI.id&&h!==Pr.id&&h!==Ha.id)return;const f=(d=n.getCurrentLastSelection())==null?void 0:d.primary;let m;if(f!=null){const g=i.getRange(f.startRow,f.startColumn);m=g==null?void 0:g.getHorizontalAlignment()}a.next(m??r)}),l=(o=n.getCurrentLastSelection())==null?void 0:o.primary;let u;if(l!=null){const c=i.getRange(l.startRow,l.startColumn);u=c==null?void 0:c.getHorizontalAlignment()}return a.next(u??r),s.dispose})),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(U$e,"HorizontalAlignMenuItemFactory");const uue=[{label:"align.top",icon:"AlignTopSingle",value:ea.TOP},{label:"align.middle",icon:"VerticalCenterSingle",value:ea.MIDDLE},{label:"align.bottom",icon:"AlignBottomSingle",value:ea.BOTTOM}];function H$e(t){const e=t.get(Ce),n=t.get(Bt),r=ea.BOTTOM;return{id:QI.id,icon:uue[2].icon,tooltip:"toolbar.verticalAlignMode.main",type:Tt.SELECTOR,selections:uue,value$:Pl(e,r,({worksheet:i})=>new On(a=>{var o;const s=t.get(me).onCommandExecuted(c=>{var d;const h=c.id;if(h!==QI.id&&h!==Pr.id&&h!==Ha.id)return;const f=(d=n.getCurrentLastSelection())==null?void 0:d.primary;let m;if(f!=null){const g=i.getRange(f.startRow,f.startColumn);m=g==null?void 0:g.getVerticalAlignment()}a.next(m??r)}),l=(o=n.getCurrentLastSelection())==null?void 0:o.primary;let u;if(l!=null){const c=i.getRange(l.startRow,l.startColumn);u=c==null?void 0:c.getVerticalAlignment()}return a.next(u??r),s.dispose})),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(H$e,"VerticalAlignMenuItemFactory");const cue=[{label:"textWrap.overflow",icon:"OverflowSingle",value:Li.OVERFLOW},{label:"textWrap.wrap",icon:"AutowrapSingle",value:Li.WRAP},{label:"textWrap.clip",icon:"TruncationSingle",value:Li.CLIP}];function j$e(t){const e=t.get(Bt),n=t.get(Ce),r=Li.OVERFLOW;return{id:ZI.id,tooltip:"toolbar.textWrapMode.main",icon:cue[0].icon,type:Tt.SELECTOR,selections:cue,value$:Pl(n,r,({worksheet:i})=>new On(a=>{var o;const s=t.get(me).onCommandExecuted(c=>{var d;const h=c.id;if(h!==ZI.id&&h!==Pr.id&&h!==Ha.id)return;const f=(d=e.getCurrentLastSelection())==null?void 0:d.primary;let m;if(f!=null){const g=i.getRange(f.startRow,f.startColumn);m=g==null?void 0:g.getWrapStrategy()}a.next(m??r)}),l=(o=e.getCurrentLastSelection())==null?void 0:o.primary;let u;if(l!=null){const c=i.getRange(l.startRow,l.startColumn);u=c==null?void 0:c.getWrapStrategy()}return a.next(u??r),s.dispose})),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N(j$e,"WrapTextMenuItemFactory");const due=[{label:"textRotate.none",icon:"NoRotationSingle",value:0},{label:"textRotate.angleUp",icon:"LeftRotationFortyFiveDegreesSingle",value:-45},{label:"textRotate.angleDown",icon:"RightRotationFortyFiveDegreesSingle",value:45},{label:"textRotate.vertical",icon:"VerticalTextSingle",value:"v"},{label:"textRotate.rotationUp",icon:"LeftRotationNinetyDegreesSingle",value:-90},{label:"textRotate.rotationDown",icon:"RightRotationNinetyDegreesSingle",value:90}];function $$e(t){const e=t.get(Bt),n=t.get(Ce),r=0;return{id:JI.id,tooltip:"toolbar.textRotateMode.main",icon:due[0].icon,type:Tt.SELECTOR,selections:due,value$:Pl(n,r,({worksheet:i})=>new On(a=>{var o,s;const l=t.get(me).onCommandExecuted(d=>{var h,f;const m=d.id;if(m!==JI.id&&m!==Pr.id&&m!==Ha.id)return;const g=(h=e.getCurrentLastSelection())==null?void 0:h.primary;let p;if(g!=null){const v=i.getRange(g.startRow,g.startColumn);p=v==null?void 0:v.getTextRotation()}(p==null?void 0:p.v)===at.TRUE?a.next("v"):a.next((f=p&&p.a)!=null?f:r)}),u=(o=e.getCurrentLastSelection())==null?void 0:o.primary;let c;if(u!=null){const d=i.getRange(u.startRow,u.startColumn);c=d==null?void 0:d.getTextRotation()}return(c==null?void 0:c.v)===at.TRUE?a.next("v"):a.next((s=c&&c.a)!=null?s:r),l.dispose})),hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}}N($$e,"TextRotateMenuItemFactory");function b9(t){return new On(e=>e.next(!t.get(dh).supportClipboard))}N(b9,"menuClipboardDisabledObservable");function Hg(t){return{id:ih.name,commandId:ih.id,type:Tt.BUTTON,title:"rightClick.copy",icon:"Copy",disabled$:Mr(t,{workbookTypes:[x6],worksheetTypes:[W_],rangeTypes:[o7]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(Hg,"CopyMenuItemFactory");function iA(t){return{id:ud.name,commandId:ud.id,type:Tt.BUTTON,title:"rightClick.paste",icon:"PasteSpecial",disabled$:b9(t).pipe($f(Mr(t,{rangeTypes:[Bn],worksheetTypes:[Tn,Hi,zs],workbookTypes:[on]})),pr(([e,n])=>e||n)),hidden$:vn(t,le.UNIVER_SHEET)}}N(iA,"PasteMenuItemFactory");const Q8="sheet.menu.paste-special";function aA(t){return{id:Q8,type:Tt.SUBITEMS,icon:"PasteSpecial",title:"rightClick.pasteSpecial",hidden$:d9(t,vn(t,le.UNIVER_SHEET))}}N(aA,"PasteSpacialMenuItemFactory");function oA(t){return{id:Y8.id,type:Tt.BUTTON,title:"rightClick.pasteValue",disabled$:b9(t).pipe($f(Mr(t,{rangeTypes:[Bn],worksheetTypes:[zs,Tn],workbookTypes:[on]})),pr(([e,n])=>e||n)),hidden$:vn(t,le.UNIVER_SHEET)}}N(oA,"PasteValueMenuItemFactory");function sA(t){return{id:X8.id,type:Tt.BUTTON,title:"rightClick.pasteFormat",disabled$:b9(t).pipe($f(Mr(t,{rangeTypes:[Bn],worksheetTypes:[Hi,Tn],workbookTypes:[on]})),pr(([e,n])=>e||n)),hidden$:vn(t,le.UNIVER_SHEET)}}N(sA,"PasteFormatMenuItemFactory");function lA(t){return{id:f4.id,type:Tt.BUTTON,title:"rightClick.pasteColWidth",disabled$:b9(t).pipe($f(Mr(t,{rangeTypes:[Bn],worksheetTypes:[td,Tn],workbookTypes:[on]})),pr(([e,n])=>e||n))}}N(lA,"PasteColWidthMenuItemFactory");function uA(t){return{id:G8.id,type:Tt.BUTTON,title:"rightClick.pasteBesidesBorder",disabled$:b9(t).pipe($f(Mr(t,{rangeTypes:[Bn],worksheetTypes:[Tn,Hi,zs,nh,td],workbookTypes:[on]})),pr(([e,n])=>e||n)),hidden$:vn(t,le.UNIVER_SHEET)}}N(uA,"PasteBesidesBorderMenuItemFactory");function W$e(t){return{id:o3.id,type:Tt.BUTTON,icon:"AutoHeight",title:"rightClick.fitContent",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[nh,Tn],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(W$e,"FitContentMenuItemFactory");const z$e="sheet.menu.sheet-frozen";function q$e(t){return{id:z$e,type:Tt.SUBITEMS,title:"rightClick.freeze",icon:"FreezeToSelectedSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(q$e,"SheetFrozenMenuItemFactory");const PY="sheet.header-menu.sheet-frozen";function MY(t){return{id:PY,type:Tt.SUBITEMS,title:"rightClick.freeze",icon:"FreezeToSelectedSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(MY,"SheetFrozenHeaderMenuItemFactory");function cA(t){return{id:C0.id,type:Tt.BUTTON,title:"rightClick.freeze",icon:"FreezeToSelectedSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(cA,"FrozenMenuItemFactory");function Y$e(t){return{id:Ux.id,type:Tt.BUTTON,title:"rightClick.freezeRow",icon:"FreezeRowSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(Y$e,"FrozenRowMenuItemFactory");function X$e(t){return{id:Hx.id,type:Tt.BUTTON,title:"rightClick.freezeCol",icon:"FreezeColumnSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(X$e,"FrozenColMenuItemFactory");function dA(t){return{id:h4.id,type:Tt.BUTTON,title:"rightClick.cancelFreeze",icon:"CancelFreezeSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(dA,"CancelFrozenMenuItemFactory");function G$e(t){return{id:Dx.id,type:Tt.BUTTON,icon:"Hide",title:"rightClick.hideSelectedRow",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[nh,Tn],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(G$e,"HideRowMenuItemFactory");function Q$e(t){return{id:Ix.id,type:Tt.BUTTON,icon:"Hide",title:"rightClick.hideSelectedColumn",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,td],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(Q$e,"HideColMenuItemFactory");function K$e(t){const e=t.get(Ce),n=t.get(Bt),r=t.get(me),i=[Pr,Of,xf].map(a=>a.id);return{id:lx.id,type:Tt.BUTTON,title:"rightClick.showHideRow",hidden$:Pl(e,!0,({worksheet:a})=>new On(o=>{function s(){var u;const c=(u=n.getCurrentSelections())==null?void 0:u.map(d=>d.range).filter(d=>d.rangeType===it.ROW);return!!(c!=null&&c.some(d=>{for(let h=d.startRow;h<=d.endRow;h++)if(!a.getRowRawVisible(h))return!0;return!1}))}N(s,"hasHiddenRowsInSelections");const l=r.onCommandExecuted(u=>{i.findIndex(c=>c===u.id)!==-1&&o.next(!s())});return o.next(!s()),()=>l.dispose()})),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,nh],rangeTypes:[Bn]})}}N(K$e,"ShowRowMenuItemFactory");function Z$e(t){const e=t.get(Ce),n=t.get(Bt),r=t.get(me),i=[Pr,Tf,Lf].map(a=>a.id);return{id:ox.id,type:Tt.BUTTON,title:"rightClick.showHideColumn",hidden$:Pl(e,!0,({worksheet:a})=>new On(o=>{function s(){var u;const c=(u=n.getCurrentSelections())==null?void 0:u.map(d=>d.range).filter(d=>d.rangeType===it.COLUMN);return!c||c.length===0?!1:!!c.some(d=>{for(let h=d.startColumn;h<=d.endColumn;h++)if(!a.getColVisible(h))return!0;return!1})}N(s,"hasHiddenColsInSelections");const l=r.onCommandExecuted(u=>{i.findIndex(c=>c===u.id)!==-1&&o.next(!s())});return o.next(!s()),()=>l.dispose()})),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[td,Tn],rangeTypes:[Bn]})}}N(Z$e,"ShowColMenuItemFactory");function J$e(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=0;return{id:cb.id,type:Tt.BUTTON,icon:"AdjustHeight",label:{name:qx,props:{prefix:"rightClick.rowHeight",suffix:"px",min:2,max:1e3}},value$:Pl(n,i,({worksheet:a})=>new On(o=>{function s(){var u;const c=(u=r.getCurrentLastSelection())==null?void 0:u.primary,d=c?a.getRowHeight(c.startRow):i;o.next(d)}N(s,"update");const l=e.onCommandExecuted(u=>{const c=u.id;if(c===Mn.id||c===Pr.id||c===fc.id)return s()});return s(),l.dispose})),hidden$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,nh],rangeTypes:[Bn]})}}N(J$e,"SetRowHeightMenuItemFactory");function eWe(t){const e=t.get(me),n=t.get(Ce),r=t.get(Bt),i=0;return{id:s7.id,type:Tt.BUTTON,icon:"AdjustWidth",label:{name:qx,props:{prefix:"rightClick.columnWidth",suffix:"px",min:2,max:1e3}},value$:Pl(n,i,({worksheet:a})=>new On(o=>{function s(){var u;const c=(u=r.getCurrentLastSelection())==null?void 0:u.primary;let d=i;c!=null&&(d=a.getColumnWidth(c.startColumn)),o.next(d)}N(s,"update");const l=e.onCommandExecuted(u=>{const c=u.id;if(c===Mn.id||c===Pr.id||c===Xs.id)return s()});return s(),l.dispose})),hidden$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,td],rangeTypes:[Bn]})}}N(eWe,"SetColWidthMenuItemFactory");function y9(t){var e;const n=t.get(Ce),r=t.get(Or),i=n.getUniverDocInstance(Yo),a=r.getActiveTextRange();if(i==null||a==null)return null;const o=(e=i.getBody())==null?void 0:e.textRuns;if(o==null)return;const{startOffset:s}=a;return o.find(({st:l,ed:u})=>s>=l&&s<=u)}N(y9,"getFontStyleAtCursor");function tWe(t){const e=t.get(Bt),n=t.get(li),r=t.get(Ce),i=t.get(U8),a=r.getCurrentTypeOfUnit$(le.UNIVER_SHEET);return Sa([e.selectionMoveEnd$,a.pipe(pr(o=>{var s;return(s=o==null?void 0:o.getUnitId())!=null?s:""})),a.pipe(Ei(o=>{var s;return(s=o==null?void 0:o.activeSheet$)!=null?s:Hr(null)}))]).pipe(pr(([o,s,l])=>{if(!l||!o||o.length===0)return!1;const u=l.getSheetId(),c=o.map(h=>h.range);if(i.interceptor.fetchThroughInterceptors(cHe)(!1,c))return!0;const d=n.getSubunitRuleList(s,u).map(h=>h.ranges).flat();if(o.length<2){const h=o[0].range;return d.some(f=>ft.intersects(f,h)&&!ft.contains(f,h))}for(let h=0;h<o.length;h++)for(let f=h+1;f<o.length;f++)if(ft.intersects(o[h].range,o[f].range))return!0;return!1}))}N(tWe,"getSheetSelectionsDisabled$");function Are(t,e){return!!Rp(t,e,it.ROW)}N(Are,"isThisRowSelected");function wre(t,e){return!!Rp(t,e,it.COLUMN)}N(wre,"isThisColSelected");function Rp(t,e,n){return t.find(r=>{const i=r.range,{startRow:a,endRow:o,startColumn:s,endColumn:l,rangeType:u}=i;return u===it.ALL||u===it.NORMAL?!1:u===n&&(n===it.COLUMN&&s<=e&&e<=l||n===it.ROW&&a<=e&&e<=o)})}N(Rp,"matchedSelectionByRowColIndex");function nWe(t){const e=Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,zs,Hi],rangeTypes:[Bn]}),n=tWe(t);return{id:f9.id,icon:"MergeAllSingle",tooltip:"toolbar.mergeCell.main",type:Tt.SUBITEMS,hidden$:vn(t,le.UNIVER_SHEET),disabled$:e.pipe($f(n),pr(([r,i])=>r||i))}}N(nWe,"CellMergeMenuItemFactory");function rWe(t){return{id:Qne.id,type:Tt.BUTTON,title:"merge.all",icon:"MergeAllSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(rWe,"CellMergeAllMenuItemFactory");function iWe(t){return{id:Kne.id,type:Tt.BUTTON,title:"merge.vertical",icon:"VerticalIntegrationSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(iWe,"CellMergeVerticalMenuItemFactory");function aWe(t){return{id:Zne.id,type:Tt.BUTTON,title:"merge.horizontal",icon:"HorizontalMergeSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(aWe,"CellMergeHorizontalMenuItemFactory");function oWe(t){return{id:cne.id,type:Tt.BUTTON,title:"merge.cancel",icon:"CancelMergeSingle",hidden$:vn(t,le.UNIVER_SHEET)}}N(oWe,"CellMergeCancelMenuItemFactory");function sWe(t){const e=t.get(Mf),n=Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]});return{id:GI.id,icon:new On(r=>{const i="AllBorderSingle",a=t.get(Mf),o=t.get(me).onCommandExecuted(s=>{var l;if(s.id!==GI.id)return;const{type:u}=a.getBorderInfo(),c=Oje.find(h=>h.value===u),d=(l=c==null?void 0:c.icon)!=null?l:i;r.next(d)});return r.next(i),o.dispose}),tooltip:"toolbar.border.main",type:Tt.BUTTON_SELECTOR,selections:[{label:{name:hre,hoverable:!1},value$:e.borderInfo$}],value$:e.borderInfo$,hidden$:vn(t,le.UNIVER_SHEET),disabled$:n}}N(sWe,"CellBorderSelectorMenuItemFactory");const hA="sheet.menu.clear-selection";function fA(t){return{id:hA,type:Tt.SUBITEMS,icon:"ClearFormat",title:"rightClick.clearSelection",hidden$:vn(t,le.UNIVER_SHEET)}}N(fA,"ClearSelectionMenuItemFactory");function mA(t){return{id:v0.id,type:Tt.BUTTON,title:"rightClick.clearContent",disabled$:d9(t,Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,zs],rangeTypes:[Bn]})),hidden$:vn(t,le.UNIVER_SHEET)}}N(mA,"ClearSelectionContentMenuItemFactory");function gA(t){return{id:th.id,type:Tt.BUTTON,title:"rightClick.clearFormat",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]}),hidden$:vn(t,le.UNIVER_SHEET)}}N(gA,"ClearSelectionFormatMenuItemFactory");function pA(t){return{id:p0.id,type:Tt.BUTTON,title:"rightClick.clearAll",disabled$:d9(t,Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,zs,Hi],rangeTypes:[Bn]})),hidden$:vn(t,le.UNIVER_SHEET)}}N(pA,"ClearSelectionAllMenuItemFactory");const lWe="sheet.menu.col-insert";function uWe(t){return{id:lWe,type:Tt.SUBITEMS,title:"rightClick.insert",icon:"Insert",hidden$:hb(t),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,ib]})}}N(uWe,"ColInsertMenuItemFactory");const cWe="sheet.menu.row-insert";function dWe(t){return{id:cWe,type:Tt.SUBITEMS,title:"rightClick.insert",icon:"Insert",hidden$:hb(t),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[rx,Tn],rangeTypes:[Bn]})}}N(dWe,"RowInsertMenuItemFactory");const hWe="sheet.menu.cell-insert";function fWe(t){return{id:hWe,type:Tt.SUBITEMS,title:"rightClick.insert",icon:"Insert",hidden$:d9(t,hb(t)),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[ib,Tn],rangeTypes:[Bn]})}}N(fWe,"CellInsertMenuItemFactory");function TY(t){return{id:YI.id,type:Tt.BUTTON,title:"rightClick.insertRowBefore",icon:"InsertRowAbove",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[rx,Tn],rangeTypes:[Bn]}),hidden$:$ne(t,"row")}}N(TY,"InsertRowBeforeMenuItemFactory");function mWe(t){return{id:sne.id,type:Tt.BUTTON,title:"rightClick.insertRow",icon:"InsertRowBelow",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[rx,Tn],rangeTypes:[Bn]}),hidden$:jne(t,"row")}}N(mWe,"InsertRowAfterMenuItemFactory");function LY(t){return{id:XI.id,type:Tt.BUTTON,title:"rightClick.insertColumnBefore",icon:"LeftInsertColumn",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[ib,Tn],rangeTypes:[Bn]}),hidden$:$ne(t,"col")}}N(LY,"InsertColBeforeMenuItemFactory");function gWe(t){return{id:lne.id,type:Tt.BUTTON,title:"rightClick.insertColumn",icon:"RightInsertColumn",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[ib,Tn],rangeTypes:[Bn]}),hidden$:jne(t,"col")}}N(gWe,"InsertColAfterMenuItemFactory");function pWe(t){return{id:vb.id,type:Tt.BUTTON,title:"rightClick.moveRight",icon:"InsertCellShiftRight",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn],rangeTypes:[Bn]}),hidden$:fb(t,"col")}}N(pWe,"InsertRangeMoveRightMenuItemFactory");function vWe(t){return{id:g7.id,type:Tt.BUTTON,title:"rightClick.moveDown",icon:"InsertCellDown",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn],rangeTypes:[Bn]}),hidden$:fb(t,"row")}}N(vWe,"InsertRangeMoveDownMenuItemFactory");const _We="sheet.menu.delete";function CWe(t){return{id:_We,type:Tt.SUBITEMS,title:"rightClick.delete",icon:"Reduce",hidden$:d9(t,hb(t)),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn]})}}N(CWe,"DeleteRangeMenuItemFactory");function xY(t){return{id:eC.id,type:Tt.BUTTON,icon:"DeleteColumn",title:"rightClick.deleteSelectedColumn",hidden$:Wne(t,"col"),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,qBe]})}}N(xY,"RemoveColMenuItemFactory");function OY(t){return{id:J_.id,type:Tt.BUTTON,icon:"DeleteRow",title:"rightClick.deleteSelectedRow",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,WBe]}),hidden$:Wne(t,"row")}}N(OY,"RemoveRowMenuItemFactory");function SWe(t){return{id:pb.id,type:Tt.BUTTON,title:"rightClick.moveLeft",icon:"DeleteCellShiftLeft",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn],rangeTypes:[Bn]}),hidden$:fb(t,"col")}}N(SWe,"DeleteRangeMoveLeftMenuItemFactory");function bWe(t){return{id:m7.id,type:Tt.BUTTON,title:"rightClick.moveUp",icon:"DeleteCellShiftUp",disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn],rangeTypes:[Bn]}),hidden$:fb(t,"row")}}N(bWe,"DeleteRangeMoveUpMenuItemFactory");function yWe(t){const e=t.get(Ce).getCurrentTypeOfUnit$(le.UNIVER_SHEET),n=t.get(vs);return Sa([e,n.currentUser$]).pipe(Ei(([r,i])=>r?r.activeSheet$.pipe(Ei(a=>{if(!a)return Hr(!0);const o=t.get(li),s=t.get(ga),l=t.get(Bt);return Qa(l.selectionMoveEnd$,o.ruleChange$,s.ruleChange$).pipe(pr(()=>{const u=r.getUnitId(),c=a.getSheetId(),d=o.getSubunitRuleList(u,c),h=l.getCurrentSelections(),f=h==null?void 0:h.map(p=>p.range),m=d.map(p=>p.ranges).flat();if(!f)return!1;const g=s.getRule(u,c);return g!=null&&g.permissionId&&g!=null&&g.name?!0:f==null?void 0:f.some(p=>m.some(v=>ft.intersects(p,v)))}))})):Hr(!0)))}N(yWe,"getAddPermissionHidden$");function EWe(t){const e=t.get(Ce),n=t.get(li),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{if(!s)return Hr(!0);const l=t.get(li),u=t.get(ga),c=t.get(Bt);return Qa(c.selectionMoveEnd$,l.ruleChange$,u.ruleChange$).pipe(pr(()=>{var d;const h=a.getUnitId(),f=s.getSheetId(),m=n.getSubunitRuleList(h,f),g=(d=c.getCurrentSelections())==null?void 0:d.map(C=>C.range),p=m.map(C=>C.ranges).flat();if(!(g!=null&&g.length)||g.length>1)return!0;const v=g[0],_=u.getRule(h,f);return _!=null&&_.permissionId&&_!=null&&_.name?!1:p.filter(C=>ft.intersects(C,v)).length!==1}))})):Hr(!0)))}N(EWe,"getEditPermissionHidden$");function RWe(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=a.getUnitId(),c=t.get(Bt),d=t.get(li),h=t.get(ga),f=(l=n.composePermission$([new R1(u).id,new on(u).id]).pipe(pr(g=>g.every(p=>p.value))))!=null?l:Hr(!1),m=Qa(d.ruleChange$,h.ruleChange$).pipe(Du(null));return Sa([f,m,c.selectionMoveEnd$]).pipe(pr(([g,p,v])=>{if(!g)return!0;const _=c.getCurrentSelections(),C=_==null?void 0:_.map(S=>S.range);return C!=null&&C.length?C.length>1:!1}))})):Hr(!0)))}N(RWe,"getPermissionDisableBase$");function Dre(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=t.get(ui).subscribeContextValue$(I7).pipe(Du(!1)),c=a.getUnitId(),d=s.getSheetId(),h=t.get(li),f=t.get(ga),m=t.get(Bt),g=(l=n.composePermission$([new R1(c).id,new on(c).id]).pipe(pr(v=>v.every(_=>_.value))))!=null?l:Hr(!1),p=Qa(h.ruleChange$,f.ruleChange$).pipe(Du(null));return Sa([g,p,m.selectionMoveEnd$,u]).pipe(pr(([v,_,C,S])=>{if(!v||S)return!0;const b=m.getCurrentSelections(),y=b==null?void 0:b.map(P=>P.range);if(!(y!=null&&y.length))return!0;const A=f.getRule(c,d);if(A!=null&&A.permissionId&&A!=null&&A.name)return!0;const w=h.getSubunitRuleList(c,d);return y==null?void 0:y.some(P=>w.some(M=>M.ranges.some(L=>ft.intersects(P,L))))}))})):Hr(!0)))}N(Dre,"getAddPermissionDisableBase$");function AWe(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=a.getUnitId(),c=s.getSheetId(),d=t.get(li),h=t.get(ga),f=(l=n.composePermission$([new R1(u).id,new on(u).id]).pipe(pr(g=>g.every(p=>p.value))))!=null?l:Hr(!1),m=Qa(d.ruleChange$,h.ruleChange$).pipe(Du(null));return Sa([f,m]).pipe(pr(([g,p])=>{var v;if(!g)return!0;const _=h.getRule(u,c);return _!=null&&_.permissionId&&_!=null&&_.name?!0:((v=d.getSubunitRuleList(u,c))==null?void 0:v.filter(C=>(C==null?void 0:C.permissionId)&&(C==null?void 0:C.name))).length>0}))})):Hr(!0)))}N(AWe,"getAddPermissionFromSheetBarDisable$");function wWe(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=a.getUnitId(),c=s.getSheetId(),d=t.get(ga),h=(l=n.composePermission$([new R1(u).id,new on(u).id]).pipe(pr(f=>f.every(m=>m.value))))!=null?l:Hr(!1);return Sa([h,d.ruleChange$.pipe(Du(null))]).pipe(pr(([f,m])=>{if(!f)return!0;const g=d.getRule(u,c);return!(g!=null&&g.permissionId&&g!=null&&g.name)}))})):Hr(!0)))}N(wWe,"getRemovePermissionFromSheetBarDisable$");function DWe(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=a.getUnitId(),c=t.get(li),d=t.get(ga),h=(l=n.composePermission$([new R1(u).id,new on(u).id]).pipe(pr(g=>g.every(p=>p.value))))!=null?l:Hr(!1),f=d.ruleChange$.pipe(Du(null)),m=c.ruleChange$.pipe(Du(null));return Sa([h,f,m]).pipe(pr(([g,p,v])=>{if(!g)return!0;const _=s.getSheetId(),C=d.getRule(u,_),S=c.getSubunitRuleList(u,_);return!(C||S.length)}))})):Hr(!0)))}N(DWe,"getSetPermissionFromSheetBarDisable$");function IWe(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l;if(!s)return Hr(!0);const u=a.getUnitId(),c=s.getSheetId(),d=t.get(Bt),h=t.get(li),f=t.get(ga),m=(l=n.composePermission$([new R1(u).id,new on(u).id]).pipe(pr(p=>p.every(v=>v.value))))!=null?l:Hr(!1),g=Qa(h.ruleChange$,f.ruleChange$,d.selectionMoveEnd$).pipe(Du(null));return Sa([g,m]).pipe(pr(([p,v])=>{if(!v)return!0;const _=t.get(Bt).getCurrentSelections(),C=_==null?void 0:_.map(y=>y.range);if(!(C!=null&&C.length)||C.length>1)return!0;const S=C[0],b=f.getRule(u,c);return!(b!=null&&b.permissionId&&b!=null&&b.name||h.getSubunitRuleList(u,c).map(y=>y.ranges).flat().some(y=>ft.intersects(S,y)))}))})):Hr(!0)))}N(IWe,"getRemovePermissionDisable$");function Ire(t){const e=t.get(Ce),n=t.get(Qi),r=e.getCurrentTypeOfUnit$(le.UNIVER_SHEET),i=t.get(vs);return Sa([r,i.currentUser$]).pipe(Ei(([a,o])=>a?a.activeSheet$.pipe(Ei(s=>{var l,u;if(!s)return Hr(!0);const c=a.getUnitId();return((u=(l=n.getPermissionPoint$(new on(c).id))==null?void 0:l.pipe(pr(d=>!!d.value)))!=null?u:Hr(!1)).pipe(pr(d=>!d))})):Hr(!0)))}N(Ire,"getViewPermissionDisable$");const vA="sheet.contextMenu.permission";function PWe(t){return{id:Ox.id,type:Tt.BUTTON,icon:vje,tooltip:"permission.toolbarMenu",hidden$:vn(t,le.UNIVER_SHEET),disabled$:Dre(t)}}N(PWe,"sheetPermissionToolbarMenuFactory");function _A(t){return{id:vA,type:Tt.SUBITEMS,title:"rightClick.protectRange",icon:_je,hidden$:vn(t,le.UNIVER_SHEET)}}N(_A,"sheetPermissionContextMenuFactory");function CA(t){return{id:l4.id,type:Tt.BUTTON,title:"rightClick.turnOnProtectRange",hidden$:yWe(t),disabled$:Dre(t)}}N(CA,"sheetPermissionAddProtectContextMenuFactory");function SA(t){return{id:d4.id,type:Tt.BUTTON,title:"rightClick.editProtectRange",hidden$:EWe(t),disabled$:RWe(t)}}N(SA,"sheetPermissionEditProtectContextMenuFactory");function bA(t){return{id:c4.id,type:Tt.BUTTON,title:"rightClick.removeProtectRange",disabled$:IWe(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(bA,"sheetPermissionRemoveProtectContextMenuFactory");function yA(t){return{id:u4.id,type:Tt.BUTTON,title:"rightClick.viewAllProtectArea",disabled$:Ire(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(yA,"sheetPermissionViewAllProtectRuleContextMenuFactory");function MWe(t){return{id:Nx.id,type:Tt.BUTTON,title:"sheetConfig.addProtectSheet",disabled$:AWe(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(MWe,"sheetPermissionProtectSheetInSheetBarMenuFactory");function TWe(t){return{id:Lx.id,type:Tt.BUTTON,title:"sheetConfig.removeProtectSheet",disabled$:wWe(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(TWe,"sheetPermissionRemoveProtectionSheetBarMenuFactory");function LWe(t){return{id:xx.id,type:Tt.BUTTON,title:"sheetConfig.changeSheetPermission",disabled$:DWe(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(LWe,"sheetPermissionChangeSheetPermissionSheetBarMenuFactory");function xWe(t){return{id:kx.id,type:Tt.BUTTON,title:"sheetConfig.viewAllProtectArea",disabled$:Ire(t),hidden$:vn(t,le.UNIVER_SHEET)}}N(xWe,"sheetPermissionViewAllProtectRuleSheetBarMenuFactory");function OWe(t){const e=t.get(Ce),n=t.get(me),r=new On(a=>{const o=n.onCommandExecuted(s=>{const l=s.id;(l===Ls.id||l===Dl.id||l===Ul.id)&&rC(e,a)});return rC(e,a),o.dispose}),i=s3(t,[on,oUe]);return{id:Fx.id,type:Tt.BUTTON,title:"sheetConfig.delete",disabled$:Sa([r,i]).pipe(pr(([a,o])=>a||o)),hidden$:vn(t,le.UNIVER_SHEET)}}N(OWe,"DeleteSheetMenuItemFactory");function NWe(t){return{id:nne.id,type:Tt.BUTTON,title:"sheetConfig.copy",disabled$:s3(t,[on,ine]),hidden$:vn(t,le.UNIVER_SHEET)}}N(NWe,"CopySheetMenuItemFactory");function kWe(t){return{id:$x.id,type:Tt.BUTTON,title:"sheetConfig.rename",disabled$:s3(t,[on,ax]),hidden$:vn(t,le.UNIVER_SHEET)}}N(kWe,"RenameSheetMenuItemFactory");function FWe(t){return{id:bne.id,title:"sheetConfig.changeColor",type:Tt.SELECTOR,selections:[{label:{name:bb,hoverable:!1}}],hidden$:s3(t,[on])}}N(FWe,"ChangeColorSheetMenuItemFactory");function VWe(t){const e=t.get(Ce),n=t.get(me);return{id:yne.id,type:Tt.BUTTON,title:"sheetConfig.hide",disabled$:new On(r=>{const i=n.onCommandExecuted(a=>{const o=a.id;(o===Ls.id||o===Dl.id||o===Ul.id)&&rC(e,r)});return rC(e,r),i.dispose}).pipe($f(s3(t,[on,ix])),pr(([r,i])=>r||i)),hidden$:vn(t,le.UNIVER_SHEET)}}N(VWe,"HideSheetMenuItemFactory");function BWe(t){const e=t.get(Ce),n=t.get(me);return{id:jx.id,type:Tt.BUTTON,title:"sheetConfig.unhide",disabled$:new On(r=>{function i(){const o=e.getCurrentUnitForType(le.UNIVER_SHEET).getWorksheets(),s=Array.from(o.values());r.next(s.length===1)}N(i,"disableFunction2");const a=n.onCommandExecuted(o=>{const s=o.id;(s===Ls.id||s===Dl.id||s===Ul.id)&&i()});return i(),a.dispose}).pipe($f(s3(t,[on,ix])),pr(([r,i])=>r||i)),hidden$:vn(t,le.UNIVER_SHEET)}}N(BWe,"ShowMenuItemFactory");function rC(t,e){const n=t.getCurrentUnitForType(le.UNIVER_SHEET).getWorksheets(),r=Array.from(n.values()).filter(i=>i.getConfig().hidden===at.FALSE);e.next(r.length===1)}N(rC,"disableFunction");const aQt={[As.FORMAT]:{[Sb.id]:{order:0,menuItemFactory:P$e},[m9.id]:{order:1,menuItemFactory:M$e},[g9.id]:{order:2,menuItemFactory:T$e},[p9.id]:{order:3,menuItemFactory:L$e},[v9.id]:{order:4,menuItemFactory:x$e},[Mx.id]:{order:5,menuItemFactory:O$e},[Px.id]:{order:6,menuItemFactory:N$e},[Z_.id]:{order:7,menuItemFactory:F$e,[Cne.id]:{order:0,menuItemFactory:k$e}},[z_.id]:{order:9,menuItemFactory:B$e,[Sne.id]:{order:0,menuItemFactory:V$e}},[GI.id]:{order:10,menuItemFactory:sWe}},[As.LAYOUT]:{[RHe.id]:{order:0,menuItemFactory:nWe,[Gzt.id]:{order:0,menuItemFactory:rWe},[Qzt.id]:{order:1,menuItemFactory:iWe},[Kzt.id]:{order:2,menuItemFactory:aWe},[cne.id]:{order:3,menuItemFactory:oWe}},[KI.id]:{order:1,menuItemFactory:U$e},[QI.id]:{order:1,menuItemFactory:H$e},[ZI.id]:{order:2,menuItemFactory:j$e},[JI.id]:{order:3,menuItemFactory:$$e}},[As.OTHERS]:{[Ox.id]:{order:0,menuItemFactory:PWe}},[Xa.MAIN_AREA]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg},[ud.name]:{order:2,menuItemFactory:iA},[Q8]:{order:3,menuItemFactory:aA,[Y8.id]:{order:0,menuItemFactory:oA},[X8.id]:{order:1,menuItemFactory:sA},[f4.id]:{order:2,menuItemFactory:lA},[G8.id]:{order:3,menuItemFactory:uA}},[hA]:{order:4,menuItemFactory:fA,[v0.id]:{order:0,menuItemFactory:mA},[th.id]:{order:1,menuItemFactory:gA},[p0.id]:{order:2,menuItemFactory:pA}}},[ei.LAYOUT]:{order:1,[hWe]:{order:0,menuItemFactory:fWe,[YI.id]:{order:0,menuItemFactory:TY},[XI.id]:{order:1,menuItemFactory:LY},[vb.id]:{order:2,menuItemFactory:pWe},[g7.id]:{order:3,menuItemFactory:vWe}},[_We]:{order:0,menuItemFactory:CWe,[eC.id]:{order:0,menuItemFactory:xY},[J_.id]:{order:1,menuItemFactory:OY},[pb.id]:{order:2,menuItemFactory:SWe},[m7.id]:{order:3,menuItemFactory:bWe}},[z$e]:{order:2,menuItemFactory:q$e,[C0.id]:{order:0,menuItemFactory:cA},[Ux.id]:{order:1,menuItemFactory:Y$e},[Hx.id]:{order:2,menuItemFactory:X$e},[h4.id]:{order:3,menuItemFactory:dA}},[vA]:{order:3,menuItemFactory:_A,[l4.id]:{order:0,menuItemFactory:CA},[d4.id]:{order:1,menuItemFactory:SA},[c4.id]:{order:2,menuItemFactory:bA},[u4.id]:{order:3,menuItemFactory:yA}}},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.COL_HEADER]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg},[ud.name]:{order:2,menuItemFactory:iA},[Q8]:{order:3,menuItemFactory:aA,[Y8.id]:{order:0,menuItemFactory:oA},[X8.id]:{order:1,menuItemFactory:sA},[f4.id]:{order:2,menuItemFactory:lA},[G8.id]:{order:3,menuItemFactory:uA}},[hA]:{order:4,menuItemFactory:fA,[v0.id]:{order:0,menuItemFactory:mA},[th.id]:{order:1,menuItemFactory:gA},[p0.id]:{order:2,menuItemFactory:pA}}},[ei.LAYOUT]:{order:1,[lWe]:{order:0,menuItemFactory:uWe,[XI.id]:{order:0,menuItemFactory:LY},[lne.id]:{order:1,menuItemFactory:gWe}},[Ix.id]:{order:1,menuItemFactory:Q$e},[ox.id]:{order:2,menuItemFactory:Z$e},[eC.id]:{order:2,menuItemFactory:xY},[s7.id]:{order:3,menuItemFactory:eWe},[PY]:{order:4,menuItemFactory:MY,[C0.id]:{order:0,menuItemFactory:cA},[h4.id]:{order:3,menuItemFactory:dA}},[vA]:{order:5,menuItemFactory:_A,[l4.id]:{order:0,menuItemFactory:CA},[d4.id]:{order:1,menuItemFactory:SA},[c4.id]:{order:2,menuItemFactory:bA},[u4.id]:{order:3,menuItemFactory:yA}}},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.ROW_HEADER]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg},[ud.name]:{order:2,menuItemFactory:iA},[Q8]:{order:3,menuItemFactory:aA,[Y8.id]:{order:0,menuItemFactory:oA},[X8.id]:{order:1,menuItemFactory:sA},[f4.id]:{order:2,menuItemFactory:lA},[G8.id]:{order:3,menuItemFactory:uA}},[hA]:{order:4,menuItemFactory:fA,[v0.id]:{order:0,menuItemFactory:mA},[th.id]:{order:1,menuItemFactory:gA},[p0.id]:{order:2,menuItemFactory:pA}}},[ei.LAYOUT]:{order:1,[cWe]:{order:0,menuItemFactory:dWe,[YI.id]:{order:0,menuItemFactory:TY},[sne.id]:{order:1,menuItemFactory:mWe}},[J_.id]:{order:1,menuItemFactory:OY},[Dx.id]:{order:2,menuItemFactory:G$e},[lx.id]:{order:2,menuItemFactory:K$e},[cb.id]:{order:3,menuItemFactory:J$e},[o3.id]:{order:4,menuItemFactory:W$e},[PY]:{order:5,menuItemFactory:MY,[C0.id]:{order:0,menuItemFactory:cA},[h4.id]:{order:3,menuItemFactory:dA}},[vA]:{order:6,menuItemFactory:_A,[l4.id]:{order:0,menuItemFactory:CA},[d4.id]:{order:1,menuItemFactory:SA},[c4.id]:{order:2,menuItemFactory:bA},[u4.id]:{order:3,menuItemFactory:yA}}},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.FOOTER_TABS]:{[ei.OTHERS]:{order:0,[Fx.id]:{order:0,menuItemFactory:OWe},[nne.id]:{order:1,menuItemFactory:NWe},[$x.id]:{order:2,menuItemFactory:kWe},[bne.id]:{order:3,menuItemFactory:FWe},[yne.id]:{order:4,menuItemFactory:VWe},[jx.id]:{order:6,menuItemFactory:BWe},[Nx.id]:{order:7,menuItemFactory:MWe},[Lx.id]:{order:8,menuItemFactory:TWe},[xx.id]:{order:9,menuItemFactory:LWe},[kx.id]:{order:10,menuItemFactory:xWe}}}},UWe=[Et.ARROW_DOWN,Et.ARROW_UP,Et.ARROW_LEFT,Et.ARROW_RIGHT],oQt=[Et.ENTER,Et.TAB,...UWe];function Pre(){const t=[];for(const e of UWe)t.push({id:Q_.id,binding:e,preconditions:N(n=>v7(n),"preconditions"),staticParameters:{visible:!1,eventType:$i.Keyboard,keycode:e,isShift:!1}}),t.push({id:Q_.id,binding:e|Ln.SHIFT,preconditions:N(n=>v7(n),"preconditions"),staticParameters:{visible:!1,eventType:$i.Keyboard,keycode:e,isShift:!0}});return t}N(Pre,"generateArrowSelectionShortCutItem");const HWe={id:wx.id,binding:Et.F2,description:"shortcut.sheet.start-editing",group:"4_sheet-edit",preconditions:na,staticParameters:{visible:!0,eventType:$i.Keyboard,keycode:Et.F2}},jWe={id:Cc.id,binding:Et.ENTER,description:"shortcut.sheet.toggle-editing",group:"4_sheet-edit",preconditions:N(t=>v7(t),"preconditions"),staticParameters:{visible:!1,eventType:$i.Keyboard,keycode:Et.ENTER}},$We={id:Cc.id,binding:Et.TAB,preconditions:N(t=>v7(t),"preconditions"),staticParameters:{visible:!1,eventType:$i.Keyboard,keycode:Et.TAB}},WWe={id:Cc.id,binding:Et.ESC,description:"shortcut.sheet.abort-editing",group:"4_sheet-edit",preconditions:N(t=>v7(t),"preconditions"),staticParameters:{visible:!1,eventType:$i.Keyboard,keycode:Et.ESC}},zWe={id:pte.id,description:"shortcut.sheet.break-line",group:"4_sheet-edit",preconditions:N(t=>r$e(t),"preconditions"),binding:Et.ENTER|Ln.ALT},qWe={id:XS.id,preconditions:N(t=>i$e(t)||bre(t),"preconditions"),binding:Et.BACKSPACE},YWe={id:Cc.id,description:"shortcut.sheet.delete-and-start-editing",group:"4_sheet-edit",preconditions:N(t=>na(t)&&!bre(t),"preconditions"),binding:Et.BACKSPACE,staticParameters:{visible:!0,eventType:$i.Keyboard,keycode:Et.BACKSPACE}},XWe={id:ux.id,preconditions:N(t=>na(t),"preconditions"),binding:Et.Digit9|Ln.CTRL_COMMAND},GWe={id:sx.id,preconditions:N(t=>na(t),"preconditions"),binding:Et.Digit0|Ln.CTRL_COMMAND|Ln.SHIFT},QWe={id:ql.id,description:"shortcut.sheet.select-below-cell",group:"3_sheet-view",binding:Et.ARROW_DOWN,priority:100,preconditions:na,staticParameters:{direction:ut.DOWN}},KWe={id:ql.id,description:"shortcut.sheet.select-up-cell",group:"3_sheet-view",binding:Et.ARROW_UP,priority:100,preconditions:na,staticParameters:{direction:ut.UP}},ZWe={id:ql.id,description:"shortcut.sheet.select-left-cell",group:"3_sheet-view",binding:Et.ARROW_LEFT,priority:100,preconditions:Sre,staticParameters:{direction:ut.LEFT}},JWe={id:ql.id,description:"shortcut.sheet.select-right-cell",group:"3_sheet-view",binding:Et.ARROW_RIGHT,priority:100,preconditions:Sre,staticParameters:{direction:ut.RIGHT}},eze={id:am.id,description:"shortcut.sheet.select-next-cell",group:"3_sheet-view",binding:Et.TAB,priority:100,preconditions:na,staticParameters:{direction:ut.RIGHT,keycode:Et.TAB}},tze={id:am.id,description:"shortcut.sheet.select-previous-cell",group:"3_sheet-view",binding:Et.TAB|Ln.SHIFT,priority:100,preconditions:na,staticParameters:{direction:ut.LEFT,keycode:Et.TAB}},nze={id:am.id,description:"shortcut.sheet.select-below-cell",group:"3_sheet-view",binding:Et.ENTER,priority:100,preconditions:na,staticParameters:{direction:ut.DOWN,keycode:Et.ENTER}},rze={id:am.id,description:"shortcut.sheet.select-up-cell",group:"3_sheet-view",binding:Et.ENTER|Ln.SHIFT,priority:100,preconditions:na,staticParameters:{direction:ut.UP,keycode:Et.ENTER}},ize={id:ql.id,description:"shortcut.sheet.select-below-value-cell",group:"3_sheet-view",binding:Et.ARROW_DOWN|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.DOWN,jumpOver:Cd.moveGap}},aze={id:ql.id,description:"shortcut.sheet.select-up-value-cell",group:"3_sheet-view",binding:Et.ARROW_UP|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.UP,jumpOver:Cd.moveGap}},oze={id:ql.id,description:"shortcut.sheet.select-left-value-cell",group:"3_sheet-view",binding:Et.ARROW_LEFT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.LEFT,jumpOver:Cd.moveGap}},sze={id:ql.id,description:"shortcut.sheet.select-right-value-cell",group:"3_sheet-view",binding:Et.ARROW_RIGHT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.RIGHT,jumpOver:Cd.moveGap}},lze={id:Lu.id,description:"shortcut.sheet.expand-selection-down",group:"3_sheet-view",binding:Et.ARROW_DOWN|Ln.SHIFT,preconditions:na,staticParameters:{direction:ut.DOWN}},uze={id:Lu.id,description:"shortcut.sheet.expand-selection-up",group:"3_sheet-view",binding:Et.ARROW_UP|Ln.SHIFT,preconditions:na,staticParameters:{direction:ut.UP}},cze={id:Lu.id,description:"shortcut.sheet.expand-selection-left",group:"3_sheet-view",binding:Et.ARROW_LEFT|Ln.SHIFT,preconditions:na,staticParameters:{direction:ut.LEFT}},dze={id:Lu.id,description:"shortcut.sheet.expand-selection-right",group:"3_sheet-view",binding:Et.ARROW_RIGHT|Ln.SHIFT,preconditions:na,staticParameters:{direction:ut.RIGHT}},hze={id:Lu.id,description:"shortcut.sheet.expand-selection-to-below-gap",group:"3_sheet-view",binding:Et.ARROW_DOWN|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.DOWN,jumpOver:Cd.moveGap}},fze={id:Lu.id,description:"shortcut.sheet.expand-selection-to-up-gap",group:"3_sheet-view",binding:Et.ARROW_UP|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.UP,jumpOver:Cd.moveGap}},mze={id:Lu.id,description:"shortcut.sheet.expand-selection-to-left-gap",group:"3_sheet-view",binding:Et.ARROW_LEFT|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.LEFT,jumpOver:Cd.moveGap}},gze={id:Lu.id,description:"shortcut.sheet.expand-selection-to-right-gap",group:"3_sheet-view",binding:Et.ARROW_RIGHT|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{direction:ut.RIGHT,jumpOver:Cd.moveGap}},pze={id:Hne.id,description:"shortcut.sheet.select-all",group:"3_sheet-view",binding:Et.A|Ln.CTRL_COMMAND,preconditions:na,staticParameters:{expandToGapFirst:!0,loop:!0}},vze={id:m9.id,description:"shortcut.sheet.set-bold",group:"4_sheet-edit",preconditions:N(t=>na(t),"preconditions"),binding:Et.B|Ln.CTRL_COMMAND},_ze={id:g9.id,description:"shortcut.sheet.set-italic",group:"4_sheet-edit",preconditions:N(t=>na(t),"preconditions"),binding:Et.I|Ln.CTRL_COMMAND},Cze={id:p9.id,description:"shortcut.sheet.set-underline",group:"4_sheet-edit",preconditions:N(t=>na(t),"preconditions"),binding:Et.U|Ln.CTRL_COMMAND},Sze={id:v9.id,description:"shortcut.sheet.set-strike-through",group:"4_sheet-edit",preconditions:N(t=>na(t),"preconditions"),binding:Et.X|Ln.SHIFT|Ln.CTRL_COMMAND},bze={id:v0.id,preconditions:N(t=>na(t),"preconditions"),binding:Et.DELETE,mac:Et.BACKSPACE},yze={id:mb.id,description:"shortcut.sheet.zoom-in",binding:Et.EQUAL|Ln.CTRL_COMMAND,group:"3_sheet-view",preconditions:na,priority:1,staticParameters:{delta:.2}},Eze={id:qP.id,binding:Et.EQUAL|Ln.CTRL_COMMAND},Rze={id:mb.id,description:"shortcut.sheet.zoom-out",binding:Et.MINUS|Ln.CTRL_COMMAND,group:"3_sheet-view",preconditions:na,priority:1,staticParameters:{delta:-.2}},Aze={id:qP.id,binding:Et.MINUS|Ln.CTRL_COMMAND},wze={id:mb.id,description:"shortcut.sheet.reset-zoom",binding:Et.Digit0|Ln.CTRL_COMMAND,preconditions:na,group:"3_sheet-view",priority:1,staticParameters:{reset:!0}},Dze={id:qP.id,binding:Et.Digit0|Ln.CTRL_COMMAND};var sQt=Object.defineProperty,lQt=Object.getOwnPropertyDescriptor,uQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?lQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&sQt(e,n,i),i},"__decorateClass$E"),N2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$E"),DV;let EA=(DV=class extends et{constructor(t,e,n,r,i,a,o){super(),this._injector=t,this._componentManager=e,this._layoutService=n,this._commandService=r,this._shortcutService=i,this._menuManagerService=a,this._uiPartsService=o,this._init()}_init(){this._initCustomComponents(),this._initCommands(),this._initMenus(),this._initShortcuts(),this._initWorkbenchParts(),this._initFocusHandler()}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(qx,Nje)),this.disposeWithMe(t.register(hre,fre)),this.disposeWithMe(t.register(bb,VC)),this.disposeWithMe(t.register(mre,Hee)),this.disposeWithMe(t.register(gre,jee)),this.disposeWithMe(t.register(pre,$ee)),this.disposeWithMe(t.register(ire,kje))}_initCommands(){[Qne,f9,Zne,Kne,mb,Lu,ql,am,$x,Fx,J_,eC,Dx,Ix,gf,wHe,Hne,rre,fne,Q_,Cc,wx,m9,g9,p9,v9,dje,hje,Px,Mx,Z_,mne,pne,vne,_ne,Vx,nre,Sb,Bx,yp,Fg,C0,Ux,Hx,_Yt,h4,gne,gb,Uf,jx,ere,g7,m7,vb,pb,are,s4,W8,Hf,yje,Ox,l4,u4,Nx,kx,xx,c4,d4,Tx,p7,Cje,Lx,Jne].forEach(t=>{this.disposeWithMe(this._commandService.registerCommand(t))})}_initMenus(){this._menuManagerService.mergeMenu(aQt)}_initShortcuts(){[QWe,KWe,ZWe,JWe,eze,tze,nze,rze,ize,aze,oze,sze,lze,uze,cze,dze,hze,fze,mze,gze,pze,yze,Rze,wze,Dze,Eze,Aze,vze,_ze,Cze,Sze,bze,...Pre(),jWe,HWe,$We,zWe,qWe,YWe,WWe,XWe,GWe].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_initWorkbenchParts(){const t=this._uiPartsService,e=this._injector;this.disposeWithMe(t.registerComponent(Ba.HEADER,()=>yl(t$e,e))),this.disposeWithMe(t.registerComponent(Ba.FOOTER,()=>yl(e$e,e))),this.disposeWithMe(t.registerComponent(Ba.CONTENT,()=>yl(n$e,e)))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(le.UNIVER_SHEET,t=>{var e;const n=(e=this._injector.get(Sr).getRenderById(Yo))==null?void 0:e.with(Ms);n==null||n.focus()}))}},N(DV,"SheetUIController"),DV);EA=uQt([yn(Vt.Ready,EA),N2(0,se(Wn)),N2(1,se(ja)),N2(2,Os),N2(3,me),N2(4,Bu),N2(5,sl),N2(6,_c)],EA);var cQt=Object.defineProperty,dQt=Object.getOwnPropertyDescriptor,hQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?dQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&cQt(e,n,i),i},"__decorateClass$D"),Sm=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$D"),IV;let NY=(IV=class extends qne{constructor(t,e,n,r,i,a,o,s,l){super(e,n,r,a),fe(this,"_workbookSelections"),fe(this,"_renderDisposable",null),this._context=t,this._logService=o,this._commandService=s,this._contextService=l,this._workbookSelections=i.getWorkbookSelections(this._context.unitId),this._init()}_init(){const t=this._getSheetObject();this._initEventListeners(t),this._initSelectionChangeListener(),this._initThemeChangeListener(),this._initSkeletonChangeListener(),this._initUserActionSyncListener()}_initEventListeners(t){const{spreadsheetRowHeader:e,spreadsheetColumnHeader:n,spreadsheet:r,spreadsheetLeftTopPlaceholder:i}=t,{scene:a}=this._context;this.disposeWithMe(r==null?void 0:r.onPointerDown$.subscribeEvent((o,s)=>{this._normalSelectionDisabled()||(this._onPointerDown(o,r.zIndex+1,it.NORMAL,this._getActiveViewport(o)),o.button!==2&&s.stopPropagation())})),this.disposeWithMe(e==null?void 0:e.onPointerDown$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;const l=this._sheetSkeletonManagerService.getCurrent().skeleton,{row:u}=p1(o.offsetX,o.offsetY,a,l);Are(this._workbookSelections.getCurrentSelections(),u)||(this._onPointerDown(o,(r.zIndex||1)+1,it.ROW,this._getActiveViewport(o),Rs.Y),o.button!==2&&s.stopPropagation())})),this.disposeWithMe(n==null?void 0:n.onPointerDown$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;const l=this._sheetSkeletonManagerService.getCurrent().skeleton,{column:u}=p1(o.offsetX,o.offsetY,a,l);wre(this._workbookSelections.getCurrentSelections(),u)||(this._onPointerDown(o,(r.zIndex||1)+1,it.COLUMN,this._getActiveViewport(o),Rs.X),o.button!==2&&s.stopPropagation())})),this.disposeWithMe(i==null?void 0:i.onPointerDown$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;this._reset();const l=this._sheetSkeletonManagerService.getCurrent().skeleton,u=Rx(l),c=Vf(u,l);this._addSelectionControlBySelectionData(c),this.refreshSelectionMoveStart(),o.button!==2&&s.stopPropagation()}))}_initThemeChangeListener(){this.disposeWithMe(this._themeService.currentTheme$.subscribe(()=>{this._resetSelectionStyle();const t=this._workbookSelections.getCurrentSelections();t&&this._refreshSelectionControl(t)}))}_normalSelectionDisabled(){return this._contextService.getContextValue(g0)}_initSelectionChangeListener(){this.disposeWithMe(this._workbookSelections.selectionMoveEnd$.subscribe(t=>{this._reset();for(const e of t){const n=Vf(e,this._skeleton);this._addSelectionControlBySelectionData(n)}}))}_initUserActionSyncListener(){this.disposeWithMe(this.selectionMoveStart$.subscribe(t=>this._updateSelections(t,eh.MOVE_START))),this.disposeWithMe(this.selectionMoving$.subscribe(t=>this._updateSelections(t,eh.MOVING))),this.disposeWithMe(this._contextService.subscribeContextValue$(g0).pipe(Du(!1),Hl()).subscribe(t=>{var e;t?((e=this._renderDisposable)==null||e.dispose(),this._renderDisposable=null,this._reset()):this._renderDisposable=$t(this.selectionMoveEnd$.subscribe(n=>this._updateSelections(n,eh.MOVE_END)))}))}_updateSelections(t,e){const n=this._context.unit,r=n.getUnitId(),i=n.getActiveSheet().getSheetId();t.length!==0&&this._commandService.executeCommand(Pr.id,{unitId:r,subUnitId:i,type:e,selections:t.map(a=>kg(a))})}_initSkeletonChangeListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{var e,n;if(t==null){this._logService.error("[SelectionRenderService]: should not receive null!");return}const r=this._context.unitId,{sheetId:i,skeleton:a}=t,{scene:o}=this._context,s=o.getViewport(an.VIEW_MAIN),l=(n=(e=this._skeleton)==null?void 0:e.worksheet)==null?void 0:n.getSheetId();if(this._changeRuntime(a,o,s),this._normalSelectionDisabled())return;if(l!==a.worksheet.getSheetId()){const c=this._workbookSelections.getCurrentSelections();this._commandService.syncExecuteCommand(Pr.id,{unitId:r,subUnitId:i,selections:c.length!==0?c:[Ax(a)]})}const u=this._workbookSelections.getCurrentSelections();u!=null&&this._refreshSelectionControl(u)}))}_getActiveViewport(t){const e=this._getSheetObject();return e==null?void 0:e.scene.getActiveViewportByCoord(cn.FromArray([t.offsetX,t.offsetY]))}_getSheetObject(){return Ad(this._context.unit,this._context)}},N(IV,"SheetSelectionRenderService"),IV);NY=hQt([Sm(1,se(Wn)),Sm(2,se(Ja)),Sm(3,Bu),Sm(4,se(Bt)),Sm(5,se(Gr)),Sm(6,Ra),Sm(7,me),Sm(8,ui)],NY);var fQt=Object.defineProperty,mQt=Object.getOwnPropertyDescriptor,gQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?mQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fQt(e,n,i),i},"__decorateClass$C"),hue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$C"),PV;let K8=(PV=class extends et{constructor(t,e){super(),fe(this,"_previousSheetIndex",-1),this._commandService=t,this._univerInstanceService=e,this.disposeWithMe(this._commandService.beforeCommandExecuted(n=>{if(n.id===Ls.id)return this._beforeAdjustActiveSheetOnRemoveSheet(n)})),this.disposeWithMe(this._commandService.onCommandExecuted((n,r)=>{if(n.id===Ls.id)return this._adjustActiveSheetOnRemoveSheet(n);if(n.id===Ul.id&&n.params.hidden)return this._adjustActiveSheetOnHideSheet(n);if(!(r!=null&&r.fromCollab)){if(n.id===Dl.id)return this._adjustActiveSheetOnInsertSheet(n);if(n.id===Ul.id&&!n.params.hidden)return this._adjustActiveSheetOnShowSheet(n)}}))}_adjustActiveSheetOnHideSheet(t){var e;const{unitId:n,subUnitId:r}=t.params,i=this._univerInstanceService.getUniverSheetInstance(n);if(!i||((e=i.getActiveSheet())==null?void 0:e.getSheetId())!==r)return;const a=i.getActiveSheetIndex(),o=kY(i,a);this._switchToNextSheet(n,o)}_beforeAdjustActiveSheetOnRemoveSheet(t){const{unitId:e,subUnitId:n}=t.params,r=this._univerInstanceService.getUniverSheetInstance(e);if(!r)return;const i=r.getSheetBySheetId(n);i&&(this._previousSheetIndex=r.getSheetIndex(i))}_adjustActiveSheetOnRemoveSheet(t){if(this._previousSheetIndex===-1)return;const{unitId:e}=t.params,n=this._univerInstanceService.getUniverSheetInstance(e);if(n&&n.getActiveSheet().getSheetId()===t.params.subUnitId){const r=this._previousSheetIndex,i=r>=1?r-1:0,a=kY(n,i);this._switchToNextSheet(e,a)}}_adjustActiveSheetOnInsertSheet(t){const{unitId:e,sheet:n}=t.params;this._switchToNextSheet(e,n.id)}_adjustActiveSheetOnShowSheet(t){const{unitId:e,subUnitId:n}=t.params;this._switchToNextSheet(e,n)}_switchToNextSheet(t,e){this._commandService.executeCommand(Ha.id,{unitId:t,subUnitId:e})}},N(PV,"ActiveWorksheetController"),PV);K8=gQt([yn(Vt.Ready,K8),hue(0,me),hue(1,Ce)],K8);function kY(t,e){const n=t.getSheetSize();for(let r=e;r>-1;r--){const i=t.getSheetByIndex(r);if(!i.getConfig().hidden)return i.getSheetId()}for(let r=e;r<n;r++){const i=t.getSheetByIndex(r);if(!i.getConfig().hidden)return i.getSheetId()}throw new Error("[ActiveWorksheetController]: could not find the next unhidden sheet! Collaboration error perhaps.")}N(kY,"findTheNextUnhiddenSheet");const Ize="univer.sheet.cell-alert";var pQt=Object.defineProperty,vQt=Object.getOwnPropertyDescriptor,_Qt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?vQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pQt(e,n,i),i},"__decorateClass$B"),n5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$B"),MV;let _7=(MV=class extends et{constructor(t,e,n,r,i){super(),this._globalPopupManagerService=t,this._renderManagerService=e,this._univerInstanceService=n,this._refRangeService=r,this._commandService=i}_createPositionObserver(t,e,n,r){const i=N(()=>{const{scene:l}=e,u=cje(t,l,n,r),c=e.engine.getCanvasElement(),d=c.getBoundingClientRect(),h=FY(c.style.width),f=d.width/h;return{left:u.left*f+d.left,right:u.right*f+d.left,top:u.top*f+d.top,bottom:u.bottom*f+d.top}},"calc"),a=i(),o=new Pn(a),s=new Gi;return s.add(this._commandService.onCommandExecuted(l=>{(l.id===yp.id||l.id===Uf.id)&&o.next(i())})),{position:a,position$:o,disposable:s}}attachPopupToObject(t,e){var n;const r=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),i=r.getActiveSheet();if(!i)return{dispose:N(()=>{},"dispose"),canDispose:N(()=>!0,"canDispose")};const a=r.getUnitId(),o=i.getSheetId(),s=(n=this._renderManagerService.getRenderById(a))==null?void 0:n.with(Gr).getOrCreateSkeleton({sheetId:o}),l=this._renderManagerService.getRenderById(a);if(!l||!s)return{dispose:N(()=>{},"dispose"),canDispose:N(()=>!0,"canDispose")};const{left:u,top:c,width:d,height:h}=t,f={left:u,right:u+d,top:c,bottom:c+h},{position:m,position$:g,disposable:p}=this._createPositionObserver(f,l,s,i),v=this._globalPopupManagerService.addPopup({...e,unitId:a,subUnitId:o,anchorRect:m,anchorRect$:g,canvasElement:l.engine.getCanvasElement()});return{dispose:N(()=>{this._globalPopupManagerService.removePopup(v),g.complete(),p.dispose()},"dispose"),canDispose:N(()=>this._globalPopupManagerService.activePopupId!==v,"canDispose")}}attachPopupByPosition(t,e,n,r){var i;const a=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),o=a.getActiveSheet();if(!o)return null;const s=a.getUnitId(),l=o.getSheetId();if(n&&s!==n||r&&r!==l)return null;const u=(i=this._renderManagerService.getRenderById(s))==null?void 0:i.with(Gr).getOrCreateSkeleton({sheetId:l}),c=this._renderManagerService.getRenderById(s);if(!c||!u)return null;const{position:d,position$:h,disposable:f}=this._createPositionObserver(t,c,u,o),m=this._globalPopupManagerService.addPopup({...e,unitId:s,subUnitId:l,anchorRect:d,anchorRect$:h,canvasElement:c.engine.getCanvasElement()});return{dispose:N(()=>{this._globalPopupManagerService.removePopup(m),h.complete(),f.dispose()},"dispose"),canDispose:N(()=>this._globalPopupManagerService.activePopupId!==m,"canDispose")}}attachPopupToAbsolutePosition(t,e,n,r){var i;const a=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),o=a.getActiveSheet();if(!o)return null;const s=a.getUnitId(),l=o.getSheetId();if(n&&s!==n||r&&r!==l)return null;const u=(i=this._renderManagerService.getRenderById(s))==null?void 0:i.with(Gr).getOrCreateSkeleton({sheetId:l}),c=this._renderManagerService.getRenderById(s);if(!c||!u)return null;const d=new Pn(t),h=this._globalPopupManagerService.addPopup({...e,unitId:s,subUnitId:l,anchorRect:t,anchorRect$:d.asObservable(),canvasElement:c.engine.getCanvasElement()});return{dispose:N(()=>{this._globalPopupManagerService.removePopup(h),d.complete()},"dispose"),canDispose:N(()=>this._globalPopupManagerService.activePopupId!==h,"canDispose")}}attachPopupToCell(t,e,n,r,i,a,o=!1){const s=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),l=s.getActiveSheet();if(!l)return null;const u=s.getUnitId(),c=l.getSheetId();if(r&&u!==r||i&&c!==i)return null;const d=this._renderManagerService.getRenderById(u),h=d==null?void 0:d.with(Gr).getOrCreateSkeleton({sheetId:c}),f=d==null?void 0:d.with(Ds);if(!d||!h||!f)return null;if(f.selectionMoving&&!o)return;const m=a??uje(t,e,d.scene,l);if(!m)return null;const{position:g,position$:p,disposable:v,updateRowCol:_}=this._createCellPositionObserver(t,e,d,h,m),C=this._globalPopupManagerService.addPopup({...n,unitId:u,subUnitId:c,anchorRect:g,anchorRect$:p,canvasElement:d.engine.getCanvasElement()}),S=new Gi;S.add(v),S.add($t(()=>{this._globalPopupManagerService.removePopup(C),p.complete()}));const b={startRow:t,endRow:t,startColumn:e,endColumn:e};return S.add(this._refRangeService.watchRange(u,c,b,(y,A)=>{A?_(A.startRow,A.startColumn):S.dispose()})),{dispose(){S.dispose()},canDispose:N(()=>this._globalPopupManagerService.activePopupId!==C,"canDispose")}}_createCellPositionObserver(t,e,n,r,i){let a=t,o=e;const s=this._calcCellPositionByCell(a,o,n,r,i),l=new Pn(s),u=N(()=>l.next(this._calcCellPositionByCell(a,o,n,r,i)),"updatePosition"),c=new Gi;return c.add(n.engine.clientRect$.subscribe(()=>u())),c.add(this._commandService.onCommandExecuted(d=>{if(d.id===Nf.id&&d.params.rowsAutoHeightInfo.findIndex(h=>h.row===a)>-1){u();return}(Nne.indexOf(d.id)>-1||d.id===yp.id||d.id===Uf.id)&&u()})),{position$:l,disposable:c,position:s,updateRowCol:N((d,h)=>{a=d,o=h,u()},"updateRowCol")}}_calcCellPositionByCell(t,e,n,r,i){const{scene:a,engine:o}=n,s=r.getCellByIndex(t,e),l=s.isMergedMainCell?s.mergeInfo:s,{scaleX:u,scaleY:c}=a.getAncestorScale(),d={x:i.viewportScrollX,y:i.viewportScrollY},h=o.getCanvasElement(),f=h.getBoundingClientRect(),m=FY(h.style.width),{top:g,left:p,width:v}=f,_=v/m;return{left:(l.startX-d.x)*_*u+p,right:(l.endX-d.x)*_*u+p,top:(l.startY-d.y)*_*c+g,bottom:(l.endY-d.y)*_*c+g}}},N(MV,"SheetCanvasPopManagerService"),MV);_7=_Qt([n5(0,se(zS)),n5(1,Sr),n5(2,Ce),n5(3,se(ff)),n5(4,me)],_7);function FY(t){return Number.parseInt(t.replace("px",""))}N(FY,"pxToNum");var CQt=Object.defineProperty,SQt=Object.getOwnPropertyDescriptor,bQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?SQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&CQt(e,n,i),i},"__decorateClass$A"),fue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$A"),jg=(t=>(t[t.INFO=0]="INFO",t[t.WARNING=1]="WARNING",t[t.ERROR=2]="ERROR",t))(jg||{}),TV;let Ap=(TV=class extends et{constructor(t,e){super(),fe(this,"_currentAlert$",new Zt),fe(this,"_currentAlert",new Map),fe(this,"currentAlert$",this._currentAlert$.asObservable()),this._renderManagerService=t,this._canvasPopManagerService=e,this.disposeWithMe(()=>{this._currentAlert$.complete()})}get currentAlert(){return this._currentAlert}showAlert(t){let e=this._currentAlert.get(t.key);e&&e.dispose.dispose(),e?e.dispose.dispose():(e={alert:t,dispose:{dispose(){}}},this._currentAlert.set(t.key,e));const{location:n}=t,{row:r,col:i,unitId:a}=n;if(!this._renderManagerService.getRenderById(a))return;const o=this._canvasPopManagerService.attachPopupToCell(r,i,{componentKey:Ize,direction:"horizontal",offset:[2,0],extraProps:{alert:t}});o&&(e.dispose=o),this._currentAlert$.next(Array.from(this._currentAlert.entries()))}removeAlert(t){const e=this._currentAlert.get(t);e&&(this._currentAlert.delete(t),e==null||e.dispose.dispose(),this._currentAlert$.next(Array.from(this._currentAlert.entries())))}clearAlert(){this._currentAlert.forEach(t=>{t.dispose.dispose()}),this._currentAlert.clear(),this._currentAlert$.next(Array.from(this._currentAlert.entries()))}},N(TV,"CellAlertManagerService"),TV);Ap=bQt([fue(0,Sr),fue(1,se(_7))],Ap);const yQt="univer-cell-alert",EQt="univer-cell-alert-title",RQt="univer-cell-alert-icon",AQt="univer-cell-alert-icon-error",wQt="univer-cell-alert-icon-info",DQt="univer-cell-alert-icon-warning",IQt="univer-cell-alert-content",Mh={cellAlert:yQt,cellAlertTitle:EQt,cellAlertIcon:RQt,cellAlertIconError:AQt,cellAlertIconInfo:wQt,cellAlertIconWarning:DQt,cellAlertContent:IQt};function Pze({popup:t}){var e;const n=(e=t.extraProps)==null?void 0:e.alert;if(!n)return null;const{type:r,title:i,message:a}=n,o={[jg.ERROR]:J.jsx(lre,{className:hr(Mh.cellAlertIcon,Mh.cellAlertIconError)}),[jg.INFO]:J.jsx(_Y,{className:hr(Mh.cellAlertIcon,Mh.cellAlertIconInfo)}),[jg.WARNING]:J.jsx(_Y,{className:hr(Mh.cellAlertIcon,Mh.cellAlertIconWarning)})};return J.jsxs("div",{className:Mh.cellAlert,children:[J.jsxs("div",{className:Mh.cellAlertTitle,children:[r?o[r]:null,i]}),J.jsx("div",{className:Mh.cellAlertContent,children:a})]})}N(Pze,"CellAlert");var PQt=Object.defineProperty,MQt=Object.getOwnPropertyDescriptor,TQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?MQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&PQt(e,n,i),i},"__decorateClass$z"),LQt=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$z"),LV;let Z8=(LV=class extends et{constructor(t,e){super(),this._context=t,this._componentManager=e,this._initComponent()}_initComponent(){this._componentManager.register(Ize,Pze)}},N(LV,"CellAlertRenderController"),LV);Z8=TQt([yn(Vt.Starting,Z8),LQt(1,se(ja))],Z8);function Mze(t,e,n,r,i){const a=[],o=[];if(r.copyType===$d.CUT){const{undos:s,redos:l}=Tze(t,e,i);a.push(...l),o.push(...s)}else{const{undos:s,redos:l}=Lre(e,n,i);a.push(...l),o.push(...s);const{undos:u,redos:c}=Mre(e,t,n,i);a.push(...c),o.push(...u);const{undos:d,redos:h}=Tre(e,n,i,!0);a.push(...h),o.push(...d);const{undos:f,redos:m}=mP(e,n,i);a.push(...m),o.push(...f)}return{undos:o,redos:a}}N(Mze,"getDefaultOnPasteCellMutations");function Tze(t,e,n){let r=[],i=[];const{range:a,subUnitId:o,unitId:s}=t,{range:l,subUnitId:u}=e,c=l?$0(l):null,d=a?$0(a):null;if(d&&c){const h=n.get(Ce),f=n.get(Tr),m=h.getUniverSheetInstance(s),g=m==null?void 0:m.getSheetBySheetId(o),p=m==null?void 0:m.getSheetBySheetId(u);if(g&&p){const v=new Ct,_=new Ct,C=g.getCellMatrix(),S=p.getCellMatrix();Gn.foreach(d,(z,F)=>{v.setValue(z,F,Ie.deepClone(C.getValue(z,F))),_.setValue(z,F,null)});const b=new Ct;Gn.foreach(c,(z,F)=>{b.setValue(z,F,Ie.deepClone(S.getValue(z,F)))});const y=new Ct;Gn.foreach(d,(z,F)=>{const H=DC(z,F),W=ft.getRelativeRange(H,d),K=ft.getPositionRange(W,c);y.setValue(K.startRow,K.startColumn,C.getValue(z,F))});const A={fromRange:d,toRange:c,from:{value:_.getMatrix(),subUnitId:o},to:{value:y.getMatrix(),subUnitId:u},unitId:s},w={fromRange:c,toRange:d,from:{value:v.getMatrix(),subUnitId:o},to:{value:b.getMatrix(),subUnitId:u},unitId:s},P=f.onCommandExecute({id:F0.id,params:{toRange:c,fromRange:d}}),M=g.getMergeData(),L=p.getMergeData(),k=M.filter(z=>ft.intersects(z,d)),O=L.filter(z=>ft.intersects(z,c)),$=k.map(z=>ft.getRelativeRange(z,d)).map(z=>ft.getPositionRange(z,c)),B=c9($).filter(z=>!L.some(F=>ft.equals(z,F))),V=[{id:Di.id,params:{unitId:s,subUnitId:o,ranges:k}},{id:Di.id,params:{unitId:s,subUnitId:o,ranges:O}},{id:yi.id,params:{unitId:s,subUnitId:u,ranges:B}}],X=[{id:Di.id,params:{unitId:s,subUnitId:u,ranges:B}},{id:yi.id,params:{unitId:s,subUnitId:u,ranges:O}},{id:yi.id,params:{unitId:s,subUnitId:o,ranges:k}}];r=[{id:$l.id,params:A},...P.redos,...V,{id:Pr.id,params:{unitId:s,subUnitId:u,selections:[{range:c}]}}],i=[{id:$l.id,params:w},...P.undos,...X,{id:Pr.id,params:{unitId:s,sheetId:o,selections:[{range:d}]}}]}}return{undos:i,redos:r}}N(Tze,"getMoveRangeMutations");function Mre(t,e,n,r){const{unitId:i,subUnitId:a,range:o}=t,s=[],l=[],{mapFunc:u}=Bf([o]),c=new Ct;n.forValue((f,m,g)=>{var p;let v;if(!g.p&&g.v&&!e){const S=String(g.v),b=Fi.parseValue(S);(b==null?void 0:b.v)!==void 0&&typeof b.v=="number"&&(v=b.v)}const{row:_,col:C}=u(f,m);(p=g.p)!=null&&p.body?c.setValue(_,C,Ie.deepClone({p:g.p,v:v??g.v})):c.setValue(_,C,Ie.deepClone({v:v??g.v,t:g.t}))});const d={unitId:i,subUnitId:a,cellValue:Ie.deepClone(c.getMatrix())};s.push({id:Mn.id,params:d});const h=No(r,d);return l.push({id:Mn.id,params:h}),{undos:l,redos:s}}N(Mre,"getSetCellValueMutations");function Tre(t,e,n,r=!1){const i=[],a=[],{unitId:o,subUnitId:s,range:l}=t,u=new Ct,{mapFunc:c}=Bf([l]);e.forValue((f,m,g)=>{var p,v;const _={s:Object.assign({},{...ba,pd:hz,bg:null,cl:null},g.s)};r&&(p=g.p)!=null&&p.body&&(_.p=g.p);const C=String(g.v),S=Fi.parseValue(C);S!=null&&S.z&&(_.s||(_.s={}),typeof _.s=="object"&&((v=_.s)!=null&&v.n?_.s.n.pattern=S.z:_.s.n={pattern:S.z}));const{row:b,col:y}=c(f,m);u.setValue(b,y,_)});const d={unitId:o,subUnitId:s,cellValue:Ie.deepClone(u.getMatrix())};i.push({id:Mn.id,params:d});const h=No(n,d);return a.push({id:Mn.id,params:h}),{undos:a,redos:i}}N(Tre,"getSetCellStyleMutations");function Lre(t,e,n){const r=[],i=[],a=new Ct,{unitId:o,subUnitId:s,range:l}=t,{mapFunc:u}=Bf([l]);if(e.forValue((c,d,h)=>{if(h.s){const{row:f,col:m}=u(c,d);a.setValue(f,m,{s:null})}}),a.getLength()>0){const c={subUnitId:s,unitId:o,cellValue:Ie.deepClone(a.getMatrix())};r.push({id:Mn.id,params:c});const d=No(n,c);i.push({id:Mn.id,params:d})}return{undos:i,redos:r}}N(Lre,"getClearCellStyleMutations");function mP(t,e,n){const r=[],i=[],{unitId:a,subUnitId:o,range:s}=t,{startColumn:l,startRow:u,endColumn:c,endRow:d}=$0(s),h=[];e.forValue((v,_,C)=>{if(C.rowSpan&&C.rowSpan>1){const S=C.colSpan||1,b={startRow:u+v,endRow:u+v+C.rowSpan-1,startColumn:l+_,endColumn:l+_+S-1};h.push(b)}else if(C.colSpan&&C.colSpan>1){const S=C.rowSpan||1,b={startRow:u+v,endRow:u+v+S-1,startColumn:l+_,endColumn:l+_+C.colSpan-1};h.push(b)}});const f=n.get(Ce).getUniverSheetInstance(a),m=f==null?void 0:f.getSheetBySheetId(o);if(f&&m){const v=m.getMergeData().filter(S=>ft.intersects({startRow:u,startColumn:l,endRow:d,endColumn:c},S)),_={unitId:a,subUnitId:o,ranges:v};r.push({id:Di.id,params:_});const C=fl(n,_);i.push({id:yi.id,params:C})}const g={unitId:a,subUnitId:o,ranges:h};h.length>0&&r.push({id:yi.id,params:g});const p=ou(n,g);return h.length>0&&i.push({id:Di.id,params:p}),{undos:i,redos:r}}N(mP,"getClearAndSetMergeMutations");function Lze(t){if(!t.includes("\r")&&Ie.isLegalUrl(t)){const r=Vl(),i=`${wt.CUSTOM_RANGE_START}${t}${wt.CUSTOM_RANGE_END}`,a={startIndex:0,endIndex:i.length-1,rangeId:r,rangeType:cd.HYPERLINK,properties:{url:t}};return{dataStream:`${i}\r |
|
|
`,customRanges:[a]}}let e=t.replace(/(\r\n|\n)/g,"\r");e.endsWith(`\r |
|
|
`)||(e+=`\r |
|
|
`);const n=[];for(let r=0;r<e.length;r++)e[r]==="\r"&&n.push({startIndex:r});return{dataStream:e,paragraphs:n,sectionBreaks:[{startIndex:e.indexOf(` |
|
|
`)}]}}N(Lze,"generateBody");var xQt=Object.defineProperty,OQt=Object.getOwnPropertyDescriptor,NQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?OQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&xQt(e,n,i),i},"__decorateClass$y"),Th=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$y"),xV;let J8=(xV=class extends Da{constructor(t,e,n,r,i,a,o,s,l){var u;super(),this._injector=t,this._currentUniverSheet=e,this._renderManagerService=n,this._commandService=r,this._contextService=i,this._configService=a,this._sheetClipboardService=o,this._messageService=s,this._localService=l,this._init();const c=(u=this._renderManagerService.getRenderById(Yo))==null?void 0:u.with(Ms);c&&c.onPaste$.pipe(_a(this.dispose$)).subscribe(d=>{var h,f;if(!na(this._contextService))return;d.event.preventDefault();const m=d.event,g=(h=m.clipboardData)==null?void 0:h.getData("text/html"),p=(f=m.clipboardData)==null?void 0:f.getData("text/plain");this._commandService.executeCommand(IY.id,{htmlContent:g,textContent:p})})}_init(){[ih,I$e,ud].forEach(e=>this.disposeWithMe(this._commandService.registerMultipleCommand(e))),[Y8,X8,f4,G8,IY].forEach(e=>this.disposeWithMe(this._commandService.registerCommand(e))),this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initCopyingHooks())),this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._initPastingHook()));const t=this._initSpecialPasteHooks().map(e=>this._sheetClipboardService.addClipboardHook(e));this.disposeWithMe({dispose:N(()=>t.forEach(e=>e.dispose()),"dispose")})}_initCopyingHooks(){const t=this;let e=null;return{id:ka.DEFAULT_COPY,isDefaultHook:!0,onBeforeCopy(n,r){e=t._getWorksheet(n,r)},onCopyCellContent(n,r){var i,a,o,s;const l=e.getCell(n,r);return(a=(i=l==null?void 0:l.p)==null?void 0:i.body)!=null&&a.paragraphs||(s=(o=l==null?void 0:l.p)==null?void 0:o.body)!=null&&s.textRuns?S1e(l.p.body):l?rM(l):""},onCopyCellStyle:N((n,r,i,a)=>{const o={};(i||a)&&(o.rowspan=`${i||1}`,o.colspan=`${a||1}`);const s=e.getRange(n,r),l=e.getMergedCell(n,r),u=s.getTextStyle();let c="";if(u&&(c=RH(u)),l){const d=l.endRow,h=l.endColumn,f=e.getRange(d,h).getTextStyle();if(f){const m=RH(f);c?c+=m?`;${m}`:"":c=m}}return c&&(o.style=c),o},"onCopyCellStyle"),onCopyColumn(n){return{width:`${e.getColumnWidth(n)}`}},onCopyRow(n){return{style:`height: ${e.getRowHeight(n)}px;`}},onAfterCopy(){e=null},getFilteredOutRows(n){var r;const{startRow:i,endRow:a}=n,o=(r=t._currentUniverSheet.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:r.getActiveSheet(),s=[];if(!o)return s;for(let l=i;l<=a;l++)o.getRowFiltered(l)&&s.push(l);return s}}}_initPastingHook(){const t=this;let e=null,n=null,r=null;return{id:ka.DEFAULT_PASTE,isDefaultHook:!0,onBeforePaste({unitId:i,subUnitId:a,range:o}){r=t._getWorksheet(i,a),e=i,n=a;const s=t._configService.getConfig(rHe),l=o.rows[o.rows.length-1],u=o.cols[o.cols.length-1];return s&&l*u>s?(t._messageService.show({type:hT.Error,content:t._localService.t("clipboard.paste.exceedMaxCells")}),!1):!0},onPasteRows(i,a){const{range:o}=i,s=[],l=[],u=r.getMaxRows(),c=u-1,d=o.rows[o.rows.length-1]-c,h=a.length-d,f=r.getRowManager();if(d>0){const p={};a.slice(h).forEach((C,S)=>{const{height:b}=C||{};b&&(p[S]={h:Number.parseFloat(b),hd:at.FALSE})});const v={startColumn:o.cols[0],endColumn:o.cols[o.cols.length-1],endRow:o.rows[o.rows.length-1],startRow:u},_={unitId:e,subUnitId:n,range:v,rowInfo:p};s.push({id:A1.id,params:_}),l.push({id:Tu.id,params:{unitId:e,subUnitId:n,range:v}})}const m={},g={};if(a.slice(0,h).forEach((p,v)=>{var _,C;const{height:S}=p;if(S){const b=f.getRow(o.rows[0]+v),y=Number.parseFloat(S);if(b){const{h:A=uw,ah:w=0}=b,P=Math.max(A,w);y>P?(m[v+o.rows[0]]=y,g[v+o.rows[0]]=P):(m[v+o.rows[0]]=P,g[v+o.rows[0]]=P)}else m[v+o.rows[0]]=y,g[v+o.rows[0]]=(C=(_=f.getRow(o.rows[0]+v))==null?void 0:_.h)!=null?C:uw}}),Object.keys(m).length){const p={unitId:e,subUnitId:n,ranges:[{startRow:o.rows[0],endRow:Math.min(o.rows[o.rows.length-1],u),startColumn:o.cols[0],endColumn:o.cols[o.cols.length-1]}],rowHeight:m};s.push({id:hc.id,params:p}),l.push({id:hc.id,params:{...p,rowHeight:g}})}return{redos:s,undos:l}},onPasteColumns(i,a,o){var s;const{range:l}=i,u=[],c=[],d=r.getMaxColumns(),h=d-1,f=l.cols[l.cols.length-1]-h,m=a.length-f,g=(s=t._configService.getConfig(Xie))!=null?s:BH,p=l.cols,v=p[0];if(f>0){const C={startRow:l.rows[0],endRow:l.rows[l.rows.length-1],endColumn:l.cols[l.cols.length-1],startColumn:d},S={unitId:e,subUnitId:n,range:C,colInfo:a.slice(m).map((b,y)=>({w:b.width?Math.max(+b.width,r.getColumnWidth(p[y])):g,hd:at.FALSE}))};u.push({id:w1.id,params:S}),c.push({id:Wl.id,params:{unitId:e,subUnitId:n,range:C}})}const _={unitId:e,subUnitId:n,ranges:[{startRow:l.rows[0],endRow:l.rows[l.rows.length-1],startColumn:l.cols[0],endColumn:Math.min(l.cols[l.cols.length-1],d)}]};if(a.length>0){const C={..._,colWidth:a.slice(0,m).reduce((b,y,A)=>{var w;return b[A+v]=y.width?Math.max(+y.width,(w=r.getColumnWidth(p[A]))!=null?w:g):g,b},{})},S={..._,colWidth:a.slice(0,m).reduce((b,y,A)=>{var w;return b[A+v]=(w=r.getColumnWidth(p[A]))!=null?w:g,b},{})};u.push({id:Xs.id,params:C}),c.push({id:Xs.id,params:S})}return{redos:u,undos:c}},onPastePlainText(i,a,o){return t._onPastePlainText(i,a,o)},onPasteCells(i,a,o,s){return t._onPasteCells(i,a,o,s)},onAfterPaste(i){r=null}}}_generateDocumentDataModelSnapshot(t){var e,n;const r=(e=this._renderManagerService.withCurrentTypeOfUnit(le.UNIVER_SHEET,Gr))==null?void 0:e.getCurrent();if(r==null)return null;const{skeleton:i}=r,a=(n=i.getBlankCellDocumentModel())==null?void 0:n.documentModel,o={...a==null?void 0:a.getSnapshot(),...t};return a==null||a.reset(o),a==null?void 0:a.getSnapshot()}_onPastePlainText(t,e,n){const{range:r,unitId:i,subUnitId:a}=t;let o;if(/\r|\n/.test(e)||Ie.isLegalUrl(e)){const l=Lze(e),u=this._generateDocumentDataModelSnapshot({body:l});o={[r.rows[0]]:{[r.cols[0]]:{p:u}}}}else Ar(e)?o={[r.rows[0]]:{[r.cols[0]]:{f:e}}}:o={[r.rows[0]]:{[r.cols[0]]:{v:e}}};const s={unitId:i,subUnitId:a,cellValue:o};return{redos:[{id:Mn.id,params:s}],undos:[{id:Mn.id,params:No(this._injector,s)}]}}_onPasteCells(t,e,n,r){return this._injector.invoke(i=>Mze(t,e,n,r,i))}_initSpecialPasteHooks(){const t=this,e={id:ka.SPECIAL_PASTE_VALUE,specialPasteInfo:{label:"specialPaste.value"},onPasteCells:N((a,o,s)=>this._injector.invoke(l=>Mre(o,a,s,l)),"onPasteCells")},n={id:ka.SPECIAL_PASTE_FORMAT,specialPasteInfo:{label:"specialPaste.format"},onPasteCells:N((a,o,s)=>{const l=[],u=[],{undos:c,redos:d}=this._injector.invoke(p=>Lre(o,s,p));l.push(...d),u.push(...c);const{undos:h,redos:f}=this._injector.invoke(p=>mP(o,s,p));l.push(...f),u.push(...h);const{undos:m,redos:g}=this._injector.invoke(p=>Tre(o,s,p));return l.push(...g),u.push(...m),{undos:u,redos:l}},"onPasteCells")},r={id:ka.SPECIAL_PASTE_COL_WIDTH,specialPasteInfo:{label:"specialPaste.colWidth"},onPasteCells(){return{undos:[],redos:[]}},onPasteColumns(a,o,s){var l,u;const c=t._currentUniverSheet.getCurrentUnitForType(le.UNIVER_SHEET),d=c.getUnitId(),h=(l=c.getActiveSheet())==null?void 0:l.getSheetId();if(!d||!h)throw new Error("Cannot find unitId or subUnitId");const f=[],m=[],g=t._getWorksheet(d,h),{range:p}=a,v=p.cols,_=v[0],C=g.getMaxColumns(),S=p.cols[p.cols.length-1]-C,b=o.length-S,y=(u=t._configService.getConfig(Xie))!=null?u:BH,A={unitId:d,subUnitId:h,ranges:[{startRow:p.rows[0],endRow:Math.min(p.cols[p.cols.length-1],C),startColumn:p.cols[0],endColumn:p.cols[p.cols.length-1]}],colWidth:o.slice(0,b).reduce((P,M,L)=>{var k;return P[L+_]=M.width?Math.max(+M.width,(k=g.getColumnWidth(v[L]))!=null?k:y):y,P},{})},w={unitId:d,subUnitId:h,ranges:[{startRow:p.rows[0],endRow:Math.min(p.cols[p.cols.length-1],C),startColumn:p.cols[0],endColumn:p.cols[p.cols.length-1]}],colWidth:o.slice(0,b).reduce((P,M,L)=>{var k;return P[L+_]=(k=g.getColumnWidth(v[L]))!=null?k:y,P},{})};return f.push({id:Xs.id,params:A}),m.push({id:Xs.id,params:w}),{redos:f,undos:m}}},i={id:ka.SPECIAL_PASTE_BESIDES_BORDER,specialPasteInfo:{label:"specialPaste.besidesBorder"},onPasteCells:N((a,o,s,l)=>{t._currentUniverSheet.getCurrentUnitForType(le.UNIVER_SHEET);const u=[],c=[],{range:d,unitId:h,subUnitId:f}=o,m=new Ct;s.forValue((C,S,b)=>{const y=b.s;typeof y=="object"&&m.setValue(d.rows[C],d.cols[S],{s:{...y,bd:void 0},v:b.v})});const g={unitId:h,subUnitId:f,cellValue:m.getData()};u.push({id:Mn.id,params:g});const p=this._injector.invoke(No,g);c.push({id:Mn.id,params:p});const{undos:v,redos:_}=this._injector.invoke(C=>mP(o,s,C));return c.push(...v),u.push(..._),{redos:u,undos:c}},"onPasteCells")};return[e,n,r,i]}_getWorksheet(t,e){var n;const r=(n=this._currentUniverSheet.getUniverSheetInstance(t))==null?void 0:n.getSheetBySheetId(e);if(!r)throw new Error(`[SheetClipboardController]: cannot find a worksheet with unitId ${t} and subUnitId ${e}.`);return r}},N(xV,"SheetClipboardController"),xV);J8=NQt([yn(Vt.Rendered,J8),Th(0,se(Wn)),Th(1,Ce),Th(2,Sr),Th(3,me),Th(4,ui),Th(5,Za),Th(6,Eh),Th(7,Qp),Th(8,se(sn))],J8);const kQt="sheets-ui.config",xze={};var FQt=Object.defineProperty,VQt=Object.getOwnPropertyDescriptor,BQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?VQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&FQt(e,n,i),i},"__decorateClass$x"),r5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$x"),OV;let RA=(OV=class extends et{constructor(t,e,n,r,i){super(),this._selectionManagerService=t,this._themeService=e,this._instanceSrv=n,this._cmdSrv=r,this._definedNamesService=i,this._init()}_init(){this.disposeWithMe(Qa(this._selectionManagerService.selectionMoveStart$,this._selectionManagerService.selectionMoving$,this._selectionManagerService.selectionMoveEnd$).pipe(mo(t=>!!t)).subscribe(t=>{this._syncDefinedNameRange(t)})),this.disposeWithMe(this._definedNamesService.focusRange$.subscribe(async t=>{if(t==null)return;const{unitId:e}=t;let{formulaOrRefString:n}=t;if(n.substring(0,1)===di.EQUALS&&(n=n.substring(1)),!K7(n))return;const r=this._instanceSrv.getUnit(e),i=await this._getSelections(r,e,n);this._selectionManagerService.setSelections(i),this._cmdSrv.executeCommand(hx.id,i[0].range)}))}_syncDefinedNameRange(t){if(t.length===0)return;const e=t[t.length-1],n=this._instanceSrv.getCurrentUnitForType(le.UNIVER_SHEET),r=n==null?void 0:n.getActiveSheet();r&&this._definedNamesService.setCurrentRange({range:e.range,unitId:n.getUnitId(),sheetId:r.getSheetId()})}async _getSelections(t,e,n){const r=n.split(",");let i=t.getActiveSheet();if(!i)return[];const a=[];for(let o=0;o<r.length;o++){const s=r[o].trim(),l=Uo(s.trim());if(o===0){const c=t.getSheetBySheetName(l.sheetName);c&&i.getSheetId()!==c.getSheetId()&&(i=c,await this._cmdSrv.executeCommand(l9.id,{subUnitId:i.getSheetId(),unitId:e}))}if(i.getName()!==l.sheetName)continue;let u=null;if(o===r.length-1){const c=l.range,{startRow:d,startColumn:h,endRow:f,endColumn:m}=c;u=tl({startRow:d,startColumn:h},i)}a.push({range:l.range,style:mf(this._themeService),primary:u})}return a}},N(OV,"SheetsDefinedNameController"),OV);RA=BQt([yn(Vt.Rendered,RA),r5(0,se(Bt)),r5(1,se(Ja)),r5(2,Ce),r5(3,me),r5(4,Dc)],RA);var UQt=Object.defineProperty,HQt=Object.getOwnPropertyDescriptor,jQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?HQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&UQt(e,n,i),i},"__decorateClass$w"),mue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$w"),NV;let iC=(NV=class extends et{constructor(t,e){super(),fe(this,"_currentCell$",new Zt),fe(this,"currentCell$",this._currentCell$.asObservable().pipe(Hl((n,r)=>{var i,a,o,s,l,u,c,d;return((i=n==null?void 0:n.location)==null?void 0:i.unitId)===((a=r==null?void 0:r.location)==null?void 0:a.unitId)&&((o=n==null?void 0:n.location)==null?void 0:o.subUnitId)===((s=r==null?void 0:r.location)==null?void 0:s.subUnitId)&&((l=n==null?void 0:n.location)==null?void 0:l.row)===((u=r==null?void 0:r.location)==null?void 0:u.row)&&((c=n==null?void 0:n.location)==null?void 0:c.col)===((d=r==null?void 0:r.location)==null?void 0:d.col)}))),fe(this,"_endCell$",new Zt),fe(this,"endCell$",this._endCell$.asObservable()),this._univerInstanceService=t,this._renderManagerService=e,this._initCellDisposableListener()}dispose(){super.dispose(),this._currentCell$.complete(),this._endCell$.complete()}_initCellDisposableListener(){this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(t=>{t||(this._currentCell$.next(null),this._endCell$.next(null))}))}_calcActiveCell(t,e){const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!n)return null;const r=n.getActiveSheet();if(!r)return;const i=this._renderManagerService.getRenderById(n.getUnitId());if(!i)return;const a=i.with(Gr).getCurrent(),o=i.with(zl).getCurrentScrollState();if(!(!a||!o||!i))return Gne(i,n,r,a,t,e)}onDragOver(t){const{offsetX:e,offsetY:n,dataTransfer:r}=t,i=this._calcActiveCell(e,n);if(!i){this._currentCell$.next(null);return}const{location:a,position:o}=i;this._currentCell$.next({location:a,position:o,dataTransfer:r})}onDrop(t){const{offsetX:e,offsetY:n,dataTransfer:r}=t,i=this._calcActiveCell(e,n);if(!i){this._endCell$.next(null);return}const{location:a,position:o}=i;this._endCell$.next({location:a,position:o,dataTransfer:r})}},N(NV,"DragManagerService"),NV);iC=jQt([mue(0,Ce),mue(1,Sr)],iC);var $Qt=Object.defineProperty,WQt=Object.getOwnPropertyDescriptor,zQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?WQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&$Qt(e,n,i),i},"__decorateClass$v"),kV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$v"),FV;let gP=(FV=class extends et{constructor(t,e,n,r){super(),this._context=t,this._renderManagerService=e,this._dragManagerService=n,this._sheetSkeletonManagerService=r,this._initDragEvent()}_initDragEvent(){const t=new Gi,e=N(n=>{if(t.dispose(),!n)return;const{scene:r}=this._context,i=r.onDragOver$.subscribeEvent(o=>{this._dragManagerService.onDragOver(o)}),a=r.onDrop$.subscribeEvent(o=>{this._dragManagerService.onDrop(o)});t.add({dispose(){i.unsubscribe(),a.unsubscribe()}})},"handleSkeletonChange");e(this._sheetSkeletonManagerService.getCurrent()),this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(n=>{e(n)}))}},N(FV,"DragRenderController"),FV);gP=zQt([kV(1,Sr),kV(2,se(iC)),kV(3,se(Gr))],gP);function Oze(t){return t.startsWith("'")}N(Oze,"isForceString");function Nze(t){return t.slice(1)}N(Nze,"extractStringFromForceString");const qQt={"0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z","%":"%","-":"-",".":".",":":":","/":"/","+":"+","@":"@","&":"&","*":"*","#":"#","=":"=",">":">","<":"<","$":"$",""":'"',"'":"'","(":"(",")":")"," ":" ",",":",","!":"!","?":"?",";":";","[":"[","]":"]","{":"{","}":"}"},VY={true:"TRUE",false:"FALSE"};function kze(t){return[pf.ZH_CN,pf.ZH_TW].includes(t)}N(kze,"isCJKLocale");function Fze(t,e,n,r){let i=t;if(kze(n)){if(t.startsWith("'")||t.startsWith("'"))return`'${t.slice(1)}`;i=t.split("").map(Hze).join("")}if(i.startsWith("="))return Vze(t,i,e,r);const a=i.toLowerCase();return VY[a]?VY[a]:Fi.parseValue(i)==null?t:i}N(Fze,"normalizeString");function Vze(t,e,n,r){const i=n.sequenceNodesBuilder(e);if(!i)return t;let a=e;return i.forEach((o,s)=>{if(typeof o=="object"){const l=o.token;if(VY[l.toLowerCase()]){const u=o.startIndex+1,c=o.endIndex+2;a=u6(l.toLocaleUpperCase(),a,u,c)}else if(o.nodeType===ya.FUNCTION&&Bze(l,r,i,s)||o.nodeType===ya.REFERENCE){const u=l.indexOf("!");if(u>-1){const c=l.substring(u+1),d=o.startIndex+(u+1)+1,h=o.endIndex+2;a=u6(c.toLocaleUpperCase(),a,d,h)}else{const c=o.startIndex+1,d=o.endIndex+2;a=u6(l.toLocaleUpperCase(),a,c,d)}}else if(l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'")){const u=o.startIndex+2,c=o.endIndex+1;a=u6(t.slice(u,c),a,u,c)}else if(o.nodeType!==ya.ARRAY&&Fi.parseValue(l)==null){const u=o.startIndex+1,c=o.endIndex+2;a=u6(t.slice(u,c),a,u,c)}}}),a}N(Vze,"normalizeFormulaString");function Bze(t,e,n,r){const i=e.getDescriptions();return n[r+1]!==mr.OPEN_BRACKET?!1:i.get(Uze(t).toLocaleUpperCase())!==void 0}N(Bze,"hasFunctionName");function Uze(t){const e=/^@+/;return t.replace(e,"")}N(Uze,"removeLeadingAtSymbols");function Hze(t){return qQt[t]||t}N(Hze,"toHalfWidth");function u6(t,e,n,r){return e.substring(0,n)+t+e.substring(r)}N(u6,"replaceString");var YQt=Object.defineProperty,XQt=Object.getOwnPropertyDescriptor,GQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?XQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&YQt(e,n,i),i},"__decorateClass$u"),Ml=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$u");const gue=-1e3,pue=5,QQt=2;var VV;let BY=(VV=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c,d,h,f,m,g){super(),fe(this,"_cursorChange",0),fe(this,"_isUnitEditing",!1),fe(this,"_workbookSelections"),fe(this,"_d"),fe(this,"_cursorTimeout"),this._context=t,this._layoutService=e,this._undoRedoService=r,this._contextService=i,this._instanceSrv=a,this._renderManagerService=o,this._editorBridgeService=s,this._cellEditorManagerService=l,this._lexerTreeBuilder=u,this._functionService=c,this._textSelectionManagerService=d,this._commandService=h,this._localService=f,this._editorService=m,this._resourceLoaderService=g,this._workbookSelections=n.getWorkbookSelections(this._context.unitId),this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(p=>{(p==null?void 0:p.getUnitId())===this._context.unitId?this._d=this._init():(this._disposeCurrent(),this._isUnitEditing&&(this._handleEditorInvisible({visible:!1,eventType:$i.Keyboard,keycode:Et.ESC,unitId:this._context.unitId}),this._isUnitEditing=!1))})),this._initEditorVisibilityListener()}dispose(){super.dispose(),this._disposeCurrent()}_disposeCurrent(){var t;(t=this._d)==null||t.dispose(),this._d=null}_init(){const t=new Gi;return this._subscribeToCurrentCell(t),this._initialKeyboardListener(t),this._initialCursorSync(t),this._listenEditorFocus(t),this._commandExecutedListener(t),this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(e=>{clearTimeout(this._cursorTimeout)})),this._cursorTimeout=setTimeout(()=>{this._cursorStateListener(t)},1e3),t}_initEditorVisibilityListener(){this.disposeWithMe(this._editorBridgeService.visible$.pipe(Hl((t,e)=>t.visible===e.visible)).subscribe(t=>{(t.unitId===Ki||t.unitId===this._context.unitId)&&t.visible?(this._isUnitEditing=!0,this._handleEditorVisible(t)):this._isUnitEditing&&(this._handleEditorInvisible(t),this._isUnitEditing=!1)}))}_listenEditorFocus(t){const e=this._getEditorObject();e&&t.add(e.document.onPointerDown$.subscribeEvent(()=>{if(this._isUnitEditing&&this._editorBridgeService.isVisible()){const n=this._editorBridgeService.getEditCellState(),r=this._editorBridgeService.getCurrentEditorId();if(!n||!r||!this._editorService.isSheetEditor(r))return;const i=this._getEditorSkeleton(r);if(!i)return;const{position:a,documentLayoutObject:o,canvasOffset:s,scaleX:l,scaleY:u}=n;this._fitTextSize(a,s,i,o,l,u)}}))}_getEditorSkeleton(t){var e;return(e=this._renderManagerService.getRenderById(t))==null?void 0:e.with(zi).getSkeleton()}_getEditorViewModel(t){var e;return(e=this._renderManagerService.getRenderById(t))==null?void 0:e.with(zi).getViewModel()}_initialCursorSync(t){t.add(this._cellEditorManagerService.focus$.pipe(mo(e=>!!e)).subscribe(()=>{var e;const n=(e=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_DOC))==null?void 0:e.with(Ms);n&&n.sync()}))}_subscribeToCurrentCell(t){t.add(this._editorBridgeService.currentEditCellState$.subscribe(e=>{var n;if(e==null||this._editorBridgeService.isForceKeepVisible())return;const{position:r,documentLayoutObject:i,scaleX:a,editorUnitId:o}=e;if(this._contextService.getContextValue(Dg)||this._contextService.getContextValue(S4))return;const{startX:s,endX:l}=r,{textRotation:u,wrapStrategy:c,documentModel:d}=i,{vertexAngle:h}=Qm(u);d.updateDocumentId(o),c===Li.WRAP&&h===0&&d.updateDocumentDataPageSize((l-s)/a),this._instanceSrv.changeDoc(o,d),this._contextService.setContextValue(VH,!0),this._textSelectionManagerService.replaceTextRanges([{startOffset:0,endOffset:0}]);const f=(n=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_DOC))==null?void 0:n.with(Ms);f&&f.activate(gue,gue,!document.activeElement||document.activeElement.classList.contains("univer-editor"))}))}_fitTextSize(t,e,n,r,i=1,a=1){const{startX:o,startY:s,endX:l,endY:u}=t,c=r.documentModel;if(c==null)return;const{actualWidth:d,actualHeight:h}=this._predictingSize(t,e,n,r,i,a),{verticalAlign:f,paddingData:m,fill:g}=r;let p=l-o,v=u-s;if(p<d&&(p=d),v<h)v=h,c.updateDocumentDataMargin(m);else{let _=0;f===ea.MIDDLE?_=(v-h)/2/a:f===ea.TOP?_=m.t||0:_=(v-h)/a-(m.b||0),_=_<(m.t||0)?m.t||0:_,c.updateDocumentDataMargin({t:_})}n.calculate(),this._editAreaProcessing(p,v,t,e,g,i,a)}_predictingSize(t,e,n,r,i=1,a=1){const{startX:o,endX:s}=t,{textRotation:l,wrapStrategy:u}=r,c=r.documentModel,{vertexAngle:d}=Qm(l),h=document.body.clientWidth;if(u===Li.WRAP&&d===0){const{actualWidth:g,actualHeight:p}=n.getActualSize();return{actualWidth:g*i,actualHeight:p*a}}c==null||c.updateDocumentDataPageSize((h-o-e.left)/i),n.calculate();const f=n.getActualSize();let m=s-o;return m<f.actualWidth*i+pue*i&&(m=f.actualWidth*i+pue*i),c==null||c.updateDocumentDataPageSize(m/i),c==null||c.updateDocumentRenderConfig({horizontalAlign:dr.UNSPECIFIED,cellValueType:void 0}),{actualWidth:m,actualHeight:f.actualHeight*a}}_editAreaProcessing(t,e,n,r,i,a=1,o=1){var s;const l=this._getEditorObject();if(l==null)return;function u(B){return Number.parseInt(B.replace("px",""))}N(u,"pxToNum");const c=this._context.engine.getCanvasElement(),d=c.getBoundingClientRect(),h=u(c.style.width),{top:f,left:m,width:g}=d,p=g/h;let{startX:v,startY:_}=n;const{document:C,scene:S,engine:b}=l,y=S.getViewport(f1.VIEW_MAIN),A=document.body.clientHeight-_-Number.parseFloat(Jje.sheetFooterBarHeight)-r.top-QQt*2,w=document.body.clientWidth-v-r.left;let P=e,M=y==null?void 0:y.getScrollBar();P>A?(P=A,M==null?y&&new G4(y,{enableHorizontal:!1,barSize:8}):y==null||y.resetCanvasSizeAndUpdateScroll()):(M=null,(s=y==null?void 0:y.getScrollBar())==null||s.dispose()),t+=(M==null?void 0:M.barSize)||0,t>w&&(t=w),v-=Lo,_-=Lo,this._addBackground(S,t/a,e/o,i);const{scaleX:L,scaleY:k}=S.getPrecisionScale();S.transformByState({width:t*p/a,height:e*p/o,scaleX:a*p,scaleY:o*p}),C.resize(t*p/a,e*p/o),setTimeout(()=>{b.resizeBySize(Rr(t,L),Rr(P,k))},0);const O=this._layoutService.getContentElement().getBoundingClientRect(),$=c.getBoundingClientRect();v=v*p+($.left-O.left),_=_*p+($.top-O.top),this._cellEditorManagerService.setState({startX:v,startY:_,endX:t*p+v,endY:P*p+_,show:!0})}_addBackground(t,e,n,r){const i="_backgroundRectHelperColor_",a=t.getObject(i);a==null&&r==null||(a==null?t.addObjects([new ur(i,{width:e,height:n,fill:r,evented:!1})],MR):r==null?a.dispose():(a.setProps({fill:r}),a.transformByState({width:e,height:n})))}_handleEditorVisible(t){var e,n;const{eventType:r,keycode:i}=t;this._cursorChange=r===$i.PointerDown?2:1;const a=this._editorBridgeService.getEditCellState();if(a==null)return;const{position:o,documentLayoutObject:s,canvasOffset:l,scaleX:u,scaleY:c,editorUnitId:d,unitId:h,sheetId:f,isInArrayFormulaRange:m=!1}=a,g=this._getEditorObject();if(g==null)return;this._setOpenForCurrent(h,f);const{document:p,scene:v}=g;this._contextService.setContextValue(ha,!0);const{documentModel:_}=s,C=this._getEditorSkeleton(d);if(!(!C||!_)){if(this._fitTextSize(o,l,C,s,u,c),r===$i.Keyboard||r===$i.Dblclick&&m){const S=Ie.deepClone(_.getSnapshot()),b=this._getEditorViewModel(d);if(b==null)return;this._resetBodyStyle(S.body,!!m),_.reset(S),b.reset(_),p.makeDirty(),(i===Et.BACKSPACE||r===$i.Dblclick)&&(C.calculate(),this._editorBridgeService.changeEditorDirty(!0)),this._textSelectionManagerService.replaceTextRanges([{startOffset:0,endOffset:0}])}else if(r===$i.Dblclick){const S=_.getBody().dataStream.length-2||0;(e=v.getViewport(f1.VIEW_MAIN))==null||e.scrollToViewportPos({viewportScrollX:Number.POSITIVE_INFINITY}),this._textSelectionManagerService.replaceTextRanges([{startOffset:S,endOffset:S}])}(n=this._renderManagerService.getRenderById(h))==null||n.scene.resetCursor()}}_resetBodyStyle(t,e=!1){t.dataStream=Sd,t.textRuns!=null&&(t.textRuns.length===1&&!e?(t.textRuns[0].st=0,t.textRuns[0].ed=1):t.textRuns=void 0),t.paragraphs!=null&&(t.paragraphs.length===1?t.paragraphs[0].startIndex=0:t.paragraphs=[{startIndex:0}]),t.sectionBreaks!=null&&(t.sectionBreaks=void 0),t.tables!=null&&(t.tables=void 0),t.customRanges!=null&&(t.customRanges=void 0),t.customBlocks!=null&&(t.customBlocks=void 0)}_initialKeyboardListener(t){var e;const n=(e=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_DOC))==null?void 0:e.with(Ms);n&&t.add(n.onInputBefore$.subscribe(r=>{var i;if(!this._isCurrentSheetFocused())return;const a=this._contextService.getContextValue(of),o=this._contextService.getContextValue(ms),s=(i=this._instanceSrv.getCurrentUniverDocInstance())==null?void 0:i.getUnitId();s&&o&&!a&&this._editorService.isSheetEditor(s)&&this._showEditorByKeyboard(r)}))}_showEditorByKeyboard(t){if(t==null)return;const e=t.event;this._commandService.executeCommand(Cc.id,{visible:!0,eventType:$i.Keyboard,keycode:e.which,unitId:this._context.unitId})}_commandExecutedListener(t){const e=[Oi.id,VS.id];t.add(this._commandService.onCommandExecuted(r=>{if(e.includes(r.id)){const i=r.params,{unitId:a}=i;if(!this._isCurrentSheetFocused()||!this._editorService.isSheetEditor(a))return;const o=this._editorBridgeService.getCurrentEditorId();if(o==null)return;const s=this._getEditorSkeleton(o);if(s==null)return;this._editorBridgeService.changeEditorDirty(!0);const l=this._editorBridgeService.getEditCellState();if(l==null)return;const{position:u,documentLayoutObject:c,canvasOffset:d,scaleX:h,scaleY:f}=l;this._fitTextSize(u,d,s,c,h,f)}})),t.add(this._commandService.onCommandExecuted(r=>{r.id===th.id&&this._editorBridgeService.refreshEditCellState()})),t.add(this._commandService.onCommandExecuted(r=>{r.id===Mn.id&&this._editorBridgeService.refreshEditCellState()}));const n=[Q_.id];t.add(this._commandService.onCommandExecuted(r=>{if(n.includes(r.id)){const i=r.params,{keycode:a,isShift:o}=i;if(a!=null&&(this._cursorChange===2||this._contextService.getContextValue(of))){this._moveInEditor(a,o);return}this._editorBridgeService.changeVisible(i)}r.id===wx.id&&(this._cursorChange=2)}))}_setOpenForCurrent(t,e){const n=this._editorService.getAllEditor();for(const[r,i]of n)i.isSheetEditor()&&(i.setOpenForSheetUnitId(t),i.setOpenForSheetSubUnitId(e))}_getEditorObject(){return _x(this._editorBridgeService.getCurrentEditorId(),this._renderManagerService)}async _handleEditorInvisible(t){const{keycode:e}=t;this._setOpenForCurrent(null,null),this._cursorChange=0,this._exitInput(t);const n=this._editorBridgeService.getEditCellState();if(n==null)return;const{unitId:r,sheetId:i,row:a,column:o,documentLayoutObject:s}=n;if(this._editorBridgeService.getEditorDirty()===!1){this._moveCursor(e);return}const l=this._context.unit;let u=l.getActiveSheet();const c=this._context.unitId,d=u.getSheetId();if(!l.getSheetBySheetId(i))return;if(e===Et.ESC){const p=this._workbookSelections.getCurrentSelections();p&&this._commandService.syncExecuteCommand(Pr.id,{unitId:this._context.unit.getUnitId(),subUnitId:d,selections:p});return}c===r&&i!==d&&this._editorBridgeService.isForceKeepVisible()&&await this._commandService.executeCommand(l9.id,{subUnitId:i,unitId:r}),u=l.getActiveSheet();const h=jze(u.getCellRaw(a,o)||{},s,this._lexerTreeBuilder,p=>p.getSnapshot(),this._localService,this._functionService);if(!h){this._moveCursor(e);return}const f={subUnitId:i,unitId:r,workbook:l,worksheet:u,row:a,col:o,origin:Ie.deepClone(h)},m=this._editorBridgeService.interceptor.fetchThroughInterceptors(this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT)(h,f),g=await this._editorBridgeService.interceptor.fetchThroughInterceptors(this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT_ASYNC)(Promise.resolve(m),f);this._commandService.executeCommand(Uu.id,{subUnitId:i,unitId:r,range:{startRow:a,startColumn:o,endRow:a,endColumn:o},value:g}),this._moveCursor(e)}_exitInput(t){this._contextService.setContextValue(Um,!1),this._contextService.setContextValue(ha,!1),this._contextService.setContextValue(VH,!1),this._contextService.setContextValue(of,!1),this._cellEditorManagerService.setState({show:t.visible});const e=this._editorBridgeService.getCurrentEditorId();e==null||!this._editorService.isSheetEditor(e)||(this._undoRedoService.clearUndoRedo(e),this._undoRedoService.clearUndoRedo(Ki))}_moveCursor(t){if(t==null||!oQt.includes(t))return;let e=ut.LEFT;switch(t){case Et.ENTER:e=ut.DOWN;break;case Et.TAB:e=ut.RIGHT;break;case Et.ARROW_DOWN:e=ut.DOWN;break;case Et.ARROW_UP:e=ut.UP;break;case Et.ARROW_LEFT:e=ut.LEFT;break;case Et.ARROW_RIGHT:e=ut.RIGHT;break}t===Et.ENTER||t===Et.TAB?this._commandService.executeCommand(am.id,{keycode:t,direction:e}):this._commandService.executeCommand(ql.id,{direction:e})}_cursorStateListener(t){const e=this._getEditorObject();if(!e.document)return;const{document:n}=e;t.add($t(n.onPointerDown$.subscribeEvent(()=>{this._cursorChange===1&&(this._cursorChange=2)})))}_moveInEditor(t,e){let n=ut.LEFT;t===Et.ARROW_DOWN?n=ut.DOWN:t===Et.ARROW_UP?n=ut.UP:t===Et.ARROW_RIGHT&&(n=ut.RIGHT),e?this._commandService.executeCommand(k0.id,{direction:n}):this._commandService.executeCommand(Df.id,{direction:n})}_isCurrentSheetFocused(){var t;return((t=this._instanceSrv.getFocusedUnit())==null?void 0:t.getUnitId())===this._context.unitId}},N(VV,"EditingRenderController"),VV);BY=GQt([Ml(1,Os),Ml(2,se(Bt)),Ml(3,xn),Ml(4,ui),Ml(5,Ce),Ml(6,Sr),Ml(7,Zl),Ml(8,vre),Ml(9,se(Kl)),Ml(10,Vu),Ml(11,se(Or)),Ml(12,me),Ml(13,se(sn)),Ml(14,Fo),Ml(15,AG)],BY);function jze(t,e,n,r,i,a){t=Ie.deepClone(t);const{documentModel:o}=e;if(o==null)return null;const s=r(o),{body:l}=s;if(l==null)return null;t.t=void 0;const u=l.dataStream;let c=u.substring(u.length-2,u.length)===Sd?u.substring(0,u.length-2):u;const d=i.getCurrentLocale();if(c=Fze(c,n,d,a),Ar(c)){if(t.f===c)return null;const h=n.checkIfAddBracket(c);for(let f=0;f<h;f++)c+=mr.CLOSE_BRACKET;t.f=c,t.si=null,t.v=null,t.p=null}else if(Oze(c)){const h=Nze(c);t.v=h,t.f=null,t.si=null,t.p=null,t.t=rr.FORCE_STRING}else if(Fi.parseDate(c)||Fi.parseNumber(c)||Fi.parseTime(c))t.v=c,t.f=null,t.si=null,t.p=null,t.t=rr.NUMBER;else if($ze(l))l.dataStream===`\r |
|
|
`?(t.v="",t.f=null,t.si=null,t.p=null):(t.p=s,t.v=null,t.f=null,t.si=null);else{if((c===t.v||c===""&&t.v==null)&&t.p==null)return null;t.v=c,t.f=null,t.si=null,t.p=null;const h=Wze(s);h&&(t.s=h)}return t}N(jze,"getCellDataByInput");function $ze(t){const{textRuns:e=[],paragraphs:n=[],customRanges:r,customBlocks:i=[]}=t,a=t.dataStream.replace(`\r |
|
|
`,""),o=["va"];return e.some(s=>{var l;return!!(s.ts&&Object.keys(s.ts).some(u=>o.includes(u)))||Object.keys((l=s.ts)!=null?l:{}).length&&s.ed-s.st<a.length})||n.some(s=>s.bullet)||n.length>=2||!!(r!=null&&r.length)||i.length>0}N($ze,"isRichText");function Wze(t){const{body:e}=t;if(!e)return null;const{textRuns:n=[]}=e;let r={};const i=e.dataStream.replace(`\r |
|
|
`,"");return n.forEach(a=>{const{st:o,ed:s,ts:l}=a;s-o>=i.length&&(r={...r,...l})}),Object.keys(r).length?r:null}N(Wze,"getCellStyleBySnapshot");var KQt=Object.defineProperty,ZQt=Object.getOwnPropertyDescriptor,JQt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?ZQt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&KQt(e,n,i),i},"__decorateClass$t"),Md=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$t"),BV;let AA=(BV=class extends Da{constructor(t,e,n,r,i,a,o,s,l,u){super(),fe(this,"_loadedMap",new WeakSet),fe(this,"_scheduledCallback",-1),this._univerInstanceService=t,this._renderManagerService=e,this._editorBridgeService=n,this._commandService=r,this._contextService=i,this._formulaEditorManagerService=a,this._undoRedoService=o,this._rangeProtectionRuleModel=s,this._worksheetProtectionRuleModel=l,this._textSelectionManagerService=u,this._initialize()}_initialize(){this._syncFormulaEditorContent(),this._commandExecutedListener(),this._syncEditorSize(),this._listenFxBtnClick(),this._listenFoldBtnClick(),this._renderManagerService.currentRender$.pipe(_a(this.dispose$)).subscribe(t=>{this._create(t)}),this._create(Ki),this._textSelectionManagerService.textSelection$.pipe(_a(this.dispose$)).subscribe(t=>{if(t==null)return;const{unitId:e}=t;e!==Ki&&(this._contextService.setContextValue(of,!1),this._undoRedoService.clearUndoRedo(Ki))})}_create(t){if(t!==Ki)return;const e=this._renderManagerService.getRenderById(t);if(e==null)return;const{mainComponent:n}=e;n!=null&&(this._loadedMap.has(n)||(this._initialMain(t),this._loadedMap.add(n)))}_listenFxBtnClick(){this._formulaEditorManagerService.fxBtnClick$.pipe(_a(this.dispose$)).subscribe(()=>{var t,e;if(this._contextService.getContextValue(VH)&&!this._contextService.getContextValue(ha)){this._univerInstanceService.setCurrentUnitForType(Ki),this._contextService.setContextValue(of,!0);const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),r=this._univerInstanceService.getUniverDocInstance(Ki);this._editorBridgeService.isVisible().visible===!1&&this._editorBridgeService.changeVisible({visible:!0,eventType:$i.PointerDown,unitId:(t=n==null?void 0:n.getUnitId())!=null?t:""});const i=(e=r==null?void 0:r.getBody())==null?void 0:e.dataStream;if(i==null)return;let a=i.startsWith("=")?i:`=${i}`;a=a.replace(/\r\n$/,"");const o=[{startOffset:a.length,endOffset:a.length}],s={unitId:Ki,body:{dataStream:a},segmentId:""};this._commandService.executeCommand(Tte.id,s),this._textSelectionManagerService.replaceTextRanges(o)}})}_listenFoldBtnClick(){this._formulaEditorManagerService.foldBtnStatus$.pipe(_a(this.dispose$)).subscribe(()=>{this._textSelectionManagerService.refreshSelection()})}_initialMain(t){const e=this._renderManagerService.getRenderById(t);if(e==null)return;const{mainComponent:n}=e;n!=null&&this.disposeWithMe(n.onPointerDown$.subscribeEvent(()=>{this._editorBridgeService.isVisible().visible===!1&&this._editorBridgeService.changeVisible({visible:!0,eventType:$i.Dblclick,unitId:t}),this._contextService.setContextValue(of,!0),this._undoRedoService.clearUndoRedo(Ki)}))}_syncEditorSize(){this._formulaEditorManagerService.position$.pipe(_a(this.dispose$)).subscribe(t=>{if(!t)return this._clearScheduledCallback();const e=_x(Ki,this._renderManagerService),n=this._univerInstanceService.getUniverDocInstance(Ki);if(e==null||n==null)return this._clearScheduledCallback();const{width:r,height:i}=t;if(r===0||i===0)return this._clearScheduledCallback();const{engine:a}=e;n.updateDocumentDataPageSize(r),this._autoScroll(),this._scheduledCallback=requestIdleCallback(()=>a.resizeBySize(r,i))})}_clearScheduledCallback(){this._scheduledCallback!==-1&&cancelIdleCallback(this._scheduledCallback),this._scheduledCallback=-1}_syncFormulaEditorContent(){this._editorBridgeService.currentEditCellState$.pipe(_a(this.dispose$)).subscribe(t=>{t==null||this._editorBridgeService.isForceKeepVisible()||!this._rangeProtectionRuleModel.getRangeRuleInitState()||!this._worksheetProtectionRuleModel.getSheetRuleInitState()||this._editorSyncHandler(t)}),this._editorBridgeService.visible$.pipe(_a(this.dispose$)).subscribe(t=>{if(t==null||t.visible===!1||this._editorBridgeService.isForceKeepVisible())return;const e=this._editorBridgeService.getLatestEditCellState();e!=null&&this._editorSyncHandler(e)})}_editorSyncHandler(t){var e;const n=(e=t.documentLayoutObject.documentModel)==null?void 0:e.getBody();let r=n==null?void 0:n.dataStream,i=n==null?void 0:n.paragraphs,a=n==null?void 0:n.textRuns;const o=n==null?void 0:n.customRanges;r==null||!i&&!o||(t.isInArrayFormulaRange===!0&&this._editorBridgeService.isVisible().eventType===$i.Dblclick&&(r=`\r |
|
|
`,i=[{startIndex:0}],a=[]),this._syncContentAndRender(Ki,r,i??[],a,o),this._autoScroll())}_commandExecutedListener(){const t=[Yo,Ki];this.disposeWithMe(this._commandService.onCommandExecuted(n=>{var r,i,a,o;if(n.id!==Oi.id)return;const s=n.params,{unitId:l,actions:u}=s;if(t.includes(l)){const c=this._univerInstanceService.getUniverDocInstance(l),d=(r=c==null?void 0:c.getBody())==null?void 0:r.dataStream,h=(i=c==null?void 0:c.getBody())==null?void 0:i.paragraphs,f=(a=c==null?void 0:c.getBody())==null?void 0:a.textRuns,m=(o=c==null?void 0:c.getBody())==null?void 0:o.customRanges,g=l===Ki?Yo:Ki;if(d==null||h==null)return;g===Yo?(this._checkAndSetRenderStyleConfig(c),this._syncActionsAndRender(g,u)):this._syncContentAndRender(g,d,h,f,m),this._autoScroll()}})),this.disposeWithMe(this._commandService.onCommandExecuted(n=>{var r,i,a,o;if(n.id!==VS.id)return;const s=n.params,{unitId:l}=s;if(t.includes(l)){const u=this._univerInstanceService.getUniverDocInstance(l),c=(r=u==null?void 0:u.getBody())==null?void 0:r.dataStream,d=(i=u==null?void 0:u.getBody())==null?void 0:i.paragraphs,h=(a=u==null?void 0:u.getBody())==null?void 0:a.textRuns,f=(o=u==null?void 0:u.getBody())==null?void 0:o.customRanges,m=l===Ki?Yo:Ki;if(c==null||d==null)return;this._syncContentAndRender(m,c,d,h,f),this._autoScroll()}}));const e=[Mn.id,$l.id];this.disposeWithMe(this._commandService.onCommandExecuted(n=>{var r,i,a,o,s;if(e.includes(n.id)){const l=this._editorBridgeService.getLatestEditCellState();if(l==null)return;let u=!1;const{row:c,column:d}=l;if(n.id===Mn.id&&n.params?(i=(r=n.params.cellValue)==null?void 0:r[c])!=null&&i[d]&&(u=!0):n.id===$l.id&&n.params&&(o=(a=n.params.to.value)==null?void 0:a[c])!=null&&o[d]&&(u=!0),u){const h=(s=l.documentLayoutObject.documentModel)==null?void 0:s.getBody();if(h==null)return;const{dataStream:f,paragraphs:m=[],customRanges:g}=h;this._syncContentAndRender(Ki,f,m,void 0,g),this._autoScroll()}}}))}_syncActionsAndRender(t,e){var n;const r=[Yo,Ki],i=this._renderManagerService.getRenderById(t);if(i==null)return;const a=i.with(zi).getSkeleton(),o=this._univerInstanceService.getUniverDocInstance(t),s=this._getEditorViewModel(t);o==null||s==null||(o.apply(e),this._checkAndSetRenderStyleConfig(o),s.reset(o),a.calculate(),r.includes(t)&&((n=i.mainComponent)==null||n.makeDirty()))}_syncContentAndRender(t,e,n,r=[],i){var a,o;const s=[Yo,Ki],l=(a=this._renderManagerService.getRenderById(t))==null?void 0:a.with(zi).getSkeleton(),u=this._univerInstanceService.getUniverDocInstance(t),c=this._getEditorViewModel(t);if(u==null||c==null||l==null)return;u.getBody().dataStream=e,u.getBody().paragraphs=this._clearParagraph(n),u.getBody().customRanges=i,r.length>0&&(u.getBody().textRuns=r),this._checkAndSetRenderStyleConfig(u),c.reset(u);const d=this._renderManagerService.getRenderById(t);d!=null&&(l.calculate(),s.includes(t)&&((o=d.mainComponent)==null||o.makeDirty()))}_checkAndSetRenderStyleConfig(t){var e;const n=t.getSnapshot(),{body:r}=n;if(n.id!==Ki)return;let i=n.documentStyle.renderConfig;i==null&&(i={},n.documentStyle.renderConfig=i),((e=r==null?void 0:r.dataStream)!=null?e:"").startsWith("=")?i.isRenderStyle=at.TRUE:i.isRenderStyle=at.FALSE}_clearParagraph(t){const e=Ie.deepClone(t);for(const n of e)n.paragraphStyle&&(n.paragraphStyle.horizontalAlign=dr.UNSPECIFIED);return e}_autoScroll(){var t,e;const n=this._formulaEditorManagerService.getPosition(),r=(t=this._renderManagerService.getRenderById(Ki))==null?void 0:t.with(zi).getSkeleton(),i=this._renderManagerService.getRenderById(Ki),a=this._univerInstanceService.getUniverDocInstance(Ki);if(r==null||n==null||i==null||a==null)return;const{marginTop:o=0,marginBottom:s=0}=a.getSnapshot().documentStyle,{scene:l,mainComponent:u}=i;let{actualHeight:c}=r.getActualSize();c+=o+s;const{width:d,height:h}=n,f=l.getViewport(f1.VIEW_MAIN);let m=f==null?void 0:f.getScrollBar();l.transformByState({width:d,height:c}),u==null||u.resize(d,c),c>h?m==null?f&&new G4(f,{enableHorizontal:!1,barSize:8}):f==null||f.resetCanvasSizeAndUpdateScroll():(m=null,f==null||f.scrollToViewportPos({viewportScrollX:0,viewportScrollY:0}),(e=f==null?void 0:f.getScrollBar())==null||e.dispose())}_getEditorViewModel(t){var e;return(e=this._renderManagerService.getRenderById(t))==null?void 0:e.with(zi).getViewModel()}},N(BV,"FormulaEditorController"),BV);AA=JQt([yn(Vt.Rendered,AA),Md(0,Ce),Md(1,Sr),Md(2,Zl),Md(3,me),Md(4,ui),Md(5,_re),Md(6,xn),Md(7,se(li)),Md(8,se(ga)),Md(9,se(Or))],AA);var eKt=Object.defineProperty,tKt=Object.getOwnPropertyDescriptor,nKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?tKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&eKt(e,n,i),i},"__decorateClass$s"),vue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$s");function zze(t,e){var n,r,i,a;const o=(r=(n=e.documentSkeleton.getSkeletonData())==null?void 0:n.pages[0].height)!=null?r:0,s=(a=(i=e.documentSkeleton.getSkeletonData())==null?void 0:i.pages[0].width)!=null?a:0,l=e.verticalAlign,u=e.horizontalAlign;let c=0;switch(l){case ea.UNSPECIFIED:case ea.BOTTOM:c=t.mergeInfo.endY-t.mergeInfo.startY-o;break;case ea.MIDDLE:c=(t.mergeInfo.endY-t.mergeInfo.startY-o)/2;break}let d=0;switch(u){case dr.RIGHT:d=t.mergeInfo.endX-t.mergeInfo.startX-s;break;case dr.CENTER:d=(t.mergeInfo.endX-t.mergeInfo.startX-s)/2;break}return{paddingLeft:d,paddingTop:c}}N(zze,"calcPadding");var UV;let q0=(UV=class extends et{constructor(t,e){super(),fe(this,"_currentCell$",new Pn(null)),fe(this,"_currentRichText$",new Pn(null)),fe(this,"_currentClickedCell$",new Zt),fe(this,"currentCell$",this._currentCell$.asObservable().pipe(Hl((n,r)=>{var i,a,o,s,l,u,c,d;return((i=n==null?void 0:n.location)==null?void 0:i.unitId)===((a=r==null?void 0:r.location)==null?void 0:a.unitId)&&((o=n==null?void 0:n.location)==null?void 0:o.subUnitId)===((s=r==null?void 0:r.location)==null?void 0:s.subUnitId)&&((l=n==null?void 0:n.location)==null?void 0:l.row)===((u=r==null?void 0:r.location)==null?void 0:u.row)&&((c=n==null?void 0:n.location)==null?void 0:c.col)===((d=r==null?void 0:r.location)==null?void 0:d.col)}))),fe(this,"currentRichText$",this._currentRichText$.pipe(Hl((n,r)=>{var i,a,o,s,l,u,c,d,h,f,m,g;return((i=n==null?void 0:n.location)==null?void 0:i.unitId)===((a=r==null?void 0:r.location)==null?void 0:a.unitId)&&((o=n==null?void 0:n.location)==null?void 0:o.subUnitId)===((s=r==null?void 0:r.location)==null?void 0:s.subUnitId)&&((l=n==null?void 0:n.location)==null?void 0:l.row)===((u=r==null?void 0:r.location)==null?void 0:u.row)&&((c=n==null?void 0:n.location)==null?void 0:c.col)===((d=r==null?void 0:r.location)==null?void 0:d.col)&&((h=n==null?void 0:n.customRange)==null?void 0:h.rangeId)===((f=r==null?void 0:r.customRange)==null?void 0:f.rangeId)&&((m=n==null?void 0:n.bullet)==null?void 0:m.startIndex)===((g=r==null?void 0:r.bullet)==null?void 0:g.startIndex)}),pr(n=>n&&{unitId:n.location.unitId,subUnitId:n.location.subUnitId,row:n.location.row,col:n.location.col,customRange:n.customRange,bullet:n.bullet,rect:n.rect}))),fe(this,"currentPosition$",this._currentCell$.asObservable()),fe(this,"currentClickedCell$",this._currentClickedCell$.asObservable()),this._univerInstanceService=t,this._renderManagerService=e,this._initCellDisposableListener()}dispose(){super.dispose(),this._currentCell$.complete(),this._currentClickedCell$.complete()}_initCellDisposableListener(){this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(t=>{t||this._currentCell$.next(null)}))}_calcActiveCell(t,e,n){var r,i;const a=this._univerInstanceService.getUnit(t,le.UNIVER_SHEET);if(!a)return null;const o=a.getActiveSheet();if(!o)return null;const s=this._renderManagerService.getRenderById(a.getUnitId()),l=s==null?void 0:s.with(Gr).getWorksheetSkeleton(o.getSheetId()),u=s==null?void 0:s.with(zl),c=u==null?void 0:u.getCurrentScrollState(),d=l==null?void 0:l.skeleton;if(!d||!c||!s)return;const h=Gne(s,a,o,l,e,n);if(!h)return null;const{position:f,overflowLocation:m,location:g}=h,p=d.getFont(m.row,m.col);let v=null,_=null;const C=d.getCellByIndex(m.row,m.col),S=o.getCell(m.row,m.col),{topOffset:b=0,leftOffset:y=0}=(r=S==null?void 0:S.fontRenderExtension)!=null?r:{};if(p){const{paddingLeft:w,paddingTop:P}=zze(C,p),M=Oqt(p.documentSkeleton,w,P),L=e-f.startX-y,k=n-f.startY-b;v=M.links.find(O=>O.rects.some($=>$.left<=L&&L<=$.right&&$.top<=k&&k<=$.bottom)),_=M.checkLists.find(O=>O.rect.left<=L&&L<=O.rect.right&&O.rect.top<=k&&k<=O.rect.bottom)}const A=(i=v==null?void 0:v.rects.pop())!=null?i:_==null?void 0:_.rect;return{location:g,position:f,overflowLocation:m,customRange:v==null?void 0:v.range,bullet:_==null?void 0:_.paragraph,rect:A&&{top:A.top+C.mergeInfo.startY+b,bottom:A.bottom+C.mergeInfo.startY+b,left:A.left+C.mergeInfo.startX+y,right:A.right+C.mergeInfo.startX+y}}}triggerMouseMove(t,e,n){const r=this._calcActiveCell(t,e,n);this._currentCell$.next(r&&{location:r.location,position:r.position}),this._currentRichText$.next(r&&{...r,location:r.overflowLocation})}triggerClick(t,e,n){const r=this._calcActiveCell(t,e,n);r&&this._currentClickedCell$.next(r)}triggerScroll(){this._currentCell$.next(null)}},N(UV,"HoverManagerService"),UV);q0=nKt([vue(0,Ce),vue(1,Sr)],q0);var rKt=Object.defineProperty,iKt=Object.getOwnPropertyDescriptor,aKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?iKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&rKt(e,n,i),i},"__decorateClass$r"),HV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$r");const jV="SHEET_FORCE_STRING_ALERT";var $V;let ev=($V=class extends et{constructor(t,e,n,r){super(),this._context=t,this._hoverManagerService=e,this._cellAlertManagerService=n,this._localeService=r,this._init()}_init(){this._initCellAlertPopup()}_initCellAlertPopup(){this.disposeWithMe(this._hoverManagerService.currentCell$.subscribe(t=>{var e;if(t){const n=this._context.unit.getActiveSheet();if(!n)return;const r=n.getCell(t.location.row,t.location.col);if((r==null?void 0:r.t)===rr.FORCE_STRING&&r.v&&Kr(r.v)){const i=this._cellAlertManagerService.currentAlert.get(jV),a=(e=i==null?void 0:i.alert)==null?void 0:e.location;if(a&&a.row===t.location.row&&a.col===t.location.col&&a.subUnitId===t.location.subUnitId&&a.unitId===t.location.unitId)return;this._cellAlertManagerService.showAlert({type:jg.ERROR,title:this._localeService.t("info.error"),message:this._localeService.t("info.forceStringInfo"),location:t.location,width:200,height:74,key:jV});return}}this._cellAlertManagerService.removeAlert(jV)}))}},N($V,"ForceStringAlertRenderController"),$V);ev=aKt([yn(Vt.Rendered,ev),HV(1,se(q0)),HV(2,se(Ap)),HV(3,se(sn))],ev);var oKt=Object.defineProperty,sKt=Object.getOwnPropertyDescriptor,lKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?sKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&oKt(e,n,i),i},"__decorateClass$q"),_ue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$q"),WV;let tv=(WV=class extends Da{constructor(t,e,n){super(),this._context=t,this._sheetSkeletonManagerService=e,this._sheetInterceptorService=n,this._init()}_init(){this._initViewModelIntercept()}_initViewModelIntercept(){const t={tl:{size:6,color:"#409f11"}};this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:10,handler:N((e,n,r)=>{var i;if(!((i=this._sheetSkeletonManagerService.getCurrent())!=null&&i.skeleton))return r(e);const a=n.worksheet.getCellRaw(n.row,n.col);return!a||a.v===null||a.v===void 0?r(e):(e==null?void 0:e.t)===rr.FORCE_STRING&&Kr(a.v)?r({...e,markers:{...e==null?void 0:e.markers,...t}}):r(e)},"handler")}))}},N(WV,"ForceStringRenderController"),WV);tv=lKt([yn(Vt.Rendered,tv),_ue(1,se(Gr)),_ue(2,se(Tr))],tv);var uKt=Object.defineProperty,cKt=Object.getOwnPropertyDescriptor,dKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?cKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&uKt(e,n,i),i},"__decorateClass$p"),k2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$p"),zV;let wA=(zV=class extends et{constructor(t,e,n,r,i,a,o){super(),this._commandService=t,this._formatPainterService=e,this._univerInstanceService=n,this._renderManagerService=r,this._selectionManagerService=i,this._sheetInterceptorService=a,this._injector=o,this._initialize()}_initialize(){this._commandExecutedListener(),this._addDefaultHook()}_commandExecutedListener(){const t=this._renderManagerService.getCurrentTypeOfRenderer(le.UNIVER_SHEET).with(Ds);this.disposeWithMe(t.selectionMoveEnd$.subscribe(e=>{var n,r;if(this._formatPainterService.getStatus()!==u1.OFF){const{rangeWithCoord:i}=e[e.length-1];this._commandService.executeCommand(Bx.id,{unitId:((n=this._univerInstanceService.getFocusedUnit())==null?void 0:n.getUnitId())||"",subUnitId:((r=this._univerInstanceService.getFocusedUnit().getActiveSheet())==null?void 0:r.getSheetId())||"",range:{startRow:i.startRow,startColumn:i.startColumn,endRow:i.endRow,endColumn:i.endColumn}}),this._formatPainterService.getStatus()===u1.ONCE&&this._commandService.executeCommand(Sb.id)}}))}_addDefaultHook(){const t={id:"default-format-painter",priority:0,isDefaultHook:!0,onStatusChange:N(e=>{if(e!==u1.OFF){const n=this._collectSelectionRangeFormat();n&&this._formatPainterService.setSelectionFormat(n)}},"onStatusChange"),onApply:N((e,n,r,i)=>this._getUndoRedoMutationInfo(e,n,r,i),"onApply")};this._formatPainterService.addHook(t)}_collectSelectionRangeFormat(){const t=this._selectionManagerService.getCurrentLastSelection(),e=t==null?void 0:t.range;if(!e)return null;const{startRow:n,endRow:r,startColumn:i,endColumn:a}=e,o=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),s=o==null?void 0:o.getActiveSheet();if(!s)return null;const l=s.getCellMatrix(),u=o.getStyles(),c=new Ct,d=[];for(let h=n;h<=r;h++)for(let f=i;f<=a;f++){const m=l.getValue(h,f);c.setValue(h,f,u.getStyleByCell(m)||{});const{isMergedMainCell:g,...p}=s.getCellInfoInMergeData(h,f);g&&d.push({startRow:p.startRow,startColumn:p.startColumn,endRow:p.endRow,endColumn:p.endColumn})}return{styles:c,merges:d}}_getUndoRedoMutationInfo(t,e,n,r){const i=this._sheetInterceptorService,a=this._univerInstanceService,{merges:o,styles:s}=r;if(!s)return{undos:[],redos:[]};const{startRow:l,startColumn:u,endRow:c,endColumn:d}=s.getDataRange(),h=c-l+1,f=d-u+1,m=n.startRow===n.endRow&&n.startColumn===n.endColumn?{startRow:n.startRow,startColumn:n.startColumn,endRow:n.startRow+h-1,endColumn:n.startColumn+f-1}:n,g=Array.from({length:m.endRow-m.startRow+1},()=>Array.from({length:m.endColumn-m.startColumn+1},()=>({}))),p=[];g.forEach((z,F)=>{z.forEach((H,W)=>{const K=F%h+l,G=W%f+u,te=s.getValue(K,G);te&&(g[F][W].s=Object.keys(te).length>0?te:null)})}),o.forEach(z=>{const F={startRow:z.startRow-l,startColumn:z.startColumn-u,endRow:z.endRow-l,endColumn:z.endColumn-u},H=Math.max(1,Math.floor((m.endRow-m.startRow+1)/h)),W=Math.max(1,Math.floor((m.endColumn-m.startColumn+1)/f));for(let K=0;K<H;K++)for(let G=0;G<W;G++)p.push({startRow:F.startRow+K*h+m.startRow,startColumn:F.startColumn+G*f+m.startColumn,endRow:F.endRow+K*h+m.startRow,endColumn:F.endColumn+G*f+m.startColumn})});const v=[m],_=new Ct,C=new Ct;if(Ie.isArray(g))for(let z=0;z<v.length;z++){const{startRow:F,startColumn:H,endRow:W,endColumn:K}=v[z];for(let G=0;G<=W-F;G++)for(let te=0;te<=K-H;te++)_.setValue(G+F,te+H,{s:null}),C.setValue(G+F,te+H,g[G][te])}const S={subUnitId:e,unitId:t,cellValue:_.getMatrix()},b={subUnitId:e,unitId:t,cellValue:C.getMatrix()},y=this._injector.invoke(No,S),{undos:A,redos:w}=i.onCommandExecute({id:Uu.id,params:{...b,range:v}}),P=c9(p),M=[],L=[],k=a.getUnit(t).getSheetBySheetId(e),O=Yne(k,P),$={unitId:t,subUnitId:e,ranges:P},B={unitId:t,subUnitId:e,ranges:P};M.push({id:Di.id,params:$}),M.push({id:yi.id,params:B});const V=this._injector.invoke(fl,$),X=this._injector.invoke(ou,B);if(L.push({id:Di.id,params:X}),L.push({id:yi.id,params:V}),O){const z=this._injector.invoke(F=>Xne(F,t,k,P));M.unshift(...z.redos),L.push(...z.undos)}return{undos:[{id:Mn.id,params:S},{id:Mn.id,params:y},...A,...L],redos:[{id:Mn.id,params:S},{id:Mn.id,params:b},...w,...M]}}},N(zV,"FormatPainterController"),zV);wA=dKt([yn(Vt.Steady,wA),k2(0,me),k2(1,sm),k2(2,Ce),k2(3,Sr),k2(4,se(Bt)),k2(5,se(Tr)),k2(6,se(Wn))],wA);var hKt=Object.defineProperty,fKt=Object.getOwnPropertyDescriptor,mKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?fKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&hKt(e,n,i),i},"__decorateClass$o"),qV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$o"),YV;let pP=(YV=class extends et{constructor(t,e,n,r){super(),fe(this,"_active",!1),this._context=t,this._hoverManagerService=e,this._sheetSkeletonManagerService=n,this._scrollManagerService=r,this._initPointerEvent(),this._initScrollEvent()}get active(){return this._active}_initPointerEvent(){const t=new Gi,e=N(n=>{if(t.dispose(),!n)return;const{mainComponent:r,unitId:i}=this._context;r&&(t.add(r.onPointerEnter$.subscribeEvent(a=>{this._active=!0})),t.add(vg(r.onPointerMove$).pipe(zg(30)).subscribe(a=>{this._active=!0,this._hoverManagerService.triggerMouseMove(i,a.offsetX,a.offsetY)})),t.add(r.onPointerUp$.subscribeEvent(a=>{this._hoverManagerService.triggerClick(i,a.offsetX,a.offsetY)})),t.add(r.onPointerLeave$.subscribeEvent(()=>{this._active=!1})))},"handleSkeletonChange");e(this._sheetSkeletonManagerService.getCurrent()),this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(n=>{e(n)}))}_initScrollEvent(){this.disposeWithMe(this._scrollManagerService.validViewportScrollInfo$.subscribe(()=>this._hoverManagerService.triggerScroll()))}},N(YV,"HoverRenderController"),YV);pP=mKt([qV(1,se(q0)),qV(2,se(Gr)),qV(3,se(zl))],pP);var gKt=Object.defineProperty,pKt=Object.getOwnPropertyDescriptor,vKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?pKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&gKt(e,n,i),i},"__decorateClass$n"),XV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$n"),GV;let vP=(GV=class extends et{constructor(t,e,n,r){super(),this._context=t,this._markSelectionService=e,this._commandService=n,this._sheetSkeletonManagerService=r,this._initListeners()}_initListeners(){this._addRemoveListener(),this._addRefreshListener()}_addRemoveListener(){const t=[Cc.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{t.includes(e.id)?this._markSelectionService.removeAllShapes():this._markSelectionService.getShapeMap().forEach((n,r)=>{n.exits.includes(e.id)&&this._markSelectionService.removeShape(r)})}))}_addRefreshListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{t&&this._markSelectionService.refreshShapes()}))}},N(GV,"MarkSelectionRenderController"),GV);vP=vKt([XV(1,se(l3)),XV(2,me),XV(3,se(Gr))],vP);var _Kt=Object.defineProperty,CKt=Object.getOwnPropertyDescriptor,SKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?CKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&_Kt(e,n,i),i},"__decorateClass$m"),QV=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$m"),KV;let UY=(KV=class extends et{constructor(t,e,n,r){super(),fe(this,"_initialize",N(()=>{const i=new Gi;this.disposeWithMe(this._selectionManagerService.selectionMoveEnd$.subscribe(()=>{i.dispose(),this._selectionRenderService.getSelectionControls().forEach(a=>{i.add($t(a.selectionMoved$.subscribe(o=>{if(!o)return;const s=a.model.getRange(),l={startRow:s.startRow,startColumn:s.startColumn,endRow:s.endRow,endColumn:s.endColumn,rangeType:s.rangeType},u={startRow:o.startRow,startColumn:o.startColumn,endRow:o.endRow,endColumn:o.endColumn,rangeType:s.rangeType};if(l.startRow===u.startRow&&l.startColumn===u.startColumn||u.startRow<0||u.startColumn<0)return;const c={fromRange:l,toRange:u};this._commandService.executeCommand(F0.id,c)})))})}))},"_initialize")),this._context=t,this._selectionRenderService=e,this._selectionManagerService=n,this._commandService=r,this._initialize()}},N(KV,"MoveRangeRenderController"),KV);UY=SKt([QV(1,se(Ds)),QV(2,se(Bt)),QV(3,se(me))],UY);var bKt=Object.defineProperty,yKt=Object.getOwnPropertyDescriptor,EKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?yKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bKt(e,n,i),i},"__decorateClass$l"),Nc=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$l"),ZV;let nv=(ZV=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c,d){super(),this._univerInstanceService=t,this._dialogService=e,this._permissionService=n,this._authzIoService=r,this._rangeProtectionRuleModel=i,this._worksheetProtectionRuleModel=a,this._userManagerService=o,this._worksheetProtectionPointRuleModel=s,this._sheetInterceptorService=l,this._selectionProtectionRenderModel=u,this._undoRedoService=c,this._commandService=d,this._initRangePermissionFromSnapshot(),this._initRangePermissionChange(),this._initWorksheetPermissionFromSnapshot(),this._initWorksheetPermissionChange(),this._initWorksheetPermissionPointsChange(),this._initWorkbookPermissionFromSnapshot(),this._initUserChange(),this._initViewModelByRangeInterceptor(),this._initViewModelBySheetInterceptor(),this._refreshPermissionByCollaCreate()}async _initRangePermissionFromSnapshot(){const t=N(async e=>{const n=[],r=e.getUnitId(),i=e.getSheets(),a=new Map;if(i.forEach(o=>{const s=o.getSheetId();this._rangeProtectionRuleModel.getSubunitRuleList(r,s).forEach(l=>{a.set(l.permissionId,l),n.push({objectID:l.permissionId,unitID:r,objectType:Ni.SelectRange,actions:[Jn.View,Jn.Edit]})})}),!n.length){this._rangeProtectionRuleModel.changeRuleInitState(!0);return}this._authzIoService.batchAllowed(n).then(o=>{o.forEach(s=>{const l=a.get(s.objectID);l&&zd().forEach(u=>{const c=new u(r,l.subUnitId,s.objectID),d=c.subType,h=s.actions.find(f=>f.action===d);(h==null?void 0:h.allowed)!==void 0&&this._permissionService.updatePermissionPoint(c.id,h.allowed)})}),this._rangeProtectionRuleModel.changeRuleInitState(!0)})},"initRangePermissionFunc");await Promise.all(this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).map(e=>t(e))),this._rangeProtectionRuleModel.changeRuleInitState(!0)}_initRangePermissionChange(){this.disposeWithMe(this._rangeProtectionRuleModel.ruleChange$.subscribe(t=>{t.type!=="delete"?this._authzIoService.allowed({objectID:t.rule.permissionId,unitID:t.unitId,objectType:Ni.SelectRange,actions:[Jn.Edit,Jn.View]}).then(e=>{zd().forEach(n=>{if(t.type==="set"){const{rule:s,oldRule:l}=t;if(s.permissionId===(l==null?void 0:l.permissionId))return}const r=t.rule,i=new n(r.unitId,r.subUnitId,r.permissionId),a=i.subType,o=e.find(s=>s.action===a);o&&this._permissionService.updatePermissionPoint(i.id,o.allowed)})}):this._rangeProtectionRuleModel.getSubunitRuleList(t.unitId,t.subUnitId).length===0&&(this._worksheetProtectionPointRuleModel.deleteRule(t.unitId,t.subUnitId),[...Bd()].forEach(e=>{const n=new e(t.unitId,t.subUnitId);this._permissionService.updatePermissionPoint(n.id,n.value)}))}))}async initWorkbookPermissionChange(t){var e;const n=t||((e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:e.getUnitId());n&&this._authzIoService.allowed({objectID:n,objectType:Ni.Workbook,unitID:n,actions:hzt}).then(r=>{nP().forEach(i=>{const a=new i(n),o=a.subType,s=r.find(l=>l.action===o);s&&this._permissionService.updatePermissionPoint(a.id,s.allowed)})})}async _initWorkbookPermissionFromSnapshot(){await Promise.all(this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).map(t=>this.initWorkbookPermissionChange(t.getUnitId())))}_initWorksheetPermissionChange(){this.disposeWithMe(this._worksheetProtectionRuleModel.ruleChange$.subscribe(t=>{t.type!=="delete"?this._authzIoService.allowed({objectID:t.rule.permissionId,unitID:t.unitId,objectType:Ni.Worksheet,actions:[Jn.Edit,Jn.View]}).then(e=>{Qu().forEach(n=>{const r=new n(t.unitId,t.subUnitId),i=r.subType,a=e.find(o=>o.action===i);a&&this._permissionService.updatePermissionPoint(r.id,a.allowed)})}):([...Qu(),...Bd()].forEach(e=>{const n=new e(t.unitId,t.subUnitId);this._permissionService.updatePermissionPoint(n.id,!0)}),this._worksheetProtectionPointRuleModel.deleteRule(t.unitId,t.subUnitId))}))}_initWorksheetPermissionPointsChange(){this.disposeWithMe(this._worksheetProtectionPointRuleModel.pointChange$.subscribe(t=>{this._authzIoService.allowed({objectID:t.permissionId,unitID:t.unitId,objectType:Ni.Worksheet,actions:BF}).then(e=>{Bd().forEach(n=>{const r=new n(t.unitId,t.subUnitId),i=r.subType,a=e.find(o=>o.action===i);a&&this._permissionService.updatePermissionPoint(r.id,a.allowed)})})}))}async _initWorksheetPermissionFromSnapshot(){const t=N(async e=>{const n=[],r=e.getUnitId(),i=e.getSheets(),a=new Map;if(i.forEach(o=>{const s=o.getSheetId(),l=this._worksheetProtectionRuleModel.getRule(r,s);l&&(a.set(l.permissionId,l),n.push({objectID:l.permissionId,unitID:r,objectType:Ni.Worksheet,actions:[Jn.Edit,Jn.View]}));const u=this._worksheetProtectionPointRuleModel.getRule(r,s);u&&(a.set(u.permissionId,u),n.push({objectID:u.permissionId,unitID:r,objectType:Ni.Worksheet,actions:BF}))}),!n.length){this._worksheetProtectionRuleModel.changeRuleInitState(!0);return}this._authzIoService.batchAllowed(n).then(o=>{o.forEach(s=>{const l=a.get(s.objectID);l&&[...Qu(),...Bd()].forEach(u=>{const c=new u(r,l.subUnitId),d=c.subType,h=s.actions.find(f=>f.action===d);(h==null?void 0:h.allowed)!==void 0&&this._permissionService.updatePermissionPoint(c.id,h.allowed)})}),this._worksheetProtectionRuleModel.changeRuleInitState(!0)})},"initSheetPermissionFunc");await Promise.all(this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).map(e=>t(e))),this._worksheetProtectionRuleModel.changeRuleInitState(!0)}_initUserChange(){this.disposeWithMe(this._userManagerService.currentUser$.subscribe(()=>{const t=this._permissionService.getAllPermissionPoint();this._permissionService.clearPermissionMap(),this._worksheetProtectionRuleModel.changeRuleInitState(!1),this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(e=>{const n=e.getUnitId();nP().forEach(r=>{let i=new r(n);t.has(i.id)&&(i=t.get(i.id)),this._permissionService.addPermissionPoint(i)}),e.getSheets().forEach(r=>{const i=r.getSheetId();[...Qu(),...Bd()].forEach(a=>{let o=new a(n,i);t.has(o.id)&&(o=t.get(o.id)),this._permissionService.addPermissionPoint(o)}),this._rangeProtectionRuleModel.getSubunitRuleList(n,i).forEach(a=>{zd().forEach(o=>{let s=new o(n,i,a.permissionId);t.has(s.id)&&(s=t.get(s.id)),this._permissionService.addPermissionPoint(s)})})}),this._initWorkbookPermissionFromSnapshot(),this._initWorksheetPermissionFromSnapshot(),this._initRangePermissionFromSnapshot()})}))}_initViewModelByRangeInterceptor(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:999,handler:N((t={},e,n)=>{const{unitId:r,subUnitId:i,row:a,col:o}=e,s=this._selectionProtectionRenderModel.getCellInfo(r,i,a,o).filter(l=>!!l.ruleId).map(l=>{const u=this._rangeProtectionRuleModel.getRule(r,i,l.ruleId)||{};return{...l,ranges:u.ranges}}).filter(l=>!!l.ranges);if(s.length){const l=s.some(c=>!(c!=null&&c[Jn.View])),u={...t,selectionProtection:s};return l?(delete u.s,delete u.v,delete u.p,u):n(u)}return n(t)},"handler")}))}_initViewModelBySheetInterceptor(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:999,handler:N((t={},e,n)=>{var r,i,a,o,s;const{unitId:l,subUnitId:u}=e,c=this._worksheetProtectionRuleModel.getRule(l,u);if(c!=null&&c.permissionId){const d=[{[Jn.View]:(i=(r=this._permissionService.getPermissionPoint(new rb(l,u).id))==null?void 0:r.value)!=null?i:!1,[Jn.Edit]:(o=(a=this._permissionService.getPermissionPoint(new Tn(l,u).id))==null?void 0:a.value)!=null?o:!1}],h=!((s=d[0])!=null&&s[Jn.View]),f={...t,hasWorksheetRule:!0,selectionProtection:d};return h?(delete f.s,delete f.v,delete f.p,f):n(f)}return n(t)},"handler")}))}refreshPermission(t,e){const n=this._worksheetProtectionRuleModel.getTargetByPermissionId(t,e);let r=!1;if(n){const[o,s]=n;this._authzIoService.allowed({objectID:e,unitID:t,objectType:Ni.Worksheet,actions:[Jn.Edit,Jn.View]}).then(l=>{let u="";Qu().forEach(c=>{var d;const h=new c(t,s),f=h.subType,m=l.find(g=>g.action===f);m&&(((d=this._permissionService.getPermissionPoint(h.id))==null?void 0:d.value)!==m.allowed&&(r=!0),this._permissionService.updatePermissionPoint(h.id,m.allowed),u+=`${m.action}_${m.allowed}`)}),this._worksheetProtectionRuleModel.ruleRefresh(`${e}_${u}`),r&&this._undoRedoService.clearUndoRedo(t)})}const i=this._worksheetProtectionPointRuleModel.getTargetByPermissionId(t,e);if(i){const[o,s]=i;this._authzIoService.allowed({objectID:e,unitID:t,objectType:Ni.Worksheet,actions:BF}).then(l=>{Bd().forEach(u=>{var c;const d=new u(t,s),h=d.subType,f=l.find(m=>m.action===h);f&&(((c=this._permissionService.getPermissionPoint(d.id))==null?void 0:c.value)!==f.allowed&&(r=!0),this._permissionService.updatePermissionPoint(d.id,f.allowed))}),r&&this._undoRedoService.clearUndoRedo(t)})}const a=this._rangeProtectionRuleModel.getTargetByPermissionId(t,e);if(a){const[o,s]=a;this._authzIoService.allowed({objectID:e,unitID:t,objectType:Ni.SelectRange,actions:[Jn.Edit,Jn.View]}).then(l=>{let u="";zd().forEach(c=>{var d;const h=new c(t,s,e),f=h.subType,m=l.find(g=>g.action===f);m&&(((d=this._permissionService.getPermissionPoint(h.id))==null?void 0:d.value)!==m.allowed&&(r=!0),this._permissionService.updatePermissionPoint(h.id,m.allowed),u+=`${m.action}_${m.allowed}`)}),this._rangeProtectionRuleModel.ruleRefresh(`${e}_${u}`),r&&this._undoRedoService.clearUndoRedo(t)})}}_refreshPermissionByCollaCreate(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{if(e!=null&&e.fromCollab&&(t.id===fh.id||t.id===bp.id||t.id===Ine.id)){const n=t.params;this._undoRedoService.clearUndoRedo(n.unitId)}}))}},N(ZV,"SheetPermissionInitController"),ZV);nv=EKt([yn(Vt.Rendered,nv),Nc(0,Ce),Nc(1,Rd),Nc(2,Qi),Nc(3,D7),Nc(4,se(li)),Nc(5,se(ga)),Nc(6,se(vs)),Nc(7,se(_0)),Nc(8,se(Tr)),Nc(9,se(Ng)),Nc(10,se(xn)),Nc(11,se(me))],nv);const HY="UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID",qze="UNIVER_SHEET_PERMISSION_ALERT_DIALOG";var RKt=Object.defineProperty,AKt=Object.getOwnPropertyDescriptor,wKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?AKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&RKt(e,n,i),i},"__decorateClass$k"),kc=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$k"),JV;let $g=(JV=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c,d){super(),fe(this,"disposableCollection",new Gi),fe(this,"_showPermissionDialog",!0),this._commandService=t,this._univerInstanceService=e,this._permissionService=n,this._selectionManagerService=r,this._dialogService=i,this._rangeProtectionRuleModel=a,this._worksheetProtectionRuleModel=o,this._autoFillService=s,this._localeService=l,this._lexerTreeBuilder=u,this._contextService=c,this._definedNamesService=d,this._initialize()}setShowPermissionDialog(t){this._showPermissionDialog=t}haveNotPermissionHandle(t){const e={id:HY,title:{title:""},children:{label:qze,errorMsg:t},width:320,destroyOnClose:!0,onClose:N(()=>this._dialogService.close(HY),"onClose"),className:"sheet-permission-user-dialog"};throw this._showPermissionDialog&&this._dialogService.open(e),new Xce("have not permission")}_getPermissionCheck(t,e){var n,r,i;let a=!0,o="";switch(t){case U_.id:case Pte.id:if(this._contextService.getContextValue(Dg)===!0)break;a=this.permissionCheckWithoutRange({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Tn]}),o=this._localeService.t("permission.dialog.editErr");break;case Cc.id:if(e.visible===!1)break;a=this.permissionCheckWithoutRange({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Tn]}),o=this._localeService.t("permission.dialog.editErr");break;case Uu.id:YP(e.value)&&e.value.f?(a=this._permissionCheckWithFormula(e),o=this._localeService.t("permission.dialog.formulaErr")):a=this._permissionCheckBySetRangeValue({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Tn]},e);break;case v0.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Tn]}),o=this._localeService.t("permission.dialog.editErr");break;case f4.id:a=this.permissionCheckWithoutRange({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,td]}),o=this._localeService.t("permission.dialog.pasteErr");break;case IY.id:a=this._permissionCheckByPaste(e),o=this._localeService.t("permission.dialog.pasteErr");break;case Bx.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,zs,Hi]}),o=this._localeService.t("permission.dialog.commonErr");break;case z_.id:case m9.id:case g9.id:case p9.id:case v9.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Hi,Tn]}),o=this._localeService.t("permission.dialog.setStyleErr");break;case ih.id:a=this.permissionCheckWithRanges({workbookTypes:[x6],rangeTypes:[o7],worksheetTypes:[W_]}),o=this._localeService.t("permission.dialog.copyErr"),(n=this._permissionService.getPermissionPoint(new x6(this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()).id))!=null&&n.value||(o=this._localeService.t("permission.dialog.workbookCopyErr"));break;case I$e.id:a=this.permissionCheckWithRanges({workbookTypes:[x6,on],rangeTypes:[o7,Bn],worksheetTypes:[W_,Tn]}),o=this._localeService.t("permission.dialog.copyErr"),(r=this._permissionService.getPermissionPoint(new x6(this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()).id))!=null&&r.value||(o=this._localeService.t("permission.dialog.workbookCopyErr"));break;case cx.id:case s7.id:a=this.permissionCheckWithoutRange({worksheetTypes:[td]}),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case dx.id:case cb.id:case o3.id:a=this.permissionCheckWithoutRange({worksheetTypes:[nh]}),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case i3.id:case r3.id:a=this._permissionCheckByMoveCommand(e),o=this._localeService.t("permission.dialog.moveRowColErr");break;case F0.id:a=this._permissionCheckByMoveRangeCommand(e),o=this._localeService.t("permission.dialog.moveRangeErr");break;case s4.id:a=this._permissionCheckByAutoFillCommand((i=this._autoFillService.autoFillLocation)==null?void 0:i.target),o=this._localeService.t("permission.dialog.autoFillErr");break;case Ene.id:a=this._permissionCheckByWorksheetCommand([on,iUe]),o=this._localeService.t("permission.dialog.operatorSheetErr"),a===!1&&this._worksheetProtectionRuleModel.resetOrder();break;case ub.id:a=this._permissionCheckByWorksheetCommand([on,ax]),o=this._localeService.t("permission.dialog.operatorSheetErr"),a===!1&&this._worksheetProtectionRuleModel.resetOrder();break;case Ane.id:{const{unitId:s,subUnitId:l}=e;a=this._permissionCheckByWorksheetCommand([on,ix],s,l),o=this._localeService.t("permission.dialog.operatorSheetErr"),a===!1&&this._worksheetProtectionRuleModel.resetOrder()}break;case ob.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,td]},e.ranges),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case lb.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,nh]},e.ranges),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case ox.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,td]}),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case lx.id:a=this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,nh]}),o=this._localeService.t("permission.dialog.setRowColStyleErr");break;case B0.id:a=this._permissionCheckWithInsertRangeMove("right"),o=this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");break;case V0.id:a=this._permissionCheckWithInsertRangeMove("bottom"),o=this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");break;case _p.id:a=this._permissionCheckWithInsertRangeMove("left"),o=this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");break;case Cp.id:a=this._permissionCheckWithInsertRangeMove("top"),o=this._localeService.t("permission.dialog.insertOrDeleteMoveRangeErr");break}a||this.haveNotPermissionHandle(o)}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{this._getPermissionCheck(t.id,t==null?void 0:t.params)})),this.disposeWithMe(this._commandService.onCommandExecuted(t=>{var e;if(t.id===Sp.id){const n=t.params,{unitId:r=(e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET))==null?void 0:e.getUnitId(),subUnitId:i}=n;if(!r||!i)return;const a=this._worksheetProtectionRuleModel.getRule(r,i),o=this._rangeProtectionRuleModel.getSubunitRuleList(r,i);a&&this._worksheetProtectionRuleModel.ruleRefresh(a.permissionId),o.length&&this._rangeProtectionRuleModel.ruleRefresh(i)}}))}_permissionCheckWithInsertRangeMove(t){var e;const n=Dn(this._univerInstanceService);if(!n)return!1;const{worksheet:r,unitId:i,subUnitId:a}=n,o=Ie.deepClone((e=this._selectionManagerService.getCurrentLastSelection())==null?void 0:e.range);return!(!o||(t==="top"||t==="bottom"?o.endRow=r.getRowCount()-1:(t==="left"||t==="right")&&(o.endColumn=r.getColumnCount()-1),this._rangeProtectionRuleModel.getSubunitRuleList(i,a).map(s=>s.ranges).flat().some(s=>ft.getIntersects(o,s))))}_permissionCheckByWorksheetCommand(t,e,n){var r,i;const a=Dn(this._univerInstanceService,{unitId:e,subUnitId:n});if(!a)return!1;const{unitId:o,subUnitId:s}=a,l=this._worksheetProtectionRuleModel.getRule(o,s),u=this._rangeProtectionRuleModel.getSubunitRuleList(o,s).length>0;return l||u?(i=(r=this._permissionService.getPermissionPoint(new R1(o).id))==null?void 0:r.value)!=null?i:!1:this._permissionService.composePermission(t.map(c=>new c(o).id)).every(c=>c.value)}permissionCheckWithoutRange(t){var e,n,r,i;const a=Dn(this._univerInstanceService);if(!a)return!1;const{worksheet:o,unitId:s,subUnitId:l}=a,u=this._selectionManagerService.getCurrentLastSelection();if(!u)return!0;const c=(n=(e=u==null?void 0:u.primary)==null?void 0:e.actualRow)!=null?n:0,d=(i=(r=u==null?void 0:u.primary)==null?void 0:r.actualColumn)!=null?i:0,{workbookTypes:h,worksheetTypes:f,rangeTypes:m}=t;return!(h&&h.some(g=>{var p,v;const _=new g(s);return((v=(p=this._permissionService.getPermissionPoint(_.id))==null?void 0:p.value)!=null?v:!1)===!1})===!0||f&&f.some(g=>{var p,v;const _=new g(s,l);return((v=(p=this._permissionService.getPermissionPoint(_.id))==null?void 0:p.value)!=null?v:!1)===!1})===!0||m&&m.some(g=>{var p,v,_,C,S;const b=(v=(p=o.getCell(c,d))==null?void 0:p.selectionProtection)==null?void 0:v[0];if(!(b!=null&&b.ruleId))return!1;const y=(_=this._rangeProtectionRuleModel.getRule(s,l,b.ruleId))==null?void 0:_.permissionId;if(!y)return!1;const A=new g(s,l,y);return((S=(C=this._permissionService.getPermissionPoint(A.id))==null?void 0:C.value)!=null?S:!1)===!1})===!0)}permissionCheckWithRanges(t,e,n,r){var i;const a=Dn(this._univerInstanceService);if(!a)return!1;const{workbook:o,worksheet:s}=a;n||(n=o.getUnitId()),r||(r=s.getSheetId());const l=e??((i=this._selectionManagerService.getCurrentSelections())==null?void 0:i.map(h=>h.range));if(!l)return!1;const{workbookTypes:u,worksheetTypes:c,rangeTypes:d}=t;return u&&u.some(h=>{var f,m;const g=new h(n);return((m=(f=this._permissionService.getPermissionPoint(g.id))==null?void 0:f.value)!=null?m:!1)===!1})===!0||c&&c.some(h=>{var f,m;const g=new h(n,r);return((m=(f=this._permissionService.getPermissionPoint(g.id))==null?void 0:f.value)!=null?m:!1)===!1})===!0?!1:d?l==null?void 0:l.every(h=>d.every(f=>{var m,g,p,v,_;for(let C=h.startRow;C<=h.endRow;C++)for(let S=h.startColumn;S<=h.endColumn;S++){const b=(g=(m=s.getCell(C,S))==null?void 0:m.selectionProtection)==null?void 0:g[0];if(!(b!=null&&b.ruleId))continue;const y=(p=this._rangeProtectionRuleModel.getRule(n,r,b.ruleId))==null?void 0:p.permissionId;if(!y)continue;const A=new f(n,r,y);if(((_=(v=this._permissionService.getPermissionPoint(A.id))==null?void 0:v.value)!=null?_:!1)===!1)return!1}return!0})):!0}_permissionCheckByPaste(t){return t.value===ka.SPECIAL_PASTE_VALUE||t.value===ka.SPECIAL_PASTE_FORMULA?this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Hi,Tn]}):t.value===ka.SPECIAL_PASTE_FORMAT?this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Hi,Tn]}):this.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Hi,Tn]})}_permissionCheckByMoveCommand(t){const e=Dn(this._univerInstanceService);if(!e)return!1;const{worksheet:n,unitId:r,subUnitId:i}=e,a=t.toRange;a.endRow===n.getRowCount()-1?a.endColumn=a.startColumn:a.endRow=a.startRow;const o=this._rangeProtectionRuleModel.getSubunitRuleList(r,i).reduce((s,l)=>[...s,...l.ranges],[]).filter(s=>ft.intersects(s,a));return o.length>0?!1:(o.forEach(s=>{var l,u;for(let c=s.startRow;c<=s.endRow;c++)for(let d=s.startColumn;d<=s.endColumn;d++){const h=(u=(l=n.getCell(c,d))==null?void 0:l.selectionProtection)==null?void 0:u[0];if((h==null?void 0:h[Jn.Edit])===!1)return!1}}),!0)}_permissionCheckByAutoFillCommand(t){if(!t)return!1;const{rows:e,cols:n}=t,r=e[0],i=e[e.length-1],a=n[0],o=n[n.length-1],s={startRow:r,endRow:i,startColumn:a,endColumn:o},l=Dn(this._univerInstanceService);if(!l)return!1;const{worksheet:u,unitId:c,subUnitId:d}=l;return!this._rangeProtectionRuleModel.getSubunitRuleList(c,d).reduce((h,f)=>[...h,...f.ranges],[]).filter(h=>ft.intersects(h,s)).some(h=>{var f,m;for(let g=h.startRow;g<=h.endRow;g++)for(let p=h.startColumn;p<=h.endColumn;p++){const v=(m=(f=u.getCell(g,p))==null?void 0:f.selectionProtection)==null?void 0:m[0];if((v==null?void 0:v[Jn.Edit])===!1)return!0}return!1})}_permissionCheckByMoveRangeCommand(t){const e=Dn(this._univerInstanceService);if(!e)return!1;const{worksheet:n,unitId:r,subUnitId:i}=e,a=t.toRange,o=this._rangeProtectionRuleModel.getSubunitRuleList(r,i).reduce((s,l)=>[...s,...l.ranges],[]).filter(s=>ft.intersects(s,a));return o.length>0?!1:(o.forEach(s=>{var l,u;for(let c=s.startRow;c<=s.endRow;c++)for(let d=s.startColumn;d<=s.endColumn;d++){const h=(u=(l=n.getCell(c,d))==null?void 0:l.selectionProtection)==null?void 0:u[0];if((h==null?void 0:h[Jn.Edit])===!1)return!1}}),!0)}_permissionCheckBySetRangeValue(t,e){let n=[];e.range?n=[e.range]:n=[new Ct(e.value).getDataRange()];const{unitId:r,subUnitId:i}=e;return this.permissionCheckWithRanges(t,n,r,i)}_permissionCheckWithFormula(t){var e,n,r,i,a;const o=t.value,s=t.range,l=o.f;if(l){const u=l.substring(1),c=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),d=(e=t.unitId)!=null?e:c.getUnitId(),h=this._definedNamesService.getValueByName(d,u);if(h){let f=h.formulaOrRefString;f.startsWith(di.EQUALS)&&(f=f.slice(1));const m=f.split(",");for(let g=0;g<m.length;g++){const p=m[g],v=Uo(p);if(v.sheetName){const _=c.getSheetBySheetName(v.sheetName);if(!_)return!0;const{startRow:C,endRow:S,startColumn:b,endColumn:y}=v.range;for(let A=C;A<=S;A++)for(let w=b;w<=y;w++){const P=(r=(n=_.getCell(A,w))==null?void 0:n.selectionProtection)==null?void 0:r[0];if((P==null?void 0:P[Jn.View])===!1)return!1}}}return!0}else{const f=this._lexerTreeBuilder.sequenceNodesBuilder(l);if(!f)return!0;for(let m=0;m<f.length;m++){const g=f[m];if(typeof g=="string"||g.nodeType!==ya.REFERENCE)continue;const{token:p}=g,v=Uo(p),_=v.unitId?this._univerInstanceService.getUnit(v.unitId):this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!_)return!0;let C=v.sheetName?_.getSheetBySheetName(v.sheetName):_.getActiveSheet();const S=_.getUnitId();if(v.sheetName){if(C=_.getSheetBySheetName(v.sheetName),!C)return!0;const P=C==null?void 0:C.getSheetId();if(!this._permissionService.getPermissionPoint(new rb(S,P).id))return!1}if(!C)return!0;const{startRow:b,endRow:y,startColumn:A,endColumn:w}=v.range;for(let P=b;P<=y;P++)for(let M=A;M<=w;M++){const L=(a=(i=C.getCell(P,M))==null?void 0:i.selectionProtection)==null?void 0:a[0];if((L==null?void 0:L[Jn.View])===!1)return!1}}return!0}}if(s){const u=Dn(this._univerInstanceService);if(!u)return!1;const c=t.unitId||u.unitId,d=t.subUnitId||u.subUnitId,h=this._rangeProtectionRuleModel.getSubunitRuleList(c,d).filter(f=>f.ranges.some(m=>ft.intersects(m,s))).map(f=>new Bn(c,d,f.permissionId).id);if(!this._permissionService.composePermission(h).every(f=>f.value))return!1}return!0}},N(JV,"SheetPermissionInterceptorBaseController"),JV);$g=wKt([yn(Vt.Ready,$g),kc(0,me),kc(1,Ce),kc(2,Qi),kc(3,se(Bt)),kc(4,Rd),kc(5,se(li)),kc(6,se(ga)),kc(7,om),kc(8,se(sn)),kc(9,se(Kl)),kc(10,ui),kc(11,Dc)],$g);var DKt=Object.defineProperty,IKt=Object.getOwnPropertyDescriptor,PKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?IKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&DKt(e,n,i),i},"__decorateClass$j"),F2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$j");const MKt="__SpreadsheetFreezeRowMainName__",TKt="__SpreadsheetFreezeRowHeaderName__",LKt="__SpreadsheetFreezeColumnMainName__",xKt="__SpreadsheetFreezeColumnHeaderName__",eB=2,OKt=.01,i5=_s("freezePermissionCheck");var tB;let aC=(tB=class extends et{constructor(t,e,n,r,i,a,o,s){super(),fe(this,"_rowFreezeHeaderRect"),fe(this,"_rowFreezeMainRect"),fe(this,"_columnFreezeHeaderRect"),fe(this,"_columnFreezeMainRect"),fe(this,"_freezeDownSubs"),fe(this,"_freezePointerEnterSubs"),fe(this,"_freezePointerLeaveSubs"),fe(this,"_scenePointerMoveSub"),fe(this,"_scenePointerUpSub"),fe(this,"_changeToRow",-1),fe(this,"_changeToColumn",-1),fe(this,"_changeToOffsetX",0),fe(this,"_changeToOffsetY",0),fe(this,"_activeViewport",null),fe(this,"_freezeNormalHeaderColor",""),fe(this,"_freezeNormalMainColor",""),fe(this,"_freezeActiveColor",""),fe(this,"_freezeHoverColor",""),fe(this,"_lastFreeze"),fe(this,"interceptor",new Wf({FREEZE_PERMISSION_CHECK:i5})),this._context=t,this._sheetSkeletonManagerService=e,this._commandService=n,this._selectionManagerService=r,this._scrollManagerService=i,this._themeService=a,this._sheetInterceptorService=o,this._injector=s,this._initialize()}dispose(){super.dispose()}_initialize(){this._skeletonListener(),this._commandExecutedListener(),this._themeChangeListener(),this._interceptorCommands(),this._bindViewportScroll(),this._zoomRefresh()}_createFreeze(t=0,e){var n;const r=e??this._getFreeze();if(r==null)return null;const i=(n=this._sheetSkeletonManagerService.getCurrent())==null?void 0:n.skeleton,{startRow:a,startColumn:o}=r,s=this._getPositionByIndex(a,o);if(s==null||i==null)return null;const l=this._getSheetObject(),u=l.engine,c=(u==null?void 0:u.width)||0,d=(u==null?void 0:u.height)||0,h=l.scene,{startX:f,startY:m}=s,{rowTotalHeight:g,columnTotalWidth:p,rowHeaderWidthAndMarginLeft:v,columnHeaderHeightAndMarginTop:_}=i,C=c>p+v?c:p+_,S=d>g+_?d:g+_;this._changeToRow=a,this._changeToColumn=o,this._changeToOffsetX=f,this._changeToOffsetY=m;const b=Math.max(h.scaleX,h.scaleY);let y=eB/(b<1?1:b);if(t===0){(a===-1||a===0)&&(y=y*2);const A=y;this._rowFreezeHeaderRect=new ur(TKt,{fill:this._freezeNormalHeaderColor,width:v,height:y,left:0,top:m-A,zIndex:3});let w=this._freezeNormalHeaderColor;(a===-1||a===0)&&(w=this._freezeNormalMainColor),this._rowFreezeMainRect=new ur(MKt,{fill:w,width:C*2/b,height:y,left:v,top:m-A,zIndex:3}),h.addObjects([this._rowFreezeHeaderRect,this._rowFreezeMainRect],j0)}else{(o===-1||o===0)&&(y=y*2);const A=y;this._columnFreezeHeaderRect=new ur(xKt,{fill:this._freezeNormalHeaderColor,width:y,height:_,left:f-A,top:0,zIndex:3});let w=this._freezeNormalHeaderColor;(o===-1||o===0)&&(w=this._freezeNormalMainColor),this._columnFreezeMainRect=new ur(LKt,{fill:w,width:y,height:S*2/b,left:f-A,top:_,zIndex:3}),h.addObjects([this._columnFreezeHeaderRect,this._columnFreezeMainRect],j0)}this._eventBinding(t)}_eventBinding(t=0){let e=this._rowFreezeHeaderRect,n=this._rowFreezeMainRect;t===1&&(e=this._columnFreezeHeaderRect,n=this._columnFreezeMainRect);const r=this._getSheetObject();if(r==null)return;const{scene:i}=r;if(this._freezePointerEnterSubs=new bl,this._freezePointerLeaveSubs=new bl,this._freezeDownSubs=new bl,n){const s=n.onPointerEnter$.subscribeEvent(()=>{if(!this.interceptor.fetchThroughInterceptors(i5)(!0,null))return!1;e==null||e.setProps({fill:this._freezeHoverColor,zIndex:4}),i.setCursor(Yn.GRAB)});this._freezePointerEnterSubs.add(s);const l=n.onPointerLeave$.subscribeEvent(()=>{e==null||e.setProps({fill:this._freezeNormalHeaderColor,zIndex:3}),i.resetCursor()});this._freezePointerLeaveSubs.add(l)}if(e){const s=e.onPointerEnter$.subscribeEvent(()=>{if(!this.interceptor.fetchThroughInterceptors(i5)(!0,null))return!1;e==null||e.setProps({fill:this._freezeHoverColor,zIndex:4}),i.setCursor(Yn.GRAB)});this._freezePointerEnterSubs.add(s);const l=e.onPointerLeave$.subscribeEvent(()=>{e==null||e.setProps({fill:this._freezeNormalHeaderColor,zIndex:3}),i.resetCursor()});this._freezePointerLeaveSubs.add(l)}const a=e==null?void 0:e.onPointerDown$.subscribeEvent(s=>{this._freezeDown(s,e,n,t)});a&&this._freezeDownSubs.add(a);const o=n==null?void 0:n.onPointerDown$.subscribeEvent(s=>{this._freezeDown(s,e,n,t)});o&&this._freezeDownSubs.add(o)}_getCurrentLastVisible(){var t,e,n,r,i,a,o;const s=this._getSheetObject();if(s==null)return;const l=(t=this._sheetSkeletonManagerService.getCurrent())==null?void 0:t.skeleton;if(l==null)return;const u=s.scene,c=Math.max(u.scaleX,u.scaleY),d=this._scrollManagerService.getCurrentScrollState(),h=(s.engine.height-l.columnHeaderHeight)/c,f=(s.engine.width-l.rowHeaderWidth)/c,m=(e=d==null?void 0:d.sheetViewStartRow)!=null?e:0,g=m===0?-((n=d==null?void 0:d.offsetY)!=null?n:0):l.rowHeightAccumulation[m-1]-((r=d==null?void 0:d.offsetY)!=null?r:0);let p=0,v=!1;for(let y=m,A=l.rowHeightAccumulation.length;y<A;y++)if(l.rowHeightAccumulation[y]-g>h){p=y,v=!0;break}v||(p=l.rowHeightAccumulation.length-1);const _=(i=d==null?void 0:d.sheetViewStartColumn)!=null?i:0,C=_===0?-((a=d==null?void 0:d.offsetX)!=null?a:0):l.columnWidthAccumulation[_-1]-((o=d==null?void 0:d.offsetX)!=null?o:0);let S=0,b=!1;for(let y=_,A=l.columnWidthAccumulation.length;y<A;y++)if(l.columnWidthAccumulation[y]-C>f){S=y,b=!0;break}return b||(S=l.columnWidthAccumulation.length-1),{lastRow:p,lastColumn:S}}_getActiveViewport(t){var e;const n=(e=this._getSheetObject())==null?void 0:e.scene.getViewports();return n&&n.find(r=>r.isHit(new cn(t.offsetX,t.offsetY)))||null}_freezeDown(t,e,n,r=0){var i;const a=(i=this._sheetSkeletonManagerService.getCurrent())==null?void 0:i.skeleton;if(a==null)return;const o=this._getSheetObject();if(o==null)return;if(!this.interceptor.fetchThroughInterceptors(i5)(!0,null))return!1;const{scene:s}=o;s.setCursor(Yn.GRABBING),s.disableObjectsEvent();const l=this._getCurrentLastVisible(),u=l===void 0?Number.POSITIVE_INFINITY:a.rowHeightAccumulation[l.lastRow],c=l===void 0?Number.POSITIVE_INFINITY:a.columnWidthAccumulation[l.lastColumn-1]+a.rowHeaderWidth;this._activeViewport=null;const d=this._getFreeze();d&&(this._changeToColumn=d.startColumn,this._changeToRow=d.startRow),this._scenePointerMoveSub=s.onPointerMove$.subscribeEvent(h=>{var f,m,g,p;const v=this._getActiveViewport(h),{startX:_,startY:C,row:S,column:b}=p1(h.offsetX,h.offsetY,s,a,v||void 0,!0);if(!this.interceptor.fetchThroughInterceptors(i5)(!0,null))return!1;s.setCursor(Yn.GRABBING);const y=eB/Math.max(s.scaleX,s.scaleY);r===0?((f=e.transformByState({top:Math.min(C,u)-y/2}))==null||f.setProps({fill:this._freezeActiveColor}),(m=n.transformByState({top:Math.min(C,u)-y/2}))==null||m.setProps({fill:this._freezeNormalHeaderColor}),this._changeToRow=l===void 0?S:Math.min(S,l.lastRow),this._changeToOffsetY=Math.min(C,u),this._activeViewport=v):((g=e.transformByState({left:Math.min(_,c)-y/2}))==null||g.setProps({fill:this._freezeActiveColor}),(p=n.transformByState({left:Math.min(_,c)-y/2}))==null||p.setProps({fill:this._freezeNormalHeaderColor}),this._changeToColumn=l===void 0?b:Math.min(b,l.lastColumn),this._changeToOffsetX=_,this._activeViewport=v)}),this._scenePointerUpSub=s.onPointerUp$.subscribeEvent(()=>{var h,f;s.resetCursor(),s.enableObjectsEvent(),this._clearObserverEvent();const{rowHeaderWidthAndMarginLeft:m,columnHeaderHeightAndMarginTop:g}=a;r===0&&(this._changeToRow===0||this._changeToRow===-1)||r===1&&(this._changeToColumn===0||this._changeToColumn===-1)?(e.setProps({fill:this._freezeNormalHeaderColor}),n.setProps({fill:this._freezeNormalMainColor})):(e==null||e.setProps({fill:this._freezeNormalHeaderColor}),n==null||n.setProps({fill:this._freezeNormalHeaderColor}));const p=eB/Math.max(s.scaleX,s.scaleY);r===0?(this._changeToRow===0||this._changeToRow===-1)&&(e.transformByState({top:g-p}),n.transformByState({top:g-p})):(this._changeToColumn===0||this._changeToColumn===-1)&&(e.transformByState({left:m-p}),n.transformByState({left:m-p}));const v=this._scrollManagerService.getCurrentScrollState()||{sheetViewStartRow:0,sheetViewStartColumn:0},{sheetViewStartRow:_,sheetViewStartColumn:C}=v;if(C==null||_==null)return;const S=this._context.unit,b=S.getActiveSheet();if(!b)return;const y=(h=b.getConfig())==null?void 0:h.freeze;let A=(y==null?void 0:y.xSplit)||0,w=(y==null?void 0:y.ySplit)||0;const P=(f=this._activeViewport)==null?void 0:f.viewportKey;r===0&&(!P||P===an.VIEW_LEFT_TOP||P===an.VIEW_MAIN_LEFT_TOP||P===an.VIEW_MAIN_TOP||P===an.VIEW_ROW_TOP?w=this._changeToRow-(y.startRow-y.ySplit):w=this._changeToRow-_,w=w<0?0:w),r===1&&(!P||P===an.VIEW_LEFT_TOP||P===an.VIEW_MAIN_LEFT_TOP||P===an.VIEW_MAIN_LEFT||P===an.VIEW_COLUMN_LEFT?A=this._changeToColumn-(y.startColumn-y.xSplit):A=this._changeToColumn-C,A=A<0?0:A),this._commandService.executeCommand(BUe.id,{startRow:w===0?-1:this._changeToRow,startColumn:A===0?-1:this._changeToColumn,ySplit:w,xSplit:A,unitId:S.getUnitId(),subUnitId:b.getSheetId()})})}_getViewports(){const t=this._getSheetObject();if(t==null)return;const{scene:e}=t,n=e.getViewport(an.VIEW_COLUMN_LEFT),r=e.getViewport(an.VIEW_COLUMN_RIGHT),i=e.getViewport(an.VIEW_ROW_TOP),a=e.getViewport(an.VIEW_ROW_BOTTOM),o=e.getViewport(an.VIEW_LEFT_TOP),s=e.getViewport(an.VIEW_MAIN),l=e.getViewport(an.VIEW_MAIN_LEFT_TOP),u=e.getViewport(an.VIEW_MAIN_LEFT),c=e.getViewport(an.VIEW_MAIN_TOP);if(!(n==null||r==null||i==null||a==null||o==null||s==null||l==null||u==null||c==null))return{viewMain:s,viewMainLeftTop:l,viewMainLeft:u,viewMainTop:c,viewColumnLeft:n,viewColumnRight:r,viewRowTop:i,viewRowBottom:a,viewLeftTop:o}}_bindViewportScroll(){const t=this._getViewports();if(!t)return;const{viewRowBottom:e,viewColumnRight:n,viewMainLeft:r,viewMainTop:i}=t;this.disposeWithMe(this._scrollManagerService.validViewportScrollInfo$.subscribe(a=>{if(!a)return;const{scrollX:o,scrollY:s,viewportScrollX:l,viewportScrollY:u}=a;e.isActive&&e.updateScrollVal({scrollY:s,viewportScrollY:u}),n.isActive&&n.updateScrollVal({scrollX:o,viewportScrollX:l}),r.isActive&&r.updateScrollVal({scrollY:s,viewportScrollY:u}),i.isActive&&i.updateScrollVal({scrollX:o,viewportScrollX:l})}))}_updateViewport(t=-1,e=-1,n=0,r=0,i=3){var a;const o=(a=this._sheetSkeletonManagerService.getCurrent())==null?void 0:a.skeleton;if(o==null)return;const{rowHeaderWidthAndMarginLeft:s,columnHeaderHeightAndMarginTop:l}=o,u=this._getViewports();if(!u)return;const{viewMain:c,viewMainLeftTop:d,viewMainLeft:h,viewMainTop:f,viewColumnLeft:m,viewColumnRight:g,viewRowTop:p,viewRowBottom:v,viewLeftTop:_}=u;g.resizeWhenFreezeChange({left:s,top:0,height:l,right:0}),v.resizeWhenFreezeChange({left:0,top:l,bottom:0,width:s}),_.resizeWhenFreezeChange({left:0,top:0,width:s,height:l});let C=!0,S=!0;d.enable(),(t===-1||t===0)&&(C=!1),(e===-1||e===0)&&(S=!1);const b=o.getNoMergeCellPositionByIndexWithNoHeader(t-n,e-r),y=o.getNoMergeCellPositionByIndexWithNoHeader(t,e);if(d.disable(),f.disable(),h.disable(),p.disable(),m.disable(),d.resetPadding(),f.resetPadding(),h.resetPadding(),p.resetPadding(),m.resetPadding(),C===!1&&S===!1)c.resizeWhenFreezeChange({left:s,top:l,bottom:0,right:0}),c.resetPadding();else if(C===!0&&S===!1){const A=y.startY-b.startY;c.resizeWhenFreezeChange({left:s,top:l+A,bottom:0,right:0}),c.setPadding({startY:b.startY,endY:y.startY,startX:0,endX:0}),i&2&&this._commandService.executeCommand(gf.id,{sheetViewStartRow:0,offsetY:0}),f.resizeWhenFreezeChange({left:s,top:l,height:A,right:0}),f.updateScrollVal({viewportScrollY:b.startY,rawScrollX:c.scrollX,viewportScrollX:c.viewportScrollX}),p.resizeWhenFreezeChange({left:0,top:l,width:s,height:A}),p.updateScrollVal({viewportScrollY:b.startY}),v.resizeWhenFreezeChange({left:0,top:l+A,bottom:0,width:s}),f.enable(),p.enable()}else if(C===!1&&S===!0){const A=y.startX-b.startX;c.resizeWhenFreezeChange({left:s+A,top:l,bottom:0,right:0}),c.setPadding({startX:b.startX,endX:y.startX,startY:0,endY:0}),i&1&&this._commandService.executeCommand(gf.id,{sheetViewStartColumn:0,offsetX:0}),h.resizeWhenFreezeChange({left:s,top:l,width:A,bottom:0,right:0}),h.updateScrollVal({viewportScrollX:b.startX,rawScrollY:c.scrollY,viewportScrollY:c.viewportScrollY}),m.resizeWhenFreezeChange({left:s,top:0,width:A,height:l}),m.updateScrollVal({viewportScrollX:b.startX}),g.resizeWhenFreezeChange({left:s+A,top:0,height:l,right:0}),h.enable(),m.enable()}else{const A=y.startX-b.startX,w=y.startY-b.startY;c.resizeWhenFreezeChange({left:s+A,top:l+w,bottom:0,right:0}),c.setPadding({startY:b.startY,endY:y.startY,startX:b.startX,endX:y.startX}),i&&this._commandService.executeCommand(gf.id,{...i&1?{sheetViewStartColumn:0,offsetX:0}:null,...i&2?{sheetViewStartRow:0,offsetY:0}:null}),h.resizeWhenFreezeChange({left:s,top:l+w,width:A,bottom:0}),h.updateScrollVal({viewportScrollX:b.startX,rawScrollY:c.scrollY,viewportScrollY:c.viewportScrollY}),f.resizeWhenFreezeChange({left:s+A,top:l,height:w,right:0}),f.updateScrollVal({viewportScrollY:b.startY,rawScrollX:c.scrollX,viewportScrollX:c.viewportScrollX}),d.resizeWhenFreezeChange({left:s,top:l,width:A,height:w}),d.updateScrollVal({viewportScrollX:b.startX,viewportScrollY:b.startY}),p.resizeWhenFreezeChange({left:0,top:l,width:s,height:w}),p.updateScrollVal({viewportScrollY:b.startY}),v.resizeWhenFreezeChange({left:0,top:l+w,bottom:0,width:s}),m.resizeWhenFreezeChange({left:s,top:0,width:A,height:l}),m.updateScrollVal({viewportScrollX:b.startX}),g.resizeWhenFreezeChange({left:s+A,top:0,height:l,right:0}),d.enable(),f.enable(),h.enable(),p.enable(),m.enable()}}_skeletonListener(){this.disposeWithMe($t(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{[Ha.id,V0.id,B0.id].includes((t==null?void 0:t.commandId)||"")&&this._refreshCurrent()})))}_refreshCurrent(){const t=this._context.unit.getActiveSheet();if(!t)return;const e=t.getConfig().freeze,{startRow:n=-1,startColumn:r=-1,ySplit:i=0,xSplit:a=0}=e;this._refreshFreeze(n,r,i,a,0)}_themeChangeListener(){this._themeChange(this._themeService.getCurrentTheme()),this.disposeWithMe(this._themeService.currentTheme$.subscribe(t=>{this._clearFreeze(),this._themeChange(t),this._refreshCurrent()}))}_themeChange(t){this._freezeNormalHeaderColor=t.grey400,this._freezeNormalMainColor=new Zs(t.grey400).setAlpha(OKt).toRgbString(),this._freezeActiveColor=t.primaryColor,this._freezeHoverColor=t.grey500}_interceptorCommands(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:N(t=>{const e={redos:[],undos:[]},n=this._getFreeze();if(!n)return e;const r=N(i=>{const a=this._context.unit,o=a.getUnitId(),s=a.getActiveSheet();if(!s)return e;const l=s.getSheetId();this._refreshFreeze(i.startRow,i.startColumn,i.ySplit,i.xSplit,0);const u={...i,unitId:o,subUnitId:l,resetScroll:!1},c=sb(this._injector,u);return{undos:[{id:El.id,params:c}],redos:[{id:El.id,params:u}]}},"createFreezeMutationAndRefresh");if(t.id===If.id){const i=t.params,{range:a,direction:o}=i,s=a.endRow-a.startRow+1;if(a.startRow+1<n.startRow||a.startRow+1===n.startRow&&o===ut.UP){const l={...n,startRow:Math.max(1,n.startRow+s),ySplit:Math.max(1,n.ySplit+s)};return r(l)}}if(t.id===Pf.id){const i=t.params,{range:a,direction:o}=i,s=a.endColumn-a.startColumn+1;if(a.startColumn+1<n.startColumn||a.startColumn+1===n.startColumn&&o===ut.LEFT){const l={...n,startColumn:Math.max(1,n.startColumn+s),xSplit:Math.max(1,n.xSplit+s)};return r(l)}}if(t.id===i3.id){const i=this._selectionManagerService.getCurrentSelections(),{fromRange:{startColumn:a},toRange:{startColumn:o}}=t.params,s=i==null?void 0:i.filter(g=>g.range.rangeType===it.COLUMN&&g.range.startColumn<=a&&a<=g.range.endColumn);if(!(s!=null&&s.length))return e;const l=s[0].range,u={...l,startColumn:o,endColumn:o+l.endColumn-l.startColumn};if(!n||n.startColumn<=0||l.startColumn>=n.startColumn&&u.startColumn>=n.startColumn||l.startColumn===u.startColumn||l.endColumn<n.startColumn&&u.startColumn<n.startColumn)return e;const c=l.endColumn-l.startColumn+1,d=Math.max(Math.min(n.startColumn,l.endColumn+1)-l.startColumn,0);let h,f;u.startColumn>=n.startColumn?(h=Math.max(n.startColumn-d,1),f=Math.max(n.xSplit-d,1)):(h=n.startColumn+c-d,f=n.xSplit+c-d);const m={...n,startColumn:h,xSplit:f};return r(m)}if(t.id===r3.id){const i=this._selectionManagerService.getCurrentSelections(),{fromRange:{startRow:a},toRange:{startRow:o}}=t.params,s=i==null?void 0:i.filter(g=>g.range.rangeType===it.ROW&&g.range.startRow<=a&&a<=g.range.endRow);if(!(s!=null&&s.length))return e;const l=s[0].range,u={...l,startRow:o,endRow:o+l.endRow-l.startRow};if(!n||n.startRow<=0||l.startRow>=n.startRow&&u.startRow>=n.startRow||l.startRow===u.startRow||l.endRow<n.startRow&&u.startRow<n.startRow)return e;const c=l.endRow-l.startRow+1,d=Math.max(Math.min(n.startRow,l.endRow+1)-l.startRow,0);let h,f;u.startRow>=n.startRow?(h=Math.max(n.startRow-d,1),f=Math.max(n.ySplit-d,1)):(h=n.startRow+c-d,f=n.ySplit+c-d);const m={...n,startRow:h,ySplit:f};return r(m)}if(t.id===H0.id||t.id===U0.id){const i=t.params,a=i.range;if(a.rangeType===it.COLUMN&&a.startColumn<n.startColumn){const o=Math.min(n.startColumn,a.endColumn+1)-a.startColumn,s={...n,startColumn:Math.max(1,n.startColumn-o),xSplit:Math.max(1,n.xSplit-o)};return r(s)}if(i.range.rangeType===it.ROW&&a.startRow<n.startRow){const o=Math.min(n.startRow,a.endRow+1)-a.startRow,s={...n,startRow:Math.max(1,n.startRow-o),ySplit:Math.max(1,n.ySplit-o)};return r(s)}}return e},"getMutations")}))}_commandExecutedListener(){const t=[El.id,Uf.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=this._lastFreeze,r=this._context.unit,i=r.getActiveSheet(),a=e.params,{unitId:o,subUnitId:s}=a;if(!(o===r.getUnitId()&&s===(i==null?void 0:i.getSheetId())))return;const l=i.getConfig().freeze;if(this._lastFreeze=l,l==null)return;let u=0;const{startRow:c=-1,startColumn:d=-1,ySplit:h=0,xSplit:f=0}=l;(!n||n.startRow!==c||n.ySplit!==h)&&(u|=2),(!n||n.startColumn!==d||n.xSplit!==f)&&(u|=1),a.resetScroll===!1&&(u=0),this._refreshFreeze(c,d,h,f,u)}else if(e.id===hc.id){const n=this._getFreeze(),r=n&&e.params.ranges.some(i=>i.startRow<n.startRow);e.params&&r&&this._refreshCurrent()}else if(e.id===Xs.id){const n=this._getFreeze();e.params&&n&&e.params.ranges.some(r=>r.startColumn<n.startColumn)&&this._refreshCurrent()}else if(e.id===Nf.id){const n=e.params,r=this._getFreeze();if(r&&r.startRow>-1&&n.rowsAutoHeightInfo.some(i=>i.row<r.startRow)){const i=this._sheetSkeletonManagerService.currentSkeleton$.subscribe(()=>{this._refreshCurrent(),setTimeout(()=>{i.unsubscribe()})})}}else if(e.id===Tf.id||e.id===Lf.id){const n=e.params,r=this._getFreeze(),i=n.ranges;r&&r.startColumn>-1&&i.some(a=>a.startColumn<r.startColumn)&&this._refreshCurrent()}else if(e.id===Of.id||e.id===xf.id){const n=e.params,r=this._getFreeze(),i=n.ranges;r&&r.startRow>-1&&i.some(a=>a.startRow<r.startRow)&&this._refreshCurrent()}}))}_zoomRefresh(){const t=this._getSheetObject();if(t==null)return;const{scene:e}=t;e.onTransformChange$.subscribeEvent(n=>{n.type===fo.scale&&this._refreshCurrent()})}_clearObserverEvent(){var t,e;this._getSheetObject()!=null&&((t=this._scenePointerMoveSub)==null||t.unsubscribe(),(e=this._scenePointerUpSub)==null||e.unsubscribe(),this._scenePointerMoveSub=null,this._scenePointerUpSub=null)}_clearFreeze(){var t,e,n,r,i,a;(t=this._rowFreezeHeaderRect)==null||t.dispose(),(e=this._rowFreezeMainRect)==null||e.dispose(),(n=this._columnFreezeHeaderRect)==null||n.dispose(),(r=this._columnFreezeMainRect)==null||r.dispose(),this._getSheetObject()!=null&&([this._freezeDownSubs,this._freezePointerEnterSubs,this._freezePointerLeaveSubs].forEach(o=>{o==null||o.unsubscribe()}),this._freezeDownSubs=null,this._freezePointerEnterSubs=null,this._freezePointerLeaveSubs=null,(i=this._scenePointerMoveSub)==null||i.unsubscribe(),(a=this._scenePointerUpSub)==null||a.unsubscribe(),this._scenePointerMoveSub=null,this._scenePointerUpSub=null)}_getPositionByIndex(t,e){var n;if(this._getSheetObject()==null)return;const r=(n=this._sheetSkeletonManagerService.getCurrent())==null?void 0:n.skeleton,i=r==null?void 0:r.getNoMergeCellPositionByIndex(t,e);if(r==null)return;if(i!=null&&(!isNaN(i.endX)||!isNaN(i.endY)))return i;const{rowHeaderWidthAndMarginLeft:a,columnHeaderHeightAndMarginTop:o}=r;return{startX:a,endX:a,startY:o,endY:o}}_getFreeze(){var t;const e=(t=this._sheetSkeletonManagerService.getCurrent())==null?void 0:t.skeleton.getWorksheetConfig();if(e!=null)return e.freeze}_getSheetObject(){return Ad(this._context.unit,this._context)}_refreshFreeze(t,e,n,r,i){var a;const o={startRow:t,startColumn:e,ySplit:n,xSplit:r};this._clearFreeze(),this._createFreeze(0,o),this._createFreeze(1,o),this._updateViewport(t,e,n,r,i),(a=this._getSheetObject())==null||a.spreadsheet.makeForceDirty()}},N(tB,"HeaderFreezeRenderController"),tB);aC=PKt([F2(1,se(Gr)),F2(2,me),F2(3,se(Bt)),F2(4,se(zl)),F2(5,se(Ja)),F2(6,se(Tr)),F2(7,se(Wn))],aC);var NKt=Object.defineProperty,kKt=Object.getOwnPropertyDescriptor,FKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?kKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&NKt(e,n,i),i},"__decorateClass$i"),nB=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i");const VKt="__SpreadsheetHeaderMoveControllerBackground__",BKt="__SpreadsheetHeaderMoveControllerShapeLine__",UKt="rgba(0, 0, 0, 0.1)",HKt="rgb(119, 119, 119)",jKt=4,rB=_s("headerMovePermissionCheck");var iB;let oC=(iB=class extends et{constructor(t,e,n,r){super(),fe(this,"_startOffsetX",Number.NEGATIVE_INFINITY),fe(this,"_startOffsetY",Number.NEGATIVE_INFINITY),fe(this,"_moveHelperBackgroundShape"),fe(this,"_moveHelperLineShape"),fe(this,"_headerPointerDownSubs"),fe(this,"_headerPointerMoveSubs"),fe(this,"_headerPointerLeaveSubs"),fe(this,"_dragHeaderMoveSub"),fe(this,"_scenePointerUpSub"),fe(this,"_scrollTimer"),fe(this,"_changeFromColumn",-1),fe(this,"_changeFromRow",-1),fe(this,"_changeToColumn",-1),fe(this,"_changeToRow",-1),fe(this,"interceptor",new Wf({HEADER_MOVE_PERMISSION_CHECK:rB})),fe(this,"_workbookSelections"),this._context=t,this._sheetSkeletonManagerService=n,this._commandService=r,this._workbookSelections=e.getWorkbookSelections(this._context.unitId),this._init()}dispose(){var t,e,n,r,i,a,o,s;(t=this._moveHelperBackgroundShape)==null||t.dispose(),(e=this._moveHelperLineShape)==null||e.dispose(),(n=this._headerPointerMoveSubs)==null||n.unsubscribe(),(r=this._headerPointerLeaveSubs)==null||r.unsubscribe(),(i=this._headerPointerDownSubs)==null||i.unsubscribe(),this._headerPointerMoveSubs=null,this._headerPointerLeaveSubs=null,this._headerPointerDownSubs=null,(a=this._dragHeaderMoveSub)==null||a.unsubscribe(),(o=this._scenePointerUpSub)==null||o.unsubscribe(),this._dragHeaderMoveSub=null,this._scenePointerUpSub=null,(s=this._scrollTimer)==null||s.dispose()}_init(){this._initialRowOrColumn(it.ROW),this._initialRowOrColumn(it.COLUMN)}_initialRowOrColumn(t=it.ROW){const e=this._context.components.get(_o.COLUMN),n=this._context.components.get(_o.ROW),r=this._context.scene,i=t===it.ROW?n:e,a=N(l=>{var u,c;const d=(u=this._sheetSkeletonManagerService.getCurrent())==null?void 0:u.skeleton;if(d==null)return;const h=(c=this._workbookSelections.getCurrentLastSelection())==null?void 0:c.range;if(!h||!this.interceptor.fetchThroughInterceptors(rB)(!1,h))return;const f=this._workbookSelections.getCurrentSelections(),{row:m,column:g}=p1(l.offsetX,l.offsetY,r,d);if(!Rp(f,t===it.ROW?m:g,t)){r.resetCursor();return}r.setCursor(Yn.GRAB)},"pointerMoveHandler"),o=N(()=>{var l,u;(l=this._moveHelperBackgroundShape)==null||l.hide(),(u=this._moveHelperLineShape)==null||u.hide(),r.resetCursor()},"pointerLeaveHandler"),s=N((l,u)=>{var c,d;if(u.isStopPropagation)return;const h=(c=this._sheetSkeletonManagerService.getCurrent())==null?void 0:c.skeleton;if(h==null)return;const f=(d=this._workbookSelections.getCurrentLastSelection())==null?void 0:d.range;if(!f||!this.interceptor.fetchThroughInterceptors(rB)(!1,f))return;const{offsetX:m,offsetY:g}=l,p=r.getRelativeToViewportCoord(cn.FromArray([m,g])),{x:v,y:_}=p;this._startOffsetX=v,this._startOffsetY=_;const{row:C,column:S}=p1(l.offsetX,l.offsetY,r,h);let b;t===it.ROW?(this._changeFromRow=C,b=Rs.Y):(this._changeFromColumn=S,b=Rs.X);const y=this._workbookSelections.getCurrentSelections(),A=Rp(y,t===it.ROW?C:S,t);if(!A)return;const w=r.getVpScrollXYInfoByPosToVp(cn.FromArray([this._startOffsetX,this._startOffsetY]));this._newBackgroundAndLine(),r.setCursor(Yn.GRABBING),r.disableObjectsEvent();let P=!1,M;const L=N(()=>{if(P)return;M=df.create(r,b),this._scrollTimer=M;const k=r.getViewport(an.VIEW_MAIN);M.startScroll(v,_,k),P=!0},"initScrollTimer");this._dragHeaderMoveSub=r.onPointerMove$.subscribeEvent(k=>{L();const{offsetX:O,offsetY:$}=k,{x:B,y:V}=r.getRelativeToViewportCoord(cn.FromArray([O,$]));this._rowColumnMoving(B,V,A,w,t),M.scrolling(B,V,()=>{this._rowColumnMoving(B,V,A,w,t)})}),this._scenePointerUpSub=r.onPointerUp$.subscribeEvent(()=>{var k,O,$;this._disposeBackgroundAndLine(),r.resetCursor(),r.enableObjectsEvent(),this._clearObserverEvent(),(k=this._scrollTimer)==null||k.dispose();const B=this._workbookSelections.getCurrentSelections();if(t===it.ROW){if(this._changeFromRow!==this._changeToRow&&this._changeToRow!==-1){const V=(O=((B==null?void 0:B.filter(X=>X.range.rangeType===it.ROW&&X.range.startRow<=this._changeFromRow&&this._changeFromRow<=X.range.endRow))||[])[0])==null?void 0:O.range;V&&this._commandService.executeCommand(r3.id,{fromRange:V,toRange:{...V,startRow:this._changeToRow,endRow:this._changeToRow+V.endRow-V.startRow}})}this._changeToRow=this._changeFromRow=-1}else{if(this._changeFromColumn!==this._changeToColumn&&this._changeToColumn!==-1){const V=($=((B==null?void 0:B.filter(X=>X.range.rangeType===it.COLUMN&&X.range.startColumn<=this._changeFromColumn&&this._changeFromColumn<=X.range.endColumn))||[])[0])==null?void 0:$.range;V&&this._commandService.executeCommand(i3.id,{fromRange:V,toRange:{...V,startColumn:this._changeToColumn,endColumn:this._changeToColumn+V.endColumn-V.startColumn}})}this._changeToColumn=this._changeFromColumn=-1}})},"pointerDownHandler");this._headerPointerMoveSubs=new bl,this._headerPointerMoveSubs.add(i.onPointerMove$.subscribeEvent(a)),this._headerPointerLeaveSubs=new bl,this._headerPointerLeaveSubs.add(i==null?void 0:i.onPointerLeave$.subscribeEvent(o)),this._headerPointerDownSubs=new bl,this._headerPointerDownSubs.add(i==null?void 0:i.onPointerDown$.subscribeEvent(s))}_rowColumnMoving(t,e,n,r,i){var a,o,s,l,u,c,d;const h=this._context.scene,f=(a=this._sheetSkeletonManagerService.getCurrent())==null?void 0:a.skeleton;if(f==null)return;const{rowHeaderWidth:m,columnHeaderHeight:g,rowTotalHeight:p,columnTotalWidth:v}=f,_=h.getViewportScrollXY(h.getViewport(an.VIEW_MAIN)),{scaleX:C,scaleY:S}=h.getAncestorScale(),b=f.getCellPositionByOffset(t,e,C,S,_),{row:y,column:A}=b,w=f.getNoMergeCellPositionByIndex(y,A),{startX:P,startY:M,endX:L,endY:k}=w,O=this._sheetSkeletonManagerService.attachRangeWithCoord(n.range);if(O==null)return;const $=Math.max(C,C),{startX:B,endX:V,startY:X,endY:z,startRow:F,startColumn:H,endRow:W,endColumn:K}=O;i===it.ROW?(o=this._moveHelperBackgroundShape)==null||o.transformByState({height:z-X,width:v+m,left:0,top:X+(e-this._startOffsetY)/$+_.y-r.y}):(s=this._moveHelperBackgroundShape)==null||s.transformByState({height:p+g,width:V-B,left:B+(t-this._startOffsetX)/$+_.x-r.x,top:0}),(l=this._moveHelperBackgroundShape)==null||l.show();const G=jKt/$;if(i===it.ROW){let te=0;if(y<=F)te=M-G/2,this._changeToRow=y;else if(y>W)te=k-G/2,this._changeToRow=y+1;else return;(u=this._moveHelperLineShape)==null||u.transformByState({height:G,width:v,left:m,top:te})}else{let te=0;if(A<=H)te=P-G/2,this._changeToColumn=A;else if(A>K)te=L-G/2,this._changeToColumn=A+1;else return;(c=this._moveHelperLineShape)==null||c.transformByState({height:p,width:G,left:te,top:g})}(d=this._moveHelperLineShape)==null||d.show()}_clearObserverEvent(){var t,e;(t=this._dragHeaderMoveSub)==null||t.unsubscribe(),(e=this._scenePointerUpSub)==null||e.unsubscribe(),this._dragHeaderMoveSub=null,this._scenePointerUpSub=null}_newBackgroundAndLine(){const t=this._context.scene;this._moveHelperBackgroundShape=new ur(VKt,{fill:UKt,evented:!1,zIndex:100}),this._moveHelperLineShape=new ur(BKt,{fill:HKt,evented:!1,zIndex:100}),t.addObjects([this._moveHelperBackgroundShape,this._moveHelperLineShape],j0)}_disposeBackgroundAndLine(){var t,e;(t=this._moveHelperBackgroundShape)==null||t.dispose(),(e=this._moveHelperLineShape)==null||e.dispose()}},N(iB,"HeaderMoveRenderController"),iB);oC=FKt([nB(1,se(Bt)),nB(2,se(Gr)),nB(3,me)],oC);var jY=(t=>(t[t.VERTICAL=0]="VERTICAL",t[t.HORIZONTAL=1]="HORIZONTAL",t))(jY||{});const $Kt="rgba(120, 120, 120, 0.01)",aB="rgb(68, 71, 70)",n8=12,WKt=44,$Y=4,Yze=class extends Ed{constructor(e,n){super(e,n),fe(this,"_size",n8),fe(this,"_color",aB),fe(this,"_mode",0),this.setShapeProps(n)}get size(){return this._size}get mode(){return this._mode}get color(){return this._color}_draw(e){const n=this.getScene();if(!n)return;const{scaleX:r,scaleY:i}=n.getAncestorScale(),a=Math.max(r,i),o=n8/a,s=$Y/a;let{width:l,height:u}=this,c=0,d=0;this.mode===0?(l=s,c=o-s):(u=s,d=o-s),ur.drawWith(e,{width:this.width,height:this.height,left:0,top:0,fill:$Kt}),ur.drawWith(e,{width:l,height:u,fill:aB,radius:s}),e.save(),e.transform(1,0,0,1,c,d),ur.drawWith(e,{width:l,height:u,fill:aB,radius:s}),e.restore()}setShapeProps(e){return e!=null&&e.size&&(this._size=e.size),e!=null&&e.mode&&(this._mode=e.mode),e!=null&&e.color&&(this._color=e.color),this.mode===0?this.transformByState({width:n8,height:this.size}):this.transformByState({width:this.size,height:n8}),this}};N(Yze,"HeaderMenuResizeShape");let Cue=Yze;var zKt=Object.defineProperty,qKt=Object.getOwnPropertyDescriptor,YKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?qKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zKt(e,n,i),i},"__decorateClass$h"),Sue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h");const XKt="__SpreadsheetHeaderResizeControllerShapeRow__",GKt="__SpreadsheetHeaderResizeControllerShapeColumn__",bue="__SpreadsheetHeaderResizeControllerShapeHelper__",yue="rgb(199, 199, 199)",QKt=2,oB=_s("headerResizePermissionCheck");var sB;let _P=(sB=class extends et{constructor(t,e,n){super(),fe(this,"_currentRow",0),fe(this,"_currentColumn",0),fe(this,"_rowResizeRect"),fe(this,"_columnResizeRect"),fe(this,"_headerPointerSubs"),fe(this,"_scenePointerMoveSub"),fe(this,"_scenePointerUpSub"),fe(this,"_resizeHelperShape"),fe(this,"_startOffsetX",Number.POSITIVE_INFINITY),fe(this,"_startOffsetY",Number.POSITIVE_INFINITY),fe(this,"interceptor",new Wf({HEADER_RESIZE_PERMISSION_CHECK:oB})),this._context=t,this._sheetSkeletonManagerService=e,this._commandService=n,this._init()}dispose(){var t,e,n;(t=this._rowResizeRect)==null||t.dispose(),this._rowResizeRect=null,(e=this._columnResizeRect)==null||e.dispose(),this._columnResizeRect=null,(n=this._headerPointerSubs)==null||n.unsubscribe(),this._headerPointerSubs=null}_init(){const t=this._context.scene;this._rowResizeRect=new Cue(XKt,{visible:!1,mode:jY.HORIZONTAL,zIndex:100}),this._columnResizeRect=new Cue(GKt,{visible:!1,mode:jY.VERTICAL,zIndex:100}),t.addObjects([this._rowResizeRect,this._columnResizeRect],j0),this._initialHover(0),this._initialHover(1),this._initialHoverResize(0),this._initialHoverResize(1)}_initialHover(t=0){const e=this._context.components.get(_o.COLUMN),n=this._context.components.get(_o.ROW),r=this._context.scene,i=t===0?n:e,a=N((s,l)=>{var u,c;(u=this._rowResizeRect)==null||u.hide(),(c=this._columnResizeRect)==null||c.hide()},"pointerLeaveEvent"),o=N((s,l)=>{var u;const c=(u=this._sheetSkeletonManagerService.getCurrent())==null?void 0:u.skeleton;if(c==null||this._rowResizeRect==null||this._columnResizeRect==null)return;const{rowHeaderWidth:d,columnHeaderHeight:h}=c,{startX:f,startY:m,endX:g,endY:p,row:v,column:_}=p1(s.offsetX,s.offsetY,r,c),C=H8(s.offsetX,s.offsetY,r),{scaleX:S,scaleY:b}=r.getAncestorScale(),y=Math.max(S,b),A=n8/y;if(t===0){let w=m-A/2;if(C.y<=m+A/2&&C.y>=m)this._currentRow=v-1;else if(C.y>=p-A/2&&C.y<=p)this._currentRow=v,w=p-A/2;else{this._rowResizeRect.hide();return}if(this._currentRow===-1)return;if(!this.interceptor.fetchThroughInterceptors(oB)(null,{row:this._currentRow}))return!1;const P=Math.min(WKt,d/3);this._rowResizeRect.transformByState({left:d/2-P/2,top:w}),this._rowResizeRect.setShapeProps({size:P}),this._rowResizeRect.show()}else{let w=f-A/2;if(C.x<=f+A/2&&C.x>=f)this._currentColumn=_-1;else if(C.x>=g-A/2&&C.x<=g)this._currentColumn=_,w=g-A/2;else{this._columnResizeRect.hide();return}if(this._currentColumn===-1)return;if(!this.interceptor.fetchThroughInterceptors(oB)(null,{col:this._currentColumn}))return!1;const P=h*.7;this._columnResizeRect.transformByState({left:w,top:h/2-P/2}),this._columnResizeRect.setShapeProps({size:P}),this._columnResizeRect.show()}},"pointerMoveEvent");this._headerPointerSubs=new bl,this._headerPointerSubs.add(i==null?void 0:i.onPointerMove$.subscribeEvent(o)),this._headerPointerSubs.add(i==null?void 0:i.onPointerLeave$.subscribeEvent(a))}_initialHoverResize(t=0){const e=this._context.scene,n=t===0?this._rowResizeRect:this._columnResizeRect;n!=null&&(this.disposeWithMe($t(n.onPointerEnter$.subscribeEvent(()=>{n!=null&&(n.show(),e.setCursor(t===0?Yn.ROW_RESIZE:Yn.COLUMN_RESIZE))}))),this.disposeWithMe($t(n.onPointerLeave$.subscribeEvent(()=>{n!=null&&(n.hide(),e.resetCursor())}))),this.disposeWithMe($t(n.onPointerDown$.subscribeEvent(r=>{var i,a,o,s,l,u,c;const d=(i=this._sheetSkeletonManagerService.getCurrent())==null?void 0:i.skeleton;if(d==null)return;const h=this._context.scene,f=h.getEngine(),m=(f==null?void 0:f.height)||0,g=(f==null?void 0:f.width)||0,p=h.getViewport(an.VIEW_MAIN),v=(((o=(a=p==null?void 0:p.getScrollBar())==null?void 0:a.horizonScrollTrack)==null?void 0:o.height)||0)+10,_=(((l=(s=p==null?void 0:p.getScrollBar())==null?void 0:s.verticalScrollTrack)==null?void 0:l.width)||0)+10,C=H8(r.offsetX,r.offsetY,h),{scaleX:S,scaleY:b}=h.getAncestorScale();this._startOffsetX=C.x,this._startOffsetY=C.y;const y=d.getOffsetByPositionX(this._currentColumn),A=d.getOffsetByPositionY(this._currentRow),w=d.getNoMergeCellPositionByIndex(this._currentRow,this._currentColumn);let P=!1,M=0,L=0;const{columnTotalWidth:k,rowHeaderWidth:O,rowTotalHeight:$,columnHeaderHeight:B}=d,V=g>k+O?g:k+O,X=m>$+B?m:$+B,z=Math.max(S,b),F=$Y/z;t===0?this._resizeHelperShape=new ur(bue,{width:V,height:F,fill:yue,left:0,top:A-F/2}):this._resizeHelperShape=new ur(bue,{width:F,height:X,fill:yue,left:y-F/2,top:0});const H=((u=this._columnResizeRect)==null?void 0:u.left)||0,W=((c=this._rowResizeRect)==null?void 0:c.top)||0;h.addObject(this._resizeHelperShape,j0),h.disableObjectsEvent(),this._scenePointerMoveSub=h.onPointerMove$.subscribeEvent(K=>{var G,te,Y,ae,ie,ne;const de=h.getRelativeToViewportCoord(cn.FromArray([this._startOffsetX,this._startOffsetY])),_e=h.getVpScrollXYInfoByPosToVp(de,p),Pe=H8(K.offsetX,K.offsetY,h),{x:De,y:Ee}=Pe,{scaleX:ye,scaleY:Ve}=h.getAncestorScale(),ke=Math.max(ye,Ve),Ke=$Y/ke;M=De-this._startOffsetX-Ke/2,L=Ee-this._startOffsetY-Ke/2,Math.abs(t===0?L:M)>=QKt&&(P=!0),t===0?(L>m-v+_e.y-w.startY&&(L=m-v+_e.y-w.startY),L<-(w.endY-w.startY)+2&&(L=-(w.endY-w.startY)+2),P&&((G=this._resizeHelperShape)==null||G.transformByState({top:A+L}),(te=this._rowResizeRect)==null||te.transformByState({top:W+L+Ke/2}),(Y=this._rowResizeRect)==null||Y.show(),h.setCursor(Yn.ROW_RESIZE))):(M>g-_+_e.x-w.startX&&(M=g-_+_e.x-w.startX),M<-(w.endX-w.startX)+2&&(M=-(w.endX-w.startX)+2),P&&((ae=this._resizeHelperShape)==null||ae.transformByState({left:y+M}),(ie=this._columnResizeRect)==null||ie.transformByState({left:H+M+Ke/2}),(ne=this._columnResizeRect)==null||ne.show(),h.setCursor(Yn.COLUMN_RESIZE)))}),this._scenePointerUpSub=h.onPointerUp$.subscribeEvent(K=>{var G,te,Y;const ae=this._context.scene;this._clearObserverEvent(),(G=this._resizeHelperShape)==null||G.dispose(),this._resizeHelperShape=null,ae.enableObjectsEvent(),P&&(ae.resetCursor(),(te=this._rowResizeRect)==null||te.hide(),(Y=this._columnResizeRect)==null||Y.hide(),t===0?this._commandService.executeCommand(dx.id,{deltaY:L,anchorRow:this._currentRow}):this._commandService.executeCommand(cx.id,{deltaX:M,anchorCol:this._currentColumn}))})}))),this.disposeWithMe($t(n.onDblclick$.subscribeEvent(()=>{var r,i;t===0&&(this._context.scene.resetCursor(),this._commandService.executeCommand(o3.id,{ranges:[{startRow:this._currentRow,endRow:this._currentRow,startColumn:0,endColumn:((r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton.worksheet.getColumnCount())||0}]}),(i=this._rowResizeRect)==null||i.hide())}))))}_clearObserverEvent(){var t,e;(t=this._scenePointerMoveSub)==null||t.unsubscribe(),(e=this._scenePointerUpSub)==null||e.unsubscribe(),this._scenePointerMoveSub=null,this._scenePointerUpSub=null}},N(sB,"HeaderResizeRenderController"),sB);_P=YKt([Sue(1,se(Gr)),Sue(2,me)],_P);var KKt=Object.defineProperty,ZKt=Object.getOwnPropertyDescriptor,JKt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?ZKt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&KKt(e,n,i),i},"__decorateClass$g"),bm=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g"),lB;let rv=(lB=class extends Da{constructor(t,e,n,r,i,a,o,s,l){super(),fe(this,"disposableCollection",new Gi),this._context=t,this._univerInstanceService=e,this._permissionService=n,this._selectionManagerService=r,this._rangeProtectionRuleModel=i,this._headerMoveRenderController=a,this._selectionRenderService=o,this._headerFreezeRenderController=s,this._headerResizeRenderController=l,this._initHeaderMovePermissionInterceptor(),this._initHeaderResizePermissionInterceptor(),this._initRangeFillPermissionInterceptor(),this._initRangeMovePermissionInterceptor()}_initHeaderMovePermissionInterceptor(){this.disposeWithMe(this._headerMoveRenderController.interceptor.intercept(this._headerMoveRenderController.interceptor.getInterceptPoints().HEADER_MOVE_PERMISSION_CHECK,{handler:N((t,e)=>{const n=Dn(this._univerInstanceService);if(!n)return!1;const{worksheet:r,unitId:i,subUnitId:a}=n;return this._permissionService.composePermission([new on(i).id,new Tn(i,a).id]).every(o=>o.value)?e?!this._rangeProtectionRuleModel.getSubunitRuleList(i,a).reduce((o,s)=>[...o,...s.ranges],[]).filter(o=>ft.intersects(o,e)).some(o=>{var s,l;const{startRow:u,startColumn:c,endRow:d,endColumn:h}=o;for(let f=u;f<=d;f++)for(let m=c;m<=h;m++){const g=(l=(s=r.getCell(f,m))==null?void 0:s.selectionProtection)==null?void 0:l[0];if((g==null?void 0:g[Jn.Edit])===!1)return!0}return!1}):!0:!1},"handler")}))}_initHeaderResizePermissionInterceptor(){this._headerResizeRenderController&&this.disposeWithMe(this._headerResizeRenderController.interceptor.intercept(this._headerResizeRenderController.interceptor.getInterceptPoints().HEADER_RESIZE_PERMISSION_CHECK,{handler:N((t,e)=>{var n,r,i,a;const o=Dn(this._univerInstanceService);if(!o)return!1;const{unitId:s,subUnitId:l}=o;if(e.row){if(((r=(n=this._permissionService.getPermissionPoint(new nh(s,l).id))==null?void 0:n.value)!=null?r:!1)===!1)return!1}else if(e.col&&((a=(i=this._permissionService.getPermissionPoint(new td(s,l).id))==null?void 0:i.value)!=null?a:!1)===!1)return!1;return!0},"handler")}))}_initRangeFillPermissionInterceptor(){this.disposeWithMe(this._selectionRenderService.interceptor.intercept(this._selectionRenderService.interceptor.getInterceptPoints().RANGE_FILL_PERMISSION_CHECK,{handler:N((t,e)=>{var n,r,i;const a=Dn(this._univerInstanceService);if(!a)return!1;const{worksheet:o,unitId:s,subUnitId:l}=a;if(!this._permissionService.composePermission([new on(s).id,new Tn(s,l).id,new zs(s,l).id,new Hi(s,l).id]).every(g=>g.value))return!1;const u=(n=this._selectionManagerService.getCurrentSelections())==null?void 0:n.map(g=>g.range),c=u==null?void 0:u.find(g=>{const p=H8(e.x,e.y,e.scene,e.skeleton),v=e.skeleton.getCellByIndex(g.endRow,g.endColumn),_=Math.abs(v.endX-p.x),C=Math.abs(v.endY-p.y);return _<=5&&C<=5});if(!c)return!0;const{startRow:d,endRow:h,startColumn:f,endColumn:m}=c;for(let g=d;g<=h;g++)for(let p=f;p<=m;p++){const v=(i=(r=o.getCell(g,p))==null?void 0:r.selectionProtection)==null?void 0:i[0];if((v==null?void 0:v[Jn.Edit])===!1||(v==null?void 0:v[Jn.View])===!1)return!1}return!0},"handler")}))}_initRangeMovePermissionInterceptor(){this.disposeWithMe(this._selectionRenderService.interceptor.intercept(this._selectionRenderService.interceptor.getInterceptPoints().RANGE_MOVE_PERMISSION_CHECK,{handler:N((t,e)=>{var n;const r=Dn(this._univerInstanceService);if(!r)return!1;const{worksheet:i,unitId:a,subUnitId:o}=r;if(!this._permissionService.composePermission([new on(a).id,new Tn(a,o).id]).every(c=>c.value))return!1;const s=(n=this._selectionManagerService.getCurrentSelections())==null?void 0:n.map(c=>c.range),l=this._rangeProtectionRuleModel.getSubunitRuleList(a,o).reduce((c,d)=>[...c,...d.ranges],[]),u=s==null?void 0:s.filter(c=>l.some(d=>ft.intersects(d,c)));return!(u!=null&&u.some(c=>{var d,h;const{startRow:f,startColumn:m,endRow:g,endColumn:p}=c;for(let v=f;v<=g;v++)for(let _=m;_<=p;_++){const C=(h=(d=i.getCell(v,_))==null?void 0:d.selectionProtection)==null?void 0:h[0];if((C==null?void 0:C[Jn.Edit])===!1)return!0}return!1}))},"handler")}))}_initFreezePermissionInterceptor(){this.disposeWithMe(this._headerFreezeRenderController.interceptor.intercept(this._headerFreezeRenderController.interceptor.getInterceptPoints().FREEZE_PERMISSION_CHECK,{handler:N((t,e)=>{var n,r;const i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);return!(i!=null&&i.getActiveSheet())||!i?!1:(r=(n=this._permissionService.getPermissionPoint(new on(i.getUnitId()).id))==null?void 0:n.value)!=null?r:!1},"handler")}))}},N(lB,"SheetPermissionInterceptorCanvasRenderController"),lB);rv=JKt([yn(Vt.Steady,rv),bm(1,Ce),bm(2,Qi),bm(3,se(Bt)),bm(4,se(li)),bm(5,se(oC)),bm(6,Ds),bm(7,se(aC)),bm(8,_1(_P))],rv);var eZt=Object.defineProperty,tZt=Object.getOwnPropertyDescriptor,nZt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?tZt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&eZt(e,n,i),i},"__decorateClass$f"),a5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f");const rZt="SHEET_PERMISSION_PASTE_PLUGIN";var uB;let iv=(uB=class extends et{constructor(t,e,n,r,i){super(),fe(this,"disposableCollection",new Gi),this._univerInstanceService=t,this._selectionManagerService=e,this._localService=n,this._sheetClipboardService=r,this._sheetPermissionInterceptorBaseController=i,this._initClipboardHook()}_initClipboardHook(){this.disposeWithMe(this._sheetClipboardService.addClipboardHook({id:rZt,onBeforePaste:N(t=>{var e,n,r;const[i]=Bf([t.range]).ranges,a=(e=this._selectionManagerService.getCurrentLastSelection())==null?void 0:e.range;if(!a)return!1;const o={startRow:a.startRow+i.startRow,endRow:a.startRow+i.endRow,startColumn:a.startColumn+i.startColumn,endColumn:a.startColumn+i.endColumn},s=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet();if(!s)return!1;const{startRow:l,endRow:u,startColumn:c,endColumn:d}=o;let h=!0;for(let f=l;f<=u;f++)for(let m=c;m<=d;m++){const g=(r=(n=s.getCell(f,m))==null?void 0:n.selectionProtection)==null?void 0:r[0];if((g==null?void 0:g[Jn.Edit])===!1){h=!1;break}}return h||this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localService.t("permission.dialog.pasteErr")),h},"onBeforePaste")}))}},N(uB,"SheetPermissionInterceptorClipboardController"),uB);iv=nZt([yn(Vt.Steady,iv),a5(0,Ce),a5(1,se(Bt)),a5(2,se(sn)),a5(3,se(Eh)),a5(4,se($g))],iv);var iZt=Object.defineProperty,aZt=Object.getOwnPropertyDescriptor,oZt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?aZt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&iZt(e,n,i),i},"__decorateClass$e"),V2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e");const Eue=_s("statusBarPermissionCorrect");var cB;let m4=(cB=class extends et{constructor(t,e,n,r,i,a,o){super(),fe(this,"_calculateTimeout",-1),fe(this,"interceptor",new Wf({STATUS_BAR_PERMISSION_CORRECT:Eue})),this._univerInstanceService=t,this._selectionManagerService=e,this._functionService=n,this._statusBarService=r,this._commandService=i,this._formulaDataModel=a,this._numfmtService=o,this._init()}_init(){this._registerSelectionListener()}_registerSelectionListener(){const t=_4(e=>{var n;const r=(n=e[e.length-1])==null?void 0:n.primary;this._calculateSelection(e.map(i=>i.range),r)},100);this.disposeWithMe($t(this._selectionManagerService.selectionMoving$.subscribe(e=>{e&&t(e)}))),this.disposeWithMe($t(this._selectionManagerService.selectionMoveEnd$.subscribe(e=>{e&&t(e)}))),this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id===Mn.id){const n=this._selectionManagerService.getCurrentSelections();n&&t(n)}}))}_clearResult(){this._statusBarService.setState(null)}_calculateSelection(t,e){var n;const r=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!r)return this._clearResult();const i=r.getUnitId(),a=r.getActiveSheet(),o=a==null?void 0:a.getSheetId();if(!o)return this._clearResult();const s={},l=this._formulaDataModel.getArrayFormulaCellData();if(this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getSheets().forEach(u=>{const c=u.getConfig();s[u.getSheetId()]={cellData:new Ct(c.cellData),rowCount:c.rowCount,columnCount:c.columnCount,rowData:c.rowData,columnData:c.columnData}}),t!=null&&t.length){if(t.length===1){const v=t[0],{startRow:_,endRow:C,startColumn:S,endColumn:b}=v,y=C-_+1,A=b-S+1;if(y*A>1e6)return this._clearResult()}const u=[];t.forEach(v=>{const{startRow:_,endRow:C}=v;let S=null;for(let b=_;b<=C;b++)a.getRowVisible(b)?S===null&&(S=b):S!==null&&(u.push({...v,startRow:S,endRow:b-1}),S=null);S!==null&&u.push({...v,startRow:S,endRow:C})});const c=u.map(v=>new I_(v,o,i));c.forEach(v=>{v.setUnitData({[i]:s}),l&&v.setArrayFormulaCellData(JJ(l))});const d=this._statusBarService.getFunctions();let h=c.map(v=>v.toArrayValueObject(!1));const f=this.interceptor.fetchThroughInterceptors(Eue)(h,h);f&&(h=f);const m=d.map(v=>{const _=this._functionService.getExecutor(v.func);if(!_)return;const C=_==null?void 0:_.calculate(...h),S=C==null?void 0:C.getValue();if(S)return{func:v.func,value:S}});if(m.every(v=>v===void 0))return;let g=null;if(e){const{actualRow:v,actualColumn:_}=e;g=(n=this._numfmtService.getValue(i,o,v,_))==null?void 0:n.pattern}const p={values:m.filter(v=>v!==void 0),pattern:g};this._statusBarService.setState(p)}else this._clearResult()}},N(cB,"StatusBarController"),cB);m4=oZt([yn(Vt.Ready,m4),V2(0,Ce),V2(1,se(Bt)),V2(2,Vu),V2(3,Yx),V2(4,me),V2(5,se(_d)),V2(6,se(Tc))],m4);var sZt=Object.defineProperty,lZt=Object.getOwnPropertyDescriptor,uZt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?lZt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&sZt(e,n,i),i},"__decorateClass$d"),o5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d"),dB;let av=(dB=class extends Da{constructor(t,e,n,r,i,a){super(),fe(this,"disposableCollection",new Gi),this._context=t,this._injector=e,this._univerInstanceService=n,this._permissionService=r,this._statusBarController=i,this._rangeProtectionRenderModel=a,this._initStatusBarPermissionInterceptor()}_initStatusBarPermissionInterceptor(){this.disposeWithMe(this._statusBarController.interceptor.intercept(this._statusBarController.interceptor.getInterceptPoints().STATUS_BAR_PERMISSION_CORRECT,{priority:100,handler:N((t,e)=>{var n;const r=Dn(this._univerInstanceService);if(!r)return t??[];const{worksheet:i,unitId:a,subUnitId:o}=r;return((n=this._permissionService.getPermissionPoint(new rb(a,o).id))==null?void 0:n.value)===!1?e.forEach(s=>{const l=s.getArrayValue();l.forEach((u,c)=>{u.forEach((d,h)=>{l[c][h]=ii.create()})})}):e.forEach(s=>{const l=s.getArrayValue(),u=s.getCurrentRow(),c=s.getCurrentColumn();l.forEach((d,h)=>{d.forEach((f,m)=>{var g,p;if(((g=i.getCellRaw(h+u,m+c))==null?void 0:g.v)===void 0)return;const v=(p=this._rangeProtectionRenderModel.getCellInfo(a,o,h+u,m+c))==null?void 0:p[0];(v==null?void 0:v[Jn.View])===!1&&(l[h][m]=ii.create())})})}),e},"handler")}))}},N(dB,"SheetPermissionInterceptorFormulaRenderController"),dB);av=uZt([yn(Vt.Steady,av),o5(1,se(Wn)),o5(2,Ce),o5(3,Qi),o5(4,se(m4)),o5(5,se(Ng))],av);const cZt=N((t=[])=>{const e=Ne(l3);E.useEffect(()=>{const n=t.map(r=>e.addShape({range:r,style:{hasAutoFill:!1,fill:"rgba(73, 184, 17, 0.05)",strokeWidth:1,stroke:"#49B811",widgets:{}},primary:{startColumn:r.startColumn,endColumn:r.endColumn,startRow:r.startRow,endRow:r.endRow,actualRow:r.startRow,actualColumn:r.startColumn,isMerged:!1,isMergedMainCell:!1}}));return()=>{n.forEach(r=>{r&&e.removeShape(r)})}},[t])},"useHighlightRange"),dZt="data:image/png;base64,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",hZt="univer-sheet-permission-list-panel-wrapper",fZt="univer-sheet-permission-list-panel-header",mZt="univer-sheet-permission-list-panel-header-type",gZt="univer-sheet-permission-list-panel-header-type-bottom",pZt="univer-sheet-permission-list-panel-header-select",vZt="univer-sheet-permission-list-item-header-icon",_Zt="univer-sheet-permission-list-item",CZt="univer-sheet-permission-list-item-header",SZt="univer-sheet-permission-list-item-header-name",bZt="univer-sheet-permission-list-item-header-operator",yZt="univer-sheet-permission-list-item-split",EZt="univer-sheet-permission-list-item-content-edit",RZt="univer-sheet-permission-list-item-content-view",AZt="univer-sheet-permission-list-item-content-desc",wZt="univer-sheet-permission-list-empty",DZt="univer-sheet-permission-list-empty-text",IZt="univer-sheet-permission-list-item-content-title",PZt="univer-sheet-permission-list-item-content-sub",Wa={sheetPermissionListPanelWrapper:hZt,sheetPermissionListPanelHeader:fZt,sheetPermissionListPanelHeaderType:mZt,sheetPermissionListPanelHeaderTypeBottom:gZt,sheetPermissionListPanelHeaderSelect:pZt,sheetPermissionListItemHeaderIcon:vZt,sheetPermissionListItem:_Zt,sheetPermissionListItemHeader:CZt,sheetPermissionListItemHeaderName:SZt,sheetPermissionListItemHeaderOperator:bZt,sheetPermissionListItemSplit:yZt,sheetPermissionListItemContentEdit:EZt,sheetPermissionListItemContentView:RZt,sheetPermissionListItemContentDesc:AZt,sheetPermissionListEmpty:wZt,sheetPermissionListEmptyText:DZt,sheetPermissionListItemContentTitle:IZt,sheetPermissionListItemContentSub:PZt},MZt=N(()=>{const[t,e]=E.useState(!0),[n,r]=E.useState(!1),i=Ne(Ks),a=Ne(sn),o=Ne(li),s=Ne(ga),l=Ne(Ce).getCurrentUnitForType(le.UNIVER_SHEET),u=l.getUnitId(),c=Ne(me),d=Ne(ol),h=Ne(D7),f=Ne(Qi),m=Ne(vs).getCurrentUser(),[g,p]=E.useState([]),v=ai(s.ruleRefresh$,""),_=ai(o.ruleRefresh$,""),C=E.useCallback(async M=>{var L;const k=l.getActiveSheet(),O=l.getUnitId(),$=k.getSheetId(),B=[],V=[];l.getSheets().forEach(K=>{const G=K.getSheetId();o.getSubunitRuleList(O,G).forEach(Y=>{Y.permissionId&&Y.name&&B.push(Y.permissionId)});const te=s.getRule(O,G);te!=null&&te.permissionId&&te.name&&V.push(te.permissionId)});const X=[...B,...V],z=await h.list({objectIDs:X,unitID:O,actions:[Jn.View,Jn.Edit]}),F=o.getSubunitRuleList(O,$).map(K=>K.permissionId),H=(L=s.getRule(O,$))==null?void 0:L.permissionId;H&&F.push(H);const W=z.filter(K=>{var G;return F.includes(K.objectID)||K.objectID===((G=s.getRule(O,$))==null?void 0:G.permissionId)});return M?W:z},[]),[S,b]=E.useState([]);E.useEffect(()=>{const M=Qa(o.ruleChange$,s.ruleChange$).subscribe(async()=>{const L=await C(t);b(L)});return()=>{M.unsubscribe()}},[t]),E.useEffect(()=>{const M=l.activeSheet$.subscribe(async()=>{const L=await C(!0);b(L)});return()=>{M.unsubscribe()}},[]),E.useEffect(()=>{N(async()=>{if(v||_){const M=await C(!0);b(M)}},"getRuleListByRefresh")()},[v,_]);const y=N(M=>{const{unitId:L,subUnitId:k,unitType:O}=M;let $;O===Ni.Worksheet?$=c.executeCommand(p7.id,{unitId:L,subUnitId:k,rule:M}):O===Ni.SelectRange&&($=c.executeCommand(eHe.id,{unitId:L,subUnitId:k,rule:M})),$&&(r(!n),M.ranges===g&&p([]))},"handleDelete");cZt(g);const A=new Map;l.getSheets().forEach(M=>{const L=M.getSheetId();o.getSubunitRuleList(u,L).forEach(O=>{A.set(O.permissionId,O)});const k=s.getRule(u,L);k&&A.set(k==null?void 0:k.permissionId,k)});const w=N(M=>{i.setRule(M),i.setOldRule(M),M.subUnitId!==l.getActiveSheet().getSheetId()&&c.executeCommand(Ha.id,{unitId:M.unitId,subUnitId:M.subUnitId});const L={header:{title:"permission.panel.title"},children:{label:_b,showDetail:!0},width:330,footer:{label:Cb,showDetail:!0}};d.open(L)},"handleEdit"),P=N(async M=>{e(M);const L=await C(M);b(L)},"handleChangeHeaderType");return J.jsxs("div",{className:Wa.sheetPermissionListPanelWrapper,children:[J.jsxs("div",{className:Wa.sheetPermissionListPanelHeader,children:[J.jsxs("div",{className:Wa.sheetPermissionListPanelHeaderType,onClick:N(()=>P(!0),"onClick"),children:[J.jsx("div",{className:hr({[Wa.sheetPermissionListPanelHeaderSelect]:t}),children:a.t("permission.panel.currentSheet")}),t&&J.jsx("div",{className:Wa.sheetPermissionListPanelHeaderTypeBottom})]}),J.jsxs("div",{className:Wa.sheetPermissionListPanelHeaderType,onClick:N(()=>P(!1),"onClick"),children:[J.jsx("div",{className:hr({[Wa.sheetPermissionListPanelHeaderSelect]:!t}),children:a.t("permission.panel.allSheet")}),!t&&J.jsx("div",{className:Wa.sheetPermissionListPanelHeaderTypeBottom})]})]}),(S==null?void 0:S.length)>0?J.jsx("div",{className:Wa.sheetPermissionListPanelContent,children:S==null?void 0:S.map(M=>{var L,k,O,$,B;const V=A.get(M.objectID);if(!V)return null;const X=M.actions.find(Y=>Y.action===Jn.Edit),z=X==null?void 0:X.allowed,F=M.actions.find(Y=>Y.action===Jn.View),H=F==null?void 0:F.allowed,W=((k=(L=f.getPermissionPoint(new R1(u).id))==null?void 0:L.value)!=null?k:!1)||m.userID===((O=M.creator)==null?void 0:O.userID);let K="";const G=l.getSheetBySheetId(V.subUnitId),te=G==null?void 0:G.getName();if(V.unitType===Ni.SelectRange){const Y=V.ranges,ae=Y!=null&&Y.length?Y.map(ie=>{const ne=Jo(ie);return ne==="NaN"?"":ne}).filter(ie=>!!ie).join(","):"";K=`${te}(${ae})`}else V.unitType===Ni.Worksheet&&(K=te||"");return J.jsxs("div",{className:Wa.sheetPermissionListItem,onMouseMove:N(()=>{const{subUnitId:Y,unitType:ae}=V,ie=l.getActiveSheet();if(!ie)return!1;const ne=ie.getSheetId();if(Y!==ne)return!1;if(ae===Ni.SelectRange){const de=V.ranges||[];de!==g&&p(de)}else if(ae===Ni.Worksheet){const de=[{startRow:0,endRow:ie.getRowCount()-1,startColumn:0,endColumn:ie.getColumnCount()-1}];de!==g&&p(de)}},"onMouseMove"),onMouseLeave:N(()=>p([]),"onMouseLeave"),children:[J.jsxs("div",{className:Wa.sheetPermissionListItemHeader,children:[J.jsx(n1,{title:K,children:J.jsx("div",{className:Wa.sheetPermissionListItemHeaderName,children:K})}),W&&J.jsxs("div",{className:Wa.sheetPermissionListItemHeaderOperator,children:[J.jsx(n1,{title:a.t("permission.panel.edit"),children:J.jsx("div",{className:Wa.sheetPermissionListItemHeaderIcon,onClick:N(()=>w(V),"onClick"),children:J.jsx(dre,{})})}),J.jsx(n1,{title:a.t("permission.panel.delete"),children:J.jsx("div",{className:Wa.sheetPermissionListItemHeaderIcon,onClick:N(()=>y(V),"onClick"),children:J.jsx(zx,{})})})]})]}),J.jsx("div",{className:Wa.sheetPermissionListItemSplit}),J.jsxs("div",{className:Wa.sheetPermissionListItemContent,children:[J.jsxs("div",{className:Wa.sheetPermissionListItemContentEdit,children:[J.jsx(n1,{title:($=M.creator)==null?void 0:$.userID,children:J.jsx("div",{children:J.jsx(SM,{src:(B=M.creator)==null?void 0:B.avatar,style:{marginRight:6},size:24})})}),J.jsx("span",{className:Wa.sheetPermissionListItemContentTitle,children:a.t("permission.panel.created")}),J.jsx("span",{className:Wa.sheetPermissionListItemContentSub,children:z?`${a.t("permission.panel.iCanEdit")}`:`${a.t("permission.panel.iCanNotEdit")}`})]}),J.jsxs("div",{className:Wa.sheetPermissionListItemContentView,children:[J.jsx("span",{className:Wa.sheetPermissionListItemContentTitle,children:a.t("permission.panel.viewPermission")}),J.jsx("span",{className:Wa.sheetPermissionListItemContentSub,children:H?`${a.t("permission.panel.iCanView")}`:`${a.t("permission.panel.iCanNotView")}`})]}),V.description&&J.jsx(n1,{title:V.description,children:J.jsx("div",{className:Wa.sheetPermissionListItemContentDesc,children:V.description})})]})]},M.objectID)})}):J.jsxs("div",{className:Wa.sheetPermissionListEmpty,children:[J.jsx("img",{width:240,height:120,src:dZt,alt:""}),J.jsx("p",{className:Wa.sheetPermissionListEmptyText,children:a.t("permission.dialog.listEmpty")})]})]})},"SheetPermissionPanelList"),Xze="data:image/png;base64,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",TZt="univer-spin-container",LZt="univer-spin-overlay",xZt="univer-spinner",OZt="univer-content-blur",Yy={spinContainer:TZt,spinOverlay:LZt,spinner:xZt,contentBlur:OZt},Gze=N(({loading:t,children:e})=>J.jsxs("div",{className:Yy.spinContainer,children:[t&&J.jsx("div",{className:Yy.spinOverlay,children:J.jsx("div",{className:Yy.spinner})}),J.jsx("div",{className:t?Yy.contentBlur:"",children:e})]}),"Spin"),NZt="univer-permission-panel-detail-wrapper",kZt="univer-radio-group-vertical",FZt="univer-sheet-permission-design-person-panel",VZt="univer-sheet-permission-design-person-panel-header",BZt="univer-sheet-permission-design-person-panel-header-add",UZt="univer-sheet-permission-design-person-panel-split",HZt="univer-sheet-permission-design-person-panel-content-item",jZt="univer-sheet-permission-design-person-panel-content-item-name",$Zt="univer-sheet-permission-design-person-panel-content-item-select",WZt="univer-sheet-permission-design-person-panel-content",zZt="univer-sheet-permission-user-list-empty",qZt="univer-sheet-permission-user-list-empty-text",YZt="univer-sheet-permission-panel-title",XZt="univer-permission-range-selector",GZt="univer-permission-range-selector-error",QZt="univer-sheet-permission-panel-name-input-error-text",co={permissionPanelDetailWrapper:NZt,radioGroupVertical:kZt,sheetPermissionDesignPersonPanel:FZt,sheetPermissionDesignPersonPanelHeader:VZt,sheetPermissionDesignPersonPanelHeaderAdd:BZt,sheetPermissionDesignPersonPanelSplit:UZt,sheetPermissionDesignPersonPanelContentItem:HZt,sheetPermissionDesignPersonPanelContentItemName:jZt,sheetPermissionDesignPersonPanelContentItemSelect:$Zt,sheetPermissionDesignPersonPanelContent:WZt,sheetPermissionUserListEmpty:zZt,sheetPermissionUserListEmptyText:qZt,sheetPermissionPanelTitle:YZt,permissionRangeSelector:XZt,permissionRangeSelectorError:GZt,sheetPermissionPanelNameInputErrorText:QZt},KZt=N(({fromSheetBar:t})=>{var e,n;const r=Ne(sn),i=Ne(Rd),a=Ne(Ce),o=Ne(Bt),s=Ne(Ks),l=ai(s.rule$,s.rule),u=Ne(vs),c=Ne(_9),d=Ne(D7),h=Ne(ol),f=Ne(li),m=Ne(ga),g=ai(s.rangeErrorMsg$),p=a.getCurrentUnitForType(le.UNIVER_SHEET),v=p.getActiveSheet(),_=p.getUnitId(),C=v.getSheetId(),S=ai(c.selectUserList$,c.selectUserList),[b,y]=Re.useState(S.length?zc.designedUserCanEdit:zc.onlyMe),[A,w]=Re.useState(kd.othersCanView),[P,M]=E.useState(!!(l!=null&&l.permissionId)),L=N(async()=>{const O=await d.listCollaborators({objectID:_,unitID:_});O.forEach($=>{$!=null&&$.subject&&u.addUser($.subject)}),c.setUserList(O),i.open({id:lP,title:{title:""},children:{label:gje},width:280,destroyOnClose:!0,onClose:N(()=>i.close(lP),"onClose"),className:"sheet-permission-user-dialog"})},"handleAddPerson"),k=N(O=>{let $="";if(O.length===0)$=r.t("permission.panel.emptyRangeError");else if(O.length>1){let B=!1;for(let V=0;V<O.length;V++){for(let X=V+1;X<O.length;X++)if(ft.intersects(O[V],O[X])){B=!0;break}if(B)break}B&&($=r.t("permission.panel.rangeOverlapError"))}if(!$){if(m.getRule(_,C)&&!(l!=null&&l.permissionId))return $=r.t("permission.panel.rangeOverlapOverPermissionError"),$;const B=f.getSubunitRuleList(_,C).filter(V=>V.permissionId!==(l==null?void 0:l.permissionId)).find(V=>V.ranges.some(X=>O.some(z=>ft.intersects(X,z))));B!=null&&B.ranges.find(V=>O.some(X=>ft.intersects(V,X)))&&($=r.t("permission.panel.rangeOverlapOverPermissionError"))}return $},"checkRangeValid");return E.useEffect(()=>{var O,$;if(l!=null&&l.permissionId){l.unitType===Ni.Worksheet&&s.setRule({ranges:[{startRow:0,startColumn:0,endRow:v.getRowCount()-1,endColumn:v.getColumnCount()-1,rangeType:it.ALL}]});return}t&&(o.clearCurrentSelections(),o.addSelections([{primary:null,style:null,range:{startRow:0,startColumn:0,endRow:v.getRowCount()-1,endColumn:v.getColumnCount()-1,rangeType:it.ALL}}]));const B=($=(O=o.getCurrentSelections())==null?void 0:O.map(F=>F.range))!=null?$:[],V=k(B);s.setRangeErrorMsg(V);const X=B!=null&&B.length?B.map(F=>{const H=Jo(F);return H==="NaN"?"":H}).filter(F=>!!F).join(","):"",z=v.getName();s.setRule({ranges:B,name:t?`${z}`:`${z}(${X})`,unitId:_,subUnitId:C,unitType:t?Ni.Worksheet:Ni.SelectRange})},[l==null?void 0:l.permissionId,t,o,s,C,_,v]),E.useEffect(()=>{const O=N(async()=>{const $=l==null?void 0:l.permissionId,B=(await d.listCollaborators({objectID:$,unitID:_})).filter(V=>V.role===vl.Editor);c.setSelectUserList(B),c.setOldCollaboratorList(B)},"getSelectUserList");l!=null&&l.permissionId?O():(c.setSelectUserList([]),c.setOldCollaboratorList([]))},[l==null?void 0:l.permissionId]),E.useEffect(()=>{if(!l.permissionId){s.setRule({viewStatus:kd.othersCanView});return}N(async()=>{var O,$;try{const B=await d.list({unitID:_,objectIDs:[l==null?void 0:l.permissionId],actions:[Jn.View,Jn.Edit]});if(!B.length)w(kd.othersCanView),y(zc.onlyMe),s.setRule({viewStatus:kd.othersCanView,editStatus:zc.onlyMe});else{const V=((O=B[0].scope)==null?void 0:O.read)===r1.AllCollaborator,X=(($=B[0].scope)==null?void 0:$.edit)===r1.SomeCollaborator,z=V?kd.othersCanView:kd.noOneElseCanView,F=X?zc.designedUserCanEdit:zc.onlyMe;w(z),y(F),s.setRule({viewStatus:z,editStatus:F})}}catch(B){console.error(B)}finally{setTimeout(()=>{M(!1)},100)}},"getCollaboratorInit")()},[l.permissionId]),E.useEffect(()=>{N(async()=>{const O=await d.listCollaborators({objectID:_,unitID:_});O.forEach($=>{$!=null&&$.subject&&u.addUser($.subject)}),c.setUserList(O.filter($=>$.role===vl.Editor)),c.setAllUserList(O.filter($=>$.role===vl.Editor||$.role===vl.Reader))},"getListCollaborators")()},[]),E.useEffect(()=>{const O=a.getCurrentUnitForType(le.UNIVER_SHEET);if(!O)return;const $=O.activeSheet$.subscribe(B=>{(B==null?void 0:B.getSheetId())!==C&&h.close()});return()=>{$.unsubscribe()}},[h,C,a]),J.jsx("div",{className:co.permissionPanelDetailWrapper,children:J.jsxs(Gze,{loading:P,children:[J.jsxs(yo,{className:co.sheetPermissionPanelTitle,label:r.t("permission.panel.protectedRange"),children:[J.jsx(mL,{className:hr(co.permissionRangeSelector),textEditorClassName:hr({[co.permissionRangeSelectorError]:g}),value:(e=l==null?void 0:l.ranges)==null?void 0:e.map(O=>Jo(O)).join(","),id:qg("sheet-permission-panel"),openForSheetUnitId:_,openForSheetSubUnitId:C,onChange:N(O=>{if(O.some(G=>!QP(G.range)||G.range.endColumn<G.range.startColumn||G.range.endRow<G.range.startRow))return;const $=a.getCurrentUnitForType(le.UNIVER_SHEET),B=$.getActiveSheet(),V=$.getUnitId(),X=B.getSheetId(),z=O.map(G=>{const te={...G.range},Y=B.getRowCount(),ae=B.getColumnCount();return rne(te,Y,ae),te}),F=k(z);if(s.setRangeErrorMsg(F),F)return;const H=B.getName(),W=z.map(G=>{const te=Jo(G);return te==="NaN"?"":te}).filter(G=>!!G).join(","),K={ranges:z,unitId:V,subUnitId:X,unitType:Ni.SelectRange,name:`${H}(${W})`};if(K.ranges.length===1){const{startRow:G,endRow:te,startColumn:Y,endColumn:ae}=K.ranges[0];G===0&&te===B.getRowCount()-1&&Y===0&&B.getColumnCount()-1===ae&&(K.unitType=Ni.Worksheet,K.name=`${H}`)}s.setRule(K)},"onChange")}),g&&J.jsx("span",{className:co.sheetPermissionPanelNameInputErrorText,children:g})]}),J.jsx(yo,{className:co.sheetPermissionPanelTitle,label:r.t("permission.panel.permissionDirection"),children:J.jsx(Qs,{value:(n=l==null?void 0:l.description)!=null?n:"",onChange:N(O=>s.setRule({description:O}),"onChange"),placeholder:r.t("permission.panel.permissionDirectionPlaceholder")})}),J.jsx(yo,{className:co.sheetPermissionPanelTitle,label:r.t("permission.panel.editPermission"),children:J.jsxs(np,{value:b,onChange:N(O=>{y(O),s.setRule({editStatus:O})},"onChange"),className:co.radioGroupVertical,children:[J.jsx(gu,{value:zc.onlyMe,children:J.jsx("span",{className:co.text,children:r.t("permission.panel.onlyICanEdit")})}),J.jsx(gu,{value:zc.designedUserCanEdit,children:J.jsx("span",{className:co.text,children:r.t("permission.panel.designedUserCanEdit")})})]})}),b==="designedUserCanEdit"&&J.jsxs("div",{className:co.sheetPermissionDesignPersonPanel,children:[J.jsxs("div",{className:co.sheetPermissionDesignPersonPanelHeader,children:[J.jsx("span",{children:r.t("permission.panel.designedPerson")}),J.jsx("span",{className:co.sheetPermissionDesignPersonPanelHeaderAdd,onClick:L,children:r.t("permission.panel.addPerson")})]}),J.jsx("div",{className:co.sheetPermissionDesignPersonPanelSplit}),J.jsx("div",{className:co.sheetPermissionDesignPersonPanelContent,children:(S==null?void 0:S.length)>0?S.map(O=>{var $,B,V;return J.jsxs("div",{className:co.sheetPermissionDesignPersonPanelContentItem,children:[J.jsx(SM,{size:24,src:($=O.subject)==null?void 0:$.avatar}),J.jsx("span",{className:co.sheetPermissionDesignPersonPanelContentItemName,children:(B=O.subject)==null?void 0:B.name}),J.jsx(md,{className:co.sheetPermissionDesignPersonPanelContentItemSelect,value:"edit",onChange:N(X=>{X==="delete"&&c.setSelectUserList(S.filter(z=>{var F,H;return((F=z.subject)==null?void 0:F.userID)!==((H=O.subject)==null?void 0:H.userID)}))},"onChange"),options:[{label:`${r.t("permission.panel.canEdit")}`,value:"edit"},{label:`${r.t("permission.panel.delete")}`,value:"delete"}]})]},(V=O.subject)==null?void 0:V.userID)}):J.jsxs("div",{className:co.sheetPermissionUserListEmpty,children:[J.jsx("img",{width:240,height:120,src:Xze,alt:""}),J.jsx("p",{className:co.sheetPermissionUserListEmptyText,children:r.t("permission.dialog.userEmpty")})]})})]}),J.jsx(yo,{className:co.sheetPermissionPanelTitle,label:r.t("permission.panel.viewPermission"),children:J.jsxs(np,{value:A,onChange:N(O=>{w(O),s.setRule({viewStatus:O})},"onChange"),className:co.radioGroupVertical,children:[J.jsx(gu,{value:kd.othersCanView,children:J.jsx("span",{className:co.text,children:r.t("permission.panel.othersCanView")})}),J.jsx(gu,{value:kd.noOneElseCanView,children:J.jsx("span",{className:co.text,children:r.t("permission.panel.noOneElseCanView")})})]})})]})})},"SheetPermissionPanelDetail"),ZZt=N(({showDetail:t,fromSheetBar:e})=>{var n;const r=Ne(Ce),i=Ne(Bt);if(!Ne(Ks).getVisible())return null;const a=Dn(r);if(!a)return null;const{worksheet:o}=a,s=((n=i.getCurrentSelections())==null?void 0:n.map(l=>l.range)).reduce((l,u)=>l+Q7(o.getName(),u),"");return t?J.jsx(KZt,{fromSheetBar:e},s):J.jsx(MZt,{},s)},"SheetPermissionPanel"),JZt="univer-sheet-permission-panel-footer",eJt="univer-sheet-permission-panel-footer-cancel",tJt="univer-sheet-permission-panel-add-button",WY={sheetPermissionPanelFooter:JZt,sheetPermissionPanelFooterCancel:eJt,sheetPermissionPanelAddButton:tJt},nJt=N(()=>{var t,e,n,r;const i=Ne(ol),a=Ne(sn),o=Ne(Ce),s=Ne(Qi),l=o.getCurrentUnitForType(le.UNIVER_SHEET),u=l.getUnitId(),c=ai(l.activeSheet$),d=(e=(t=s.getPermissionPoint(new on(u).id))==null?void 0:t.value)!=null?e:!1,h=(r=(n=s.getPermissionPoint(new R1(u).id))==null?void 0:n.value)!=null?r:!1,f=d&&h,m=Ne(Ks),g=Ne(ga),p=c==null?void 0:c.getSheetId();if(!p)return null;const v=g.getRule(u,p);return!f||v?null:J.jsx("div",{children:J.jsxs(fa,{className:WY.sheetPermissionPanelAddButton,type:"primary",onClick:N(()=>{m.resetRule();const _={header:{title:`${a.t("permission.panel.title")}`},children:{label:_b,showDetail:!0},width:330,footer:{label:Cb,showDetail:!0}};i.open(_)},"onClick"),children:[J.jsx("div",{children:"+ "}),a.t("permission.button.addNewPermission")]})})},"SheetPermissionPanelAddFooter"),rJt=N(()=>{const t=Ne(Ks),e=ai(t.rule$,t.rule),n=Ne(ol),r=Ne(D7),i=Ne(sn),a=Ne(me),o=Ne(_9),s=ai(t.rangeErrorMsg$);return J.jsxs("div",{className:WY.sheetPermissionPanelFooter,children:[J.jsx(fa,{type:"primary",onClick:N(async()=>{if(!e.name||s)return;let l=o.selectUserList;e.editStatus===zc.onlyMe&&(l=[],o.setSelectUserList([]));const u={read:e.viewStatus===kd.othersCanView?r1.AllCollaborator:r1.SomeCollaborator,edit:e.editStatus===zc.designedUserCanEdit?r1.SomeCollaborator:r1.OneSelf};if(e.editStatus===zc.designedUserCanEdit&&l.length===0&&(l=[],u.edit=r1.OneSelf),e.permissionId){const d=t.oldRule,h=aje(l.filter(v=>v.role===vl.Editor),o.oldCollaboratorList.filter(v=>v.role===vl.Editor)),f=(d==null?void 0:d.viewStatus)===e.viewStatus,m=(d==null?void 0:d.editStatus)===e.editStatus,g=e.unitType===(d==null?void 0:d.unitType)&&e.name===d.name&&e.description===d.description&&e.ranges===d.ranges,p=!h||!f||!m;if(g&&p)await r.update({objectType:e.unitType,objectID:e.permissionId,unitID:e.unitId,share:void 0,name:"",strategies:[],scope:u,collaborators:{collaborators:l}});else{let v=e.permissionId;p&&(e.unitType===Ni.Worksheet?v=await r.create({worksheetObject:{collaborators:l,unitID:e.unitId,name:e.name,strategies:[{role:vl.Editor,action:Jn.Edit},{role:vl.Reader,action:Jn.View}],scope:u},objectType:Ni.Worksheet}):v=await r.create({selectRangeObject:{collaborators:l,unitID:e.unitId,name:e.name,scope:u},objectType:Ni.SelectRange})),a.executeCommand(Jne.id,{rule:{...e,permissionId:v}})}}else if(e.unitType===Ni.Worksheet){const d=await r.create({worksheetObject:{collaborators:l,unitID:e.unitId,name:e.name,strategies:[{role:vl.Editor,action:Jn.Edit},{role:vl.Reader,action:Jn.View}],scope:u},objectType:Ni.Worksheet}),{ranges:h=[],...f}=e;f.permissionId=d,a.executeCommand(Tx.id,{rule:f,unitId:e.unitId})}else if(e.unitType===Ni.SelectRange){const d=await r.create({selectRangeObject:{collaborators:l,unitID:e.unitId,name:e.name,scope:u},objectType:Ni.SelectRange});a.executeCommand(JUe.id,{rule:e,permissionId:d})}t.resetRule(),o.reset();const c={header:{title:`${i.t("permission.panel.title")}`},children:{label:_b,showDetail:!1},width:330,footer:{label:Cb,showDetail:!1}};n.open(c)},"onClick"),children:i.t("permission.button.confirm")}),J.jsx(fa,{className:WY.sheetPermissionPanelFooterCancel,onClick:N(()=>{t.reset(),o.reset(),n.close()},"onClick"),children:i.t("permission.button.cancel")})]})},"SheetPermissionPanelDetailFooter"),iJt=N(({showDetail:t})=>t?J.jsx(rJt,{}):J.jsx(nJt,{}),"SheetPermissionPanelFooter"),aJt="univer-sheet-permission-user-dialog-wrapper",oJt="univer-sheet-permission-user-dialog-search-input",sJt="univer-sheet-permission-user-list",lJt="univer-sheet-permission-user-list-empty",uJt="univer-sheet-permission-user-list-empty-text",cJt="univer-sheet-permission-user-item",dJt="univer-sheet-permission-user-item-name",hJt="univer-sheet-permission-split",fJt="univer-sheet-permission-user-dialog-footer",mJt="univer-sheet-permission-user-dialog-footer-confirm",gJt="univer-sheet-permission-user-dialog-button",Wu={sheetPermissionUserDialogWrapper:aJt,sheetPermissionUserDialogSearchInput:oJt,sheetPermissionUserList:sJt,sheetPermissionUserListEmpty:lJt,sheetPermissionUserListEmptyText:uJt,sheetPermissionUserItem:cJt,sheetPermissionUserItemName:dJt,sheetPermissionSplit:hJt,sheetPermissionUserDialogFooter:fJt,sheetPermissionUserDialogFooterConfirm:mJt,sheetPermissionUserDialogButton:gJt},pJt=N(()=>{const[t,e]=Re.useState(""),n=Ne(sn),r=Ne(Rd),i=Ne(_9),a=i.userList.filter(u=>{var c;return((c=u.subject)==null?void 0:c.name.toLocaleLowerCase().includes(t.toLocaleLowerCase()))&&u.role===vl.Editor}),[o,s]=E.useState(i.selectUserList),l=N(u=>{if((o==null?void 0:o.findIndex(c=>{var d,h;return((d=c.subject)==null?void 0:d.userID)===((h=u.subject)==null?void 0:h.userID)}))===-1){const c={...u};s([...o,c])}else{const c=o.filter(d=>{var h,f;return((h=d.subject)==null?void 0:h.userID)!==((f=u.subject)==null?void 0:f.userID)});s(c)}},"handleChangeUser");return J.jsxs("div",{className:Wu.sheetPermissionUserDialogWrapper,children:[J.jsx("div",{className:Wu.sheetPermissionUserDialogSearch,children:J.jsx(Qs,{placeholder:"search",className:Wu.sheetPermissionUserDialogSearchInput,value:t,onChange:N(u=>e(u),"onChange")})}),J.jsx("div",{className:Wu.sheetPermissionUserList,children:(a==null?void 0:a.length)>0?J.jsx(J.Fragment,{children:a==null?void 0:a.map(u=>{var c,d,h;return J.jsxs("div",{className:Wu.sheetPermissionUserItem,onClick:N(()=>l(u),"onClick"),children:[J.jsx(SM,{src:(c=u.subject)==null?void 0:c.avatar,size:24}),J.jsx("div",{className:Wu.sheetPermissionUserItemName,children:(d=u.subject)==null?void 0:d.name}),(o==null?void 0:o.findIndex(f=>{var m,g;return((m=f.subject)==null?void 0:m.userID)===((g=u.subject)==null?void 0:g.userID)}))!==-1&&J.jsx("div",{children:J.jsx(z0,{})})]},(h=u.subject)==null?void 0:h.userID)})}):J.jsxs("div",{className:Wu.sheetPermissionUserListEmpty,children:[J.jsx("img",{width:240,height:120,src:Xze,alt:""}),J.jsx("p",{className:Wu.sheetPermissionUserListEmptyText,children:n.t("permission.dialog.userEmpty")})]})}),J.jsx("div",{className:Wu.sheetPermissionSplit}),J.jsxs("div",{className:Wu.sheetPermissionUserDialogFooter,children:[J.jsx(fa,{className:Wu.sheetPermissionUserDialogButton,onClick:N(()=>r.close(lP),"onClick"),children:n.t("permission.button.cancel")}),J.jsx(fa,{type:"primary",onClick:N(()=>{i.setSelectUserList(o),r.close(lP)},"onClick"),className:hr(Wu.sheetPermissionUserDialogFooterConfirm,Wu.sheetPermissionUserDialogButton),children:n.t("permission.button.confirm")})]})]})},"SheetPermissionUserDialog"),vJt="univer-sheet-permission-dialog-wrapper",_Jt="univer-sheet-permission-dialog-split",CJt="univer-sheet-permission-dialog-item",SJt="univer-sheet-permission-user-dialog-footer",bJt="univer-sheet-permission-user-dialog-footer-confirm",yJt="univer-sheet-permission-user-dialog-button",ym={sheetPermissionDialogWrapper:vJt,sheetPermissionDialogSplit:_Jt,sheetPermissionDialogItem:CJt,sheetPermissionUserDialogFooter:SJt,sheetPermissionUserDialogFooterConfirm:bJt,sheetPermissionUserDialogButton:yJt},EJt=N(()=>{const t=Ne(sn),e=Ne(Ce),n=Ne(D7),r=Ne(_0),i=Ne(Rd),a=Ne(Qi),o=e.getCurrentUnitForType(le.UNIVER_SHEET),s=o.getActiveSheet();if(!s)throw new Error("No active sheet found");const[l,u]=E.useState([]),c=Ne(me),[d,h]=E.useState(()=>!!r.getRule(o.getUnitId(),s.getSheetId())),[f,m]=E.useState(()=>Object.keys(zy).reduce((p,v)=>(p[v]={text:t.t(`permission.panel.${zy[Number(v)]}`),allowed:!0},p),{}));E.useEffect(()=>{N(async()=>{const p=o.getUnitId(),v=await n.listCollaborators({objectID:p,unitID:p});u(v)},"getUserList")()},[]),E.useEffect(()=>{N(async()=>{const p=o.getUnitId(),v=r.getRule(p,s.getSheetId());if(!v)return;h(!0);const _=(await n.list({unitID:o.getUnitId(),objectIDs:[v.permissionId],actions:sYt}))[0].strategies.reduce((C,S)=>(zy[S.action]&&(C[S.action]={text:t.t(`permission.panel.${zy[S.action]}`),allowed:S.role!==vl.Owner}),C),{});m(_),setTimeout(()=>{h(!1)},100)},"getPermissionPoints")()},[]);const g=N(async()=>{const p=e.getCurrentUnitForType(le.UNIVER_SHEET),v=p==null?void 0:p.getActiveSheet();if(!v)throw new Error("No active sheet found");const _=p.getUnitId(),C=v.getSheetId(),S=r.getRule(_,C),b=Object.keys(f).map(A=>({action:Number(A),role:f[A].allowed?vl.Editor:vl.Owner}));let y=S==null?void 0:S.permissionId;y?n.update({objectType:Ni.Worksheet,objectID:y,unitID:_,strategies:b,share:void 0,name:"",scope:{read:r1.AllCollaborator,edit:r1.AllCollaborator},collaborators:void 0}).then(()=>{Qu().forEach(A=>{const w=new A(_,C),P=w.subType,M=b.find(L=>L.action===P);M&&a.updatePermissionPoint(w.id,M.role===vl.Editor)})}):(y=await n.create({objectType:Ni.Worksheet,worksheetObject:{unitID:_,collaborators:l,name:"",strategies:b,scope:{read:r1.AllCollaborator,edit:r1.AllCollaborator}}}),c.executeCommand(ZUe.id,{rule:{permissionId:y,unitId:_,subUnitId:C}}))},"handleChangeActionPermission");return J.jsx(Gze,{loading:d,children:J.jsxs("div",{className:ym.sheetPermissionDialogWrapper,children:[J.jsx("div",{className:ym.sheetPermissionDialogSplit}),Object.keys(f).map(p=>{const v=f[p],{text:_,allowed:C}=v;return J.jsxs("div",{className:ym.sheetPermissionDialogItem,children:[J.jsx("div",{children:_}),J.jsx(Plt,{defaultChecked:C,onChange:N(()=>{m({...f,[p]:{...v,allowed:!C}})},"onChange")})]},_)}),J.jsx("div",{className:ym.sheetPermissionDialogSplit}),J.jsxs("div",{className:ym.sheetPermissionUserDialogFooter,children:[J.jsx(fa,{className:ym.sheetPermissionUserDialogButton,onClick:N(()=>{i.close(uP)},"onClick"),children:t.t("permission.button.cancel")}),J.jsx(fa,{type:"primary",onClick:N(()=>{g(),i.close(uP)},"onClick"),className:hr(ym.sheetPermissionUserDialogFooterConfirm,ym.sheetPermissionUserDialogButton),children:t.t("permission.button.confirm")})]})]})})},"SheetPermissionDialog"),RJt="univer-sheet-permission-alert-dialog",AJt="univer-sheet-permission-alert-dialog-title",wJt="univer-sheet-permission-alert-dialog-button",hB={sheetPermissionAlertDialog:RJt,sheetPermissionAlertDialogTitle:AJt,sheetPermissionAlertDialogButton:wJt},DJt=N(({errorMsg:t})=>{const e=Ne(sn),n=Ne(Rd);return J.jsxs("div",{className:hB.sheetPermissionAlertDialog,children:[J.jsx("h1",{className:hB.sheetPermissionAlertDialogTitle,children:e.t("permission.dialog.alert")}),J.jsx("p",{children:t||e.t("permission.dialog.alertContent")}),J.jsx("div",{className:hB.sheetPermissionAlertDialogButton,children:J.jsx(fa,{type:"primary",onClick:N(()=>{n.close(HY)},"onClick"),children:e.t("permission.button.confirm")})})]})},"AlertDialog"),Qze="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI0IiB2aWV3Qm94PSIwIDAgNCA0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNzU5XzExMDgiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjRDZEOEQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF83NTlfMTEwOCkiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTS0zLjY0MDAyIDMuNDQxNDFMMi4wNzM5NyAtMi4yNzI1OEwyLjc4MTA4IC0xLjU2NTQ4TC0yLjkzMjkxIDQuMTQ4NTJMLTMuNjQwMDIgMy40NDE0MVoiIGZpbGw9IiNENkQ4REIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0tMS41MTg2OCA1LjU2Mjc1TDQuMTk1MzEgLTAuMTUxMjQ1TDQuOTAyNDIgMC41NTU4NjJMLTAuODExNTc1IDYuMjY5ODZMLTEuNTE4NjggNS41NjI3NVoiIGZpbGw9IiNENkQ4REIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjYwMjY1NiA3LjY4NDAzTDYuMzE2NjUgMS45NzAwM0w3LjAyMzc2IDIuNjc3MTRMMS4zMDk3NiA4LjM5MTEzTDAuNjAyNjU2IDcuNjg0MDNaIiBmaWxsPSIjRDZEOERCIi8+CjwvZz4KPC9zdmc+",Kze="RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY",Zze="RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY",IJt=25,PJt=80,Jze=class extends Jf{constructor(){super(),fe(this,"_pattern",null),fe(this,"_img",new Image),fe(this,"renderCache",new Set),this._img.src=Qze}clearCache(){this.renderCache.clear()}draw(e,n,r){const{worksheet:i}=r;i&&(e.save(),this._pattern||(this._pattern=e.createPattern(this._img,"repeat")),this.renderCache.clear(),Gn.foreach(r.rowColumnSegment,(a,o)=>{if(!i.getRowVisible(a)||!i.getColVisible(o))return;const{selectionProtection:s=[]}=i.getCell(a,o)||{};this._pattern&&(e.fillStyle=this._pattern,s.forEach(l=>{if(l.ruleId&&this.shouldRender(l)){if(this.renderCache.has(l.ruleId))return;this.renderCache.add(l.ruleId),l.ranges.forEach(u=>{const c=r.getCellByIndexWithNoHeader(u.startRow,u.startColumn),d=r.getCellByIndexWithNoHeader(u.endRow,u.endColumn);e.fillRect(c.startX,c.startY,d.endX-c.startX,d.endY-c.startY)})}}))}),e.restore())}};N(Jze,"RangeProtectionRenderExtension");let eqe=Jze;const tqe=class extends eqe{constructor(){super(),fe(this,"uKey",Kze),fe(this,"Z_INDEX",IJt)}shouldRender(e){return(e==null?void 0:e[Jn.View])!==!1}};N(tqe,"RangeProtectionCanViewRenderExtension");let MJt=tqe;const nqe=class extends eqe{constructor(){super(),fe(this,"uKey",Zze),fe(this,"Z_INDEX",PJt)}shouldRender(e){return(e==null?void 0:e[Jn.View])===!1}};N(nqe,"RangeProtectionCanNotViewRenderExtension");let TJt=nqe;const rqe="worksheet-protection",Rue=25,LJt=80,iqe=class extends Jf{constructor(){super(),fe(this,"uKey",rqe),fe(this,"Z_INDEX",Rue),fe(this,"_pattern"),fe(this,"_img",new Image),this._img.src=Qze}draw(e,n,r){const{worksheet:i}=r;if(!i)return!1;e.save(),this._pattern||(this._pattern=e.createPattern(this._img,"repeat"));const{startRow:a,startColumn:o,endRow:s,endColumn:l}=r.rowColumnSegment,u=r.getCellByIndexWithNoHeader(a,o),c=r.getCellByIndexWithNoHeader(s,l),{hasWorksheetRule:d=!1,selectionProtection:h=[]}=i.getCell(a,o)||{};if(this._pattern){if(h.length>0){const f=h[0];f!=null&&f[Jn.View]?this.setZIndex(Rue):this.setZIndex(LJt)}e.fillStyle=this._pattern,d&&e.fillRect(u.startX,u.startY,c.endX-u.startX,c.endY-u.startY),e.restore()}}setZIndex(e){this.Z_INDEX=e}};N(iqe,"WorksheetProtectionRenderExtension");let xJt=iqe;var OJt=Object.defineProperty,NJt=Object.getOwnPropertyDescriptor,xre=N((t,e,n,r)=>{for(var i=r>1?void 0:r?NJt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&OJt(e,n,i),i},"__decorateClass$c"),e0=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c"),fB;let sC=(fB=class extends et{constructor(t){super(),this._componentManager=t,this._init()}_init(){this._initComponents()}_initComponents(){[[vje,xje],[lYt,zx],[uYt,dre],[cYt,z0],[_je,cre],[_b,ZZt],[Cb,iJt],[gje,pJt],[pje,EJt],[qze,DJt]].forEach(([t,e])=>{this.disposeWithMe(this._componentManager.register(t,e))})}},N(fB,"SheetPermissionRenderManagerController"),fB);sC=xre([e0(0,se(ja))],sC);var mB;let CP=(mB=class extends et{constructor(t,e,n,r){super(),fe(this,"_rangeProtectionCanViewRenderExtension",new MJt),fe(this,"_rangeProtectionCanNotViewRenderExtension",new TJt),this._context=t,this._rangeProtectionRuleModel=e,this._sheetSkeletonManagerService=n,this._permissionService=r,this._initRender(),this._initSkeleton(),this._rangeProtectionRuleModel.ruleChange$.subscribe(i=>{var a,o;((a=i.oldRule)!=null&&a.id&&this._rangeProtectionCanViewRenderExtension.renderCache.has(i.oldRule.id)||this._rangeProtectionCanViewRenderExtension.renderCache.has(i.rule.id))&&this._rangeProtectionCanViewRenderExtension.clearCache(),((o=i.oldRule)!=null&&o.id&&this._rangeProtectionCanNotViewRenderExtension.renderCache.has(i.oldRule.id)||this._rangeProtectionCanNotViewRenderExtension.renderCache.has(i.rule.id))&&this._rangeProtectionCanNotViewRenderExtension.clearCache()})}_initRender(){const t=this._context.mainComponent;t&&(t.getExtensionByKey(Kze)||t.register(this._rangeProtectionCanViewRenderExtension),t.getExtensionByKey(Zze)||t.register(this._rangeProtectionCanNotViewRenderExtension))}_initSkeleton(){const t=N(()=>{var e;this._sheetSkeletonManagerService.reCalculate(),(e=this._context.mainComponent)==null||e.makeDirty()},"markDirtySkeleton");this.disposeWithMe(Qa(this._permissionService.permissionPointUpdate$.pipe(zg(300,void 0,{trailing:!0})),this._rangeProtectionRuleModel.rangeRuleInitStateChange$,this._rangeProtectionRuleModel.ruleChange$).pipe().subscribe(t))}},N(mB,"SheetPermissionRenderController"),mB);CP=xre([e0(1,se(li)),e0(2,se(Gr)),e0(3,Qi)],CP);var gB;let SP=(gB=class extends et{constructor(t,e,n,r,i){super(),fe(this,"_worksheetProtectionRenderExtension",new xJt),this._context=t,this._renderManagerService=e,this._univerInstanceService=n,this._sheetSkeletonManagerService=r,this._worksheetProtectionRuleModel=i,this._initRender(),this._initSkeleton()}_initRender(){const t=N(n=>{const r=n&&this._renderManagerService.getRenderById(n),i=r&&r.mainComponent;i&&(i.getExtensionByKey(rqe)||i.register(this._worksheetProtectionRenderExtension))},"register");this.disposeWithMe(this._renderManagerService.currentRender$.subscribe(n=>{n&&t(n)}));const e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);e&&t(e.getUnitId())}_initSkeleton(){const t=N(()=>{var e;this._sheetSkeletonManagerService.reCalculate(),(e=this._context.mainComponent)==null||e.makeDirty()},"markDirtySkeleton");this.disposeWithMe(Qa(this._worksheetProtectionRuleModel.worksheetRuleInitStateChange$).pipe().subscribe(t))}},N(gB,"WorksheetProtectionRenderController"),gB);SP=xre([e0(1,se(Sr)),e0(2,se(Ce)),e0(3,se(Gr)),e0(4,se(ga))],SP);var kJt=Object.defineProperty,FJt=Object.getOwnPropertyDescriptor,VJt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?FJt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&kJt(e,n,i),i},"__decorateClass$b"),pB=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b"),vB;let zY=(vB=class extends et{constructor(t,e,n,r){super(),this._context=t,this._contextMenuService=e,this._selectionManagerService=n,this._selectionRenderService=r,this._init()}_init(){var t,e;const n=((e=(t=this._context)==null?void 0:t.mainComponent)==null?void 0:e.onPointerDown$).subscribeEvent(o=>{if(o.button===2){const s=this._selectionManagerService.getCurrentSelections(),l=s==null?void 0:s[0];if(!l)return;const u=l.range.rangeType,c=this._selectionRenderService.getSkeleton(),d=Vf(l,c).rangeWithCoord,h=N(()=>{if(!d)return!1;const m=o.offsetX,g=o.offsetY;switch(u){case it.ROW:return d.startY<=g&&d.endY>=g;case it.COLUMN:return d.startX<=m&&d.endX>=m;default:return d.startX<=m&&d.endX>=m&&d.startY<=g&&d.endY>=g}},"isPointerInRange"),f=N(m=>{this._contextMenuService.triggerContextMenu(o,m)},"triggerMenu");h()?u===it.COLUMN?f(Xa.COL_HEADER):u===it.ROW?f(Xa.ROW_HEADER):f(Xa.MAIN_AREA):f(Xa.MAIN_AREA)}});this.disposeWithMe(n);const r=this._context.components.get(_o.COLUMN),i=this._context.components.get(_o.ROW).onPointerDown$.subscribeEvent(o=>{o.button===2&&this._contextMenuService.triggerContextMenu(o,Xa.ROW_HEADER)});this.disposeWithMe(i);const a=r.onPointerDown$.subscribeEvent(o=>{o.button===2&&this._contextMenuService.triggerContextMenu(o,Xa.COL_HEADER)});this.disposeWithMe(a)}},N(vB,"SheetContextMenuRenderController"),vB);zY=VJt([pB(1,tm),pB(2,se(Bt)),pB(3,Ds)],zY);var BJt=Object.defineProperty,UJt=Object.getOwnPropertyDescriptor,HJt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?UJt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&BJt(e,n,i),i},"__decorateClass$a"),s5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),_B;let qY=(_B=class extends Da{constructor(t,e,n,r,i,a){super(),fe(this,"_d"),this._context=t,this._instanceSrv=e,this._commandService=n,this._editorBridgeService=r,this._selectionManagerService=i,this._rangeSelectorService=a,this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(o=>{o&&o.getUnitId()===this._context.unitId?this._d=this._init():this._disposeCurrent()})),this._initialRangeSelector()}_init(){const t=new Gi;return this._initSelectionChangeListener(t),this._initEventListener(t),this._commandExecutedListener(t),t}_disposeCurrent(){var t;(t=this._d)==null||t.dispose(),this._d=null}_initSelectionChangeListener(t){t.add(Qa(this._selectionManagerService.selectionMoveEnd$,this._selectionManagerService.selectionMoveStart$).subscribe(e=>this._updateEditorPosition(e)))}_updateEditorPosition(t){var e,n;if(this._editorBridgeService.isVisible().visible||this._rangeSelectorService.selectorModalVisible)return;const r=(e=t==null?void 0:t[t.length-1])==null?void 0:e.primary;if(r){const i=this._getSheetObject(),{scene:a,engine:o}=i,s=this._context.unitId,l=(n=this._context.unit.getActiveSheet())==null?void 0:n.getSheetId();if(!l)return;this._commandService.executeCommand(rre.id,{scene:a,engine:o,primary:r,unitId:s,sheetId:l})}}_initEventListener(t){const e=this._getSheetObject(),{spreadsheet:n,spreadsheetColumnHeader:r,spreadsheetLeftTopPlaceholder:i,spreadsheetRowHeader:a}=e;t.add(n.onDblclick$.subscribeEvent(o=>{o.button!==2&&this._commandService.executeCommand(Cc.id,{visible:!0,eventType:$i.Dblclick,unitId:this._context.unitId})})),t.add(n.onPointerDown$.subscribeEvent(this._tryHideEditor.bind(this))),t.add(r.onPointerDown$.subscribeEvent(this._tryHideEditor.bind(this))),t.add(i.onPointerDown$.subscribeEvent(this._tryHideEditor.bind(this))),t.add(a.onPointerDown$.subscribeEvent(this._tryHideEditor.bind(this)))}_tryHideEditor(){this._editorBridgeService.isForceKeepVisible()||this._hideEditor()}_hideEditor(){this._editorBridgeService.isVisible().visible===!0&&this._commandService.executeCommand(Cc.id,{visible:!1,eventType:$i.PointerDown,unitId:this._context.unitId})}_initialRangeSelector(){this.disposeWithMe(this._selectionManagerService.selectionMoving$.subscribe(this._rangeSelector.bind(this))),this.disposeWithMe(this._selectionManagerService.selectionMoveStart$.subscribe(this._rangeSelector.bind(this))),this.disposeWithMe(this._rangeSelectorService.openSelector$.subscribe(()=>{const{unitId:t,sheetId:e,sheetName:n}=this._getCurrentUnitIdAndSheetId();if(!e||!n)return;const r=this._selectionManagerService.getCurrentSelections(),i=r==null?void 0:r.map(a=>({range:a.range,unitId:t,sheetId:e,sheetName:n}));i&&this._rangeSelectorService.selectionChange(i)}))}_rangeSelector(t){if(!t)return;const{unitId:e,sheetId:n,sheetName:r}=this._getCurrentUnitIdAndSheetId();if(!n||!r)return;const i=t.map(a=>({range:a.range,unitId:e,sheetId:n,sheetName:r}));this._rangeSelectorService.selectionChange(i)}_getCurrentUnitIdAndSheetId(){const t=this._context.unit,e=t.getActiveSheet();return{unitId:t.getUnitId(),sheetId:e==null?void 0:e.getSheetId(),sheetName:e==null?void 0:e.getName()}}_getSheetObject(){return Ad(this._context.unit,this._context)}_commandExecutedListener(t){t.add(this._commandService.onCommandExecuted((e,n)=>{e.id===gb.id&&this._editorBridgeService.refreshEditCellState(),!(n!=null&&n.fromCollab)&&(e.id===Ha.id?this._tryHideEditor():Nne.includes(e.id)&&this._hideEditor())}))}},N(_B,"EditorBridgeRenderController"),_B);qY=HJt([s5(1,Ce),s5(2,me),s5(3,Zl),s5(4,se(Bt)),s5(5,fL)],qY);var jJt=Object.defineProperty,$Jt=Object.getOwnPropertyDescriptor,WJt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?$Jt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&jJt(e,n,i),i},"__decorateClass$9"),zJt=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9"),CB;let bP=(CB=class extends et{constructor(t,e){super(),this._context=t,this._formatPainterService=e,this._initialize()}_initialize(){this._bindFormatPainterStatus()}_bindFormatPainterStatus(){this.disposeWithMe($t(this._formatPainterService.status$.subscribe(t=>{const e=this._context.scene;e&&(t!==u1.OFF?e.setDefaultCursor(Yn.CELL):e.setDefaultCursor(Yn.DEFAULT))})))}},N(CB,"FormatPainterRenderController"),CB);bP=WJt([zJt(1,sm)],bP);var YY=(t=>(t[t.NORMAL=0]="NORMAL",t[t.HIGHLIGHT=1]="HIGHLIGHT",t))(YY||{});const qJt="rgba(0, 0, 0, 0.15)",Hh="rgb(0, 0, 0)",Xy="rgb(255, 255, 255, 1)",aqe=class extends Ed{constructor(e,n){super(e,n),fe(this,"_size",12),fe(this,"_iconRatio",.4),fe(this,"_mode",0),this.setShapeProps(n)}setShapeProps(e){e!=null&&e.size&&(this._size=e.size),e!=null&&e.mode&&(this._mode=e.mode),this.transformByState({width:this._size,height:this._size})}_draw(e){this._mode===1&&ur.drawWith(e,{width:this._size,height:this._size,radius:this._size,fill:qJt});const n=this._size*.5*this._iconRatio,r=Math.PI/180*60,i=n*Math.sin(r),a=n*Math.cos(r);Z1.drawWith(e,{pointsGroup:[[{x:-i+this._size/2,y:-a+this._size/2},{x:i+this._size/2,y:-a+this._size/2},{x:this._size/2,y:n+this._size/2}]],fill:Hh})}};N(aqe,"HeaderMenuShape");let YJt=aqe;var XJt=Object.defineProperty,GJt=Object.getOwnPropertyDescriptor,QJt=N((t,e,n,r)=>{for(var i=r>1?void 0:r?GJt(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&XJt(e,n,i),i},"__decorateClass$8"),Gy=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8");const KJt="__SpreadsheetHeaderMenuSHAPEControllerShape__",ZJt="__SpreadsheetHeaderMenuMAINControllerShape__",JJt="rgba(0, 0, 0, 0.1)";var SB;let XY=(SB=class extends et{constructor(t,e,n,r,i){super(),fe(this,"_hoverRect"),fe(this,"_hoverMenu"),fe(this,"_currentColumn",Number.POSITIVE_INFINITY),fe(this,"_headerPointerSubs"),fe(this,"_colHeaderPointerSubs"),this._context=t,this._sheetSkeletonManagerService=e,this._contextMenuService=n,this._commandService=r,this._selectionManagerService=i,this._initialize()}dispose(){var t,e,n;(t=this._hoverRect)==null||t.dispose(),(e=this._hoverMenu)==null||e.dispose(),(n=this._headerPointerSubs)==null||n.unsubscribe(),this._headerPointerSubs=null}_initialize(){const t=this._context.scene;this._hoverRect=new ur(KJt,{fill:JJt,evented:!1}),this._hoverMenu=new YJt(ZJt,{zIndex:100,visible:!1}),t.addObjects([this._hoverRect,this._hoverMenu],j0),this._initialHover(0),this._initialHover(1),this._initialHoverMenu()}_initialHover(t=0){var e,n,r;const i=this._context.components.get(_o.COLUMN),a=this._context.components.get(_o.ROW),o=t===0?a:i,s=N(f=>{var m,g,p;const v=(m=this._sheetSkeletonManagerService.getCurrent())==null?void 0:m.skeleton;if(v==null)return;const{rowHeaderWidth:_,columnHeaderHeight:C}=v,{startX:S,startY:b,endX:y,endY:A,column:w}=p1(f.offsetX,f.offsetY,this._context.scene,v);if(t===0)(g=this._hoverRect)==null||g.transformByState({width:_,height:A-b,left:0,top:b});else{if(this._currentColumn=w,(p=this._hoverRect)==null||p.transformByState({width:y-S,height:C,left:S,top:0}),this._hoverMenu==null)return;if(y-S<C*2){this._hoverMenu.hide();return}const P=C*.8;this._hoverMenu.transformByState({left:y-C,top:C/2-P/2}),this._hoverMenu.setShapeProps({size:P}),this._hoverMenu.show()}},"pointerMoveHandler"),l=N(()=>{var f;(f=this._hoverRect)==null||f.show()},"pointerEnterHandler"),u=N(()=>{var f,m;(f=this._hoverRect)==null||f.hide(),(m=this._hoverMenu)==null||m.hide()},"pointerLeaveHandler");this._headerPointerSubs=new bl;const c=o.onPointerMove$.subscribeEvent(s),d=o.onPointerEnter$.subscribeEvent(l),h=o.onPointerLeave$.subscribeEvent(u);(e=this._headerPointerSubs)==null||e.add(c),(n=this._headerPointerSubs)==null||n.add(d),(r=this._headerPointerSubs)==null||r.add(h)}_initialHoverMenu(){this._hoverMenu!=null&&(this._hoverMenu.onPointerEnter$.subscribeEvent(()=>{this._hoverMenu!=null&&(this._hoverMenu.setProps({mode:YY.HIGHLIGHT,visible:!0}),this._context.scene.setCursor(Yn.POINTER))}),this._hoverMenu.onPointerLeave$.subscribeEvent(()=>{this._hoverMenu!=null&&(this._hoverMenu.setProps({mode:YY.NORMAL,visible:!1}),this._context.scene.resetCursor())}),this._hoverMenu.onPointerDown$.subscribeEvent(t=>{var e;const n=this._currentColumn,r=(e=this._selectionManagerService.getCurrentSelections())==null?void 0:e.map(i=>i.range);if(!(r!=null&&r.filter(i=>i.rangeType===it.COLUMN).find(i=>{const{startColumn:a,endColumn:o}=i;return n>=a&&n<=o}))){const i=this._getSelectionOnColumn(n);this._commandService.syncExecuteCommand(Pr.id,i)}t.stopPropagation(),t.preventDefault(),this._contextMenuService.triggerContextMenu(t,Xa.COL_HEADER)}))}_getSelectionOnColumn(t){const e=this._context.unit,n=e.getActiveSheet();if(!n)throw new Error("No active worksheet");return{unitId:e.getUnitId(),subUnitId:n.getSheetId(),selections:[{range:{startRow:0,startColumn:t,endRow:n.getRowCount()-1,endColumn:t,rangeType:it.COLUMN},primary:{startRow:0,startColumn:t,endRow:0,endColumn:t,actualRow:0,actualColumn:t,isMerged:!1,isMergedMainCell:!1},style:null}]}}},N(SB,"HeaderMenuRenderController"),SB);XY=QJt([Gy(1,se(Gr)),Gy(2,tm),Gy(3,me),Gy(4,se(Bt))],XY);var GY=(t=>(t[t.ROW=0]="ROW",t[t.COLUMN=1]="COLUMN",t))(GY||{});const r8=12,een=.4,oqe=class extends Ed{constructor(e,n,r){super(e,n),fe(this,"_size",r8),fe(this,"_iconRatio",een),fe(this,"_hovered",!0),fe(this,"_hasPrevious",!0),fe(this,"_hasNext",!0),fe(this,"_unhideType"),n&&this.setShapeProps(n),this.onPointerEnter$.subscribeEvent(()=>this.setShapeProps({hovered:!0})),this.onPointerLeave$.subscribeEvent(()=>this.setShapeProps({hovered:!1})),this.onPointerDown$.subscribeEvent(()=>r==null?void 0:r())}setShapeProps(e){e.type!==void 0&&(this._unhideType=e.type),e.hovered!==void 0&&(this._hovered=e.hovered),e.hasPrevious!==void 0&&(this._hasPrevious=e.hasPrevious),e.hasNext!==void 0&&(this._hasNext=e.hasNext),this.transformByState({width:this._size*(this._unhideType===1?2:1),height:this._size*(this._unhideType===0?2:1)})}_draw(e){this._unhideType===0?this._drawOnRow(e):this._drawOnCol(e)}_drawOnRow(e){this._hovered&&(!this._hasNext||!this._hasPrevious?ur.drawWith(e,{width:this._size,height:this._size,stroke:Hh,fill:Xy}):ur.drawWith(e,{width:this._size,height:2*this._size,stroke:Hh,fill:Xy}));const n=this._size*.5*this._iconRatio,r=Math.PI/3,i=n*Math.cos(r),a=n*Math.sin(r);if(this._hasPrevious&&Z1.drawWith(e,{pointsGroup:[[{x:this._size/2,y:this._size/2-a},{x:this._size/2-a,y:this._size/2+i},{x:this._size/2+a,y:this._size/2+i}]],fill:Hh}),this._hasNext){const o=this._hasPrevious?3:1;Z1.drawWith(e,{pointsGroup:[[{x:this._size/2,y:this._size*o/2+a},{x:this._size/2-a,y:this._size*o/2-i},{x:this._size/2+a,y:this._size*o/2-i}]],fill:Hh})}}_drawOnCol(e){this._hovered&&(!this._hasNext||!this._hasPrevious?ur.drawWith(e,{width:this._size,height:this._size,stroke:Hh,fill:Xy}):ur.drawWith(e,{width:2*this._size,height:this._size,stroke:Hh,fill:Xy}));const n=this._size*.5*this._iconRatio,r=Math.PI/3,i=n*Math.cos(r),a=n*Math.sin(r);if(this._hasPrevious&&Z1.drawWith(e,{pointsGroup:[[{x:-i+this._size/2,y:this._size/2},{x:this._size/2+a,y:this._size/2-a},{x:this._size/2+a,y:this._size/2+a}]],fill:Hh}),this._hasNext){const o=this._hasPrevious?3:1;Z1.drawWith(e,{pointsGroup:[[{x:i+this._size*o/2,y:this._size/2},{x:-a+this._size*o/2,y:this._size/2-a},{x:-a+this._size*o/2,y:this._size/2+a}]],fill:Hh})}}};N(oqe,"HeaderUnhideShape");let Aue=oqe;var ten=Object.defineProperty,nen=Object.getOwnPropertyDescriptor,ren=N((t,e,n,r)=>{for(var i=r>1?void 0:r?nen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ten(e,n,i),i},"__decorateClass$7"),wue=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7");const Due="__SpreadsheetHeaderUnhideSHAPEControllerShape__";w1.id,A1.id,Wl.id,Tu.id,g1.id,m1.id,Xs.id,fc.id,Of.id,xf.id,Tf.id,Lf.id;var bB;let QY=(bB=class extends Da{constructor(t,e,n){super(),fe(this,"_shapes",{cols:[],rows:[]}),this._context=t,this._sheetSkeletonManagerService=e,this._commandService=n,this._init()}get _workbook(){return this._context.unit}dispose(){super.dispose(),this._clearShapes()}_init(){let t="";this._context.unit.activeSheet$.pipe(_a(this.dispose$)).subscribe(e=>{if(this._clearShapes(),!e){t="";return}t=e.getSheetId(),this._update(this._workbook,e)}),this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(e=>{if(e){const{unitId:n,sheetId:r}=e;if(n===this._workbook.getUnitId()&&r===t){const i=this._workbook.getSheetBySheetId(r);i&&this._update(this._workbook,i)}}}))}_update(t,e){var n;const r=(n=this._sheetSkeletonManagerService.getWorksheetSkeleton(e.getSheetId()))==null?void 0:n.skeleton;if(!r)return;const i=e.getHiddenRows(),a=e.getHiddenCols(),o=this._getSheetObject(),{scene:s}=o,l=e.getRowCount(),u=i.map(h=>{const{startRow:f,endRow:m}=h,g=iY(f,0,s,r),p=f!==0,v=m!==l-1;return new Aue(Due,{type:GY.ROW,hovered:!1,hasPrevious:p,hasNext:v,top:g.startY-(p?r8:0),left:g.startX-r8},()=>this._commandService.executeCommand(lb.id,{unitId:t.getUnitId(),subUnitId:e.getSheetId(),ranges:[h]}))}),c=e.getColumnCount(),d=a.map(h=>{const{startColumn:f,endColumn:m}=h,g=iY(0,f,s,r),p=f!==0,v=m!==c-1;return new Aue(Due,{type:GY.COLUMN,hovered:!1,hasPrevious:p,hasNext:v,top:20-r8,left:g.startX-(p?r8:0)},()=>this._commandService.executeCommand(ob.id,{unitId:t.getUnitId(),subUnitId:e.getSheetId(),ranges:[h]}))});s.addObjects(d,Xle),s.addObjects(u,Xle),this._clearShapes(),this._shapes={cols:d,rows:u}}_clearShapes(){this._shapes.cols.forEach(t=>t.dispose()),this._shapes.rows.forEach(t=>t.dispose()),this._shapes={cols:[],rows:[]}}_getSheetObject(){return Ad(this._workbook,this._context)}},N(bB,"HeaderUnhideRenderController"),bB);QY=ren([wue(1,se(Gr)),wue(2,me)],QY);var ien=Object.defineProperty,aen=Object.getOwnPropertyDescriptor,oen=N((t,e,n,r)=>{for(var i=r>1?void 0:r?aen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ien(e,n,i),i},"__decorateClass$6"),l5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6");const sen=60;var yB;let yP=(yB=class extends Da{constructor(t,e,n,r,i,a){super(),fe(this,"_renderFrameTimeMetric",null),fe(this,"_renderFrameTags",{}),fe(this,"_afterRenderMetric$",new Zt),this._context=t,this._contextService=e,this._sheetSkeletonManagerService=n,this._sheetRenderService=r,this._commandService=i,this._telemetryService=a,this._addNewRender(),this._initRenderMetricSubscriber()}_addNewRender(){const{scene:t,engine:e,unit:n}=this._context;this._addComponent(n),this._initRerenderScheduler(),this._initCommandListener();const r=this._context.unit.getActiveSheet();if(!r)throw new Error("No active sheet found");const i=r.getSheetId();this._sheetSkeletonManagerService.setCurrent({sheetId:i}),e.runRenderLoop(()=>t.render())}_initRenderMetricSubscriber(){if(!this._telemetryService)return;const{engine:t}=this._context;t.beginFrame$.subscribe(()=>{this._renderFrameTimeMetric=null,this._renderFrameTags={}}),t.endFrame$.subscribe(()=>{this._renderFrameTimeMetric&&Object.keys(this._renderFrameTimeMetric).filter(n=>n.startsWith(rW)).length>0&&this._afterRenderMetric$.next({frameTimeMetric:this._renderFrameTimeMetric,tags:this._renderFrameTags})}),t.renderFrameTimeMetric$.subscribe(([n,r])=>{this._renderFrameTimeMetric||(this._renderFrameTimeMetric={}),this._renderFrameTimeMetric[n]||(this._renderFrameTimeMetric[n]=[]),r=Math.round(r*100)/100,this._renderFrameTimeMetric[n].push(r)}),t.renderFrameTags$.subscribe(([n,r])=>{this._renderFrameTags[n]=r});const e=[];this._afterRenderMetric$.pipe(qQe(t.endFrame$)).subscribe(([n,r])=>{e.push({FPS:r.FPS,elapsedTime:r.elapsedTime,frameTime:Math.round(r.frameTime*100)/100,...n.frameTimeMetric,...n.tags}),e.length>sen&&(this._renderMetricCapture(e),e.length=0)})}_renderMetricCapture(t){const e=t;if(e.length===0)return;const n=N(u=>{let c=0;const d=Object.entries(u).filter(([h,f])=>Array.isArray(f)).map(([h])=>h).reduce((h,f)=>{const m=u[f].reduce((g,p)=>g+p,0);return h[f]=m,h},{});return Object.keys(u).filter(h=>h.startsWith(rW)).forEach(h=>{c+=d[h]}),{...d,extensionTotal:c}},"sumValueForNumListFields"),r=t.map(u=>({...u,...n(u)})),i=N(u=>Object.entries(u[0]).filter(([c,d])=>!["elapsedTime"].includes(c)).filter(([c,d])=>typeof d=="number").map(([c])=>c).reduce((c,d)=>{const h=u.map(p=>p[d]),f=Math.max(...h),m=Math.min(...h),g=h.reduce((p,v)=>p+v,0)/h.length;return c[d]={max:Math.round(f*100)/100,min:Math.round(m*100)/100,avg:Math.round(g*100)/100},c},{}),"getSummaryStats")(r),a=e[e.length-1].elapsedTime,o=this._context.unit.getActiveSheet().getSheetId(),s=this._context.unit.getUnitId(),l={sheetId:o,unitId:s,elapsedTimeToStart:a,...i};this._telemetryService.capture("sheet_render_cost",l)}_addComponent(t){const{scene:e,components:n}=this._context,r=t.getActiveSheet();if(!r)throw new Error("No active sheet found");const i=new hye(_o.MAIN);this._addViewport(r);const a=new nyt(_o.ROW),o=new rSt(_o.COLUMN),s=new ur(_o.LEFT_TOP,{zIndex:2,left:-1,top:-1,fill:"rgb(248, 249, 250)",stroke:"rgb(217, 217, 217)",strokeWidth:1});this._context.mainComponent=i,n.set(_o.MAIN,i),n.set(_o.ROW,a),n.set(_o.COLUMN,o),n.set(_o.LEFT_TOP,s),e.addObjects([i],Yle),e.addObjects([a,o,s],j0),e.enableLayerCache(Yle,j0)}_initViewports(t,e,n){const r=new xd(an.VIEW_MAIN,t,{left:e.width,top:n.height,bottom:0,right:0,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!1,explicitViewportHeightSet:!1,allowCache:!0,bufferEdgeX:100,bufferEdgeY:100}),i=new xd(an.VIEW_MAIN_LEFT_TOP,t,{isWheelPreventDefaultX:!0,active:!1,explicitViewportWidthSet:!0,explicitViewportHeightSet:!0,allowCache:!0,bufferEdgeX:0,bufferEdgeY:0}),a=new xd(an.VIEW_MAIN_LEFT,t,{isWheelPreventDefaultX:!0,active:!1,explicitViewportWidthSet:!0,explicitViewportHeightSet:!1,allowCache:!0,bufferEdgeX:0,bufferEdgeY:100}),o=new xd(an.VIEW_MAIN_TOP,t,{isWheelPreventDefaultX:!0,active:!1,explicitViewportWidthSet:!1,explicitViewportHeightSet:!0,allowCache:!0,bufferEdgeX:100,bufferEdgeY:0}),s=new xd(an.VIEW_ROW_TOP,t,{active:!1,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!0,explicitViewportHeightSet:!0}),l=new xd(an.VIEW_ROW_BOTTOM,t,{left:0,top:n.height,bottom:0,width:e.width,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!0,explicitViewportHeightSet:!1}),u=new xd(an.VIEW_COLUMN_LEFT,t,{active:!1,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!0,explicitViewportHeightSet:!0}),c=new xd(an.VIEW_COLUMN_RIGHT,t,{left:e.width,top:0,height:n.height,right:0,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!1,explicitViewportHeightSet:!0}),d=new xd(an.VIEW_LEFT_TOP,t,{left:0,top:0,width:e.width,height:n.height,isWheelPreventDefaultX:!0,explicitViewportWidthSet:!0,explicitViewportHeightSet:!0});return{viewMain:r,viewLeftTop:d,viewMainLeftTop:i,viewMainLeft:a,viewMainTop:o,viewColumnLeft:u,viewRowTop:s,viewRowBottom:l,viewColumnRight:c}}_addViewport(t){const e=this._context.scene;if(e==null)return;const{rowHeader:n,columnHeader:r}=t.getConfig(),{viewMain:i}=this._initViewports(e,n,r);return new G4(i),e.attachControl(),i}_initRerenderScheduler(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(!t)return null;const{skeleton:e,sheetId:n}=t,r=this._context.unit,i=r==null?void 0:r.getSheetBySheetId(n);if(r==null||i==null)return;const{mainComponent:a,components:o}=this._context,s=a,l=o.get(_o.ROW),u=o.get(_o.COLUMN),c=o.get(_o.LEFT_TOP),{rowHeaderWidth:d,columnHeaderHeight:h}=e;s==null||s.updateSkeleton(e),l==null||l.updateSkeleton(e),u==null||u.updateSkeleton(e),c==null||c.transformByState({width:d,height:h})}))}_initCommandListener(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{const{unit:n,unitId:r}=this._context,{id:i}=t;if(Nne.includes(i)||this._sheetRenderService.checkMutationShouldTriggerRerender(i)){const a=n.getActiveSheet();if(!a)return;const o=this._context.unitId,s=a.getSheetId(),l=t.params,{unitId:u,subUnitId:c}=l;if(u!==o||c!==s)return;i!==Ha.id&&this._sheetSkeletonManagerService.makeDirty({sheetId:s,commandId:i},!0),this._sheetSkeletonManagerService.setCurrent({sheetId:s,commandId:i})}else $zt.includes(i)&&this._sheetSkeletonManagerService.reCalculate();t.type===Se.MUTATION&&this._markUnitDirty(r,t)}))}_markUnitDirty(t,e){const{mainComponent:n,scene:r}=this._context;if(n&&n.makeDirty(),r.makeDirty(),!e.params)return;const i=e.params,a=this._spreadsheetViewports(r);if(e.id===Mn.id&&i.cellValue){const o=this._cellValueToRange(i.cellValue),s=this._rangeToBounds([o]);this._markViewportDirty(a,s),n.setDirtyArea(s)}if(e.id===$l.id&&i.from&&i.to){const o=i.fromRange||this._cellValueToRange(i.from.value),s=i.toRange||this._cellValueToRange(i.to.value),l=this._rangeToBounds([o,s]);this._markViewportDirty(a,l),n.setDirtyArea(l)}}_cellValueToRange(t){let e=0,n=0,r=0,i=0;for(const[a,o]of Object.entries(t)){for(const s in o)e>Number(s)&&(e=Number(s)),n<Number(s)&&(n=Number(s));r>Number(a)&&(r=Number(a)),i<Number(a)&&(i=Number(a))}return{startRow:r,endRow:i,startColumn:e,endColumn:n}}_rangeToBounds(t){const e=this._sheetSkeletonManagerService.getCurrent().skeleton,{rowHeightAccumulation:n,columnWidthAccumulation:r,rowHeaderWidth:i,columnHeaderHeight:a}=e,o=[];for(const s of t){const{startRow:l,endRow:u,startColumn:c,endColumn:d}=s,h=l===0?0:n[l-1]+a,f=n[u]+a,m=c===0?0:r[c-1]+i,g=r[d]+i;o.push({top:h,left:m,bottom:f,right:g,width:g-m,height:f-h})}return o}_markViewportDirty(t,e){const n=t.filter(r=>r.isActive&&r.cacheBound);for(const r of n)for(const i of e)ft.hasIntersectionBetweenTwoRect(r.cacheBound,i)&&r.markDirty(!0)}_spreadsheetViewports(t){return t.getViewports().filter(e=>["viewMain","viewMainLeftTop","viewMainTop","viewMainLeft"].includes(e.viewportKey))}},N(yB,"SheetRenderController"),yB);yP=oen([l5(1,ui),l5(2,se(Gr)),l5(3,se(Vg)),l5(4,me),l5(5,_1(Jzt))],yP);const len=_s("PRINTING_RANGE"),uen=_s("PRINTING_COMPONENT_COLLECT"),sqe=class extends et{constructor(){super(),fe(this,"interceptor",new Wf({PRINTING_RANGE:len,PRINTING_COMPONENT_COLLECT:uen})),this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().PRINTING_RANGE,{priority:-1,handler:N(e=>e,"handler")})),this.disposeWithMe(this.interceptor.intercept(this.interceptor.getInterceptPoints().PRINTING_COMPONENT_COLLECT,{priority:-1,handler:N(e=>e,"handler")}))}};N(sqe,"SheetPrintInterceptorService");let lqe=sqe;var uqe=Object.defineProperty,cen=Object.getOwnPropertyDescriptor,den=N((t,e,n)=>e in t?uqe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp$1"),hen=N((t,e,n,r)=>{for(var i=r>1?void 0:r?cen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&uqe(e,n,i),i},"__decorateClass$5"),Qy=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),cqe=N((t,e,n)=>den(t,typeof e!="symbol"?e+"":e,n),"__publicField$1"),EB;let Y0=(EB=class extends Cs{constructor(t=xze,e,n,r,i){super(),this._config=t,this._injector=e,this._renderManagerService=n,this._configService=r,this._univerInstanceService=i;const{menu:a,...o}=this._config;a&&this._configService.setConfig("menu",a,{merge:!0}),this._configService.setConfig(kQt,o)}onStarting(){Mp([[h7],[Zl,{useClass:lY}],[Eh,{useClass:fP}],[u3,{useClass:bje}],[sm,{useClass:dP}],[vre,{useClass:BXt}],[_re,{useClass:$Xt}],[om,{useClass:$8}],[lqe],[Yx,{useClass:Kje}],[l3,{useClass:cP}],[q0],[iC],[_7],[Ap],[Fne],[K8],[Ug],[AA],[J8],[Vg],[EA],[m4],[KR],[wA],[RA],[Ks],[_9],[iv],[$g],[nv],[sC]],this._config.override).forEach(t=>this._injector.add(t))}onReady(){this._config.disableAutoFocus||this._markSheetAsFocused(),this._registerRenderBasics()}onRendered(){this._registerRenderModules(),this._injector.get(sC)}_registerRenderBasics(){[[Gr],[yP],[Ds,{useClass:NY}]].forEach(t=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,t))})}_registerRenderModules(){var t;const e=[[oC],[QY],[_P],[zl],[X_],[aC],[K_],[bP],[Z8],[ev],[vP],[pP],[gP],[tv],[z8],[zY],[UY],[qY],[BY],[rv],[av],[CP],[SP]],n=this._configService.getConfig(Yee);((t=n==null?void 0:n.contextMenu)==null||t)&&e.push([XY]),e.forEach(r=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,r))})}_markSheetAsFocused(){const t=this._univerInstanceService;this.disposeWithMe(t.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(mo(e=>!!e)).subscribe(e=>t.focusUnit(e.getUnitId())))}},N(EB,"UniverSheetsUIPlugin"),EB);cqe(Y0,"pluginName","SHEET_UI_PLUGIN");cqe(Y0,"type",le.UNIVER_SHEET);Y0=hen([yd(Ff),Qy(1,se(Wn)),Qy(2,Sr),Qy(3,Za),Qy(4,Ce)],Y0);var fen=Object.defineProperty,men=Object.getOwnPropertyDescriptor,gen=N((t,e,n,r)=>{for(var i=r>1?void 0:r?men(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fen(e,n,i),i},"__decorateClass$4"),U3=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4");const pen=[ql.id,am.id];var RB;let KY=(RB=class extends et{constructor(t,e,n,r,i,a,o){super(),this._context=t,this._sheetSkeletonManagerService=e,this._commandService=n,this._renderManagerService=r,this._selectionManagerService=i,this._scrollManagerService=a,this._univerInstanceService=o,this._init()}scrollToRange(t){let{endRow:e,endColumn:n,startColumn:r,startRow:i}=t;const a=this._getViewportBounding();if(t.rangeType===it.ROW?(r=0,n=0):t.rangeType===it.COLUMN&&(i=0,e=0),a){const o=a.startRow>e?i:e,s=a.startColumn>n?r:n;return this._scrollToCell(o,s)}else return this._scrollToCell(i,r)}_init(){this._initCommandListener(),this._initScrollEventListener(),this._initPointerScrollEvent(),this._initSkeletonListener()}_initCommandListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(pen.includes(t.id))this._scrollToSelection();else if(t.id===hx.id){const e=t.params;this.scrollToRange(e)}else if(t.id===Lu.id){const e=t.params;this._scrollToSelectionForExpand(e)}}))}_scrollToSelectionForExpand(t){setTimeout(()=>{const e=this._selectionManagerService.getCurrentLastSelection();if(e==null)return;const{startRow:n,startColumn:r,endRow:i,endColumn:a}=e.range,o=this._getViewportBounding();if(o==null)return;const{startRow:s,startColumn:l,endRow:u,endColumn:c}=o;let d=0,h=0;n>s?d=i:i<u?d=n:d=s,r>l?h=a:a<c?h=r:h=l,t.direction===ut.DOWN?d=i:t.direction===ut.UP?d=n:t.direction===ut.RIGHT?h=a:t.direction===ut.LEFT&&(h=r),this._scrollToCell(d,h)},0)}_getFreeze(){var t;const e=(t=this._sheetSkeletonManagerService.getCurrent())==null?void 0:t.skeleton.getWorksheetConfig();if(e!=null)return e.freeze}_initScrollEventListener(){const{scene:t}=this._context;if(t==null)return;const e=t.getViewport(an.VIEW_MAIN);e&&(this.disposeWithMe($t(this._scrollManagerService.rawScrollInfo$.subscribe(n=>{var r;if(n==null){e.scrollToViewportPos({viewportScrollX:0,viewportScrollY:0});return}const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(!i)return;const{sheetViewStartRow:a,sheetViewStartColumn:o,offsetX:s,offsetY:l}=n,{startX:u,startY:c}=i.getCellByIndexWithNoHeader(a,o),d=u+s,h=c+l;e.scrollToViewportPos({viewportScrollX:d,viewportScrollY:h})}))),this.disposeWithMe(e.onScrollAfter$.subscribeEvent(n=>{var r;if(!n)return;const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(i==null)return;const a=this._getSheetObject();if(i==null||a==null)return;const{viewportScrollX:o,viewportScrollY:s,scrollX:l,scrollY:u}=n,{row:c,column:d,rowOffset:h,columnOffset:f}=i.getDecomposedOffset(o,s),m={sheetViewStartRow:c,sheetViewStartColumn:d,offsetX:f,offsetY:h};this._scrollManagerService.setScrollStateToCurrSheet(m),this._scrollManagerService.validViewportScrollInfo$.next({...m,scrollX:l,scrollY:u,viewportScrollX:o,viewportScrollY:s})})),this.disposeWithMe(e.onScrollByBar$.subscribeEvent(n=>{var r;const i=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton;if(i==null||n.isTrigger===!1)return;const a=this._getSheetObject();if(i==null||a==null)return;const{viewportScrollX:o=0,viewportScrollY:s=0}=n,l=this._getFreeze(),{row:u,column:c,rowOffset:d,columnOffset:h}=i.getDecomposedOffset(o,s);this._commandService.executeCommand(gf.id,{sheetViewStartRow:u+((l==null?void 0:l.ySplit)||0),sheetViewStartColumn:c+((l==null?void 0:l.xSplit)||0),offsetX:h,offsetY:d})})))}_initSkeletonListener(){this.disposeWithMe($t(this._sheetSkeletonManagerService.currentSkeletonBefore$.subscribe(t=>{if(t==null)return;const e={unitId:t.unitId,sheetId:t.sheetId};this._scrollManagerService.setSearchParam(e);const n=this._getSheetObject();if(!n)return;const r=n.scene.getViewport(an.VIEW_MAIN),i=this._scrollManagerService.getScrollStateByParam(e),{viewportScrollX:a,viewportScrollY:o}=this._scrollManagerService.calcViewportScrollFromRowColOffset(i);r&&(i?(r.viewportScrollX=a,r.viewportScrollY=o):(r.viewportScrollX=0,r.viewportScrollY=0),this._updateSceneSize(t))})))}_initPointerScrollEvent(){const t=this._getSheetObject();if(!t)return;const e=this._scrollManagerService,n=t.scene,r=t.spreadsheet,i=n.getViewport(an.VIEW_MAIN),a={x:0,y:0};let o=!1;const s={x:0,y:0},l=.95;let u=null;const c=N(()=>{if(!i)return;s.x*=l,s.y*=l,a.x+=s.x,a.y+=s.y;const h=s.x,f=s.y;(f!==0||h!==0)&&this._commandService.executeCommand(Fg.id,{offsetY:f,offsetX:h}),Math.abs(s.x)>1||Math.abs(s.y)>1?u=requestAnimationFrame(c):u=null},"pointerScrollInertia"),d=N(()=>{cancelAnimationFrame(u),u=null},"cancelInertiaAnimation");r.onPointerDown$.subscribeEvent((h,f)=>{d(),i&&(a.x=h.offsetX,a.y=h.offsetY,o=!0,f.stopPropagation())}),r.onPointerMove$.subscribeEvent((h,f)=>{if(!o||!i)return;const m=h,g=-(m.offsetX-a.x),p=-(m.offsetY-a.y);s.x=-(m.offsetX-a.x),s.y=-(m.offsetY-a.y);const v=g,_=p;(g!==0||p!==0)&&(_!==0||v!==0)&&this._commandService.executeCommand(Fg.id,{offsetY:_,offsetX:v}),e.getCurrentScrollState(),a.x=m.offsetX,a.y=m.offsetY,f.stopPropagation()}),r.onPointerUp$.subscribeEvent(h=>{o=!1,u=requestAnimationFrame(c)}),r.onPointerLeave$.subscribeEvent(()=>{o=!1}),r.onPointerOut$.subscribeEvent(()=>{o=!1}),n.onPointerOut$.subscribeEvent(()=>{o=!1}),n.onPointerCancel$.subscribeEvent(()=>{o=!1})}_updateSceneSize(t){var e;if(t==null)return;const{unitId:n}=this._context,{skeleton:r}=t,i=(e=this._renderManagerService.getRenderById(n))==null?void 0:e.scene;if(r==null||i==null)return;const{rowTotalHeight:a,columnTotalWidth:o,rowHeaderWidthAndMarginLeft:s,columnHeaderHeightAndMarginTop:l}=r,u=this._context.unit.getActiveSheet();if(!u)return;const c=u.getZoomRatio()||1;i==null||i.setScaleValue(c,c),i==null||i.transformByState({width:s+o,height:l+a})}_getSheetObject(){return Ad(this._context.unit,this._context)}_scrollToSelectionByDirection(t){const e=this._getViewportBounding();if(e==null)return!1;const{startRow:n,startColumn:r,endRow:i,endColumn:a}=e;let o=0,s=0;const{startRow:l,startColumn:u,endRow:c,endColumn:d}=t;l>=n&&(o=c),c<=i&&(o=l),u>=r&&(s=d),d<=a&&(s=u),this._scrollToCell(o,s)}_scrollToSelection(t=!0){const e=this._selectionManagerService.getCurrentLastSelection();if(e==null)return;const{startRow:n,startColumn:r,actualRow:i,actualColumn:a}=e.primary,o=t?i:n,s=t?a:r;this._scrollToCell(o,s)}_getViewportBounding(){var t,e;const n=(t=this._getSheetObject())==null?void 0:t.scene;if(n==null)return;const r=n.getViewport(an.VIEW_MAIN);if(r==null)return;const i=(e=this._sheetSkeletonManagerService.getCurrent())==null?void 0:e.skeleton;if(i==null)return;const a=r.getBounding();return i.getRowColumnSegment(a)}_scrollToCell(t,e){var n,r,i,a;const{rowHeightAccumulation:o,columnWidthAccumulation:s}=(r=(n=this._sheetSkeletonManagerService.getCurrent())==null?void 0:n.skeleton)!=null?r:{};if(o==null||s==null)return!1;const l=(i=this._getSheetObject())==null?void 0:i.scene;if(l==null)return!1;const u=l.getViewport(an.VIEW_MAIN);if(u==null||((a=this._sheetSkeletonManagerService.getCurrent())==null?void 0:a.skeleton)==null)return!1;const c=this._context.unit.getActiveSheet();if(!c)return!1;const{startColumn:d,startRow:h,ySplit:f,xSplit:m}=c.getFreeze(),g=this._getViewportBounding();if(g==null)return!1;const{startRow:p,startColumn:v,endRow:_,endColumn:C}=g;let S,b;if(t>=h&&e>=d-m&&(t<=p&&(S=t),t>=_)){const w=o[t]-u.height;for(let P=p;P<=t;P++)if(o[P]>=w){S=P+1;break}}if(e>=d&&t>=h-f&&(e<=v&&(b=e),e>=C)){const w=s[e]-u.width;for(let P=v;P<=e;P++)if(s[P]>=w){b=P+1;break}}if(S===void 0&&b===void 0)return!1;const{offsetX:y,offsetY:A}=this._scrollManagerService.getCurrentScrollState()||{};return this._commandService.syncExecuteCommand(gf.id,{sheetViewStartRow:S,sheetViewStartColumn:b,offsetX:b===void 0?y:0,offsetY:S===void 0?A:0})}},N(RB,"MobileSheetsScrollRenderController"),RB);KY=gen([U3(1,se(Gr)),U3(2,me),U3(3,Sr),U3(4,se(Bt)),U3(5,se(zl)),U3(6,Ce)],KY);const ven="univer-mobile-sheet-bar-container",_en="univer-mobile-sheet-bar-slider",Cen="univer-mobile-sheet-bar-item",Sen="univer-mobile-sheet-bar-item-activated",Ky={mobileSheetBarContainer:ven,mobileSheetBarSlider:_en,mobileSheetBarItem:Cen,mobileSheetBarItemActivated:Sen};function dqe(){const t=lm();return t?J.jsx(hqe,{workbook:t}):null}N(dqe,"MobileSheetBar");function hqe(t){const{workbook:e}=t,[n,r]=E.useState([]),[i,a]=E.useState(""),o=Re.useRef(new Map),s=Ne(me),l=E.useCallback(()=>{const c=e.getActiveSheet().getSheetId(),d=e.getSheets(),h=e.getActiveSheet(),f=d.filter(m=>!m.isSheetHidden()).map((m,g)=>{var p;return{sheetId:m.getSheetId(),label:m.getName(),index:g,selected:h===m,color:(p=m.getTabColor())!=null?p:void 0}});if(r(f),a(c),o.current.has(c)){const m=o.current.get(c);m&&m.scrollIntoView({behavior:"smooth",block:"nearest"})}o.current.clear()},[e]);E.useEffect(()=>l(),[l]);const u=E.useCallback(c=>{s.executeCommand(Ha.id,{unitId:e.getUnitId(),subUnitId:c})},[s,e]);return E.useEffect(()=>{const c=s.onCommandExecuted(d=>{switch(d.id){case Ul.id:case Ls.id:case Sp.id:case Dl.id:case Og.id:case Ha.id:l();break}});return()=>c.dispose()},[s,l]),J.jsx("div",{className:Ky.mobileSheetBarContainer,children:J.jsx("div",{className:Ky.mobileSheetBarSlider,children:n.map(c=>J.jsx("div",{className:hr(Ky.mobileSheetBarItem,{[Ky.mobileSheetBarItemActivated]:c.sheetId===i}),onClick:N(()=>u(c.sheetId),"onClick"),ref:N(d=>o.current.set(c.sheetId,d),"ref"),children:c.label},c.sheetId))})})}N(hqe,"MobileSheetBarImpl");const ben={[Xa.MAIN_AREA]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg}},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.COL_HEADER]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg}},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}},[Xa.ROW_HEADER]:{[ei.FORMAT]:{[ih.name]:{order:0,menuItemFactory:Hg}},[ei.LAYOUT]:{order:1},[ei.DATA]:{order:2},[ei.OTHERS]:{order:3}}};var yen=Object.defineProperty,Een=Object.getOwnPropertyDescriptor,Ren=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Een(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&¥(e,n,i),i},"__decorateClass$3"),B2=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),AB;let DA=(AB=class extends et{constructor(t,e,n,r,i,a,o){super(),this._injector=t,this._componentManager=e,this._layoutService=n,this._commandService=r,this._shortcutService=i,this._menuManagerService=a,this._uiPartsService=o,this._init()}_init(){this._initCustomComponents(),this._initCommands(),this._initMenus(),this._initShortcuts(),this._initWorkbenchParts(),this._initFocusHandler()}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(qx,Nje)),this.disposeWithMe(t.register(hre,fre)),this.disposeWithMe(t.register(bb,VC)),this.disposeWithMe(t.register(mre,Hee)),this.disposeWithMe(t.register(gre,jee)),this.disposeWithMe(t.register(pre,$ee)),this.disposeWithMe(t.register(ire,kje))}_initCommands(){[Qne,f9,Zne,Kne,mb,Lu,ql,am,$x,Fx,J_,eC,Dx,Ix,gf,wHe,Hne,rre,fne,Q_,Cc,wx,m9,g9,p9,v9,dje,hje,Px,Mx,Z_,mne,pne,vne,_ne,Vx,nre,Sb,Bx,yp,Fg,C0,Ux,Hx,h4,gne,gb,Uf,jx,ere,g7,m7,vb,pb,are,s4,W8,Hf,yje,Ox,l4,u4,Nx,kx,xx,c4,d4,Tx,p7,Cje,Lx,Jne].forEach(t=>{this.disposeWithMe(this._commandService.registerCommand(t))})}_initMenus(){this._menuManagerService.mergeMenu(ben)}_initShortcuts(){[QWe,KWe,ZWe,JWe,eze,tze,nze,rze,ize,aze,oze,sze,lze,uze,cze,dze,hze,fze,mze,gze,pze,yze,Rze,wze,Dze,Eze,Aze,vze,_ze,Cze,Sze,bze,...Pre(),jWe,HWe,$We,zWe,qWe,YWe,WWe,XWe,GWe].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_initWorkbenchParts(){this._uiPartsService.registerComponent(Ba.HEADER,()=>yl(dqe,this._injector))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(le.UNIVER_SHEET,t=>{}))}},N(AB,"SheetUIMobileController"),AB);DA=Ren([yn(Vt.Ready,DA),B2(0,se(Wn)),B2(1,se(ja)),B2(2,Os),B2(3,me),B2(4,Bu),B2(5,sl),B2(6,_c)],DA);var Aen=Object.defineProperty,wen=Object.getOwnPropertyDescriptor,Den=N((t,e,n,r)=>{for(var i=r>1?void 0:r?wen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Aen(e,n,i),i},"__decorateClass$2"),u5=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),wB;let ZY=(wB=class extends et{constructor(t,e,n,r,i,a){super(),this._context=t,this._layoutService=e,this._contextMenuService=n,this._selectionManagerService=r,this._selectionRenderService=i,this._sheetSkeletonManagerService=a,this._init()}_init(){let t=!1;this.disposeWithMe(this._selectionManagerService.selectionMoveStart$.subscribe(()=>t=!0)),this.disposeWithMe(this._selectionManagerService.selectionMoveEnd$.subscribe(e=>{if(!e||t===!1)return;t=!1;const n=e[0];if(!n.primary)return;const r=this._layoutService.getContentElement().getBoundingClientRect(),i=this._selectionRenderService.attachSelectionWithCoord(n),a=n.range.rangeType,{scene:o}=this._context,s=o.getViewport(an.VIEW_MAIN),l=(s==null?void 0:s.viewportScrollX)||0,u=(s==null?void 0:s.viewportScrollY)||0;let c=0,d=0;const h=this._sheetSkeletonManagerService.getCurrent().skeleton.rowHeaderWidth;switch(a){case it.NORMAL:c=i.rangeWithCoord.startX+r.left-l,d=i.rangeWithCoord.endY+r.top-u;break;case it.COLUMN:c=i.rangeWithCoord.startX+r.left-l,d=Math.min(r.height/2,i.rangeWithCoord.endY)+40;break;case it.ROW:c=(r.width-h)/2+20,d=i.rangeWithCoord.endY+r.top-u;break;case it.ALL:c=i.rangeWithCoord.startX+r.left,d=i.rangeWithCoord.startY+r.top;break;default:c=i.rangeWithCoord.startX+r.left-l,d=i.rangeWithCoord.endY+r.top-u;break}c=Ie.clamp(c,h,r.width),d=Ie.clamp(d,r.top,r.height),this._contextMenuService.triggerContextMenu({clientX:c,clientY:d,preventDefault:N(()=>{},"preventDefault"),stopPropagation:N(()=>{},"stopPropagation")},Xa.MAIN_AREA)}))}},N(wB,"SheetContextMenuMobileRenderController"),wB);ZY=Den([u5(1,Os),u5(2,tm),u5(3,se(Bt)),u5(4,Ds),u5(5,se(Gr))],ZY);const fqe=class extends yx{constructor(e,n,r=!0,i,a=it.NORMAL){super(e,n,i,r),fe(this,"_fillControlTopLeft"),fe(this,"_fillControlBottomRight"),this._scene=e,this._zIndex=n,this._highlightHeader=r,this._themeService=i,this._rangeType=a,this.initControlPoints()}initControlPoints(){const e=this.defaultStyle,n=e.expandCornerSize||0,r=(e.expandCornerSize||0)/4,i=e.AutofillStrokeWidth||0,a=e.stroke,o=e.AutofillStroke,s=this.zIndex;this._fillControlTopLeft=new ur(sY.fillTopLeft+s,{zIndex:s+2,width:n,height:n,radius:n/2,visualWidth:r,visualHeight:r,strokeWidth:i}),this._fillControlBottomRight=new ur(sY.fillBottomRight+s,{zIndex:s+2,width:n,height:n,radius:n/2,visualHeight:r,visualWidth:r,strokeWidth:i});const l={fill:a,stroke:o,strokeScaleEnabled:!1};this._fillControlTopLeft.setProps({...l}),this._fillControlBottomRight.setProps({...l});const u=[this._fillControlTopLeft,this._fillControlBottomRight];switch(this._rangeType){case it.ROW:this.rowHeaderGroup.addObjects(...u);break;case it.COLUMN:this.columnHeaderGroup.addObjects(...u);break;case it.NORMAL:this.selectionShapeGroup.addObjects(...u)}this.getScene().addObjects(u,oP)}get fillControlTopLeft(){return this._fillControlTopLeft}set fillControlTopLeft(e){this._fillControlTopLeft=e}get fillControlBottomRight(){return this._fillControlBottomRight}set fillControlBottomRight(e){this._fillControlBottomRight=e}get rangeType(){return this._rangeType}set rangeType(e){this._rangeType=e}dispose(){var e,n;(e=this._fillControlBottomRight)==null||e.dispose(),(n=this._fillControlTopLeft)==null||n.dispose(),super.dispose()}_setSizeAndStyleForSelectionControl(e){var n,r;super._setSizeAndStyleForSelectionControl(e);const i=this.defaultStyle;e==null&&(e=i);const{widgets:a=i.widgets,hasAutoFill:o=i.hasAutoFill}=e;if(this.currentStyle=e,o===!0&&!super._hasWidgets(a)){const{viewportScrollX:s,viewportScrollY:l}=this.getViewportMainScrollInfo(),{endX:u,endY:c}=this.selectionModel;this.transformControlPoint(s,l,u,c),this.fillControlTopLeft.show(),this.fillControlBottomRight.show()}else(n=this.fillControlTopLeft)==null||n.hide(),(r=this.fillControlBottomRight)==null||r.hide()}getViewportMainScrollInfo(){const e=this.getScene().getViewport(an.VIEW_MAIN);return{viewportScrollX:(e==null?void 0:e.viewportScrollX)||0,viewportScrollY:(e==null?void 0:e.viewportScrollY)||0,width:(e==null?void 0:e.width)||0,height:(e==null?void 0:e.height)||0}}transformControlPoint(e=0,n=0,r=0,i=0){const a=this.currentStyle,o=this.selectionModel.rangeType,s=a.expandCornerSize,{startX:l,startY:u,endX:c,endY:d}=this.selectionModel,h=this.getViewportMainScrollInfo(),f=h.width,m=h.height;switch(o){case it.NORMAL:this.fillControlTopLeft.transformByState({left:-s/2,top:-s/2}),this.fillControlBottomRight.transformByState({left:c-l-s/2,top:d-u-s/2});break;case it.ROW:{const g=Math.min(f/2+e,r),p=-s/2+g;this.fillControlTopLeft.transformByState({left:p,top:-s/2}),this.fillControlBottomRight.transformByState({left:p,top:-s/2+d-u})}break;case it.COLUMN:{const g=Math.min(+m/2+n,i),p=-s/2+g;this.fillControlTopLeft.transformByState({left:-s/2,top:p}),this.fillControlBottomRight.transformByState({left:-s/2+c-l,top:p})}break;default:console.error("unknown range type")}}};N(fqe,"MobileSelectionControl");let Ien=fqe;var Pen=Object.defineProperty,Men=Object.getOwnPropertyDescriptor,Ten=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Men(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Pen(e,n,i),i},"__decorateClass$1"),Lh=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),DB;let EP=(DB=class extends qne{constructor(t,e,n,r,i,a,o,s,l,u){super(e,n,r,a),fe(this,"_workbookSelections"),fe(this,"_renderDisposable",null),fe(this,"_expandingSelection",!1),fe(this,"_selectionControls",[]),fe(this,"expandingControlMode","bottom-right"),this._context=t,this._logService=o,this._commandService=s,this._contextService=l,this._scrollManagerService=u,this._workbookSelections=i.getWorkbookSelections(this._context.unitId),this._init()}_init(){const t=this._getSheetObject();this._initEventListeners(t),this._initSelectionChangeListener(),this._initSkeletonChangeListener(),this._initUserActionSyncListener(),this._updateControlPointWhenScrolling()}_initSkeletonChangeListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(t==null){this._logService.error("[SelectionRenderService]: should not receive null!");return}const e=this._context.unitId,{sheetId:n,skeleton:r}=t,{scene:i}=this._context,a=i.getViewport(an.VIEW_MAIN);this._changeRuntime(r,i,a),this._workbookSelections.getCurrentLastSelection()||this._commandService.syncExecuteCommand(Pr.id,{unitId:e,subUnitId:n,selections:[Ax(r)]})}))}_initSelectionChangeListener(){this.disposeWithMe(this._workbookSelections.selectionMoveEnd$.subscribe(t=>{this._reset();for(const e of t){const n=Vf(e,this._skeleton);this._addSelectionControlBySelectionData(n)}}))}_initEventListeners(t){const{spreadsheetRowHeader:e,spreadsheetColumnHeader:n,spreadsheet:r,spreadsheetLeftTopPlaceholder:i}=t,{scene:a}=this._context;this._initSpreadsheetEvent(t),this.disposeWithMe(e==null?void 0:e.onPointerUp$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;const l=this._sheetSkeletonManagerService.getCurrent().skeleton,{row:u}=p1(o.offsetX,o.offsetY,a,l);Are(this._workbookSelections.getCurrentSelections(),u)||(this.createNewSelection(o,(r.zIndex||1)+1,it.ROW,this._getActiveViewport(o)),this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()))})),this.disposeWithMe(n==null?void 0:n.onPointerUp$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;const l=this._sheetSkeletonManagerService.getCurrent().skeleton,{column:u}=p1(o.offsetX,o.offsetY,a,l);wre(this._workbookSelections.getCurrentSelections(),u)||(this.createNewSelection(o,(r.zIndex||1)+1,it.COLUMN,this._getActiveViewport(o)),this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()))})),this.disposeWithMe(i==null?void 0:i.onPointerUp$.subscribeEvent((o,s)=>{if(this._normalSelectionDisabled())return;this._reset();const l=this._sheetSkeletonManagerService.getCurrent().skeleton,u=Rx(l),c=Vf(u,l);this._addSelectionControlBySelectionData(c),this.refreshSelectionMoveStart(),s.stopPropagation(),this._selectionMoveEnd$.next(this.getSelectionDataWithStyle())}))}_initSpreadsheetEvent(t){const{spreadsheet:e}=t;let n;const r=500,i={x:0,y:0},a=N(()=>{clearTimeout(n)},"clearLongPressTimer"),o=N((u,c)=>{this.createNewSelection(u,e.zIndex+1,it.NORMAL,this._getActiveViewport(u)),c&&this._selectionMoveEnd$.next(this.getSelectionDataWithStyle())},"createNewSelection");e==null||e.onPointerMove$.subscribeEvent((u,c)=>{(Math.abs(u.offsetX-i.x)>10||Math.abs(u.offsetY-i.y)>10)&&a()});const s=e==null?void 0:e.onPointerDown$.subscribeEvent((u,c)=>{i.x=u.offsetX,i.y=u.offsetY,n=setTimeout(()=>{o(u,!0)},r),c.stopPropagation()}),l=e==null?void 0:e.onPointerUp$.subscribeEvent((u,c)=>{if(this._normalSelectionDisabled())return;clearTimeout(n);const d=10;Math.abs(u.offsetX-i.x)>d||Math.abs(u.offsetY-i.y)>d||(o(u,!1),c.stopPropagation())});this.disposeWithMe($t(s)),this.disposeWithMe($t(l))}_initUserActionSyncListener(){this.disposeWithMe(this.selectionMoveStart$.subscribe(t=>this._updateSelections(t,eh.MOVE_START))),this.disposeWithMe(this.selectionMoving$.subscribe(t=>this._updateSelections(t,eh.MOVING))),this.disposeWithMe(this._contextService.subscribeContextValue$(g0).pipe(Du(!1),Hl()).subscribe(t=>{var e;t?((e=this._renderDisposable)==null||e.dispose(),this._renderDisposable=null,this._reset()):this._renderDisposable=$t(this.selectionMoveEnd$.subscribe(n=>this._updateSelections(n,eh.MOVE_END)))}))}_updateSelections(t,e){const n=this._context.unit,r=n.getUnitId(),i=n.getActiveSheet().getSheetId();t.length!==0&&this._commandService.executeCommand(Pr.id,{unitId:r,subUnitId:i,type:e,selections:t.map(a=>kg(a))})}createNewSelection(t,e=0,n=it.NORMAL,r){this._shouldDetectMergedCells=n===it.NORMAL;const i=this._skeleton,a=this._scene;if(!a||!i)return;r&&(this._activeViewport=r);const{offsetX:o,offsetY:s}=t,l=a.getRelativeToViewportCoord(cn.FromArray([o,s]));let{x:u,y:c}=l;const d=a.getVpScrollXYInfoByPosToVp(l),{scaleX:h,scaleY:f}=a.getAncestorScale(),m=this._getCellRangeByCursorPosition(u,c,h,f,d);if(!m)return!1;const{rangeWithCoord:g,primaryWithCoord:p}=m,v={...g,rangeType:n};this._startRangeWhenPointerDown={...g,rangeType:n};let _=this.getActiveSelectionControl();for(const C of this.getSelectionControls())if(C.model.isEqual(v)){_=C;break}(_==null?void 0:_.model.rangeType)!==n&&(this._clearSelectionControls(),_=this.newSelectionControl(a,n)),this._updateSelectionControlByRange(_,v,p),this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),this._clearUpdatingListeners(),this._expandingSelection=!1,(n===it.ROW||n===it.COLUMN)&&(n===it.ROW?u=0:n===it.COLUMN&&(c=0),this._movingHandler(u,c,_,n))}newSelectionControl(t,e){const n=this.getSelectionControls(),r=new Ien(t,n.length,this._isHeaderHighlight,this._themeService,e);this._selectionControls.push(r);const{expandingModeForTopLeft:i,expandingModeForBottomRight:a}=(()=>{switch(e){case it.NORMAL:return{expandingModeForTopLeft:"top-left",expandingModeForBottomRight:"bottom-right"};case it.ROW:return{expandingModeForTopLeft:"top",expandingModeForBottomRight:"bottom"};case it.COLUMN:return{expandingModeForTopLeft:"left",expandingModeForBottomRight:"right"};case it.ALL:return{expandingModeForTopLeft:"top-left",expandingModeForBottomRight:"bottom-right"};default:return{expandingModeForTopLeft:"top-left",expandingModeForBottomRight:"bottom-right"}}})();return r.fillControlTopLeft.onPointerDown$.subscribeEvent(o=>{this._expandingSelection=!0,this.expandingControlMode=i,this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),this._fillControlPointerDownHandler(o,e,this._activeViewport)}),r.fillControlBottomRight.onPointerDown$.subscribeEvent(o=>{this._expandingSelection=!0,this.expandingControlMode=a,this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),this._fillControlPointerDownHandler(o,e,this._activeViewport)}),(e===it.ROW||e===it.COLUMN)&&t.getViewport(an.VIEW_MAIN),r}_getActiveViewport(t){const e=this._getSheetObject();return e==null?void 0:e.scene.getActiveViewportByCoord(cn.FromArray([t.offsetX,t.offsetY]))}_getSheetObject(){return Ad(this._context.unit,this._context)}_normalSelectionDisabled(){return this._contextService.getContextValue(g0)}getSelectionControls(){return this._selectionControls}_fillControlPointerDownHandler(t,e=it.NORMAL,n,r=Rs.ALL){var i,a,o;const s=this._skeleton,l=this._scene;if(!l||!s)return;n&&(this._activeViewport=n);const u=l.getViewport(an.VIEW_MAIN),c=this.getActiveSelectionControl();if(!c)return;this._changeCurrCellWhenControlPointerDown(),this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),this._clearUpdatingListeners(),this._addEndingListeners(),this._scrollTimer=df.create(this._scene,r),this._scrollTimer.startScroll((i=u==null?void 0:u.left)!=null?i:0,(a=u==null?void 0:u.top)!=null?a:0,u),(o=l.getTransformer())==null||o.clearSelectedObjects();const d=l.getRelativeToViewportCoord(cn.FromArray([t.offsetX,t.offsetY]));this._setupPointerMoveListener(u,c,e,r,d.x,d.y);const h=this._shortcutService.forceEscape();this._scenePointerUpSub=l.onPointerUp$.subscribeEvent(f=>{this.endSelection(),this._expandingSelection=!1,this.expandingControlMode="bottom-right",this._selectionMoveEnd$.next(this.getSelectionDataWithStyle()),h.dispose()})}_changeCurrCellWhenControlPointerDown(){const t=this.getActiveSelectionControl(),e=this._skeleton;let n;const{startRow:r,startColumn:i,endRow:a,endColumn:o}=t.model;switch(this.expandingControlMode){case"top-left":n=e.getCellByIndex(a,o);break;case"bottom-right":n=e.getCellByIndex(r,i);break;case"left":n=e.getCellByIndex(r,o),n.isMerged=!1,n.isMergedMainCell=!1;break;case"right":n=e.getCellByIndex(r,i),n.isMerged=!1,n.isMergedMainCell=!1;break;case"top":n=e.getCellByIndex(a,i),n.isMerged=!1,n.isMergedMainCell=!1;break;case"bottom":n=e.getCellByIndex(r,i),n.isMerged=!1,n.isMergedMainCell=!1;break;default:n=e.getCellByIndex(r,i)}return t.updateCurrCell(n),n}_movingHandler(t,e,n,r){var i,a,o,s,l,u,c,d,h,f,m,g,p;this._shouldDetectMergedCells=r===it.NORMAL;const v=this._skeleton,_=this._scene,C={startRow:n.model.startRow,endRow:n.model.endRow,startColumn:n.model.startColumn,endColumn:n.model.endColumn},S=_.getViewport(an.VIEW_MAIN),b=(i=this._getViewportByCell(C.endRow,C.endColumn))!=null?i:S,y=_.getVpScrollXYInfoByPosToVp(cn.FromArray([this._startViewportPosX,this._startViewportPosY]),b),{scaleX:A,scaleY:w}=_.getAncestorScale();r===it.ROW?t=Number.POSITIVE_INFINITY:r===it.COLUMN&&(e=Number.POSITIVE_INFINITY);const P=this._getCellRangeByCursorPosition(t,e,A,w,y);if(!P)return!1;const{rangeWithCoord:M}=P,L=n.model.currentCell,k=(a=L==null?void 0:L.mergeInfo.startRow)!=null?a:-1,O=(o=L==null?void 0:L.mergeInfo.endRow)!=null?o:-1,$=(s=L==null?void 0:L.mergeInfo.startColumn)!=null?s:-1,B=(l=L==null?void 0:L.mergeInfo.endColumn)!=null?l:-1;let V={startRow:Math.min(M.startRow,k),startColumn:Math.min(M.startColumn,$),endRow:Math.max(M.endRow,O),endColumn:Math.max(M.endColumn,B)};if(r===it.NORMAL?V=v.getSelectionMergeBounding(V.startRow,V.startColumn,V.endRow,V.endColumn):r===it.COLUMN?V={startRow:Math.min(M.startRow,(u=L==null?void 0:L.actualRow)!=null?u:-1),startColumn:Math.min(M.startColumn,(c=L==null?void 0:L.actualColumn)!=null?c:-1),endRow:Math.max(M.endRow,(d=L==null?void 0:L.actualRow)!=null?d:-1),endColumn:Math.max(M.endColumn,(h=L==null?void 0:L.actualColumn)!=null?h:-1)}:r===it.ROW&&(V={startRow:Math.min(M.startRow,(f=L==null?void 0:L.actualRow)!=null?f:-1),startColumn:Math.min(M.startColumn,(m=L==null?void 0:L.actualColumn)!=null?m:-1),endRow:Math.max(M.endRow,(g=L==null?void 0:L.actualRow)!=null?g:-1),endColumn:Math.max(M.endColumn,(p=L==null?void 0:L.actualColumn)!=null?p:-1)}),!V)return!1;const X=v.getNoMergeCellPositionByIndex(V.startRow,V.startColumn),z=v.getNoMergeCellPositionByIndex(V.endRow,V.endColumn),F={startColumn:V.startColumn,startRow:V.startRow,endColumn:V.endColumn,endRow:V.endRow,startY:(X==null?void 0:X.startY)||0,endY:(z==null?void 0:z.endY)||0,startX:(X==null?void 0:X.startX)||0,endX:(z==null?void 0:z.endX)||0};(C.startRow!==V.startRow||C.startColumn!==V.startColumn||C.endRow!==V.endRow||C.endColumn!==V.endColumn)&&n&&(this._updateSelectionControlByRange(n,F),this._selectionMoving$.next(this.getSelectionDataWithStyle()))}_updateControlPointWhenScrolling(){const{scene:t}=this._context;if(!t.getViewport(an.VIEW_MAIN))return;const e=this._scrollManagerService.validViewportScrollInfo$.subscribe(n=>{var r;if(n==null)return;const{viewportScrollX:i,viewportScrollY:a}=n,o=this.getActiveSelectionControl();if(o==null)return;const s=(r=this._sheetSkeletonManagerService.getCurrent())==null?void 0:r.skeleton,l=s==null?void 0:s.rowTotalHeight,u=s==null?void 0:s.columnTotalWidth,c=o.rangeType;c===it.COLUMN?o.transformControlPoint(0,a,u,l):c===it.ROW&&o.transformControlPoint(i,0,u,l)});this.disposeWithMe($t(e))}},N(DB,"MobileSheetsSelectionRenderService"),DB);EP=Ten([Lh(1,se(Wn)),Lh(2,se(Ja)),Lh(3,Bu),Lh(4,se(Bt)),Lh(5,se(Gr)),Lh(6,Ra),Lh(7,me),Lh(8,ui),Lh(9,se(zl))],EP);var mqe=Object.defineProperty,Len=Object.getOwnPropertyDescriptor,xen=N((t,e,n)=>e in t?mqe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),Oen=N((t,e,n,r)=>{for(var i=r>1?void 0:r?Len(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&mqe(e,n,i),i},"__decorateClass"),IB=N((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),gqe=N((t,e,n)=>xen(t,typeof e!="symbol"?e+"":e,n),"__publicField"),PB;let RP=(PB=class extends Cs{constructor(t=xze,e,n,r){super(),this._config=t,this._injector=e,this._renderManagerService=n,this._univerInstanceService=r}onStarting(){[[h7],[Eh,{useClass:fP}],[u3,{useClass:bje}],[sm,{useClass:dP}],[om,{useClass:$8}],[lqe],[Ds,{useClass:EP}],[Yx,{useClass:Kje}],[l3,{useClass:cP}],[q0],[iC],[_7],[Ap],[Fne],[K8],[Ug],[J8],[Vg],[DA],[m4],[Ks],[_9],[SP],[iv],[$g],[nv],[sC]].forEach(t=>this._injector.add(t))}onReady(){this._markSheetAsFocused(),this._registerRenderBasics()}onRendered(){this._registerRenderModules()}_registerRenderBasics(){[[Gr],[yP],[Ds,{useClass:EP}],[zl]].forEach(t=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,t))})}_registerRenderModules(){[[oC],[aC],[KY],[K_],[bP],[Z8],[ev],[vP],[pP],[gP],[tv],[z8],[ZY],[rv],[av],[CP]].forEach(t=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,t))})}_markSheetAsFocused(){const t=this._univerInstanceService;this.disposeWithMe(t.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(mo(e=>!!e)).subscribe(e=>{t.focusUnit(e.getUnitId())}))}},N(PB,"UniverSheetsMobileUIPlugin"),PB);gqe(RP,"pluginName","SHEET_UI_PLUGIN");gqe(RP,"type",le.UNIVER_SHEET);RP=Oen([yd(Ff,TI),IB(1,se(Wn)),IB(2,Sr),IB(3,Ce)],RP);var pqe=Object.defineProperty,Nen=(t,e,n)=>e in t?pqe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Je=(t,e)=>pqe(t,"name",{value:e,configurable:!0}),xr=(t,e,n)=>Nen(t,typeof e!="symbol"?e+"":e,n);const Ore="SHEET_FORMULA_UI_PLUGIN";var ken=Object.defineProperty,Fen=Object.getOwnPropertyDescriptor,Ven=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Fen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ken(e,n,i),i},"__decorateClass$j"),Zy=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$j"),MB;let ov=(MB=class extends et{constructor(t,e,n,r){super(),this._activeDirtyManagerService=t,this._univerInstanceService=e,this._formulaDataModel=n,this._definedNamesService=r,this._initialize()}_initialize(){this._initialConversion()}_initialConversion(){this._activeDirtyManagerService.register(Mn.id,{commandId:Mn.id,getDirtyData:Je(t=>{const e=t.params;return e.trigger===rs.id?{}:{dirtyRanges:this._getSetRangeValuesMutationDirtyRange(e)}},"getDirtyData")}),this._initialMove(),this._initialRowAndColumn(),this._initialSheet(),this._initialDefinedName()}_initialMove(){this._activeDirtyManagerService.register($l.id,{commandId:$l.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getMoveRangeMutationDirtyRange(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(m1.id,{commandId:m1.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getMoveRowsMutationDirtyRange(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(g1.id,{commandId:g1.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getMoveRowsMutationDirtyRange(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(u7.id,{commandId:u7.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getReorderRangeMutationDirtyRange(e)}},"getDirtyData")})}_initialRowAndColumn(){this._activeDirtyManagerService.register(Tu.id,{commandId:Tu.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getRemoveRowOrColumnMutation(e,!0)}},"getDirtyData")}),this._activeDirtyManagerService.register(Wl.id,{commandId:Wl.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyRanges:this._getRemoveRowOrColumnMutation(e,!1)}},"getDirtyData")})}_initialSheet(){this._activeDirtyManagerService.register(Ls.id,{commandId:Ls.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyNameMap:this._getRemoveSheetMutation(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(Dl.id,{commandId:Dl.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyNameMap:this._getInsertSheetMutation(e)}},"getDirtyData")})}_initialDefinedName(){this._activeDirtyManagerService.register(ld.id,{commandId:ld.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyDefinedNameMap:this._getDefinedNameMutation(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(O0.id,{commandId:O0.id,getDirtyData:Je(t=>{const e=t.params;return{dirtyDefinedNameMap:this._getDefinedNameMutation(e)}},"getDirtyData")}),this._activeDirtyManagerService.register(Y_.id,{commandId:Y_.id,getDirtyData:Je(t=>{const e=t.params,{oldDefinedName:n,newDefinedName:r}=e;return{dirtyDefinedNameMap:this._getDefinedNameMutation({...r,name:n.name})}},"getDirtyData")})}_getDefinedNameMutation(t){const{unitId:e,name:n,formulaOrRefString:r}=t,i={};return t==null?{}:(i[e]={},i[e][n]=r,i)}_getSetRangeValuesMutationDirtyRange(t){const{subUnitId:e,unitId:n,cellValue:r}=t,i=[];return r==null||(i.push(...this._getDirtyRangesByCellValue(n,e,r)),i.push(...this._getDirtyRangesForArrayFormula(n,e,r))),i}_getMoveRangeMutationDirtyRange(t){const{unitId:e,from:n,to:r}=t,i=[];return i.push(...this._getDirtyRangesByCellValue(e,n.subUnitId,n.value)),i.push(...this._getDirtyRangesByCellValue(e,r.subUnitId,r.value)),i.push(...this._getDirtyRangesForArrayFormula(e,r.subUnitId,r.value)),i}_getMoveRowsMutationDirtyRange(t){const{subUnitId:e,unitId:n,sourceRange:r,targetRange:i}=t,a=[],o=this._rangeToMatrix(r).getData(),s=this._rangeToMatrix(i).getData();return a.push(...this._getDirtyRangesByCellValue(n,e,o)),a.push(...this._getDirtyRangesByCellValue(n,e,s)),a.push(...this._getDirtyRangesForArrayFormula(n,e,s)),a}_getReorderRangeMutationDirtyRange(t){const{unitId:e,subUnitId:n,range:r}=t,i=this._rangeToMatrix(r).getData(),a=[];return a.push(...this._getDirtyRangesByCellValue(e,n,i)),a.push(...this._getDirtyRangesForArrayFormula(e,n,i)),a}_getDeleteRangeMutationDirtyRange(t){const{subUnitId:e,unitId:n,range:r,shiftDimension:i}=t,a=[],o=this._univerInstanceService.getUniverSheetInstance(n),s=o==null?void 0:o.getSheetBySheetId(e),l=(s==null?void 0:s.getLastRowWithContent())||0,u=(s==null?void 0:s.getLastColumnWithContent())||0,c=new Ct;let d=null;const{startRow:h,startColumn:f,endRow:m,endColumn:g}=r;i===ts.ROWS?d=this._rangeToMatrix({startRow:h,startColumn:f,endRow:l,endColumn:g}):i===ts.COLUMNS&&(d=this._rangeToMatrix({startRow:h,startColumn:f,endRow:m,endColumn:u})),d!=null&&c.merge(d);const p=c.getData();return a.push(...this._getDirtyRangesByCellValue(n,e,p)),a.push(...this._getDirtyRangesForArrayFormula(n,e,p)),a}_getRemoveRowOrColumnMutation(t,e=!0){const{subUnitId:n,unitId:r,range:i}=t,a=[],o=this._univerInstanceService.getUniverSheetInstance(r),s=o==null?void 0:o.getSheetBySheetId(n),l=(s==null?void 0:s.getRowCount())||0,u=(s==null?void 0:s.getColumnCount())||0,c=new Ct;let d=null;const{startRow:h,endRow:f,startColumn:m,endColumn:g}=i;e===!0?d=this._rangeToMatrix({startRow:h,startColumn:0,endRow:f,endColumn:u-1}):d=this._rangeToMatrix({startRow:0,startColumn:m,endRow:l,endColumn:g}),d!=null&&c.merge(d);const p=c.getData();return a.push(...this._getDirtyRangesByCellValue(r,n,p)),a.push(...this._getDirtyRangesForArrayFormula(r,n,p)),a}_getRemoveSheetMutation(t){const e={},{subUnitId:n,unitId:r,subUnitName:i}=t;return e[r]==null&&(e[r]={}),e[r][n]=i,e}_getInsertSheetMutation(t){const e={},{sheet:n,unitId:r}=t;return e[r]==null&&(e[r]={}),e[r][n.id]=n.name,e}_rangeToMatrix(t){const e=new Ct,{startRow:n,startColumn:r,endRow:i,endColumn:a}=t;for(let o=n;o<=i;o++)for(let s=r;s<=a;s++)e.setValue(o,s,{});return e}_getDirtyRangesByCellValue(t,e,n){const r=[];return n==null||new Ct(n).getDiscreteRanges().forEach(i=>{r.push({unitId:t,sheetId:e,range:i})}),r}_getDirtyRangesForArrayFormula(t,e,n){var r,i;const a=[];if(n==null)return a;const o=new Ct(n),s=this._formulaDataModel.getArrayFormulaRange();if((r=s==null?void 0:s[t])!=null&&r[e]){const l=new Ct((i=s==null?void 0:s[t])==null?void 0:i[e]);o.forValue((u,c)=>{l.forValue((d,h,f)=>{if(f==null)return!0;const{startRow:m,startColumn:g,endRow:p,endColumn:v}=f;u>=m&&u<=p&&c>=g&&c<=v&&a.push({unitId:t,sheetId:e,range:{startRow:m,startColumn:g,endRow:m,endColumn:g}})})})}return a}},Je(MB,"ActiveDirtyController"),MB);ov=Ven([yn(Vt.Ready,ov),Zy(0,uL),Zy(1,Ce),Zy(2,se(_d)),Zy(3,Dc)],ov);var Ben=Object.defineProperty,Uen=Object.getOwnPropertyDescriptor,Hen=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Uen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ben(e,n,i),i},"__decorateClass$i"),Jy=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i"),TB;let sv=(TB=class extends et{constructor(t,e,n,r){super(),this._commandService=t,this._sheetInterceptorService=e,this._formulaDataModel=n,this._themeService=r,this._initialize()}_initialize(){this._commandExecutedListener(),this._initInterceptorCellContent()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id!==fp.id)return;const e=t.params;if(e==null)return;const{arrayFormulaRange:n,arrayFormulaCellData:r}=e;this._formulaDataModel.setArrayFormulaRange(n),this._formulaDataModel.setArrayFormulaCellData(r)}))}_initInterceptorCellContent(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:100,handler:Je((t,e,n)=>{var r,i,a;const{unitId:o,subUnitId:s,row:l,col:u}=e,c=this._formulaDataModel.getArrayFormulaCellData(),d=(a=(i=(r=c==null?void 0:c[o])==null?void 0:r[s])==null?void 0:i[l])==null?void 0:a[u];return d==null?n(t):d.v==null&&d.t==null?n({...t,v:0,t:rr.NUMBER}):(t==null?void 0:t.t)===rr.NUMBER&&typeof(t==null?void 0:t.v)=="number"?n({...t,v:JT(t.v)}):n({...t,v:d.v,t:d.t})},"handler")}))}},Je(TB,"ArrayFormulaDisplayController"),TB);sv=Hen([yn(Vt.Ready,sv),Jy(0,me),Jy(1,se(Tr)),Jy(2,se(_d)),Jy(3,se(Ja))],sv);var jen=Object.defineProperty,$en=Object.getOwnPropertyDescriptor,Wen=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?$en(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&jen(e,n,i),i},"__decorateClass$h"),Iue=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h"),LB;let IA=(LB=class extends et{constructor(t,e){super(),this._autoFillService=t,this._lexerTreeBuilder=e,this._initialize()}_initialize(){this._registerAutoFill()}_registerAutoFill(){const t={type:Oo.FORMULA,priority:1001,match:Je(e=>Ar(e==null?void 0:e.f)||Rl(e==null?void 0:e.si),"match"),isContinue:Je((e,n)=>e.type===Oo.FORMULA,"isContinue"),applyFunctions:{[Mi.COPY]:(e,n,r,i)=>{const{data:a,index:o}=e;return this._fillCopyFormula(a,n,r,o,i)}}};this._autoFillService.registerRule(t)}_fillCopyFormula(t,e,n,r,i){var a,o;const s=_qe(i),l=[],u=new Map;for(let c=1;c<=e;c++){const d=(c-1)%t.length,h=Ie.deepClone(t[d]);if(h){const f=((a=t[d])==null?void 0:a.f)||"",m=((o=t[d])==null?void 0:o.si)||"",g=Ar(f);if(Rl(m))h.si=m,h.f=null,h.v=null,h.p=null,h.t=null,n===ut.DOWN||n===ut.RIGHT?l.push(h):l.unshift(h);else if(g){let p=u.get(d);if(p)h.si=p,h.f=null,h.v=null,h.p=null,h.t=null;else{p=Ie.generateRandomId(6),u.set(d,p);const{offsetX:v,offsetY:_}=vqe(s,n),C=this._lexerTreeBuilder.moveFormulaRefOffset(f,v,_);h.si=p,h.f=C,h.v=null,h.p=null,h.t=null}n===ut.DOWN||n===ut.RIGHT?l.push(h):l.unshift(h)}}}return l}},Je(LB,"FormulaAutoFillController"),LB);IA=Wen([yn(Vt.Ready,IA),Iue(0,om),Iue(1,se(Kl))],IA);function vqe(t,e){let n=0,r=0;switch(e){case ut.UP:r=-t;break;case ut.RIGHT:n=t;break;case ut.DOWN:r=t;break;case ut.LEFT:n=-t;break}return{offsetX:n,offsetY:r}}Je(vqe,"directionToOffset");function _qe(t){let e=0;for(const n in t)t[n].forEach(r=>{e+=r.data.length});return e}Je(_qe,"getDataLength");var zen=Object.defineProperty,qen=Object.getOwnPropertyDescriptor,Yen=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?qen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zen(e,n,i),i},"__decorateClass$g"),c5=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g");const Xen="default-paste-formula";var xB;let lv=(xB=class extends et{constructor(t,e,n,r,i){super(),this._currentUniverSheet=t,this._lexerTreeBuilder=e,this._sheetClipboardService=n,this._injector=r,this._formulaDataModel=i,this._initialize()}_initialize(){this._registerClipboardHook()}_registerClipboardHook(){this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._pasteFormulaHook())),this.disposeWithMe(this._sheetClipboardService.addClipboardHook(this._pasteWithFormulaHook()))}_pasteFormulaHook(){return{id:ka.SPECIAL_PASTE_FORMULA,priority:10,specialPasteInfo:{label:"specialPaste.formula"},onPasteCells:Je((t,e,n,r)=>this._onPasteCells(t,e,n,r,!0),"onPasteCells")}}_pasteWithFormulaHook(){return{id:Xen,priority:10,onPasteCells:Je((t,e,n,r)=>this._onPasteCells(t,e,n,r,!1),"onPasteCells")}}_onPasteCells(t,e,n,r,i){var a;if([ka.SPECIAL_PASTE_FORMAT,ka.SPECIAL_PASTE_COL_WIDTH].includes(r.pasteType))return{undos:[],redos:[]};const o=this._currentUniverSheet.getCurrentUnitForType(le.UNIVER_SHEET),s=e.unitId||o.getUnitId(),l=e.subUnitId||((a=o.getActiveSheet())==null?void 0:a.getSheetId());if(!s||!l)return{undos:[],redos:[]};const u=e.range,c=n,d={copyType:r.copyType||$d.COPY,copyRange:t==null?void 0:t.range,pasteType:r.pasteType};return this._injector.invoke(h=>Cqe(s,l,u,c,h,d,this._lexerTreeBuilder,this._formulaDataModel,i,t))}},Je(xB,"FormulaClipboardController"),xB);lv=Yen([yn(Vt.Ready,lv),c5(0,Ce),c5(1,se(Kl)),c5(2,Eh),c5(3,se(Wn)),c5(4,se(_d))],lv);function Cqe(t,e,n,r,i,a,o,s,l=!1,u){const c=[],d=[],h=Sqe(t,e,n,r,a,o,s,u),f={unitId:t,subUnitId:e,cellValue:h.getData()};c.push({id:Mn.id,params:f});const m=No(i,f);return d.push({id:Mn.id,params:m}),{undos:d,redos:c}}Je(Cqe,"getSetCellFormulaMutations");function Sqe(t,e,n,r,i,a,o,s){return s?i.pasteType===ka.SPECIAL_PASTE_VALUE?yqe(t,e,n,r,o,s):i.pasteType===ka.SPECIAL_PASTE_FORMULA?Eqe(t,e,n,r,a,o,s):Rqe(t,e,n,r,a,o,s):bqe(t,e,n,r,o)}Je(Sqe,"getValueMatrix");function bqe(t,e,n,r,i){var a,o;const s=new Ct,l=(o=(a=i.getFormulaData())==null?void 0:a[t])==null?void 0:o[e];return r.forValue((u,c,d)=>{var h;const f=n.rows[u],m=n.cols[c],g={};Ar(d.v)?(g.v=null,g.f=`${d.v}`,g.si=null,g.p=null,s.setValue(f,m,g)):(h=l==null?void 0:l[f])!=null&&h[m]&&(g.v=d.v,g.f=null,g.si=null,g.p=null,s.setValue(f,m,g))}),s}Je(bqe,"getValueMatrixOfPasteFromIsNull");function yqe(t,e,n,r,i,a){var o,s,l,u;const c=new Ct,d=(s=(o=i.getArrayFormulaCellData())==null?void 0:o[a.unitId])==null?void 0:s[a.subUnitId],h=(u=(l=i.getFormulaData())==null?void 0:l[t])==null?void 0:u[e];return r.forValue((f,m,g)=>{var p,v;const _=a.range.rows[f%a.range.rows.length],C=a.range.cols[m%a.range.cols.length],S=n.rows[f],b=n.cols[m],y={};if(Ar(g.f)||Rl(g.si))y.v=g.v,y.f=null,y.si=null,y.p=null,c.setValue(S,b,y);else if((p=d==null?void 0:d[_])!=null&&p[C]){const A=d[_][C];y.v=A.v,y.f=null,y.si=null,y.p=null,c.setValue(S,b,y)}else if((v=h==null?void 0:h[S])!=null&&v[b]){if(y.v=g.v,y.f=null,y.si=null,y.p=null,g.p){const A=Nre(g);A&&(y.v=A)}c.setValue(S,b,y)}}),c}Je(yqe,"getSpecialPasteValueValueMatrix");function Eqe(t,e,n,r,i,a,o){const s=new Ct,l=new Map;return r.forValue((u,c,d)=>{const h=n.rows[u],f=n.cols[c],m={};if(Rl(d.si)){if(o.unitId!==t||o.subUnitId!==e){const g=a.getFormulaStringByCell(o.range.rows[u%o.range.rows.length],o.range.cols[c%o.range.cols.length],o.subUnitId,o.unitId),p=n.cols[c]-o.range.cols[c%o.range.cols.length],v=n.rows[u]-o.range.rows[u%o.range.rows.length],_=i.moveFormulaRefOffset(g||"",p,v);m.si=null,m.f=_}else m.si=d.si,m.f=null;m.v=null,m.p=null,s.setValue(h,f,m)}else if(Ar(d.f)){const g=`${u%o.range.rows.length}_${c%o.range.cols.length}`;let p=l.get(g);if(p)m.si=p,m.f=null;else{p=Ie.generateRandomId(6),l.set(g,p);const v=n.cols[c]-o.range.cols[c%o.range.cols.length],_=n.rows[u]-o.range.rows[u%o.range.rows.length],C=i.moveFormulaRefOffset(d.f||"",v,_);m.si=p,m.f=C}m.v=null,m.p=null,s.setValue(h,f,m)}else{if(m.v=d.v,m.f=null,m.si=null,m.p=null,d.p){const g=Nre(d);g&&(m.v=g)}s.setValue(h,f,m)}}),s}Je(Eqe,"getSpecialPasteFormulaValueMatrix");function Rqe(t,e,n,r,i,a,o){var s,l;const u=new Ct,c=new Map,d=(l=(s=a.getFormulaData())==null?void 0:s[t])==null?void 0:l[e];return r.forValue((h,f,m)=>{var g;const p=n.rows[h],v=n.cols[f],_={};if(Rl(m.si)){if(o.unitId!==t||o.subUnitId!==e){const C=a.getFormulaStringByCell(o.range.rows[h%o.range.rows.length],o.range.cols[f%o.range.cols.length],o.subUnitId,o.unitId),S=n.cols[f]-o.range.cols[f%o.range.cols.length],b=n.rows[h]-o.range.rows[h%o.range.rows.length],y=i.moveFormulaRefOffset(C||"",S,b);_.si=null,_.f=y}else _.si=m.si,_.f=null;_.v=null,_.p=null,u.setValue(p,v,_)}else if(Ar(m.f)){const C=`${h%o.range.rows.length}_${f%o.range.cols.length}`;let S=c.get(C);if(S)_.si=S,_.f=null;else{S=Ie.generateRandomId(6),c.set(C,S);const b=n.cols[f]-o.range.cols[f%o.range.cols.length],y=n.rows[h]-o.range.rows[h%o.range.rows.length],A=i.moveFormulaRefOffset(m.f||"",b,y);_.si=S,_.f=A}_.v=null,_.p=null,u.setValue(p,v,_)}else(g=d==null?void 0:d[p])!=null&&g[v]&&(_.v=m.v,_.f=null,_.si=null,_.p=m.p,u.setValue(p,v,_))}),u}Je(Rqe,"getDefaultPasteValueMatrix");function Nre(t){if(t!=null&&t.p){const e=t==null?void 0:t.p.body;if(e==null)return;const n=e.dataStream;return n.substring(n.length-2,n.length)===Sd?n.substring(0,n.length-2):n}}Je(Nre,"getCellRichText");var Gen=Object.defineProperty,Qen=Object.getOwnPropertyDescriptor,Ken=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Qen(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Gen(e,n,i),i},"__decorateClass$f"),U2=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f");const Zen=[hc.id,Xs.id,Tf.id,Lf.id,Of.id,xf.id];var OB;let AP=(OB=class extends et{constructor(t,e,n,r,i,a,o,s){super(),xr(this,"_previousShape"),xr(this,"_skeleton"),this._context=t,this._editorBridgeService=e,this._formulaDataModel=n,this._themeService=r,this._renderManagerService=i,this._sheetSkeletonManagerService=a,this._commandService=o,this._logService=s,this._initSkeletonChangeListener(),this._initInterceptorEditorStart(),this._commandExecutedListener()}_initSkeletonChangeListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{var e,n;if(t==null)this._logService.debug("[FormulaEditorShowController]: should not receive currentSkeleton$ as null!");else{const{skeleton:r}=t,i=(n=(e=this._skeleton)==null?void 0:e.worksheet)==null?void 0:n.getSheetId();this._changeRuntime(r),i!==r.worksheet.getSheetId()&&this._removeArrayFormulaRangeShape()}}))}_changeRuntime(t){this._skeleton=t}_initInterceptorEditorStart(){this.disposeWithMe($t(this._editorBridgeService.interceptor.intercept(this._editorBridgeService.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,{handler:Je((t,e,n)=>{var r,i,a,o;const{row:s,col:l,unitId:u,subUnitId:c,worksheet:d}=e,h=this._formulaDataModel.getArrayFormulaRange(),f=this._formulaDataModel.getArrayFormulaCellData();if(this._removeArrayFormulaRangeShape(),t==null)return n(t);let m=null;const g=this._formulaDataModel.getFormulaStringByCell(s,l,c,u);if(g!==null&&(m={f:g}),t.v!=null&&t.v!==""&&((a=(i=(r=f[u])==null?void 0:r[c])==null?void 0:i[s])==null?void 0:a[l])==null)return m?{...t,...m}:n(t);const p=(o=h==null?void 0:h[u])==null?void 0:o[c];return p!=null&&(m=this._displayArrayFormulaRangeShape(p,s,l,u,c,d,m)),m?{...t,...m}:n(t)},"handler")})))}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{(t.id===FS.id||t.id===fp.id&&e&&e.remove)&&this._removeArrayFormulaRangeShape()})),this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{Nf.id===t.id&&requestIdleCallback(()=>{const e=t.params,{unitId:n,subUnitId:r,rowsAutoHeightInfo:i}=e;this._refreshArrayFormulaRangeShapeByRow(n,r,i)}),Zen.includes(t.id)&&requestIdleCallback(()=>{const e=t.params,{unitId:n,subUnitId:r,ranges:i}=e;this._refreshArrayFormulaRangeShapeByRanges(n,r,i)})}))}_displayArrayFormulaRangeShape(t,e,n,r,i,a,o){return new Ct(t).forValue((s,l,u)=>{if(u==null)return!0;const{startRow:c,startColumn:d,endRow:h,endColumn:f}=u;if(s===e&&l===n)return this._createArrayFormulaRangeShape(u,r),!1;if(e>=c&&e<=h&&n>=d&&n<=f){const m=a.getCell(c,d);if((m==null?void 0:m.v)===D.SPILL)return;const g=this._formulaDataModel.getFormulaDataItem(s,l,i,r);return g==null||g.f==null?!0:(o==null&&(o={f:g.f,isInArrayFormulaRange:!0}),this._createArrayFormulaRangeShape(u,r),!1)}}),o}_createArrayFormulaRangeShape(t,e){const n=this._themeService.getCurrentTheme(),r=new Zs(n.colorWhite).setAlpha(0).toString(),i={strokeWidth:1,stroke:n.hyacinth700,fill:r,widgets:{},hasAutoFill:!1,hasRowHeader:!1,hasColumnHeader:!1},a=this._renderManagerService.getRenderById(e);if(!a)return;const{scene:o}=a,{rangeWithCoord:s,primaryWithCoord:l}=a.with(Ds).attachSelectionWithCoord({range:t,primary:null,style:i}),u=this._sheetSkeletonManagerService.getCurrentSkeleton();if(!o||!u)return;const{rowHeaderWidth:c,columnHeaderHeight:d}=u,h=new yx(o,zne.FORMULA_EDITOR_SHOW,this._themeService,!1);h.update(s,c,d,i,l),h.setEvent(!1),this._previousShape=h}_removeArrayFormulaRangeShape(){this._previousShape!=null&&(this._previousShape.dispose(),this._previousShape=null)}_refreshArrayFormulaRangeShape(t,e){if(this._previousShape){const{startRow:n,endRow:r,startColumn:i,endColumn:a}=this._previousShape.getRange(),o={startRow:n,endRow:r,startColumn:i,endColumn:a};this._removeArrayFormulaRangeShape(),this._createArrayFormulaRangeShape(o,t)}}_checkCurrentSheet(t,e){const n=this._sheetSkeletonManagerService.getCurrentSkeleton();if(!n)return!1;const r=n.worksheet;return r?r.unitId===t&&r.getSheetId()===e:!1}_refreshArrayFormulaRangeShapeByRanges(t,e,n){if(!this._checkCurrentSheet(t,e)||!this._previousShape)return;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this._previousShape.getRange();for(let s=0;s<n.length;s++){const l=n[s],{startRow:u,endRow:c,startColumn:d,endColumn:h}=l;if(ft.intersects({startRow:u,endRow:c,startColumn:d,endColumn:h},{startRow:r,endRow:i,startColumn:a,endColumn:o})||r>=c||d>=h){const f={startRow:r,endRow:i,startColumn:a,endColumn:o};this._refreshArrayFormulaRangeShape(t,f);break}}}_refreshArrayFormulaRangeShapeByRow(t,e,n){if(!this._checkCurrentSheet(t,e)||!this._previousShape)return;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this._previousShape.getRange();for(let s=0;s<n.length;s++){const{row:l}=n[s];if(r>=l){const u={startRow:r,endRow:i,startColumn:a,endColumn:o};this._refreshArrayFormulaRangeShape(t,u);break}}}},Je(OB,"FormulaEditorShowController"),OB);AP=Ken([U2(1,se(Zl)),U2(2,se(_d)),U2(3,se(Ja)),U2(4,Sr),U2(5,se(Gr)),U2(6,me),U2(7,Ra)],AP);const kre={id:"sheet.command.paste-formula",type:Se.COMMAND,handler:Je(async t=>t.get(me).executeCommand(ud.id,{value:ka.SPECIAL_PASTE_FORMULA}),"handler")},Aqe={id:"formula-ui.command.insert-function",type:Se.COMMAND,handler:Je(async(t,e)=>{const{list:n}=e,r=t.get(me),i=new Ct;n.forEach(o=>{const{range:s,primary:l,formula:u}=o,{row:c,column:d}=l,h=Ie.generateRandomId(6);i.setValue(c,d,{f:u,si:h});const{startRow:f,startColumn:m,endRow:g,endColumn:p}=s;for(let v=f;v<=g;v++)for(let _=m;_<=p;_++)(v!==c||_!==d)&&i.setValue(v,_,{si:h})});const a={value:i.getData()};return r.executeCommand(Uu.id,a)},"handler")},c3={id:"formula-ui.operation.select-editor-formula",type:Se.OPERATION,handler:Je((t,e)=>!0,"handler")};var Jen=Object.defineProperty,etn=Object.getOwnPropertyDescriptor,ttn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?etn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Jen(e,n,i),i},"__decorateClass$e"),ntn=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e");const rtn="FORMULA_PROMPT_ACTIVATED",d3=er("formula-ui.prompt-service");var NB;let wP=(NB=class{constructor(t){xr(this,"_search$",new Zt),xr(this,"_help$",new Zt),xr(this,"_navigate$",new Zt),xr(this,"_accept$",new Zt),xr(this,"_acceptFormulaName$",new Zt),xr(this,"search$",this._search$.asObservable()),xr(this,"help$",this._help$.asObservable()),xr(this,"navigate$",this._navigate$.asObservable()),xr(this,"accept$",this._accept$.asObservable()),xr(this,"acceptFormulaName$",this._acceptFormulaName$.asObservable()),xr(this,"_searching",!1),xr(this,"_helping",!1),xr(this,"_sequenceNodes",[]),xr(this,"_isLockedOnSelectionChangeRefString",!1),xr(this,"_isLockedOnSelectionInsertRefString",!1),this._contextService=t}dispose(){this._search$.complete(),this._help$.complete(),this._navigate$.complete(),this._accept$.complete(),this._acceptFormulaName$.complete(),this._sequenceNodes=[]}search(t){this._contextService.setContextValue(rtn,t.visible),this._searching=t.visible,this._search$.next(t)}isSearching(){return this._searching}help(t){this._helping=t.visible,this._help$.next(t)}isHelping(){return this._helping}navigate(t){this._navigate$.next(t)}accept(t){this._accept$.next(t)}acceptFormulaName(t){this._acceptFormulaName$.next(t)}getSequenceNodes(){return[...this._sequenceNodes]}setSequenceNodes(t){this._sequenceNodes=t}clearSequenceNodes(){this._sequenceNodes=[]}getCurrentSequenceNode(t){return this._sequenceNodes[this.getCurrentSequenceNodeIndex(t)]}getCurrentSequenceNodeByIndex(t){return this._sequenceNodes[t]}getCurrentSequenceNodeIndex(t){let e=0;const n=this._sequenceNodes[0];for(let r=0,i=this._sequenceNodes.length;r<i;r++){const a=this._sequenceNodes[r];if(typeof a=="string")e++;else{const{endIndex:o}=a;e=o}if(t<=e)return typeof n=="string"&&t!==0?r+1:r}return this._sequenceNodes.length}updateSequenceRef(t,e){const n=this._sequenceNodes[t];if(typeof n=="string"||n.nodeType!==ya.REFERENCE)return;const r=e.length-n.token.length,i={...n};i.token=e,i.endIndex+=r,this._sequenceNodes[t]=i;for(let a=t+1,o=this._sequenceNodes.length;a<o;a++){const s=this._sequenceNodes[a];if(typeof s=="string")continue;const l={...s};l.startIndex+=r,l.endIndex+=r,this._sequenceNodes[a]=l}}insertSequenceRef(t,e){const n=e.length,r=this.getCurrentSequenceNodeIndex(t);this._sequenceNodes.splice(r,0,{token:e,startIndex:t,endIndex:t+n-1,nodeType:ya.REFERENCE});for(let i=r+1,a=this._sequenceNodes.length;i<a;i++){const o=this._sequenceNodes[i];if(typeof o=="string")continue;const s={...o};s.startIndex+=n,s.endIndex+=n,this._sequenceNodes[i]=s}}insertSequenceString(t,e){const n=this.getCurrentSequenceNodeIndex(t),r=e.split("");this._sequenceNodes.splice(n,0,...r);const i=r.length;for(let a=n+i,o=this._sequenceNodes.length;a<o;a++){const s=this._sequenceNodes[a];if(typeof s=="string")continue;const l={...s};l.startIndex+=i,l.endIndex+=i,this._sequenceNodes[a]=l}}enableLockedSelectionChange(){this._isLockedOnSelectionChangeRefString=!0}disableLockedSelectionChange(){this._isLockedOnSelectionChangeRefString=!1}isLockedSelectionChange(){return this._isLockedOnSelectionChangeRefString}enableLockedSelectionInsert(){this._isLockedOnSelectionInsertRefString=!0}disableLockedSelectionInsert(){this._isLockedOnSelectionInsertRefString=!1}isLockedSelectionInsert(){return this._isLockedOnSelectionInsertRefString}},Je(NB,"FormulaPromptService"),NB);wP=ttn([ntn(0,ui)],wP);const JY={id:"formula-ui.operation.help-function",type:Se.OPERATION,handler:Je(async(t,e)=>(t.get(d3).help(e),!0),"handler")},Fre={id:"formula-ui.operation.insert-function",type:Se.OPERATION,handler:Je(async(t,e)=>{var n,r;const i=t.get(Bt),a=t.get(Fo),o=i.getCurrentSelections();if(!o||!o.length)return!1;const s=Dn(t.get(Ce));if(!s)return!1;const{worksheet:l,unitId:u,subUnitId:c}=s,d=l.getCellMatrix(),{value:h}=e,f=t.get(me),m=[];let g=null,p=0,v=0,_="";if(o.length===1&&(Iqe(o[0].range)||Pqe(o[0].range))){const{range:C,primary:S}=o[0],b=(n=S==null?void 0:S.actualRow)!=null?n:C.startRow,y=(r=S==null?void 0:S.actualColumn)!=null?r:C.startColumn;g=C,p=b,v=y;const A=eX(d,b,y);A&&(_=Jo(A))}else o.some(C=>{var S,b;const{range:y,primary:A}=C,w=(S=A==null?void 0:A.actualRow)!=null?S:y.startRow,P=(b=A==null?void 0:A.actualColumn)!=null?b:y.startColumn,M=eX(d,w,P);if(!M)return g=y,p=w,v=P,!0;const L=Jo(M),k=`=${h}(${L})`;return m.push({range:y,primary:{row:w,column:P},formula:k}),!1});if(g){const C=$_(p,v,l),S={range:ft.clone(g),primary:{startRow:C.startRow,startColumn:C.startColumn,endRow:C.endRow,endColumn:C.endColumn,actualRow:p,actualColumn:v,isMerged:C.isMerged,isMergedMainCell:C.startRow===p&&C.startColumn===v}},b={unitId:u,subUnitId:c,selections:[S]};await f.executeCommand(Pr.id,b),setTimeout(()=>{a.setFormula(`=${h}(${_}`)},0)}return m.length===0?!1:f.executeCommand(Aqe.id,{list:m})},"handler")};function eX(t,e,n){const r=wqe(t,e,n);if(r!==e)return{startRow:r,endRow:e-1,startColumn:n,endColumn:n};const i=Dqe(t,e,n);return i!==n?{startRow:e,endRow:e,startColumn:i,endColumn:n-1}:null}Je(eX,"findRefRange");function wqe(t,e,n){let r=!1;if(e===0)return e;for(let i=e-1;i>=0;i--){const a=t.getValue(i,n);if(lC(a)&&!r){if(i===0)return 0;r=!0}else{if(r&&!lC(a))return i+1;if(r&&i===0)return 0}}return e}Je(wqe,"findStartRow");function Dqe(t,e,n){let r=!1;if(n===0)return n;for(let i=n-1;i>=0;i--){const a=t.getValue(e,i);if(lC(a)&&!r){if(i===0)return 0;r=!0}else{if(r&&!lC(a))return i+1;if(r&&i===0)return 0}}return n}Je(Dqe,"findStartColumn");function lC(t){if(t!=null&&t.p){const e=t==null?void 0:t.p.body;if(e==null)return!1;const n=e.dataStream,r=n.substring(n.length-2,n.length)===Sd?n.substring(0,n.length-2):n;return Kr(r)}return t&&(t.t===rr.NUMBER||D1e(t)===rr.NUMBER)}Je(lC,"isNumberCell");function Iqe(t){return t.startRow===t.endRow&&t.startColumn===t.endColumn}Je(Iqe,"isSingleCell");function Pqe(t){return t.startRow!==t.endRow&&t.startColumn!==t.endColumn}Je(Pqe,"isMultiRowsColumnsRange");const Mqe=`${Ore}_MORE_FUNCTIONS_COMPONENT`,Vre={id:"formula-ui.operation.more-functions",type:Se.OPERATION,handler:Je(async t=>(t.get(ol).open({header:{title:"formula.insert.tooltip"},children:{label:Mqe}}),!0),"handler")},Bre={id:"formula-ui.operation.change-ref-to-absolute",type:Se.OPERATION,handler:Je(async t=>!0,"handler")},tX={id:"formula-ui.operation.search-function",type:Se.OPERATION,handler:Je(async(t,e)=>(t.get(d3).search(e),!0),"handler")};var Tqe={exports:{}},Zx={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var itn=Re,atn=Symbol.for("react.element"),otn=Symbol.for("react.fragment"),stn=Object.prototype.hasOwnProperty,ltn=itn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,utn={key:!0,ref:!0,__self:!0,__source:!0};function Ure(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)stn.call(e,r)&&!utn.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:atn,type:t,key:a,ref:o,props:i,_owner:ltn.current}}Je(Ure,"q");Zx.Fragment=otn;Zx.jsx=Ure;Zx.jsxs=Ure;Tqe.exports=Zx;var Hn=Tqe.exports,Jc=function(){return Jc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Jc.apply(this,arguments)},ctn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},yb=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=ctn(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(Oqe()));return Hre(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},Jc({ref:e,className:s},o),a)});function Hre(t,e,n,r,i){return E.createElement(t.tag,Jc(Jc({key:e},Lqe(t,n,i)),r),(xqe(t,n).children||[]).map(function(a,o){return Hre(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}Je(Hre,"render");function Lqe(t,e,n){var r=Jc({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}Je(Lqe,"replaceRuntimeIdsAndExtInAttrs");function xqe(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?Jc(Jc({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?Jc(Jc({},i),{attrs:Jc(Jc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}Je(xqe,"replaceRuntimeIdsInDefs");function Oqe(){return Math.random().toString(36).substring(2,8)}Je(Oqe,"generateShortUuid");yb.displayName="UniverIcon";var dtn={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"}}]},Nqe=E.forwardRef(function(t,e){return E.createElement(yb,Object.assign({},t,{id:"check-mark-single",ref:e,icon:dtn}))});Nqe.displayName="CheckMarkSingle";var htn={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"}}]},kqe=E.forwardRef(function(t,e){return E.createElement(yb,Object.assign({},t,{id:"close-single",ref:e,icon:htn}))});kqe.displayName="CloseSingle";var ftn={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.75 5.32495C8.75 5.73916 8.41421 6.07495 8 6.07495 7.58579 6.07495 7.25 5.73916 7.25 5.32495 7.25 4.91074 7.58579 4.57495 8 4.57495 8.41421 4.57495 8.75 4.91074 8.75 5.32495zM8.5999 7.52505C8.5999 7.19368 8.33127 6.92505 7.9999 6.92505 7.66853 6.92505 7.3999 7.19368 7.3999 7.52505V11.425C7.3999 11.7564 7.66853 12.025 7.9999 12.025 8.33127 12.025 8.5999 11.7564 8.5999 11.425V7.52505z"}},{tag:"path",attrs:{fill:"currentColor",d:"M0.899902 8.00002C0.899902 4.0788 4.07868 0.900024 7.9999 0.900024C11.9211 0.900024 15.0999 4.0788 15.0999 8.00002C15.0999 11.9212 11.9211 15.1 7.9999 15.1C4.07868 15.1 0.899902 11.9212 0.899902 8.00002ZM7.9999 2.10002C4.74142 2.10002 2.0999 4.74154 2.0999 8.00002C2.0999 11.2585 4.74142 13.9 7.9999 13.9C11.2584 13.9 13.8999 11.2585 13.8999 8.00002C13.8999 4.74154 11.2584 2.10002 7.9999 2.10002Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Fqe=E.forwardRef(function(t,e){return E.createElement(yb,Object.assign({},t,{id:"details-single",ref:e,icon:ftn}))});Fqe.displayName="DetailsSingle";var mtn={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"}}]},Vqe=E.forwardRef(function(t,e){return E.createElement(yb,Object.assign({},t,{id:"more-single",ref:e,icon:mtn}))});Vqe.displayName="MoreSingle";function Bqe(t,e){return Object.keys(t).filter(n=>isNaN(Number(n))&&n!=="DefinedName").map(n=>({label:e.t(`formula.functionType.${n.toLocaleLowerCase()}`),value:`${t[n]}`}))}Je(Bqe,"getFunctionTypeValues");function Uqe(t,e){let n="";return t.aliasFunctionName?(n=e.t(t.aliasFunctionName),n===t.aliasFunctionName&&(n=t.functionName)):n=t.functionName,n}Je(Uqe,"getFunctionName");function jre(t){if(!t.require&&!t.repeat)return`[${t.name}]`;if(t.require&&!t.repeat)return t.name;if(!t.require&&t.repeat)return`[${t.name},...]`;if(t.require&&t.repeat)return`${t.name},...`}Je(jre,"generateParam");const gtn=Je((t,e=100)=>{E.useEffect(()=>{let n=null;const r=Je(()=>{n===null&&(n=window.setTimeout(()=>{t(),n=null},e))},"throttledCallback");return window.addEventListener("scroll",r),window.addEventListener("resize",r),()=>{n!==null&&clearTimeout(n),window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[t,e])},"useResizeScrollObserver"),ptn="univer-formula-help-function",vtn="univer-formula-help-function-title",_tn="univer-formula-help-function-title-icons",Ctn="univer-formula-help-function-title-icon",Stn="univer-formula-help-function-content",btn="univer-formula-help-function-content-inner",ytn="univer-formula-help-function-content-params",Etn="univer-formula-help-function-content-params-title",Rtn="univer-formula-help-function-content-params-detail",Atn="univer-formula-help-function-active",wtn="univer-formula-help-decorator",Dtn="univer-formula-help-param",Itn="univer-formula-help-param-prefix",Ptn="univer-formula-help-param-item",Mtn="univer-formula-help-param-active",$s={formulaHelpFunction:ptn,formulaHelpFunctionTitle:vtn,formulaHelpFunctionTitleIcons:_tn,formulaHelpFunctionTitleIcon:Ctn,formulaHelpFunctionContent:Stn,formulaHelpFunctionContentInner:btn,formulaHelpFunctionContentParams:ytn,formulaHelpFunctionContentParamsTitle:Etn,formulaHelpFunctionContentParamsDetail:Rtn,formulaHelpFunctionActive:Atn,formulaHelpDecorator:wtn,formulaHelpParam:Dtn,formulaHelpParamPrefix:Itn,formulaHelpParamItem:Ptn,formulaHelpParamActive:Mtn};function Hqe(){const[t,e]=E.useState(!1),[n,r]=E.useState(!0),[i,a]=E.useState(!0),[o,s]=E.useState(0),[l,u]=E.useState([0,0]),[c,d]=E.useState({left:0,top:0}),[h,f]=E.useState(null),m=Ne(d3),g=Ne(sn),p=g.t("formula.prompt.required"),v=g.t("formula.prompt.optional"),_=Ne(Ce),C=Ne(Fo),S=Ne(ol),b=wC();gtn(y),E.useEffect(()=>{const M=m.help$.subscribe(k=>{const{visible:O,paramIndex:$,functionInfo:B}=k;if(!O){e(O);return}const V=A();if(V==null)return;const{left:X,top:z,height:F}=V;B.description===""&&B.functionParameter.length===0||(u([X,z+F]),s($),f(B),d({left:X,top:z}),e(O))}),L=S.scrollEvent$.pipe(zg(100)).subscribe(y);return()=>{M==null||M.unsubscribe(),L.unsubscribe()}},[]);function y(){if(!i)return;const M=A();if(M==null)return;const{left:L,top:k,height:O}=M;u([L,k+O])}Je(y,"updatePosition");function A(){const M=_.getCurrentUniverDocInstance();if(!M)return;const L=M.getUnitId();if(!C.isEditor(L))return;const k=C.getEditor(L);return k==null?void 0:k.getBoundingClientRect()}Je(A,"getPosition");function w(M){s(M)}Je(w,"handleSwitchActive");function P(){a(!i),b.get(Os).focus()}return Je(P,"handleClose"),Hn.jsx(Hn.Fragment,{children:i?Hn.jsx(rS,{visible:t,offset:l,children:h?Hn.jsxs("div",{className:$s.formulaHelpFunction,children:[Hn.jsxs("div",{className:$s.formulaHelpFunctionTitle,children:[Hn.jsx(Ttn,{prefix:h.functionName,value:h.functionParameter,active:o,onClick:w}),Hn.jsxs("div",{className:$s.formulaHelpFunctionTitleIcons,children:[Hn.jsx("div",{className:$s.formulaHelpFunctionTitleIcon,style:{transform:n?"rotateZ(-90deg)":"rotateZ(90deg)"},onClick:Je(()=>r(!n),"onClick"),children:Hn.jsx(Vqe,{})}),Hn.jsx("div",{className:$s.formulaHelpFunctionTitleIcon,onClick:P,children:Hn.jsx(kqe,{})})]})]}),Hn.jsx("div",{className:$s.formulaHelpFunctionContent,style:{height:n?"unset":0,padding:n?"revert-layer":0},children:Hn.jsxs("div",{className:$s.formulaHelpFunctionContentInner,children:[Hn.jsx(kB,{title:g.t("formula.prompt.helpExample"),value:`${h.functionName}(${h.functionParameter.map(M=>M.example).join(",")})`}),Hn.jsx(kB,{title:g.t("formula.prompt.helpAbstract"),value:h.description}),h&&h.functionParameter&&h.functionParameter.map((M,L)=>Hn.jsx(kB,{className:o===L?$s.formulaHelpFunctionActive:"",title:M.name,value:`${M.require?p:v} ${M.detail}`},L))]})})]}):Hn.jsx(Hn.Fragment,{})}):t?Hn.jsx("div",{className:$s.formulaHelpDecorator,onClick:Je(()=>a(!i),"onClick"),style:{left:c.left-24,top:c.top},children:Hn.jsx(Fqe,{})}):Hn.jsx(Hn.Fragment,{})})}Je(Hqe,"HelpFunction");const kB=Je(t=>Hn.jsxs("div",{className:$s.formulaHelpFunctionContentParams,children:[Hn.jsx("div",{className:`${$s.formulaHelpFunctionContentParamsTitle} ${t.className}`,children:t.title}),Hn.jsx("div",{className:$s.formulaHelpFunctionContentParamsDetail,children:t.value})]}),"Params"),Ttn=Je(t=>{const{prefix:e,value:n,active:r,onClick:i}=t;return Hn.jsxs("div",{className:$s.formulaHelpParam,children:[Hn.jsxs("span",{className:$s.formulaHelpParamPrefix,children:[e,"("]}),n&&n.map((a,o)=>Hn.jsxs("span",{className:$s.formulaHelpParamItem,children:[Hn.jsx("span",{className:r===o?$s.formulaHelpFunctionActive:$s.formulaHelpParamActive,onClick:Je(()=>i(o),"onClick"),children:jre(a)}),o===n.length-1?"":","]},o)),")"]})},"Help"),Ltn="univer-formula-search-function",xtn="univer-formula-search-function-item",Otn="univer-formula-search-function-item-name",Ntn="univer-formula-search-function-item-name-light",ktn="univer-formula-search-function-item-desc",Ftn="univer-formula-search-function-item-active",Em={formulaSearchFunction:Ltn,formulaSearchFunctionItem:xtn,formulaSearchFunctionItemName:Otn,formulaSearchFunctionItemNameLight:Ntn,formulaSearchFunctionItemDesc:ktn,formulaSearchFunctionItemActive:Ftn};function jqe(){const[t,e]=E.useState(!1),[n,r]=E.useState(0),[i,a]=E.useState([0,0]),[o,s]=E.useState([]),[l,u]=E.useState(""),c=E.useRef(null),d=Ne(d3),h=Ne(Ce),f=Ne(Fo);E.useEffect(()=>{let _=[],C=0;const S=d.search$.subscribe(A=>{const{visible:w,searchText:P,searchList:M}=A;if(!w){e(w);return}const L=m();if(L==null)return;const{left:k,top:O,height:$}=L;u(P),s(M),_=M,a([k,O+$]),e(w),r(0),C=0}),b=d.navigate$.subscribe(A=>{const{direction:w}=A;if(w===ut.UP){let P=C-1;P=P<0?_.length-1:P,r(P),C=P}else if(w===ut.DOWN){let P=C+1;P=P>=_.length?0:P,r(P),C=P}v(C)}),y=d.accept$.subscribe(A=>{const w=_[C].name;d.acceptFormulaName(w)});return()=>{S==null||S.unsubscribe(),b==null||b.unsubscribe(),y==null||y.unsubscribe()}},[]);function m(){const _=h.getCurrentUniverDocInstance().getUnitId();if(!f.isEditor(_))return;const C=f.getEditor(_);return C==null?void 0:C.getBoundingClientRect()}Je(m,"getPosition");function g(_){r(_)}Je(g,"handleLiMouseEnter");function p(){r(-1)}Je(p,"handleLiMouseLeave");function v(_){var C;const S=(C=c.current)==null?void 0:C.querySelectorAll(`.${Em.formulaSearchFunctionItem}`)[_];if(!S)return;const b=S.parentNode;if(!b)return;const y=b.getBoundingClientRect().top,A=b.offsetHeight,w=S.getBoundingClientRect(),P=w.top,M=w.height;if(P>=0&&P>y&&P-y+M<=A)return;const L=S.offsetTop-(A-M)/2;b.scrollTo({top:L,behavior:"smooth"})}return Je(v,"scrollToVisible"),o.length>0&&Hn.jsx(rS,{visible:t,offset:i,children:Hn.jsx("ul",{className:Em.formulaSearchFunction,ref:c,children:o.map((_,C)=>Hn.jsxs("li",{className:n===C?`${Em.formulaSearchFunctionItem} ${Em.formulaSearchFunctionItemActive}`:Em.formulaSearchFunctionItem,onMouseEnter:Je(()=>g(C),"onMouseEnter"),onMouseLeave:p,onClick:Je(()=>d.acceptFormulaName(_.name),"onClick"),children:[Hn.jsxs("span",{className:Em.formulaSearchFunctionItemName,children:[Hn.jsx("span",{className:Em.formulaSearchFunctionItemNameLight,children:_.name.substring(0,l.length)}),Hn.jsx("span",{children:_.name.slice(l.length)})]}),Hn.jsx("span",{className:Em.formulaSearchFunctionItemDesc,children:_.desc})]},C))})})}Je(jqe,"SearchFunction");function $qe(){return Hn.jsxs(Hn.Fragment,{children:[Hn.jsx(jqe,{}),Hn.jsx(Hqe,{})]})}Je($qe,"RenderFormulaPromptContent");const Vtn="univer-formula-more-functions",Btn="univer-formula-more-functions-operation",Pue={formulaMoreFunctions:Vtn,formulaMoreFunctionsOperation:Btn};function $re(t){const{prefix:e,value:n}=t;return Hn.jsxs("div",{children:[Hn.jsxs("span",{children:[e,"("]}),n&&n.map((r,i)=>Hn.jsxs("span",{children:[Hn.jsx("span",{children:jre(r)}),i===n.length-1?"":","]},i)),")"]})}Je($re,"FunctionHelp");const Utn="univer-formula-function-params",Htn="univer-formula-function-params-title",jtn="univer-formula-function-params-detail",FB={formulaFunctionParams:Utn,formulaFunctionParamsTitle:Htn,formulaFunctionParamsDetail:jtn};function N6(t){const{className:e,value:n,title:r}=t;return Hn.jsxs("div",{className:FB.formulaFunctionParams,children:[Hn.jsx("div",{className:`${FB.formulaFunctionParamsTitle} ${e}`,children:r}),Hn.jsx("div",{className:FB.formulaFunctionParamsDetail,children:n})]})}Je(N6,"FunctionParams");const $tn="univer-formula-input-params-list",Wtn="univer-formula-input-params-list-item-name",ztn="univer-formula-input-params-list-item-selector",d5={formulaInputParamsList:$tn,formulaInputParamsListItemName:Wtn,formulaInputParamsListItemSelector:ztn};function Wqe(t){const{functionInfo:e,onChange:n}=t;if(!e)return null;E.useState([]);const[r,i]=E.useState(e.functionParameter),[a,o]=E.useState(-1);return Hn.jsxs("div",{className:d5.formulaInputParams,children:[Hn.jsx("div",{className:d5.formulaInputParamsList,children:r.map((s,l)=>Hn.jsxs("div",{children:[Hn.jsx("div",{className:d5.formulaInputParamsListItemName,children:s.name}),Hn.jsx("div",{className:d5.formulaInputParamsListItemSelector})]},l))}),Hn.jsx("div",{className:d5.formulaInputParamsInfo,children:Hn.jsx(N6,{title:a===-1?Hn.jsx($re,{prefix:e.functionName,value:r}):r[a].name,value:a===-1?e.description:r[a].detail})})]})}Je(Wqe,"InputParams");const zqe="sheets-formula.base.config",qtn={},Ytn="sheets-formula.remote.config",Xtn={},Gtn="sheets-formula.mobile.config",Qtn={},Ktn=[],Ztn=[{functionName:ri.BETADIST,functionType:Z.Compatibility,description:"formula.functionList.BETADIST.description",abstract:"formula.functionList.BETADIST.abstract",functionParameter:[{name:"formula.functionList.BETADIST.functionParameter.number1.name",detail:"formula.functionList.BETADIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BETADIST.functionParameter.number2.name",detail:"formula.functionList.BETADIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.BETAINV,functionType:Z.Compatibility,description:"formula.functionList.BETAINV.description",abstract:"formula.functionList.BETAINV.abstract",functionParameter:[{name:"formula.functionList.BETAINV.functionParameter.number1.name",detail:"formula.functionList.BETAINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BETAINV.functionParameter.number2.name",detail:"formula.functionList.BETAINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.BINOMDIST,functionType:Z.Compatibility,description:"formula.functionList.BINOMDIST.description",abstract:"formula.functionList.BINOMDIST.abstract",functionParameter:[{name:"formula.functionList.BINOMDIST.functionParameter.number1.name",detail:"formula.functionList.BINOMDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BINOMDIST.functionParameter.number2.name",detail:"formula.functionList.BINOMDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.CHIDIST,functionType:Z.Compatibility,description:"formula.functionList.CHIDIST.description",abstract:"formula.functionList.CHIDIST.abstract",functionParameter:[{name:"formula.functionList.CHIDIST.functionParameter.number1.name",detail:"formula.functionList.CHIDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHIDIST.functionParameter.number2.name",detail:"formula.functionList.CHIDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.CHIINV,functionType:Z.Compatibility,description:"formula.functionList.CHIINV.description",abstract:"formula.functionList.CHIINV.abstract",functionParameter:[{name:"formula.functionList.CHIINV.functionParameter.number1.name",detail:"formula.functionList.CHIINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHIINV.functionParameter.number2.name",detail:"formula.functionList.CHIINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.CHITEST,functionType:Z.Compatibility,description:"formula.functionList.CHITEST.description",abstract:"formula.functionList.CHITEST.abstract",functionParameter:[{name:"formula.functionList.CHITEST.functionParameter.number1.name",detail:"formula.functionList.CHITEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHITEST.functionParameter.number2.name",detail:"formula.functionList.CHITEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.CONFIDENCE,functionType:Z.Compatibility,description:"formula.functionList.CONFIDENCE.description",abstract:"formula.functionList.CONFIDENCE.abstract",functionParameter:[{name:"formula.functionList.CONFIDENCE.functionParameter.number1.name",detail:"formula.functionList.CONFIDENCE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CONFIDENCE.functionParameter.number2.name",detail:"formula.functionList.CONFIDENCE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.COVAR,functionType:Z.Compatibility,description:"formula.functionList.COVAR.description",abstract:"formula.functionList.COVAR.abstract",functionParameter:[{name:"formula.functionList.COVAR.functionParameter.number1.name",detail:"formula.functionList.COVAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COVAR.functionParameter.number2.name",detail:"formula.functionList.COVAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.CRITBINOM,functionType:Z.Compatibility,description:"formula.functionList.CRITBINOM.description",abstract:"formula.functionList.CRITBINOM.abstract",functionParameter:[{name:"formula.functionList.CRITBINOM.functionParameter.number1.name",detail:"formula.functionList.CRITBINOM.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CRITBINOM.functionParameter.number2.name",detail:"formula.functionList.CRITBINOM.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.EXPONDIST,functionType:Z.Compatibility,description:"formula.functionList.EXPONDIST.description",abstract:"formula.functionList.EXPONDIST.abstract",functionParameter:[{name:"formula.functionList.EXPONDIST.functionParameter.number1.name",detail:"formula.functionList.EXPONDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.EXPONDIST.functionParameter.number2.name",detail:"formula.functionList.EXPONDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.FDIST,functionType:Z.Compatibility,description:"formula.functionList.FDIST.description",abstract:"formula.functionList.FDIST.abstract",functionParameter:[{name:"formula.functionList.FDIST.functionParameter.number1.name",detail:"formula.functionList.FDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FDIST.functionParameter.number2.name",detail:"formula.functionList.FDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.FINV,functionType:Z.Compatibility,description:"formula.functionList.FINV.description",abstract:"formula.functionList.FINV.abstract",functionParameter:[{name:"formula.functionList.FINV.functionParameter.number1.name",detail:"formula.functionList.FINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FINV.functionParameter.number2.name",detail:"formula.functionList.FINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.FTEST,functionType:Z.Compatibility,description:"formula.functionList.FTEST.description",abstract:"formula.functionList.FTEST.abstract",functionParameter:[{name:"formula.functionList.FTEST.functionParameter.number1.name",detail:"formula.functionList.FTEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FTEST.functionParameter.number2.name",detail:"formula.functionList.FTEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.GAMMADIST,functionType:Z.Compatibility,description:"formula.functionList.GAMMADIST.description",abstract:"formula.functionList.GAMMADIST.abstract",functionParameter:[{name:"formula.functionList.GAMMADIST.functionParameter.number1.name",detail:"formula.functionList.GAMMADIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMADIST.functionParameter.number2.name",detail:"formula.functionList.GAMMADIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.GAMMAINV,functionType:Z.Compatibility,description:"formula.functionList.GAMMAINV.description",abstract:"formula.functionList.GAMMAINV.abstract",functionParameter:[{name:"formula.functionList.GAMMAINV.functionParameter.number1.name",detail:"formula.functionList.GAMMAINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMAINV.functionParameter.number2.name",detail:"formula.functionList.GAMMAINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.HYPGEOMDIST,functionType:Z.Compatibility,description:"formula.functionList.HYPGEOMDIST.description",abstract:"formula.functionList.HYPGEOMDIST.abstract",functionParameter:[{name:"formula.functionList.HYPGEOMDIST.functionParameter.number1.name",detail:"formula.functionList.HYPGEOMDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.HYPGEOMDIST.functionParameter.number2.name",detail:"formula.functionList.HYPGEOMDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.LOGINV,functionType:Z.Compatibility,description:"formula.functionList.LOGINV.description",abstract:"formula.functionList.LOGINV.abstract",functionParameter:[{name:"formula.functionList.LOGINV.functionParameter.number1.name",detail:"formula.functionList.LOGINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOGINV.functionParameter.number2.name",detail:"formula.functionList.LOGINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.LOGNORMDIST,functionType:Z.Compatibility,description:"formula.functionList.LOGNORMDIST.description",abstract:"formula.functionList.LOGNORMDIST.abstract",functionParameter:[{name:"formula.functionList.LOGNORMDIST.functionParameter.number1.name",detail:"formula.functionList.LOGNORMDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOGNORMDIST.functionParameter.number2.name",detail:"formula.functionList.LOGNORMDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.MODE,functionType:Z.Compatibility,description:"formula.functionList.MODE.description",abstract:"formula.functionList.MODE.abstract",functionParameter:[{name:"formula.functionList.MODE.functionParameter.number1.name",detail:"formula.functionList.MODE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MODE.functionParameter.number2.name",detail:"formula.functionList.MODE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.NEGBINOMDIST,functionType:Z.Compatibility,description:"formula.functionList.NEGBINOMDIST.description",abstract:"formula.functionList.NEGBINOMDIST.abstract",functionParameter:[{name:"formula.functionList.NEGBINOMDIST.functionParameter.number1.name",detail:"formula.functionList.NEGBINOMDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NEGBINOMDIST.functionParameter.number2.name",detail:"formula.functionList.NEGBINOMDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.NORMDIST,functionType:Z.Compatibility,description:"formula.functionList.NORMDIST.description",abstract:"formula.functionList.NORMDIST.abstract",functionParameter:[{name:"formula.functionList.NORMDIST.functionParameter.number1.name",detail:"formula.functionList.NORMDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORMDIST.functionParameter.number2.name",detail:"formula.functionList.NORMDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.NORMINV,functionType:Z.Compatibility,description:"formula.functionList.NORMINV.description",abstract:"formula.functionList.NORMINV.abstract",functionParameter:[{name:"formula.functionList.NORMINV.functionParameter.number1.name",detail:"formula.functionList.NORMINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORMINV.functionParameter.number2.name",detail:"formula.functionList.NORMINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.NORMSDIST,functionType:Z.Compatibility,description:"formula.functionList.NORMSDIST.description",abstract:"formula.functionList.NORMSDIST.abstract",functionParameter:[{name:"formula.functionList.NORMSDIST.functionParameter.number1.name",detail:"formula.functionList.NORMSDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORMSDIST.functionParameter.number2.name",detail:"formula.functionList.NORMSDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.NORMSINV,functionType:Z.Compatibility,description:"formula.functionList.NORMSINV.description",abstract:"formula.functionList.NORMSINV.abstract",functionParameter:[{name:"formula.functionList.NORMSINV.functionParameter.number1.name",detail:"formula.functionList.NORMSINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORMSINV.functionParameter.number2.name",detail:"formula.functionList.NORMSINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.PERCENTILE,functionType:Z.Compatibility,description:"formula.functionList.PERCENTILE.description",abstract:"formula.functionList.PERCENTILE.abstract",functionParameter:[{name:"formula.functionList.PERCENTILE.functionParameter.number1.name",detail:"formula.functionList.PERCENTILE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTILE.functionParameter.number2.name",detail:"formula.functionList.PERCENTILE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.PERCENTRANK,functionType:Z.Compatibility,description:"formula.functionList.PERCENTRANK.description",abstract:"formula.functionList.PERCENTRANK.abstract",functionParameter:[{name:"formula.functionList.PERCENTRANK.functionParameter.number1.name",detail:"formula.functionList.PERCENTRANK.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTRANK.functionParameter.number2.name",detail:"formula.functionList.PERCENTRANK.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.POISSON,functionType:Z.Compatibility,description:"formula.functionList.POISSON.description",abstract:"formula.functionList.POISSON.abstract",functionParameter:[{name:"formula.functionList.POISSON.functionParameter.number1.name",detail:"formula.functionList.POISSON.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.POISSON.functionParameter.number2.name",detail:"formula.functionList.POISSON.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.QUARTILE,functionType:Z.Compatibility,description:"formula.functionList.QUARTILE.description",abstract:"formula.functionList.QUARTILE.abstract",functionParameter:[{name:"formula.functionList.QUARTILE.functionParameter.number1.name",detail:"formula.functionList.QUARTILE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.QUARTILE.functionParameter.number2.name",detail:"formula.functionList.QUARTILE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.RANK,functionType:Z.Compatibility,description:"formula.functionList.RANK.description",abstract:"formula.functionList.RANK.abstract",functionParameter:[{name:"formula.functionList.RANK.functionParameter.number.name",detail:"formula.functionList.RANK.functionParameter.number.detail",example:"A3",require:1,repeat:0},{name:"formula.functionList.RANK.functionParameter.ref.name",detail:"formula.functionList.RANK.functionParameter.ref.detail",example:"A2:A6",require:1,repeat:0},{name:"formula.functionList.RANK.functionParameter.order.name",detail:"formula.functionList.RANK.functionParameter.order.detail",example:"1",require:0,repeat:0}]},{functionName:ri.STDEV,functionType:Z.Compatibility,description:"formula.functionList.STDEV.description",abstract:"formula.functionList.STDEV.abstract",functionParameter:[{name:"formula.functionList.STDEV.functionParameter.number1.name",detail:"formula.functionList.STDEV.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEV.functionParameter.number2.name",detail:"formula.functionList.STDEV.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:ri.STDEVP,functionType:Z.Compatibility,description:"formula.functionList.STDEVP.description",abstract:"formula.functionList.STDEVP.abstract",functionParameter:[{name:"formula.functionList.STDEVP.functionParameter.number1.name",detail:"formula.functionList.STDEVP.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEVP.functionParameter.number2.name",detail:"formula.functionList.STDEVP.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:ri.TDIST,functionType:Z.Compatibility,description:"formula.functionList.TDIST.description",abstract:"formula.functionList.TDIST.abstract",functionParameter:[{name:"formula.functionList.TDIST.functionParameter.number1.name",detail:"formula.functionList.TDIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TDIST.functionParameter.number2.name",detail:"formula.functionList.TDIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.TINV,functionType:Z.Compatibility,description:"formula.functionList.TINV.description",abstract:"formula.functionList.TINV.abstract",functionParameter:[{name:"formula.functionList.TINV.functionParameter.number1.name",detail:"formula.functionList.TINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TINV.functionParameter.number2.name",detail:"formula.functionList.TINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.TTEST,functionType:Z.Compatibility,description:"formula.functionList.TTEST.description",abstract:"formula.functionList.TTEST.abstract",functionParameter:[{name:"formula.functionList.TTEST.functionParameter.number1.name",detail:"formula.functionList.TTEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TTEST.functionParameter.number2.name",detail:"formula.functionList.TTEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.VAR,functionType:Z.Compatibility,description:"formula.functionList.VAR.description",abstract:"formula.functionList.VAR.abstract",functionParameter:[{name:"formula.functionList.VAR.functionParameter.number1.name",detail:"formula.functionList.VAR.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VAR.functionParameter.number2.name",detail:"formula.functionList.VAR.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:ri.VARP,functionType:Z.Compatibility,description:"formula.functionList.VARP.description",abstract:"formula.functionList.VARP.abstract",functionParameter:[{name:"formula.functionList.VARP.functionParameter.number1.name",detail:"formula.functionList.VARP.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VARP.functionParameter.number2.name",detail:"formula.functionList.VARP.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:ri.WEIBULL,functionType:Z.Compatibility,description:"formula.functionList.WEIBULL.description",abstract:"formula.functionList.WEIBULL.abstract",functionParameter:[{name:"formula.functionList.WEIBULL.functionParameter.number1.name",detail:"formula.functionList.WEIBULL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.WEIBULL.functionParameter.number2.name",detail:"formula.functionList.WEIBULL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:ri.ZTEST,functionType:Z.Compatibility,description:"formula.functionList.ZTEST.description",abstract:"formula.functionList.ZTEST.abstract",functionParameter:[{name:"formula.functionList.ZTEST.functionParameter.number1.name",detail:"formula.functionList.ZTEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ZTEST.functionParameter.number2.name",detail:"formula.functionList.ZTEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],Jtn=[{functionName:Tm.CUBEKPIMEMBER,functionType:Z.Cube,description:"formula.functionList.CUBEKPIMEMBER.description",abstract:"formula.functionList.CUBEKPIMEMBER.abstract",functionParameter:[{name:"formula.functionList.CUBEKPIMEMBER.functionParameter.number1.name",detail:"formula.functionList.CUBEKPIMEMBER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBEKPIMEMBER.functionParameter.number2.name",detail:"formula.functionList.CUBEKPIMEMBER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBEMEMBER,functionType:Z.Cube,description:"formula.functionList.CUBEMEMBER.description",abstract:"formula.functionList.CUBEMEMBER.abstract",functionParameter:[{name:"formula.functionList.CUBEMEMBER.functionParameter.number1.name",detail:"formula.functionList.CUBEMEMBER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBEMEMBER.functionParameter.number2.name",detail:"formula.functionList.CUBEMEMBER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBEMEMBERPROPERTY,functionType:Z.Cube,description:"formula.functionList.CUBEMEMBERPROPERTY.description",abstract:"formula.functionList.CUBEMEMBERPROPERTY.abstract",functionParameter:[{name:"formula.functionList.CUBEMEMBERPROPERTY.functionParameter.number1.name",detail:"formula.functionList.CUBEMEMBERPROPERTY.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBEMEMBERPROPERTY.functionParameter.number2.name",detail:"formula.functionList.CUBEMEMBERPROPERTY.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBERANKEDMEMBER,functionType:Z.Cube,description:"formula.functionList.CUBERANKEDMEMBER.description",abstract:"formula.functionList.CUBERANKEDMEMBER.abstract",functionParameter:[{name:"formula.functionList.CUBERANKEDMEMBER.functionParameter.number1.name",detail:"formula.functionList.CUBERANKEDMEMBER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBERANKEDMEMBER.functionParameter.number2.name",detail:"formula.functionList.CUBERANKEDMEMBER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBESET,functionType:Z.Cube,description:"formula.functionList.CUBESET.description",abstract:"formula.functionList.CUBESET.abstract",functionParameter:[{name:"formula.functionList.CUBESET.functionParameter.number1.name",detail:"formula.functionList.CUBESET.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBESET.functionParameter.number2.name",detail:"formula.functionList.CUBESET.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBESETCOUNT,functionType:Z.Cube,description:"formula.functionList.CUBESETCOUNT.description",abstract:"formula.functionList.CUBESETCOUNT.abstract",functionParameter:[{name:"formula.functionList.CUBESETCOUNT.functionParameter.number1.name",detail:"formula.functionList.CUBESETCOUNT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBESETCOUNT.functionParameter.number2.name",detail:"formula.functionList.CUBESETCOUNT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Tm.CUBEVALUE,functionType:Z.Cube,description:"formula.functionList.CUBEVALUE.description",abstract:"formula.functionList.CUBEVALUE.abstract",functionParameter:[{name:"formula.functionList.CUBEVALUE.functionParameter.number1.name",detail:"formula.functionList.CUBEVALUE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CUBEVALUE.functionParameter.number2.name",detail:"formula.functionList.CUBEVALUE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],enn=[{functionName:Yu.DAVERAGE,functionType:Z.Database,description:"formula.functionList.DAVERAGE.description",abstract:"formula.functionList.DAVERAGE.abstract",functionParameter:[{name:"formula.functionList.DAVERAGE.functionParameter.number1.name",detail:"formula.functionList.DAVERAGE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DAVERAGE.functionParameter.number2.name",detail:"formula.functionList.DAVERAGE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DCOUNT,functionType:Z.Database,description:"formula.functionList.DCOUNT.description",abstract:"formula.functionList.DCOUNT.abstract",functionParameter:[{name:"formula.functionList.DCOUNT.functionParameter.number1.name",detail:"formula.functionList.DCOUNT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DCOUNT.functionParameter.number2.name",detail:"formula.functionList.DCOUNT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DCOUNTA,functionType:Z.Database,description:"formula.functionList.DCOUNTA.description",abstract:"formula.functionList.DCOUNTA.abstract",functionParameter:[{name:"formula.functionList.DCOUNTA.functionParameter.number1.name",detail:"formula.functionList.DCOUNTA.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DCOUNTA.functionParameter.number2.name",detail:"formula.functionList.DCOUNTA.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DGET,functionType:Z.Database,description:"formula.functionList.DGET.description",abstract:"formula.functionList.DGET.abstract",functionParameter:[{name:"formula.functionList.DGET.functionParameter.number1.name",detail:"formula.functionList.DGET.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DGET.functionParameter.number2.name",detail:"formula.functionList.DGET.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DMAX,functionType:Z.Database,description:"formula.functionList.DMAX.description",abstract:"formula.functionList.DMAX.abstract",functionParameter:[{name:"formula.functionList.DMAX.functionParameter.number1.name",detail:"formula.functionList.DMAX.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DMAX.functionParameter.number2.name",detail:"formula.functionList.DMAX.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DMIN,functionType:Z.Database,description:"formula.functionList.DMIN.description",abstract:"formula.functionList.DMIN.abstract",functionParameter:[{name:"formula.functionList.DMIN.functionParameter.number1.name",detail:"formula.functionList.DMIN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DMIN.functionParameter.number2.name",detail:"formula.functionList.DMIN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DPRODUCT,functionType:Z.Database,description:"formula.functionList.DPRODUCT.description",abstract:"formula.functionList.DPRODUCT.abstract",functionParameter:[{name:"formula.functionList.DPRODUCT.functionParameter.number1.name",detail:"formula.functionList.DPRODUCT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DPRODUCT.functionParameter.number2.name",detail:"formula.functionList.DPRODUCT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DSTDEV,functionType:Z.Database,description:"formula.functionList.DSTDEV.description",abstract:"formula.functionList.DSTDEV.abstract",functionParameter:[{name:"formula.functionList.DSTDEV.functionParameter.number1.name",detail:"formula.functionList.DSTDEV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DSTDEV.functionParameter.number2.name",detail:"formula.functionList.DSTDEV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DSTDEVP,functionType:Z.Database,description:"formula.functionList.DSTDEVP.description",abstract:"formula.functionList.DSTDEVP.abstract",functionParameter:[{name:"formula.functionList.DSTDEVP.functionParameter.number1.name",detail:"formula.functionList.DSTDEVP.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DSTDEVP.functionParameter.number2.name",detail:"formula.functionList.DSTDEVP.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DSUM,functionType:Z.Database,description:"formula.functionList.DSUM.description",abstract:"formula.functionList.DSUM.abstract",functionParameter:[{name:"formula.functionList.DSUM.functionParameter.number1.name",detail:"formula.functionList.DSUM.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DSUM.functionParameter.number2.name",detail:"formula.functionList.DSUM.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DVAR,functionType:Z.Database,description:"formula.functionList.DVAR.description",abstract:"formula.functionList.DVAR.abstract",functionParameter:[{name:"formula.functionList.DVAR.functionParameter.number1.name",detail:"formula.functionList.DVAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DVAR.functionParameter.number2.name",detail:"formula.functionList.DVAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Yu.DVARP,functionType:Z.Database,description:"formula.functionList.DVARP.description",abstract:"formula.functionList.DVARP.abstract",functionParameter:[{name:"formula.functionList.DVARP.functionParameter.number1.name",detail:"formula.functionList.DVARP.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DVARP.functionParameter.number2.name",detail:"formula.functionList.DVARP.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],tnn=[{functionName:Vr.DATE,functionType:Z.Date,description:"formula.functionList.DATE.description",abstract:"formula.functionList.DATE.abstract",functionParameter:[{name:"formula.functionList.DATE.functionParameter.year.name",detail:"formula.functionList.DATE.functionParameter.year.detail",example:"2024",require:1,repeat:0},{name:"formula.functionList.DATE.functionParameter.month.name",detail:"formula.functionList.DATE.functionParameter.month.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.DATE.functionParameter.day.name",detail:"formula.functionList.DATE.functionParameter.day.detail",example:"1",require:1,repeat:0}]},{functionName:Vr.DATEDIF,functionType:Z.Date,description:"formula.functionList.DATEDIF.description",abstract:"formula.functionList.DATEDIF.abstract",functionParameter:[{name:"formula.functionList.DATEDIF.functionParameter.startDate.name",detail:"formula.functionList.DATEDIF.functionParameter.startDate.detail",example:'"2001-6-1"',require:1,repeat:0},{name:"formula.functionList.DATEDIF.functionParameter.endDate.name",detail:"formula.functionList.DATEDIF.functionParameter.endDate.detail",example:'"2002-8-15"',require:1,repeat:0},{name:"formula.functionList.DATEDIF.functionParameter.method.name",detail:"formula.functionList.DATEDIF.functionParameter.method.detail",example:'"D"',require:1,repeat:0}]},{functionName:Vr.DATEVALUE,functionType:Z.Date,description:"formula.functionList.DATEVALUE.description",abstract:"formula.functionList.DATEVALUE.abstract",functionParameter:[{name:"formula.functionList.DATEVALUE.functionParameter.dateText.name",detail:"formula.functionList.DATEVALUE.functionParameter.dateText.detail",example:'"2024-8-8"',require:1,repeat:0}]},{functionName:Vr.DAY,functionType:Z.Date,description:"formula.functionList.DAY.description",abstract:"formula.functionList.DAY.abstract",functionParameter:[{name:"formula.functionList.DAY.functionParameter.serialNumber.name",detail:"formula.functionList.DAY.functionParameter.serialNumber.detail",example:'"1969-7-20"',require:1,repeat:0}]},{functionName:Vr.DAYS,functionType:Z.Date,description:"formula.functionList.DAYS.description",abstract:"formula.functionList.DAYS.abstract",functionParameter:[{name:"formula.functionList.DAYS.functionParameter.endDate.name",detail:"formula.functionList.DAYS.functionParameter.endDate.detail",example:'"2021-12-31"',require:1,repeat:0},{name:"formula.functionList.DAYS.functionParameter.startDate.name",detail:"formula.functionList.DAYS.functionParameter.startDate.detail",example:'"2021-1-1"',require:1,repeat:0}]},{functionName:Vr.DAYS360,functionType:Z.Date,description:"formula.functionList.DAYS360.description",abstract:"formula.functionList.DAYS360.abstract",functionParameter:[{name:"formula.functionList.DAYS360.functionParameter.startDate.name",detail:"formula.functionList.DAYS360.functionParameter.startDate.detail",example:'"2021-1-29"',require:1,repeat:0},{name:"formula.functionList.DAYS360.functionParameter.endDate.name",detail:"formula.functionList.DAYS360.functionParameter.endDate.detail",example:'"2021-3-31"',require:1,repeat:0},{name:"formula.functionList.DAYS360.functionParameter.method.name",detail:"formula.functionList.DAYS360.functionParameter.method.detail",example:"1",require:0,repeat:0}]},{functionName:Vr.EDATE,functionType:Z.Date,description:"formula.functionList.EDATE.description",abstract:"formula.functionList.EDATE.abstract",functionParameter:[{name:"formula.functionList.EDATE.functionParameter.startDate.name",detail:"formula.functionList.EDATE.functionParameter.startDate.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.EDATE.functionParameter.months.name",detail:"formula.functionList.EDATE.functionParameter.months.detail",example:"1",require:1,repeat:0}]},{functionName:Vr.EOMONTH,functionType:Z.Date,description:"formula.functionList.EOMONTH.description",abstract:"formula.functionList.EOMONTH.abstract",functionParameter:[{name:"formula.functionList.EOMONTH.functionParameter.startDate.name",detail:"formula.functionList.EOMONTH.functionParameter.startDate.detail",example:'"2011-1-1"',require:1,repeat:0},{name:"formula.functionList.EOMONTH.functionParameter.months.name",detail:"formula.functionList.EOMONTH.functionParameter.months.detail",example:"1",require:1,repeat:0}]},{functionName:Vr.HOUR,functionType:Z.Date,description:"formula.functionList.HOUR.description",abstract:"formula.functionList.HOUR.abstract",functionParameter:[{name:"formula.functionList.HOUR.functionParameter.serialNumber.name",detail:"formula.functionList.HOUR.functionParameter.serialNumber.detail",example:'"2011-7-18 7:45"',require:1,repeat:0}]},{functionName:Vr.ISOWEEKNUM,functionType:Z.Date,description:"formula.functionList.ISOWEEKNUM.description",abstract:"formula.functionList.ISOWEEKNUM.abstract",functionParameter:[{name:"formula.functionList.ISOWEEKNUM.functionParameter.date.name",detail:"formula.functionList.ISOWEEKNUM.functionParameter.date.detail",example:'"2012-3-9"',require:1,repeat:0}]},{functionName:Vr.MINUTE,functionType:Z.Date,description:"formula.functionList.MINUTE.description",abstract:"formula.functionList.MINUTE.abstract",functionParameter:[{name:"formula.functionList.MINUTE.functionParameter.serialNumber.name",detail:"formula.functionList.MINUTE.functionParameter.serialNumber.detail",example:'"12:45"',require:1,repeat:0}]},{functionName:Vr.MONTH,functionType:Z.Date,description:"formula.functionList.MONTH.description",abstract:"formula.functionList.MONTH.abstract",functionParameter:[{name:"formula.functionList.MONTH.functionParameter.serialNumber.name",detail:"formula.functionList.MONTH.functionParameter.serialNumber.detail",example:'"1969-7-20"',require:1,repeat:0}]},{functionName:Vr.NETWORKDAYS,functionType:Z.Date,description:"formula.functionList.NETWORKDAYS.description",abstract:"formula.functionList.NETWORKDAYS.abstract",functionParameter:[{name:"formula.functionList.NETWORKDAYS.functionParameter.startDate.name",detail:"formula.functionList.NETWORKDAYS.functionParameter.startDate.detail",example:'"2012-10-1"',require:1,repeat:0},{name:"formula.functionList.NETWORKDAYS.functionParameter.endDate.name",detail:"formula.functionList.NETWORKDAYS.functionParameter.endDate.detail",example:'"2013-3-1"',require:1,repeat:0},{name:"formula.functionList.NETWORKDAYS.functionParameter.holidays.name",detail:"formula.functionList.NETWORKDAYS.functionParameter.holidays.detail",example:'"2012-11-22"',require:0,repeat:0}]},{functionName:Vr.NETWORKDAYS_INTL,functionType:Z.Date,description:"formula.functionList.NETWORKDAYS_INTL.description",abstract:"formula.functionList.NETWORKDAYS_INTL.abstract",functionParameter:[{name:"formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.name",detail:"formula.functionList.NETWORKDAYS_INTL.functionParameter.startDate.detail",example:'"2012-10-1"',require:1,repeat:0},{name:"formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.name",detail:"formula.functionList.NETWORKDAYS_INTL.functionParameter.endDate.detail",example:'"2013-3-1"',require:1,repeat:0},{name:"formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.name",detail:"formula.functionList.NETWORKDAYS_INTL.functionParameter.weekend.detail",example:"6",require:0,repeat:0},{name:"formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.name",detail:"formula.functionList.NETWORKDAYS_INTL.functionParameter.holidays.detail",example:'"2012-11-22"',require:0,repeat:0}]},{functionName:Vr.NOW,functionType:Z.Date,description:"formula.functionList.NOW.description",abstract:"formula.functionList.NOW.abstract",functionParameter:[]},{functionName:Vr.SECOND,functionType:Z.Date,description:"formula.functionList.SECOND.description",abstract:"formula.functionList.SECOND.abstract",functionParameter:[{name:"formula.functionList.SECOND.functionParameter.serialNumber.name",detail:"formula.functionList.SECOND.functionParameter.serialNumber.detail",example:'"4:48:18"',require:1,repeat:0}]},{functionName:Vr.TIME,functionType:Z.Date,description:"formula.functionList.TIME.description",abstract:"formula.functionList.TIME.abstract",functionParameter:[{name:"formula.functionList.TIME.functionParameter.hour.name",detail:"formula.functionList.TIME.functionParameter.hour.detail",example:"15",require:1,repeat:0},{name:"formula.functionList.TIME.functionParameter.minute.name",detail:"formula.functionList.TIME.functionParameter.minute.detail",example:"20",require:1,repeat:0},{name:"formula.functionList.TIME.functionParameter.second.name",detail:"formula.functionList.TIME.functionParameter.second.detail",example:"59",require:1,repeat:0}]},{functionName:Vr.TIMEVALUE,functionType:Z.Date,description:"formula.functionList.TIMEVALUE.description",abstract:"formula.functionList.TIMEVALUE.abstract",functionParameter:[{name:"formula.functionList.TIMEVALUE.functionParameter.timeText.name",detail:"formula.functionList.TIMEVALUE.functionParameter.timeText.detail",example:'"15:20:59"',require:1,repeat:0}]},{functionName:Vr.TODAY,functionType:Z.Date,description:"formula.functionList.TODAY.description",abstract:"formula.functionList.TODAY.abstract",functionParameter:[]},{functionName:Vr.WEEKDAY,functionType:Z.Date,description:"formula.functionList.WEEKDAY.description",abstract:"formula.functionList.WEEKDAY.abstract",functionParameter:[{name:"formula.functionList.WEEKDAY.functionParameter.serialNumber.name",detail:"formula.functionList.WEEKDAY.functionParameter.serialNumber.detail",example:'"2008-2-14"',require:1,repeat:0},{name:"formula.functionList.WEEKDAY.functionParameter.returnType.name",detail:"formula.functionList.WEEKDAY.functionParameter.returnType.detail",example:"2",require:0,repeat:0}]},{functionName:Vr.WEEKNUM,functionType:Z.Date,description:"formula.functionList.WEEKNUM.description",abstract:"formula.functionList.WEEKNUM.abstract",functionParameter:[{name:"formula.functionList.WEEKNUM.functionParameter.serialNumber.name",detail:"formula.functionList.WEEKNUM.functionParameter.serialNumber.detail",example:'"2012-3-9"',require:1,repeat:0},{name:"formula.functionList.WEEKNUM.functionParameter.returnType.name",detail:"formula.functionList.WEEKNUM.functionParameter.returnType.detail",example:"2",require:0,repeat:0}]},{functionName:Vr.WORKDAY,functionType:Z.Date,description:"formula.functionList.WORKDAY.description",abstract:"formula.functionList.WORKDAY.abstract",functionParameter:[{name:"formula.functionList.WORKDAY.functionParameter.startDate.name",detail:"formula.functionList.WORKDAY.functionParameter.startDate.detail",example:'"2008-10-1"',require:1,repeat:0},{name:"formula.functionList.WORKDAY.functionParameter.days.name",detail:"formula.functionList.WORKDAY.functionParameter.days.detail",example:"151",require:1,repeat:0},{name:"formula.functionList.WORKDAY.functionParameter.holidays.name",detail:"formula.functionList.WORKDAY.functionParameter.holidays.detail",example:'"2008-11-26"',require:0,repeat:0}]},{functionName:Vr.WORKDAY_INTL,functionType:Z.Date,description:"formula.functionList.WORKDAY_INTL.description",abstract:"formula.functionList.WORKDAY_INTL.abstract",functionParameter:[{name:"formula.functionList.WORKDAY_INTL.functionParameter.startDate.name",detail:"formula.functionList.WORKDAY_INTL.functionParameter.startDate.detail",example:'"2008-10-1"',require:1,repeat:0},{name:"formula.functionList.WORKDAY_INTL.functionParameter.days.name",detail:"formula.functionList.WORKDAY_INTL.functionParameter.days.detail",example:"151",require:1,repeat:0},{name:"formula.functionList.WORKDAY_INTL.functionParameter.weekend.name",detail:"formula.functionList.WORKDAY_INTL.functionParameter.weekend.detail",example:"6",require:0,repeat:0},{name:"formula.functionList.WORKDAY_INTL.functionParameter.holidays.name",detail:"formula.functionList.WORKDAY_INTL.functionParameter.holidays.detail",example:'"2008-11-26"',require:0,repeat:0}]},{functionName:Vr.YEAR,functionType:Z.Date,description:"formula.functionList.YEAR.description",abstract:"formula.functionList.YEAR.abstract",functionParameter:[{name:"formula.functionList.YEAR.functionParameter.serialNumber.name",detail:"formula.functionList.YEAR.functionParameter.serialNumber.detail",example:'"1969-7-20"',require:1,repeat:0}]},{functionName:Vr.YEARFRAC,functionType:Z.Date,description:"formula.functionList.YEARFRAC.description",abstract:"formula.functionList.YEARFRAC.abstract",functionParameter:[{name:"formula.functionList.YEARFRAC.functionParameter.startDate.name",detail:"formula.functionList.YEARFRAC.functionParameter.startDate.detail",example:'"2012-1-1"',require:1,repeat:0},{name:"formula.functionList.YEARFRAC.functionParameter.endDate.name",detail:"formula.functionList.YEARFRAC.functionParameter.endDate.detail",example:'"2012-7-30"',require:1,repeat:0},{name:"formula.functionList.YEARFRAC.functionParameter.basis.name",detail:"formula.functionList.YEARFRAC.functionParameter.basis.detail",example:"1",require:0,repeat:0}]}],nnn=[{functionName:tn.BESSELI,functionType:Z.Engineering,description:"formula.functionList.BESSELI.description",abstract:"formula.functionList.BESSELI.abstract",functionParameter:[{name:"formula.functionList.BESSELI.functionParameter.x.name",detail:"formula.functionList.BESSELI.functionParameter.x.detail",example:"1.5",require:1,repeat:0},{name:"formula.functionList.BESSELI.functionParameter.n.name",detail:"formula.functionList.BESSELI.functionParameter.n.detail",example:"1",require:1,repeat:0}]},{functionName:tn.BESSELJ,functionType:Z.Engineering,description:"formula.functionList.BESSELJ.description",abstract:"formula.functionList.BESSELJ.abstract",functionParameter:[{name:"formula.functionList.BESSELJ.functionParameter.x.name",detail:"formula.functionList.BESSELJ.functionParameter.x.detail",example:"1.5",require:1,repeat:0},{name:"formula.functionList.BESSELJ.functionParameter.n.name",detail:"formula.functionList.BESSELJ.functionParameter.n.detail",example:"1",require:1,repeat:0}]},{functionName:tn.BESSELK,functionType:Z.Engineering,description:"formula.functionList.BESSELK.description",abstract:"formula.functionList.BESSELK.abstract",functionParameter:[{name:"formula.functionList.BESSELK.functionParameter.x.name",detail:"formula.functionList.BESSELK.functionParameter.x.detail",example:"1.5",require:1,repeat:0},{name:"formula.functionList.BESSELK.functionParameter.n.name",detail:"formula.functionList.BESSELK.functionParameter.n.detail",example:"1",require:1,repeat:0}]},{functionName:tn.BESSELY,functionType:Z.Engineering,description:"formula.functionList.BESSELY.description",abstract:"formula.functionList.BESSELY.abstract",functionParameter:[{name:"formula.functionList.BESSELY.functionParameter.x.name",detail:"formula.functionList.BESSELY.functionParameter.x.detail",example:"1.5",require:1,repeat:0},{name:"formula.functionList.BESSELY.functionParameter.n.name",detail:"formula.functionList.BESSELY.functionParameter.n.detail",example:"1",require:1,repeat:0}]},{functionName:tn.BIN2DEC,functionType:Z.Engineering,description:"formula.functionList.BIN2DEC.description",abstract:"formula.functionList.BIN2DEC.abstract",functionParameter:[{name:"formula.functionList.BIN2DEC.functionParameter.number.name",detail:"formula.functionList.BIN2DEC.functionParameter.number.detail",example:"1100100",require:1,repeat:0}]},{functionName:tn.BIN2HEX,functionType:Z.Engineering,description:"formula.functionList.BIN2HEX.description",abstract:"formula.functionList.BIN2HEX.abstract",functionParameter:[{name:"formula.functionList.BIN2HEX.functionParameter.number.name",detail:"formula.functionList.BIN2HEX.functionParameter.number.detail",example:"11111011",require:1,repeat:0},{name:"formula.functionList.BIN2HEX.functionParameter.places.name",detail:"formula.functionList.BIN2HEX.functionParameter.places.detail",example:"4",require:0,repeat:0}]},{functionName:tn.BIN2OCT,functionType:Z.Engineering,description:"formula.functionList.BIN2OCT.description",abstract:"formula.functionList.BIN2OCT.abstract",functionParameter:[{name:"formula.functionList.BIN2OCT.functionParameter.number.name",detail:"formula.functionList.BIN2OCT.functionParameter.number.detail",example:"1001",require:1,repeat:0},{name:"formula.functionList.BIN2OCT.functionParameter.places.name",detail:"formula.functionList.BIN2OCT.functionParameter.places.detail",example:"3",require:0,repeat:0}]},{functionName:tn.BITAND,functionType:Z.Engineering,description:"formula.functionList.BITAND.description",abstract:"formula.functionList.BITAND.abstract",functionParameter:[{name:"formula.functionList.BITAND.functionParameter.number1.name",detail:"formula.functionList.BITAND.functionParameter.number1.detail",example:"13",require:1,repeat:0},{name:"formula.functionList.BITAND.functionParameter.number2.name",detail:"formula.functionList.BITAND.functionParameter.number2.detail",example:"25",require:1,repeat:0}]},{functionName:tn.BITLSHIFT,functionType:Z.Engineering,description:"formula.functionList.BITLSHIFT.description",abstract:"formula.functionList.BITLSHIFT.abstract",functionParameter:[{name:"formula.functionList.BITLSHIFT.functionParameter.number.name",detail:"formula.functionList.BITLSHIFT.functionParameter.number.detail",example:"4",require:1,repeat:0},{name:"formula.functionList.BITLSHIFT.functionParameter.shiftAmount.name",detail:"formula.functionList.BITLSHIFT.functionParameter.shiftAmount.detail",example:"2",require:1,repeat:0}]},{functionName:tn.BITOR,functionType:Z.Engineering,description:"formula.functionList.BITOR.description",abstract:"formula.functionList.BITOR.abstract",functionParameter:[{name:"formula.functionList.BITOR.functionParameter.number1.name",detail:"formula.functionList.BITOR.functionParameter.number1.detail",example:"23",require:1,repeat:0},{name:"formula.functionList.BITOR.functionParameter.number2.name",detail:"formula.functionList.BITOR.functionParameter.number2.detail",example:"10",require:1,repeat:0}]},{functionName:tn.BITRSHIFT,functionType:Z.Engineering,description:"formula.functionList.BITRSHIFT.description",abstract:"formula.functionList.BITRSHIFT.abstract",functionParameter:[{name:"formula.functionList.BITRSHIFT.functionParameter.number.name",detail:"formula.functionList.BITRSHIFT.functionParameter.number.detail",example:"13",require:1,repeat:0},{name:"formula.functionList.BITRSHIFT.functionParameter.shiftAmount.name",detail:"formula.functionList.BITRSHIFT.functionParameter.shiftAmount.detail",example:"2",require:1,repeat:0}]},{functionName:tn.BITXOR,functionType:Z.Engineering,description:"formula.functionList.BITXOR.description",abstract:"formula.functionList.BITXOR.abstract",functionParameter:[{name:"formula.functionList.BITXOR.functionParameter.number1.name",detail:"formula.functionList.BITXOR.functionParameter.number1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.BITXOR.functionParameter.number2.name",detail:"formula.functionList.BITXOR.functionParameter.number2.detail",example:"3",require:1,repeat:0}]},{functionName:tn.COMPLEX,functionType:Z.Engineering,description:"formula.functionList.COMPLEX.description",abstract:"formula.functionList.COMPLEX.abstract",functionParameter:[{name:"formula.functionList.COMPLEX.functionParameter.realNum.name",detail:"formula.functionList.COMPLEX.functionParameter.realNum.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.COMPLEX.functionParameter.iNum.name",detail:"formula.functionList.COMPLEX.functionParameter.iNum.detail",example:"4",require:1,repeat:0},{name:"formula.functionList.COMPLEX.functionParameter.suffix.name",detail:"formula.functionList.COMPLEX.functionParameter.suffix.detail",example:'"i"',require:0,repeat:0}]},{functionName:tn.CONVERT,functionType:Z.Engineering,description:"formula.functionList.CONVERT.description",abstract:"formula.functionList.CONVERT.abstract",functionParameter:[{name:"formula.functionList.CONVERT.functionParameter.number.name",detail:"formula.functionList.CONVERT.functionParameter.number.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.CONVERT.functionParameter.fromUnit.name",detail:"formula.functionList.CONVERT.functionParameter.fromUnit.detail",example:'"lbm"',require:1,repeat:0},{name:"formula.functionList.CONVERT.functionParameter.toUnit.name",detail:"formula.functionList.CONVERT.functionParameter.toUnit.detail",example:'"kg"',require:1,repeat:0}]},{functionName:tn.DEC2BIN,functionType:Z.Engineering,description:"formula.functionList.DEC2BIN.description",abstract:"formula.functionList.DEC2BIN.abstract",functionParameter:[{name:"formula.functionList.DEC2BIN.functionParameter.number.name",detail:"formula.functionList.DEC2BIN.functionParameter.number.detail",example:"9",require:1,repeat:0},{name:"formula.functionList.DEC2BIN.functionParameter.places.name",detail:"formula.functionList.DEC2BIN.functionParameter.places.detail",example:"4",require:0,repeat:0}]},{functionName:tn.DEC2HEX,functionType:Z.Engineering,description:"formula.functionList.DEC2HEX.description",abstract:"formula.functionList.DEC2HEX.abstract",functionParameter:[{name:"formula.functionList.DEC2HEX.functionParameter.number.name",detail:"formula.functionList.DEC2HEX.functionParameter.number.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.DEC2HEX.functionParameter.places.name",detail:"formula.functionList.DEC2HEX.functionParameter.places.detail",example:"4",require:0,repeat:0}]},{functionName:tn.DEC2OCT,functionType:Z.Engineering,description:"formula.functionList.DEC2OCT.description",abstract:"formula.functionList.DEC2OCT.abstract",functionParameter:[{name:"formula.functionList.DEC2OCT.functionParameter.number.name",detail:"formula.functionList.DEC2OCT.functionParameter.number.detail",example:"58",require:1,repeat:0},{name:"formula.functionList.DEC2OCT.functionParameter.places.name",detail:"formula.functionList.DEC2OCT.functionParameter.places.detail",example:"3",require:0,repeat:0}]},{functionName:tn.DELTA,functionType:Z.Engineering,description:"formula.functionList.DELTA.description",abstract:"formula.functionList.DELTA.abstract",functionParameter:[{name:"formula.functionList.DELTA.functionParameter.number1.name",detail:"formula.functionList.DELTA.functionParameter.number1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.DELTA.functionParameter.number2.name",detail:"formula.functionList.DELTA.functionParameter.number2.detail",example:"4",require:0,repeat:0}]},{functionName:tn.ERF,functionType:Z.Engineering,description:"formula.functionList.ERF.description",abstract:"formula.functionList.ERF.abstract",functionParameter:[{name:"formula.functionList.ERF.functionParameter.lowerLimit.name",detail:"formula.functionList.ERF.functionParameter.lowerLimit.detail",example:"0.745",require:1,repeat:0},{name:"formula.functionList.ERF.functionParameter.upperLimit.name",detail:"formula.functionList.ERF.functionParameter.upperLimit.detail",example:"2",require:0,repeat:0}]},{functionName:tn.ERF_PRECISE,functionType:Z.Engineering,description:"formula.functionList.ERF_PRECISE.description",abstract:"formula.functionList.ERF_PRECISE.abstract",functionParameter:[{name:"formula.functionList.ERF_PRECISE.functionParameter.x.name",detail:"formula.functionList.ERF_PRECISE.functionParameter.x.detail",example:"1",require:1,repeat:0}]},{functionName:tn.ERFC,functionType:Z.Engineering,description:"formula.functionList.ERFC.description",abstract:"formula.functionList.ERFC.abstract",functionParameter:[{name:"formula.functionList.ERFC.functionParameter.x.name",detail:"formula.functionList.ERFC.functionParameter.x.detail",example:"1",require:1,repeat:0}]},{functionName:tn.ERFC_PRECISE,functionType:Z.Engineering,description:"formula.functionList.ERFC_PRECISE.description",abstract:"formula.functionList.ERFC_PRECISE.abstract",functionParameter:[{name:"formula.functionList.ERFC_PRECISE.functionParameter.x.name",detail:"formula.functionList.ERFC_PRECISE.functionParameter.x.detail",example:"1",require:1,repeat:0}]},{functionName:tn.GESTEP,functionType:Z.Engineering,description:"formula.functionList.GESTEP.description",abstract:"formula.functionList.GESTEP.abstract",functionParameter:[{name:"formula.functionList.GESTEP.functionParameter.number.name",detail:"formula.functionList.GESTEP.functionParameter.number.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.GESTEP.functionParameter.step.name",detail:"formula.functionList.GESTEP.functionParameter.step.detail",example:"4",require:0,repeat:0}]},{functionName:tn.HEX2BIN,functionType:Z.Engineering,description:"formula.functionList.HEX2BIN.description",abstract:"formula.functionList.HEX2BIN.abstract",functionParameter:[{name:"formula.functionList.HEX2BIN.functionParameter.number.name",detail:"formula.functionList.HEX2BIN.functionParameter.number.detail",example:'"F"',require:1,repeat:0},{name:"formula.functionList.HEX2BIN.functionParameter.places.name",detail:"formula.functionList.HEX2BIN.functionParameter.places.detail",example:"8",require:0,repeat:0}]},{functionName:tn.HEX2DEC,functionType:Z.Engineering,description:"formula.functionList.HEX2DEC.description",abstract:"formula.functionList.HEX2DEC.abstract",functionParameter:[{name:"formula.functionList.HEX2DEC.functionParameter.number.name",detail:"formula.functionList.HEX2DEC.functionParameter.number.detail",example:'"A5"',require:1,repeat:0}]},{functionName:tn.HEX2OCT,functionType:Z.Engineering,description:"formula.functionList.HEX2OCT.description",abstract:"formula.functionList.HEX2OCT.abstract",functionParameter:[{name:"formula.functionList.HEX2OCT.functionParameter.number.name",detail:"formula.functionList.HEX2OCT.functionParameter.number.detail",example:'"F"',require:1,repeat:0},{name:"formula.functionList.HEX2OCT.functionParameter.places.name",detail:"formula.functionList.HEX2OCT.functionParameter.places.detail",example:"3",require:0,repeat:0}]},{functionName:tn.IMABS,functionType:Z.Engineering,description:"formula.functionList.IMABS.description",abstract:"formula.functionList.IMABS.abstract",functionParameter:[{name:"formula.functionList.IMABS.functionParameter.inumber.name",detail:"formula.functionList.IMABS.functionParameter.inumber.detail",example:'"5+12i"',require:1,repeat:0}]},{functionName:tn.IMAGINARY,functionType:Z.Engineering,description:"formula.functionList.IMAGINARY.description",abstract:"formula.functionList.IMAGINARY.abstract",functionParameter:[{name:"formula.functionList.IMAGINARY.functionParameter.inumber.name",detail:"formula.functionList.IMAGINARY.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMARGUMENT,functionType:Z.Engineering,description:"formula.functionList.IMARGUMENT.description",abstract:"formula.functionList.IMARGUMENT.abstract",functionParameter:[{name:"formula.functionList.IMARGUMENT.functionParameter.inumber.name",detail:"formula.functionList.IMARGUMENT.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMCONJUGATE,functionType:Z.Engineering,description:"formula.functionList.IMCONJUGATE.description",abstract:"formula.functionList.IMCONJUGATE.abstract",functionParameter:[{name:"formula.functionList.IMCONJUGATE.functionParameter.inumber.name",detail:"formula.functionList.IMCONJUGATE.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMCOS,functionType:Z.Engineering,description:"formula.functionList.IMCOS.description",abstract:"formula.functionList.IMCOS.abstract",functionParameter:[{name:"formula.functionList.IMCOS.functionParameter.inumber.name",detail:"formula.functionList.IMCOS.functionParameter.inumber.detail",example:'"1+i"',require:1,repeat:0}]},{functionName:tn.IMCOSH,functionType:Z.Engineering,description:"formula.functionList.IMCOSH.description",abstract:"formula.functionList.IMCOSH.abstract",functionParameter:[{name:"formula.functionList.IMCOSH.functionParameter.inumber.name",detail:"formula.functionList.IMCOSH.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMCOT,functionType:Z.Engineering,description:"formula.functionList.IMCOT.description",abstract:"formula.functionList.IMCOT.abstract",functionParameter:[{name:"formula.functionList.IMCOT.functionParameter.inumber.name",detail:"formula.functionList.IMCOT.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMCSC,functionType:Z.Engineering,description:"formula.functionList.IMCSC.description",abstract:"formula.functionList.IMCSC.abstract",functionParameter:[{name:"formula.functionList.IMCSC.functionParameter.inumber.name",detail:"formula.functionList.IMCSC.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMCSCH,functionType:Z.Engineering,description:"formula.functionList.IMCSCH.description",abstract:"formula.functionList.IMCSCH.abstract",functionParameter:[{name:"formula.functionList.IMCSCH.functionParameter.inumber.name",detail:"formula.functionList.IMCSCH.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMDIV,functionType:Z.Engineering,description:"formula.functionList.IMDIV.description",abstract:"formula.functionList.IMDIV.abstract",functionParameter:[{name:"formula.functionList.IMDIV.functionParameter.inumber1.name",detail:"formula.functionList.IMDIV.functionParameter.inumber1.detail",example:'"-238+240i"',require:1,repeat:0},{name:"formula.functionList.IMDIV.functionParameter.inumber2.name",detail:"formula.functionList.IMDIV.functionParameter.inumber2.detail",example:'"10+24i"',require:1,repeat:0}]},{functionName:tn.IMEXP,functionType:Z.Engineering,description:"formula.functionList.IMEXP.description",abstract:"formula.functionList.IMEXP.abstract",functionParameter:[{name:"formula.functionList.IMEXP.functionParameter.inumber.name",detail:"formula.functionList.IMEXP.functionParameter.inumber.detail",example:'"1+i"',require:1,repeat:0}]},{functionName:tn.IMLN,functionType:Z.Engineering,description:"formula.functionList.IMLN.description",abstract:"formula.functionList.IMLN.abstract",functionParameter:[{name:"formula.functionList.IMLN.functionParameter.inumber.name",detail:"formula.functionList.IMLN.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMLOG10,functionType:Z.Engineering,description:"formula.functionList.IMLOG10.description",abstract:"formula.functionList.IMLOG10.abstract",functionParameter:[{name:"formula.functionList.IMLOG10.functionParameter.inumber.name",detail:"formula.functionList.IMLOG10.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMLOG2,functionType:Z.Engineering,description:"formula.functionList.IMLOG2.description",abstract:"formula.functionList.IMLOG2.abstract",functionParameter:[{name:"formula.functionList.IMLOG2.functionParameter.inumber.name",detail:"formula.functionList.IMLOG2.functionParameter.inumber.detail",example:'"3+4i"',require:1,repeat:0}]},{functionName:tn.IMPOWER,functionType:Z.Engineering,description:"formula.functionList.IMPOWER.description",abstract:"formula.functionList.IMPOWER.abstract",functionParameter:[{name:"formula.functionList.IMPOWER.functionParameter.inumber.name",detail:"formula.functionList.IMPOWER.functionParameter.inumber.detail",example:'"2+3i"',require:1,repeat:0},{name:"formula.functionList.IMPOWER.functionParameter.number.name",detail:"formula.functionList.IMPOWER.functionParameter.number.detail",example:"3",require:1,repeat:0}]},{functionName:tn.IMPRODUCT,functionType:Z.Engineering,description:"formula.functionList.IMPRODUCT.description",abstract:"formula.functionList.IMPRODUCT.abstract",functionParameter:[{name:"formula.functionList.IMPRODUCT.functionParameter.inumber1.name",detail:"formula.functionList.IMPRODUCT.functionParameter.inumber1.detail",example:'"3+4i"',require:1,repeat:0},{name:"formula.functionList.IMPRODUCT.functionParameter.inumber2.name",detail:"formula.functionList.IMPRODUCT.functionParameter.inumber2.detail",example:'"5-3i"',require:0,repeat:1}]},{functionName:tn.IMREAL,functionType:Z.Engineering,description:"formula.functionList.IMREAL.description",abstract:"formula.functionList.IMREAL.abstract",functionParameter:[{name:"formula.functionList.IMREAL.functionParameter.inumber.name",detail:"formula.functionList.IMREAL.functionParameter.inumber.detail",example:'"6-9i"',require:1,repeat:0}]},{functionName:tn.IMSEC,functionType:Z.Engineering,description:"formula.functionList.IMSEC.description",abstract:"formula.functionList.IMSEC.abstract",functionParameter:[{name:"formula.functionList.IMSEC.functionParameter.inumber.name",detail:"formula.functionList.IMSEC.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMSECH,functionType:Z.Engineering,description:"formula.functionList.IMSECH.description",abstract:"formula.functionList.IMSECH.abstract",functionParameter:[{name:"formula.functionList.IMSECH.functionParameter.inumber.name",detail:"formula.functionList.IMSECH.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMSIN,functionType:Z.Engineering,description:"formula.functionList.IMSIN.description",abstract:"formula.functionList.IMSIN.abstract",functionParameter:[{name:"formula.functionList.IMSIN.functionParameter.inumber.name",detail:"formula.functionList.IMSIN.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMSINH,functionType:Z.Engineering,description:"formula.functionList.IMSINH.description",abstract:"formula.functionList.IMSINH.abstract",functionParameter:[{name:"formula.functionList.IMSINH.functionParameter.inumber.name",detail:"formula.functionList.IMSINH.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.IMSQRT,functionType:Z.Engineering,description:"formula.functionList.IMSQRT.description",abstract:"formula.functionList.IMSQRT.abstract",functionParameter:[{name:"formula.functionList.IMSQRT.functionParameter.inumber.name",detail:"formula.functionList.IMSQRT.functionParameter.inumber.detail",example:'"1+i"',require:1,repeat:0}]},{functionName:tn.IMSUB,functionType:Z.Engineering,description:"formula.functionList.IMSUB.description",abstract:"formula.functionList.IMSUB.abstract",functionParameter:[{name:"formula.functionList.IMSUB.functionParameter.inumber1.name",detail:"formula.functionList.IMSUB.functionParameter.inumber1.detail",example:'"13+4i"',require:1,repeat:0},{name:"formula.functionList.IMSUB.functionParameter.inumber2.name",detail:"formula.functionList.IMSUB.functionParameter.inumber2.detail",example:'"5+3i"',require:1,repeat:0}]},{functionName:tn.IMSUM,functionType:Z.Engineering,description:"formula.functionList.IMSUM.description",abstract:"formula.functionList.IMSUM.abstract",functionParameter:[{name:"formula.functionList.IMSUM.functionParameter.inumber1.name",detail:"formula.functionList.IMSUM.functionParameter.inumber1.detail",example:'"3+4i"',require:1,repeat:0},{name:"formula.functionList.IMSUM.functionParameter.inumber2.name",detail:"formula.functionList.IMSUM.functionParameter.inumber2.detail",example:'"5-3i"',require:0,repeat:1}]},{functionName:tn.IMTAN,functionType:Z.Engineering,description:"formula.functionList.IMTAN.description",abstract:"formula.functionList.IMTAN.abstract",functionParameter:[{name:"formula.functionList.IMTAN.functionParameter.inumber.name",detail:"formula.functionList.IMTAN.functionParameter.inumber.detail",example:'"4+3i"',require:1,repeat:0}]},{functionName:tn.OCT2BIN,functionType:Z.Engineering,description:"formula.functionList.OCT2BIN.description",abstract:"formula.functionList.OCT2BIN.abstract",functionParameter:[{name:"formula.functionList.OCT2BIN.functionParameter.number.name",detail:"formula.functionList.OCT2BIN.functionParameter.number.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.OCT2BIN.functionParameter.places.name",detail:"formula.functionList.OCT2BIN.functionParameter.places.detail",example:"3",require:0,repeat:0}]},{functionName:tn.OCT2DEC,functionType:Z.Engineering,description:"formula.functionList.OCT2DEC.description",abstract:"formula.functionList.OCT2DEC.abstract",functionParameter:[{name:"formula.functionList.OCT2DEC.functionParameter.number.name",detail:"formula.functionList.OCT2DEC.functionParameter.number.detail",example:"54",require:1,repeat:0}]},{functionName:tn.OCT2HEX,functionType:Z.Engineering,description:"formula.functionList.OCT2HEX.description",abstract:"formula.functionList.OCT2HEX.abstract",functionParameter:[{name:"formula.functionList.OCT2HEX.functionParameter.number.name",detail:"formula.functionList.OCT2HEX.functionParameter.number.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.OCT2HEX.functionParameter.places.name",detail:"formula.functionList.OCT2HEX.functionParameter.places.detail",example:"4",require:0,repeat:0}]}],rnn=[{functionName:Qt.ACCRINT,functionType:Z.Financial,description:"formula.functionList.ACCRINT.description",abstract:"formula.functionList.ACCRINT.abstract",functionParameter:[{name:"formula.functionList.ACCRINT.functionParameter.issue.name",detail:"formula.functionList.ACCRINT.functionParameter.issue.detail",example:"39508",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.firstInterest.name",detail:"formula.functionList.ACCRINT.functionParameter.firstInterest.detail",example:"39691",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.settlement.name",detail:"formula.functionList.ACCRINT.functionParameter.settlement.detail",example:"39569",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.rate.name",detail:"formula.functionList.ACCRINT.functionParameter.rate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.par.name",detail:"formula.functionList.ACCRINT.functionParameter.par.detail",example:"1000",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.frequency.name",detail:"formula.functionList.ACCRINT.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.basis.name",detail:"formula.functionList.ACCRINT.functionParameter.basis.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.ACCRINT.functionParameter.calcMethod.name",detail:"formula.functionList.ACCRINT.functionParameter.calcMethod.detail",example:"true",require:0,repeat:0}]},{functionName:Qt.ACCRINTM,functionType:Z.Financial,description:"formula.functionList.ACCRINTM.description",abstract:"formula.functionList.ACCRINTM.abstract",functionParameter:[{name:"formula.functionList.ACCRINTM.functionParameter.issue.name",detail:"formula.functionList.ACCRINTM.functionParameter.issue.detail",example:'"2008-4-1"',require:1,repeat:0},{name:"formula.functionList.ACCRINTM.functionParameter.settlement.name",detail:"formula.functionList.ACCRINTM.functionParameter.settlement.detail",example:'"2008-6-15"',require:1,repeat:0},{name:"formula.functionList.ACCRINTM.functionParameter.rate.name",detail:"formula.functionList.ACCRINTM.functionParameter.rate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.ACCRINTM.functionParameter.par.name",detail:"formula.functionList.ACCRINTM.functionParameter.par.detail",example:"1000",require:1,repeat:0},{name:"formula.functionList.ACCRINTM.functionParameter.basis.name",detail:"formula.functionList.ACCRINTM.functionParameter.basis.detail",example:"3",require:0,repeat:0}]},{functionName:Qt.AMORDEGRC,functionType:Z.Financial,description:"formula.functionList.AMORDEGRC.description",abstract:"formula.functionList.AMORDEGRC.abstract",functionParameter:[{name:"formula.functionList.AMORDEGRC.functionParameter.number1.name",detail:"formula.functionList.AMORDEGRC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AMORDEGRC.functionParameter.number2.name",detail:"formula.functionList.AMORDEGRC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Qt.AMORLINC,functionType:Z.Financial,description:"formula.functionList.AMORLINC.description",abstract:"formula.functionList.AMORLINC.abstract",functionParameter:[{name:"formula.functionList.AMORLINC.functionParameter.cost.name",detail:"formula.functionList.AMORLINC.functionParameter.cost.detail",example:"2400",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.datePurchased.name",detail:"formula.functionList.AMORLINC.functionParameter.datePurchased.detail",example:"39679",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.firstPeriod.name",detail:"formula.functionList.AMORLINC.functionParameter.firstPeriod.detail",example:"39813",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.salvage.name",detail:"formula.functionList.AMORLINC.functionParameter.salvage.detail",example:"300",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.period.name",detail:"formula.functionList.AMORLINC.functionParameter.period.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.rate.name",detail:"formula.functionList.AMORLINC.functionParameter.rate.detail",example:"0.15",require:1,repeat:0},{name:"formula.functionList.AMORLINC.functionParameter.basis.name",detail:"formula.functionList.AMORLINC.functionParameter.basis.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.COUPDAYBS,functionType:Z.Financial,description:"formula.functionList.COUPDAYBS.description",abstract:"formula.functionList.COUPDAYBS.abstract",functionParameter:[{name:"formula.functionList.COUPDAYBS.functionParameter.settlement.name",detail:"formula.functionList.COUPDAYBS.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPDAYBS.functionParameter.maturity.name",detail:"formula.functionList.COUPDAYBS.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPDAYBS.functionParameter.frequency.name",detail:"formula.functionList.COUPDAYBS.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPDAYBS.functionParameter.basis.name",detail:"formula.functionList.COUPDAYBS.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.COUPDAYS,functionType:Z.Financial,description:"formula.functionList.COUPDAYS.description",abstract:"formula.functionList.COUPDAYS.abstract",functionParameter:[{name:"formula.functionList.COUPDAYS.functionParameter.settlement.name",detail:"formula.functionList.COUPDAYS.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPDAYS.functionParameter.maturity.name",detail:"formula.functionList.COUPDAYS.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPDAYS.functionParameter.frequency.name",detail:"formula.functionList.COUPDAYS.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPDAYS.functionParameter.basis.name",detail:"formula.functionList.COUPDAYS.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.COUPDAYSNC,functionType:Z.Financial,description:"formula.functionList.COUPDAYSNC.description",abstract:"formula.functionList.COUPDAYSNC.abstract",functionParameter:[{name:"formula.functionList.COUPDAYSNC.functionParameter.settlement.name",detail:"formula.functionList.COUPDAYSNC.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPDAYSNC.functionParameter.maturity.name",detail:"formula.functionList.COUPDAYSNC.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPDAYSNC.functionParameter.frequency.name",detail:"formula.functionList.COUPDAYSNC.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPDAYSNC.functionParameter.basis.name",detail:"formula.functionList.COUPDAYSNC.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.COUPNCD,functionType:Z.Financial,description:"formula.functionList.COUPNCD.description",abstract:"formula.functionList.COUPNCD.abstract",functionParameter:[{name:"formula.functionList.COUPNCD.functionParameter.settlement.name",detail:"formula.functionList.COUPNCD.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPNCD.functionParameter.maturity.name",detail:"formula.functionList.COUPNCD.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPNCD.functionParameter.frequency.name",detail:"formula.functionList.COUPNCD.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPNCD.functionParameter.basis.name",detail:"formula.functionList.COUPNCD.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.COUPNUM,functionType:Z.Financial,description:"formula.functionList.COUPNUM.description",abstract:"formula.functionList.COUPNUM.abstract",functionParameter:[{name:"formula.functionList.COUPNUM.functionParameter.settlement.name",detail:"formula.functionList.COUPNUM.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPNUM.functionParameter.maturity.name",detail:"formula.functionList.COUPNUM.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPNUM.functionParameter.frequency.name",detail:"formula.functionList.COUPNUM.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPNUM.functionParameter.basis.name",detail:"formula.functionList.COUPNUM.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.COUPPCD,functionType:Z.Financial,description:"formula.functionList.COUPPCD.description",abstract:"formula.functionList.COUPPCD.abstract",functionParameter:[{name:"formula.functionList.COUPPCD.functionParameter.settlement.name",detail:"formula.functionList.COUPPCD.functionParameter.settlement.detail",example:'"2011-1-25"',require:1,repeat:0},{name:"formula.functionList.COUPPCD.functionParameter.maturity.name",detail:"formula.functionList.COUPPCD.functionParameter.maturity.detail",example:'"2011-11-15"',require:1,repeat:0},{name:"formula.functionList.COUPPCD.functionParameter.frequency.name",detail:"formula.functionList.COUPPCD.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.COUPPCD.functionParameter.basis.name",detail:"formula.functionList.COUPPCD.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.CUMIPMT,functionType:Z.Financial,description:"formula.functionList.CUMIPMT.description",abstract:"formula.functionList.CUMIPMT.abstract",functionParameter:[{name:"formula.functionList.CUMIPMT.functionParameter.rate.name",detail:"formula.functionList.CUMIPMT.functionParameter.rate.detail",example:"0.09/12",require:1,repeat:0},{name:"formula.functionList.CUMIPMT.functionParameter.nper.name",detail:"formula.functionList.CUMIPMT.functionParameter.nper.detail",example:"30*12",require:1,repeat:0},{name:"formula.functionList.CUMIPMT.functionParameter.pv.name",detail:"formula.functionList.CUMIPMT.functionParameter.pv.detail",example:"125000",require:1,repeat:0},{name:"formula.functionList.CUMIPMT.functionParameter.startPeriod.name",detail:"formula.functionList.CUMIPMT.functionParameter.startPeriod.detail",example:"13",require:1,repeat:0},{name:"formula.functionList.CUMIPMT.functionParameter.endPeriod.name",detail:"formula.functionList.CUMIPMT.functionParameter.endPeriod.detail",example:"24",require:1,repeat:0},{name:"formula.functionList.CUMIPMT.functionParameter.type.name",detail:"formula.functionList.CUMIPMT.functionParameter.type.detail",example:"0",require:1,repeat:0}]},{functionName:Qt.CUMPRINC,functionType:Z.Financial,description:"formula.functionList.CUMPRINC.description",abstract:"formula.functionList.CUMPRINC.abstract",functionParameter:[{name:"formula.functionList.CUMPRINC.functionParameter.rate.name",detail:"formula.functionList.CUMPRINC.functionParameter.rate.detail",example:"0.09/12",require:1,repeat:0},{name:"formula.functionList.CUMPRINC.functionParameter.nper.name",detail:"formula.functionList.CUMPRINC.functionParameter.nper.detail",example:"30*12",require:1,repeat:0},{name:"formula.functionList.CUMPRINC.functionParameter.pv.name",detail:"formula.functionList.CUMPRINC.functionParameter.pv.detail",example:"125000",require:1,repeat:0},{name:"formula.functionList.CUMPRINC.functionParameter.startPeriod.name",detail:"formula.functionList.CUMPRINC.functionParameter.startPeriod.detail",example:"13",require:1,repeat:0},{name:"formula.functionList.CUMPRINC.functionParameter.endPeriod.name",detail:"formula.functionList.CUMPRINC.functionParameter.endPeriod.detail",example:"24",require:1,repeat:0},{name:"formula.functionList.CUMPRINC.functionParameter.type.name",detail:"formula.functionList.CUMPRINC.functionParameter.type.detail",example:"0",require:1,repeat:0}]},{functionName:Qt.DB,functionType:Z.Financial,description:"formula.functionList.DB.description",abstract:"formula.functionList.DB.abstract",functionParameter:[{name:"formula.functionList.DB.functionParameter.cost.name",detail:"formula.functionList.DB.functionParameter.cost.detail",example:"10000000",require:1,repeat:0},{name:"formula.functionList.DB.functionParameter.salvage.name",detail:"formula.functionList.DB.functionParameter.salvage.detail",example:"1000000",require:1,repeat:0},{name:"formula.functionList.DB.functionParameter.life.name",detail:"formula.functionList.DB.functionParameter.life.detail",example:"6",require:1,repeat:0},{name:"formula.functionList.DB.functionParameter.period.name",detail:"formula.functionList.DB.functionParameter.period.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.DB.functionParameter.month.name",detail:"formula.functionList.DB.functionParameter.month.detail",example:"7",require:0,repeat:0}]},{functionName:Qt.DDB,functionType:Z.Financial,description:"formula.functionList.DDB.description",abstract:"formula.functionList.DDB.abstract",functionParameter:[{name:"formula.functionList.DDB.functionParameter.cost.name",detail:"formula.functionList.DDB.functionParameter.cost.detail",example:"24000",require:1,repeat:0},{name:"formula.functionList.DDB.functionParameter.salvage.name",detail:"formula.functionList.DDB.functionParameter.salvage.detail",example:"3000",require:1,repeat:0},{name:"formula.functionList.DDB.functionParameter.life.name",detail:"formula.functionList.DDB.functionParameter.life.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.DDB.functionParameter.period.name",detail:"formula.functionList.DDB.functionParameter.period.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.DDB.functionParameter.factor.name",detail:"formula.functionList.DDB.functionParameter.factor.detail",example:"2",require:0,repeat:0}]},{functionName:Qt.DISC,functionType:Z.Financial,description:"formula.functionList.DISC.description",abstract:"formula.functionList.DISC.abstract",functionParameter:[{name:"formula.functionList.DISC.functionParameter.settlement.name",detail:"formula.functionList.DISC.functionParameter.settlement.detail",example:'"2018-7-1"',require:1,repeat:0},{name:"formula.functionList.DISC.functionParameter.maturity.name",detail:"formula.functionList.DISC.functionParameter.maturity.detail",example:'"2048-1-1"',require:1,repeat:0},{name:"formula.functionList.DISC.functionParameter.pr.name",detail:"formula.functionList.DISC.functionParameter.pr.detail",example:"97.975",require:1,repeat:0},{name:"formula.functionList.DISC.functionParameter.redemption.name",detail:"formula.functionList.DISC.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.DISC.functionParameter.basis.name",detail:"formula.functionList.DISC.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.DOLLARDE,functionType:Z.Financial,description:"formula.functionList.DOLLARDE.description",abstract:"formula.functionList.DOLLARDE.abstract",functionParameter:[{name:"formula.functionList.DOLLARDE.functionParameter.fractionalDollar.name",detail:"formula.functionList.DOLLARDE.functionParameter.fractionalDollar.detail",example:"1.02",require:1,repeat:0},{name:"formula.functionList.DOLLARDE.functionParameter.fraction.name",detail:"formula.functionList.DOLLARDE.functionParameter.fraction.detail",example:"16",require:1,repeat:0}]},{functionName:Qt.DOLLARFR,functionType:Z.Financial,description:"formula.functionList.DOLLARFR.description",abstract:"formula.functionList.DOLLARFR.abstract",functionParameter:[{name:"formula.functionList.DOLLARFR.functionParameter.decimalDollar.name",detail:"formula.functionList.DOLLARFR.functionParameter.decimalDollar.detail",example:"1.125",require:1,repeat:0},{name:"formula.functionList.DOLLARFR.functionParameter.fraction.name",detail:"formula.functionList.DOLLARFR.functionParameter.fraction.detail",example:"16",require:1,repeat:0}]},{functionName:Qt.DURATION,functionType:Z.Financial,description:"formula.functionList.DURATION.description",abstract:"formula.functionList.DURATION.abstract",functionParameter:[{name:"formula.functionList.DURATION.functionParameter.settlement.name",detail:"formula.functionList.DURATION.functionParameter.settlement.detail",example:'"2018-7-1"',require:1,repeat:0},{name:"formula.functionList.DURATION.functionParameter.maturity.name",detail:"formula.functionList.DURATION.functionParameter.maturity.detail",example:'"2048-1-1"',require:1,repeat:0},{name:"formula.functionList.DURATION.functionParameter.coupon.name",detail:"formula.functionList.DURATION.functionParameter.coupon.detail",example:"0.08",require:1,repeat:0},{name:"formula.functionList.DURATION.functionParameter.yld.name",detail:"formula.functionList.DURATION.functionParameter.yld.detail",example:"0.09",require:1,repeat:0},{name:"formula.functionList.DURATION.functionParameter.frequency.name",detail:"formula.functionList.DURATION.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.DURATION.functionParameter.basis.name",detail:"formula.functionList.DURATION.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.EFFECT,functionType:Z.Financial,description:"formula.functionList.EFFECT.description",abstract:"formula.functionList.EFFECT.abstract",functionParameter:[{name:"formula.functionList.EFFECT.functionParameter.nominalRate.name",detail:"formula.functionList.EFFECT.functionParameter.nominalRate.detail",example:"0.0525",require:1,repeat:0},{name:"formula.functionList.EFFECT.functionParameter.npery.name",detail:"formula.functionList.EFFECT.functionParameter.npery.detail",example:"4",require:1,repeat:0}]},{functionName:Qt.FV,functionType:Z.Financial,description:"formula.functionList.FV.description",abstract:"formula.functionList.FV.abstract",functionParameter:[{name:"formula.functionList.FV.functionParameter.rate.name",detail:"formula.functionList.FV.functionParameter.rate.detail",example:"0.06/12",require:1,repeat:0},{name:"formula.functionList.FV.functionParameter.nper.name",detail:"formula.functionList.FV.functionParameter.nper.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.FV.functionParameter.pmt.name",detail:"formula.functionList.FV.functionParameter.pmt.detail",example:"-200",require:1,repeat:0},{name:"formula.functionList.FV.functionParameter.pv.name",detail:"formula.functionList.FV.functionParameter.pv.detail",example:"-500",require:0,repeat:0},{name:"formula.functionList.FV.functionParameter.type.name",detail:"formula.functionList.FV.functionParameter.type.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.FVSCHEDULE,functionType:Z.Financial,description:"formula.functionList.FVSCHEDULE.description",abstract:"formula.functionList.FVSCHEDULE.abstract",functionParameter:[{name:"formula.functionList.FVSCHEDULE.functionParameter.principal.name",detail:"formula.functionList.FVSCHEDULE.functionParameter.principal.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.FVSCHEDULE.functionParameter.schedule.name",detail:"formula.functionList.FVSCHEDULE.functionParameter.schedule.detail",example:"{0.09,0.11,0.1}",require:1,repeat:0}]},{functionName:Qt.INTRATE,functionType:Z.Financial,description:"formula.functionList.INTRATE.description",abstract:"formula.functionList.INTRATE.abstract",functionParameter:[{name:"formula.functionList.INTRATE.functionParameter.settlement.name",detail:"formula.functionList.INTRATE.functionParameter.settlement.detail",example:'"2008-2-15"',require:1,repeat:0},{name:"formula.functionList.INTRATE.functionParameter.maturity.name",detail:"formula.functionList.INTRATE.functionParameter.maturity.detail",example:'"2008-5-15"',require:1,repeat:0},{name:"formula.functionList.INTRATE.functionParameter.investment.name",detail:"formula.functionList.INTRATE.functionParameter.investment.detail",example:"10000000",require:1,repeat:0},{name:"formula.functionList.INTRATE.functionParameter.redemption.name",detail:"formula.functionList.INTRATE.functionParameter.redemption.detail",example:"10144200",require:1,repeat:0},{name:"formula.functionList.INTRATE.functionParameter.basis.name",detail:"formula.functionList.INTRATE.functionParameter.basis.detail",example:"2",require:0,repeat:0}]},{functionName:Qt.IPMT,functionType:Z.Financial,description:"formula.functionList.IPMT.description",abstract:"formula.functionList.IPMT.abstract",functionParameter:[{name:"formula.functionList.IPMT.functionParameter.rate.name",detail:"formula.functionList.IPMT.functionParameter.rate.detail",example:"0.1/12",require:1,repeat:0},{name:"formula.functionList.IPMT.functionParameter.per.name",detail:"formula.functionList.IPMT.functionParameter.per.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.IPMT.functionParameter.nper.name",detail:"formula.functionList.IPMT.functionParameter.nper.detail",example:"3*12",require:1,repeat:0},{name:"formula.functionList.IPMT.functionParameter.pv.name",detail:"formula.functionList.IPMT.functionParameter.pv.detail",example:"80000",require:1,repeat:0},{name:"formula.functionList.IPMT.functionParameter.fv.name",detail:"formula.functionList.IPMT.functionParameter.fv.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.IPMT.functionParameter.type.name",detail:"formula.functionList.IPMT.functionParameter.type.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.IRR,functionType:Z.Financial,description:"formula.functionList.IRR.description",abstract:"formula.functionList.IRR.abstract",functionParameter:[{name:"formula.functionList.IRR.functionParameter.values.name",detail:"formula.functionList.IRR.functionParameter.values.detail",example:"{-700000,120000,150000,180000,210000,260000}",require:1,repeat:0},{name:"formula.functionList.IRR.functionParameter.guess.name",detail:"formula.functionList.IRR.functionParameter.guess.detail",example:"0.1",require:0,repeat:0}]},{functionName:Qt.ISPMT,functionType:Z.Financial,description:"formula.functionList.ISPMT.description",abstract:"formula.functionList.ISPMT.abstract",functionParameter:[{name:"formula.functionList.ISPMT.functionParameter.rate.name",detail:"formula.functionList.ISPMT.functionParameter.rate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.ISPMT.functionParameter.per.name",detail:"formula.functionList.ISPMT.functionParameter.per.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ISPMT.functionParameter.nper.name",detail:"formula.functionList.ISPMT.functionParameter.nper.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.ISPMT.functionParameter.pv.name",detail:"formula.functionList.ISPMT.functionParameter.pv.detail",example:"1000",require:1,repeat:0}]},{functionName:Qt.MDURATION,functionType:Z.Financial,description:"formula.functionList.MDURATION.description",abstract:"formula.functionList.MDURATION.abstract",functionParameter:[{name:"formula.functionList.MDURATION.functionParameter.settlement.name",detail:"formula.functionList.MDURATION.functionParameter.settlement.detail",example:'"2018-7-1"',require:1,repeat:0},{name:"formula.functionList.MDURATION.functionParameter.maturity.name",detail:"formula.functionList.MDURATION.functionParameter.maturity.detail",example:'"2048-1-1"',require:1,repeat:0},{name:"formula.functionList.MDURATION.functionParameter.coupon.name",detail:"formula.functionList.MDURATION.functionParameter.coupon.detail",example:"0.08",require:1,repeat:0},{name:"formula.functionList.MDURATION.functionParameter.yld.name",detail:"formula.functionList.MDURATION.functionParameter.yld.detail",example:"0.09",require:1,repeat:0},{name:"formula.functionList.MDURATION.functionParameter.frequency.name",detail:"formula.functionList.MDURATION.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.MDURATION.functionParameter.basis.name",detail:"formula.functionList.MDURATION.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.MIRR,functionType:Z.Financial,description:"formula.functionList.MIRR.description",abstract:"formula.functionList.MIRR.abstract",functionParameter:[{name:"formula.functionList.MIRR.functionParameter.values.name",detail:"formula.functionList.MIRR.functionParameter.values.detail",example:"{-120000,39000,30000,21000,37000,46000}",require:1,repeat:0},{name:"formula.functionList.MIRR.functionParameter.financeRate.name",detail:"formula.functionList.MIRR.functionParameter.financeRate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.MIRR.functionParameter.reinvestRate.name",detail:"formula.functionList.MIRR.functionParameter.reinvestRate.detail",example:"0.12",require:1,repeat:0}]},{functionName:Qt.NOMINAL,functionType:Z.Financial,description:"formula.functionList.NOMINAL.description",abstract:"formula.functionList.NOMINAL.abstract",functionParameter:[{name:"formula.functionList.NOMINAL.functionParameter.effectRate.name",detail:"formula.functionList.NOMINAL.functionParameter.effectRate.detail",example:"0.053543",require:1,repeat:0},{name:"formula.functionList.NOMINAL.functionParameter.npery.name",detail:"formula.functionList.NOMINAL.functionParameter.npery.detail",example:"4",require:1,repeat:0}]},{functionName:Qt.NPER,functionType:Z.Financial,description:"formula.functionList.NPER.description",abstract:"formula.functionList.NPER.abstract",functionParameter:[{name:"formula.functionList.NPER.functionParameter.rate.name",detail:"formula.functionList.NPER.functionParameter.rate.detail",example:"0.12/12",require:1,repeat:0},{name:"formula.functionList.NPER.functionParameter.pmt.name",detail:"formula.functionList.NPER.functionParameter.pmt.detail",example:"-100",require:1,repeat:0},{name:"formula.functionList.NPER.functionParameter.pv.name",detail:"formula.functionList.NPER.functionParameter.pv.detail",example:"-1000",require:1,repeat:0},{name:"formula.functionList.NPER.functionParameter.fv.name",detail:"formula.functionList.NPER.functionParameter.fv.detail",example:"10000",require:0,repeat:0},{name:"formula.functionList.NPER.functionParameter.type.name",detail:"formula.functionList.NPER.functionParameter.type.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.NPV,functionType:Z.Financial,description:"formula.functionList.NPV.description",abstract:"formula.functionList.NPV.abstract",functionParameter:[{name:"formula.functionList.NPV.functionParameter.rate.name",detail:"formula.functionList.NPV.functionParameter.rate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.NPV.functionParameter.value1.name",detail:"formula.functionList.NPV.functionParameter.value1.detail",example:"{-10000,3000,4200,6800}",require:1,repeat:0},{name:"formula.functionList.NPV.functionParameter.value2.name",detail:"formula.functionList.NPV.functionParameter.value2.detail",example:"-9000",require:0,repeat:1}]},{functionName:Qt.ODDFPRICE,functionType:Z.Financial,description:"formula.functionList.ODDFPRICE.description",abstract:"formula.functionList.ODDFPRICE.abstract",functionParameter:[{name:"formula.functionList.ODDFPRICE.functionParameter.settlement.name",detail:"formula.functionList.ODDFPRICE.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.maturity.name",detail:"formula.functionList.ODDFPRICE.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.issue.name",detail:"formula.functionList.ODDFPRICE.functionParameter.issue.detail",example:'"2008-10-15"',require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.firstCoupon.name",detail:"formula.functionList.ODDFPRICE.functionParameter.firstCoupon.detail",example:'"2009-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.rate.name",detail:"formula.functionList.ODDFPRICE.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.yld.name",detail:"formula.functionList.ODDFPRICE.functionParameter.yld.detail",example:"0.0625",require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.redemption.name",detail:"formula.functionList.ODDFPRICE.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.frequency.name",detail:"formula.functionList.ODDFPRICE.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ODDFPRICE.functionParameter.basis.name",detail:"formula.functionList.ODDFPRICE.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.ODDFYIELD,functionType:Z.Financial,description:"formula.functionList.ODDFYIELD.description",abstract:"formula.functionList.ODDFYIELD.abstract",functionParameter:[{name:"formula.functionList.ODDFYIELD.functionParameter.settlement.name",detail:"formula.functionList.ODDFYIELD.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.maturity.name",detail:"formula.functionList.ODDFYIELD.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.issue.name",detail:"formula.functionList.ODDFYIELD.functionParameter.issue.detail",example:'"2008-10-15"',require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.firstCoupon.name",detail:"formula.functionList.ODDFYIELD.functionParameter.firstCoupon.detail",example:'"2009-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.rate.name",detail:"formula.functionList.ODDFYIELD.functionParameter.rate.detail",example:"0.0575",require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.pr.name",detail:"formula.functionList.ODDFYIELD.functionParameter.pr.detail",example:"84.5",require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.redemption.name",detail:"formula.functionList.ODDFYIELD.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.frequency.name",detail:"formula.functionList.ODDFYIELD.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ODDFYIELD.functionParameter.basis.name",detail:"formula.functionList.ODDFYIELD.functionParameter.basis.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.ODDLPRICE,functionType:Z.Financial,description:"formula.functionList.ODDLPRICE.description",abstract:"formula.functionList.ODDLPRICE.abstract",functionParameter:[{name:"formula.functionList.ODDLPRICE.functionParameter.settlement.name",detail:"formula.functionList.ODDLPRICE.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.maturity.name",detail:"formula.functionList.ODDLPRICE.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.lastInterest.name",detail:"formula.functionList.ODDLPRICE.functionParameter.lastInterest.detail",example:'"2009-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.rate.name",detail:"formula.functionList.ODDLPRICE.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.yld.name",detail:"formula.functionList.ODDLPRICE.functionParameter.yld.detail",example:"0.0625",require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.redemption.name",detail:"formula.functionList.ODDLPRICE.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.frequency.name",detail:"formula.functionList.ODDLPRICE.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ODDLPRICE.functionParameter.basis.name",detail:"formula.functionList.ODDLPRICE.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.ODDLYIELD,functionType:Z.Financial,description:"formula.functionList.ODDLYIELD.description",abstract:"formula.functionList.ODDLYIELD.abstract",functionParameter:[{name:"formula.functionList.ODDLYIELD.functionParameter.settlement.name",detail:"formula.functionList.ODDLYIELD.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.maturity.name",detail:"formula.functionList.ODDLYIELD.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.lastInterest.name",detail:"formula.functionList.ODDLYIELD.functionParameter.lastInterest.detail",example:'"2008-10-15"',require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.rate.name",detail:"formula.functionList.ODDLYIELD.functionParameter.rate.detail",example:"0.0575",require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.pr.name",detail:"formula.functionList.ODDLYIELD.functionParameter.pr.detail",example:"84.5",require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.redemption.name",detail:"formula.functionList.ODDLYIELD.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.frequency.name",detail:"formula.functionList.ODDLYIELD.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ODDLYIELD.functionParameter.basis.name",detail:"formula.functionList.ODDLYIELD.functionParameter.basis.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.PDURATION,functionType:Z.Financial,description:"formula.functionList.PDURATION.description",abstract:"formula.functionList.PDURATION.abstract",functionParameter:[{name:"formula.functionList.PDURATION.functionParameter.rate.name",detail:"formula.functionList.PDURATION.functionParameter.rate.detail",example:"0.025",require:1,repeat:0},{name:"formula.functionList.PDURATION.functionParameter.pv.name",detail:"formula.functionList.PDURATION.functionParameter.pv.detail",example:"2000",require:1,repeat:0},{name:"formula.functionList.PDURATION.functionParameter.fv.name",detail:"formula.functionList.PDURATION.functionParameter.fv.detail",example:"2200",require:1,repeat:0}]},{functionName:Qt.PMT,functionType:Z.Financial,description:"formula.functionList.PMT.description",abstract:"formula.functionList.PMT.abstract",functionParameter:[{name:"formula.functionList.PMT.functionParameter.rate.name",detail:"formula.functionList.PMT.functionParameter.rate.detail",example:"0.08/12",require:1,repeat:0},{name:"formula.functionList.PMT.functionParameter.nper.name",detail:"formula.functionList.PMT.functionParameter.nper.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.PMT.functionParameter.pv.name",detail:"formula.functionList.PMT.functionParameter.pv.detail",example:"10000",require:1,repeat:0},{name:"formula.functionList.PMT.functionParameter.fv.name",detail:"formula.functionList.PMT.functionParameter.fv.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.PMT.functionParameter.type.name",detail:"formula.functionList.PMT.functionParameter.type.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.PPMT,functionType:Z.Financial,description:"formula.functionList.PPMT.description",abstract:"formula.functionList.PPMT.abstract",functionParameter:[{name:"formula.functionList.PPMT.functionParameter.rate.name",detail:"formula.functionList.PPMT.functionParameter.rate.detail",example:"0.1/12",require:1,repeat:0},{name:"formula.functionList.PPMT.functionParameter.per.name",detail:"formula.functionList.PPMT.functionParameter.per.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.PPMT.functionParameter.nper.name",detail:"formula.functionList.PPMT.functionParameter.nper.detail",example:"3*12",require:1,repeat:0},{name:"formula.functionList.PPMT.functionParameter.pv.name",detail:"formula.functionList.PPMT.functionParameter.pv.detail",example:"80000",require:1,repeat:0},{name:"formula.functionList.PPMT.functionParameter.fv.name",detail:"formula.functionList.PPMT.functionParameter.fv.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.PPMT.functionParameter.type.name",detail:"formula.functionList.PPMT.functionParameter.type.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.PRICE,functionType:Z.Financial,description:"formula.functionList.PRICE.description",abstract:"formula.functionList.PRICE.abstract",functionParameter:[{name:"formula.functionList.PRICE.functionParameter.settlement.name",detail:"formula.functionList.PRICE.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.maturity.name",detail:"formula.functionList.PRICE.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.rate.name",detail:"formula.functionList.PRICE.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.yld.name",detail:"formula.functionList.PRICE.functionParameter.yld.detail",example:"0.0625",require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.redemption.name",detail:"formula.functionList.PRICE.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.frequency.name",detail:"formula.functionList.PRICE.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.PRICE.functionParameter.basis.name",detail:"formula.functionList.PRICE.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.PRICEDISC,functionType:Z.Financial,description:"formula.functionList.PRICEDISC.description",abstract:"formula.functionList.PRICEDISC.abstract",functionParameter:[{name:"formula.functionList.PRICEDISC.functionParameter.settlement.name",detail:"formula.functionList.PRICEDISC.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.PRICEDISC.functionParameter.maturity.name",detail:"formula.functionList.PRICEDISC.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.PRICEDISC.functionParameter.discount.name",detail:"formula.functionList.PRICEDISC.functionParameter.discount.detail",example:"0.0625",require:1,repeat:0},{name:"formula.functionList.PRICEDISC.functionParameter.redemption.name",detail:"formula.functionList.PRICEDISC.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.PRICEDISC.functionParameter.basis.name",detail:"formula.functionList.PRICEDISC.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.PRICEMAT,functionType:Z.Financial,description:"formula.functionList.PRICEMAT.description",abstract:"formula.functionList.PRICEMAT.abstract",functionParameter:[{name:"formula.functionList.PRICEMAT.functionParameter.settlement.name",detail:"formula.functionList.PRICEMAT.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.PRICEMAT.functionParameter.maturity.name",detail:"formula.functionList.PRICEMAT.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.PRICEMAT.functionParameter.issue.name",detail:"formula.functionList.PRICEMAT.functionParameter.issue.detail",example:'"2008-10-15"',require:1,repeat:0},{name:"formula.functionList.PRICEMAT.functionParameter.rate.name",detail:"formula.functionList.PRICEMAT.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.PRICEMAT.functionParameter.yld.name",detail:"formula.functionList.PRICEMAT.functionParameter.yld.detail",example:"0.0625",require:1,repeat:0},{name:"formula.functionList.PRICEMAT.functionParameter.basis.name",detail:"formula.functionList.PRICEMAT.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.PV,functionType:Z.Financial,description:"formula.functionList.PV.description",abstract:"formula.functionList.PV.abstract",functionParameter:[{name:"formula.functionList.PV.functionParameter.rate.name",detail:"formula.functionList.PV.functionParameter.rate.detail",example:"0.02",require:1,repeat:0},{name:"formula.functionList.PV.functionParameter.nper.name",detail:"formula.functionList.PV.functionParameter.nper.detail",example:"12",require:1,repeat:0},{name:"formula.functionList.PV.functionParameter.pmt.name",detail:"formula.functionList.PV.functionParameter.pmt.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.PV.functionParameter.fv.name",detail:"formula.functionList.PV.functionParameter.fv.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.PV.functionParameter.type.name",detail:"formula.functionList.PV.functionParameter.type.detail",example:"0",require:0,repeat:0}]},{functionName:Qt.RATE,functionType:Z.Financial,description:"formula.functionList.RATE.description",abstract:"formula.functionList.RATE.abstract",functionParameter:[{name:"formula.functionList.RATE.functionParameter.nper.name",detail:"formula.functionList.RATE.functionParameter.nper.detail",example:"4*12",require:1,repeat:0},{name:"formula.functionList.RATE.functionParameter.pmt.name",detail:"formula.functionList.RATE.functionParameter.pmt.detail",example:"-200",require:1,repeat:0},{name:"formula.functionList.RATE.functionParameter.pv.name",detail:"formula.functionList.RATE.functionParameter.pv.detail",example:"8000",require:1,repeat:0},{name:"formula.functionList.RATE.functionParameter.fv.name",detail:"formula.functionList.RATE.functionParameter.fv.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.RATE.functionParameter.type.name",detail:"formula.functionList.RATE.functionParameter.type.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.RATE.functionParameter.guess.name",detail:"formula.functionList.RATE.functionParameter.guess.detail",example:"0.1",require:0,repeat:0}]},{functionName:Qt.RECEIVED,functionType:Z.Financial,description:"formula.functionList.RECEIVED.description",abstract:"formula.functionList.RECEIVED.abstract",functionParameter:[{name:"formula.functionList.RECEIVED.functionParameter.settlement.name",detail:"formula.functionList.RECEIVED.functionParameter.settlement.detail",example:'"2008-2-15"',require:1,repeat:0},{name:"formula.functionList.RECEIVED.functionParameter.maturity.name",detail:"formula.functionList.RECEIVED.functionParameter.maturity.detail",example:'"2008-3-15"',require:1,repeat:0},{name:"formula.functionList.RECEIVED.functionParameter.investment.name",detail:"formula.functionList.RECEIVED.functionParameter.investment.detail",example:"10000000",require:1,repeat:0},{name:"formula.functionList.RECEIVED.functionParameter.discount.name",detail:"formula.functionList.RECEIVED.functionParameter.discount.detail",example:"0.0575",require:1,repeat:0},{name:"formula.functionList.RECEIVED.functionParameter.basis.name",detail:"formula.functionList.RECEIVED.functionParameter.basis.detail",example:"2",require:0,repeat:0}]},{functionName:Qt.RRI,functionType:Z.Financial,description:"formula.functionList.RRI.description",abstract:"formula.functionList.RRI.abstract",functionParameter:[{name:"formula.functionList.RRI.functionParameter.nper.name",detail:"formula.functionList.RRI.functionParameter.nper.detail",example:"96",require:1,repeat:0},{name:"formula.functionList.RRI.functionParameter.pv.name",detail:"formula.functionList.RRI.functionParameter.pv.detail",example:"10000",require:1,repeat:0},{name:"formula.functionList.RRI.functionParameter.fv.name",detail:"formula.functionList.RRI.functionParameter.fv.detail",example:"11000",require:1,repeat:0}]},{functionName:Qt.SLN,functionType:Z.Financial,description:"formula.functionList.SLN.description",abstract:"formula.functionList.SLN.abstract",functionParameter:[{name:"formula.functionList.SLN.functionParameter.cost.name",detail:"formula.functionList.SLN.functionParameter.cost.detail",example:"300000",require:1,repeat:0},{name:"formula.functionList.SLN.functionParameter.salvage.name",detail:"formula.functionList.SLN.functionParameter.salvage.detail",example:"75000",require:1,repeat:0},{name:"formula.functionList.SLN.functionParameter.life.name",detail:"formula.functionList.SLN.functionParameter.life.detail",example:"10",require:1,repeat:0}]},{functionName:Qt.SYD,functionType:Z.Financial,description:"formula.functionList.SYD.description",abstract:"formula.functionList.SYD.abstract",functionParameter:[{name:"formula.functionList.SYD.functionParameter.cost.name",detail:"formula.functionList.SYD.functionParameter.cost.detail",example:"300000",require:1,repeat:0},{name:"formula.functionList.SYD.functionParameter.salvage.name",detail:"formula.functionList.SYD.functionParameter.salvage.detail",example:"75000",require:1,repeat:0},{name:"formula.functionList.SYD.functionParameter.life.name",detail:"formula.functionList.SYD.functionParameter.life.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.SYD.functionParameter.per.name",detail:"formula.functionList.SYD.functionParameter.per.detail",example:"10",require:1,repeat:0}]},{functionName:Qt.TBILLEQ,functionType:Z.Financial,description:"formula.functionList.TBILLEQ.description",abstract:"formula.functionList.TBILLEQ.abstract",functionParameter:[{name:"formula.functionList.TBILLEQ.functionParameter.settlement.name",detail:"formula.functionList.TBILLEQ.functionParameter.settlement.detail",example:'"2008-3-31"',require:1,repeat:0},{name:"formula.functionList.TBILLEQ.functionParameter.maturity.name",detail:"formula.functionList.TBILLEQ.functionParameter.maturity.detail",example:'"2008-6-1"',require:1,repeat:0},{name:"formula.functionList.TBILLEQ.functionParameter.discount.name",detail:"formula.functionList.TBILLEQ.functionParameter.discount.detail",example:"0.0914",require:1,repeat:0}]},{functionName:Qt.TBILLPRICE,functionType:Z.Financial,description:"formula.functionList.TBILLPRICE.description",abstract:"formula.functionList.TBILLPRICE.abstract",functionParameter:[{name:"formula.functionList.TBILLPRICE.functionParameter.settlement.name",detail:"formula.functionList.TBILLPRICE.functionParameter.settlement.detail",example:'"2008-3-31"',require:1,repeat:0},{name:"formula.functionList.TBILLPRICE.functionParameter.maturity.name",detail:"formula.functionList.TBILLPRICE.functionParameter.maturity.detail",example:'"2008-6-1"',require:1,repeat:0},{name:"formula.functionList.TBILLPRICE.functionParameter.discount.name",detail:"formula.functionList.TBILLPRICE.functionParameter.discount.detail",example:"0.0914",require:1,repeat:0}]},{functionName:Qt.TBILLYIELD,functionType:Z.Financial,description:"formula.functionList.TBILLYIELD.description",abstract:"formula.functionList.TBILLYIELD.abstract",functionParameter:[{name:"formula.functionList.TBILLYIELD.functionParameter.settlement.name",detail:"formula.functionList.TBILLYIELD.functionParameter.settlement.detail",example:'"2008-3-31"',require:1,repeat:0},{name:"formula.functionList.TBILLYIELD.functionParameter.maturity.name",detail:"formula.functionList.TBILLYIELD.functionParameter.maturity.detail",example:'"2008-6-1"',require:1,repeat:0},{name:"formula.functionList.TBILLYIELD.functionParameter.pr.name",detail:"formula.functionList.TBILLYIELD.functionParameter.pr.detail",example:"98.45",require:1,repeat:0}]},{functionName:Qt.VDB,functionType:Z.Financial,description:"formula.functionList.VDB.description",abstract:"formula.functionList.VDB.abstract",functionParameter:[{name:"formula.functionList.VDB.functionParameter.cost.name",detail:"formula.functionList.VDB.functionParameter.cost.detail",example:"2400",require:1,repeat:0},{name:"formula.functionList.VDB.functionParameter.salvage.name",detail:"formula.functionList.VDB.functionParameter.salvage.detail",example:"300",require:1,repeat:0},{name:"formula.functionList.VDB.functionParameter.life.name",detail:"formula.functionList.VDB.functionParameter.life.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.VDB.functionParameter.startPeriod.name",detail:"formula.functionList.VDB.functionParameter.startPeriod.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VDB.functionParameter.endPeriod.name",detail:"formula.functionList.VDB.functionParameter.endPeriod.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.VDB.functionParameter.factor.name",detail:"formula.functionList.VDB.functionParameter.factor.detail",example:"2",require:0,repeat:0},{name:"formula.functionList.VDB.functionParameter.noSwitch.name",detail:"formula.functionList.VDB.functionParameter.noSwitch.detail",example:"false",require:0,repeat:0}]},{functionName:Qt.XIRR,functionType:Z.Financial,description:"formula.functionList.XIRR.description",abstract:"formula.functionList.XIRR.abstract",functionParameter:[{name:"formula.functionList.XIRR.functionParameter.values.name",detail:"formula.functionList.XIRR.functionParameter.values.detail",example:"{-10000,2750,4250,3250,2750}",require:1,repeat:0},{name:"formula.functionList.XIRR.functionParameter.dates.name",detail:"formula.functionList.XIRR.functionParameter.dates.detail",example:"{39448,39508,39751,39859,39904}",require:1,repeat:0},{name:"formula.functionList.XIRR.functionParameter.guess.name",detail:"formula.functionList.XIRR.functionParameter.guess.detail",example:"0.1",require:0,repeat:0}]},{functionName:Qt.XNPV,functionType:Z.Financial,description:"formula.functionList.XNPV.description",abstract:"formula.functionList.XNPV.abstract",functionParameter:[{name:"formula.functionList.XNPV.functionParameter.rate.name",detail:"formula.functionList.XNPV.functionParameter.rate.detail",example:"0.1",require:1,repeat:0},{name:"formula.functionList.XNPV.functionParameter.values.name",detail:"formula.functionList.XNPV.functionParameter.values.detail",example:"{-10000,2750,4250,3250,2750}",require:1,repeat:0},{name:"formula.functionList.XNPV.functionParameter.dates.name",detail:"formula.functionList.XNPV.functionParameter.dates.detail",example:"{39448,39508,39751,39859,39904}",require:1,repeat:0}]},{functionName:Qt.YIELD,functionType:Z.Financial,description:"formula.functionList.YIELD.description",abstract:"formula.functionList.YIELD.abstract",functionParameter:[{name:"formula.functionList.YIELD.functionParameter.settlement.name",detail:"formula.functionList.YIELD.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.maturity.name",detail:"formula.functionList.YIELD.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.rate.name",detail:"formula.functionList.YIELD.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.pr.name",detail:"formula.functionList.YIELD.functionParameter.pr.detail",example:"98.45",require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.redemption.name",detail:"formula.functionList.YIELD.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.frequency.name",detail:"formula.functionList.YIELD.functionParameter.frequency.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.YIELD.functionParameter.basis.name",detail:"formula.functionList.YIELD.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.YIELDDISC,functionType:Z.Financial,description:"formula.functionList.YIELDDISC.description",abstract:"formula.functionList.YIELDDISC.abstract",functionParameter:[{name:"formula.functionList.YIELDDISC.functionParameter.settlement.name",detail:"formula.functionList.YIELDDISC.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.YIELDDISC.functionParameter.maturity.name",detail:"formula.functionList.YIELDDISC.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.YIELDDISC.functionParameter.pr.name",detail:"formula.functionList.YIELDDISC.functionParameter.pr.detail",example:"98.45",require:1,repeat:0},{name:"formula.functionList.YIELDDISC.functionParameter.redemption.name",detail:"formula.functionList.YIELDDISC.functionParameter.redemption.detail",example:"100",require:1,repeat:0},{name:"formula.functionList.YIELDDISC.functionParameter.basis.name",detail:"formula.functionList.YIELDDISC.functionParameter.basis.detail",example:"1",require:0,repeat:0}]},{functionName:Qt.YIELDMAT,functionType:Z.Financial,description:"formula.functionList.YIELDMAT.description",abstract:"formula.functionList.YIELDMAT.abstract",functionParameter:[{name:"formula.functionList.YIELDMAT.functionParameter.settlement.name",detail:"formula.functionList.YIELDMAT.functionParameter.settlement.detail",example:'"2008-11-11"',require:1,repeat:0},{name:"formula.functionList.YIELDMAT.functionParameter.maturity.name",detail:"formula.functionList.YIELDMAT.functionParameter.maturity.detail",example:'"2021-3-1"',require:1,repeat:0},{name:"formula.functionList.YIELDMAT.functionParameter.issue.name",detail:"formula.functionList.YIELDMAT.functionParameter.issue.detail",example:'"2008-10-15"',require:1,repeat:0},{name:"formula.functionList.YIELDMAT.functionParameter.rate.name",detail:"formula.functionList.YIELDMAT.functionParameter.rate.detail",example:"0.0785",require:1,repeat:0},{name:"formula.functionList.YIELDMAT.functionParameter.pr.name",detail:"formula.functionList.YIELDMAT.functionParameter.pr.detail",example:"98.45",require:1,repeat:0},{name:"formula.functionList.YIELDMAT.functionParameter.basis.name",detail:"formula.functionList.YIELDMAT.functionParameter.basis.detail",example:"1",require:0,repeat:0}]}],inn=[{functionName:Ii.CELL,functionType:Z.Information,description:"formula.functionList.CELL.description",abstract:"formula.functionList.CELL.abstract",functionParameter:[{name:"formula.functionList.CELL.functionParameter.infoType.name",detail:"formula.functionList.CELL.functionParameter.infoType.detail",example:'"type"',require:1,repeat:0},{name:"formula.functionList.CELL.functionParameter.reference.name",detail:"formula.functionList.CELL.functionParameter.reference.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ERROR_TYPE,functionType:Z.Information,description:"formula.functionList.ERROR_TYPE.description",abstract:"formula.functionList.ERROR_TYPE.abstract",functionParameter:[{name:"formula.functionList.ERROR_TYPE.functionParameter.errorVal.name",detail:"formula.functionList.ERROR_TYPE.functionParameter.errorVal.detail",example:'"#NULL!"',require:1,repeat:0}]},{functionName:Ii.INFO,functionType:Z.Information,description:"formula.functionList.INFO.description",abstract:"formula.functionList.INFO.abstract",functionParameter:[{name:"formula.functionList.INFO.functionParameter.number1.name",detail:"formula.functionList.INFO.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.INFO.functionParameter.number2.name",detail:"formula.functionList.INFO.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.ISBLANK,functionType:Z.Information,description:"formula.functionList.ISBLANK.description",abstract:"formula.functionList.ISBLANK.abstract",functionParameter:[{name:"formula.functionList.ISBLANK.functionParameter.value.name",detail:"formula.functionList.ISBLANK.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISERR,functionType:Z.Information,description:"formula.functionList.ISERR.description",abstract:"formula.functionList.ISERR.abstract",functionParameter:[{name:"formula.functionList.ISERR.functionParameter.value.name",detail:"formula.functionList.ISERR.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISERROR,functionType:Z.Information,description:"formula.functionList.ISERROR.description",abstract:"formula.functionList.ISERROR.abstract",functionParameter:[{name:"formula.functionList.ISERROR.functionParameter.value.name",detail:"formula.functionList.ISERROR.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISEVEN,functionType:Z.Information,description:"formula.functionList.ISEVEN.description",abstract:"formula.functionList.ISEVEN.abstract",functionParameter:[{name:"formula.functionList.ISEVEN.functionParameter.value.name",detail:"formula.functionList.ISEVEN.functionParameter.value.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.ISFORMULA,functionType:Z.Information,description:"formula.functionList.ISFORMULA.description",abstract:"formula.functionList.ISFORMULA.abstract",functionParameter:[{name:"formula.functionList.ISFORMULA.functionParameter.reference.name",detail:"formula.functionList.ISFORMULA.functionParameter.reference.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISLOGICAL,functionType:Z.Information,description:"formula.functionList.ISLOGICAL.description",abstract:"formula.functionList.ISLOGICAL.abstract",functionParameter:[{name:"formula.functionList.ISLOGICAL.functionParameter.value.name",detail:"formula.functionList.ISLOGICAL.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISNA,functionType:Z.Information,description:"formula.functionList.ISNA.description",abstract:"formula.functionList.ISNA.abstract",functionParameter:[{name:"formula.functionList.ISNA.functionParameter.value.name",detail:"formula.functionList.ISNA.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISNONTEXT,functionType:Z.Information,description:"formula.functionList.ISNONTEXT.description",abstract:"formula.functionList.ISNONTEXT.abstract",functionParameter:[{name:"formula.functionList.ISNONTEXT.functionParameter.value.name",detail:"formula.functionList.ISNONTEXT.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISNUMBER,functionType:Z.Information,description:"formula.functionList.ISNUMBER.description",abstract:"formula.functionList.ISNUMBER.abstract",functionParameter:[{name:"formula.functionList.ISNUMBER.functionParameter.value.name",detail:"formula.functionList.ISNUMBER.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISODD,functionType:Z.Information,description:"formula.functionList.ISODD.description",abstract:"formula.functionList.ISODD.abstract",functionParameter:[{name:"formula.functionList.ISODD.functionParameter.value.name",detail:"formula.functionList.ISODD.functionParameter.value.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.ISOMITTED,functionType:Z.Information,description:"formula.functionList.ISOMITTED.description",abstract:"formula.functionList.ISOMITTED.abstract",functionParameter:[{name:"formula.functionList.ISOMITTED.functionParameter.number1.name",detail:"formula.functionList.ISOMITTED.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ISOMITTED.functionParameter.number2.name",detail:"formula.functionList.ISOMITTED.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.ISREF,functionType:Z.Information,description:"formula.functionList.ISREF.description",abstract:"formula.functionList.ISREF.abstract",functionParameter:[{name:"formula.functionList.ISREF.functionParameter.value.name",detail:"formula.functionList.ISREF.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.ISTEXT,functionType:Z.Information,description:"formula.functionList.ISTEXT.description",abstract:"formula.functionList.ISTEXT.abstract",functionParameter:[{name:"formula.functionList.ISTEXT.functionParameter.value.name",detail:"formula.functionList.ISTEXT.functionParameter.value.detail",example:"A1",require:1,repeat:0}]},{functionName:Ii.N,functionType:Z.Information,description:"formula.functionList.N.description",abstract:"formula.functionList.N.abstract",functionParameter:[{name:"formula.functionList.N.functionParameter.value.name",detail:"formula.functionList.N.functionParameter.value.detail",example:"7",require:1,repeat:0}]},{functionName:Ii.NA,functionType:Z.Information,description:"formula.functionList.NA.description",abstract:"formula.functionList.NA.abstract",functionParameter:[]},{functionName:Ii.SHEET,functionType:Z.Information,description:"formula.functionList.SHEET.description",abstract:"formula.functionList.SHEET.abstract",functionParameter:[{name:"formula.functionList.SHEET.functionParameter.number1.name",detail:"formula.functionList.SHEET.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SHEET.functionParameter.number2.name",detail:"formula.functionList.SHEET.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.SHEETS,functionType:Z.Information,description:"formula.functionList.SHEETS.description",abstract:"formula.functionList.SHEETS.abstract",functionParameter:[{name:"formula.functionList.SHEETS.functionParameter.number1.name",detail:"formula.functionList.SHEETS.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SHEETS.functionParameter.number2.name",detail:"formula.functionList.SHEETS.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Ii.TYPE,functionType:Z.Information,description:"formula.functionList.TYPE.description",abstract:"formula.functionList.TYPE.abstract",functionParameter:[{name:"formula.functionList.TYPE.functionParameter.value.name",detail:"formula.functionList.TYPE.functionParameter.value.detail",example:"A2",require:1,repeat:0}]}],ann=[{functionName:Pi.AND,functionType:Z.Logical,description:"formula.functionList.AND.description",abstract:"formula.functionList.AND.abstract",functionParameter:[{name:"formula.functionList.AND.functionParameter.logical1.name",detail:"formula.functionList.AND.functionParameter.logical1.detail",example:"A1=1",require:1,repeat:0},{name:"formula.functionList.AND.functionParameter.logical2.name",detail:"formula.functionList.AND.functionParameter.logical2.detail",example:"A2=2",require:0,repeat:1}]},{functionName:Pi.BYCOL,functionType:Z.Logical,description:"formula.functionList.BYCOL.description",abstract:"formula.functionList.BYCOL.abstract",functionParameter:[{name:"formula.functionList.BYCOL.functionParameter.array.name",detail:"formula.functionList.BYCOL.functionParameter.array.detail",example:"A1:C2",require:1,repeat:0},{name:"formula.functionList.BYCOL.functionParameter.lambda.name",detail:"formula.functionList.BYCOL.functionParameter.lambda.detail",example:"LAMBDA(array, MAX(array))",require:1,repeat:0}]},{functionName:Pi.BYROW,functionType:Z.Logical,description:"formula.functionList.BYROW.description",abstract:"formula.functionList.BYROW.abstract",functionParameter:[{name:"formula.functionList.BYROW.functionParameter.array.name",detail:"formula.functionList.BYROW.functionParameter.array.detail",example:"A1:C2",require:1,repeat:0},{name:"formula.functionList.BYROW.functionParameter.lambda.name",detail:"formula.functionList.BYROW.functionParameter.lambda.detail",example:"LAMBDA(array, MAX(array))",require:1,repeat:0}]},{functionName:Pi.FALSE,functionType:Z.Logical,description:"formula.functionList.FALSE.description",abstract:"formula.functionList.FALSE.abstract",functionParameter:[]},{functionName:Pi.IF,functionType:Z.Logical,description:"formula.functionList.IF.description",abstract:"formula.functionList.IF.abstract",functionParameter:[{name:"formula.functionList.IF.functionParameter.logicalTest.name",detail:"formula.functionList.IF.functionParameter.logicalTest.detail",example:'A2 = "foo"',require:1,repeat:0},{name:"formula.functionList.IF.functionParameter.valueIfTrue.name",detail:"formula.functionList.IF.functionParameter.valueIfTrue.detail",example:'"A2 is foo"',require:1,repeat:0},{name:"formula.functionList.IF.functionParameter.valueIfFalse.name",detail:"formula.functionList.IF.functionParameter.valueIfFalse.detail",example:'"A2 is not foo"',require:0,repeat:0}]},{functionName:Pi.IFERROR,functionType:Z.Logical,description:"formula.functionList.IFERROR.description",abstract:"formula.functionList.IFERROR.abstract",functionParameter:[{name:"formula.functionList.IFERROR.functionParameter.value.name",detail:"formula.functionList.IFERROR.functionParameter.value.detail",example:"A2/B2",require:1,repeat:0},{name:"formula.functionList.IFERROR.functionParameter.valueIfError.name",detail:"formula.functionList.IFERROR.functionParameter.valueIfError.detail",example:"Error in calculation",require:1,repeat:0}]},{functionName:Pi.IFNA,functionType:Z.Logical,description:"formula.functionList.IFNA.description",abstract:"formula.functionList.IFNA.abstract",functionParameter:[{name:"formula.functionList.IFNA.functionParameter.value.name",detail:"formula.functionList.IFNA.functionParameter.value.detail",example:"VLOOKUP(C3,C6:D11,2,FALSE)",require:1,repeat:0},{name:"formula.functionList.IFNA.functionParameter.valueIfNa.name",detail:"formula.functionList.IFNA.functionParameter.valueIfNa.detail",example:'"Not Found"',require:1,repeat:0}]},{functionName:Pi.IFS,functionType:Z.Logical,description:"formula.functionList.IFS.description",abstract:"formula.functionList.IFS.abstract",functionParameter:[{name:"formula.functionList.IFS.functionParameter.logicalTest1.name",detail:"formula.functionList.IFS.functionParameter.logicalTest1.detail",example:'A2 = "foo"',require:1,repeat:0},{name:"formula.functionList.IFS.functionParameter.valueIfTrue1.name",detail:"formula.functionList.IFS.functionParameter.valueIfTrue1.detail",example:'"A2 is foo"',require:1,repeat:0},{name:"formula.functionList.IFS.functionParameter.logicalTest2.name",detail:"formula.functionList.IFS.functionParameter.logicalTest2.detail",example:"F2=1",require:0,repeat:1},{name:"formula.functionList.IFS.functionParameter.valueIfTrue2.name",detail:"formula.functionList.IFS.functionParameter.valueIfTrue2.detail",example:"D2",require:0,repeat:1}]},{functionName:Pi.LAMBDA,functionType:Z.Logical,description:"formula.functionList.LAMBDA.description",abstract:"formula.functionList.LAMBDA.abstract",functionParameter:[{name:"formula.functionList.LAMBDA.functionParameter.parameter.name",detail:"formula.functionList.LAMBDA.functionParameter.parameter.detail",example:"[x, y, …,]",require:0,repeat:1},{name:"formula.functionList.LAMBDA.functionParameter.calculation.name",detail:"formula.functionList.LAMBDA.functionParameter.calculation.detail",example:"x+y",require:1,repeat:0}]},{functionName:Pi.LET,functionType:Z.Logical,description:"formula.functionList.LET.description",abstract:"formula.functionList.LET.abstract",functionParameter:[{name:"formula.functionList.LET.functionParameter.name1.name",detail:"formula.functionList.LET.functionParameter.name1.detail",example:"x",require:1,repeat:0},{name:"formula.functionList.LET.functionParameter.nameValue1.name",detail:"formula.functionList.LET.functionParameter.nameValue1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.LET.functionParameter.calculationOrName2.name",detail:"formula.functionList.LET.functionParameter.calculationOrName2.detail",example:"y",require:1,repeat:0},{name:"formula.functionList.LET.functionParameter.nameValue2.name",detail:"formula.functionList.LET.functionParameter.nameValue2.detail",example:"6",require:0,repeat:1},{name:"formula.functionList.LET.functionParameter.calculationOrName3.name",detail:"formula.functionList.LET.functionParameter.calculationOrName3.detail",example:"SUM(x,y)",require:0,repeat:1}]},{functionName:Pi.MAKEARRAY,aliasFunctionName:"formula.functionList.MAKEARRAY.aliasFunctionName",functionType:Z.Logical,description:"formula.functionList.MAKEARRAY.description",abstract:"formula.functionList.MAKEARRAY.abstract",functionParameter:[{name:"formula.functionList.MAKEARRAY.functionParameter.number1.name",detail:"formula.functionList.MAKEARRAY.functionParameter.number1.detail",example:"8",require:1,repeat:0},{name:"formula.functionList.MAKEARRAY.functionParameter.number2.name",detail:"formula.functionList.MAKEARRAY.functionParameter.number2.detail",example:"7",require:1,repeat:0},{name:"formula.functionList.MAKEARRAY.functionParameter.value3.name",detail:"formula.functionList.MAKEARRAY.functionParameter.value3.detail",example:"LAMBDA(r,c, r*c)",require:1,repeat:0}]},{functionName:Pi.MAP,functionType:Z.Logical,description:"formula.functionList.MAP.description",abstract:"formula.functionList.MAP.abstract",functionParameter:[{name:"formula.functionList.MAP.functionParameter.array1.name",detail:"formula.functionList.MAP.functionParameter.array1.detail",example:"D2:D11",require:1,repeat:0},{name:"formula.functionList.MAP.functionParameter.array2.name",detail:"formula.functionList.MAP.functionParameter.array2.detail",example:"E2:E11",require:0,repeat:1},{name:"formula.functionList.MAP.functionParameter.lambda.name",detail:"formula.functionList.MAP.functionParameter.lambda.detail",example:'LAMBDA(s,c,AND(s="Large",c="Red"))',require:1,repeat:0}]},{functionName:Pi.NOT,functionType:Z.Logical,description:"formula.functionList.NOT.description",abstract:"formula.functionList.NOT.abstract",functionParameter:[{name:"formula.functionList.NOT.functionParameter.logical.name",detail:"formula.functionList.NOT.functionParameter.logical.detail",example:"A2>100",require:1,repeat:0}]},{functionName:Pi.OR,functionType:Z.Logical,description:"formula.functionList.OR.description",abstract:"formula.functionList.OR.abstract",functionParameter:[{name:"formula.functionList.OR.functionParameter.logical1.name",detail:"formula.functionList.OR.functionParameter.logical1.detail",example:"A1=1",require:1,repeat:0},{name:"formula.functionList.OR.functionParameter.logical2.name",detail:"formula.functionList.OR.functionParameter.logical2.detail",example:"A2=2",require:0,repeat:1}]},{functionName:Pi.REDUCE,functionType:Z.Logical,description:"formula.functionList.REDUCE.description",abstract:"formula.functionList.REDUCE.abstract",functionParameter:[{name:"formula.functionList.REDUCE.functionParameter.initialValue.name",detail:"formula.functionList.REDUCE.functionParameter.initialValue.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.REDUCE.functionParameter.array.name",detail:"formula.functionList.REDUCE.functionParameter.array.detail",example:"A1:C2",require:1,repeat:0},{name:"formula.functionList.REDUCE.functionParameter.lambda.name",detail:"formula.functionList.REDUCE.functionParameter.lambda.detail",example:"LAMBDA(a,b,a+b^2)",require:1,repeat:0}]},{functionName:Pi.SCAN,functionType:Z.Logical,description:"formula.functionList.SCAN.description",abstract:"formula.functionList.SCAN.abstract",functionParameter:[{name:"formula.functionList.SCAN.functionParameter.initialValue.name",detail:"formula.functionList.SCAN.functionParameter.initialValue.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.SCAN.functionParameter.array.name",detail:"formula.functionList.SCAN.functionParameter.array.detail",example:"A1:C2",require:1,repeat:0},{name:"formula.functionList.SCAN.functionParameter.lambda.name",detail:"formula.functionList.SCAN.functionParameter.lambda.detail",example:"LAMBDA(a,b,a+b^2)",require:1,repeat:0}]},{functionName:Pi.SWITCH,functionType:Z.Logical,description:"formula.functionList.SWITCH.description",abstract:"formula.functionList.SWITCH.abstract",functionParameter:[{name:"formula.functionList.SWITCH.functionParameter.expression.name",detail:"formula.functionList.SWITCH.functionParameter.expression.detail",example:"WEEKDAY(A2)",require:1,repeat:0},{name:"formula.functionList.SWITCH.functionParameter.value1.name",detail:"formula.functionList.SWITCH.functionParameter.value1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.SWITCH.functionParameter.result1.name",detail:"formula.functionList.SWITCH.functionParameter.result1.detail",example:'"Sunday"',require:1,repeat:0},{name:"formula.functionList.SWITCH.functionParameter.defaultOrValue2.name",detail:"formula.functionList.SWITCH.functionParameter.defaultOrValue2.detail",example:"2",require:0,repeat:1},{name:"formula.functionList.SWITCH.functionParameter.result2.name",detail:"formula.functionList.SWITCH.functionParameter.result2.detail",example:'"Monday"',require:0,repeat:1}]},{functionName:Pi.TRUE,functionType:Z.Logical,description:"formula.functionList.TRUE.description",abstract:"formula.functionList.TRUE.abstract",functionParameter:[]},{functionName:Pi.XOR,functionType:Z.Logical,description:"formula.functionList.XOR.description",abstract:"formula.functionList.XOR.abstract",functionParameter:[{name:"formula.functionList.XOR.functionParameter.logical1.name",detail:"formula.functionList.XOR.functionParameter.logical1.detail",example:"3>0",require:1,repeat:0},{name:"formula.functionList.XOR.functionParameter.logical2.name",detail:"formula.functionList.XOR.functionParameter.logical2.detail",example:"2<9",require:0,repeat:1}]}],onn=[{functionName:Zn.ADDRESS,functionType:Z.Lookup,description:"formula.functionList.ADDRESS.description",abstract:"formula.functionList.ADDRESS.abstract",functionParameter:[{name:"formula.functionList.ADDRESS.functionParameter.row_num.name",detail:"formula.functionList.ADDRESS.functionParameter.row_num.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ADDRESS.functionParameter.column_num.name",detail:"formula.functionList.ADDRESS.functionParameter.column_num.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.ADDRESS.functionParameter.abs_num.name",detail:"formula.functionList.ADDRESS.functionParameter.abs_num.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.ADDRESS.functionParameter.a1.name",detail:"formula.functionList.ADDRESS.functionParameter.a1.detail",example:"TRUE",require:0,repeat:0},{name:"formula.functionList.ADDRESS.functionParameter.sheet_text.name",detail:"formula.functionList.ADDRESS.functionParameter.sheet_text.detail",example:'"Sheet2"',require:0,repeat:0}]},{functionName:Zn.AREAS,functionType:Z.Lookup,description:"formula.functionList.AREAS.description",abstract:"formula.functionList.AREAS.abstract",functionParameter:[{name:"formula.functionList.AREAS.functionParameter.reference.name",detail:"formula.functionList.AREAS.functionParameter.reference.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.CHOOSE,functionType:Z.Lookup,description:"formula.functionList.CHOOSE.description",abstract:"formula.functionList.CHOOSE.abstract",functionParameter:[{name:"formula.functionList.CHOOSE.functionParameter.indexNum.name",detail:"formula.functionList.CHOOSE.functionParameter.indexNum.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.CHOOSE.functionParameter.value1.name",detail:"formula.functionList.CHOOSE.functionParameter.value1.detail",example:'"Hello"',require:1,repeat:0},{name:"formula.functionList.CHOOSE.functionParameter.value2.name",detail:"formula.functionList.CHOOSE.functionParameter.value2.detail",example:'"Univer"',require:0,repeat:1}]},{functionName:Zn.CHOOSECOLS,functionType:Z.Lookup,description:"formula.functionList.CHOOSECOLS.description",abstract:"formula.functionList.CHOOSECOLS.abstract",functionParameter:[{name:"formula.functionList.CHOOSECOLS.functionParameter.array.name",detail:"formula.functionList.CHOOSECOLS.functionParameter.array.detail",example:"{1,2,3;2,3,4}",require:1,repeat:0},{name:"formula.functionList.CHOOSECOLS.functionParameter.colNum1.name",detail:"formula.functionList.CHOOSECOLS.functionParameter.colNum1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.CHOOSECOLS.functionParameter.colNum2.name",detail:"formula.functionList.CHOOSECOLS.functionParameter.colNum2.detail",example:"2",require:0,repeat:1}]},{functionName:Zn.CHOOSEROWS,functionType:Z.Lookup,description:"formula.functionList.CHOOSEROWS.description",abstract:"formula.functionList.CHOOSEROWS.abstract",functionParameter:[{name:"formula.functionList.CHOOSEROWS.functionParameter.array.name",detail:"formula.functionList.CHOOSEROWS.functionParameter.array.detail",example:"{1,2,3;2,3,4}",require:1,repeat:0},{name:"formula.functionList.CHOOSEROWS.functionParameter.rowNum1.name",detail:"formula.functionList.CHOOSEROWS.functionParameter.rowNum1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.CHOOSEROWS.functionParameter.rowNum2.name",detail:"formula.functionList.CHOOSEROWS.functionParameter.rowNum2.detail",example:"2",require:0,repeat:1}]},{functionName:Zn.COLUMN,functionType:Z.Lookup,description:"formula.functionList.COLUMN.description",abstract:"formula.functionList.COLUMN.abstract",functionParameter:[{name:"formula.functionList.COLUMN.functionParameter.reference.name",detail:"formula.functionList.COLUMN.functionParameter.reference.detail",example:"A1:A20",require:0,repeat:0}]},{functionName:Zn.COLUMNS,functionType:Z.Lookup,description:"formula.functionList.COLUMNS.description",abstract:"formula.functionList.COLUMNS.abstract",functionParameter:[{name:"formula.functionList.COLUMNS.functionParameter.array.name",detail:"formula.functionList.COLUMNS.functionParameter.array.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.DROP,functionType:Z.Lookup,description:"formula.functionList.DROP.description",abstract:"formula.functionList.DROP.abstract",functionParameter:[{name:"formula.functionList.DROP.functionParameter.array.name",detail:"formula.functionList.DROP.functionParameter.array.detail",example:"A2:C4",require:1,repeat:0},{name:"formula.functionList.DROP.functionParameter.rows.name",detail:"formula.functionList.DROP.functionParameter.rows.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.DROP.functionParameter.columns.name",detail:"formula.functionList.DROP.functionParameter.columns.detail",example:"2",require:0,repeat:0}]},{functionName:Zn.EXPAND,functionType:Z.Lookup,description:"formula.functionList.EXPAND.description",abstract:"formula.functionList.EXPAND.abstract",functionParameter:[{name:"formula.functionList.EXPAND.functionParameter.array.name",detail:"formula.functionList.EXPAND.functionParameter.array.detail",example:"A2",require:1,repeat:0},{name:"formula.functionList.EXPAND.functionParameter.rows.name",detail:"formula.functionList.EXPAND.functionParameter.rows.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.EXPAND.functionParameter.columns.name",detail:"formula.functionList.EXPAND.functionParameter.columns.detail",example:"3",require:0,repeat:0},{name:"formula.functionList.EXPAND.functionParameter.padWith.name",detail:"formula.functionList.EXPAND.functionParameter.padWith.detail",example:'"-"',require:0,repeat:0}]},{functionName:Zn.FILTER,functionType:Z.Lookup,description:"formula.functionList.FILTER.description",abstract:"formula.functionList.FILTER.abstract",functionParameter:[{name:"formula.functionList.FILTER.functionParameter.array.name",detail:"formula.functionList.FILTER.functionParameter.array.detail",example:"A5:D20",require:1,repeat:0},{name:"formula.functionList.FILTER.functionParameter.include.name",detail:"formula.functionList.FILTER.functionParameter.include.detail",example:'(C5:C20="Apple")*(A5:A20="East")',require:1,repeat:0},{name:"formula.functionList.FILTER.functionParameter.ifEmpty.name",detail:"formula.functionList.FILTER.functionParameter.ifEmpty.detail",example:'""',require:0,repeat:0}]},{functionName:Zn.FORMULATEXT,functionType:Z.Lookup,description:"formula.functionList.FORMULATEXT.description",abstract:"formula.functionList.FORMULATEXT.abstract",functionParameter:[{name:"formula.functionList.FORMULATEXT.functionParameter.number1.name",detail:"formula.functionList.FORMULATEXT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORMULATEXT.functionParameter.number2.name",detail:"formula.functionList.FORMULATEXT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.GETPIVOTDATA,functionType:Z.Lookup,description:"formula.functionList.GETPIVOTDATA.description",abstract:"formula.functionList.GETPIVOTDATA.abstract",functionParameter:[{name:"formula.functionList.GETPIVOTDATA.functionParameter.number1.name",detail:"formula.functionList.GETPIVOTDATA.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GETPIVOTDATA.functionParameter.number2.name",detail:"formula.functionList.GETPIVOTDATA.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.HLOOKUP,functionType:Z.Lookup,description:"formula.functionList.HLOOKUP.description",abstract:"formula.functionList.HLOOKUP.abstract",functionParameter:[{name:"formula.functionList.HLOOKUP.functionParameter.lookupValue.name",detail:"formula.functionList.HLOOKUP.functionParameter.lookupValue.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.HLOOKUP.functionParameter.tableArray.name",detail:"formula.functionList.HLOOKUP.functionParameter.tableArray.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.HLOOKUP.functionParameter.rowIndexNum.name",detail:"formula.functionList.HLOOKUP.functionParameter.rowIndexNum.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.HLOOKUP.functionParameter.rangeLookup.name",detail:"formula.functionList.HLOOKUP.functionParameter.rangeLookup.detail",example:"false",require:0,repeat:0}]},{functionName:Zn.HSTACK,functionType:Z.Lookup,description:"formula.functionList.HSTACK.description",abstract:"formula.functionList.HSTACK.abstract",functionParameter:[{name:"formula.functionList.HSTACK.functionParameter.array1.name",detail:"formula.functionList.HSTACK.functionParameter.array1.detail",example:"A2:C3",require:1,repeat:0},{name:"formula.functionList.HSTACK.functionParameter.array2.name",detail:"formula.functionList.HSTACK.functionParameter.array2.detail",example:"E2:G3",require:0,repeat:1}]},{functionName:Zn.HYPERLINK,functionType:Z.Lookup,description:"formula.functionList.HYPERLINK.description",abstract:"formula.functionList.HYPERLINK.abstract",functionParameter:[{name:"formula.functionList.HYPERLINK.functionParameter.number1.name",detail:"formula.functionList.HYPERLINK.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.HYPERLINK.functionParameter.number2.name",detail:"formula.functionList.HYPERLINK.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.IMAGE,functionType:Z.Lookup,description:"formula.functionList.IMAGE.description",abstract:"formula.functionList.IMAGE.abstract",functionParameter:[{name:"formula.functionList.IMAGE.functionParameter.number1.name",detail:"formula.functionList.IMAGE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.IMAGE.functionParameter.number2.name",detail:"formula.functionList.IMAGE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.INDEX,functionType:Z.Lookup,description:"formula.functionList.INDEX.description",abstract:"formula.functionList.INDEX.abstract",functionParameter:[{name:"formula.functionList.INDEX.functionParameter.reference.name",detail:"formula.functionList.INDEX.functionParameter.reference.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.INDEX.functionParameter.rowNum.name",detail:"formula.functionList.INDEX.functionParameter.rowNum.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.INDEX.functionParameter.columnNum.name",detail:"formula.functionList.INDEX.functionParameter.columnNum.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.INDEX.functionParameter.areaNum.name",detail:"formula.functionList.INDEX.functionParameter.areaNum.detail",example:"2",require:0,repeat:0}]},{functionName:Zn.INDIRECT,functionType:Z.Lookup,description:"formula.functionList.INDIRECT.description",abstract:"formula.functionList.INDIRECT.abstract",functionParameter:[{name:"formula.functionList.INDIRECT.functionParameter.refText.name",detail:"formula.functionList.INDIRECT.functionParameter.refText.detail",example:'"A1"',require:1,repeat:0},{name:"formula.functionList.INDIRECT.functionParameter.a1.name",detail:"formula.functionList.INDIRECT.functionParameter.a1.detail",example:"TRUE",require:0,repeat:0}]},{functionName:Zn.LOOKUP,functionType:Z.Lookup,description:"formula.functionList.LOOKUP.description",abstract:"formula.functionList.LOOKUP.abstract",functionParameter:[{name:"formula.functionList.LOOKUP.functionParameter.lookupValue.name",detail:"formula.functionList.LOOKUP.functionParameter.lookupValue.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.name",detail:"formula.functionList.LOOKUP.functionParameter.lookupVectorOrArray.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOOKUP.functionParameter.resultVector.name",detail:"formula.functionList.LOOKUP.functionParameter.resultVector.detail",example:"A1:A20",require:0,repeat:0}]},{functionName:Zn.MATCH,functionType:Z.Lookup,description:"formula.functionList.MATCH.description",abstract:"formula.functionList.MATCH.abstract",functionParameter:[{name:"formula.functionList.MATCH.functionParameter.lookupValue.name",detail:"formula.functionList.MATCH.functionParameter.lookupValue.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.MATCH.functionParameter.lookupArray.name",detail:"formula.functionList.MATCH.functionParameter.lookupArray.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MATCH.functionParameter.matchType.name",detail:"formula.functionList.MATCH.functionParameter.matchType.detail",example:"1",require:0,repeat:0}]},{functionName:Zn.OFFSET,functionType:Z.Lookup,description:"formula.functionList.OFFSET.description",abstract:"formula.functionList.OFFSET.abstract",functionParameter:[{name:"formula.functionList.OFFSET.functionParameter.reference.name",detail:"formula.functionList.OFFSET.functionParameter.reference.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.OFFSET.functionParameter.rows.name",detail:"formula.functionList.OFFSET.functionParameter.rows.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.OFFSET.functionParameter.cols.name",detail:"formula.functionList.OFFSET.functionParameter.cols.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.OFFSET.functionParameter.height.name",detail:"formula.functionList.OFFSET.functionParameter.height.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.OFFSET.functionParameter.width.name",detail:"formula.functionList.OFFSET.functionParameter.width.detail",example:"1",require:0,repeat:0}]},{functionName:Zn.ROW,functionType:Z.Lookup,description:"formula.functionList.ROW.description",abstract:"formula.functionList.ROW.abstract",functionParameter:[{name:"formula.functionList.ROW.functionParameter.reference.name",detail:"formula.functionList.ROW.functionParameter.reference.detail",example:"A1",require:0,repeat:0}]},{functionName:Zn.ROWS,functionType:Z.Lookup,description:"formula.functionList.ROWS.description",abstract:"formula.functionList.ROWS.abstract",functionParameter:[{name:"formula.functionList.ROWS.functionParameter.array.name",detail:"formula.functionList.ROWS.functionParameter.array.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.RTD,functionType:Z.Lookup,description:"formula.functionList.RTD.description",abstract:"formula.functionList.RTD.abstract",functionParameter:[{name:"formula.functionList.RTD.functionParameter.number1.name",detail:"formula.functionList.RTD.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.RTD.functionParameter.number2.name",detail:"formula.functionList.RTD.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Zn.SORT,functionType:Z.Lookup,description:"formula.functionList.SORT.description",abstract:"formula.functionList.SORT.abstract",functionParameter:[{name:"formula.functionList.SORT.functionParameter.array.name",detail:"formula.functionList.SORT.functionParameter.array.detail",example:"A2:A17",require:1,repeat:0},{name:"formula.functionList.SORT.functionParameter.sortIndex.name",detail:"formula.functionList.SORT.functionParameter.sortIndex.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.SORT.functionParameter.sortOrder.name",detail:"formula.functionList.SORT.functionParameter.sortOrder.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.SORT.functionParameter.byCol.name",detail:"formula.functionList.SORT.functionParameter.byCol.detail",example:"false",require:0,repeat:0}]},{functionName:Zn.SORTBY,functionType:Z.Lookup,description:"formula.functionList.SORTBY.description",abstract:"formula.functionList.SORTBY.abstract",functionParameter:[{name:"formula.functionList.SORTBY.functionParameter.array.name",detail:"formula.functionList.SORTBY.functionParameter.array.detail",example:"D2:D9",require:1,repeat:0},{name:"formula.functionList.SORTBY.functionParameter.byArray1.name",detail:"formula.functionList.SORTBY.functionParameter.byArray1.detail",example:"E2:E9",require:1,repeat:0},{name:"formula.functionList.SORTBY.functionParameter.sortOrder1.name",detail:"formula.functionList.SORTBY.functionParameter.sortOrder1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.SORTBY.functionParameter.byArray2.name",detail:"formula.functionList.SORTBY.functionParameter.byArray2.detail",example:"E2:E9",require:0,repeat:1},{name:"formula.functionList.SORTBY.functionParameter.sortOrder2.name",detail:"formula.functionList.SORTBY.functionParameter.sortOrder2.detail",example:"1",require:0,repeat:1}]},{functionName:Zn.TAKE,functionType:Z.Lookup,description:"formula.functionList.TAKE.description",abstract:"formula.functionList.TAKE.abstract",functionParameter:[{name:"formula.functionList.TAKE.functionParameter.array.name",detail:"formula.functionList.TAKE.functionParameter.array.detail",example:"A2:C4",require:1,repeat:0},{name:"formula.functionList.TAKE.functionParameter.rows.name",detail:"formula.functionList.TAKE.functionParameter.rows.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.TAKE.functionParameter.columns.name",detail:"formula.functionList.TAKE.functionParameter.columns.detail",example:"2",require:0,repeat:0}]},{functionName:Zn.TOCOL,functionType:Z.Lookup,description:"formula.functionList.TOCOL.description",abstract:"formula.functionList.TOCOL.abstract",functionParameter:[{name:"formula.functionList.TOCOL.functionParameter.array.name",detail:"formula.functionList.TOCOL.functionParameter.array.detail",example:"A2:D4",require:1,repeat:0},{name:"formula.functionList.TOCOL.functionParameter.ignore.name",detail:"formula.functionList.TOCOL.functionParameter.ignore.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TOCOL.functionParameter.scanByColumn.name",detail:"formula.functionList.TOCOL.functionParameter.scanByColumn.detail",example:"TRUE",require:0,repeat:0}]},{functionName:Zn.TOROW,functionType:Z.Lookup,description:"formula.functionList.TOROW.description",abstract:"formula.functionList.TOROW.abstract",functionParameter:[{name:"formula.functionList.TOROW.functionParameter.array.name",detail:"formula.functionList.TOROW.functionParameter.array.detail",example:"A2:D4",require:1,repeat:0},{name:"formula.functionList.TOROW.functionParameter.ignore.name",detail:"formula.functionList.TOROW.functionParameter.ignore.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TOROW.functionParameter.scanByColumn.name",detail:"formula.functionList.TOROW.functionParameter.scanByColumn.detail",example:"TRUE",require:0,repeat:0}]},{functionName:Zn.TRANSPOSE,functionType:Z.Lookup,description:"formula.functionList.TRANSPOSE.description",abstract:"formula.functionList.TRANSPOSE.abstract",functionParameter:[{name:"formula.functionList.TRANSPOSE.functionParameter.array.name",detail:"formula.functionList.TRANSPOSE.functionParameter.array.detail",example:"A2:F9",require:1,repeat:0}]},{functionName:Zn.UNIQUE,functionType:Z.Lookup,description:"formula.functionList.UNIQUE.description",abstract:"formula.functionList.UNIQUE.abstract",functionParameter:[{name:"formula.functionList.UNIQUE.functionParameter.array.name",detail:"formula.functionList.UNIQUE.functionParameter.array.detail",example:"A2:A12",require:1,repeat:0},{name:"formula.functionList.UNIQUE.functionParameter.byCol.name",detail:"formula.functionList.UNIQUE.functionParameter.byCol.detail",example:"false",require:0,repeat:0},{name:"formula.functionList.UNIQUE.functionParameter.exactlyOnce.name",detail:"formula.functionList.UNIQUE.functionParameter.exactlyOnce.detail",example:"false",require:0,repeat:0}]},{functionName:Zn.VLOOKUP,functionType:Z.Lookup,description:"formula.functionList.VLOOKUP.description",abstract:"formula.functionList.VLOOKUP.abstract",functionParameter:[{name:"formula.functionList.VLOOKUP.functionParameter.lookupValue.name",detail:"formula.functionList.VLOOKUP.functionParameter.lookupValue.detail",example:"B2",require:1,repeat:0},{name:"formula.functionList.VLOOKUP.functionParameter.tableArray.name",detail:"formula.functionList.VLOOKUP.functionParameter.tableArray.detail",example:"C2:E7",require:1,repeat:0},{name:"formula.functionList.VLOOKUP.functionParameter.colIndexNum.name",detail:"formula.functionList.VLOOKUP.functionParameter.colIndexNum.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VLOOKUP.functionParameter.rangeLookup.name",detail:"formula.functionList.VLOOKUP.functionParameter.rangeLookup.detail",example:"TRUE",require:0,repeat:0}]},{functionName:Zn.VSTACK,functionType:Z.Lookup,description:"formula.functionList.VSTACK.description",abstract:"formula.functionList.VSTACK.abstract",functionParameter:[{name:"formula.functionList.VSTACK.functionParameter.array1.name",detail:"formula.functionList.VSTACK.functionParameter.array1.detail",example:"A2:C3",require:1,repeat:0},{name:"formula.functionList.VSTACK.functionParameter.array2.name",detail:"formula.functionList.VSTACK.functionParameter.array2.detail",example:"E2:G3",require:0,repeat:1}]},{functionName:Zn.WRAPCOLS,functionType:Z.Lookup,description:"formula.functionList.WRAPCOLS.description",abstract:"formula.functionList.WRAPCOLS.abstract",functionParameter:[{name:"formula.functionList.WRAPCOLS.functionParameter.vector.name",detail:"formula.functionList.WRAPCOLS.functionParameter.vector.detail",example:"A2:G2",require:1,repeat:0},{name:"formula.functionList.WRAPCOLS.functionParameter.wrapCount.name",detail:"formula.functionList.WRAPCOLS.functionParameter.wrapCount.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.WRAPCOLS.functionParameter.padWith.name",detail:"formula.functionList.WRAPCOLS.functionParameter.padWith.detail",example:'"x"',require:0,repeat:0}]},{functionName:Zn.WRAPROWS,functionType:Z.Lookup,description:"formula.functionList.WRAPROWS.description",abstract:"formula.functionList.WRAPROWS.abstract",functionParameter:[{name:"formula.functionList.WRAPROWS.functionParameter.vector.name",detail:"formula.functionList.WRAPROWS.functionParameter.vector.detail",example:"A2:G2",require:1,repeat:0},{name:"formula.functionList.WRAPROWS.functionParameter.wrapCount.name",detail:"formula.functionList.WRAPROWS.functionParameter.wrapCount.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.WRAPROWS.functionParameter.padWith.name",detail:"formula.functionList.WRAPROWS.functionParameter.padWith.detail",example:'"x"',require:0,repeat:0}]},{functionName:Zn.XLOOKUP,functionType:Z.Lookup,description:"formula.functionList.XLOOKUP.description",abstract:"formula.functionList.XLOOKUP.abstract",functionParameter:[{name:"formula.functionList.XLOOKUP.functionParameter.lookupValue.name",detail:"formula.functionList.XLOOKUP.functionParameter.lookupValue.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.XLOOKUP.functionParameter.lookupArray.name",detail:"formula.functionList.XLOOKUP.functionParameter.lookupArray.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.XLOOKUP.functionParameter.returnArray.name",detail:"formula.functionList.XLOOKUP.functionParameter.returnArray.detail",example:"B1:B20",require:1,repeat:0},{name:"formula.functionList.XLOOKUP.functionParameter.ifNotFound.name",detail:"formula.functionList.XLOOKUP.functionParameter.ifNotFound.detail",example:"default",require:0,repeat:0},{name:"formula.functionList.XLOOKUP.functionParameter.matchMode.name",detail:"formula.functionList.XLOOKUP.functionParameter.matchMode.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.XLOOKUP.functionParameter.searchMode.name",detail:"formula.functionList.XLOOKUP.functionParameter.searchMode.detail",example:"1",require:0,repeat:0}]},{functionName:Zn.XMATCH,functionType:Z.Lookup,description:"formula.functionList.XMATCH.description",abstract:"formula.functionList.XMATCH.abstract",functionParameter:[{name:"formula.functionList.XMATCH.functionParameter.lookupValue.name",detail:"formula.functionList.XMATCH.functionParameter.lookupValue.detail",example:"B1",require:1,repeat:0},{name:"formula.functionList.XMATCH.functionParameter.lookupArray.name",detail:"formula.functionList.XMATCH.functionParameter.lookupArray.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.XMATCH.functionParameter.matchMode.name",detail:"formula.functionList.XMATCH.functionParameter.matchMode.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.XMATCH.functionParameter.searchMode.name",detail:"formula.functionList.XMATCH.functionParameter.searchMode.detail",example:"1",require:0,repeat:0}]}],snn=[{functionName:mt.ABS,functionType:Z.Math,description:"formula.functionList.ABS.description",abstract:"formula.functionList.ABS.abstract",functionParameter:[{name:"formula.functionList.ABS.functionParameter.number.name",detail:"formula.functionList.ABS.functionParameter.number.detail",example:"-2",require:1,repeat:0}]},{functionName:mt.ACOS,functionType:Z.Math,description:"formula.functionList.ACOS.description",abstract:"formula.functionList.ACOS.abstract",functionParameter:[{name:"formula.functionList.ACOS.functionParameter.number.name",detail:"formula.functionList.ACOS.functionParameter.number.detail",example:"0",require:1,repeat:0}]},{functionName:mt.ACOSH,functionType:Z.Math,description:"formula.functionList.ACOSH.description",abstract:"formula.functionList.ACOSH.abstract",functionParameter:[{name:"formula.functionList.ACOSH.functionParameter.number.name",detail:"formula.functionList.ACOSH.functionParameter.number.detail",example:"2",require:1,repeat:0}]},{functionName:mt.ACOT,functionType:Z.Math,description:"formula.functionList.ACOT.description",abstract:"formula.functionList.ACOT.abstract",functionParameter:[{name:"formula.functionList.ACOT.functionParameter.number.name",detail:"formula.functionList.ACOT.functionParameter.number.detail",example:"0",require:1,repeat:0}]},{functionName:mt.ACOTH,functionType:Z.Math,description:"formula.functionList.ACOTH.description",abstract:"formula.functionList.ACOTH.abstract",functionParameter:[{name:"formula.functionList.ACOTH.functionParameter.number.name",detail:"formula.functionList.ACOTH.functionParameter.number.detail",example:"6",require:1,repeat:0}]},{functionName:mt.AGGREGATE,functionType:Z.Math,description:"formula.functionList.AGGREGATE.description",abstract:"formula.functionList.AGGREGATE.abstract",functionParameter:[{name:"formula.functionList.AGGREGATE.functionParameter.number1.name",detail:"formula.functionList.AGGREGATE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AGGREGATE.functionParameter.number2.name",detail:"formula.functionList.AGGREGATE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:mt.ARABIC,functionType:Z.Math,description:"formula.functionList.ARABIC.description",abstract:"formula.functionList.ARABIC.abstract",functionParameter:[{name:"formula.functionList.ARABIC.functionParameter.number1.name",detail:"formula.functionList.ARABIC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ARABIC.functionParameter.number2.name",detail:"formula.functionList.ARABIC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:mt.ASIN,functionType:Z.Math,description:"formula.functionList.ASIN.description",abstract:"formula.functionList.ASIN.abstract",functionParameter:[{name:"formula.functionList.ASIN.functionParameter.number.name",detail:"formula.functionList.ASIN.functionParameter.number.detail",example:"0",require:1,repeat:0}]},{functionName:mt.ASINH,functionType:Z.Math,description:"formula.functionList.ASINH.description",abstract:"formula.functionList.ASINH.abstract",functionParameter:[{name:"formula.functionList.ASINH.functionParameter.number.name",detail:"formula.functionList.ASINH.functionParameter.number.detail",example:"10",require:1,repeat:0}]},{functionName:mt.ATAN,functionType:Z.Math,description:"formula.functionList.ATAN.description",abstract:"formula.functionList.ATAN.abstract",functionParameter:[{name:"formula.functionList.ATAN.functionParameter.number.name",detail:"formula.functionList.ATAN.functionParameter.number.detail",example:"1",require:1,repeat:0}]},{functionName:mt.ATAN2,functionType:Z.Math,description:"formula.functionList.ATAN2.description",abstract:"formula.functionList.ATAN2.abstract",functionParameter:[{name:"formula.functionList.ATAN2.functionParameter.xNum.name",detail:"formula.functionList.ATAN2.functionParameter.xNum.detail",example:"4",require:1,repeat:0},{name:"formula.functionList.ATAN2.functionParameter.yNum.name",detail:"formula.functionList.ATAN2.functionParameter.yNum.detail",example:"3",require:1,repeat:0}]},{functionName:mt.ATANH,functionType:Z.Math,description:"formula.functionList.ATANH.description",abstract:"formula.functionList.ATANH.abstract",functionParameter:[{name:"formula.functionList.ATANH.functionParameter.number.name",detail:"formula.functionList.ATANH.functionParameter.number.detail",example:"0.1",require:1,repeat:0}]},{functionName:mt.BASE,functionType:Z.Math,description:"formula.functionList.BASE.description",abstract:"formula.functionList.BASE.abstract",functionParameter:[{name:"formula.functionList.BASE.functionParameter.number.name",detail:"formula.functionList.BASE.functionParameter.number.detail",example:"15",require:1,repeat:0},{name:"formula.functionList.BASE.functionParameter.radix.name",detail:"formula.functionList.BASE.functionParameter.radix.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.BASE.functionParameter.minLength.name",detail:"formula.functionList.BASE.functionParameter.minLength.detail",example:"10",require:0,repeat:0}]},{functionName:mt.CEILING,functionType:Z.Math,description:"formula.functionList.CEILING.description",abstract:"formula.functionList.CEILING.abstract",functionParameter:[{name:"formula.functionList.CEILING.functionParameter.number.name",detail:"formula.functionList.CEILING.functionParameter.number.detail",example:"2.5",require:1,repeat:0},{name:"formula.functionList.CEILING.functionParameter.significance.name",detail:"formula.functionList.CEILING.functionParameter.significance.detail",example:"1",require:1,repeat:0}]},{functionName:mt.CEILING_MATH,functionType:Z.Math,description:"formula.functionList.CEILING_MATH.description",abstract:"formula.functionList.CEILING_MATH.abstract",functionParameter:[{name:"formula.functionList.CEILING_MATH.functionParameter.number.name",detail:"formula.functionList.CEILING_MATH.functionParameter.number.detail",example:"-5.5",require:1,repeat:0},{name:"formula.functionList.CEILING_MATH.functionParameter.significance.name",detail:"formula.functionList.CEILING_MATH.functionParameter.significance.detail",example:"2",require:0,repeat:0},{name:"formula.functionList.CEILING_MATH.functionParameter.mode.name",detail:"formula.functionList.CEILING_MATH.functionParameter.mode.detail",example:"-1",require:0,repeat:0}]},{functionName:mt.CEILING_PRECISE,functionType:Z.Math,description:"formula.functionList.CEILING_PRECISE.description",abstract:"formula.functionList.CEILING_PRECISE.abstract",functionParameter:[{name:"formula.functionList.CEILING_PRECISE.functionParameter.number.name",detail:"formula.functionList.CEILING_PRECISE.functionParameter.number.detail",example:"4.3",require:1,repeat:0},{name:"formula.functionList.CEILING_PRECISE.functionParameter.significance.name",detail:"formula.functionList.CEILING_PRECISE.functionParameter.significance.detail",example:"2",require:0,repeat:0}]},{functionName:mt.COMBIN,functionType:Z.Math,description:"formula.functionList.COMBIN.description",abstract:"formula.functionList.COMBIN.abstract",functionParameter:[{name:"formula.functionList.COMBIN.functionParameter.number.name",detail:"formula.functionList.COMBIN.functionParameter.number.detail",example:"8",require:1,repeat:0},{name:"formula.functionList.COMBIN.functionParameter.numberChosen.name",detail:"formula.functionList.COMBIN.functionParameter.numberChosen.detail",example:"2",require:1,repeat:0}]},{functionName:mt.COMBINA,functionType:Z.Math,description:"formula.functionList.COMBINA.description",abstract:"formula.functionList.COMBINA.abstract",functionParameter:[{name:"formula.functionList.COMBINA.functionParameter.number.name",detail:"formula.functionList.COMBINA.functionParameter.number.detail",example:"8",require:1,repeat:0},{name:"formula.functionList.COMBINA.functionParameter.numberChosen.name",detail:"formula.functionList.COMBINA.functionParameter.numberChosen.detail",example:"2",require:1,repeat:0}]},{functionName:mt.COS,functionType:Z.Math,description:"formula.functionList.COS.description",abstract:"formula.functionList.COS.abstract",functionParameter:[{name:"formula.functionList.COS.functionParameter.number.name",detail:"formula.functionList.COS.functionParameter.number.detail",example:"1",require:1,repeat:0}]},{functionName:mt.COSH,functionType:Z.Math,description:"formula.functionList.COSH.description",abstract:"formula.functionList.COSH.abstract",functionParameter:[{name:"formula.functionList.COSH.functionParameter.number.name",detail:"formula.functionList.COSH.functionParameter.number.detail",example:"4",require:1,repeat:0}]},{functionName:mt.COT,functionType:Z.Math,description:"formula.functionList.COT.description",abstract:"formula.functionList.COT.abstract",functionParameter:[{name:"formula.functionList.COT.functionParameter.number.name",detail:"formula.functionList.COT.functionParameter.number.detail",example:"30",require:1,repeat:0}]},{functionName:mt.COTH,functionType:Z.Math,description:"formula.functionList.COTH.description",abstract:"formula.functionList.COTH.abstract",functionParameter:[{name:"formula.functionList.COTH.functionParameter.number.name",detail:"formula.functionList.COTH.functionParameter.number.detail",example:"2",require:1,repeat:0}]},{functionName:mt.CSC,functionType:Z.Math,description:"formula.functionList.CSC.description",abstract:"formula.functionList.CSC.abstract",functionParameter:[{name:"formula.functionList.CSC.functionParameter.number.name",detail:"formula.functionList.CSC.functionParameter.number.detail",example:"15",require:1,repeat:0}]},{functionName:mt.CSCH,functionType:Z.Math,description:"formula.functionList.CSCH.description",abstract:"formula.functionList.CSCH.abstract",functionParameter:[{name:"formula.functionList.CSCH.functionParameter.number.name",detail:"formula.functionList.CSCH.functionParameter.number.detail",example:"1.5",require:1,repeat:0}]},{functionName:mt.DECIMAL,functionType:Z.Math,description:"formula.functionList.DECIMAL.description",abstract:"formula.functionList.DECIMAL.abstract",functionParameter:[{name:"formula.functionList.DECIMAL.functionParameter.text.name",detail:"formula.functionList.DECIMAL.functionParameter.text.detail",example:'"FF"',require:1,repeat:0},{name:"formula.functionList.DECIMAL.functionParameter.radix.name",detail:"formula.functionList.DECIMAL.functionParameter.radix.detail",example:"16",require:1,repeat:0}]},{functionName:mt.DEGREES,functionType:Z.Math,description:"formula.functionList.DEGREES.description",abstract:"formula.functionList.DEGREES.abstract",functionParameter:[{name:"formula.functionList.DEGREES.functionParameter.angle.name",detail:"formula.functionList.DEGREES.functionParameter.angle.detail",example:"PI()",require:1,repeat:0}]},{functionName:mt.EVEN,functionType:Z.Math,description:"formula.functionList.EVEN.description",abstract:"formula.functionList.EVEN.abstract",functionParameter:[{name:"formula.functionList.EVEN.functionParameter.number.name",detail:"formula.functionList.EVEN.functionParameter.number.detail",example:"1.5",require:1,repeat:0}]},{functionName:mt.EXP,functionType:Z.Math,description:"formula.functionList.EXP.description",abstract:"formula.functionList.EXP.abstract",functionParameter:[{name:"formula.functionList.EXP.functionParameter.number.name",detail:"formula.functionList.EXP.functionParameter.number.detail",example:"2",require:1,repeat:0}]},{functionName:mt.FACT,functionType:Z.Math,description:"formula.functionList.FACT.description",abstract:"formula.functionList.FACT.abstract",functionParameter:[{name:"formula.functionList.FACT.functionParameter.number.name",detail:"formula.functionList.FACT.functionParameter.number.detail",example:"5",require:1,repeat:0}]},{functionName:mt.FACTDOUBLE,functionType:Z.Math,description:"formula.functionList.FACTDOUBLE.description",abstract:"formula.functionList.FACTDOUBLE.abstract",functionParameter:[{name:"formula.functionList.FACTDOUBLE.functionParameter.number.name",detail:"formula.functionList.FACTDOUBLE.functionParameter.number.detail",example:"6",require:1,repeat:0}]},{functionName:mt.FLOOR,functionType:Z.Math,description:"formula.functionList.FLOOR.description",abstract:"formula.functionList.FLOOR.abstract",functionParameter:[{name:"formula.functionList.FLOOR.functionParameter.number.name",detail:"formula.functionList.FLOOR.functionParameter.number.detail",example:"3.7",require:1,repeat:0},{name:"formula.functionList.FLOOR.functionParameter.significance.name",detail:"formula.functionList.FLOOR.functionParameter.significance.detail",example:"2",require:1,repeat:0}]},{functionName:mt.FLOOR_MATH,functionType:Z.Math,description:"formula.functionList.FLOOR_MATH.description",abstract:"formula.functionList.FLOOR_MATH.abstract",functionParameter:[{name:"formula.functionList.FLOOR_MATH.functionParameter.number.name",detail:"formula.functionList.FLOOR_MATH.functionParameter.number.detail",example:"-5.5",require:1,repeat:0},{name:"formula.functionList.FLOOR_MATH.functionParameter.significance.name",detail:"formula.functionList.FLOOR_MATH.functionParameter.significance.detail",example:"2",require:0,repeat:0},{name:"formula.functionList.FLOOR_MATH.functionParameter.mode.name",detail:"formula.functionList.FLOOR_MATH.functionParameter.mode.detail",example:"-1",require:0,repeat:0}]},{functionName:mt.FLOOR_PRECISE,functionType:Z.Math,description:"formula.functionList.FLOOR_PRECISE.description",abstract:"formula.functionList.FLOOR_PRECISE.abstract",functionParameter:[{name:"formula.functionList.FLOOR_PRECISE.functionParameter.number.name",detail:"formula.functionList.FLOOR_PRECISE.functionParameter.number.detail",example:"-3.2",require:1,repeat:0},{name:"formula.functionList.FLOOR_PRECISE.functionParameter.significance.name",detail:"formula.functionList.FLOOR_PRECISE.functionParameter.significance.detail",example:"-1",require:0,repeat:0}]},{functionName:mt.GCD,functionType:Z.Math,description:"formula.functionList.GCD.description",abstract:"formula.functionList.GCD.abstract",functionParameter:[{name:"formula.functionList.GCD.functionParameter.number1.name",detail:"formula.functionList.GCD.functionParameter.number1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.GCD.functionParameter.number2.name",detail:"formula.functionList.GCD.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:mt.INT,functionType:Z.Math,description:"formula.functionList.INT.description",abstract:"formula.functionList.INT.abstract",functionParameter:[{name:"formula.functionList.INT.functionParameter.number.name",detail:"formula.functionList.INT.functionParameter.number.detail",example:"8.9",require:1,repeat:0}]},{functionName:mt.ISO_CEILING,functionType:Z.Math,description:"formula.functionList.ISO_CEILING.description",abstract:"formula.functionList.ISO_CEILING.abstract",functionParameter:[{name:"formula.functionList.ISO_CEILING.functionParameter.number1.name",detail:"formula.functionList.ISO_CEILING.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ISO_CEILING.functionParameter.number2.name",detail:"formula.functionList.ISO_CEILING.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:mt.LCM,functionType:Z.Math,description:"formula.functionList.LCM.description",abstract:"formula.functionList.LCM.abstract",functionParameter:[{name:"formula.functionList.LCM.functionParameter.number1.name",detail:"formula.functionList.LCM.functionParameter.number1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.LCM.functionParameter.number2.name",detail:"formula.functionList.LCM.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:mt.LET,functionType:Z.Math,description:"formula.functionList.LET.description",abstract:"formula.functionList.LET.abstract",functionParameter:[{name:"formula.functionList.LET.functionParameter.number1.name",detail:"formula.functionList.LET.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LET.functionParameter.number2.name",detail:"formula.functionList.LET.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:mt.LN,functionType:Z.Math,description:"formula.functionList.LN.description",abstract:"formula.functionList.LN.abstract",functionParameter:[{name:"formula.functionList.LN.functionParameter.number.name",detail:"formula.functionList.LN.functionParameter.number.detail",example:"EXP(3)",require:1,repeat:0}]},{functionName:mt.LOG,functionType:Z.Math,description:"formula.functionList.LOG.description",abstract:"formula.functionList.LOG.abstract",functionParameter:[{name:"formula.functionList.LOG.functionParameter.number.name",detail:"formula.functionList.LOG.functionParameter.number.detail",example:"8",require:1,repeat:0},{name:"formula.functionList.LOG.functionParameter.base.name",detail:"formula.functionList.LOG.functionParameter.base.detail",example:"2",require:0,repeat:0}]},{functionName:mt.LOG10,functionType:Z.Math,description:"formula.functionList.LOG10.description",abstract:"formula.functionList.LOG10.abstract",functionParameter:[{name:"formula.functionList.LOG10.functionParameter.number.name",detail:"formula.functionList.LOG10.functionParameter.number.detail",example:"100000",require:1,repeat:0}]},{functionName:mt.MDETERM,functionType:Z.Math,description:"formula.functionList.MDETERM.description",abstract:"formula.functionList.MDETERM.abstract",functionParameter:[{name:"formula.functionList.MDETERM.functionParameter.array.name",detail:"formula.functionList.MDETERM.functionParameter.array.detail",example:"{3,6,1;1,1,0;3,10,2}",require:1,repeat:0}]},{functionName:mt.MINVERSE,functionType:Z.Math,description:"formula.functionList.MINVERSE.description",abstract:"formula.functionList.MINVERSE.abstract",functionParameter:[{name:"formula.functionList.MINVERSE.functionParameter.array.name",detail:"formula.functionList.MINVERSE.functionParameter.array.detail",example:"{3,6,1;1,1,0;3,10,2}",require:1,repeat:0}]},{functionName:mt.MMULT,functionType:Z.Math,description:"formula.functionList.MMULT.description",abstract:"formula.functionList.MMULT.abstract",functionParameter:[{name:"formula.functionList.MMULT.functionParameter.array1.name",detail:"formula.functionList.MMULT.functionParameter.array1.detail",example:"A2:B3",require:1,repeat:0},{name:"formula.functionList.MMULT.functionParameter.array2.name",detail:"formula.functionList.MMULT.functionParameter.array2.detail",example:"A5:B6",require:1,repeat:0}]},{functionName:mt.MOD,functionType:Z.Math,description:"formula.functionList.MOD.description",abstract:"formula.functionList.MOD.abstract",functionParameter:[{name:"formula.functionList.MOD.functionParameter.number.name",detail:"formula.functionList.MOD.functionParameter.number.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.MOD.functionParameter.divisor.name",detail:"formula.functionList.MOD.functionParameter.divisor.detail",example:"2",require:1,repeat:0}]},{functionName:mt.MROUND,functionType:Z.Math,description:"formula.functionList.MROUND.description",abstract:"formula.functionList.MROUND.abstract",functionParameter:[{name:"formula.functionList.MROUND.functionParameter.number.name",detail:"formula.functionList.MROUND.functionParameter.number.detail",example:"10",require:1,repeat:0},{name:"formula.functionList.MROUND.functionParameter.multiple.name",detail:"formula.functionList.MROUND.functionParameter.multiple.detail",example:"3",require:1,repeat:0}]},{functionName:mt.MULTINOMIAL,functionType:Z.Math,description:"formula.functionList.MULTINOMIAL.description",abstract:"formula.functionList.MULTINOMIAL.abstract",functionParameter:[{name:"formula.functionList.MULTINOMIAL.functionParameter.number1.name",detail:"formula.functionList.MULTINOMIAL.functionParameter.number1.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.MULTINOMIAL.functionParameter.number2.name",detail:"formula.functionList.MULTINOMIAL.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:mt.MUNIT,functionType:Z.Math,description:"formula.functionList.MUNIT.description",abstract:"formula.functionList.MUNIT.abstract",functionParameter:[{name:"formula.functionList.MUNIT.functionParameter.dimension.name",detail:"formula.functionList.MUNIT.functionParameter.dimension.detail",example:"3",require:1,repeat:0}]},{functionName:mt.ODD,functionType:Z.Math,description:"formula.functionList.ODD.description",abstract:"formula.functionList.ODD.abstract",functionParameter:[{name:"formula.functionList.ODD.functionParameter.number.name",detail:"formula.functionList.ODD.functionParameter.number.detail",example:"1.5",require:1,repeat:0}]},{functionName:mt.PI,functionType:Z.Math,description:"formula.functionList.PI.description",abstract:"formula.functionList.PI.abstract",functionParameter:[]},{functionName:mt.POWER,functionType:Z.Math,description:"formula.functionList.POWER.description",abstract:"formula.functionList.POWER.abstract",functionParameter:[{name:"formula.functionList.POWER.functionParameter.number.name",detail:"formula.functionList.POWER.functionParameter.number.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.POWER.functionParameter.power.name",detail:"formula.functionList.POWER.functionParameter.power.detail",example:"2",require:1,repeat:0}]},{functionName:mt.PRODUCT,functionType:Z.Math,description:"formula.functionList.PRODUCT.description",abstract:"formula.functionList.PRODUCT.abstract",functionParameter:[{name:"formula.functionList.PRODUCT.functionParameter.number1.name",detail:"formula.functionList.PRODUCT.functionParameter.number1.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.PRODUCT.functionParameter.number2.name",detail:"formula.functionList.PRODUCT.functionParameter.number2.detail",example:"A2",require:0,repeat:1}]},{functionName:mt.QUOTIENT,functionType:Z.Math,description:"formula.functionList.QUOTIENT.description",abstract:"formula.functionList.QUOTIENT.abstract",functionParameter:[{name:"formula.functionList.QUOTIENT.functionParameter.numerator.name",detail:"formula.functionList.QUOTIENT.functionParameter.numerator.detail",example:"5",require:1,repeat:0},{name:"formula.functionList.QUOTIENT.functionParameter.denominator.name",detail:"formula.functionList.QUOTIENT.functionParameter.denominator.detail",example:"2",require:1,repeat:0}]},{functionName:mt.RADIANS,functionType:Z.Math,description:"formula.functionList.RADIANS.description",abstract:"formula.functionList.RADIANS.abstract",functionParameter:[{name:"formula.functionList.RADIANS.functionParameter.angle.name",detail:"formula.functionList.RADIANS.functionParameter.angle.detail",example:"270",require:1,repeat:0}]},{functionName:mt.RAND,functionType:Z.Math,description:"formula.functionList.RAND.description",abstract:"formula.functionList.RAND.abstract",functionParameter:[]},{functionName:mt.RANDARRAY,functionType:Z.Math,description:"formula.functionList.RANDARRAY.description",abstract:"formula.functionList.RANDARRAY.abstract",functionParameter:[{name:"formula.functionList.RANDARRAY.functionParameter.rows.name",detail:"formula.functionList.RANDARRAY.functionParameter.rows.detail",example:"5",require:0,repeat:0},{name:"formula.functionList.RANDARRAY.functionParameter.columns.name",detail:"formula.functionList.RANDARRAY.functionParameter.columns.detail",example:"3",require:0,repeat:0},{name:"formula.functionList.RANDARRAY.functionParameter.min.name",detail:"formula.functionList.RANDARRAY.functionParameter.min.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.RANDARRAY.functionParameter.max.name",detail:"formula.functionList.RANDARRAY.functionParameter.max.detail",example:"100",require:0,repeat:0},{name:"formula.functionList.RANDARRAY.functionParameter.wholeNumber.name",detail:"formula.functionList.RANDARRAY.functionParameter.wholeNumber.detail",example:"TRUE",require:0,repeat:0}]},{functionName:mt.RANDBETWEEN,functionType:Z.Math,description:"formula.functionList.RANDBETWEEN.description",abstract:"formula.functionList.RANDBETWEEN.abstract",functionParameter:[{name:"formula.functionList.RANDBETWEEN.functionParameter.bottom.name",detail:"formula.functionList.RANDBETWEEN.functionParameter.bottom.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.RANDBETWEEN.functionParameter.top.name",detail:"formula.functionList.RANDBETWEEN.functionParameter.top.detail",example:"100",require:1,repeat:0}]},{functionName:mt.ROMAN,functionType:Z.Math,description:"formula.functionList.ROMAN.description",abstract:"formula.functionList.ROMAN.abstract",functionParameter:[{name:"formula.functionList.ROMAN.functionParameter.number1.name",detail:"formula.functionList.ROMAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ROMAN.functionParameter.number2.name",detail:"formula.functionList.ROMAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:mt.ROUND,functionType:Z.Math,description:"formula.functionList.ROUND.description",abstract:"formula.functionList.ROUND.abstract",functionParameter:[{name:"formula.functionList.ROUND.functionParameter.number.name",detail:"formula.functionList.ROUND.functionParameter.number.detail",example:"2.15",require:1,repeat:0},{name:"formula.functionList.ROUND.functionParameter.numDigits.name",detail:"formula.functionList.ROUND.functionParameter.numDigits.detail",example:"1",require:1,repeat:0}]},{functionName:mt.ROUNDDOWN,functionType:Z.Math,description:"formula.functionList.ROUNDDOWN.description",abstract:"formula.functionList.ROUNDDOWN.abstract",functionParameter:[{name:"formula.functionList.ROUNDDOWN.functionParameter.number.name",detail:"formula.functionList.ROUNDDOWN.functionParameter.number.detail",example:"3.2",require:1,repeat:0},{name:"formula.functionList.ROUNDDOWN.functionParameter.numDigits.name",detail:"formula.functionList.ROUNDDOWN.functionParameter.numDigits.detail",example:"0",require:1,repeat:0}]},{functionName:mt.ROUNDUP,functionType:Z.Math,description:"formula.functionList.ROUNDUP.description",abstract:"formula.functionList.ROUNDUP.abstract",functionParameter:[{name:"formula.functionList.ROUNDUP.functionParameter.number.name",detail:"formula.functionList.ROUNDUP.functionParameter.number.detail",example:"3.2",require:1,repeat:0},{name:"formula.functionList.ROUNDUP.functionParameter.numDigits.name",detail:"formula.functionList.ROUNDUP.functionParameter.numDigits.detail",example:"0",require:1,repeat:0}]},{functionName:mt.SEC,functionType:Z.Math,description:"formula.functionList.SEC.description",abstract:"formula.functionList.SEC.abstract",functionParameter:[{name:"formula.functionList.SEC.functionParameter.number.name",detail:"formula.functionList.SEC.functionParameter.number.detail",example:"30",require:1,repeat:0}]},{functionName:mt.SECH,functionType:Z.Math,description:"formula.functionList.SECH.description",abstract:"formula.functionList.SECH.abstract",functionParameter:[{name:"formula.functionList.SECH.functionParameter.number.name",detail:"formula.functionList.SECH.functionParameter.number.detail",example:"30",require:1,repeat:0}]},{functionName:mt.SERIESSUM,functionType:Z.Math,description:"formula.functionList.SERIESSUM.description",abstract:"formula.functionList.SERIESSUM.abstract",functionParameter:[{name:"formula.functionList.SERIESSUM.functionParameter.x.name",detail:"formula.functionList.SERIESSUM.functionParameter.x.detail",example:"0.785398163",require:1,repeat:0},{name:"formula.functionList.SERIESSUM.functionParameter.n.name",detail:"formula.functionList.SERIESSUM.functionParameter.n.detail",example:"0",require:1,repeat:0},{name:"formula.functionList.SERIESSUM.functionParameter.m.name",detail:"formula.functionList.SERIESSUM.functionParameter.m.detail",example:"2",require:1,repeat:0},{name:"formula.functionList.SERIESSUM.functionParameter.coefficients.name",detail:"formula.functionList.SERIESSUM.functionParameter.coefficients.detail",example:"{1,-0.5,0.041666667,-0.001388889}",require:1,repeat:0}]},{functionName:mt.SEQUENCE,functionType:Z.Math,description:"formula.functionList.SEQUENCE.description",abstract:"formula.functionList.SEQUENCE.abstract",functionParameter:[{name:"formula.functionList.SEQUENCE.functionParameter.rows.name",detail:"formula.functionList.SEQUENCE.functionParameter.rows.detail",example:"4",require:1,repeat:0},{name:"formula.functionList.SEQUENCE.functionParameter.columns.name",detail:"formula.functionList.SEQUENCE.functionParameter.columns.detail",example:"5",require:0,repeat:0},{name:"formula.functionList.SEQUENCE.functionParameter.start.name",detail:"formula.functionList.SEQUENCE.functionParameter.start.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.SEQUENCE.functionParameter.step.name",detail:"formula.functionList.SEQUENCE.functionParameter.step.detail",example:"1",require:0,repeat:0}]},{functionName:mt.SIGN,functionType:Z.Math,description:"formula.functionList.SIGN.description",abstract:"formula.functionList.SIGN.abstract",functionParameter:[{name:"formula.functionList.SIGN.functionParameter.number.name",detail:"formula.functionList.SIGN.functionParameter.number.detail",example:"10",require:1,repeat:0}]},{functionName:mt.SIN,functionType:Z.Math,description:"formula.functionList.SIN.description",abstract:"formula.functionList.SIN.abstract",functionParameter:[{name:"formula.functionList.SIN.functionParameter.number.name",detail:"formula.functionList.SIN.functionParameter.number.detail",example:"30*PI()/180",require:1,repeat:0}]},{functionName:mt.SINH,functionType:Z.Math,description:"formula.functionList.SINH.description",abstract:"formula.functionList.SINH.abstract",functionParameter:[{name:"formula.functionList.SINH.functionParameter.number.name",detail:"formula.functionList.SINH.functionParameter.number.detail",example:"0.0342*1.03",require:1,repeat:0}]},{functionName:mt.SQRT,functionType:Z.Math,description:"formula.functionList.SQRT.description",abstract:"formula.functionList.SQRT.abstract",functionParameter:[{name:"formula.functionList.SQRT.functionParameter.number.name",detail:"formula.functionList.SQRT.functionParameter.number.detail",example:"16",require:1,repeat:0}]},{functionName:mt.SQRTPI,functionType:Z.Math,description:"formula.functionList.SQRTPI.description",abstract:"formula.functionList.SQRTPI.abstract",functionParameter:[{name:"formula.functionList.SQRTPI.functionParameter.number.name",detail:"formula.functionList.SQRTPI.functionParameter.number.detail",example:"1",require:1,repeat:0}]},{functionName:mt.SUBTOTAL,functionType:Z.Math,description:"formula.functionList.SUBTOTAL.description",abstract:"formula.functionList.SUBTOTAL.abstract",functionParameter:[{name:"formula.functionList.SUBTOTAL.functionParameter.functionNum.name",detail:"formula.functionList.SUBTOTAL.functionParameter.functionNum.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.SUBTOTAL.functionParameter.ref1.name",detail:"formula.functionList.SUBTOTAL.functionParameter.ref1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SUBTOTAL.functionParameter.ref2.name",detail:"formula.functionList.SUBTOTAL.functionParameter.ref2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:mt.SUM,aliasFunctionName:"formula.functionList.SUM.aliasFunctionName",functionType:Z.Math,description:"formula.functionList.SUM.description",abstract:"formula.functionList.SUM.abstract",functionParameter:[{name:"formula.functionList.SUM.functionParameter.number1.name",detail:"formula.functionList.SUM.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SUM.functionParameter.number2.name",detail:"formula.functionList.SUM.functionParameter.number2.detail",example:"B2:B10",require:0,repeat:1}]},{functionName:mt.SUMIF,aliasFunctionName:"formula.functionList.SUMIF.aliasFunctionName",functionType:Z.Math,description:"formula.functionList.SUMIF.description",abstract:"formula.functionList.SUMIF.abstract",functionParameter:[{name:"formula.functionList.SUMIF.functionParameter.range.name",detail:"formula.functionList.SUMIF.functionParameter.range.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SUMIF.functionParameter.criteria.name",detail:"formula.functionList.SUMIF.functionParameter.criteria.detail",example:'">5"',require:1,repeat:0},{name:"formula.functionList.SUMIF.functionParameter.sumRange.name",detail:"formula.functionList.SUMIF.functionParameter.sumRange.detail",example:"B1:B20",require:0,repeat:0}]},{functionName:mt.SUMIFS,functionType:Z.Math,description:"formula.functionList.SUMIFS.description",abstract:"formula.functionList.SUMIFS.abstract",functionParameter:[{name:"formula.functionList.SUMIFS.functionParameter.sumRange.name",detail:"formula.functionList.SUMIFS.functionParameter.sumRange.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SUMIFS.functionParameter.criteriaRange1.name",detail:"formula.functionList.SUMIFS.functionParameter.criteriaRange1.detail",example:"B1:B20",require:1,repeat:0},{name:"formula.functionList.SUMIFS.functionParameter.criteria1.name",detail:"formula.functionList.SUMIFS.functionParameter.criteria1.detail",example:'">10"',require:1,repeat:0},{name:"formula.functionList.SUMIFS.functionParameter.criteriaRange2.name",detail:"formula.functionList.SUMIFS.functionParameter.criteriaRange2.detail",example:"C1:C20",require:0,repeat:1},{name:"formula.functionList.SUMIFS.functionParameter.criteria2.name",detail:"formula.functionList.SUMIFS.functionParameter.criteria2.detail",example:'"<20"',require:0,repeat:1}]},{functionName:mt.SUMPRODUCT,functionType:Z.Math,description:"formula.functionList.SUMPRODUCT.description",abstract:"formula.functionList.SUMPRODUCT.abstract",functionParameter:[{name:"formula.functionList.SUMPRODUCT.functionParameter.array1.name",detail:"formula.functionList.SUMPRODUCT.functionParameter.array1.detail",example:"C2:C5",require:1,repeat:0},{name:"formula.functionList.SUMPRODUCT.functionParameter.array2.name",detail:"formula.functionList.SUMPRODUCT.functionParameter.array2.detail",example:"D2:D5",require:0,repeat:1}]},{functionName:mt.SUMSQ,functionType:Z.Math,description:"formula.functionList.SUMSQ.description",abstract:"formula.functionList.SUMSQ.abstract",functionParameter:[{name:"formula.functionList.SUMSQ.functionParameter.number1.name",detail:"formula.functionList.SUMSQ.functionParameter.number1.detail",example:"3",require:1,repeat:0},{name:"formula.functionList.SUMSQ.functionParameter.number2.name",detail:"formula.functionList.SUMSQ.functionParameter.number2.detail",example:"4",require:0,repeat:1}]},{functionName:mt.SUMX2MY2,functionType:Z.Math,description:"formula.functionList.SUMX2MY2.description",abstract:"formula.functionList.SUMX2MY2.abstract",functionParameter:[{name:"formula.functionList.SUMX2MY2.functionParameter.arrayX.name",detail:"formula.functionList.SUMX2MY2.functionParameter.arrayX.detail",example:"A2:A8",require:1,repeat:0},{name:"formula.functionList.SUMX2MY2.functionParameter.arrayY.name",detail:"formula.functionList.SUMX2MY2.functionParameter.arrayY.detail",example:"B2:B8",require:1,repeat:0}]},{functionName:mt.SUMX2PY2,functionType:Z.Math,description:"formula.functionList.SUMX2PY2.description",abstract:"formula.functionList.SUMX2PY2.abstract",functionParameter:[{name:"formula.functionList.SUMX2PY2.functionParameter.arrayX.name",detail:"formula.functionList.SUMX2PY2.functionParameter.arrayX.detail",example:"A2:A8",require:1,repeat:0},{name:"formula.functionList.SUMX2PY2.functionParameter.arrayY.name",detail:"formula.functionList.SUMX2PY2.functionParameter.arrayY.detail",example:"B2:B8",require:1,repeat:0}]},{functionName:mt.SUMXMY2,functionType:Z.Math,description:"formula.functionList.SUMXMY2.description",abstract:"formula.functionList.SUMXMY2.abstract",functionParameter:[{name:"formula.functionList.SUMXMY2.functionParameter.arrayX.name",detail:"formula.functionList.SUMXMY2.functionParameter.arrayX.detail",example:"A2:A8",require:1,repeat:0},{name:"formula.functionList.SUMXMY2.functionParameter.arrayY.name",detail:"formula.functionList.SUMXMY2.functionParameter.arrayY.detail",example:"B2:B8",require:1,repeat:0}]},{functionName:mt.TAN,functionType:Z.Math,description:"formula.functionList.TAN.description",abstract:"formula.functionList.TAN.abstract",functionParameter:[{name:"formula.functionList.TAN.functionParameter.number.name",detail:"formula.functionList.TAN.functionParameter.number.detail",example:"1",require:1,repeat:0}]},{functionName:mt.TANH,functionType:Z.Math,description:"formula.functionList.TANH.description",abstract:"formula.functionList.TANH.abstract",functionParameter:[{name:"formula.functionList.TANH.functionParameter.number.name",detail:"formula.functionList.TANH.functionParameter.number.detail",example:"1",require:1,repeat:0}]},{functionName:mt.TRUNC,functionType:Z.Math,description:"formula.functionList.TRUNC.description",abstract:"formula.functionList.TRUNC.abstract",functionParameter:[{name:"formula.functionList.TRUNC.functionParameter.number.name",detail:"formula.functionList.TRUNC.functionParameter.number.detail",example:"0.45",require:1,repeat:0},{name:"formula.functionList.TRUNC.functionParameter.numDigits.name",detail:"formula.functionList.TRUNC.functionParameter.numDigits.detail",example:"1",require:0,repeat:0}]}],lnn=[{functionName:gt.AVEDEV,functionType:Z.Statistical,description:"formula.functionList.AVEDEV.description",abstract:"formula.functionList.AVEDEV.abstract",functionParameter:[{name:"formula.functionList.AVEDEV.functionParameter.number1.name",detail:"formula.functionList.AVEDEV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AVEDEV.functionParameter.number2.name",detail:"formula.functionList.AVEDEV.functionParameter.number2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:gt.AVERAGE,aliasFunctionName:"formula.functionList.AVERAGE.aliasFunctionName",functionType:Z.Statistical,description:"formula.functionList.AVERAGE.description",abstract:"formula.functionList.AVERAGE.abstract",functionParameter:[{name:"formula.functionList.AVERAGE.functionParameter.number1.name",detail:"formula.functionList.AVERAGE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AVERAGE.functionParameter.number2.name",detail:"formula.functionList.AVERAGE.functionParameter.number2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:gt.AVERAGEA,functionType:Z.Statistical,description:"formula.functionList.AVERAGEA.description",abstract:"formula.functionList.AVERAGEA.abstract",functionParameter:[{name:"formula.functionList.AVERAGEA.functionParameter.value1.name",detail:"formula.functionList.AVERAGEA.functionParameter.value1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AVERAGEA.functionParameter.value2.name",detail:"formula.functionList.AVERAGEA.functionParameter.value2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:gt.AVERAGEIF,functionType:Z.Statistical,description:"formula.functionList.AVERAGEIF.description",abstract:"formula.functionList.AVERAGEIF.abstract",functionParameter:[{name:"formula.functionList.AVERAGEIF.functionParameter.range.name",detail:"formula.functionList.AVERAGEIF.functionParameter.range.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AVERAGEIF.functionParameter.criteria.name",detail:"formula.functionList.AVERAGEIF.functionParameter.criteria.detail",example:'">5"',require:1,repeat:0},{name:"formula.functionList.AVERAGEIF.functionParameter.averageRange.name",detail:"formula.functionList.AVERAGEIF.functionParameter.averageRange.detail",example:"B1:B20",require:0,repeat:0}]},{functionName:gt.AVERAGEIFS,functionType:Z.Statistical,description:"formula.functionList.AVERAGEIFS.description",abstract:"formula.functionList.AVERAGEIFS.abstract",functionParameter:[{name:"formula.functionList.AVERAGEIFS.functionParameter.averageRange.name",detail:"formula.functionList.AVERAGEIFS.functionParameter.averageRange.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.name",detail:"formula.functionList.AVERAGEIFS.functionParameter.criteriaRange1.detail",example:"B1:B20",require:1,repeat:0},{name:"formula.functionList.AVERAGEIFS.functionParameter.criteria1.name",detail:"formula.functionList.AVERAGEIFS.functionParameter.criteria1.detail",example:'">10"',require:1,repeat:0},{name:"formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.name",detail:"formula.functionList.AVERAGEIFS.functionParameter.criteriaRange2.detail",example:"C1:C20",require:0,repeat:1},{name:"formula.functionList.AVERAGEIFS.functionParameter.criteria2.name",detail:"formula.functionList.AVERAGEIFS.functionParameter.criteria2.detail",example:'"<20"',require:0,repeat:1}]},{functionName:gt.BETA_DIST,functionType:Z.Statistical,description:"formula.functionList.BETA_DIST.description",abstract:"formula.functionList.BETA_DIST.abstract",functionParameter:[{name:"formula.functionList.BETA_DIST.functionParameter.number1.name",detail:"formula.functionList.BETA_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BETA_DIST.functionParameter.number2.name",detail:"formula.functionList.BETA_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.BETA_INV,functionType:Z.Statistical,description:"formula.functionList.BETA_INV.description",abstract:"formula.functionList.BETA_INV.abstract",functionParameter:[{name:"formula.functionList.BETA_INV.functionParameter.number1.name",detail:"formula.functionList.BETA_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BETA_INV.functionParameter.number2.name",detail:"formula.functionList.BETA_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.BINOM_DIST,functionType:Z.Statistical,description:"formula.functionList.BINOM_DIST.description",abstract:"formula.functionList.BINOM_DIST.abstract",functionParameter:[{name:"formula.functionList.BINOM_DIST.functionParameter.number1.name",detail:"formula.functionList.BINOM_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BINOM_DIST.functionParameter.number2.name",detail:"formula.functionList.BINOM_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.BINOM_DIST_RANGE,functionType:Z.Statistical,description:"formula.functionList.BINOM_DIST_RANGE.description",abstract:"formula.functionList.BINOM_DIST_RANGE.abstract",functionParameter:[{name:"formula.functionList.BINOM_DIST_RANGE.functionParameter.number1.name",detail:"formula.functionList.BINOM_DIST_RANGE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BINOM_DIST_RANGE.functionParameter.number2.name",detail:"formula.functionList.BINOM_DIST_RANGE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.BINOM_INV,functionType:Z.Statistical,description:"formula.functionList.BINOM_INV.description",abstract:"formula.functionList.BINOM_INV.abstract",functionParameter:[{name:"formula.functionList.BINOM_INV.functionParameter.number1.name",detail:"formula.functionList.BINOM_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BINOM_INV.functionParameter.number2.name",detail:"formula.functionList.BINOM_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CHISQ_DIST,functionType:Z.Statistical,description:"formula.functionList.CHISQ_DIST.description",abstract:"formula.functionList.CHISQ_DIST.abstract",functionParameter:[{name:"formula.functionList.CHISQ_DIST.functionParameter.number1.name",detail:"formula.functionList.CHISQ_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHISQ_DIST.functionParameter.number2.name",detail:"formula.functionList.CHISQ_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CHISQ_DIST_RT,functionType:Z.Statistical,description:"formula.functionList.CHISQ_DIST_RT.description",abstract:"formula.functionList.CHISQ_DIST_RT.abstract",functionParameter:[{name:"formula.functionList.CHISQ_DIST_RT.functionParameter.number1.name",detail:"formula.functionList.CHISQ_DIST_RT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHISQ_DIST_RT.functionParameter.number2.name",detail:"formula.functionList.CHISQ_DIST_RT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CHISQ_INV,functionType:Z.Statistical,description:"formula.functionList.CHISQ_INV.description",abstract:"formula.functionList.CHISQ_INV.abstract",functionParameter:[{name:"formula.functionList.CHISQ_INV.functionParameter.number1.name",detail:"formula.functionList.CHISQ_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHISQ_INV.functionParameter.number2.name",detail:"formula.functionList.CHISQ_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CHISQ_INV_RT,functionType:Z.Statistical,description:"formula.functionList.CHISQ_INV_RT.description",abstract:"formula.functionList.CHISQ_INV_RT.abstract",functionParameter:[{name:"formula.functionList.CHISQ_INV_RT.functionParameter.number1.name",detail:"formula.functionList.CHISQ_INV_RT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHISQ_INV_RT.functionParameter.number2.name",detail:"formula.functionList.CHISQ_INV_RT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CHISQ_TEST,functionType:Z.Statistical,description:"formula.functionList.CHISQ_TEST.description",abstract:"formula.functionList.CHISQ_TEST.abstract",functionParameter:[{name:"formula.functionList.CHISQ_TEST.functionParameter.number1.name",detail:"formula.functionList.CHISQ_TEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHISQ_TEST.functionParameter.number2.name",detail:"formula.functionList.CHISQ_TEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CONFIDENCE_NORM,functionType:Z.Statistical,description:"formula.functionList.CONFIDENCE_NORM.description",abstract:"formula.functionList.CONFIDENCE_NORM.abstract",functionParameter:[{name:"formula.functionList.CONFIDENCE_NORM.functionParameter.number1.name",detail:"formula.functionList.CONFIDENCE_NORM.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CONFIDENCE_NORM.functionParameter.number2.name",detail:"formula.functionList.CONFIDENCE_NORM.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CONFIDENCE_T,functionType:Z.Statistical,description:"formula.functionList.CONFIDENCE_T.description",abstract:"formula.functionList.CONFIDENCE_T.abstract",functionParameter:[{name:"formula.functionList.CONFIDENCE_T.functionParameter.number1.name",detail:"formula.functionList.CONFIDENCE_T.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CONFIDENCE_T.functionParameter.number2.name",detail:"formula.functionList.CONFIDENCE_T.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.CORREL,functionType:Z.Statistical,description:"formula.functionList.CORREL.description",abstract:"formula.functionList.CORREL.abstract",functionParameter:[{name:"formula.functionList.CORREL.functionParameter.number1.name",detail:"formula.functionList.CORREL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CORREL.functionParameter.number2.name",detail:"formula.functionList.CORREL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.COUNT,aliasFunctionName:"formula.functionList.COUNT.aliasFunctionName",functionType:Z.Statistical,description:"formula.functionList.COUNT.description",abstract:"formula.functionList.COUNT.abstract",functionParameter:[{name:"formula.functionList.COUNT.functionParameter.value1.name",detail:"formula.functionList.COUNT.functionParameter.value1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COUNT.functionParameter.value2.name",detail:"formula.functionList.COUNT.functionParameter.value2.detail",example:"B2:B10",require:0,repeat:1}]},{functionName:gt.COUNTA,aliasFunctionName:"formula.functionList.COUNTA.aliasFunctionName",functionType:Z.Statistical,description:"formula.functionList.COUNTA.description",abstract:"formula.functionList.COUNTA.abstract",functionParameter:[{name:"formula.functionList.COUNTA.functionParameter.number1.name",detail:"formula.functionList.COUNTA.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COUNTA.functionParameter.number2.name",detail:"formula.functionList.COUNTA.functionParameter.number2.detail",example:"B2:B10",require:0,repeat:1}]},{functionName:gt.COUNTBLANK,functionType:Z.Statistical,description:"formula.functionList.COUNTBLANK.description",abstract:"formula.functionList.COUNTBLANK.abstract",functionParameter:[{name:"formula.functionList.COUNTBLANK.functionParameter.range.name",detail:"formula.functionList.COUNTBLANK.functionParameter.range.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.COUNTIF,functionType:Z.Statistical,description:"formula.functionList.COUNTIF.description",abstract:"formula.functionList.COUNTIF.abstract",functionParameter:[{name:"formula.functionList.COUNTIF.functionParameter.range.name",detail:"formula.functionList.COUNTIF.functionParameter.range.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COUNTIF.functionParameter.criteria.name",detail:"formula.functionList.COUNTIF.functionParameter.criteria.detail",example:'">5"',require:1,repeat:0}]},{functionName:gt.COUNTIFS,functionType:Z.Statistical,description:"formula.functionList.COUNTIFS.description",abstract:"formula.functionList.COUNTIFS.abstract",functionParameter:[{name:"formula.functionList.COUNTIFS.functionParameter.criteriaRange1.name",detail:"formula.functionList.COUNTIFS.functionParameter.criteriaRange1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COUNTIFS.functionParameter.criteria1.name",detail:"formula.functionList.COUNTIFS.functionParameter.criteria1.detail",example:'">10"',require:1,repeat:0},{name:"formula.functionList.COUNTIFS.functionParameter.criteriaRange2.name",detail:"formula.functionList.COUNTIFS.functionParameter.criteriaRange2.detail",example:"B1:B20",require:0,repeat:1},{name:"formula.functionList.COUNTIFS.functionParameter.criteria2.name",detail:"formula.functionList.COUNTIFS.functionParameter.criteria2.detail",example:'"<20"',require:0,repeat:1}]},{functionName:gt.COVARIANCE_P,functionType:Z.Statistical,description:"formula.functionList.COVARIANCE_P.description",abstract:"formula.functionList.COVARIANCE_P.abstract",functionParameter:[{name:"formula.functionList.COVARIANCE_P.functionParameter.number1.name",detail:"formula.functionList.COVARIANCE_P.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COVARIANCE_P.functionParameter.number2.name",detail:"formula.functionList.COVARIANCE_P.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.COVARIANCE_S,functionType:Z.Statistical,description:"formula.functionList.COVARIANCE_S.description",abstract:"formula.functionList.COVARIANCE_S.abstract",functionParameter:[{name:"formula.functionList.COVARIANCE_S.functionParameter.number1.name",detail:"formula.functionList.COVARIANCE_S.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.COVARIANCE_S.functionParameter.number2.name",detail:"formula.functionList.COVARIANCE_S.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.DEVSQ,functionType:Z.Statistical,description:"formula.functionList.DEVSQ.description",abstract:"formula.functionList.DEVSQ.abstract",functionParameter:[{name:"formula.functionList.DEVSQ.functionParameter.number1.name",detail:"formula.functionList.DEVSQ.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DEVSQ.functionParameter.number2.name",detail:"formula.functionList.DEVSQ.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.EXPON_DIST,functionType:Z.Statistical,description:"formula.functionList.EXPON_DIST.description",abstract:"formula.functionList.EXPON_DIST.abstract",functionParameter:[{name:"formula.functionList.EXPON_DIST.functionParameter.number1.name",detail:"formula.functionList.EXPON_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.EXPON_DIST.functionParameter.number2.name",detail:"formula.functionList.EXPON_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.F_DIST,functionType:Z.Statistical,description:"formula.functionList.F_DIST.description",abstract:"formula.functionList.F_DIST.abstract",functionParameter:[{name:"formula.functionList.F_DIST.functionParameter.number1.name",detail:"formula.functionList.F_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.F_DIST.functionParameter.number2.name",detail:"formula.functionList.F_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.F_DIST_RT,functionType:Z.Statistical,description:"formula.functionList.F_DIST_RT.description",abstract:"formula.functionList.F_DIST_RT.abstract",functionParameter:[{name:"formula.functionList.F_DIST_RT.functionParameter.number1.name",detail:"formula.functionList.F_DIST_RT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.F_DIST_RT.functionParameter.number2.name",detail:"formula.functionList.F_DIST_RT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.F_INV,functionType:Z.Statistical,description:"formula.functionList.F_INV.description",abstract:"formula.functionList.F_INV.abstract",functionParameter:[{name:"formula.functionList.F_INV.functionParameter.number1.name",detail:"formula.functionList.F_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.F_INV.functionParameter.number2.name",detail:"formula.functionList.F_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.F_INV_RT,functionType:Z.Statistical,description:"formula.functionList.F_INV_RT.description",abstract:"formula.functionList.F_INV_RT.abstract",functionParameter:[{name:"formula.functionList.F_INV_RT.functionParameter.number1.name",detail:"formula.functionList.F_INV_RT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.F_INV_RT.functionParameter.number2.name",detail:"formula.functionList.F_INV_RT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.F_TEST,functionType:Z.Statistical,description:"formula.functionList.F_TEST.description",abstract:"formula.functionList.F_TEST.abstract",functionParameter:[{name:"formula.functionList.F_TEST.functionParameter.number1.name",detail:"formula.functionList.F_TEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.F_TEST.functionParameter.number2.name",detail:"formula.functionList.F_TEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FISHER,functionType:Z.Statistical,description:"formula.functionList.FISHER.description",abstract:"formula.functionList.FISHER.abstract",functionParameter:[{name:"formula.functionList.FISHER.functionParameter.number1.name",detail:"formula.functionList.FISHER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FISHER.functionParameter.number2.name",detail:"formula.functionList.FISHER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FISHERINV,functionType:Z.Statistical,description:"formula.functionList.FISHERINV.description",abstract:"formula.functionList.FISHERINV.abstract",functionParameter:[{name:"formula.functionList.FISHERINV.functionParameter.number1.name",detail:"formula.functionList.FISHERINV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FISHERINV.functionParameter.number2.name",detail:"formula.functionList.FISHERINV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST,functionType:Z.Statistical,description:"formula.functionList.FORECAST.description",abstract:"formula.functionList.FORECAST.abstract",functionParameter:[{name:"formula.functionList.FORECAST.functionParameter.number1.name",detail:"formula.functionList.FORECAST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST.functionParameter.number2.name",detail:"formula.functionList.FORECAST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST_ETS,functionType:Z.Statistical,description:"formula.functionList.FORECAST_ETS.description",abstract:"formula.functionList.FORECAST_ETS.abstract",functionParameter:[{name:"formula.functionList.FORECAST_ETS.functionParameter.number1.name",detail:"formula.functionList.FORECAST_ETS.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST_ETS.functionParameter.number2.name",detail:"formula.functionList.FORECAST_ETS.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST_ETS_CONFINT,functionType:Z.Statistical,description:"formula.functionList.FORECAST_ETS_CONFINT.description",abstract:"formula.functionList.FORECAST_ETS_CONFINT.abstract",functionParameter:[{name:"formula.functionList.FORECAST_ETS_CONFINT.functionParameter.number1.name",detail:"formula.functionList.FORECAST_ETS_CONFINT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST_ETS_CONFINT.functionParameter.number2.name",detail:"formula.functionList.FORECAST_ETS_CONFINT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST_ETS_SEASONALITY,functionType:Z.Statistical,description:"formula.functionList.FORECAST_ETS_SEASONALITY.description",abstract:"formula.functionList.FORECAST_ETS_SEASONALITY.abstract",functionParameter:[{name:"formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.number1.name",detail:"formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.number2.name",detail:"formula.functionList.FORECAST_ETS_SEASONALITY.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST_ETS_STAT,functionType:Z.Statistical,description:"formula.functionList.FORECAST_ETS_STAT.description",abstract:"formula.functionList.FORECAST_ETS_STAT.abstract",functionParameter:[{name:"formula.functionList.FORECAST_ETS_STAT.functionParameter.number1.name",detail:"formula.functionList.FORECAST_ETS_STAT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST_ETS_STAT.functionParameter.number2.name",detail:"formula.functionList.FORECAST_ETS_STAT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FORECAST_LINEAR,functionType:Z.Statistical,description:"formula.functionList.FORECAST_LINEAR.description",abstract:"formula.functionList.FORECAST_LINEAR.abstract",functionParameter:[{name:"formula.functionList.FORECAST_LINEAR.functionParameter.number1.name",detail:"formula.functionList.FORECAST_LINEAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FORECAST_LINEAR.functionParameter.number2.name",detail:"formula.functionList.FORECAST_LINEAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.FREQUENCY,functionType:Z.Statistical,description:"formula.functionList.FREQUENCY.description",abstract:"formula.functionList.FREQUENCY.abstract",functionParameter:[{name:"formula.functionList.FREQUENCY.functionParameter.number1.name",detail:"formula.functionList.FREQUENCY.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FREQUENCY.functionParameter.number2.name",detail:"formula.functionList.FREQUENCY.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAMMA,functionType:Z.Statistical,description:"formula.functionList.GAMMA.description",abstract:"formula.functionList.GAMMA.abstract",functionParameter:[{name:"formula.functionList.GAMMA.functionParameter.number1.name",detail:"formula.functionList.GAMMA.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMA.functionParameter.number2.name",detail:"formula.functionList.GAMMA.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAMMA_DIST,functionType:Z.Statistical,description:"formula.functionList.GAMMA_DIST.description",abstract:"formula.functionList.GAMMA_DIST.abstract",functionParameter:[{name:"formula.functionList.GAMMA_DIST.functionParameter.number1.name",detail:"formula.functionList.GAMMA_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMA_DIST.functionParameter.number2.name",detail:"formula.functionList.GAMMA_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAMMA_INV,functionType:Z.Statistical,description:"formula.functionList.GAMMA_INV.description",abstract:"formula.functionList.GAMMA_INV.abstract",functionParameter:[{name:"formula.functionList.GAMMA_INV.functionParameter.number1.name",detail:"formula.functionList.GAMMA_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMA_INV.functionParameter.number2.name",detail:"formula.functionList.GAMMA_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAMMALN,functionType:Z.Statistical,description:"formula.functionList.GAMMALN.description",abstract:"formula.functionList.GAMMALN.abstract",functionParameter:[{name:"formula.functionList.GAMMALN.functionParameter.number1.name",detail:"formula.functionList.GAMMALN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMALN.functionParameter.number2.name",detail:"formula.functionList.GAMMALN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAMMALN_PRECISE,functionType:Z.Statistical,description:"formula.functionList.GAMMALN_PRECISE.description",abstract:"formula.functionList.GAMMALN_PRECISE.abstract",functionParameter:[{name:"formula.functionList.GAMMALN_PRECISE.functionParameter.number1.name",detail:"formula.functionList.GAMMALN_PRECISE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAMMALN_PRECISE.functionParameter.number2.name",detail:"formula.functionList.GAMMALN_PRECISE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GAUSS,functionType:Z.Statistical,description:"formula.functionList.GAUSS.description",abstract:"formula.functionList.GAUSS.abstract",functionParameter:[{name:"formula.functionList.GAUSS.functionParameter.number1.name",detail:"formula.functionList.GAUSS.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GAUSS.functionParameter.number2.name",detail:"formula.functionList.GAUSS.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GEOMEAN,functionType:Z.Statistical,description:"formula.functionList.GEOMEAN.description",abstract:"formula.functionList.GEOMEAN.abstract",functionParameter:[{name:"formula.functionList.GEOMEAN.functionParameter.number1.name",detail:"formula.functionList.GEOMEAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GEOMEAN.functionParameter.number2.name",detail:"formula.functionList.GEOMEAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.GROWTH,functionType:Z.Statistical,description:"formula.functionList.GROWTH.description",abstract:"formula.functionList.GROWTH.abstract",functionParameter:[{name:"formula.functionList.GROWTH.functionParameter.number1.name",detail:"formula.functionList.GROWTH.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.GROWTH.functionParameter.number2.name",detail:"formula.functionList.GROWTH.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.HARMEAN,functionType:Z.Statistical,description:"formula.functionList.HARMEAN.description",abstract:"formula.functionList.HARMEAN.abstract",functionParameter:[{name:"formula.functionList.HARMEAN.functionParameter.number1.name",detail:"formula.functionList.HARMEAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.HARMEAN.functionParameter.number2.name",detail:"formula.functionList.HARMEAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.HYPGEOM_DIST,functionType:Z.Statistical,description:"formula.functionList.HYPGEOM_DIST.description",abstract:"formula.functionList.HYPGEOM_DIST.abstract",functionParameter:[{name:"formula.functionList.HYPGEOM_DIST.functionParameter.number1.name",detail:"formula.functionList.HYPGEOM_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.HYPGEOM_DIST.functionParameter.number2.name",detail:"formula.functionList.HYPGEOM_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.INTERCEPT,functionType:Z.Statistical,description:"formula.functionList.INTERCEPT.description",abstract:"formula.functionList.INTERCEPT.abstract",functionParameter:[{name:"formula.functionList.INTERCEPT.functionParameter.number1.name",detail:"formula.functionList.INTERCEPT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.INTERCEPT.functionParameter.number2.name",detail:"formula.functionList.INTERCEPT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.KURT,functionType:Z.Statistical,description:"formula.functionList.KURT.description",abstract:"formula.functionList.KURT.abstract",functionParameter:[{name:"formula.functionList.KURT.functionParameter.number1.name",detail:"formula.functionList.KURT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.KURT.functionParameter.number2.name",detail:"formula.functionList.KURT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.LARGE,functionType:Z.Statistical,description:"formula.functionList.LARGE.description",abstract:"formula.functionList.LARGE.abstract",functionParameter:[{name:"formula.functionList.LARGE.functionParameter.number1.name",detail:"formula.functionList.LARGE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LARGE.functionParameter.number2.name",detail:"formula.functionList.LARGE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.LINEST,functionType:Z.Statistical,description:"formula.functionList.LINEST.description",abstract:"formula.functionList.LINEST.abstract",functionParameter:[{name:"formula.functionList.LINEST.functionParameter.number1.name",detail:"formula.functionList.LINEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LINEST.functionParameter.number2.name",detail:"formula.functionList.LINEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.LOGEST,functionType:Z.Statistical,description:"formula.functionList.LOGEST.description",abstract:"formula.functionList.LOGEST.abstract",functionParameter:[{name:"formula.functionList.LOGEST.functionParameter.number1.name",detail:"formula.functionList.LOGEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOGEST.functionParameter.number2.name",detail:"formula.functionList.LOGEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.LOGNORM_DIST,functionType:Z.Statistical,description:"formula.functionList.LOGNORM_DIST.description",abstract:"formula.functionList.LOGNORM_DIST.abstract",functionParameter:[{name:"formula.functionList.LOGNORM_DIST.functionParameter.number1.name",detail:"formula.functionList.LOGNORM_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOGNORM_DIST.functionParameter.number2.name",detail:"formula.functionList.LOGNORM_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.LOGNORM_INV,functionType:Z.Statistical,description:"formula.functionList.LOGNORM_INV.description",abstract:"formula.functionList.LOGNORM_INV.abstract",functionParameter:[{name:"formula.functionList.LOGNORM_INV.functionParameter.number1.name",detail:"formula.functionList.LOGNORM_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LOGNORM_INV.functionParameter.number2.name",detail:"formula.functionList.LOGNORM_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.MAX,aliasFunctionName:"formula.functionList.MAX.aliasFunctionName",functionType:Z.Statistical,description:"formula.functionList.MAX.description",abstract:"formula.functionList.MAX.abstract",functionParameter:[{name:"formula.functionList.MAX.functionParameter.number1.name",detail:"formula.functionList.MAX.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MAX.functionParameter.number2.name",detail:"formula.functionList.MAX.functionParameter.number2.detail",example:"B2:B10",require:0,repeat:1}]},{functionName:gt.MAXA,functionType:Z.Statistical,description:"formula.functionList.MAXA.description",abstract:"formula.functionList.MAXA.abstract",functionParameter:[{name:"formula.functionList.MAXA.functionParameter.value1.name",detail:"formula.functionList.MAXA.functionParameter.value1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MAXA.functionParameter.value2.name",detail:"formula.functionList.MAXA.functionParameter.value2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:gt.MAXIFS,functionType:Z.Statistical,description:"formula.functionList.MAXIFS.description",abstract:"formula.functionList.MAXIFS.abstract",functionParameter:[{name:"formula.functionList.MAXIFS.functionParameter.maxRange.name",detail:"formula.functionList.MAXIFS.functionParameter.maxRange.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MAXIFS.functionParameter.criteriaRange1.name",detail:"formula.functionList.MAXIFS.functionParameter.criteriaRange1.detail",example:"B1:B20",require:1,repeat:0},{name:"formula.functionList.MAXIFS.functionParameter.criteria1.name",detail:"formula.functionList.MAXIFS.functionParameter.criteria1.detail",example:'">10"',require:1,repeat:0},{name:"formula.functionList.MAXIFS.functionParameter.criteriaRange2.name",detail:"formula.functionList.MAXIFS.functionParameter.criteriaRange2.detail",example:"C1:C20",require:0,repeat:1},{name:"formula.functionList.MAXIFS.functionParameter.criteria2.name",detail:"formula.functionList.MAXIFS.functionParameter.criteria2.detail",example:'"<20"',require:0,repeat:1}]},{functionName:gt.MEDIAN,functionType:Z.Statistical,description:"formula.functionList.MEDIAN.description",abstract:"formula.functionList.MEDIAN.abstract",functionParameter:[{name:"formula.functionList.MEDIAN.functionParameter.number1.name",detail:"formula.functionList.MEDIAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MEDIAN.functionParameter.number2.name",detail:"formula.functionList.MEDIAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.MIN,aliasFunctionName:"formula.functionList.MIN.aliasFunctionName",functionType:Z.Statistical,description:"formula.functionList.MIN.description",abstract:"formula.functionList.MIN.abstract",functionParameter:[{name:"formula.functionList.MIN.functionParameter.number1.name",detail:"formula.functionList.MIN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MIN.functionParameter.number2.name",detail:"formula.functionList.MIN.functionParameter.number2.detail",example:"B2:B10",require:0,repeat:1}]},{functionName:gt.MINA,functionType:Z.Statistical,description:"formula.functionList.MINA.description",abstract:"formula.functionList.MINA.abstract",functionParameter:[{name:"formula.functionList.MINA.functionParameter.value1.name",detail:"formula.functionList.MINA.functionParameter.value1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MINA.functionParameter.value2.name",detail:"formula.functionList.MINA.functionParameter.value2.detail",example:"B1:B20",require:0,repeat:1}]},{functionName:gt.MINIFS,functionType:Z.Statistical,description:"formula.functionList.MINIFS.description",abstract:"formula.functionList.MINIFS.abstract",functionParameter:[{name:"formula.functionList.MINIFS.functionParameter.minRange.name",detail:"formula.functionList.MINIFS.functionParameter.minRange.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MINIFS.functionParameter.criteriaRange1.name",detail:"formula.functionList.MINIFS.functionParameter.criteriaRange1.detail",example:"B1:B20",require:1,repeat:0},{name:"formula.functionList.MINIFS.functionParameter.criteria1.name",detail:"formula.functionList.MINIFS.functionParameter.criteria1.detail",example:'">10"',require:1,repeat:0},{name:"formula.functionList.MINIFS.functionParameter.criteriaRange2.name",detail:"formula.functionList.MINIFS.functionParameter.criteriaRange2.detail",example:"C1:C20",require:0,repeat:1},{name:"formula.functionList.MINIFS.functionParameter.criteria2.name",detail:"formula.functionList.MINIFS.functionParameter.criteria2.detail",example:'"<20"',require:0,repeat:1}]},{functionName:gt.MODE_MULT,functionType:Z.Statistical,description:"formula.functionList.MODE_MULT.description",abstract:"formula.functionList.MODE_MULT.abstract",functionParameter:[{name:"formula.functionList.MODE_MULT.functionParameter.number1.name",detail:"formula.functionList.MODE_MULT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MODE_MULT.functionParameter.number2.name",detail:"formula.functionList.MODE_MULT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.MODE_SNGL,functionType:Z.Statistical,description:"formula.functionList.MODE_SNGL.description",abstract:"formula.functionList.MODE_SNGL.abstract",functionParameter:[{name:"formula.functionList.MODE_SNGL.functionParameter.number1.name",detail:"formula.functionList.MODE_SNGL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MODE_SNGL.functionParameter.number2.name",detail:"formula.functionList.MODE_SNGL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.NEGBINOM_DIST,functionType:Z.Statistical,description:"formula.functionList.NEGBINOM_DIST.description",abstract:"formula.functionList.NEGBINOM_DIST.abstract",functionParameter:[{name:"formula.functionList.NEGBINOM_DIST.functionParameter.number1.name",detail:"formula.functionList.NEGBINOM_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NEGBINOM_DIST.functionParameter.number2.name",detail:"formula.functionList.NEGBINOM_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.NORM_DIST,functionType:Z.Statistical,description:"formula.functionList.NORM_DIST.description",abstract:"formula.functionList.NORM_DIST.abstract",functionParameter:[{name:"formula.functionList.NORM_DIST.functionParameter.number1.name",detail:"formula.functionList.NORM_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORM_DIST.functionParameter.number2.name",detail:"formula.functionList.NORM_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.NORM_INV,functionType:Z.Statistical,description:"formula.functionList.NORM_INV.description",abstract:"formula.functionList.NORM_INV.abstract",functionParameter:[{name:"formula.functionList.NORM_INV.functionParameter.number1.name",detail:"formula.functionList.NORM_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORM_INV.functionParameter.number2.name",detail:"formula.functionList.NORM_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.NORM_S_DIST,functionType:Z.Statistical,description:"formula.functionList.NORM_S_DIST.description",abstract:"formula.functionList.NORM_S_DIST.abstract",functionParameter:[{name:"formula.functionList.NORM_S_DIST.functionParameter.number1.name",detail:"formula.functionList.NORM_S_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORM_S_DIST.functionParameter.number2.name",detail:"formula.functionList.NORM_S_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.NORM_S_INV,functionType:Z.Statistical,description:"formula.functionList.NORM_S_INV.description",abstract:"formula.functionList.NORM_S_INV.abstract",functionParameter:[{name:"formula.functionList.NORM_S_INV.functionParameter.number1.name",detail:"formula.functionList.NORM_S_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NORM_S_INV.functionParameter.number2.name",detail:"formula.functionList.NORM_S_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PEARSON,functionType:Z.Statistical,description:"formula.functionList.PEARSON.description",abstract:"formula.functionList.PEARSON.abstract",functionParameter:[{name:"formula.functionList.PEARSON.functionParameter.number1.name",detail:"formula.functionList.PEARSON.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PEARSON.functionParameter.number2.name",detail:"formula.functionList.PEARSON.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERCENTILE_EXC,functionType:Z.Statistical,description:"formula.functionList.PERCENTILE_EXC.description",abstract:"formula.functionList.PERCENTILE_EXC.abstract",functionParameter:[{name:"formula.functionList.PERCENTILE_EXC.functionParameter.number1.name",detail:"formula.functionList.PERCENTILE_EXC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTILE_EXC.functionParameter.number2.name",detail:"formula.functionList.PERCENTILE_EXC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERCENTILE_INC,functionType:Z.Statistical,description:"formula.functionList.PERCENTILE_INC.description",abstract:"formula.functionList.PERCENTILE_INC.abstract",functionParameter:[{name:"formula.functionList.PERCENTILE_INC.functionParameter.number1.name",detail:"formula.functionList.PERCENTILE_INC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTILE_INC.functionParameter.number2.name",detail:"formula.functionList.PERCENTILE_INC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERCENTRANK_EXC,functionType:Z.Statistical,description:"formula.functionList.PERCENTRANK_EXC.description",abstract:"formula.functionList.PERCENTRANK_EXC.abstract",functionParameter:[{name:"formula.functionList.PERCENTRANK_EXC.functionParameter.number1.name",detail:"formula.functionList.PERCENTRANK_EXC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTRANK_EXC.functionParameter.number2.name",detail:"formula.functionList.PERCENTRANK_EXC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERCENTRANK_INC,functionType:Z.Statistical,description:"formula.functionList.PERCENTRANK_INC.description",abstract:"formula.functionList.PERCENTRANK_INC.abstract",functionParameter:[{name:"formula.functionList.PERCENTRANK_INC.functionParameter.number1.name",detail:"formula.functionList.PERCENTRANK_INC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERCENTRANK_INC.functionParameter.number2.name",detail:"formula.functionList.PERCENTRANK_INC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERMUT,functionType:Z.Statistical,description:"formula.functionList.PERMUT.description",abstract:"formula.functionList.PERMUT.abstract",functionParameter:[{name:"formula.functionList.PERMUT.functionParameter.number1.name",detail:"formula.functionList.PERMUT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERMUT.functionParameter.number2.name",detail:"formula.functionList.PERMUT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PERMUTATIONA,functionType:Z.Statistical,description:"formula.functionList.PERMUTATIONA.description",abstract:"formula.functionList.PERMUTATIONA.abstract",functionParameter:[{name:"formula.functionList.PERMUTATIONA.functionParameter.number1.name",detail:"formula.functionList.PERMUTATIONA.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PERMUTATIONA.functionParameter.number2.name",detail:"formula.functionList.PERMUTATIONA.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PHI,functionType:Z.Statistical,description:"formula.functionList.PHI.description",abstract:"formula.functionList.PHI.abstract",functionParameter:[{name:"formula.functionList.PHI.functionParameter.number1.name",detail:"formula.functionList.PHI.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PHI.functionParameter.number2.name",detail:"formula.functionList.PHI.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.POISSON_DIST,functionType:Z.Statistical,description:"formula.functionList.POISSON_DIST.description",abstract:"formula.functionList.POISSON_DIST.abstract",functionParameter:[{name:"formula.functionList.POISSON_DIST.functionParameter.number1.name",detail:"formula.functionList.POISSON_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.POISSON_DIST.functionParameter.number2.name",detail:"formula.functionList.POISSON_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.PROB,functionType:Z.Statistical,description:"formula.functionList.PROB.description",abstract:"formula.functionList.PROB.abstract",functionParameter:[{name:"formula.functionList.PROB.functionParameter.number1.name",detail:"formula.functionList.PROB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PROB.functionParameter.number2.name",detail:"formula.functionList.PROB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.QUARTILE_EXC,functionType:Z.Statistical,description:"formula.functionList.QUARTILE_EXC.description",abstract:"formula.functionList.QUARTILE_EXC.abstract",functionParameter:[{name:"formula.functionList.QUARTILE_EXC.functionParameter.number1.name",detail:"formula.functionList.QUARTILE_EXC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.QUARTILE_EXC.functionParameter.number2.name",detail:"formula.functionList.QUARTILE_EXC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.QUARTILE_INC,functionType:Z.Statistical,description:"formula.functionList.QUARTILE_INC.description",abstract:"formula.functionList.QUARTILE_INC.abstract",functionParameter:[{name:"formula.functionList.QUARTILE_INC.functionParameter.number1.name",detail:"formula.functionList.QUARTILE_INC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.QUARTILE_INC.functionParameter.number2.name",detail:"formula.functionList.QUARTILE_INC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.RANK_AVG,functionType:Z.Statistical,description:"formula.functionList.RANK_AVG.description",abstract:"formula.functionList.RANK_AVG.abstract",functionParameter:[{name:"formula.functionList.RANK_AVG.functionParameter.number.name",detail:"formula.functionList.RANK_AVG.functionParameter.number.detail",example:"A3",require:1,repeat:0},{name:"formula.functionList.RANK_AVG.functionParameter.ref.name",detail:"formula.functionList.RANK_AVG.functionParameter.ref.detail",example:"A2:A6",require:1,repeat:0},{name:"formula.functionList.RANK_AVG.functionParameter.order.name",detail:"formula.functionList.RANK_AVG.functionParameter.order.detail",example:"1",require:0,repeat:0}]},{functionName:gt.RANK_EQ,functionType:Z.Statistical,description:"formula.functionList.RANK_EQ.description",abstract:"formula.functionList.RANK_EQ.abstract",functionParameter:[{name:"formula.functionList.RANK_EQ.functionParameter.number.name",detail:"formula.functionList.RANK_EQ.functionParameter.number.detail",example:"A3",require:1,repeat:0},{name:"formula.functionList.RANK_EQ.functionParameter.ref.name",detail:"formula.functionList.RANK_EQ.functionParameter.ref.detail",example:"A2:A6",require:1,repeat:0},{name:"formula.functionList.RANK_EQ.functionParameter.order.name",detail:"formula.functionList.RANK_EQ.functionParameter.order.detail",example:"1",require:0,repeat:0}]},{functionName:gt.RSQ,functionType:Z.Statistical,description:"formula.functionList.RSQ.description",abstract:"formula.functionList.RSQ.abstract",functionParameter:[{name:"formula.functionList.RSQ.functionParameter.number1.name",detail:"formula.functionList.RSQ.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.RSQ.functionParameter.number2.name",detail:"formula.functionList.RSQ.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.SKEW,functionType:Z.Statistical,description:"formula.functionList.SKEW.description",abstract:"formula.functionList.SKEW.abstract",functionParameter:[{name:"formula.functionList.SKEW.functionParameter.number1.name",detail:"formula.functionList.SKEW.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SKEW.functionParameter.number2.name",detail:"formula.functionList.SKEW.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.SKEW_P,functionType:Z.Statistical,description:"formula.functionList.SKEW_P.description",abstract:"formula.functionList.SKEW_P.abstract",functionParameter:[{name:"formula.functionList.SKEW_P.functionParameter.number1.name",detail:"formula.functionList.SKEW_P.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SKEW_P.functionParameter.number2.name",detail:"formula.functionList.SKEW_P.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.SLOPE,functionType:Z.Statistical,description:"formula.functionList.SLOPE.description",abstract:"formula.functionList.SLOPE.abstract",functionParameter:[{name:"formula.functionList.SLOPE.functionParameter.number1.name",detail:"formula.functionList.SLOPE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SLOPE.functionParameter.number2.name",detail:"formula.functionList.SLOPE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.SMALL,functionType:Z.Statistical,description:"formula.functionList.SMALL.description",abstract:"formula.functionList.SMALL.abstract",functionParameter:[{name:"formula.functionList.SMALL.functionParameter.number1.name",detail:"formula.functionList.SMALL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SMALL.functionParameter.number2.name",detail:"formula.functionList.SMALL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.STANDARDIZE,functionType:Z.Statistical,description:"formula.functionList.STANDARDIZE.description",abstract:"formula.functionList.STANDARDIZE.abstract",functionParameter:[{name:"formula.functionList.STANDARDIZE.functionParameter.number1.name",detail:"formula.functionList.STANDARDIZE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.STANDARDIZE.functionParameter.number2.name",detail:"formula.functionList.STANDARDIZE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.STDEV_P,functionType:Z.Statistical,description:"formula.functionList.STDEV_P.description",abstract:"formula.functionList.STDEV_P.abstract",functionParameter:[{name:"formula.functionList.STDEV_P.functionParameter.number1.name",detail:"formula.functionList.STDEV_P.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEV_P.functionParameter.number2.name",detail:"formula.functionList.STDEV_P.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.STDEV_S,functionType:Z.Statistical,description:"formula.functionList.STDEV_S.description",abstract:"formula.functionList.STDEV_S.abstract",functionParameter:[{name:"formula.functionList.STDEV_S.functionParameter.number1.name",detail:"formula.functionList.STDEV_S.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEV_S.functionParameter.number2.name",detail:"formula.functionList.STDEV_S.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.STDEVA,functionType:Z.Statistical,description:"formula.functionList.STDEVA.description",abstract:"formula.functionList.STDEVA.abstract",functionParameter:[{name:"formula.functionList.STDEVA.functionParameter.value1.name",detail:"formula.functionList.STDEVA.functionParameter.value1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEVA.functionParameter.value2.name",detail:"formula.functionList.STDEVA.functionParameter.value2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.STDEVPA,functionType:Z.Statistical,description:"formula.functionList.STDEVPA.description",abstract:"formula.functionList.STDEVPA.abstract",functionParameter:[{name:"formula.functionList.STDEVPA.functionParameter.value1.name",detail:"formula.functionList.STDEVPA.functionParameter.value1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.STDEVPA.functionParameter.value2.name",detail:"formula.functionList.STDEVPA.functionParameter.value2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.STEYX,functionType:Z.Statistical,description:"formula.functionList.STEYX.description",abstract:"formula.functionList.STEYX.abstract",functionParameter:[{name:"formula.functionList.STEYX.functionParameter.number1.name",detail:"formula.functionList.STEYX.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.STEYX.functionParameter.number2.name",detail:"formula.functionList.STEYX.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_DIST,functionType:Z.Statistical,description:"formula.functionList.T_DIST.description",abstract:"formula.functionList.T_DIST.abstract",functionParameter:[{name:"formula.functionList.T_DIST.functionParameter.number1.name",detail:"formula.functionList.T_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_DIST.functionParameter.number2.name",detail:"formula.functionList.T_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_DIST_2T,functionType:Z.Statistical,description:"formula.functionList.T_DIST_2T.description",abstract:"formula.functionList.T_DIST_2T.abstract",functionParameter:[{name:"formula.functionList.T_DIST_2T.functionParameter.number1.name",detail:"formula.functionList.T_DIST_2T.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_DIST_2T.functionParameter.number2.name",detail:"formula.functionList.T_DIST_2T.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_DIST_RT,functionType:Z.Statistical,description:"formula.functionList.T_DIST_RT.description",abstract:"formula.functionList.T_DIST_RT.abstract",functionParameter:[{name:"formula.functionList.T_DIST_RT.functionParameter.number1.name",detail:"formula.functionList.T_DIST_RT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_DIST_RT.functionParameter.number2.name",detail:"formula.functionList.T_DIST_RT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_INV,functionType:Z.Statistical,description:"formula.functionList.T_INV.description",abstract:"formula.functionList.T_INV.abstract",functionParameter:[{name:"formula.functionList.T_INV.functionParameter.number1.name",detail:"formula.functionList.T_INV.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_INV.functionParameter.number2.name",detail:"formula.functionList.T_INV.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_INV_2T,functionType:Z.Statistical,description:"formula.functionList.T_INV_2T.description",abstract:"formula.functionList.T_INV_2T.abstract",functionParameter:[{name:"formula.functionList.T_INV_2T.functionParameter.number1.name",detail:"formula.functionList.T_INV_2T.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_INV_2T.functionParameter.number2.name",detail:"formula.functionList.T_INV_2T.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.T_TEST,functionType:Z.Statistical,description:"formula.functionList.T_TEST.description",abstract:"formula.functionList.T_TEST.abstract",functionParameter:[{name:"formula.functionList.T_TEST.functionParameter.number1.name",detail:"formula.functionList.T_TEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T_TEST.functionParameter.number2.name",detail:"formula.functionList.T_TEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.TREND,functionType:Z.Statistical,description:"formula.functionList.TREND.description",abstract:"formula.functionList.TREND.abstract",functionParameter:[{name:"formula.functionList.TREND.functionParameter.number1.name",detail:"formula.functionList.TREND.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TREND.functionParameter.number2.name",detail:"formula.functionList.TREND.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.TRIMMEAN,functionType:Z.Statistical,description:"formula.functionList.TRIMMEAN.description",abstract:"formula.functionList.TRIMMEAN.abstract",functionParameter:[{name:"formula.functionList.TRIMMEAN.functionParameter.number1.name",detail:"formula.functionList.TRIMMEAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TRIMMEAN.functionParameter.number2.name",detail:"formula.functionList.TRIMMEAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.VAR_P,functionType:Z.Statistical,description:"formula.functionList.VAR_P.description",abstract:"formula.functionList.VAR_P.abstract",functionParameter:[{name:"formula.functionList.VAR_P.functionParameter.number1.name",detail:"formula.functionList.VAR_P.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VAR_P.functionParameter.number2.name",detail:"formula.functionList.VAR_P.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.VAR_S,functionType:Z.Statistical,description:"formula.functionList.VAR_S.description",abstract:"formula.functionList.VAR_S.abstract",functionParameter:[{name:"formula.functionList.VAR_S.functionParameter.number1.name",detail:"formula.functionList.VAR_S.functionParameter.number1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VAR_S.functionParameter.number2.name",detail:"formula.functionList.VAR_S.functionParameter.number2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.VARA,functionType:Z.Statistical,description:"formula.functionList.VARA.description",abstract:"formula.functionList.VARA.abstract",functionParameter:[{name:"formula.functionList.VARA.functionParameter.value1.name",detail:"formula.functionList.VARA.functionParameter.value1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VARA.functionParameter.value2.name",detail:"formula.functionList.VARA.functionParameter.value2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.VARPA,functionType:Z.Statistical,description:"formula.functionList.VARPA.description",abstract:"formula.functionList.VARPA.abstract",functionParameter:[{name:"formula.functionList.VARPA.functionParameter.value1.name",detail:"formula.functionList.VARPA.functionParameter.value1.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.VARPA.functionParameter.value2.name",detail:"formula.functionList.VARPA.functionParameter.value2.detail",example:"2",require:0,repeat:1}]},{functionName:gt.WEIBULL_DIST,functionType:Z.Statistical,description:"formula.functionList.WEIBULL_DIST.description",abstract:"formula.functionList.WEIBULL_DIST.abstract",functionParameter:[{name:"formula.functionList.WEIBULL_DIST.functionParameter.number1.name",detail:"formula.functionList.WEIBULL_DIST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.WEIBULL_DIST.functionParameter.number2.name",detail:"formula.functionList.WEIBULL_DIST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gt.Z_TEST,functionType:Z.Statistical,description:"formula.functionList.Z_TEST.description",abstract:"formula.functionList.Z_TEST.abstract",functionParameter:[{name:"formula.functionList.Z_TEST.functionParameter.number1.name",detail:"formula.functionList.Z_TEST.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.Z_TEST.functionParameter.number2.name",detail:"formula.functionList.Z_TEST.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],unn=[{functionName:Cr.ASC,functionType:Z.Text,description:"formula.functionList.ASC.description",abstract:"formula.functionList.ASC.abstract",functionParameter:[{name:"formula.functionList.ASC.functionParameter.number1.name",detail:"formula.functionList.ASC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ASC.functionParameter.number2.name",detail:"formula.functionList.ASC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.ARRAYTOTEXT,functionType:Z.Text,description:"formula.functionList.ARRAYTOTEXT.description",abstract:"formula.functionList.ARRAYTOTEXT.abstract",functionParameter:[{name:"formula.functionList.ARRAYTOTEXT.functionParameter.number1.name",detail:"formula.functionList.ARRAYTOTEXT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ARRAYTOTEXT.functionParameter.number2.name",detail:"formula.functionList.ARRAYTOTEXT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.BAHTTEXT,functionType:Z.Text,description:"formula.functionList.BAHTTEXT.description",abstract:"formula.functionList.BAHTTEXT.abstract",functionParameter:[{name:"formula.functionList.BAHTTEXT.functionParameter.number1.name",detail:"formula.functionList.BAHTTEXT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.BAHTTEXT.functionParameter.number2.name",detail:"formula.functionList.BAHTTEXT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.CHAR,functionType:Z.Text,description:"formula.functionList.CHAR.description",abstract:"formula.functionList.CHAR.abstract",functionParameter:[{name:"formula.functionList.CHAR.functionParameter.number1.name",detail:"formula.functionList.CHAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CHAR.functionParameter.number2.name",detail:"formula.functionList.CHAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.CLEAN,functionType:Z.Text,description:"formula.functionList.CLEAN.description",abstract:"formula.functionList.CLEAN.abstract",functionParameter:[{name:"formula.functionList.CLEAN.functionParameter.number1.name",detail:"formula.functionList.CLEAN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CLEAN.functionParameter.number2.name",detail:"formula.functionList.CLEAN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.CODE,functionType:Z.Text,description:"formula.functionList.CODE.description",abstract:"formula.functionList.CODE.abstract",functionParameter:[{name:"formula.functionList.CODE.functionParameter.number1.name",detail:"formula.functionList.CODE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CODE.functionParameter.number2.name",detail:"formula.functionList.CODE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.CONCAT,functionType:Z.Text,description:"formula.functionList.CONCAT.description",abstract:"formula.functionList.CONCAT.abstract",functionParameter:[{name:"formula.functionList.CONCAT.functionParameter.text1.name",detail:"formula.functionList.CONCAT.functionParameter.text1.detail",example:'"Hello"',require:1,repeat:0},{name:"formula.functionList.CONCAT.functionParameter.text2.name",detail:"formula.functionList.CONCAT.functionParameter.text2.detail",example:'"Univer"',require:0,repeat:1}]},{functionName:Cr.CONCATENATE,functionType:Z.Text,description:"formula.functionList.CONCATENATE.description",abstract:"formula.functionList.CONCATENATE.abstract",functionParameter:[{name:"formula.functionList.CONCATENATE.functionParameter.text1.name",detail:"formula.functionList.CONCATENATE.functionParameter.text1.detail",example:"A1",require:1,repeat:0},{name:"formula.functionList.CONCATENATE.functionParameter.text2.name",detail:"formula.functionList.CONCATENATE.functionParameter.text2.detail",example:"A2",require:0,repeat:1}]},{functionName:Cr.DBCS,functionType:Z.Text,description:"formula.functionList.DBCS.description",abstract:"formula.functionList.DBCS.abstract",functionParameter:[{name:"formula.functionList.DBCS.functionParameter.number1.name",detail:"formula.functionList.DBCS.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DBCS.functionParameter.number2.name",detail:"formula.functionList.DBCS.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.DOLLAR,functionType:Z.Text,description:"formula.functionList.DOLLAR.description",abstract:"formula.functionList.DOLLAR.abstract",functionParameter:[{name:"formula.functionList.DOLLAR.functionParameter.number1.name",detail:"formula.functionList.DOLLAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.DOLLAR.functionParameter.number2.name",detail:"formula.functionList.DOLLAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.EXACT,functionType:Z.Text,description:"formula.functionList.EXACT.description",abstract:"formula.functionList.EXACT.abstract",functionParameter:[{name:"formula.functionList.EXACT.functionParameter.number1.name",detail:"formula.functionList.EXACT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.EXACT.functionParameter.number2.name",detail:"formula.functionList.EXACT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.FIND,functionType:Z.Text,description:"formula.functionList.FIND.description",abstract:"formula.functionList.FIND.abstract",functionParameter:[{name:"formula.functionList.FIND.functionParameter.number1.name",detail:"formula.functionList.FIND.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FIND.functionParameter.number2.name",detail:"formula.functionList.FIND.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.FINDB,functionType:Z.Text,description:"formula.functionList.FINDB.description",abstract:"formula.functionList.FINDB.abstract",functionParameter:[{name:"formula.functionList.FINDB.functionParameter.number1.name",detail:"formula.functionList.FINDB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FINDB.functionParameter.number2.name",detail:"formula.functionList.FINDB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.FIXED,functionType:Z.Text,description:"formula.functionList.FIXED.description",abstract:"formula.functionList.FIXED.abstract",functionParameter:[{name:"formula.functionList.FIXED.functionParameter.number1.name",detail:"formula.functionList.FIXED.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FIXED.functionParameter.number2.name",detail:"formula.functionList.FIXED.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.LEFT,functionType:Z.Text,description:"formula.functionList.LEFT.description",abstract:"formula.functionList.LEFT.abstract",functionParameter:[{name:"formula.functionList.LEFT.functionParameter.number1.name",detail:"formula.functionList.LEFT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.LEFT.functionParameter.number2.name",detail:"formula.functionList.LEFT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.LEFTB,functionType:Z.Text,description:"formula.functionList.LEFTB.description",abstract:"formula.functionList.LEFTB.abstract",functionParameter:[{name:"formula.functionList.LEFTB.functionParameter.text.name",detail:"formula.functionList.LEFTB.functionParameter.text.detail",example:'"Hello Univer"',require:1,repeat:0},{name:"formula.functionList.LEFTB.functionParameter.numBytes.name",detail:"formula.functionList.LEFTB.functionParameter.numBytes.detail",example:"1",require:0,repeat:0}]},{functionName:Cr.LEN,functionType:Z.Text,description:"formula.functionList.LEN.description",abstract:"formula.functionList.LEN.abstract",functionParameter:[{name:"formula.functionList.LEN.functionParameter.text.name",detail:"formula.functionList.LEN.functionParameter.text.detail",example:'"Univer"',require:1,repeat:0}]},{functionName:Cr.LENB,functionType:Z.Text,description:"formula.functionList.LENB.description",abstract:"formula.functionList.LENB.abstract",functionParameter:[{name:"formula.functionList.LENB.functionParameter.text.name",detail:"formula.functionList.LENB.functionParameter.text.detail",example:'"Univer"',require:1,repeat:0}]},{functionName:Cr.LOWER,functionType:Z.Text,description:"formula.functionList.LOWER.description",abstract:"formula.functionList.LOWER.abstract",functionParameter:[{name:"formula.functionList.LOWER.functionParameter.text.name",detail:"formula.functionList.LOWER.functionParameter.text.detail",example:'"Univer"',require:1,repeat:0}]},{functionName:Cr.MID,functionType:Z.Text,description:"formula.functionList.MID.description",abstract:"formula.functionList.MID.abstract",functionParameter:[{name:"formula.functionList.MID.functionParameter.text.name",detail:"formula.functionList.MID.functionParameter.text.detail",example:'"Hello Univer"',require:1,repeat:0},{name:"formula.functionList.MID.functionParameter.startNum.name",detail:"formula.functionList.MID.functionParameter.startNum.detail",example:"1",require:1,repeat:0},{name:"formula.functionList.MID.functionParameter.numChars.name",detail:"formula.functionList.MID.functionParameter.numChars.detail",example:"1",require:1,repeat:0}]},{functionName:Cr.MIDB,functionType:Z.Text,description:"formula.functionList.MIDB.description",abstract:"formula.functionList.MIDB.abstract",functionParameter:[{name:"formula.functionList.MIDB.functionParameter.number1.name",detail:"formula.functionList.MIDB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.MIDB.functionParameter.number2.name",detail:"formula.functionList.MIDB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.NUMBERVALUE,functionType:Z.Text,description:"formula.functionList.NUMBERVALUE.description",abstract:"formula.functionList.NUMBERVALUE.abstract",functionParameter:[{name:"formula.functionList.NUMBERVALUE.functionParameter.number1.name",detail:"formula.functionList.NUMBERVALUE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.NUMBERVALUE.functionParameter.number2.name",detail:"formula.functionList.NUMBERVALUE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.PHONETIC,functionType:Z.Text,description:"formula.functionList.PHONETIC.description",abstract:"formula.functionList.PHONETIC.abstract",functionParameter:[{name:"formula.functionList.PHONETIC.functionParameter.number1.name",detail:"formula.functionList.PHONETIC.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PHONETIC.functionParameter.number2.name",detail:"formula.functionList.PHONETIC.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.PROPER,functionType:Z.Text,description:"formula.functionList.PROPER.description",abstract:"formula.functionList.PROPER.abstract",functionParameter:[{name:"formula.functionList.PROPER.functionParameter.number1.name",detail:"formula.functionList.PROPER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.PROPER.functionParameter.number2.name",detail:"formula.functionList.PROPER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.REPLACE,functionType:Z.Text,description:"formula.functionList.REPLACE.description",abstract:"formula.functionList.REPLACE.abstract",functionParameter:[{name:"formula.functionList.REPLACE.functionParameter.number1.name",detail:"formula.functionList.REPLACE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.REPLACE.functionParameter.number2.name",detail:"formula.functionList.REPLACE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.REPLACEB,functionType:Z.Text,description:"formula.functionList.REPLACEB.description",abstract:"formula.functionList.REPLACEB.abstract",functionParameter:[{name:"formula.functionList.REPLACEB.functionParameter.number1.name",detail:"formula.functionList.REPLACEB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.REPLACEB.functionParameter.number2.name",detail:"formula.functionList.REPLACEB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.REPT,functionType:Z.Text,description:"formula.functionList.REPT.description",abstract:"formula.functionList.REPT.abstract",functionParameter:[{name:"formula.functionList.REPT.functionParameter.text.name",detail:"formula.functionList.REPT.functionParameter.text.detail",example:'"*-"',require:1,repeat:0},{name:"formula.functionList.REPT.functionParameter.numberTimes.name",detail:"formula.functionList.REPT.functionParameter.numberTimes.detail",example:"3",require:1,repeat:0}]},{functionName:Cr.RIGHT,functionType:Z.Text,description:"formula.functionList.RIGHT.description",abstract:"formula.functionList.RIGHT.abstract",functionParameter:[{name:"formula.functionList.RIGHT.functionParameter.number1.name",detail:"formula.functionList.RIGHT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.RIGHT.functionParameter.number2.name",detail:"formula.functionList.RIGHT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.RIGHTB,functionType:Z.Text,description:"formula.functionList.RIGHTB.description",abstract:"formula.functionList.RIGHTB.abstract",functionParameter:[{name:"formula.functionList.RIGHTB.functionParameter.number1.name",detail:"formula.functionList.RIGHTB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.RIGHTB.functionParameter.number2.name",detail:"formula.functionList.RIGHTB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.SEARCH,functionType:Z.Text,description:"formula.functionList.SEARCH.description",abstract:"formula.functionList.SEARCH.abstract",functionParameter:[{name:"formula.functionList.SEARCH.functionParameter.number1.name",detail:"formula.functionList.SEARCH.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SEARCH.functionParameter.number2.name",detail:"formula.functionList.SEARCH.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.SEARCHB,functionType:Z.Text,description:"formula.functionList.SEARCHB.description",abstract:"formula.functionList.SEARCHB.abstract",functionParameter:[{name:"formula.functionList.SEARCHB.functionParameter.number1.name",detail:"formula.functionList.SEARCHB.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SEARCHB.functionParameter.number2.name",detail:"formula.functionList.SEARCHB.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.SUBSTITUTE,functionType:Z.Text,description:"formula.functionList.SUBSTITUTE.description",abstract:"formula.functionList.SUBSTITUTE.abstract",functionParameter:[{name:"formula.functionList.SUBSTITUTE.functionParameter.number1.name",detail:"formula.functionList.SUBSTITUTE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.SUBSTITUTE.functionParameter.number2.name",detail:"formula.functionList.SUBSTITUTE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.T,functionType:Z.Text,description:"formula.functionList.T.description",abstract:"formula.functionList.T.abstract",functionParameter:[{name:"formula.functionList.T.functionParameter.number1.name",detail:"formula.functionList.T.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.T.functionParameter.number2.name",detail:"formula.functionList.T.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.TEXT,functionType:Z.Text,description:"formula.functionList.TEXT.description",abstract:"formula.functionList.TEXT.abstract",functionParameter:[{name:"formula.functionList.TEXT.functionParameter.value.name",detail:"formula.functionList.TEXT.functionParameter.value.detail",example:"1.23",require:1,repeat:0},{name:"formula.functionList.TEXT.functionParameter.formatText.name",detail:"formula.functionList.TEXT.functionParameter.formatText.detail",example:'"$0.00"',require:1,repeat:0}]},{functionName:Cr.TEXTAFTER,functionType:Z.Text,description:"formula.functionList.TEXTAFTER.description",abstract:"formula.functionList.TEXTAFTER.abstract",functionParameter:[{name:"formula.functionList.TEXTAFTER.functionParameter.text.name",detail:"formula.functionList.TEXTAFTER.functionParameter.text.detail",example:'"Red riding hood’s, red hood"',require:1,repeat:0},{name:"formula.functionList.TEXTAFTER.functionParameter.delimiter.name",detail:"formula.functionList.TEXTAFTER.functionParameter.delimiter.detail",example:'"hood"',require:1,repeat:0},{name:"formula.functionList.TEXTAFTER.functionParameter.instanceNum.name",detail:"formula.functionList.TEXTAFTER.functionParameter.instanceNum.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TEXTAFTER.functionParameter.matchMode.name",detail:"formula.functionList.TEXTAFTER.functionParameter.matchMode.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TEXTAFTER.functionParameter.matchEnd.name",detail:"formula.functionList.TEXTAFTER.functionParameter.matchEnd.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.TEXTAFTER.functionParameter.ifNotFound.name",detail:"formula.functionList.TEXTAFTER.functionParameter.ifNotFound.detail",example:'"not found"',require:0,repeat:0}]},{functionName:Cr.TEXTBEFORE,functionType:Z.Text,description:"formula.functionList.TEXTBEFORE.description",abstract:"formula.functionList.TEXTBEFORE.abstract",functionParameter:[{name:"formula.functionList.TEXTBEFORE.functionParameter.text.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.text.detail",example:'"Red riding hood’s, red hood"',require:1,repeat:0},{name:"formula.functionList.TEXTBEFORE.functionParameter.delimiter.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.delimiter.detail",example:'"hood"',require:1,repeat:0},{name:"formula.functionList.TEXTBEFORE.functionParameter.instanceNum.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.instanceNum.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TEXTBEFORE.functionParameter.matchMode.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.matchMode.detail",example:"1",require:0,repeat:0},{name:"formula.functionList.TEXTBEFORE.functionParameter.matchEnd.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.matchEnd.detail",example:"0",require:0,repeat:0},{name:"formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.name",detail:"formula.functionList.TEXTBEFORE.functionParameter.ifNotFound.detail",example:'"not found"',require:0,repeat:0}]},{functionName:Cr.TEXTJOIN,functionType:Z.Text,description:"formula.functionList.TEXTJOIN.description",abstract:"formula.functionList.TEXTJOIN.abstract",functionParameter:[{name:"formula.functionList.TEXTJOIN.functionParameter.number1.name",detail:"formula.functionList.TEXTJOIN.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TEXTJOIN.functionParameter.number2.name",detail:"formula.functionList.TEXTJOIN.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.TEXTSPLIT,functionType:Z.Text,description:"formula.functionList.TEXTSPLIT.description",abstract:"formula.functionList.TEXTSPLIT.abstract",functionParameter:[{name:"formula.functionList.TEXTSPLIT.functionParameter.text.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.text.detail",example:"{1,2,3;4,5,6}",require:1,repeat:0},{name:"formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.colDelimiter.detail",example:'","',require:1,repeat:0},{name:"formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.rowDelimiter.detail",example:'";"',require:0,repeat:0},{name:"formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.ignoreEmpty.detail",example:"",require:0,repeat:0},{name:"formula.functionList.TEXTSPLIT.functionParameter.matchMode.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.matchMode.detail",example:"",require:0,repeat:0},{name:"formula.functionList.TEXTSPLIT.functionParameter.padWith.name",detail:"formula.functionList.TEXTSPLIT.functionParameter.padWith.detail",example:"",require:0,repeat:0}]},{functionName:Cr.TRIM,functionType:Z.Text,description:"formula.functionList.TRIM.description",abstract:"formula.functionList.TRIM.abstract",functionParameter:[{name:"formula.functionList.TRIM.functionParameter.number1.name",detail:"formula.functionList.TRIM.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.TRIM.functionParameter.number2.name",detail:"formula.functionList.TRIM.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.UNICHAR,functionType:Z.Text,description:"formula.functionList.UNICHAR.description",abstract:"formula.functionList.UNICHAR.abstract",functionParameter:[{name:"formula.functionList.UNICHAR.functionParameter.number1.name",detail:"formula.functionList.UNICHAR.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.UNICHAR.functionParameter.number2.name",detail:"formula.functionList.UNICHAR.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.UNICODE,functionType:Z.Text,description:"formula.functionList.UNICODE.description",abstract:"formula.functionList.UNICODE.abstract",functionParameter:[{name:"formula.functionList.UNICODE.functionParameter.number1.name",detail:"formula.functionList.UNICODE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.UNICODE.functionParameter.number2.name",detail:"formula.functionList.UNICODE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.UPPER,functionType:Z.Text,description:"formula.functionList.UPPER.description",abstract:"formula.functionList.UPPER.abstract",functionParameter:[{name:"formula.functionList.UPPER.functionParameter.number1.name",detail:"formula.functionList.UPPER.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.UPPER.functionParameter.number2.name",detail:"formula.functionList.UPPER.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.VALUE,functionType:Z.Text,description:"formula.functionList.VALUE.description",abstract:"formula.functionList.VALUE.abstract",functionParameter:[{name:"formula.functionList.VALUE.functionParameter.number1.name",detail:"formula.functionList.VALUE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.VALUE.functionParameter.number2.name",detail:"formula.functionList.VALUE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.VALUETOTEXT,functionType:Z.Text,description:"formula.functionList.VALUETOTEXT.description",abstract:"formula.functionList.VALUETOTEXT.abstract",functionParameter:[{name:"formula.functionList.VALUETOTEXT.functionParameter.number1.name",detail:"formula.functionList.VALUETOTEXT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.VALUETOTEXT.functionParameter.number2.name",detail:"formula.functionList.VALUETOTEXT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.CALL,functionType:Z.Text,description:"formula.functionList.CALL.description",abstract:"formula.functionList.CALL.abstract",functionParameter:[{name:"formula.functionList.CALL.functionParameter.number1.name",detail:"formula.functionList.CALL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.CALL.functionParameter.number2.name",detail:"formula.functionList.CALL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.EUROCONVERT,functionType:Z.Text,description:"formula.functionList.EUROCONVERT.description",abstract:"formula.functionList.EUROCONVERT.abstract",functionParameter:[{name:"formula.functionList.EUROCONVERT.functionParameter.number1.name",detail:"formula.functionList.EUROCONVERT.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.EUROCONVERT.functionParameter.number2.name",detail:"formula.functionList.EUROCONVERT.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:Cr.REGISTER_ID,functionType:Z.Text,description:"formula.functionList.REGISTER_ID.description",abstract:"formula.functionList.REGISTER_ID.abstract",functionParameter:[{name:"formula.functionList.REGISTER_ID.functionParameter.number1.name",detail:"formula.functionList.REGISTER_ID.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.REGISTER_ID.functionParameter.number2.name",detail:"formula.functionList.REGISTER_ID.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],cnn=[],dnn=[{functionName:gR.ENCODEURL,functionType:Z.Web,description:"formula.functionList.ENCODEURL.description",abstract:"formula.functionList.ENCODEURL.abstract",functionParameter:[{name:"formula.functionList.ENCODEURL.functionParameter.number1.name",detail:"formula.functionList.ENCODEURL.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.ENCODEURL.functionParameter.number2.name",detail:"formula.functionList.ENCODEURL.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gR.FILTERXML,functionType:Z.Web,description:"formula.functionList.FILTERXML.description",abstract:"formula.functionList.FILTERXML.abstract",functionParameter:[{name:"formula.functionList.FILTERXML.functionParameter.number1.name",detail:"formula.functionList.FILTERXML.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.FILTERXML.functionParameter.number2.name",detail:"formula.functionList.FILTERXML.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]},{functionName:gR.WEBSERVICE,functionType:Z.Web,description:"formula.functionList.WEBSERVICE.description",abstract:"formula.functionList.WEBSERVICE.abstract",functionParameter:[{name:"formula.functionList.WEBSERVICE.functionParameter.number1.name",detail:"formula.functionList.WEBSERVICE.functionParameter.number1.detail",example:"A1:A20",require:1,repeat:0},{name:"formula.functionList.WEBSERVICE.functionParameter.number2.name",detail:"formula.functionList.WEBSERVICE.functionParameter.number2.detail",example:"A1:A20",require:1,repeat:0}]}],hnn=[...rnn,...tnn,...snn,...lnn,...onn,...enn,...unn,...ann,...inn,...nnn,...Jtn,...Ztn,...dnn,...Ktn,...cnn];var fnn=Object.defineProperty,mnn=Object.getOwnPropertyDescriptor,gnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?mnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fnn(e,n,i),i},"__decorateClass$d"),VB=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d");const E9=er("formula-ui.description-service");var BB;let DP=(BB=class{constructor(t,e,n){xr(this,"_descriptions",[]),this._functionService=t,this._localeService=e,this._configService=n,this._initialize()}dispose(){this._localeService.localeChanged$.complete()}getDescriptions(){return this._functionService.getDescriptions()}hasFunction(t){return this._functionService.getDescriptions().get(t.toLocaleUpperCase())!==void 0}getFunctionInfo(t){return this._functionService.getDescriptions().get(t.toLocaleUpperCase())}getSearchListByName(t){const e=[],n=this._functionService.getDescriptions(),r=t.toLocaleUpperCase().trim();return n.forEach(i=>{const{functionName:a,abstract:o,functionType:s}=i;a.toLocaleUpperCase().indexOf(r)>-1&&s!==Z.DefinedName&&e.push({name:a,desc:o})}),e}getSearchListByNameFirstLetter(t){const e=[],n=this._functionService.getDescriptions(),r=t.toLocaleUpperCase().trim();return n.forEach(i=>{const{functionName:a,abstract:o}=i;a.toLocaleUpperCase().indexOf(r)===0&&e.push({name:a,desc:o})}),e}getSearchListByType(t){const e=[];return this._functionService.getDescriptions().forEach(n=>{const{functionName:r,functionType:i,abstract:a}=n;(i===t||t===-1)&&i!==Z.DefinedName&&e.push({name:r,desc:a})}),e}registerDescriptions(t){return this._descriptions=this._descriptions.concat(t),this._registerDescriptions(),$t(()=>{const e=t.map(n=>n.functionName);this.unregisterDescriptions(e)})}unregisterDescriptions(t){this._descriptions=this._descriptions.filter(e=>!t.includes(e.functionName)),this._functionService.unregisterDescriptions(...t)}hasDescription(t){return this._descriptions.some(e=>e.functionName===t)}hasDefinedNameDescription(t){return this._descriptions.some(e=>e.functionName===t&&e.functionType===Z.DefinedName)}isFormulaDefinedName(t){const e=this._descriptions.filter(r=>r.functionName===t&&r.functionType===Z.DefinedName);if(e.length===0)return!1;const n=e[0].description;return!K7(n)}_initialize(){this._localeService.localeChanged$.subscribe(()=>{this._registerDescriptions()}),this._initDescription(),this._registerDescriptions()}_initDescription(){var t;const e=[...WRe,...uAe,...cAe,...dAe,...$Ae,...Wwe,...GDe,...fIe,...LIe,...hPe,...VMe,...YMe,..._Te,...TTe,...LTe,...xTe].map(i=>i[1]),n=hnn.filter(i=>e.includes(i.functionName)),r=this._configService.getConfig(zqe);this._descriptions=n.concat((t=r==null?void 0:r.description)!=null?t:[])}_registerDescriptions(){const t=this._localeService,e=this._descriptions.map(n=>({functionName:Uqe(n,t),functionType:n.functionType,description:t.t(n.description),abstract:t.t(n.abstract),functionParameter:n.functionParameter.map(r=>({name:t.t(r.name),detail:t.t(r.detail),example:r.example,require:r.require,repeat:r.repeat}))}));this._functionService.registerDescriptions(...e)}},Je(BB,"DescriptionService"),BB);DP=gnn([VB(0,Vu),VB(1,se(sn)),VB(2,Za)],DP);const pnn="univer-formula-select-function-select",vnn="univer-formula-select-function-result",_nn="univer-formula-select-function-result-item",Cnn="univer-formula-select-function-result-item-name-light",Snn="univer-formula-select-function-result-item-selected",bnn="univer-formula-select-function-result-item-active",ynn="univer-formula-select-function-content",xh={formulaSelectFunctionSelect:pnn,formulaSelectFunctionResult:vnn,formulaSelectFunctionResultItem:_nn,formulaSelectFunctionResultItemNameLight:Cnn,formulaSelectFunctionResultItemSelected:Snn,formulaSelectFunctionResultItemActive:bnn,formulaSelectFunctionContent:ynn};function qqe(t){const{onChange:e}=t,n="-1",[r,i]=E.useState(""),[a,o]=E.useState([]),[s,l]=E.useState(0),[u,c]=E.useState(n),[d,h]=E.useState(0),[f,m]=E.useState(null),g=Ne(E9),p=Ne(sn),v=Bqe(Z,p);v.unshift({label:p.t("formula.moreFunctions.allFunctions"),value:n});const _=p.t("formula.prompt.required"),C=p.t("formula.prompt.optional");E.useEffect(()=>{y(n)},[]),E.useEffect(()=>{b(0)},[a]);const S=Je(L=>{if(r.trim()==="")return L;const k=new RegExp(`(${r.toLocaleUpperCase()})`);return L.split(k).filter(Boolean).map((O,$)=>O.match(k)?Hn.jsx("span",{className:xh.formulaSelectFunctionResultItemNameLight,children:O},$):O)},"highlightSearchText"),b=Je(L=>{if(a.length===0){m(null);return}h(L);const k=g.getFunctionInfo(a[L].name);if(!k){m(null);return}m(k),e(k)},"setCurrentFunctionInfo");function y(L){c(L);const k=g.getSearchListByType(+L);o(k)}Je(y,"handleSelectChange");function A(L){i(L);const k=g.getSearchListByName(L);o(k)}Je(A,"handleSearchInputChange");function w(L){if(L.stopPropagation(),L.key==="ArrowDown"){const k=s+1;l(k===a.length?0:k)}else if(L.key==="ArrowUp"){const k=s-1;l(k===-1?a.length-1:k)}else L.key==="Enter"&&b(s)}Je(w,"handleSelectListKeyDown");const P=Je(L=>{l(L)},"handleLiMouseEnter"),M=Je(()=>{l(-1)},"handleLiMouseLeave");return Hn.jsxs("div",{children:[Hn.jsxs("div",{className:xh.formulaSelectFunctionSelect,children:[Hn.jsx(md,{value:u,options:v,onChange:y}),Hn.jsx(Qs,{placeholder:p.t("formula.moreFunctions.searchFunctionPlaceholder"),onKeyDown:w,value:r,onChange:A,size:"large",allowClear:!0})]}),Hn.jsx("ul",{className:xh.formulaSelectFunctionResult,onKeyDown:w,tabIndex:-1,children:a.map(({name:L},k)=>Hn.jsxs("li",{className:s===k?`${xh.formulaSelectFunctionResultItem} ${xh.formulaSelectFunctionResultItemActive}`:xh.formulaSelectFunctionResultItem,onMouseEnter:Je(()=>P(k),"onMouseEnter"),onMouseLeave:M,onClick:Je(()=>b(k),"onClick"),children:[d===k&&Hn.jsx(Nqe,{className:xh.formulaSelectFunctionResultItemSelected}),Hn.jsx("span",{className:xh.formulaSelectFunctionResultItemName,children:S(L)})]},k))}),f&&Hn.jsxs("div",{className:xh.formulaSelectFunctionContent,children:[Hn.jsx(N6,{title:f.functionName,value:f.description}),Hn.jsx(N6,{title:p.t("formula.moreFunctions.syntax"),value:Hn.jsx($re,{prefix:f.functionName,value:f.functionParameter})}),Hn.jsx(N6,{title:p.t("formula.prompt.helpExample"),value:`${f.functionName}(${f.functionParameter.map(L=>L.example).join(",")})`}),f.functionParameter&&f.functionParameter.map((L,k)=>Hn.jsx(N6,{title:L.name,value:`${L.require?_:C} ${L.detail}`},k))]})]})}Je(qqe,"SelectFunction");function Yqe(){const t=lm(),[e,n]=E.useState(!0),[r,i]=E.useState(!1),[a,o]=E.useState(null),s=Ne(sn),l=Ne(Fo);function u(){n(!e),i(!r)}Je(u,"handleClickNextPrev");function c(){l.setFormula(`=${a==null?void 0:a.functionName}(`)}return Je(c,"handleConfirm"),Hn.jsxs("div",{className:Pue.formulaMoreFunctions,children:[e&&Hn.jsx(qqe,{onChange:o}),r&&Hn.jsx(Wqe,{functionInfo:a,onChange:Je(()=>{},"onChange")}),Hn.jsxs("div",{className:Pue.formulaMoreFunctionsOperation,children:[r&&Hn.jsx(fa,{type:"primary",size:"small",onClick:u,children:s.t("formula.moreFunctions.next")}),r&&Hn.jsx(fa,{size:"small",onClick:u,children:s.t("formula.moreFunctions.prev")}),e&&!!t&&Hn.jsx(fa,{type:"primary",size:"small",onClick:c,children:s.t("formula.moreFunctions.confirm")})]})]})}Je(Yqe,"MoreFunctions");const PA={type:Se.MUTATION,id:"sheet.mutation.data-validation-formula-mark-dirty",handler(){return!0}},Xqe="meta_key_ctrl_And_Shift";function Gqe(t){return t.getContextValue(K1)&&t.getContextValue(Pu)&&t.getContextValue(S4)}Je(Gqe,"whenEditorStandalone");function Wre(t){return(Ar(t==null?void 0:t.f)||Rl(t==null?void 0:t.si))&&typeof(t==null?void 0:t.v)=="string"&&Wp.has(t.v)?t.v:null}Je(Wre,"extractFormulaError");const Jx=[Et.ARROW_DOWN,Et.ARROW_UP,Et.ARROW_LEFT,Et.ARROW_RIGHT],Enn=[...Jx,Et.ENTER,Et.TAB,Et.ESC];function Qqe(){const t=[];for(const e of Enn)t.push({id:c3.id,binding:e,preconditions:Je(n=>S9(n),"preconditions"),staticParameters:{eventType:$i.Keyboard,keycode:e}});return t}Je(Qqe,"promptSelectionShortcutItem");function Kqe(){const t=[];for(const e of Jx)t.push({id:c3.id,binding:e|Ln.SHIFT,preconditions:Je(n=>S9(n),"preconditions"),staticParameters:{eventType:$i.Keyboard,keycode:e,metaKey:Ln.SHIFT}});return t}Je(Kqe,"promptSelectionShortcutItemShift");function Zqe(){const t=[];for(const e of Jx)t.push({id:c3.id,binding:e|Ln.CTRL_COMMAND,preconditions:Je(n=>S9(n),"preconditions"),staticParameters:{eventType:$i.Keyboard,keycode:e,metaKey:Ln.CTRL_COMMAND}});return t}Je(Zqe,"promptSelectionShortcutItemCtrl");function Jqe(){const t=[];for(const e of Jx)t.push({id:c3.id,binding:e|Ln.SHIFT|Ln.CTRL_COMMAND,preconditions:Je(n=>S9(n),"preconditions"),staticParameters:{eventType:$i.Keyboard,keycode:e,metaKey:Xqe}});return t}Je(Jqe,"promptSelectionShortcutItemCtrlAndShift");const Rnn={id:Bre.id,binding:Et.F4,preconditions:Je(t=>S9(t),"preconditions")};function eYe(){const t=[];for(const e of[Et.ENTER,Et.TAB,Et.ARROW_DOWN,Et.ARROW_UP])t.push({id:c3.id,binding:e,preconditions:Je(n=>Gqe(n),"preconditions"),staticParameters:{eventType:$i.Keyboard,keycode:e,isSingleEditor:!0}});return t}Je(eYe,"singleEditorPromptSelectionShortcutItem");function tYe(t){return{id:Fre.id,icon:"FunctionSingle",tooltip:"formula.insert.tooltip",type:Tt.SELECTOR,selections:[{label:"SUM",value:"SUM",icon:"SumSingle"},{label:"AVERAGE",value:"AVERAGE",icon:"AvgSingle"},{label:"COUNT",value:"COUNT",icon:"CntSingle"},{label:"MAX",value:"MAX",icon:"MaxSingle"},{label:"MIN",value:"MIN",icon:"MinSingle"}],hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,zs],rangeTypes:[Bn]})}}Je(tYe,"InsertFunctionMenuItemFactory");function nYe(t){return{id:Vre.id,title:"formula.insert.more",type:Tt.BUTTON}}Je(nYe,"MoreFunctionsMenuItemFactory");function rYe(t){return t.get(Ce).getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(Ei(e=>e&&t.get(dh)?new On(n=>n.next(!t.get(dh).supportClipboard)):Hr(!0)))}Je(rYe,"menuClipboardDisabledObservable");function iYe(t){return{id:kre.id,type:Tt.BUTTON,title:"formula.operation.pasteFormula",disabled$:rYe(t).pipe($f(Mr(t,{workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[zs,Tn]})),pr(([e,n])=>e||n))}}Je(iYe,"PasteFormulaMenuItemFactory");const Ann={[As.FORMULAS_INSERT]:{[Fre.id]:{order:1,menuItemFactory:tYe,[Vre.id]:{order:1,menuItemFactory:nYe}}},[Q8]:{[kre.id]:{order:4,menuItemFactory:iYe}}};var wnn=Object.defineProperty,Dnn=Object.getOwnPropertyDescriptor,Inn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Dnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&wnn(e,n,i),i},"__decorateClass$c"),H2=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c"),UB;let MA=(UB=class extends et{constructor(t,e,n,r,i,a,o){super(),this._injector=t,this._menuManagerService=e,this._commandService=n,this._shortcutService=r,this._uiPartsService=i,this._renderManagerService=a,this._componentManager=o,this._initialize()}_initialize(){this._registerCommands(),this._registerMenus(),this._registerShortcuts(),this._registerComponents(),this._registerRenderModules()}_registerMenus(){this._menuManagerService.mergeMenu(Ann)}_registerCommands(){[Aqe,kre,Fre,Vre,tX,JY,c3,Bre,PA].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_registerShortcuts(){[...Qqe(),...Kqe(),...Zqe(),...Jqe(),...eYe(),Rnn].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_registerComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(Ba.CONTENT,()=>yl($qe,this._injector))),this._componentManager.register(Mqe,Yqe)}_registerRenderModules(){this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,[AP]))}},Je(UB,"FormulaUIController"),UB);MA=Inn([yn(Vt.Ready,MA),H2(0,se(Wn)),H2(1,sl),H2(2,me),H2(3,Bu),H2(4,_c),H2(5,Sr),H2(6,se(ja))],MA);var Pnn=Object.defineProperty,Mnn=Object.getOwnPropertyDescriptor,Tnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Mnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Pnn(e,n,i),i},"__decorateClass$b"),h5=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b"),HB;let uv=(HB=class extends et{constructor(t,e,n,r,i){super(),xr(this,"_waitingCommandQueue",[]),xr(this,"_executingDirtyData",{forceCalculation:!1,dirtyRanges:[],dirtyNameMap:{},dirtyDefinedNameMap:{},dirtyUnitFeatureMap:{},dirtyUnitOtherFormulaMap:{}}),xr(this,"_setTimeoutKey",-1),xr(this,"_startExecutionTime",0),xr(this,"_formulaCalculationDoneCount",0),xr(this,"_arrayFormulaCalculationDoneCount",0),xr(this,"_executionInProgressParams",null),xr(this,"_restartCalculation",!1),this._commandService=t,this._activeDirtyManagerService=e,this._numfmtService=n,this._formulaDataModel=r,this._progressService=i,this._initialize()}_initialize(){this._commandExecutedListener(),this._initialExecuteFormulaProcessListener(),this._initialExecuteFormula(),this._initialProgressBar()}_commandExecutedListener(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{if(this._activeDirtyManagerService.get(t.id)){if(t.id===Mn.id){const n=t.params;if(e&&e.onlyLocal===!0||n.trigger===rs.id||n.trigger===a3.id||n.trigger===th.id)return}this._waitingCommandQueue.push(t),clearTimeout(this._setTimeoutKey),this._setTimeoutKey=setTimeout(()=>{const n=this._generateDirty(this._waitingCommandQueue);this._executingDirtyData=this._mergeDirty(this._executingDirtyData,n),this._executionInProgressParams==null?this._commandService.executeCommand(t4.id,{...this._executingDirtyData},{onlyLocal:!0}):(this._restartCalculation=!0,this._commandService.executeCommand(KD.id,{})),this._startExecutionTime=performance.now(),this._waitingCommandQueue=[]},100)}}))}_generateDirty(t){const e=[],n={},r={},i={},a={};for(const o of t){const s=this._activeDirtyManagerService.get(o.id);if(s==null)continue;const l=s.getDirtyData(o),{dirtyRanges:u,dirtyNameMap:c,dirtyDefinedNameMap:d,dirtyUnitFeatureMap:h,dirtyUnitOtherFormulaMap:f}=l;u!=null&&e.push(...u),c!=null&&this._mergeDirtyNameMap(n,c),d!=null&&this._mergeDirtyNameMap(r,d),h!=null&&this._mergeDirtyUnitFeatureOrOtherFormulaMap(i,h),f!=null&&this._mergeDirtyUnitFeatureOrOtherFormulaMap(a,f)}return{dirtyRanges:e,dirtyNameMap:n,dirtyDefinedNameMap:r,dirtyUnitFeatureMap:i,dirtyUnitOtherFormulaMap:a,forceCalculation:!1}}_mergeDirty(t,e){const n=[...t.dirtyRanges,...e.dirtyRanges],r={...t.dirtyNameMap},i={...t.dirtyDefinedNameMap},a={...t.dirtyUnitFeatureMap},o={...t.dirtyUnitOtherFormulaMap};return this._mergeDirtyNameMap(r,e.dirtyNameMap),this._mergeDirtyNameMap(i,e.dirtyDefinedNameMap),this._mergeDirtyUnitFeatureOrOtherFormulaMap(a,e.dirtyUnitFeatureMap),this._mergeDirtyUnitFeatureOrOtherFormulaMap(o,e.dirtyUnitOtherFormulaMap),{dirtyRanges:n,dirtyNameMap:r,dirtyDefinedNameMap:i,dirtyUnitFeatureMap:a,dirtyUnitOtherFormulaMap:o,forceCalculation:!1}}_mergeDirtyNameMap(t,e){Object.keys(e).forEach(n=>{t[n]==null&&(t[n]={}),Object.keys(e[n]).forEach(r=>{var i;(i=e[n])!=null&&i[r]&&(t[n]==null&&(t[n]={}),t[n][r]=e[n][r])})})}_mergeDirtyUnitFeatureOrOtherFormulaMap(t,e){Object.keys(e).forEach(n=>{t[n]==null&&(t[n]={}),Object.keys(e[n]).forEach(r=>{t[n][r]==null&&(t[n][r]={}),Object.keys(e[n][r]).forEach(i=>{t[n][r][i]=e[n][r][i]||!1})})})}_initialExecuteFormulaProcessListener(){const t=hH(this._pushFormulaTask.bind(this),300),e=hH(this._pushArrayFormulaTask.bind(this),300);let n=null,r=0,i=0,a=0,o=!1,s=!1;this.disposeWithMe(this._commandService.onCommandExecuted(l=>{if(l.id!==ZD.id)return;const u=l.params;if(u.stageInfo!=null){const{totalFormulasToCalculate:c,completedFormulasCount:d,totalArrayFormulasToCalculate:h,completedArrayFormulasCount:f,stage:m}=u.stageInfo;m===Wc.START_DEPENDENCY?(r++,n!==null&&(clearTimeout(n),n=null),n=setTimeout(()=>{const g=i-this._formulaCalculationDoneCount+(a-this._arrayFormulaCalculationDoneCount)+100;this._progressService.insertTaskCount(g),this._progressService.pushTask({count:5}),n=null},1e3)):m===Wc.CURRENTLY_CALCULATING?(d===1&&!o&&(o=!0,n?i+=c:this._progressService.insertTaskCount(c)),n?this._formulaCalculationDoneCount=d:t(d)):m===Wc.CURRENTLY_CALCULATING_ARRAY_FORMULA&&(f===1&&!s&&(s=!0,n?a+=h:this._progressService.insertTaskCount(h)),n?this._arrayFormulaCalculationDoneCount=f:e(f)),this._executionInProgressParams=u.stageInfo}else{const c=u.functionsExecutedState;let d="";switch(r--,c){case X1.NOT_EXECUTED:d="No tasks are being executed anymore",this._resetExecutingDirtyData();break;case X1.STOP_EXECUTION:d="The execution of the formula has been stopped",this._progressService.stop(),r=0;break;case X1.SUCCESS:d=`Formula calculation succeeded, Total time consumed: ${performance.now()-this._startExecutionTime} ms`,this._resetExecutingDirtyData();break;case X1.INITIAL:d="Waiting for calculation",this._resetExecutingDirtyData();break}r===0&&(n?(clearTimeout(n),n=null):c===X1.SUCCESS&&this._progressService.complete(),this._formulaCalculationDoneCount=0,this._arrayFormulaCalculationDoneCount=0,o=!1,s=!1),c===X1.STOP_EXECUTION&&this._restartCalculation?(this._restartCalculation=!1,this._commandService.executeCommand(t4.id,{...this._executingDirtyData},{onlyLocal:!0})):this._executionInProgressParams=null,console.warn(`execution result${d}`)}}))}_resetExecutingDirtyData(){this._executingDirtyData={dirtyRanges:[],dirtyNameMap:{},dirtyDefinedNameMap:{},dirtyUnitFeatureMap:{},dirtyUnitOtherFormulaMap:{},forceCalculation:!1}}_initialExecuteFormula(){this._commandService.executeCommand(t4.id,{commands:[],forceCalculation:!0},{onlyLocal:!0})}_initialProgressBar(){this.disposeWithMe(this._progressService.progressVisible$.subscribe(t=>{t||this._commandService.executeCommand(KD.id,{})}))}_pushFormulaTask(t){if(this._progressService.getTaskCount()===0)return;const e=t-this._formulaCalculationDoneCount;this._formulaCalculationDoneCount=t,this._progressService.pushTask({count:e})}_pushArrayFormulaTask(t){if(this._progressService.getTaskCount()===0)return;const e=t-this._arrayFormulaCalculationDoneCount;this._arrayFormulaCalculationDoneCount=t,this._progressService.pushTask({count:e})}},Je(HB,"TriggerCalculationController"),HB);uv=Tnn([yn(Vt.Ready,uv),h5(0,me),h5(1,uL),h5(2,se(Tc)),h5(3,se(_d)),h5(4,se(hL))],uv);function aYe(t,e,n){var r;return t==null||t[e]==null||((r=t[e])==null?void 0:r[n])==null}Je(aYe,"checkFormulaDataNull");function TA(t,e,n){var r;if(n){if(t&&t[e]&&(r=t[e])!=null&&r[n])return delete t[e][n],{[e]:{[n]:null}}}else if(t&&t[e])return delete t[e],{[e]:null}}Je(TA,"removeFormulaData");function oYe(t,e,n){const{type:r}=n;return r===11||r===12?sYe(t,e):lYe(t,e,n)}Je(oYe,"getFormulaReferenceMoveUndoRedo");function sYe(t,e){const n=[],r=[];return Object.keys(e).forEach(i=>{const a=e[i],o=t[i];if(a==null||o==null)return!0;Object.keys(a).forEach(s=>{const l=new Ct(a[s]||{}),u=new Ct(o[s]||{}),c=new Ct,d=new Ct;if(l.forValue((p,v,_)=>{if(_==null)return!0;const C=Eb(_);C!==null&&(c.setValue(p,v,C),d.setValue(p,v,u.getValue(p,v)))}),c.getSizeOf()===0)return;const h={subUnitId:s,unitId:i,cellValue:c.clone()},f={id:Mn.id,params:h};r.push(f);const m={subUnitId:s,unitId:i,cellValue:d.clone()},g={id:Mn.id,params:m};n.push(g)})}),{undos:n,redos:r}}Je(sYe,"getFormulaReferenceSheet");function lYe(t,e,n){const{sheetId:r,unitId:i}=n,{redoFormulaData:a,undoFormulaData:o}=uYe(t,e,n),s=[],l=[];if(Object.keys(a).length!==0){const u={subUnitId:r,unitId:i,cellValue:a},c={id:Mn.id,params:u};s.push(c)}if(Object.keys(o).length!==0){const u={subUnitId:r,unitId:i,cellValue:o},c={id:Mn.id,params:u};l.push(c)}return{undos:l,redos:s}}Je(lYe,"getFormulaReferenceRange");function uYe(t,e,n){let r={},i={};const{type:a,unitId:o,sheetId:s,range:l,from:u,to:c}=n;if(aYe(t,o,s))return{redoFormulaData:r,undoFormulaData:i};const d=t[o][s],h=e[o][s],f=new Ct(d||{}),m=new Ct(h||{}),g=cYe(f,a,u,c,l);return r=RYe(g,f,m),i=AYe(g,f),{redoFormulaData:r,undoFormulaData:i}}Je(uYe,"refRangeFormula");function cYe(t,e,n,r,i){const a=[];return t.forValue((o,s,l)=>{if(l==null||!DYe(l))return!0;const u=DC(o,s);let c=null,d=!1;if([0,1,2].includes(e))c=dYe(e,n,r,u);else if(i!=null){const h=hYe(e,i,u);c=h.newCell,d=h.isReverse}d?a.unshift({oldCell:u,newCell:c}):a.push({oldCell:u,newCell:c})}),a}Je(cYe,"processFormulaChanges");function dYe(t,e,n,r){if(e==null||n==null)return null;switch(t){case 0:return fYe(e,n,r);case 1:return mYe(e,n,r);case 2:return gYe(e,n,r);default:return null}}Je(dYe,"handleMove");function hYe(t,e,n){let r=null,i=!1;switch(t){case 3:r=pYe(e,n),i=!0;break;case 4:r=vYe(e,n),i=!0;break;case 5:r=_Ye(e,n);break;case 6:r=CYe(e,n);break;case 7:r=SYe(e,n);break;case 8:r=bYe(e,n);break;case 9:r=yYe(e,n),i=!0;break;case 10:r=EYe(e,n),i=!0;break}return{newCell:r,isReverse:i}}Je(hYe,"handleInsertDelete");function fYe(t,e,n){const r=Pne({id:zn.MoveRangeCommandId,params:{toRange:e,fromRange:t}},n);return xa(r,n)}Je(fYe,"handleRefMoveRange");function mYe(t,e,n){const r=fx({id:zn.MoveRowsCommandId,params:{toRange:e,fromRange:t}},n);return xa(r,n)}Je(mYe,"handleRefMoveRows");function gYe(t,e,n){const r=mx({id:zn.MoveColsCommandId,params:{toRange:e,fromRange:t}},n);return xa(r,n)}Je(gYe,"handleRefMoveCols");function pYe(t,e){const n=px({id:zn.InsertRowCommandId,params:{range:t,unitId:"",subUnitId:"",direction:ut.DOWN}},e);return xa(n,e)}Je(pYe,"handleRefInsertRow");function vYe(t,e){const n=vx({id:zn.InsertColCommandId,params:{range:t,unitId:"",subUnitId:"",direction:ut.RIGHT}},e);return xa(n,e)}Je(vYe,"handleRefInsertCol");function _Ye(t,e){const n=Mne({id:zn.RemoveRowCommandId,params:{range:t}},e);return xa(n,e)}Je(_Ye,"handleRefRemoveRow");function CYe(t,e){const n=gx({id:zn.RemoveColCommandId,params:{range:t}},e);return xa(n,e)}Je(CYe,"handleRefRemoveCol");function SYe(t,e){const n=xne({id:zn.DeleteRangeMoveLeftCommandId,params:{range:t}},e);return xa(n,e)}Je(SYe,"handleRefDeleteMoveLeft");function bYe(t,e){const n=One({id:zn.DeleteRangeMoveUpCommandId,params:{range:t}},e);return xa(n,e)}Je(bYe,"handleRefDeleteMoveUp");function yYe(t,e){const n=Tne({id:zn.InsertRangeMoveDownCommandId,params:{range:t}},e);return xa(n,e)}Je(yYe,"handleRefInsertMoveDown");function EYe(t,e){const n=Lne({id:zn.InsertRangeMoveRightCommandId,params:{range:t}},e);return xa(n,e)}Je(EYe,"handleRefInsertMoveRight");function RYe(t,e,n){const r=new Ct({});return t.forEach(i=>{const{oldCell:a,newCell:o}=i,{startRow:s,startColumn:l}=a,u=n.getValue(s,l)||e.getValue(s,l),c=Eb(u);if(r.setValue(s,l,{f:null,si:null}),o){const{startRow:d,startColumn:h}=o;r.setValue(d,h,c)}}),r.clone()}Je(RYe,"getRedoFormulaData");function AYe(t,e){const n=new Ct({});return t.reverse().forEach(r=>{const{oldCell:i,newCell:a}=r,{startRow:o,startColumn:s}=i,l=e.getValue(o,s),u=Eb(l);if(a){const{startRow:c,startColumn:d}=a;n.setValue(c,d,{f:null,si:null})}n.setValue(o,s,u)}),n.clone()}Je(AYe,"getUndoFormulaData");function Eb(t){if(t==null)return;const{f:e,si:n,x:r=0,y:i=0}=t,a=Ar(e),o=Rl(n);if(!a&&!o)return{f:null,si:null};const s={};return o&&(s.si=n),a&&r===0&&i===0&&(s.f=e),s.f===void 0&&(s.f=null),s.si===void 0&&(s.si=null),s}Je(Eb,"formulaDataItemToCellData");function wYe(t){const e=new Ct({});return new Ct(t).forValue((n,r,i)=>{const a=Eb(i);e.setValue(n,r,a)}),e.clone()}Je(wYe,"formulaDataToCellData");function DYe(t){const e=(t==null?void 0:t.f)||"",n=(t==null?void 0:t.si)||"",r=Ar(e),i=Rl(n);return!!(r||i)}Je(DYe,"isFormulaDataItem");var Lnn=Object.defineProperty,xnn=Object.getOwnPropertyDescriptor,Onn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?xnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Lnn(e,n,i),i},"__decorateClass$a"),Rm=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),jB;let cv=(jB=class extends et{constructor(t,e,n,r,i,a,o,s){super(),this._univerInstanceService=t,this._commandService=e,this._lexerTreeBuilder=n,this._formulaDataModel=r,this._sheetInterceptorService=i,this._selectionManagerService=a,this._editorService=o,this._injector=s,this._initialize()}_initialize(){this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:Je(t=>this._getUpdateFormula(t),"getMutations")})),this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{if(t.params)if(t.id===Mn.id){const n=t.params;if(e&&e.onlyLocal===!0||n.trigger===rs.id||n.trigger===a3.id||n.trigger===th.id)return;this._handleSetRangeValuesMutation(n)}else if(t.id===Ls.id){const{subUnitId:n,unitId:r}=t.params;this._handleRemoveSheetMutation(r,n)}else t.id===Dl.id&&this._handleInsertSheetMutation(t.params)})),this.disposeWithMe($t(Qa(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET),this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_DOC),this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SLIDE)).pipe(mo(t=>this._editorService.getEditor(t.getUnitId())==null),mo(t=>!oh(t.getUnitId()))).subscribe(t=>this._handleUnitAdded(t)))),this.disposeWithMe($t(Qa(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).pipe(pr(t=>t.getUnitId())),this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_DOC).pipe(pr(t=>t.getUnitId())),this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SLIDE).pipe(pr(t=>t.getUnitId()))).pipe(mo(t=>this._editorService.getEditor(t)==null)).subscribe(t=>this._handleRemoveSheetMutation(t))))}_handleSetRangeValuesMutation(t){const{subUnitId:e,unitId:n,cellValue:r}=t;if(r==null)return;const i=this._formulaDataModel.updateFormulaData(n,e,r),a={[n]:{[e]:i}};this._commandService.executeCommand(Mn.id,{unitId:n,subUnitId:e,cellValue:wYe(i)},{onlyLocal:!0,fromFormula:!0}),this._formulaDataModel.updateArrayFormulaCellData(n,e,r),this._formulaDataModel.updateArrayFormulaRange(n,e,r),this._commandService.executeCommand(Eg.id,{formulaData:a},{onlyLocal:!0}),this._commandService.executeCommand(fp.id,{arrayFormulaRange:this._formulaDataModel.getArrayFormulaRange(),arrayFormulaCellData:this._formulaDataModel.getArrayFormulaCellData()},{onlyLocal:!0,remove:!0})}_handleRemoveSheetMutation(t,e){const n=this._formulaDataModel.getFormulaData(),r=TA(n,t,e),i=this._formulaDataModel.getArrayFormulaRange(),a=TA(i,t,e),o=this._formulaDataModel.getArrayFormulaCellData(),s=TA(o,t,e);r&&this._commandService.executeCommand(Eg.id,{formulaData:r},{onlyLocal:!0}),a&&s&&this._commandService.executeCommand(fp.id,{arrayFormulaRange:i,arrayFormulaCellData:o},{onlyLocal:!0})}_handleInsertSheetMutation(t){const{sheet:e,unitId:n}=t,r=this._formulaDataModel.getFormulaData(),{id:i,cellData:a}=e,o=new Ct(a),s=QD(r,n,i,o);this._commandService.executeCommand(Eg.id,{formulaData:s},{onlyLocal:!0})}_handleUnitAdded(t){const e=this._formulaDataModel.getFormulaData(),n=t.getUnitId(),r=t.type,i={[n]:{}};r===le.UNIVER_SHEET?t.getSheets().forEach(a=>{var o;const s=a.getCellMatrix(),l=a.getSheetId(),u=QD(e,n,l,s);i[n][l]=(o=u[n])==null?void 0:o[l]}):r===le.UNIVER_DOC||le.UNIVER_SLIDE,this._commandService.executeCommand(Eg.id,{formulaData:i},{onlyLocal:!0}),this._commandService.executeCommand(t4.id,{commands:[],forceCalculation:!0},{onlyLocal:!0})}_getUpdateFormula(t){const{id:e}=t;let n=null;switch(e){case F0.id:n=this._handleMoveRange(t);break;case r3.id:n=this._handleMoveRows(t);break;case i3.id:n=this._handleMoveCols(t);break;case If.id:n=this._handleInsertRow(t);break;case Pf.id:n=this._handleInsertCol(t);break;case B0.id:n=this._handleInsertRangeMoveRight(t);break;case V0.id:n=this._handleInsertRangeMoveDown(t);break;case U0.id:n=this._handleRemoveRow(t);break;case H0.id:n=this._handleRemoveCol(t);break;case Cp.id:n=this._handleDeleteRangeMoveUp(t);break;case _p.id:n=this._handleDeleteRangeMoveLeft(t);break;case ub.id:n=this._handleSetWorksheetName(t);break;case ab.id:n=this._handleRemoveWorksheet(t);break}if(n){const{unitSheetNameMap:r}=this._formulaDataModel.getCalculateData(),i=this._formulaDataModel.getFormulaData(),{newFormulaData:a}=this._getFormulaReferenceMoveInfo(i,r,n),{undos:o,redos:s}=oYe(i,a,n);return{undos:o,redos:s}}return{undos:[],redos:[]}}_handleMoveRange(t){const{params:e}=t;if(!e)return null;const{fromRange:n,toRange:r}=e;if(!n||!r)return null;const{unitId:i,sheetId:a}=this._getCurrentSheetInfo();return{type:0,from:n,to:r,unitId:i,sheetId:a}}_handleMoveRows(t){const{params:e}=t;if(!e)return null;const{fromRange:{startRow:n,endRow:r},toRange:{startRow:i,endRow:a}}=e,o=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),s=o.getUnitId(),l=o.getActiveSheet();if(!l)return null;const u=l.getSheetId(),c={startRow:n,startColumn:0,endRow:r,endColumn:l.getColumnCount()-1,rangeType:it.ROW},d={startRow:i,startColumn:0,endRow:a,endColumn:l.getColumnCount()-1,rangeType:it.ROW};return{type:1,from:c,to:d,unitId:s,sheetId:u}}_handleMoveCols(t){const{params:e}=t;if(!e)return null;const{fromRange:{startColumn:n,endColumn:r},toRange:{startColumn:i,endColumn:a}}=e,o=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),s=o.getUnitId(),l=o.getActiveSheet();if(!l)return null;const u=l.getSheetId(),c={startRow:0,startColumn:n,endRow:l.getRowCount()-1,endColumn:r,rangeType:it.COLUMN},d={startRow:0,startColumn:i,endRow:l.getRowCount()-1,endColumn:a,rangeType:it.COLUMN};return{type:2,from:c,to:d,unitId:s,sheetId:u}}_handleInsertRow(t){const{params:e}=t;if(!e)return null;const{range:n,unitId:r,subUnitId:i}=e;return{type:3,range:n,unitId:r,sheetId:i}}_handleInsertCol(t){const{params:e}=t;if(!e)return null;const{range:n,unitId:r,subUnitId:i}=e;return{type:4,range:n,unitId:r,sheetId:i}}_handleInsertRangeMoveRight(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:10,range:n,unitId:r,sheetId:i}}_handleInsertRangeMoveDown(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:9,range:n,unitId:r,sheetId:i}}_handleRemoveRow(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:5,range:n,unitId:r,sheetId:i}}_handleRemoveCol(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:6,range:n,unitId:r,sheetId:i}}_handleDeleteRangeMoveUp(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:8,range:n,unitId:r,sheetId:i}}_handleDeleteRangeMoveLeft(t){const{params:e}=t;if(!e)return null;const{range:n}=e,{unitId:r,sheetId:i}=this._getCurrentSheetInfo();return{type:7,range:n,unitId:r,sheetId:i}}_handleSetWorksheetName(t){const{params:e}=t;if(!e)return null;const{unitId:n,subUnitId:r,name:i}=e,{unitId:a,sheetId:o}=this._getCurrentSheetInfo();return{type:11,unitId:n||a,sheetId:r||o,sheetName:i}}_handleRemoveWorksheet(t){const{params:e}=t;if(!e)return null;const{unitId:n,subUnitId:r}=e,{unitId:i,sheetId:a}=this._getCurrentSheetInfo();return{type:12,unitId:n||i,sheetId:r||a}}_getFormulaReferenceMoveInfo(t,e,n){if(!Ie.isDefine(t))return{newFormulaData:{},oldFormulaData:{}};const r=Object.keys(t);if(r.length===0)return{newFormulaData:{},oldFormulaData:{}};const i={},a={};for(const o of r){const s=t[o];if(s==null)continue;const l=Object.keys(s);Ie.isDefine(i[o])||(i[o]={}),Ie.isDefine(a[o])||(a[o]={});for(const u of l){const c=new Ct(s[u]||{}),d=new Ct;c.forValue((h,f,m)=>{var g;if(!m)return!0;const{f:p,x:v,y:_,si:C}=m,S=this._lexerTreeBuilder.sequenceNodesBuilder(p);if(S==null)return!0;let b=!1;const y=[];for(let w=0,P=S.length;w<P;w++){const M=S[w];if(typeof M=="string"||M.nodeType!==ya.REFERENCE)continue;const{token:L}=M,k=Uo(L),{range:O,sheetName:$,unitId:B}=k,V=B==null||B.length===0?o:B,X=(g=e==null?void 0:e[V])==null?void 0:g[$];if(!this._checkIsSameUnitAndSheet(n.unitId,n.sheetId,o,u,B,X||""))continue;const z={range:O,sheetId:X,unitId:B,sheetName:$,refOffsetX:v||0,refOffsetY:_||0};let F=null;if(n.type===11){const{unitId:H,sheetId:W,sheetName:K}=n;if(K==null||X==null||X.length===0||W!==X)continue;F=tc({range:O,sheetName:K,unitId:B})}else if(n.type===12){const{unitId:H,sheetId:W,sheetName:K}=n;if(X==null||X.length===0||W!==X)continue;F=D.REF}else F=this._getNewRangeByMoveParam(z,n,o,u);F!=null&&(S[w]={...M,token:F},b=!0,y.push(w))}if(!b)return!0;const A=this._updateRefOffset(S,y,v,_);d.setValue(h,f,{f:`=${K4(A)}`})}),a[o]&&(a[o][u]=d.getData())}}return{newFormulaData:a}}_getNewRangeByMoveParam(t,e,n,r){const{type:i,unitId:a,sheetId:o,range:s,from:l,to:u}=e,{range:c,sheetId:d,unitId:h,sheetName:f,refOffsetX:m,refOffsetY:g}=t;if(!this._checkIsSameUnitAndSheet(a,o,n,r,h,d))return;const p=ft.moveOffset(c,m,g);let v=null;if(i===0){if(l==null||u==null)return;const _=this._checkMoveEdge(p,l),C=ft.getIntersects(p,l);if(C==null||_!==4)return;const S=Pne({id:zn.MoveRangeCommandId,params:{toRange:u,fromRange:l}},C),b=xa(S,C);if(b==null)return D.REF;v=this._getMoveNewRange(_,b,l,u,p,C)}else if(i===1){if(l==null||u==null)return;const _=this._checkMoveEdge(p,l);let C=ft.getIntersects(p,l);if(C==null&&(l.endRow<p.startRow&&u.endRow<p.startRow||l.startRow>p.endRow&&u.startRow>p.endRow))return;C==null&&(C={startRow:p.startRow,endRow:p.endRow,startColumn:p.startColumn,endColumn:p.endColumn,rangeType:it.NORMAL});const S=fx({id:zn.MoveRowsCommandId,params:{toRange:u,fromRange:l}},C),b=xa(S,C);if(b==null)return D.REF;v=this._getMoveNewRange(_,b,l,u,p,C)}else if(i===2){if(l==null||u==null)return;const _=this._checkMoveEdge(p,l);let C=ft.getIntersects(p,l);if(C==null&&(l.endColumn<p.startColumn&&u.endColumn<p.startColumn||l.startColumn>p.endColumn&&u.startColumn>p.endColumn))return;C==null&&(C={startRow:p.startRow,endRow:p.endRow,startColumn:p.startColumn,endColumn:p.endColumn,rangeType:it.NORMAL});const S=mx({id:zn.MoveColsCommandId,params:{toRange:u,fromRange:l}},C),b=xa(S,C);if(b==null)return D.REF;v=this._getMoveNewRange(_,b,l,u,p,C)}if(s!=null){if(i===3){const _=px({id:zn.InsertRowCommandId,params:{range:s,unitId:"",subUnitId:"",direction:ut.DOWN}},p),C=xa(_,p);if(C==null)return;v={...p,...C}}else if(i===4){const _=vx({id:zn.InsertColCommandId,params:{range:s,unitId:"",subUnitId:"",direction:ut.RIGHT}},p),C=xa(_,p);if(C==null)return;v={...p,...C}}else if(i===5){const _=Mne({id:zn.RemoveRowCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return D.REF;v={...p,...C}}else if(i===6){const _=gx({id:zn.RemoveColCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return D.REF;v={...p,...C}}else if(i===7){const _=xne({id:zn.DeleteRangeMoveLeftCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return D.REF;v={...p,...C}}else if(i===8){const _=One({id:zn.DeleteRangeMoveUpCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return D.REF;v={...p,...C}}else if(i===9){const _=Tne({id:zn.InsertRangeMoveDownCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return;v={...p,...C}}else if(i===10){const _=Lne({id:zn.InsertRangeMoveRightCommandId,params:{range:s}},p),C=xa(_,p);if(C==null)return;v={...p,...C}}}if(v!=null)return tc({range:v,sheetName:f,unitId:h})}_checkIsSameUnitAndSheet(t,e,n,r,i,a){if((i==null||i.length===0)&&(a==null||a.length===0)){if(t===n&&e===r)return!0}else if((t===i||i==null||i.length===0)&&e===a)return!0;return!1}_updateRefOffset(t,e,n=0,r=0){const i=[];for(let a=0,o=t.length;a<o;a++){const s=t[a];if(typeof s=="string"||s.nodeType!==ya.REFERENCE||e.includes(a)){i.push(s);continue}const{token:l}=s,u=Uo(l),{range:c,sheetName:d,unitId:h}=u,f=ft.moveOffset(c,n,r);i.push({...s,token:tc({range:f,unitId:h,sheetName:d})})}return i}_checkMoveEdge(t,e){const{startRow:n,startColumn:r,endRow:i,endColumn:a}=t,{startRow:o,startColumn:s,endRow:l,endColumn:u}=e;if(n>=o&&i<=l&&r>=s&&a<=u)return 4;if(r>=s&&a<=u&&n>=o&&n<=l&&i>l)return 0;if(r>=s&&a<=u&&i>=o&&i<=l&&n<o)return 1;if(n>=o&&i<=l&&r>=s&&r<=u&&a>u)return 2;if(n>=o&&i<=l&&a>=s&&a<=u&&r<s)return 3}_getMoveNewRange(t,e,n,r,i,a){const{startRow:o,endRow:s,startColumn:l,endColumn:u}=e,{startRow:c,startColumn:d,endRow:h,endColumn:f,rangeType:m=it.NORMAL}=n,{startRow:g,startColumn:p,endRow:v,endColumn:_}=r,{startRow:C,endRow:S,startColumn:b,endColumn:y}=a,{startRow:A,endRow:w,startColumn:P,endColumn:M}=i,L={...i};if(t===0)if(l===P&&u===M)if(o<A)L.startRow=o;else if(o>=w)L.endRow-=h+1-A;else return;else return;else if(t===1)if(l===P&&u===M)if(s>w)L.endRow=s;else if(s<=A)L.startRow+=w-c+1;else return;else return;else if(t===2)if(o===A&&s===w)if(l<P)L.startColumn=l;else if(l>=M)L.endColumn-=f+1-P;else return;else return;else if(t===3)if(o===A&&s===w)if(u>M)L.endColumn=u;else if(u<=P)L.startColumn+=M-d+1;else return;else return;else t===4?(L.startRow=o,L.startColumn=l,L.endRow=s,L.endColumn=u):d<=P&&f>=M?n.endRow<A?(g>=A&&(L.startRow-=h-c+1),g>=w&&(L.endRow-=h-c+1)):n.startRow>w&&(v<=w&&(L.endRow+=h-c+1),v<=A&&(L.startRow+=h-c+1)):c<=A&&h>=w?n.endColumn<P?(p>=P&&(L.startColumn-=f-d+1),p>=M&&(L.endColumn-=f-d+1)):n.startColumn>M&&(_<=M&&(L.endColumn+=f-d+1),_<=P&&(L.startColumn+=f-d+1)):((p<=y+1&&_>=M||p<=P&&_>=b-1)&&g<=A&&v>=w||(g<=S+1&&v>=w||g<=A&&v>=C-1)&&p<=P&&_>=M)&&(L.startRow=o,L.startColumn=l,L.endRow=s,L.endColumn=u);return L}_getCurrentSheetInfo(){var t;const e=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),n=e.getUnitId(),r=((t=e.getActiveSheet())==null?void 0:t.getSheetId())||"";return{unitId:n,sheetId:r}}},Je(jB,"UpdateFormulaController"),jB);cv=Onn([yn(Vt.Ready,cv),Rm(0,Ce),Rm(1,me),Rm(2,se(Kl)),Rm(3,se(_d)),Rm(4,se(Tr)),Rm(5,se(Bt)),Rm(6,Fo),Rm(7,se(Wn))],cv);var Nnn=Object.defineProperty,knn=Object.getOwnPropertyDescriptor,Fnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?knn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Nnn(e,n,i),i},"__decorateClass$9"),Vnn=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9");const zre="sheets-formula.remote-register-function.service",IYe=er(zre);var $B;let IP=($B=class{constructor(t){this._functionService=t}async registerFunctions(t){const e=t.map(([n,r])=>PYe(n,r));this._functionService.registerExecutors(...e)}async unregisterFunctions(t){this._functionService.unregisterDescriptions(...t)}},Je($B,"RemoteRegisterFunctionService"),$B);IP=Fnn([Vnn(0,Vu)],IP);function PYe(t,e){const n=new JRe(e),r=new Function(`return ${t}`)();return n.calculateCustom=r,n}Je(PYe,"createFunction");var Bnn=Object.defineProperty,Unn=Object.getOwnPropertyDescriptor,Hnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Unn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Bnn(e,n,i),i},"__decorateClass$8"),eE=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8");const MYe=er("sheets-formula.register-function-service");var WB;let PP=(WB=class extends et{constructor(t,e,n,r){super(),this._localeService=t,this._descriptionService=e,this._functionService=n,this._remoteRegisterFunctionService=r}registerFunctions(t){const{locales:e,description:n,calculate:r}=t;e&&this._localeService.load(e);const i=new Gi;if(n)i.add(this._descriptionService.registerDescriptions(n));else{const a=r.map(([o,s,l])=>({functionName:s,functionType:Z.User,description:"",abstract:l||"",functionParameter:[]}));i.add(this._functionService.registerDescriptions(...a))}return i.add(this._registerLocalExecutors(r)),this._remoteRegisterFunctionService&&i.add(this._registerRemoteExecutors(r)),i}_registerLocalExecutors(t){const e=t.map(([r,i])=>i),n=t.map(([r,i])=>{const a=new JRe(i);return a.calculateCustom=r,a});return this._functionService.registerExecutors(...n),$t(()=>this._functionService.unregisterExecutors(...e))}_registerRemoteExecutors(t){const e=[],n=t.map(([r,i])=>(e.push(i),[r.toString(),i]));return this._remoteRegisterFunctionService.registerFunctions(n),$t(()=>this._remoteRegisterFunctionService.unregisterFunctions(e))}},Je(WB,"RegisterFunctionService"),WB);PP=Hnn([eE(0,se(sn)),eE(1,se(E9)),eE(2,Vu),eE(3,_1(IYe))],PP);var jnn=Object.defineProperty,$nn=Object.getOwnPropertyDescriptor,Wnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?$nn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&jnn(e,n,i),i},"__decorateClass$7"),tE=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7");const zB="AllDefaultWorkbook";var qB;let dv=(qB=class extends et{constructor(t,e,n,r){super(),xr(this,"_preUnitId",null),this._descriptionService=t,this._definedNamesService=e,this._univerInstanceService=n,this._commandService=r,this._initialize()}_initialize(){this._descriptionListener(),this._changeUnitListener(),this._changeSheetListener()}_descriptionListener(){$t(this._definedNamesService.update$.subscribe(()=>{this._registerDescriptions()}))}_changeUnitListener(){$t(this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(()=>{this._unRegisterDescriptions(),this._registerDescriptions()}))}_changeSheetListener(){this.disposeWithMe(this._commandService.onCommandExecuted((t,e)=>{if(!(e!=null&&e.fromCollab)){if(t.id===Ha.id)this._unregisterDescriptionsForNotInSheetId(),this._registerDescriptions();else if(t.id===wne.id){const n=t.params;this._registerDescription(n)}else if(t.id===Dne.id){const n=t.params;this._unregisterDescription(n)}else if(t.id===Y_.id){const n=t.params;this._unregisterDescription(n.oldDefinedName),this._registerDescription(n.newDefinedName)}}}))}_registerDescription(t){const{unitId:e,sheetId:n}=this._getUnitIdAndSheetId();if(e==null||n==null)return;const{name:r,comment:i,formulaOrRefString:a,localSheetId:o}=t;!this._descriptionService.hasDescription(r)&&(o==null||o===zB||o===n)&&this._descriptionService.registerDescriptions([{functionName:r,description:a+(i||""),abstract:a,functionType:Z.DefinedName,functionParameter:[]}])}_unregisterDescription(t){const{name:e}=t;this._descriptionService.unregisterDescriptions([e])}_unRegisterDescriptions(){if(this._preUnitId==null)return;const t=this._definedNamesService.getDefinedNameMap(this._preUnitId);if(t==null)return;const e=[];Array.from(Object.values(t)).forEach(n=>{const{name:r}=n;e.push(r)}),this._descriptionService.unregisterDescriptions(e),this._preUnitId=null}_getUnitIdAndSheetId(){const t=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(t==null)return{};const e=t.getActiveSheet();return e==null?{}:{unitId:t.getUnitId(),sheetId:e.getSheetId()}}_registerDescriptions(){const{unitId:t,sheetId:e}=this._getUnitIdAndSheetId();if(t==null||e==null)return;const n=this._definedNamesService.getDefinedNameMap(t);if(!n)return;const r=[];this._preUnitId=t,Array.from(Object.values(n)).forEach(i=>{const{name:a,comment:o,formulaOrRefString:s,localSheetId:l}=i;!this._descriptionService.hasDescription(a)&&(l==null||l===zB||l===e)&&r.push({functionName:a,description:s+(o||""),abstract:s,functionType:Z.DefinedName,functionParameter:[]})}),this._descriptionService.registerDescriptions(r)}_unregisterDescriptionsForNotInSheetId(){const{unitId:t,sheetId:e}=this._getUnitIdAndSheetId();if(t==null||e==null)return;const n=this._definedNamesService.getDefinedNameMap(t);if(!n)return;const r=[];Array.from(Object.values(n)).forEach(i=>{const{name:a,localSheetId:o}=i;o!==zB&&o!==e&&r.push(a)}),this._descriptionService.unregisterDescriptions(r)}},Je(qB,"DefinedNameController"),qB);dv=Wnn([yn(Vt.Rendered,dv),tE(0,E9),tE(1,Dc),tE(2,Ce),tE(3,me)],dv);var znn=Object.defineProperty,qnn=Object.getOwnPropertyDescriptor,Ynn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?qnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&znn(e,n,i),i},"__decorateClass$6"),YB=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),XB;let uC=(XB=class extends et{constructor(t,e,n){super(),this._refRangeService=t,this._lexerTreeBuilder=e,this._univerInstanceService=n}registerFormula(t,e){const n=new Map,r=this._lexerTreeBuilder.sequenceNodesBuilder(t),i=new Gi,a=Je(o=>{const s=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),l=s.getActiveSheet(),u=s.getUnitId(),c=l==null?void 0:l.getSheetId(),d=r==null?void 0:r.map(f=>{if(typeof f=="object"&&f.nodeType===ya.REFERENCE){const m=n.get(f.token);if(m.unitId&&m.unitId!==u&&m.subUnitId&&m.subUnitId!==c)return f;const g=GWt(m.range,o);let p="";return m.unitId&&m.sheetName?p=XT(m.unitId,m.sheetName,m.range):m.sheetName?p=Q7(m.sheetName,m.range):p=g?Jo(g):D.ERROR,{...f,token:p}}else return f}),h=d&&K4(d);return e(`=${h}`)},"handleChange");return r==null||r.forEach(o=>{if(typeof o=="object"&&o.nodeType===ya.REFERENCE){const s=Uo(o.token),{range:l,unitId:u,sheetName:c}=s,d=u?this._univerInstanceService.getUniverSheetInstance(u):this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),h=c?d==null?void 0:d.getSheetBySheetName(c):d==null?void 0:d.getActiveSheet();if(!h)return;const f=h.getSheetId(),m={unitId:u,subUnitId:f,range:l,sheetName:c};n.set(o.token,m),i.add(this._refRangeService.registerRefRange(l,a,u,f))}}),i}},Je(XB,"FormulaRefRangeService"),XB);uC=Ynn([YB(0,se(ff)),YB(1,se(Kl)),YB(2,Ce)],uC);var i8=(t=>(t[t.NOT_REGISTER=1]="NOT_REGISTER",t[t.SUCCESS=2]="SUCCESS",t[t.WAIT=3]="WAIT",t[t.ERROR=4]="ERROR",t))(i8||{}),Xnn=Object.defineProperty,Gnn=Object.getOwnPropertyDescriptor,Qnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Gnn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Xnn(e,n,i),i},"__decorateClass$5"),Mue=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),GB;let C7=(GB=class extends et{constructor(t,e){super(),xr(this,"_formulaCacheMap",new Map),xr(this,"_formulaChange$",new Zt),xr(this,"formulaChange$",this._formulaChange$.asObservable()),xr(this,"_formulaResult$",new Zt),xr(this,"formulaResult$",this._formulaResult$.asObservable()),this._commandService=t,this._activeDirtyManagerService=e,this._initFormulaRegister(),this._initFormulaCalculationResultChange()}dispose(){super.dispose(),this._formulaChange$.complete(),this._formulaResult$.complete()}_ensureCacheMap(t,e){let n=this._formulaCacheMap.get(t);n||(n=new Map,this._formulaCacheMap.set(t,n));let r=n.get(e);return r||(r=new Map,n.set(e,r)),r}_createFormulaId(t,e){return`formula.${t}_${e}_${Ie.generateRandomId(8)}`}_initFormulaRegister(){this._activeDirtyManagerService.register(PA.id,{commandId:PA.id,getDirtyData(t){return{dirtyUnitOtherFormulaMap:t.params}}}),this.formulaChange$.pipe(FP(16),mo(t=>!!t.length),pr(t=>t.reduce((e,n)=>{const{unitId:r,subUnitId:i,formulaId:a,formulaText:o}=n;return e[r]||(e[r]={}),e[r][i]||(e[r][i]={}),e[r][i][a]={f:o},e},{}))).subscribe(t=>{for(const e in t)for(const n in t[e]){const r=t[e][n],i={unitId:e,subUnitId:n,formulaMap:r};this._commandService.executeCommand(sL.id,i).then(()=>{this._commandService.executeCommand(PA.id,{[e]:{[n]:r}})})}})}_initFormulaCalculationResultChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===FS.id){const e=t.params,{unitOtherData:n}=e,r={};for(const i in n){const a=n[i],o={};r[i]=o;for(const s in a){const l=this._ensureCacheMap(i,s),u=a[s],c=[];o[s]=c;for(const d in u){const h=u[d];if(l.has(d)){const f=l.get(d);f.result=h,f.status=i8.SUCCESS,f.callbacks.forEach(m=>{m(h)}),f.callbacks.clear(),c.push(f)}}}}this._formulaResult$.next(r)}}))}registerFormula(t,e,n,r){const i=this._createFormulaId(t,e);return this._ensureCacheMap(t,e).set(i,{result:void 0,status:i8.WAIT,formulaId:i,callbacks:new Set,extra:r}),this._formulaChange$.next({unitId:t,subUnitId:e,formulaText:n,formulaId:i}),i}deleteFormula(t,e,n){const r={unitId:t,subUnitId:e,formulaIdList:n};this._commandService.executeCommand(lL.id,r);const i=this._ensureCacheMap(t,e);n.forEach(a=>i.delete(a))}getFormulaValue(t,e,n){const r=this._ensureCacheMap(t,e),i=r.get(n);return i?i.status===i8.SUCCESS||i.status===i8.ERROR?Promise.resolve(i):new Promise(a=>{i.callbacks.add(()=>{a(r.get(n))})}):Promise.resolve(null)}getFormulaValueSync(t,e,n){return this._ensureCacheMap(t,e).get(n)}},Je(GB,"RegisterOtherFormulaService"),GB);C7=Qnn([Mue(0,me),Mue(1,uL)],C7);var Knn=Object.defineProperty,Znn=Object.getOwnPropertyDescriptor,Jnn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?Znn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Knn(e,n,i),i},"__decorateClass$4"),nE=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4");const rE="SHEET_FORMULA_ALERT",ern={[D.DIV_BY_ZERO]:"divByZero",[D.NAME]:"name",[D.VALUE]:"value",[D.NUM]:"num",[D.NA]:"na",[D.CYCLE]:"cycle",[D.REF]:"ref",[D.SPILL]:"spill",[D.CALC]:"calc",[D.ERROR]:"error",[D.CONNECT]:"connect",[D.NULL]:"null"};var QB;let nX=(QB=class extends et{constructor(t,e,n,r,i){super(),this._context=t,this._hoverManagerService=e,this._cellAlertManagerService=n,this._localeService=r,this._zenZoneService=i,this._init()}_init(){this._initCellAlertPopup(),this._initZenService()}_initCellAlertPopup(){this.disposeWithMe(this._hoverManagerService.currentCell$.subscribe(t=>{var e;if(t){const n=this._context.unit.getActiveSheet();if(!n)return;const r=n.getCell(t.location.row,t.location.col);if(YP(r)){const i=Wre(r);if(!i)return;const a=this._cellAlertManagerService.currentAlert.get(rE),o=(e=a==null?void 0:a.alert)==null?void 0:e.location;if(o&&o.row===t.location.row&&o.col===t.location.col&&o.subUnitId===t.location.subUnitId&&o.unitId===t.location.unitId)return;this._cellAlertManagerService.showAlert({type:jg.ERROR,title:this._localeService.t("formula.error.title"),message:this._localeService.t(`formula.error.${ern[i]}`),location:t.location,width:200,height:74,key:rE});return}}this._cellAlertManagerService.removeAlert(rE)}))}_initZenService(){this.disposeWithMe(this._zenZoneService.visible$.subscribe(t=>{t&&this._cellAlertManagerService.removeAlert(rE)}))}},Je(QB,"FormulaAlertRenderController"),QB);nX=Jnn([nE(1,se(q0)),nE(2,se(Ap)),nE(3,se(sn)),nE(4,n9)],nX);var trn=Object.defineProperty,nrn=Object.getOwnPropertyDescriptor,rrn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?nrn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&trn(e,n,i),i},"__decorateClass$3"),irn=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3");const arn={tl:{size:6,color:"#409f11"}};var KB;let hv=(KB=class extends Da{constructor(t){super(),this._sheetInterceptorService=t,this._init()}_init(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{handler:Je((t,e,n)=>Wre(t)?n({...t,markers:{...t==null?void 0:t.markers,...arn}}):n(t),"handler"),priority:10}))}},Je(KB,"FormulaRenderManagerController"),KB);hv=rrn([yn(Vt.Rendered,hv),irn(0,se(Tr))],hv);var orn=Object.defineProperty,srn=Object.getOwnPropertyDescriptor,lrn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?srn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&orn(e,n,i),i},"__decorateClass$2"),f5=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),ZB;let cC=(ZB=class extends qne{constructor(t,e,n,r,i,a){super(e,n,r,i),xr(this,"_workbookSelections"),xr(this,"_eventDisposables"),this._context=t,this._refSelectionsService=a,this._workbookSelections=this._refSelectionsService.getWorkbookSelections(this._context.unitId),this._initSelectionChangeListener(),this._initSkeletonChangeListener(),this._initUserActionSyncListener(),this._setSelectionStyle(TYe(this._themeService)),this._remainLastEnabled=!0}getLocation(){return this._skeleton.getLocation()}setRemainLastEnabled(t){this._remainLastEnabled=t}setSkipLastEnabled(t){this._skipLastEnabled=t}clearLastSelection(){const t=this._selectionControls[this._selectionControls.length-1];t&&(t.dispose(),this._selectionControls.pop())}enableSelectionChanging(){return this._disableSelectionChanging(),this._eventDisposables=this._initCanvasEventListeners(),$t(()=>this._disableSelectionChanging())}_disableSelectionChanging(){var t;(t=this._eventDisposables)==null||t.dispose(),this._eventDisposables=null}_initCanvasEventListeners(){const t=this._getSheetObject(),{spreadsheetRowHeader:e,spreadsheetColumnHeader:n,spreadsheet:r,spreadsheetLeftTopPlaceholder:i}=t,{scene:a}=this._context,o=new Gi;return o.add(r==null?void 0:r.onPointerDown$.subscribeEvent((s,l)=>{this._onPointerDown(s,r.zIndex+1,it.NORMAL,this._getActiveViewport(s)),s.button!==2&&l.stopPropagation()})),o.add(e==null?void 0:e.onPointerDown$.subscribeEvent((s,l)=>{const u=this._sheetSkeletonManagerService.getCurrent().skeleton,{row:c}=p1(s.offsetX,s.offsetY,a,u);Rp(this._workbookSelections.getCurrentSelections(),c,it.ROW)||(this._onPointerDown(s,(r.zIndex||1)+1,it.ROW,this._getActiveViewport(s),Rs.Y),s.button!==2&&l.stopPropagation())})),o.add(n==null?void 0:n.onPointerDown$.subscribeEvent((s,l)=>{const u=this._sheetSkeletonManagerService.getCurrent().skeleton,{column:c}=p1(s.offsetX,s.offsetY,a,u);Rp(this._workbookSelections.getCurrentSelections(),c,it.COLUMN)||(this._onPointerDown(s,(r.zIndex||1)+1,it.COLUMN,this._getActiveViewport(s),Rs.X),s.button!==2&&l.stopPropagation())})),o.add(i==null?void 0:i.onPointerDown$.subscribeEvent((s,l)=>{this._reset();const u=this._sheetSkeletonManagerService.getCurrent().skeleton,c=Rx(u),d=this.attachSelectionWithCoord(c);this._addSelectionControlBySelectionData(d),this._selectionMoveStart$.next(this.getSelectionDataWithStyle()),s.button!==2&&l.stopPropagation()})),o}_initUserActionSyncListener(){this.disposeWithMe(this.selectionMoveStart$.subscribe(t=>{this._updateSelections(t,eh.MOVE_START)})),this.disposeWithMe(this.selectionMoving$.subscribe(t=>{this._updateSelections(t,eh.MOVING)})),this.disposeWithMe(this.selectionMoveEnd$.subscribe(t=>{this._updateSelections(t,eh.MOVE_END)}))}_updateSelections(t,e){const n=this._context.unit.getActiveSheet().getSheetId();t.length!==0&&this._workbookSelections.setSelections(n,t.map(r=>kg(r)),e)}_initSelectionChangeListener(){this.disposeWithMe(this._workbookSelections.selectionMoveEnd$.subscribe(t=>{this._reset();for(const e of t){const n=this.attachSelectionWithCoord(e);this._addSelectionControlBySelectionData(n)}}))}_initSkeletonChangeListener(){this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(!t)return;const{skeleton:e}=t,{scene:n}=this._context,r=n.getViewport(an.VIEW_MAIN);this._skeleton&&this._skeleton.worksheet.getSheetId()!==e.worksheet.getSheetId()&&this._reset(),this._changeRuntime(e,n,r);const i=this._workbookSelections.getCurrentSelections();this._refreshSelectionControl(i||[])}))}_refreshSelectionControl(t){const e=t.map(n=>Vf(n,this._skeleton));this.updateControlForCurrentByRangeData(e)}_getActiveViewport(t){const e=this._getSheetObject();return e==null?void 0:e.scene.getActiveViewportByCoord(cn.FromArray([t.offsetX,t.offsetY]))}_getSheetObject(){return Ad(this._context.unit,this._context)}},Je(ZB,"RefSelectionsRenderService"),ZB);cC=lrn([f5(1,se(Wn)),f5(2,se(Ja)),f5(3,Bu),f5(4,se(Gr)),f5(5,tb)],cC);function TYe(t){const e=mf(t);return e.hasAutoFill=!1,e.hasRowHeader=!1,e.hasColumnHeader=!1,e.widgets={tl:!0,tc:!0,tr:!0,ml:!0,mr:!0,bl:!0,bc:!0,br:!0},e}Je(TYe,"getDefaultRefSelectionStyle");function LA(t,e,n){const r=t.getCurrentTheme(),i=new Zs(e).setAlpha(.05).toRgbString();return{id:n,strokeWidth:1,stroke:e,fill:i,widgets:{tl:!0,tc:!0,tr:!0,ml:!0,mr:!0,bl:!0,bc:!0,br:!0},widgetSize:6,widgetStrokeWidth:1,widgetStroke:r.colorWhite,hasAutoFill:!1,hasRowHeader:!1,hasColumnHeader:!1}}Je(LA,"getFormulaRefSelectionStyle");var urn=Object.defineProperty,crn=Object.getOwnPropertyDescriptor,drn=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?crn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&urn(e,n,i),i},"__decorateClass$1"),Tl=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const hrn=[Ki,Yo];var JB;let xA=(JB=class extends et{constructor(t,e,n,r,i,a,o,s,l,u,c,d,h,f,m){super(),xr(this,"_listenInputCache",new Set),xr(this,"_formulaRefColors",[]),xr(this,"_previousSequenceNodes"),xr(this,"_previousRangesCount",0),xr(this,"_previousInsertRefStringIndex"),xr(this,"_currentInsertRefStringIndex",-1),xr(this,"_arrowMoveActionState",0),xr(this,"_isSelectionMovingRefSelections",[]),xr(this,"_stringColor",""),xr(this,"_numberColor",""),xr(this,"_insertSelections",[]),xr(this,"_inputPanelState",0),xr(this,"_userCursorMove",!1),xr(this,"_previousEditorUnitId"),xr(this,"_existsSequenceNode",!1),xr(this,"_currentlyWorkingRefRenderer",null),xr(this,"_selectionsChangeDisposables"),xr(this,"_isSelectingMode",!1),this._commandService=t,this._contextService=e,this._editorBridgeService=n,this._formulaPromptService=r,this._lexerTreeBuilder=i,this._renderManagerService=a,this._themeService=o,this._sheetsSelectionsService=s,this._refSelectionsService=l,this._univerInstanceService=u,this._descriptionService=c,this._docSelectionManagerService=d,this._contextMenuService=h,this._editorService=f,this._layoutService=m,this._initialize()}get _selectionRenderService(){return this._renderManagerService.getRenderById(this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId()).with(cC)}get _allSelectionRenderServices(){return this._renderManagerService.getAllRenderersOfType(le.UNIVER_SHEET).map(t=>t.with(cC))}dispose(){this._formulaRefColors=[],this._resetTemp()}_resetTemp(){this._previousSequenceNodes=null,this._previousInsertRefStringIndex=null,this._isSelectionMovingRefSelections=[],this._previousRangesCount=0,this._currentInsertRefStringIndex=-1}_initialize(){this._initialCursorSync(),this._initAcceptFormula(),this._initialFormulaTheme(),this._initSelectionsEndListener(),this._closeRangePromptWhenEditorInvisible(),this._initialEditorInputChange(),this._commandExecutedListener(),this._cursorStateListener(),this._inputFormulaListener(),this._userMouseListener(),this._initialChangeEditor()}_initialFormulaTheme(){const t=this._themeService.getCurrentTheme();this._formulaRefColors=[t.loopColor1,t.loopColor2,t.loopColor3,t.loopColor4,t.loopColor5,t.loopColor6,t.loopColor7,t.loopColor8,t.loopColor9,t.loopColor10,t.loopColor11,t.loopColor12],this._numberColor=t.hyacinth700,this._stringColor=t.verdancy800}_initialCursorSync(){this.disposeWithMe(this._docSelectionManagerService.textSelection$.subscribe(t=>{var e;if((t==null?void 0:t.unitId)==null)return;const n=this._editorService.getEditor(t.unitId);if(!n||n.onlyInputContent()||n.isSheetEditor()&&!this._isFormulaEditorActivated())return;const r=n.onlyInputRange();(e=t==null?void 0:t.options)!=null&&e.fromSelection||(this._quitSelectingMode(),this._contextSwitch(),this._checkShouldEnterSelectingMode(r),!this._formulaPromptService.isLockedSelectionChange()&&(this._highlightFormula(),!r&&this._changeFunctionPanelState()))}))}_initialEditorInputChange(){const t=[Et.ARROW_DOWN,Et.ARROW_UP,Et.ARROW_LEFT,Et.ARROW_RIGHT,Et.CTRL,Et.SHIFT];this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_DOC).subscribe(e=>{var n;const r=e==null?void 0:e.getUnitId();if(r==null||this._listenInputCache.has(r)||this._editorService.getEditor(r)==null)return;const i=(n=this._renderManagerService.getRenderById(r))==null?void 0:n.with(Ms);i&&this.disposeWithMe(i.onInputBefore$.subscribe(a=>{this._previousSequenceNodes=null,this._previousInsertRefStringIndex=null,this._selectionRenderService.setSkipLastEnabled(!0);const o=a==null?void 0:a.event;o&&(t.includes(o.which)?this._inputPanelState=2:(this._arrowMoveActionState!==1&&(this._arrowMoveActionState=2),this._inputPanelState=1),o.which!==Et.F4&&(this._userCursorMove=!1))})),this._listenInputCache.add(r)})}_closeRangePromptWhenEditorInvisible(){this.disposeWithMe(this._editorBridgeService.afterVisible$.pipe(jQe("visible")).subscribe(t=>{t.visible||this._closeRangePrompt()})),this.disposeWithMe(this._contextService.subscribeContextValue$(Yie).pipe(Hl()).subscribe(t=>{t||this._closeRangePrompt()}))}_initialChangeEditor(){this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_DOC).subscribe(t=>{if(t==null)return;const e=t.getUnitId();!this._editorService.isEditor(e)||this._previousEditorUnitId===e||this._editorService.isSheetEditor(e)||(this._closeRangePrompt(e),this._previousEditorUnitId=e)})),this.disposeWithMe(this._editorService.closeRangePrompt$.subscribe(()=>{(!this._editorService.getSpreadsheetFocusState()||!this._formulaPromptService.isLockedSelectionInsert())&&this._closeRangePrompt()}))}_closeRangePrompt(t){this._insertSelections=[],this._refSelectionsService.clear(),t&&this._editorService.isSheetEditor(t)&&this._updateEditorModel(`\r |
|
|
`,[]),this._contextService.setContextValue(Um,!1),this._contextService.setContextValue(g0,!1),this._contextService.setContextValue(Mk,!1),this._quitSelectingMode(),this._resetTemp(),this._hideFunctionPanel()}_initSelectionsEndListener(){const t=new Gi;this.disposeWithMe(this._refSelectionsService.selectionMoveEnd$.subscribe(e=>{t.dispose(),e.length!==0&&this._allSelectionRenderServices.map(n=>n.getSelectionControls()).flat().forEach(n=>{n.disableHelperSelection(),t.add(n.selectionMoving$.subscribe(r=>this._onSelectionControlChange(r,n))),t.add(n.selectionScaling$.subscribe(r=>this._onSelectionControlChange(r,n))),t.add(n.selectionMoved$.subscribe(()=>this._formulaPromptService.disableLockedSelectionChange())),t.add(n.selectionScaled$.subscribe(()=>this._formulaPromptService.disableLockedSelectionChange()))})}))}_updateSelecting(t,e=!1){if(t.length!==0&&!(this._editorService.selectionChangingState()&&!this._formulaPromptService.isLockedSelectionInsert())&&(this._insertControlSelections(t),e)){const n=t[t.length-1];this._insertControlSelectionReplace(n)}}_enableRefSelectionsRenderService(){const t=this._selectionsChangeDisposables=new Gi;this._allSelectionRenderServices.forEach(e=>{t.add(e.enableSelectionChanging()),t.add(e.selectionMoving$.subscribe(n=>{this._updateSelecting(n.map(r=>kg(r)))})),t.add(e.selectionMoveStart$.subscribe(n=>{const r=this._checkClearingLastSelection(e);this._currentlyWorkingRefRenderer=e,this._updateSelecting(n.map(i=>kg(i)),r)}))})}_checkClearingLastSelection(t){return this._currentlyWorkingRefRenderer&&this._currentlyWorkingRefRenderer!==t?(this._currentlyWorkingRefRenderer.clearLastSelection(),!1):!0}_disposeSelectionsChangeListeners(){var t;(t=this._selectionsChangeDisposables)==null||t.dispose(),this._selectionsChangeDisposables=null}_insertControlSelections(t){const e=t[t.length-1];if(this._resetSequenceNodes(t.length),(t.length===this._previousRangesCount||this._previousRangesCount===0)&&this._previousSequenceNodes!=null)this._insertControlSelectionReplace(e);else{let n=this._formulaPromptService.getSequenceNodes();const r=this._getCurrentChar();n.length===0&&this._currentInsertRefStringIndex>0&&(this._currentInsertRefStringIndex=-1),this._previousInsertRefStringIndex=this._currentInsertRefStringIndex,!bz(r)&&this._focusIsOnlyRange(t.length)&&(this._formulaPromptService.insertSequenceString(this._currentInsertRefStringIndex,mr.COMMA),n=this._formulaPromptService.getSequenceNodes(),this._previousInsertRefStringIndex+=1),this._previousSequenceNodes=Ie.deepClone(n),this._formulaPromptService.setSequenceNodes(n);const i=this._generateRefString(e);this._formulaPromptService.insertSequenceRef(this._previousInsertRefStringIndex,i),this._selectionRenderService.setSkipLastEnabled(!1)}this._arrowMoveActionState=2,this._previousRangesCount=t.length}_initAcceptFormula(){this.disposeWithMe(this._formulaPromptService.acceptFormulaName$.subscribe(t=>{const e=this._docSelectionManagerService.getActiveTextRange();if(e==null){this._hideFunctionPanel();return}const{startOffset:n}=e,r=this._formulaPromptService.getSequenceNodes(),i=this._formulaPromptService.getCurrentSequenceNodeIndex(n-2),a=r[i];if(a==null||typeof a=="string"){this._hideFunctionPanel();return}const o=t.length-a.token.length,s={...a};s.token=t,s.endIndex+=o,r[i]=s;const l=this._descriptionService.hasDefinedNameDescription(t),u=this._descriptionService.isFormulaDefinedName(t),c=t.length+1,d=!l||u;d&&r.splice(i+1,0,mr.OPEN_BRACKET);for(let f=i+2,m=r.length;f<m;f++){const g=r[f];if(typeof g=="string")continue;const p={...g};p.startIndex+=c,p.endIndex+=c,r[f]=p}let h=s.endIndex+1;d&&(h+=1),this._syncToEditor(r,h,void 0,!0,!1)}))}_changeFunctionPanelState(){const t=this._docSelectionManagerService.getActiveTextRange();if(t==null){this._hideFunctionPanel();return}const{startOffset:e}=t,n=this._formulaPromptService.getCurrentSequenceNode(e-2);if(n==null){this._hideFunctionPanel();return}if(typeof n!="string"&&n.nodeType===ya.FUNCTION&&!this._descriptionService.hasDefinedNameDescription(n.token.trim())){const s=n.token.toUpperCase();if(this._inputPanelState===1){const l=this._descriptionService.getSearchListByNameFirstLetter(s);if(this._hideFunctionPanel(),l==null||l.length===0)return;this._commandService.executeCommand(tX.id,{visible:!0,searchText:s,searchList:l})}else this._changeHelpFunctionPanelState(s,-1);return}const r=this._getCurrentBodyDataStreamAndOffset(),i=this._lexerTreeBuilder.getFunctionAndParameter((r==null?void 0:r.dataStream)||"",e-1+((r==null?void 0:r.offset)||0));if(!i){this._hideFunctionPanel();return}const{functionName:a,paramIndex:o}=i;this._changeHelpFunctionPanelState(a.toUpperCase(),o)}_changeHelpFunctionPanelState(t,e){const n=this._descriptionService.getFunctionInfo(t);this._hideFunctionPanel(),n!=null&&this._commandService.executeCommand(JY.id,{visible:!0,paramIndex:e,functionInfo:n})}_hideFunctionPanel(){this._commandService.executeCommand(tX.id,{visible:!1,searchText:""}),this._commandService.executeCommand(JY.id,{visible:!1,paramIndex:-1})}_checkShouldEnterSelectingMode(t=!1){if(t){this._enterSelectingMode();return}const e=this._getCurrentChar(),n=this._getCurrentDataStream();(n==null?void 0:n.substring(0,1))==="="&&e&&bz(e)?this._enterSelectingMode():this._quitSelectingMode()}_getCurrentChar(){const t=this._docSelectionManagerService.getActiveTextRange();if(t==null)return;const{startOffset:e}=t,n=this._getCurrentBodyDataStreamAndOffset();return n==null||e==null?void 0:n.dataStream[e-1+n.offset]}_getCurrentDataStream(){const t=this._getCurrentBodyDataStreamAndOffset();return t==null?void 0:t.dataStream}_enterSelectingMode(){this._isSelectingMode||(this._editorBridgeService.enableForceKeepVisible(),this._contextMenuService.disable(),this._formulaPromptService.enableLockedSelectionInsert(),this._selectionRenderService.setRemainLastEnabled(!0),this._enableRefSelectionsRenderService(),this._currentlyWorkingRefRenderer=null,this._arrowMoveActionState!==1&&(this._arrowMoveActionState=2),this._isSelectingMode=!0)}_quitSelectingMode(){this._isSelectingMode&&(this._editorBridgeService.disableForceKeepVisible(),this._contextMenuService.enable(),this._formulaPromptService.disableLockedSelectionInsert(),this._currentInsertRefStringIndex=-1,this._disposeSelectionsChangeListeners(),this._arrowMoveActionState===2&&(this._arrowMoveActionState=4),this._isSelectingMode=!1)}_getCurrentBodyDataStreamAndOffset(){var t,e;const n=this._univerInstanceService.getCurrentUniverDocInstance();if(!(n!=null&&n.getBody()))return;const r=n.getUnitId(),i=this._editorService.getEditor(r),a=(e=(t=n.getBody())==null?void 0:t.dataStream)!=null?e:"";return!i||!i.onlyInputRange()?{dataStream:a,offset:0}:{dataStream:bn.EQUALS+a,offset:1}}_getFormulaAndCellEditorBody(t){return t.map(e=>{const n=this._univerInstanceService.getUniverDocInstance(e);return n==null?void 0:n.getBody()})}_editorModelUnitIds(){const t=this._univerInstanceService.getCurrentUniverDocInstance().getUnitId();return this._editorService.isEditor(t)&&!this._editorService.isSheetEditor(t)?[t]:hrn}_contextSwitch(){const t=this._getCurrentBodyDataStreamAndOffset();if(t&&Ar(t.dataStream)){this._contextService.setContextValue(Um,!0),this._contextService.setContextValue(g0,!0),this._contextService.setContextValue(Mk,!0);const e=this._lexerTreeBuilder.sequenceNodesBuilder(t.dataStream)||[];this._formulaPromptService.setSequenceNodes(e);const n=this._docSelectionManagerService.getActiveTextRange();if(n==null)return;const{startOffset:r}=n;this._currentInsertRefStringIndex=r-1+t.offset;return}this._contextService.setContextValue(Um,!1),this._contextService.setContextValue(g0,!1),this._contextService.setContextValue(Mk,!1),this._formulaPromptService.disableLockedSelectionChange(),this._formulaPromptService.disableLockedSelectionInsert(),this._formulaPromptService.clearSequenceNodes(),this._hideFunctionPanel()}_getContextState(){return this._contextService.getContextValue(Um)}_highlightFormula(){if(this._getContextState()===!1)return;const t=this._formulaPromptService.getSequenceNodes(),e=this._editorModelUnitIds(),n=this._getFormulaAndCellEditorBody(e).filter(r=>!!r);if(this._refSelectionsService.clear(),t==null||t.length===0)this._existsSequenceNode=!1,n.forEach(r=>r.textRuns=[]);else{this._existsSequenceNode=!0;const{textRuns:r,refSelections:i}=this._buildTextRuns(t);n.forEach(a=>a.textRuns=r),this._allSelectionRenderServices.forEach(a=>this._refreshSelectionForReference(a,i))}this._refreshFormulaAndCellEditor(e)}_buildTextRuns(t){var e;const n=[],r=[],i=new Map;let a=0;const o=((e=this._getCurrentBodyDataStreamAndOffset())==null?void 0:e.offset)||0;for(let s=0,l=t.length;s<l;s++){const u=t[s];if(typeof u=="string"||this._descriptionService.hasDefinedNameDescription(u.token.trim()))continue;const{startIndex:c,endIndex:d,nodeType:h,token:f}=u;let m="";if(h===ya.REFERENCE){if(i.has(f))m=i.get(f);else{const g=a%this._formulaRefColors.length;m=this._formulaRefColors[g],i.set(f,m),a++}r.push({refIndex:s,themeColor:m,token:f})}else h===ya.NUMBER?m=this._numberColor:h===ya.STRING?m=this._stringColor:h===ya.ARRAY&&(m=this._stringColor);m&&m.length>0&&n.push({st:c+1-o,ed:d+2-o,ts:{cl:{rgb:m}}})}return{textRuns:n,refSelections:r}}_exceedCurrentRange(t,e,n){const{endRow:r,endColumn:i}=t;return r>e||i>n}_refreshSelectionForReference(t,e){const{unitId:n,sheetId:r}=this._editorBridgeService.getEditCellState(),{unitId:i,sheetId:a}=this._getCurrentUnitIdAndSheetId(),o=r===a,s=this._univerInstanceService.getUniverSheetInstance(n).getSheetBySheetId(r);let l=null;const u=[];for(let c=0,d=e.length;c<d;c++){const h=e[c],{themeColor:f,token:m,refIndex:g}=h,p=Uo(m),{unitId:v,sheetName:_,range:C}=p,S=rne(C,s.getRowCount(),s.getColumnCount());if(v!=null&&v.length>0&&n!==v)continue;const b=this._getSheetIdByName(n,_.trim());if(!o&&b!==a||o&&_.length!==0&&b!==r||this._exceedCurrentRange(S,s.getRowCount(),s.getColumnCount()))continue;const y=this._getPrimary(S,f,g);if(y){l=y;continue}const A=tl(S,s);!ft.equals(A,S)&&S.startRow===S.endRow&&S.startColumn===S.endColumn&&(S.startRow=A.startRow,S.endRow=A.endRow,S.startColumn=A.startColumn,S.endColumn=A.endColumn),u.push({range:S,primary:A,style:LA(this._themeService,f,g.toString())})}l&&u.push(l),u.length&&this._refSelectionsService.addSelections(n,r,u)}_getPrimary(t,e,n){var r;const i=(r=this._insertSelections.find(d=>{const{startRow:h,startColumn:f,endRow:m,endColumn:g}=d.range;return h===t.startRow&&f===t.startColumn&&m===t.endRow&&g===t.endColumn||h===t.startRow&&f===t.startColumn&&t.startRow===t.endRow&&t.startColumn===t.endColumn}))==null?void 0:r.primary;if(i==null)return;const{isMerged:a,isMergedMainCell:o,startRow:s,endRow:l,startColumn:u,endColumn:c}=i;return(a||o)&&s===t.startRow&&u===t.startColumn&&t.startRow===t.endRow&&t.startColumn===t.endColumn&&(t.endRow=l,t.endColumn=c),{range:t,primary:i,style:LA(this._themeService,e,n.toString())}}_getSheetIdByName(t,e){var n;const r=this._univerInstanceService.getUniverSheetInstance(t);return(n=r==null?void 0:r.getSheetBySheetName(Zye(e)))==null?void 0:n.getSheetId()}_getSheetNameById(t,e){var n;const r=this._univerInstanceService.getUniverSheetInstance(t);return((n=r==null?void 0:r.getSheetBySheetId(e))==null?void 0:n.getName())||""}_getCurrentUnitIdAndSheetId(){var t,e;const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),r=n.getActiveSheet(),i=(e=(t=this._renderManagerService.getRenderById(n.getUnitId()))==null?void 0:t.with(Gr))==null?void 0:e.getCurrentSkeleton();return{unitId:n.getUnitId(),sheetId:(r==null?void 0:r.getSheetId())||"",skeleton:i}}_getEditorOpenedForSheet(){const t=this._univerInstanceService.getCurrentUniverDocInstance().getUnitId(),e=this._editorService.getEditor(t);return e?{openUnitId:e.getOpenForSheetUnitId(),openSheetId:e.getOpenForSheetSubUnitId()}:{openUnitId:null,openSheetId:null}}_generateRefString(t){let e="",n="";const{unitId:r,sheetId:i}=t.range,{openUnitId:a,openSheetId:o}=this._getEditorOpenedForSheet();r!==a&&r&&(e=r),i!==o&&r&&i&&(n=this._getSheetNameById(r,i));const{range:s,primary:l}=t;let{startRow:u,endRow:c,startColumn:d,endColumn:h}=s;const{startAbsoluteRefType:f,endAbsoluteRefType:m,rangeType:g}=s;if(l){const{isMerged:p,isMergedMainCell:v,startRow:_,endRow:C,startColumn:S,endColumn:b}=l;(p||v)&&_===u&&S===d&&C===c&&b===h&&(u=_,d=S,c=_,h=S)}return tc({sheetName:n,unitId:e,range:{startRow:u,endRow:c,startColumn:d,endColumn:h,rangeType:g,startAbsoluteRefType:f,endAbsoluteRefType:m}})}_syncToEditor(t,e,n,r=!0,i=!0){let a=K4(t);const{textRuns:o,refSelections:s}=this._buildTextRuns(t);this._isSelectionMovingRefSelections=s,this._allSelectionRenderServices.forEach(m=>this._updateRefSelectionStyle(m,this._isSelectionMovingRefSelections));const l=this._docSelectionManagerService.getActiveTextRange();if(l==null)return;this._currentInsertRefStringIndex=e,n==null&&(n=this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()),this._fitEditorSize();const u=this._editorService.getEditor(n);u!=null&&u.isSingleChoice()?(a=a.split(",")[0],this._selectionRenderService.setSingleSelectionEnabled(!0)):this._selectionRenderService.setSingleSelectionEnabled(!1);let c=a,d=1;(!u||!u.onlyInputRange())&&(c=`${bn.EQUALS}${a}`,d=0);const{collapsed:h,style:f}=l;r?(this._commandService.executeCommand(LFe.id,{unitId:n,body:{dataStream:c,textRuns:o},textRanges:[{startOffset:e+1-d,endOffset:e+1-d,collapsed:h,style:f}],segmentId:null,options:{fromSelection:i}}),this._docSelectionManagerService.replaceTextRanges([{startOffset:e+1-d,endOffset:e+1-d,style:f}],!0,{fromSelection:i})):(this._updateEditorModel(`${c}\r |
|
|
`,o),this._docSelectionManagerService.replaceTextRanges([{startOffset:e+1-d,endOffset:e+1-d,style:f}],!0,{fromSelection:i})),this._layoutService.focus()}_fitEditorSize(){const t=this._univerInstanceService.getCurrentUniverDocInstance().getUnitId();this._editorService.isEditor(t)&&!this._editorService.isSheetEditor(t)||this._commandService.executeCommand(VS.id,{unitId:t})}_updateEditorModel(t,e){var n;const r=this._univerInstanceService.getCurrentUniverDocInstance(),i=r.getUnitId();if(!this._editorService.isEditor(i))return;const a=(n=this._renderManagerService.getRenderById(i))==null?void 0:n.with(zi).getViewModel();if(a==null||r==null)return;const o=r==null?void 0:r.getSnapshot();if(o==null)return;const s={dataStream:t,textRuns:e};o.body=s,a.reset(r)}_insertControlSelectionReplace(t){this._previousSequenceNodes==null&&(this._previousSequenceNodes=this._formulaPromptService.getSequenceNodes()),this._previousInsertRefStringIndex==null&&(this._previousInsertRefStringIndex=this._currentInsertRefStringIndex);const e=Ie.deepClone(this._previousSequenceNodes);if(e==null)return;const n=this._generateRefString(t);this._formulaPromptService.setSequenceNodes(e),this._formulaPromptService.insertSequenceRef(this._previousInsertRefStringIndex,n),this._syncToEditor(e,this._previousInsertRefStringIndex+n.length);const r=this._selectionRenderService.getSelectionDataWithStyle();this._insertSelections=[],r.forEach(i=>{const a=kg(i);this._insertSelections.push(a)})}_focusIsOnlyRange(t){const e=this._editorService.getFocusEditor();return!e||!e.onlyInputRange()||this._existsSequenceNode||t>1||this._previousSequenceNodes!=null&&this._previousSequenceNodes.length>0?!0:(this._previousInsertRefStringIndex!=null&&(this._previousInsertRefStringIndex+=1),!1)}_resetSequenceNodes(t){const e=this._editorService.getFocusEditor();e&&e.onlyInputRange()&&(t>1||this._existsSequenceNode&&(this._formulaPromptService.clearSequenceNodes(),this._previousRangesCount=0,this._existsSequenceNode=!1))}_updateRefSelectionStyle(t,e){const n=t.getSelectionControls(),[r,i]=t.getLocation(),a=new Set;for(let o=0,s=e.length;o<s;o++){const l=e[o],{refIndex:u,themeColor:c,token:d}=l,h=Uo(d),{unitId:f,sheetName:m,range:g}=h;if(!f&&f.length>0&&r!==f)continue;const p=this._getSheetIdByName(r,m.trim());if(p&&p!==i)continue;const v=n.find(_=>{const{startRow:C,startColumn:S,endRow:b,endColumn:y,rangeType:A}=_.getRange();return A===it.COLUMN&&S===g.startColumn&&y===g.endColumn||A===it.ROW&&C===g.startRow&&b===g.endRow||C===g.startRow&&S===g.startColumn&&b===g.endRow&&y===g.endColumn||C===g.startRow&&S===g.startColumn&&g.startRow===g.endRow&&g.startColumn===g.endColumn});if(v){const _=LA(this._themeService,c,u.toString());v.updateStyle(_),a.add(v)}}}_onSelectionControlChange(t,e){var n;const{skeleton:r}=this._getCurrentUnitIdAndSheetId();this._formulaPromptService.enableLockedSelectionChange();const i=(n=e.currentStyle)==null?void 0:n.id;if(!i||!Ie.isStringNumber(i))return;let{startRow:a,endRow:o,startColumn:s,endColumn:l}=t;const u=r?r.worksheet.getCellInfoInMergeData(a,s):{actualRow:a,actualColumn:s,isMergedMainCell:!1,isMerged:!1,endRow:a,endColumn:s,startRow:a,startColumn:s};if(u){const{isMerged:_,isMergedMainCell:C,startRow:S,endRow:b,startColumn:y,endColumn:A}=u;(_||C)&&S===a&&y===s&&b===o&&A===l&&(a=S,s=y,o=S,l=y)}const c=Number(i),d=this._formulaPromptService.getCurrentSequenceNodeByIndex(c);let h={startAbsoluteRefType:yr.NONE};if(typeof d!="string"){const _=d.token;h=uEe(_),h.endAbsoluteRefType==null&&(h.endAbsoluteRefType=h.startAbsoluteRefType)}const f=r==null?void 0:r.worksheet.getUnitId(),m=r==null?void 0:r.worksheet.getSheetId(),g=this._generateRefString({range:{startRow:Math.min(a,o),endRow:Math.max(a,o),startColumn:Math.min(s,l),endColumn:Math.max(s,l),...h,sheetId:m,unitId:f},primary:u,style:null});this._formulaPromptService.updateSequenceRef(c,g);const p=this._formulaPromptService.getSequenceNodes(),v=p[c];typeof v!="string"&&(this._syncToEditor(p,v.endIndex+1),e.update(t,void 0,void 0,void 0,this._selectionRenderService.attachPrimaryWithCoord(u)))}_refreshFormulaAndCellEditor(t){var e;for(const n of t){const r=_x(n,this._renderManagerService),i=r==null?void 0:r.document;i!=null&&((e=i.getSkeleton())==null||e.calculate(),i.makeDirty())}}_cursorStateListener(){const t=this._getEditorObject();if(t==null)return;const{mainComponent:e}=t;e&&this.disposeWithMe(e.onPointerDown$.subscribeEvent(()=>{this._arrowMoveActionState=1,this._inputPanelState=3}))}_pressEnter(t){const{keycode:e,isSingleEditor:n=!1}=t;if(this._formulaPromptService.isSearching()){this._formulaPromptService.accept(!0);return}n!==!0&&this._editorBridgeService.changeVisible({visible:!1,eventType:$i.Keyboard,keycode:e,unitId:""})}_pressTab(t){const{keycode:e,isSingleEditor:n=!1}=t;if(this._formulaPromptService.isSearching()){this._formulaPromptService.accept(!0);return}n!==!0&&this._editorBridgeService.changeVisible({visible:!1,eventType:$i.Keyboard,keycode:e,unitId:""})}_pressEsc(t){const{keycode:e}=t,n=this._editorService.getFocusEditor();(!n||(n==null?void 0:n.isSheetEditor())===!0)&&this._editorBridgeService.changeVisible({visible:!1,eventType:$i.Keyboard,keycode:e,unitId:""})}_pressArrowKey(t){const{keycode:e,metaKey:n}=t;let r=ut.DOWN;e===Et.ARROW_DOWN?r=ut.DOWN:e===Et.ARROW_UP?r=ut.UP:e===Et.ARROW_LEFT?r=ut.LEFT:e===Et.ARROW_RIGHT&&(r=ut.RIGHT),n===Ln.CTRL_COMMAND?this._commandService.executeCommand(ql.id,{direction:r,jumpOver:Cd.moveGap}):n===Ln.SHIFT?this._commandService.executeCommand(Lu.id,{direction:r}):n===Xqe?this._commandService.executeCommand(Lu.id,{direction:r,jumpOver:Cd.moveGap}):this._commandService.executeCommand(ql.id,{direction:r})}_commandExecutedListener(){const t=[c3.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id===Bre.id)this._changeRefString();else if(t.includes(e.id)){const n=e.params,{keycode:r,isSingleEditor:i=!1}=n;if(r===Et.ENTER){this._pressEnter(n);return}if(r===Et.TAB){this._pressTab(n);return}if(r===Et.ESC){this._pressEsc(n);return}if(this._formulaPromptService.isSearching()){if(r===Et.ARROW_DOWN){this._formulaPromptService.navigate({direction:ut.DOWN});return}if(r===Et.ARROW_UP){this._formulaPromptService.navigate({direction:ut.UP});return}}if(i===!0)return;if(this._arrowMoveActionState===1){this._moveInEditor(r);return}if(this._arrowMoveActionState===4){this._editorBridgeService.changeVisible({visible:!1,eventType:$i.Keyboard,keycode:r,unitId:""});return}if(this._arrowMoveActionState===2&&(this._arrowMoveActionState=3),this._refSelectionsService.getCurrentSelections().length===0){const s=this._sheetsSelectionsService.getCurrentLastSelection();if(s!=null){const l=Ie.deepClone(s);this._refSelectionsService.addSelections([l])}}this._pressArrowKey(n);const a=this._refSelectionsService.getCurrentSelections(),o=a[a.length-1];this._insertControlSelectionReplace(o),this._highlightFormula()}}))}_moveInEditor(t){if(t==null)return;let e=ut.LEFT;t===Et.ARROW_DOWN?e=ut.DOWN:t===Et.ARROW_UP?e=ut.UP:t===Et.ARROW_RIGHT&&(e=ut.RIGHT),this._commandService.executeCommand(Df.id,{direction:e})}_userMouseListener(){const t=this._getEditorObject();if(t==null)return;const{mainComponent:e}=t;e&&this.disposeWithMe(e==null?void 0:e.onPointerDown$.subscribeEvent(()=>{this._userCursorMove=!0}))}_inputFormulaListener(){this.disposeWithMe(this._editorService.inputFormula$.subscribe(t=>{const{formulaString:e,editorUnitId:n}=t;if(e.substring(0,1)!==bn.EQUALS)return;const{unitId:r}=this._getCurrentUnitIdAndSheetId();this._editorBridgeService.isVisible().visible===!1&&this._editorBridgeService.changeVisible({visible:!0,eventType:$i.Dblclick,unitId:r});const i=this._lexerTreeBuilder.sequenceNodesBuilder(e)||[];this._formulaPromptService.setSequenceNodes(i),this._syncToEditor(i,e.length-1,n,!0,!1)}))}_changeRefString(){const t=this._docSelectionManagerService.getActiveTextRange();if(t==null)return;const{startOffset:e}=t,n=e-2,r=this._formulaPromptService.getCurrentSequenceNodeIndex(n),i=this._formulaPromptService.getCurrentSequenceNodeByIndex(r);if(i==null||typeof i=="string"||i.nodeType!==ya.REFERENCE)return;const a=i.token.split("!");let o=i.token;a.length>1&&(o=a[a.length-1]);let s="";for(let c=0,d=a.length;c<d-1;c++)s+=a[c];let l=o;if(o.indexOf(mr.COLON)>-1)if(!this._userCursorMove)l=this._changeRangeRef(o);else{const c=o.split(mr.COLON),d=c[0],h=c[1];n-i.startIndex<=d.length?l=this._changeSingleRef(d)+mr.COLON+h:l=d+mr.COLON+this._changeSingleRef(h)}else l=this._changeSingleRef(o);l=s+l;const u=l.length-i.token.length;this._formulaPromptService.updateSequenceRef(r,l),this._syncToEditor(this._formulaPromptService.getSequenceNodes(),n+u+1)}_changeRangeRef(t){const e=Uo(t).range;let n="";return e.startAbsoluteRefType===yr.NONE||e.startAbsoluteRefType==null?(e.startAbsoluteRefType=yr.ALL,e.endAbsoluteRefType=yr.ALL):(e.startAbsoluteRefType=yr.NONE,e.endAbsoluteRefType=yr.NONE),n=Jo(e),n}_changeSingleRef(t){const e=Uo(t).range,n=e.startAbsoluteRefType;let r="";return n===yr.NONE||n==null?(e.startAbsoluteRefType=yr.ALL,e.endAbsoluteRefType=yr.ALL):n===yr.ALL?(e.startAbsoluteRefType=yr.ROW,e.endAbsoluteRefType=yr.ROW):n===yr.ROW?(e.startAbsoluteRefType=yr.COLUMN,e.endAbsoluteRefType=yr.COLUMN):(e.startAbsoluteRefType=yr.NONE,e.endAbsoluteRefType=yr.NONE),r=Jo(e),r}_getEditorObject(){const t=this._univerInstanceService.getCurrentUniverDocInstance().getUnitId(),e=this._editorService.getEditor(t);return e==null?void 0:e.render}_isFormulaEditorActivated(){return this._editorBridgeService.isVisible().visible===!0||this._contextService.getContextValue(Yie)}_isSheetOrFormulaEditor(t){return t.isSheetEditor()||t.isFormulaEditor()}},Je(JB,"PromptController"),JB);xA=drn([yn(Vt.Steady,xA),Tl(0,me),Tl(1,ui),Tl(2,se(Zl)),Tl(3,se(d3)),Tl(4,se(Kl)),Tl(5,Sr),Tl(6,se(Ja)),Tl(7,se(Bt)),Tl(8,tb),Tl(9,Ce),Tl(10,se(E9)),Tl(11,se(Or)),Tl(12,tm),Tl(13,Fo),Tl(14,Os)],xA);var LYe=Object.defineProperty,frn=Object.getOwnPropertyDescriptor,mrn=Je((t,e,n)=>e in t?LYe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),qre=Je((t,e,n,r)=>{for(var i=r>1?void 0:r?frn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&LYe(e,n,i),i},"__decorateClass"),Wg=Je((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),eO=Je((t,e,n)=>mrn(t,typeof e!="symbol"?e+"":e,n),"__publicField"),eU;let MP=(eU=class extends Cs{constructor(t=Xtn,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{...r}=this._config;this._configService.setConfig(Ytn,r)}onStarting(){this._injector.add([IP]),this._injector.get(X7).registerChannel(zre,qT(this._injector.get(IP)))}},Je(eU,"UniverRemoteSheetsFormulaPlugin"),eU);eO(MP,"pluginName","SHEET_FORMULA_REMOTE_PLUGIN");eO(MP,"type",le.UNIVER_SHEET);MP=qre([yd(x_),Wg(1,se(Wn)),Wg(2,Za)],MP);var tU;let dC=(tU=class extends Cs{constructor(t=qtn,e,n,r){super(),this._config=t,this._injector=e,this._renderManagerService=n,this._configService=r;const{menu:i,...a}=this._config;i&&this._configService.setConfig("menu",i,{merge:!0}),this._configService.setConfig(zqe,a)}onStarting(){const t=this._injector,e=[[d3,{useClass:wP}],[tb,{useClass:Xq}],[E9,{useClass:DP}],[MYe,{useClass:PP}],[uC],[C7],[MA],[IA],[lv],[sv],[uv],[cv],[AP],[ov],[dv],[hv],[xA]];if(this._config.notExecuteFormula){const n=t.get(X7);e.push([IYe,{useFactory:Je(()=>YT(n.requestChannel(zre)),"useFactory")}])}e.forEach(n=>t.add(n))}onRendered(){[[cC],[nX]].forEach(t=>{this.disposeWithMe(this._renderManagerService.registerRenderModule(le.UNIVER_SHEET,t))})}},Je(tU,"UniverSheetsFormulaPlugin"),tU);eO(dC,"pluginName",Ore);eO(dC,"type",le.UNIVER_SHEET);dC=qre([yd(x_),Wg(1,se(Wn)),Wg(2,Sr),Wg(3,Za)],dC);var m5;let Tue=(m5=class extends Cs{constructor(t=Qtn,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{menu:r,...i}=this._config;r&&this._configService.setConfig("menu",r,{merge:!0}),this._configService.setConfig(Gtn,i)}onStarting(){this._init()}_init(){[[d3,{useClass:wP}],[E9,{useClass:DP}],[MYe,{useClass:PP}],[uC],[C7],[lv],[sv],[uv],[cv],[ov],[dv],[hv]].forEach(t=>this._injector.add(t))}},Je(m5,"UniverSheetsFormulaMobilePlugin"),xr(m5,"pluginName",Ore),xr(m5,"type",le.UNIVER_SHEET),m5);Tue=qre([Wg(1,se(Wn)),Wg(2,Za)],Tue);var xYe=Object.defineProperty,grn=(t,e,n)=>e in t?xYe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,To=(t,e)=>xYe(t,"name",{value:e,configurable:!0}),rc=(t,e,n)=>grn(t,typeof e!="symbol"?e+"":e,n);function S7(t){return{type:t.type,operator:t.operator,formula1:t.formula1,formula2:t.formula2,allowBlank:t.allowBlank}}To(S7,"getRuleSetting");function b7(t){return{error:t.error,errorStyle:t.errorStyle,errorTitle:t.errorTitle,imeMode:t.imeMode,prompt:t.prompt,promptTitle:t.promptTitle,showDropDown:t.showDropDown,showErrorMessage:t.showErrorMessage,showInputMessage:t.showInputMessage,renderMode:t.renderMode,bizInfo:t.bizInfo}}To(b7,"getRuleOptions");var Ko=(t=>(t[t.SETTING=0]="SETTING",t[t.RANGE=1]="RANGE",t[t.OPTIONS=2]="OPTIONS",t))(Ko||{}),prn=Object.defineProperty,vrn=Object.getOwnPropertyDescriptor,_rn=To((t,e,n,r)=>{for(var i=r>1?void 0:r?vrn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&prn(e,n,i),i},"__decorateClass$3"),Crn=To((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),nU;let xs=(nU=class extends et{constructor(t){super(),rc(this,"_model",new Map),rc(this,"_ruleChange$",new Zt),rc(this,"ruleChange$",this._ruleChange$.asObservable()),rc(this,"ruleChangeDebounce$",this.ruleChange$.pipe(ah(20))),this._logService=t,this.disposeWithMe({dispose:To(()=>{this._ruleChange$.complete()},"dispose")})}_ensureMap(t,e){this._model.has(t)||this._model.set(t,new Map);const n=this._model.get(t);if(n.has(e))return n.get(e);const r={map:new Map,list:[]};return n.set(e,r),r}_addSubUnitRule(t,e,n){const{map:r,list:i}=t,a=(Array.isArray(e)?e:[e]).filter(o=>!r.has(o.uid));typeof n=="number"&&n<i.length?i.splice(n,0,...a):i.push(...a),a.forEach(o=>{r.set(o.uid,o)})}_removeSubUnitRule(t,e){const{map:n,list:r}=t,i=r.findIndex(a=>a.uid===e);i>-1&&(r.splice(i,1),n.delete(e))}_updateSubUnitRule(t,e,n){const{map:r,list:i}=t,a=r.get(e),o=i.findIndex(l=>e===l.uid);if(!a)throw new Error(`Data validation rule is not found, ruleId: ${e}.`);const s={...a};switch(n.type){case Ko.RANGE:{s.ranges=n.payload;break}case Ko.SETTING:{Object.assign(s,S7(n.payload));break}case Ko.OPTIONS:{Object.assign(s,b7(n.payload));break}}return i[o]=s,r.set(e,s),s}_addRuleSideEffect(t,e,n,r){if(!this._ensureMap(t,e).map.get(n.uid))return{rule:n,type:"add",unitId:t,subUnitId:e,source:r}}addRule(t,e,n,r,i){try{const a=this._ensureMap(t,e),o=(Array.isArray(n)?n:[n]).map(s=>this._addRuleSideEffect(t,e,s,r));this._addSubUnitRule(a,n,i),o.forEach(s=>{s&&this._ruleChange$.next(s)})}catch(a){this._logService.error(a)}}updateRule(t,e,n,r,i){try{const a=this._ensureMap(t,e),o=Ie.deepClone(a.map.get(n));if(!o)throw new Error(`Data validation rule is not found, ruleId: ${n}.`);const s=this._updateSubUnitRule(a,n,r);this._ruleChange$.next({rule:s,type:"update",unitId:t,subUnitId:e,source:i,updatePayload:r,oldRule:o})}catch(a){this._logService.error(a)}}removeRule(t,e,n,r){try{const i=this._ensureMap(t,e),a=i.map.get(n);a&&(this._removeSubUnitRule(i,n),this._ruleChange$.next({rule:a,type:"remove",unitId:t,subUnitId:e,source:r}))}catch(i){this._logService.error(i)}}getRuleById(t,e,n){return this._ensureMap(t,e).map.get(n)}getRuleIndex(t,e,n){return this._ensureMap(t,e).list.findIndex(r=>r.uid===n)}getRules(t,e){return[...this._ensureMap(t,e).list]}getUnitRules(t){const e=this._model.get(t);if(!e)return[];const n=[];return e.forEach((r,i)=>{n.push([i,r.list])}),n}deleteUnitRules(t){this._model.delete(t)}getSubUnitIds(t){var e,n;return Array.from((n=(e=this._model.get(t))==null?void 0:e.keys())!=null?n:[])}getAll(){return Array.from(this._model.keys()).map(t=>[t,this.getUnitRules(t)])}},To(nU,"DataValidationModel"),nU);xs=_rn([Crn(0,Ra)],xs);const Sc={type:Se.MUTATION,id:"data-validation.mutation.addRule",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,rule:i,index:a,source:o="command"}=e;return t.get(xs).addRule(n,r,i,o,a),!0}},Yl={type:Se.MUTATION,id:"data-validation.mutation.removeRule",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,ruleId:i,source:a="command"}=e,o=t.get(xs);return Array.isArray(i)?i.forEach(s=>{o.removeRule(n,r,s,a)}):o.removeRule(n,r,i,a),!0}},Is={type:Se.MUTATION,id:"data-validation.mutation.updateRule",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,ruleId:i,payload:a,source:o="command"}=e;return t.get(xs).updateRule(n,r,i,a,o),!0}};var Srn=Object.defineProperty,brn=Object.getOwnPropertyDescriptor,yrn=To((t,e,n,r)=>{for(var i=r>1?void 0:r?brn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Srn(e,n,i),i},"__decorateClass$2"),rU=To((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const Ern="SHEET_DATA_VALIDATION_PLUGIN";var iU;let OA=(iU=class extends et{constructor(t,e,n){super(),this._resourceManagerService=t,this._univerInstanceService=e,this._dataValidationModel=n,this._initSnapshot()}_initSnapshot(){const t=To(n=>{const r=this._dataValidationModel.getUnitRules(n),i={};return r?(r.forEach(([a,o])=>{i[a]=o}),JSON.stringify(i)):""},"toJson"),e=To(n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:Ern,businesses:[le.UNIVER_SHEET],toJson:To(n=>t(n),"toJson"),parseJson:To(n=>e(n),"parseJson"),onUnLoad:To(n=>{this._dataValidationModel.deleteUnitRules(n)},"onUnLoad"),onLoad:To((n,r)=>{Object.keys(r).forEach(i=>{r[i].forEach(a=>{this._dataValidationModel.addRule(n,i,a,"patched")})})},"onLoad")}))}},To(iU,"DataValidationResourceController"),iU);OA=yrn([yn(Vt.Ready,OA),rU(0,J0),rU(1,Ce),rU(2,se(xs))],OA);var OYe=(t=>(t.SHEET="sheet",t))(OYe||{});const NYe=class{constructor(){rc(this,"_validatorByScopes",new Map),rc(this,"_validatorMap",new Map),rc(this,"_validatorsChange$",new Pn(void 0)),rc(this,"validatorsChange$",this._validatorsChange$.asObservable())}_addValidatorToScope(e,n){this._validatorByScopes.has(n)||this._validatorByScopes.set(n,[]);const r=this._validatorByScopes.get(n);if(r.findIndex(i=>i.id===e.id)>-1)throw new Error(`Validator item with the same id ${e.id} has already been added!`);r.push(e)}_removeValidatorFromScope(e,n){const r=this._validatorByScopes.get(n);if(!r)return;const i=r.findIndex(a=>a.id===e.id);i>-1&&r.splice(i,1)}register(e){return this._validatorMap.set(e.id,e),Array.isArray(e.scopes)?e.scopes.forEach(n=>{this._addValidatorToScope(e,n)}):this._addValidatorToScope(e,e.scopes),this._validatorsChange$.next(),$t(()=>{this._validatorMap.delete(e.id),Array.isArray(e.scopes)?e.scopes.forEach(n=>{this._removeValidatorFromScope(e,n)}):this._removeValidatorFromScope(e,e.scopes),this._validatorsChange$.next()})}getValidatorItem(e){return this._validatorMap.get(e)}getValidatorsByScope(e){return this._validatorByScopes.get(e)}};To(NYe,"DataValidatorRegistryService");let D1=NYe;const Rrn={type:Se.COMMAND,id:"data-validation.command.addRule",async handler(t,e){if(t.get(Ra).error("[Deprecated]: `AddDataValidationCommand` is deprecated, please use `AddSheetDataValidationCommand` in `@univerjs/sheets-data-validation` instead!"),!e)return!1;const{rule:n,unitId:r,subUnitId:i}=e,a=t.get(me),o=t.get(xn),s={...e,rule:{...e.rule,ranges:[e.rule.range]}},l=[{id:Sc.id,params:s}],u=[{id:Yl.id,params:{unitId:r,subUnitId:i,ruleId:n.uid}}];return o.pushUndoRedo({unitID:r,redoMutations:l,undoMutations:u}),await a.executeCommand(Sc.id,s),!0}},Arn={type:Se.COMMAND,id:"data-validation.command.removeRule",handler(t,e){if(t.get(Ra).error("[Deprecated]: `RemoveDataValidationCommand` is deprecated, please use `RemoveSheetDataValidationCommand` in `@univerjs/sheets-data-validation` instead!"),!e)return!1;const{unitId:n,subUnitId:r,ruleId:i}=e,a=t.get(me),o=t.get(xn),s=t.get(xs),l=[{id:Yl.id,params:e}],u=[{id:Sc.id,params:{unitId:n,subUnitId:r,rule:{...s.getRuleById(n,r,i)},index:s.getRuleIndex(n,r,i)}}];return o.pushUndoRedo({undoMutations:u,redoMutations:l,unitID:e.unitId}),a.executeCommand(Yl.id,e),!0}},wrn={type:Se.COMMAND,id:"data-validation.command.updateDataValidationSetting",handler(t,e){if(t.get(Ra).warn("[Deprecated]: `UpdateDataValidationOptionsCommand` is deprecated, please use `UpdateSheetDataValidationOptionsCommand` in `@univerjs/sheets-data-validation` instead!"),!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(xs),{unitId:a,subUnitId:o,ruleId:s,options:l}=e,u=i.getRuleById(a,o,s);if(!u)return!1;const c={unitId:a,subUnitId:o,ruleId:s,payload:{type:Ko.OPTIONS,payload:l}},d=[{id:Is.id,params:c}],h={unitId:a,subUnitId:o,ruleId:s,payload:{type:Ko.OPTIONS,payload:b7(u)}},f=[{id:Is.id,params:h}];return r.pushUndoRedo({unitID:a,redoMutations:d,undoMutations:f}),n.executeCommand(Is.id,c),!0}},Drn={type:Se.COMMAND,id:"data-validation.command.updateDataValidationOptions",handler(t,e){if(t.get(Ra).error("[Deprecated]: `UpdateDataValidationSettingCommand` is deprecated, please use `UpdateSheetDataValidationSettingCommand` in `@univerjs/sheets-data-validation` instead!"),!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(xs),a=t.get(D1),{unitId:o,subUnitId:s,ruleId:l,setting:u}=e,c=a.getValidatorItem(u.type);if(!c)return!1;const d=i.getRuleById(o,s,l);if(!d)return!1;const h={...d,...u};if(!c.validatorFormula(h,o,s).success)return!1;const f={unitId:o,subUnitId:s,ruleId:l,payload:{type:Ko.SETTING,payload:{...u,...c.normalizeFormula(h,o,s)}}},m=[{id:Is.id,params:f}],g={unitId:o,subUnitId:s,ruleId:l,payload:{type:Ko.SETTING,payload:S7(d)}},p=[{id:Is.id,params:g}];return r.pushUndoRedo({unitID:o,redoMutations:m,undoMutations:p}),n.executeCommand(Is.id,f),!0}},Irn={type:Se.COMMAND,id:"data-validation.command.removeAll",handler(t,e){if(t.get(Ra).error("[Deprecated]: `RemoveAllDataValidationCommand` is deprecated, please use `RemoveSheetAllDataValidationCommand` in `@univerjs/sheets-data-validation` instead!"),!e)return!1;const{unitId:n,subUnitId:r}=e,i=t.get(me),a=t.get(xs),o=t.get(xn),s=[...a.getRules(n,r)],l={unitId:n,subUnitId:r,ruleId:s.map(d=>d.uid)},u=[{id:Yl.id,params:l}],c=[{id:Sc.id,params:{unitId:n,subUnitId:r,rule:s}}];return o.pushUndoRedo({redoMutations:u,undoMutations:c,unitID:n}),i.executeCommand(Yl.id,l),!0}},Prn="data-validation.config",Mrn={};var Trn=Object.defineProperty,Lrn=Object.getOwnPropertyDescriptor,xrn=To((t,e,n,r)=>{for(var i=r>1?void 0:r?Lrn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Trn(e,n,i),i},"__decorateClass$1"),aU=To((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const Orn="UNIVER_DATA_VALIDATION_PLUGIN";var g5;let hC=(g5=class extends Cs{constructor(t=Mrn,e,n,r){super(),this._config=t,this._injector=e,this._commandService=n,this._configService=r;const{...i}=this._config;this._configService.setConfig(Prn,i)}onStarting(){[[xs],[D1],[OA]].forEach(t=>this._injector.add(t)),[Rrn,Irn,wrn,Drn,Arn,Sc,Is,Yl].forEach(t=>{this._commandService.registerCommand(t)})}},To(g5,"UniverDataValidationPlugin"),rc(g5,"pluginName",Orn),rc(g5,"type",le.UNIVER_SHEET),g5);hC=xrn([aU(1,se(Wn)),aU(2,me),aU(3,Za)],hC);Wt.BETWEEN+"",Wt.EQUAL+"",Wt.GREATER_THAN+"",Wt.GREATER_THAN_OR_EQUAL+"",Wt.LESS_THAN+"",Wt.LESS_THAN_OR_EQUAL+"",Wt.NOT_BETWEEN+"",Wt.NOT_EQUAL+"";const Nrn={[Wt.BETWEEN]:"dataValidation.ruleName.between",[Wt.EQUAL]:"dataValidation.ruleName.equal",[Wt.GREATER_THAN]:"dataValidation.ruleName.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.ruleName.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.ruleName.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.ruleName.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.ruleName.notBetween",[Wt.NOT_EQUAL]:"dataValidation.ruleName.notEqual"},krn={[Wt.BETWEEN]:"dataValidation.errorMsg.between",[Wt.EQUAL]:"dataValidation.errorMsg.equal",[Wt.GREATER_THAN]:"dataValidation.errorMsg.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.errorMsg.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.errorMsg.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.errorMsg.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.errorMsg.notBetween",[Wt.NOT_EQUAL]:"dataValidation.errorMsg.notEqual"},Frn={[Wt.BETWEEN]:"dataValidation.textLength.errorMsg.between",[Wt.EQUAL]:"dataValidation.textLength.errorMsg.equal",[Wt.GREATER_THAN]:"dataValidation.textLength.errorMsg.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.textLength.errorMsg.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.textLength.errorMsg.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.textLength.errorMsg.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.textLength.errorMsg.notBetween",[Wt.NOT_EQUAL]:"dataValidation.textLength.errorMsg.notEqual"},Vrn=[Wt.BETWEEN,Wt.NOT_BETWEEN];var Brn=Object.defineProperty,Urn=Object.getOwnPropertyDescriptor,Hrn=To((t,e,n,r)=>{for(var i=r>1?void 0:r?Urn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Brn(e,n,i),i},"__decorateClass"),Lue=To((t,e)=>(n,r)=>e(n,r,t),"__decorateParam");const xue="{FORMULA1}",Oue="{FORMULA2}",jrn={[Wt.BETWEEN]:"dataValidation.operators.between",[Wt.EQUAL]:"dataValidation.operators.equal",[Wt.GREATER_THAN]:"dataValidation.operators.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.operators.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.operators.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.operators.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.operators.notBetween",[Wt.NOT_EQUAL]:"dataValidation.operators.notEqual"};var oU;let jf=(oU=class{constructor(t,e){rc(this,"canvasRender",null),rc(this,"dropdown"),rc(this,"optionsInput"),this.localeService=t,this.injector=e}get operatorNames(){return this.operators.map(t=>this.localeService.t(jrn[t]))}get titleStr(){return this.localeService.t(this.title)}skipDefaultFontRender(t,e,n){return!1}generateRuleName(t){var e,n;if(!t.operator)return this.titleStr;const r=this.localeService.t(Nrn[t.operator]).replace(xue,(e=t.formula1)!=null?e:"").replace(Oue,(n=t.formula2)!=null?n:"");return`${this.titleStr} ${r}`}generateRuleErrorMessage(t){var e,n;return t.operator?`${this.localeService.t(krn[t.operator]).replace(xue,(e=t.formula1)!=null?e:"").replace(Oue,(n=t.formula2)!=null?n:"")}`:this.titleStr}getExtraStyle(t,e,n){}getRuleFinalError(t){return t.showErrorMessage&&t.error?t.error:this.generateRuleErrorMessage(t)}isEmptyCellValue(t){return t===""||t===void 0||t===null}normalizeFormula(t,e,n){return{formula1:t.formula1,formula2:t.formula2}}async isValidType(t,e,n){return!0}transform(t,e,n){return t}async validatorIsEqual(t,e,n){return!0}async validatorIsNotEqual(t,e,n){return!0}async validatorIsBetween(t,e,n){return!0}async validatorIsNotBetween(t,e,n){return!0}async validatorIsGreaterThan(t,e,n){return!0}async validatorIsGreaterThanOrEqual(t,e,n){return!0}async validatorIsLessThan(t,e,n){return!0}async validatorIsLessThanOrEqual(t,e,n){return!0}async validator(t,e){const{value:n,unitId:r,subUnitId:i}=t,a=this.isEmptyCellValue(n),{allowBlank:o=!0,operator:s}=e;if(a)return o;const l=await this.parseFormula(e,r,i);if(!await this.isValidType(t,l,e))return!1;if(!Ie.isDefine(s))return!0;const u=this.transform(t,l,e);switch(s){case Wt.BETWEEN:return this.validatorIsBetween(u,l,e);case Wt.EQUAL:return this.validatorIsEqual(u,l,e);case Wt.GREATER_THAN:return this.validatorIsGreaterThan(u,l,e);case Wt.GREATER_THAN_OR_EQUAL:return this.validatorIsGreaterThanOrEqual(u,l,e);case Wt.LESS_THAN:return this.validatorIsLessThan(u,l,e);case Wt.LESS_THAN_OR_EQUAL:return this.validatorIsLessThanOrEqual(u,l,e);case Wt.NOT_BETWEEN:return this.validatorIsNotBetween(u,l,e);case Wt.NOT_EQUAL:return this.validatorIsNotEqual(u,l,e);default:throw new Error("Unknown operator.")}}},To(oU,"BaseDataValidator"),oU);jf=Hrn([Lue(0,se(sn)),Lue(1,se(Wn))],jf);var kYe=Object.defineProperty,$rn=(t,e,n)=>e in t?kYe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jt=(t,e)=>kYe(t,"name",{value:e,configurable:!0}),wp=(t,e,n)=>$rn(t,typeof e!="symbol"?e+"":e,n);const rX=["$","£","¥","¤","֏","؋","৳","฿","₡","₦","₩","₪","₫","€","₭","₮","₱","₲","₴","₸","₹","₺","₼","₽","₾","₿"],cg={US:"$",CA:"C$",GB:"£",JP:"¥",IN:"₹",AU:"A$",CN:"¥",KR:"₩",RU:"₽",AT:"€",BE:"€",CY:"€",EE:"€",FI:"€",FR:"€",DE:"€",GR:"€",IE:"€",IT:"€",LV:"€",LT:"€",LU:"€",MT:"€",NL:"€",PT:"€",SK:"€",SI:"€",ES:"€"},X0=jt((t,e=0)=>{var n;return t&&(n=Fi.getInfo(t).maxDecimals)!=null?n:e},"getDecimalFromPattern"),tO=jt((t,e)=>{if(t&&!e||!t&&e)return!1;const n=jt(u=>u.reduce((c,d)=>{if(c.isEnd)return c;const h=d.value||d.num;return d.type==="point"?(c.isEnd=!0,c):{...c,result:c.result+h}},{isEnd:!1,result:""}).result,"getString"),r=Fi.getInfo(t)._partitions,i=Fi.getInfo(e)._partitions,a=n(r[0].tokens),o=n(i[0].tokens),s=n(r[1].tokens),l=n(i[1].tokens);return a===o&&s===l&&r[1].color===i[1].color},"isPatternEqualWithoutDecimal"),Nue=jt(t=>new Array(Math.min(Math.max(0,Number(t)),30)).fill(0).join(""),"getDecimalString"),ic=jt((t,e)=>t.split(";").map(n=>/\.0?/.test(n)?n.replace(/\.0*/g,`${e>0?".":""}${Nue(Number(e||0))}`):/0([^0]?)|0$/.test(n)?n.replace(/0([^0]+)|0$/,`0${e>0?".":""}${Nue(Number(e||0))}$1`):n).join(";"),"setPatternDecimal"),Wrn=jt(t=>/\.0?/.test(t)||/0([^0]?)|0$/.test(t),"isPatternHasDecimal"),Dp={id:"sheet.command.numfmt.set.numfmt",type:Se.COMMAND,handler:jt((t,e)=>{if(!e)return!1;const n=t.get(me),r=t.get(Ce),i=t.get(xn),a=Dn(r,e);if(!a)return!1;const{unitId:o,subUnitId:s}=a,l=e.values.filter(g=>!!g.pattern),u=e.values.filter(g=>!g.pattern),c=q_(o,s,l),d={unitId:o,subUnitId:s,ranges:u.map(g=>({startColumn:g.col,startRow:g.row,endColumn:g.col,endRow:g.row}))},h=[],f=[];if(l.length){Object.keys(c.values).forEach(p=>{const v=c.values[p];v.ranges=eP(v.ranges)}),h.push({id:c2.id,params:c});const g=XUe(t,c);f.push(...g)}if(u.length){d.ranges=eP(d.ranges),h.push({id:u9.id,params:d});const g=GUe(t,d);f.push(...g)}const m=ti(h,n).result;return m&&i.pushUndoRedo({unitID:o,undoMutations:f,redoMutations:h}),m},"handler")},Yre={id:"sheet.command.numfmt.add.decimal.command",type:Se.COMMAND,handler:jt(async t=>{const e=t.get(me),n=t.get(Bt),r=t.get(Tc),i=t.get(Ce),a=n.getCurrentSelections();if(!a||!a.length)return!1;const o=Dn(i);if(!o)return!1;const{unitId:s,subUnitId:l}=o;let u=0;a.forEach(f=>{Gn.foreach(f.range,(m,g)=>{const p=r.getValue(s,l,m,g);if(!p){const _=o.worksheet.getCellRaw(m,g);if(!u&&_&&_.t===rr.NUMBER&&_.v){const C=/\.(\d*)$/.exec(String(_.v));if(C){const S=C[1].length;if(!S)return;u=Math.max(u,S)}}return}const v=X0(p.pattern);u=v>u?v:u})});const c=u+1,d=ic(`0${c>0?".0":""}`,c),h=[];return a.forEach(f=>{Gn.foreach(f.range,(m,g)=>{const p=r.getValue(s,l,m,g);if(!p)h.push({row:m,col:g,pattern:d});else{const v=X0(p.pattern),_=ic(p.pattern,v+1);_!==p.pattern&&h.push({row:m,col:g,pattern:_})}})}),h.length?await e.executeCommand(Dp.id,{values:h}):!1},"handler")},FYe=[{label:"1930-08-05",suffix:"yyyy-MM-dd"},{label:"1930/08/05",suffix:"yyyy/MM/dd"},{label:"1930年08月05日",suffix:'yyyy"年"MM"月"dd"日"'},{label:"08-05",suffix:"MM-dd"},{label:"8月5日",suffix:'M"月"d"日"'},{label:"13:30:30",suffix:"h:mm:ss"},{label:"13:30",suffix:"h:mm"},{label:"下午01:30",suffix:"A/P hh:mm"},{label:"下午1:30",suffix:"A/P h:mm"},{label:"下午1:30:30",suffix:"A/P h:mm:ss"},{label:"08-05 下午 01:30",suffix:"MM-dd A/P hh:mm"}],VYe=[{label:"(1,235)",suffix:"#,##0_);(#,##0)"},{label:"(1,235) ",suffix:"#,##0_);[Red](#,##0)",color:"red"},{label:"1,234.56",suffix:"#,##0.00_);#,##0.00"},{label:"1,234.56",suffix:"#,##0.00_);[Red]#,##0.00",color:"red"},{label:"-1,234.56",suffix:"#,##0.00_);-#,##0.00"},{label:"-1,234.56",suffix:"#,##0.00_);[Red]-#,##0.00",color:"red"}],Xre=[{label:jt(t=>`${t}1,235`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);"${t}"#,##0.00`,"suffix")},{label:jt(t=>`${t}1,235`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);[Red]"${t}"#,##0.00`,"suffix"),color:"red"},{label:jt(t=>`(${t}1,235)`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);("${t}"#,##0.00)`,"suffix")},{label:jt(t=>`(${t}1,235)`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);[Red]("${t}"#,##0.00)`,"suffix"),color:"red"},{label:jt(t=>`-${t}1,235`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);-"${t}"#,##0.00`,"suffix")},{label:jt(t=>`-${t}1,235`,"label"),suffix:jt(t=>`"${t}"#,##0.00_);[Red]-"${t}"#,##0.00`,"suffix"),color:"red"}],BYe=class{constructor(){wp(this,"_currencySymbol$",new Pn("US")),wp(this,"currencySymbol$",this._currencySymbol$.asObservable())}setCurrencySymbolByCountryCode(e){this._currencySymbol$.next(e)}getCurrencySymbol(){return this._currencySymbol$.getValue()}};jt(BYe,"MenuCurrencyService");let Gre=BYe;const Qre={id:"sheet.command.numfmt.set.currency",type:Se.COMMAND,handler:jt(async t=>{const e=t.get(me),n=t.get(Bt),r=t.get(Gre),i=cg[r.getCurrencySymbol()]||"$",a=n.getCurrentSelections();if(!a||!a.length)return!1;const o=[],s=Xre[4].suffix(i);return a.forEach(l=>{Gn.foreach(l.range,(u,c)=>{o.push({row:u,col:c,pattern:s,type:"currency"})})}),await e.executeCommand(Dp.id,{values:o})},"handler")},Kre={id:"sheet.command.numfmt.set.percent",type:Se.COMMAND,handler:jt(async t=>{const e=t.get(me),n=t.get(Bt).getCurrentSelections();if(!n||!n.length)return!1;const r=[],i="0%";return n.forEach(a=>{Gn.foreach(a.range,(o,s)=>{r.push({row:o,col:s,pattern:i,type:"percent"})})}),await e.executeCommand(Dp.id,{values:r})},"handler")},Zre={id:"sheet.command.numfmt.subtract.decimal.command",type:Se.COMMAND,handler:jt(async t=>{const e=t.get(me),n=t.get(Bt),r=t.get(Tc),i=t.get(Ce),a=n.getCurrentSelections();if(!a||!a.length)return!1;const o=Dn(i);if(!o)return!1;const{unitId:s,subUnitId:l}=o;let u=0;a.forEach(f=>{Gn.foreach(f.range,(m,g)=>{const p=r.getValue(s,l,m,g);if(!p){const _=o.worksheet.getCellRaw(m,g);if(!u&&_&&_.t===rr.NUMBER&&_.v){const C=/\.(\d*)$/.exec(String(_.v));if(C){const S=C[1].length;if(!S)return;u=Math.max(u,S)}}return}const v=X0(p.pattern);u=v>u?v:u})});const c=u-1,d=ic(`0${c>0?".0":"."}`,c),h=[];return a.forEach(f=>{Gn.foreach(f.range,(m,g)=>{const p=r.getValue(s,l,m,g);if(!p)h.push({row:m,col:g,pattern:d});else{const v=X0(p.pattern);h.push({row:m,col:g,pattern:ic(p.pattern,v-1)})}})}),await e.executeCommand(Dp.id,{values:h})},"handler")},sU={id:"sheet.operation.close.numfmt.panel",type:Se.OPERATION,handler:jt(()=>!0,"handler")},Jre=er("INumfmtController");e2(Vt.Rendered,Jre);const fC={id:"sheet.operation.open.numfmt.panel",type:Se.OPERATION,handler:jt(t=>(t.get(Jre).openPanel(),!0),"handler")},iX="SHEET_NUMFMT_PLUGIN",mC=jt(t=>Fi.getInfo(t).type||"unknown","getPatternType"),eie=jt((t,e,n)=>{const r=Fi.getInfo(t),i=n===pf.ZH_CN?"zh-CN":"en",a=r._partitions[1],o=Fi.format(t,e,{locale:i,throws:!1});return e<0?{result:o,color:a.color}:{result:o}},"getPatternPreview");var zrn=Object.defineProperty,qrn=Object.getOwnPropertyDescriptor,Yrn=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?qrn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zrn(e,n,i),i},"__decorateClass$7"),H3=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),lU;let NA=(lU=class extends et{constructor(t,e,n,r,i,a){super(),this._instanceService=t,this._sheetInterceptorService=e,this._themeService=n,this._commandService=r,this._numfmtService=i,this._localeService=a,this._initInterceptorCellContent()}_initInterceptorCellContent(){const t=new Ct;this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{handler:jt((e,n,r)=>{const i=n.unitId,a=n.subUnitId;let o;if(e!=null&&e.s){const h=n.workbook.getStyles().get(e.s);h!=null&&h.n&&(o=h.n)}if(o||(o=this._numfmtService.getValue(i,a,n.row,n.col)),!o)return r(e);const s=e;if(!s||s.t!==rr.NUMBER||s.v==null||Number.isNaN(s.v))return r(e);let l="";const u=t.getValue(n.row,n.col);if(u&&u.parameters===`${s.v}_${o.pattern}`)return r({...e,...u.result});const c=eie(o.pattern,Number(s.v),this._localeService.getCurrentLocale());if(l=c.result,!l)return r(e);const d={v:l};if(c.color){const h=this._themeService.getCurrentTheme()[`${c.color}500`];h&&(d.interceptorStyle={cl:{rgb:h}})}return t.setValue(n.row,n.col,{result:d,parameters:`${s.v}_${o.pattern}`}),r({...e,...d})},"handler"),priority:ex.NUMFMT})),this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id===c2.id){const n=e.params;Object.keys(n.values).forEach(r=>{n.values[r].ranges.forEach(i=>{Gn.foreach(i,(a,o)=>{t.realDeleteValue(a,o)})})})}else if(e.id===Mn.id){const n=e.params;new Ct(n.cellValue).forValue((r,i)=>{t.realDeleteValue(r,i)})}})),this.disposeWithMe(this._instanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(Ei(e=>{var n;return(n=e==null?void 0:e.activeSheet$)!=null?n:Hr(null)}),wX(1)).subscribe(()=>t.reset()))}},jt(lU,"SheetsNumfmtCellContentController"),lU);NA=Yrn([yn(Vt.Rendered,NA),H3(0,Ce),H3(1,se(Tr)),H3(2,se(Ja)),H3(3,se(me)),H3(4,se(Tc)),H3(5,se(sn))],NA);var UYe={exports:{}},nO={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var Xrn=Re,Grn=Symbol.for("react.element"),Qrn=Symbol.for("react.fragment"),Krn=Object.prototype.hasOwnProperty,Zrn=Xrn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jrn={key:!0,ref:!0,__self:!0,__source:!0};function tie(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Krn.call(e,r)&&!Jrn.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Grn,type:t,key:a,ref:o,props:i,_owner:Zrn.current}}jt(tie,"q");nO.Fragment=Qrn;nO.jsx=tie;nO.jsxs=tie;UYe.exports=nO;var cr=UYe.exports;const nie=E.createContext([]);var ein=Object.defineProperty,tin=Object.getOwnPropertyDescriptor,nin=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?tin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ein(e,n,i),i},"__decorateClass$6"),rin=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),uU;let gC=(uU=class{constructor(t){this._localStorageService=t}_getKey(t){return`userHabitController_${t}`}async addHabit(t,e){const n=this._getKey(t);return this._localStorageService.getItem(n).then(r=>{r||this._localStorageService.setItem(n,e)})}markHabit(t,e){const n=this._getKey(t);this._localStorageService.getItem(n).then(r=>{if(r){const i=r.findIndex(a=>a===e);i>-1&&r.splice(i,1),r.unshift(e),this._localStorageService.setItem(n,r)}})}async getHabit(t,e){const n=this._getKey(t),r=await this._localStorageService.getItem(n);if(e&&r){const i=r.map((a,o,s)=>{const l=s.length;return{value:a,priority:l-o}});return e.sort((a,o)=>{var s,l;const u=((s=i.find(c=>c.value===a))==null?void 0:s.priority)||-1;return(((l=i.find(c=>c.value===o))==null?void 0:l.priority)||-1)-u})}return r||[]}deleteHabit(t){this._localStorageService.removeItem(t)}},jt(uU,"UserHabitController"),uU);gC=nin([rin(0,se(iM))],gC);const kue="numfmtCurrency",iin=jt(t=>{const e=Ne(gC),[n,r]=E.useState(rX);return E.useEffect(()=>{e.addHabit("numfmtCurrency",[]).then(()=>{e.getHabit(kue,[...rX]).then(i=>{r(i),t&&t(i)})})},[]),{userHabitCurrency:n,mark:jt(i=>{e.markHabit(kue,i)},"mark")}},"useCurrencyOptions"),ain=jt(()=>{const t=E.useRef([]),[e,n]=E.useState({});return E.useEffect(()=>{t.current.forEach(r=>{r()}),t.current=[]},[e]),jt(r=>{t.current.push(r),n({})},"nextTick")},"useNextTick"),Rb=jt(t=>rX.find(e=>t.includes(e)),"getCurrencyType"),oin=jt(t=>!!Rb(t)&&t.startsWith("_("),"isAccountingPanel"),sin=jt(t=>{const[e,n]=E.useState(()=>X0(t.defaultPattern||"",2)),r=E.useContext(nie),[i,a]=E.useState(()=>Rb(t.defaultPattern)||r[0]),o=E.useMemo(()=>r.map(c=>({label:c,value:c})),[]),s=Ne(sn).t;t.action.current=()=>ic(`_("${i}"* #,##0${e>0?".0":""}_)`,e);const l=jt(c=>{a(c),t.onChange(ic(`_("${c}"* #,##0${e>0?".0":""}_)`,e))},"onSelect"),u=jt(c=>{const d=c||0;n(d),t.onChange(ic(`_("${i}"* #,##0${d>0?".0":""}_)`,d))},"onDecimalChange");return cr.jsxs("div",{children:[cr.jsxs("div",{className:"m-t-16 options ",children:[cr.jsxs("div",{className:"option",children:[cr.jsx("div",{className:"label",children:s("sheet.numfmt.decimalLength")}),cr.jsx("div",{className:"m-t-8 w-120",children:cr.jsx(uh,{value:e,max:20,min:0,onChange:u})})]}),cr.jsxs("div",{className:"option",children:[cr.jsx("div",{className:"label",children:s("sheet.numfmt.currencyType")}),cr.jsx("div",{className:"m-t-8 w-140",children:cr.jsx(md,{onChange:l,options:o,value:i})})]})]}),cr.jsx("div",{className:"describe m-t-14",children:s("sheet.numfmt.accountingDes")})]})},"AccountingPanel"),cU=jt(t=>Xre.map(e=>({label:e.label(t),value:e.suffix(t),color:e.color})),"getCurrencyFormatOptions"),HYe=jt(()=>FYe.map(t=>({label:t.label,value:t.suffix})),"getDateFormatOptions"),jYe=jt(()=>VYe.map(t=>({label:t.label,value:t.suffix,color:t.color})),"getNumberFormatOptions"),lin=jt(t=>!!Rb(t)&&!t.startsWith("_("),"isCurrencyPanel"),uin=jt(t=>{const e=Ne(sn).t,n=E.useContext(nie),[r,i]=E.useState(()=>Rb(t.defaultPattern)||n[0]),[a,o]=E.useState(()=>X0(t.defaultPattern||"",2)),[s,l]=E.useState(()=>{var m;const g=cU(r);return((m=g.find(p=>tO(p.value,t.defaultPattern)))==null?void 0:m.value)||g[0].value}),u=E.useMemo(()=>cU(r),[r]),c=E.useMemo(()=>n.map(m=>({label:m,value:m})),[n]);t.action.current=()=>ic(s,a);const d=jt(m=>{if(m===void 0)return;i(m);const g=cU(m)[0].value;l(g),t.onChange(ic(g,a))},"onSelect"),h=jt(m=>{m!==void 0&&(l(m),t.onChange(ic(m,a)))},"onChange"),f=jt(m=>{o(m||0),t.onChange(ic(s,m||0))},"onDecimalChange");return cr.jsxs("div",{children:[cr.jsxs("div",{className:"m-t-16 options ",children:[cr.jsxs("div",{className:"option",children:[cr.jsx("div",{className:"label",children:e("sheet.numfmt.decimalLength")}),cr.jsx("div",{className:"m-t-8 w-120",children:cr.jsx(uh,{value:a,max:20,min:0,onChange:f})})]}),cr.jsxs("div",{className:"option",children:[cr.jsx("div",{className:"label",children:e("sheet.numfmt.currencyType")}),cr.jsx("div",{className:"m-t-8 w-140",children:cr.jsx(md,{onChange:d,options:c,value:r})})]})]}),cr.jsx("div",{className:"m-t-16 label",children:e("sheet.numfmt.negType")}),cr.jsx("div",{className:"m-t-8",children:cr.jsx(mT,{onChange:h,options:u,value:s})}),cr.jsx("div",{className:"describe m-t-14",children:e("sheet.numfmt.currencyDes")})]})},"CurrencyPanel"),cin=jt(t=>{const e=Fi.getInfo(t);return HYe().map(n=>n.value).includes(t)||["date","datetime","time"].includes(e.type)},"isDatePanel"),din=jt(t=>{const e=E.useMemo(HYe,[]),n=Ne(sn).t,[r,i]=E.useState(()=>{if(t.defaultPattern){const o=e.find(s=>s.value===t.defaultPattern);if(o)return o.value}return e[0].value});t.action.current=()=>r;const a=jt(o=>{o!==void 0&&(i(o),t.onChange(o))},"onChange");return cr.jsxs("div",{children:[cr.jsx("div",{className:"m-t-16 label",children:n("sheet.numfmt.dateType")}),cr.jsx("div",{className:"m-t-8",children:cr.jsx(mT,{value:r,options:e,onChange:a})}),cr.jsx("div",{className:"describe m-t-14",children:n("sheet.numfmt.dateDes")})]})},"DatePanel"),hin=jt(t=>!t,"isGeneralPanel"),fin=jt(t=>{const e=Ne(sn).t;return t.action.current=()=>"",cr.jsx("div",{children:cr.jsx("div",{className:"describe m-t-14",children:e("sheet.numfmt.generalDes")})})},"GeneralPanel"),min=jt(t=>jYe().some(e=>tO(e.value,t)),"isThousandthPercentilePanel"),gin=jt(t=>{const e=Ne(sn),n=E.useMemo(jYe,[]),[r,i]=E.useState(()=>X0(t.defaultPattern||"",0)),[a,o]=E.useState(()=>{const d=n.find(h=>tO(h.value,t.defaultPattern||""));return(d==null?void 0:d.value)||n[0].value}),s=E.useMemo(()=>ic(a,Number(r||0)),[a,r]),l=E.useMemo(()=>!Wrn(a),[a]),u=jt(d=>{i(d||0),t.onChange(ic(a,Number(d||0)))},"handleDecimalChange"),c=jt(d=>{d!==void 0&&(i(X0(d,0)),o(d),t.onChange(d))},"handleClick");return t.action.current=()=>s,cr.jsxs("div",{children:[cr.jsx("div",{className:"m-t-16 label",children:e.t("sheet.numfmt.decimalLength")}),cr.jsx("div",{className:"m-t-8",children:cr.jsx(uh,{disabled:l,value:r,max:20,min:0,onChange:u})}),cr.jsxs("div",{className:"m-t-16 label",children:[" ",e.t("sheet.numfmt.negType")]}),cr.jsx("div",{className:"m-t-8",children:cr.jsx(mT,{onChange:c,options:n,value:a})}),cr.jsx("div",{className:"describe m-t-14",children:e.t("sheet.numfmt.thousandthPercentileDes")})]})},"ThousandthPercentilePanel");var e1=function(){return e1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},e1.apply(this,arguments)},pin=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},$Ye=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=pin(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(qYe()));return rie(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},e1({ref:e,className:s},o),a)});function rie(t,e,n,r,i){return E.createElement(t.tag,e1(e1({key:e},WYe(t,n,i)),r),(zYe(t,n).children||[]).map(function(a,o){return rie(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}jt(rie,"render");function WYe(t,e,n){var r=e1({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}jt(WYe,"replaceRuntimeIdsAndExtInAttrs");function zYe(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?e1(e1({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?e1(e1({},i),{attrs:e1(e1({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}jt(zYe,"replaceRuntimeIdsInDefs");function qYe(){return Math.random().toString(36).substring(2,8)}jt(qYe,"generateShortUuid");$Ye.displayName="UniverIcon";var vin={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"}}]},YYe=E.forwardRef(function(t,e){return E.createElement($Ye,Object.assign({},t,{id:"check-mark-single",ref:e,icon:vin}))});YYe.displayName="CheckMarkSingle";const _in="univer-custom-format-title",Cin="univer-custom-format-input",Sin="univer-custom-format-history-list",bin="univer-custom-format-history-list-item",yin="univer-custom-format-history-list-item-icon-wrap",Ein="univer-custom-format-des",j2={customFormatTitle:_in,customFormatInput:Cin,customFormatHistoryList:Sin,customFormatHistoryListItem:bin,customFormatHistoryListItemIconWrap:yin,customFormatDes:Ein},dU="customFormat",hU="numfmt_custom_pattern";function XYe(t){const{defaultPattern:e,action:n,onChange:r}=t,i=Ne(gC),a=Ne(iM),o=Ne(sn),[s,l]=E.useState(e);n.current=()=>(i.markHabit(dU,s),a.getItem(hU).then((f=[])=>{const m=[...new Set([s,...f||[]])].splice(0,10).filter(g=>!!g);a.setItem(hU,m)}),s);const[u,c]=E.useState([]);E.useEffect(()=>{a.getItem(hU).then(f=>{const m=[...Xre.map(g=>g.suffix("$")),...FYe.map(g=>g.suffix),...VYe.map(g=>g.suffix)];m.push(...f||[]),i.addHabit(dU,[]).finally(()=>{i.getHabit(dU,m).then(g=>{c([...new Set(g)])})})})},[]);const d=jt(f=>{l(f),r(f)},"handleClick"),h=jt(()=>{r(s)},"handleBlur");return cr.jsxs("div",{className:j2.customFormat,children:[cr.jsx("div",{className:j2.customFormatTitle,children:o.t("sheet.numfmt.customFormat")}),cr.jsx(Qs,{placeholder:o.t("sheet.numfmt.customFormat"),onBlur:h,value:s,onChange:l,className:j2.customFormatInput}),cr.jsx("div",{className:j2.customFormatHistoryList,children:u.map(f=>cr.jsxs("div",{onClick:jt(()=>d(f),"onClick"),className:j2.customFormatHistoryListItem,children:[cr.jsx("div",{className:j2.customFormatHistoryListItemIconWrap,children:s===f&&cr.jsx(YYe,{})}),cr.jsx("div",{children:f})]},f))}),cr.jsx("div",{className:j2.customFormatDes,children:o.t("sheet.numfmt.customFormatDes")})]})}jt(XYe,"CustomFormat");const Rin=jt(t=>{const{defaultValue:e,defaultPattern:n,row:r,col:i}=t.value,a=Ne(sn),o=E.useRef(()=>""),s=a.t,l=ain(),u=E.useMemo(()=>[{label:"sheet.numfmt.general",component:fin},{label:"sheet.numfmt.accounting",component:sin},{label:"sheet.numfmt.currency",component:uin},{label:"sheet.numfmt.date",component:din},{label:"sheet.numfmt.thousandthPercentile",component:gin},{label:"sheet.numfmt.customFormat",component:XYe}].map(w=>({...w,label:s(w.label)})),[]),[c,d]=E.useState(v),[h,f]=E.useState(()=>`${r}_${i}`),{mark:m,userHabitCurrency:g}=iin(()=>f(`${r}_${i}_userCurrency'`)),p=E.useMemo(()=>{var w;return(w=u.find(P=>P.label===c))==null?void 0:w.component},[c]);function v(){return[hin,oin,lin,cin,min].reduce((w,P,M)=>w||(P(n)?u[M].label:""),"")||u[0].label}jt(v,"findDefaultType");const _=u.map(w=>({label:w.label,value:w.label})),C=jt(w=>{d(w),l(()=>t.onChange({type:"change",value:o.current()||""}))},"handleSelect"),S=jt(w=>{t.onChange({type:"change",value:w})},"handleChange"),b=jt(()=>{const w=o.current()||"",P=Rb(w);P&&m(P),t.onChange({type:"confirm",value:w})},"handleConfirm"),y=jt(()=>{t.onChange({type:"cancel",value:""})},"handleCancel"),A={onChange:S,defaultValue:e,defaultPattern:n,action:o};return E.useEffect(()=>{d(v()),f(`${r}_${i}`)},[r,i]),cr.jsxs("div",{className:"numfmt-panel p-b-20",children:[cr.jsxs("div",{children:[cr.jsx("div",{className:"label m-t-14",children:s("sheet.numfmt.numfmtType")}),cr.jsx("div",{className:"m-t-8",children:cr.jsx(md,{onChange:C,options:_,value:c,style:{width:"100%"}})}),cr.jsx("div",{children:p&&cr.jsx(nie.Provider,{value:g,children:E.createElement(p,{...A,key:h})})})]}),cr.jsxs("div",{className:"btn-list m-t-14 m-b-20",children:[cr.jsx(fa,{size:"small",onClick:y,className:"m-r-12",children:s("sheet.numfmt.cancel")}),cr.jsx(fa,{type:"primary",size:"small",onClick:b,children:s("sheet.numfmt.confirm")})]})]})},"SheetNumfmtPanel");var Ain=Object.defineProperty,win=Object.getOwnPropertyDescriptor,Din=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?win(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ain(e,n,i),i},"__decorateClass$5"),Td=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5"),fU;let kA=(fU=class extends et{constructor(t,e,n,r,i,a,o,s,l,u){super(),wp(this,"_previewPattern",""),wp(this,"_sidebarDisposable",null),this._sheetInterceptorService=t,this._themeService=e,this._univerInstanceService=n,this._commandService=r,this._selectionManagerService=i,this._renderManagerService=a,this._numfmtService=o,this._componentManager=s,this._sidebarService=l,this._localeService=u,this._initRealTimeRenderingInterceptor(),this._initPanel(),this._initCommands(),this._initCloseListener(),this._commandExecutedListener()}openPanel(){var t;const e=this._sidebarService,n=this._selectionManagerService,r=this._commandService,i=this._univerInstanceService,a=this._numfmtService,o=this._localeService,s=(((t=n.getCurrentSelections())==null?void 0:t.map(g=>g.range))||[])[0];if(!s)return!1;const l=i.getCurrentUnitForType(le.UNIVER_SHEET),u=l.getActiveSheet();if(!u)return!1;const c=u.getCellRaw(s.startRow,s.startColumn),d=a.getValue(l.getUnitId(),u.getSheetId(),s.startRow,s.startColumn);let h="";d&&(h=d.pattern);const f=(c==null?void 0:c.t)===rr.NUMBER?c.v:12345678,m={onChange:jt(g=>{var p;if(g.type==="change")this._previewPattern=g.value,this._forceUpdate();else if(g.type==="confirm"){const v=((p=n.getCurrentSelections())==null?void 0:p.map(S=>S.range))||[],_={values:[]},C=mC(g.value);v.forEach(S=>{Gn.foreach(S,(b,y)=>{_.values.push({row:b,col:y,pattern:g.value,type:C})})}),r.executeCommand(Dp.id,_),e.close()}else g.type==="cancel"&&e.close()},"onChange"),value:{defaultPattern:h,defaultValue:f,row:s.startRow,col:s.startColumn}};return this._sidebarDisposable=e.open({header:{title:o.t("sheet.numfmt.title")},children:{label:iX,...m},onClose:jt(()=>{this._forceUpdate(),r.executeCommand(sU.id)},"onClose")}),!0}_forceUpdate(t){var e;const n=this._renderManagerService.getRenderById(t??this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId());n==null||n.with(Gr).reCalculate(),(e=n==null?void 0:n.mainComponent)==null||e.makeDirty()}_initCommands(){[Yre,Zre,Qre,Kre,fC,sU,Dp].forEach(t=>{this.disposeWithMe(this._commandService.registerCommand(t))})}_initPanel(){this._componentManager.register(iX,Rin)}_initRealTimeRenderingInterceptor(){const t=new On(n=>{this._commandService.onCommandExecuted(r=>{r.id===fC.id&&n.next(!0),r.id===sU.id&&n.next(!1)})}),e=Sa([t,this._selectionManagerService.selectionMoveEnd$.pipe(pr(n=>n?n.map(r=>r.range):[]))]);this.disposeWithMe($t(e.pipe(Ei(([n,r])=>new On(i=>{const a=new Gi;return n&&r.length&&i.next({selectionRanges:r,disposableCollection:a}),()=>{a.dispose()}})),WQe(()=>{this._previewPattern=null})).subscribe(({disposableCollection:n,selectionRanges:r})=>{var i,a;const o=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);this.openPanel(),n.add(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:99,handler:jt((s,l,u)=>{const{row:c,col:d}=l,h=u(s)||{};if(r.find(f=>f.startColumn<=d&&f.endColumn>=d&&f.startRow<=c&&f.endRow>=c)){const f=l.worksheet.getCellRaw(c,d),m=f==null?void 0:f.v,g=f==null?void 0:f.t;if(m==null||g!==rr.NUMBER||this._previewPattern===null)return h;const p=eie(this._previewPattern,m,this._localeService.getCurrentLocale());if(p.color){const v=this._themeService.getCurrentTheme()[`${p.color}500`];return{...h,v:p.result,t:rr.STRING,s:{cl:{rgb:v}}}}return{...h,v:p.result,t:rr.STRING}}return h},"handler")})),(a=(i=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:i.mainComponent)==null||a.makeDirty()})))}_commandExecutedListener(){const t=[u9.id,c2.id];this.disposeWithMe(new On(e=>{const n=this._commandService.onCommandExecuted(r=>{if(t.includes(r.id)){const i=r.params;e.next(i.unitId)}});return()=>n.dispose()}).pipe(ah(16)).subscribe(e=>this._forceUpdate(e)))}_initCloseListener(){this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).subscribe(t=>{var e;t||((e=this._sidebarDisposable)==null||e.dispose(),this._sidebarDisposable=null)})}},jt(fU,"NumfmtController"),fU);kA=Din([yn(Vt.Rendered,kA),Td(0,se(Tr)),Td(1,se(Ja)),Td(2,Ce),Td(3,me),Td(4,se(Bt)),Td(5,Sr),Td(6,Tc),Td(7,se(ja)),Td(8,ol),Td(9,se(sn))],kA);var Iin=Object.defineProperty,Pin=Object.getOwnPropertyDescriptor,Min=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?Pin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Iin(e,n,i),i},"__decorateClass$4"),p5=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4");const Tin=jt(()=>{let t=[];return{add:jt((e,n,r,i,a)=>t.push({unitId:e,subUnitId:n,row:r,col:i,value:a}),"add"),getEffects:jt(()=>t,"getEffects"),clean:jt(()=>{t=[]},"clean")}},"createCollectEffectMutation");var mU;let FA=(mU=class extends et{constructor(t,e,n,r,i){super(),wp(this,"_collectEffectMutation",Tin()),this._sheetInterceptorService=t,this._numfmtService=e,this._univerInstanceService=n,this._injector=r,this._editorBridgeService=i,this._initInterceptorEditorStart(),this._initInterceptorEditorEnd(),this._initInterceptorCommands()}_initInterceptorEditorStart(){this._editorBridgeService&&this.disposeWithMe($t(this._editorBridgeService.interceptor.intercept(this._editorBridgeService.interceptor.getInterceptPoints().BEFORE_CELL_EDIT,{handler:jt((t,e,n)=>{const r=e.row,i=e.col,a=this._numfmtService.getValue(e.unitId,e.subUnitId,r,i);if(a)switch(mC(a.pattern)){case"scientific":case"currency":case"grouped":case"number":return e.worksheet.getCellRaw(r,i);case"percent":case"date":case"time":case"datetime":default:return n&&n(t)}return n(t)},"handler")})))}_initInterceptorEditorEnd(){this._editorBridgeService&&this.disposeWithMe($t(this._editorBridgeService.interceptor.intercept(this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT,{handler:jt((t,e,n)=>{var r;this._collectEffectMutation.clean();const i=this._numfmtService.getValue(e.unitId,e.subUnitId,e.row,e.col),a=(r=i&&mC(i.pattern))!=null?r:"",o=jt(()=>{i&&this._collectEffectMutation.add(e.unitId,e.subUnitId,e.row,e.col,null)},"clean");if(!(t!=null&&t.v))return n(t);const s=String(t.v),l=Fi.parseDate(s)||Fi.parseTime(s)||Fi.parseNumber(s);if(l){if(l.z){const u=Number(l.v);return this._collectEffectMutation.add(e.unitId,e.subUnitId,e.row,e.col,{pattern:l.z}),{...t,v:u,t:rr.NUMBER}}}else(["date","time","datetime","percent"].includes(a)||!GYe(s))&&o();return n(t)},"handler")})))}_initInterceptorCommands(){const t=this;this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations(e){var n;switch(e.id){case Uu.id:{const r=t._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),i=r.getUnitId(),a=(n=r.getActiveSheet())==null?void 0:n.getSheetId();if(!a)return{redos:[],undos:[]};const o=t._collectEffectMutation.getEffects();if(t._collectEffectMutation.clean(),!o.length)return{redos:[],undos:[]};const s=o.filter(d=>{var h;return!!((h=d.value)!=null&&h.pattern)}).map(d=>({row:d.row,col:d.col,pattern:d.value.pattern})),l=o.filter(d=>{var h;return!((h=d.value)!=null&&h.pattern)}).map(d=>({startRow:d.row,endColumn:d.col,startColumn:d.col,endRow:d.row})),u=[],c=[];if(s.length){const d={id:c2.id,params:q_(i,a,s)};u.push(d),c.push(...XUe(t._injector,d.params))}if(l.length){const d={id:u9.id,params:{unitId:i,subUnitId:a,ranges:l}};u.push(d),c.push(...GUe(t._injector,d.params))}return{redos:u,undos:c.reverse()}}}return{redos:[],undos:[]}}}))}},jt(mU,"NumfmtEditorController"),mU);FA=Min([yn(Vt.Rendered,FA),p5(0,se(Tr)),p5(1,se(Tc)),p5(2,se(Ce)),p5(3,se(Wn)),p5(4,_1(Zl))],FA);function GYe(t){return/^-?\d+(\.\d+)?$/.test(t)}jt(GYe,"isNumeric");var Lin=Object.defineProperty,xin=Object.getOwnPropertyDescriptor,Oin=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?xin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Lin(e,n,i),i},"__decorateClass$3"),Nin=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),gU;let VA=(gU=class extends et{constructor(t){super(),this._localeService=t}},jt(gU,"NumfmtI18nController"),gU);VA=Oin([yn(Vt.Rendered,VA),Nin(0,se(sn))],VA);const BA=[{label:"sheet.numfmt.general",pattern:null},{label:"sheet.numfmt.text",pattern:Zte},"|",{label:"sheet.numfmt.number",pattern:"0"},"|",{label:"sheet.numfmt.accounting",pattern:'"¥" #,##0.00_);[Red]("¥"#,##0.00)'},{label:"sheet.numfmt.financialValue",pattern:"#,##0.00;[Red]#,##0.00"},{label:"sheet.numfmt.currency",pattern:'"¥"#,##0.00_);[Red]("¥"#,##0.00)'},{label:"sheet.numfmt.roundingCurrency",pattern:'"¥"#,##0;[Red]"¥"#,##0'},"|",{label:"sheet.numfmt.date",pattern:"yyyy-mm-dd;@"},{label:"sheet.numfmt.time",pattern:'am/pm h":"mm":"ss'},{label:"sheet.numfmt.dateTime",pattern:"yyyy-m-d am/pm h:mm"},{label:"sheet.numfmt.timeDuration",pattern:"h:mm:ss"},"|",{label:"sheet.numfmt.moreFmt",pattern:""}],QYe="sheet.numfmt.moreNumfmtType",KYe="sheet.numfmt.moreNumfmtType.options",kin=jt(t=>{var e;const n=Ne(sn),r=(e=t.value)!=null?e:n.t("sheet.numfmt.general");return cr.jsx("span",{className:"more-numfmt-type",children:r})},"MoreNumfmtType"),Fin=jt(()=>{const t=Ne(me),e=Ne(sn),n=Ne(Os);wC();const r=Ne(Bt),i=jt(s=>{const l=r.getCurrentLastSelection();if(!l)return;const u=l.range,c=[];Gn.foreach(u,(d,h)=>{s?c.push({row:d,col:h,pattern:s,type:mC(s)}):c.push({row:d,col:h})}),t.executeCommand(Dp.id,{values:c}),n.focus()},"setNumfmt"),a=jt(s=>{if(s===0)i(null);else if(s===BA.length-1)t.executeCommand(fC.id);else{const l=BA[s];l.pattern&&i(l.pattern)}},"handleOnclick"),o=1220;return cr.jsx("div",{className:"more-numfmt-type-options",children:BA.map((s,l)=>s==="|"?cr.jsx("div",{className:"line m-t-4",onClick:jt(u=>u.stopPropagation(),"onClick")},l):cr.jsxs("div",{className:"option-item m-t-4",onClick:jt(()=>{a(l)},"onClick"),children:[cr.jsx("div",{children:e.t(s.label)}),cr.jsx("div",{className:"m-l-26",children:s.pattern?eie(s.pattern||"",o,e.getCurrentLocale()).result:""})]},l))})},"Options"),Vin=jt(t=>({icon:new On(e=>{const n=t.get(Gre);function r(a){return{[cg.US]:"DollarSingle",[cg.RU]:"RoubleSingle",[cg.CN]:"RmbSingle",[cg.AT]:"EuroSingle"}[a]||"DollarSingle"}jt(r,"getIconKey");const i=cg[n.getCurrencySymbol()]||"$";return e.next(r(i)),n.currencySymbol$.subscribe(a=>{const o=cg[a]||"$";e.next(r(o))})}),id:Qre.id,title:"sheet.numfmt.currency",tooltip:"sheet.numfmt.currency",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}),"CurrencyMenuItem"),Bin=jt(t=>({icon:"AddDigitsSingle",id:Yre.id,title:"sheet.numfmt.addDecimal",tooltip:"sheet.numfmt.addDecimal",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}),"AddDecimalMenuItem"),Uin=jt(t=>({icon:"ReduceDigitsSingle",id:Zre.id,title:"sheet.numfmt.subtractDecimal",tooltip:"sheet.numfmt.subtractDecimal",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}),"SubtractDecimalMenuItem"),Hin=jt(t=>({icon:"PercentSingle",id:Kre.id,title:"sheet.numfmt.percent",tooltip:"sheet.numfmt.percent",type:Tt.BUTTON,hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Tn,Hi],rangeTypes:[Bn]})}),"PercentMenuItem"),jin=jt(t=>{const e=t.get(Ce),n=t.get(me),r=t.get(sn),i=t.get(Bt),a=Pl(e,"",({workbook:o,worksheet:s})=>new On(l=>Qa(i.selectionMoveEnd$,new On(u=>{const c=[u9.id,c2.id],d=n.onCommandExecuted(h=>{c.includes(h.id)&&u.next(null)});return()=>d.dispose()})).subscribe(()=>{var u,c;const d=i.getCurrentSelections();if(d&&d[0]){const h=d[0].range,f=h.startRow,m=h.startColumn,g=(c=o.getStyles().get((u=s.getCell(f,m))==null?void 0:u.s))==null?void 0:c.n,p=g==null?void 0:g.pattern;let v=r.t("sheet.numfmt.general");if(p){const _=BA.filter(C=>typeof C=="object"&&C.pattern).find(C=>tO(p,C.pattern));_&&typeof _=="object"&&_.pattern?v=r.t(_.label):v=r.t("sheet.numfmt.moreFmt")}l.next(v)}})));return{label:QYe,id:fC.id,tooltip:"sheet.numfmt.title",type:Tt.SELECTOR,selections:[{label:{name:KYe,hoverable:!1}}],value$:a,hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Hi,Tn],rangeTypes:[Bn]})}},"FactoryOtherMenuItem"),$in={[As.FORMULAS_INSERT]:{[Qre.id]:{order:4,menuItemFactory:Vin},[Yre.id]:{order:5,menuItemFactory:Bin},[Zre.id]:{order:6,menuItemFactory:Uin},[Kre.id]:{order:7,menuItemFactory:Hin},[fC.id]:{order:8,menuItemFactory:jin}}};var Win=Object.defineProperty,zin=Object.getOwnPropertyDescriptor,qin=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?zin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Win(e,n,i),i},"__decorateClass$2"),pU=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),vU;let UA=(vU=class extends et{constructor(t,e,n){super(),this._injector=t,this._componentManager=e,this._menuManagerService=n,this._initMenu()}_initMenu(){this._menuManagerService.mergeMenu($in),this.disposeWithMe(this._componentManager.register(QYe,kin)),this.disposeWithMe(this._componentManager.register(KYe,Fin))}},jt(vU,"NumfmtMenuController"),vU);UA=qin([yn(Vt.Rendered,UA),pU(0,se(Wn)),pU(1,se(ja)),pU(2,sl)],UA);var Yin=Object.defineProperty,Xin=Object.getOwnPropertyDescriptor,Gin=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?Xin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Yin(e,n,i),i},"__decorateClass$1"),Qin=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),_U;let HA=(_U=class extends et{constructor(t){super(),wp(this,"_currencySymbol$",new Pn("US")),wp(this,"currencySymbol$",this._currencySymbol$.asObservable()),this._injector=t}setCurrencySymbolByCountryCode(t){this._currencySymbol$.next(t)}getCurrencySymbol(){return this._currencySymbol$.getValue()}},jt(_U,"NumfmtCurrencyController"),_U);HA=Gin([yn(Vt.Rendered,HA),Qin(0,se(Wn))],HA);const Kin="sheets-numfmt.config",Zin={};var ZYe=Object.defineProperty,Jin=Object.getOwnPropertyDescriptor,ean=jt((t,e,n)=>e in t?ZYe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),tan=jt((t,e,n,r)=>{for(var i=r>1?void 0:r?Jin(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ZYe(e,n,i),i},"__decorateClass"),Fue=jt((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),JYe=jt((t,e,n)=>ean(t,typeof e!="symbol"?e+"":e,n),"__publicField"),CU;let pC=(CU=class extends Cs{constructor(t=Zin,e,n){super(),this._config=t,this._injector=e,this._configService=n;const{menu:r,...i}=this._config;r&&this._configService.setConfig("menu",r,{merge:!0}),this._configService.setConfig(Kin,i)}onStarting(){this._injector.add([Jre,{useClass:kA,lazy:!1}]),this._injector.add([FA]),this._injector.add([gC]),this._injector.add([NA]),this._injector.add([VA]),this._injector.add([Gre]),this._injector.add([HA]),this._injector.add([UA])}},jt(CU,"UniverSheetsNumfmtPlugin"),CU);JYe(pC,"pluginName",iX);JYe(pC,"type",le.UNIVER_SHEET);pC=tan([yd(Ff,Y0),Fue(1,se(Wn)),Fue(2,Za)],pC);var eXe=Object.defineProperty,nan=(t,e,n)=>e in t?eXe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ze=(t,e)=>eXe(t,"name",{value:e,configurable:!0}),In=(t,e,n)=>nan(t,typeof e!="symbol"?e+"":e,n);const tXe=class{constructor(){In(this,"_cacheMatrix",new Map)}_ensureCache(e,n){let r=this._cacheMatrix.get(e);r||(r=new Map,this._cacheMatrix.set(e,r));let i=r.get(n);return i||(i=new Ct,r.set(n,i)),i}ensureCache(e,n){return this._ensureCache(e,n)}addRule(e,n,r){this.markRangeDirty(e,n,r.ranges)}removeRule(e,n,r){this._deleteRange(e,n,r.ranges)}updateRuleRanges(e,n,r,i,a){const o=this._ensureCache(e,n);a.forEach(s=>{Gn.foreach(s,(l,u)=>{const c=o.getValue(l,u);c&&(c.temp=!0)})}),i.forEach(s=>{Gn.foreach(s,(l,u)=>{const c=o.getValue(l,u);c&&c.ruleId===r?c.temp=!1:o.setValue(l,u,void 0)})}),a.forEach(s=>{Gn.foreach(s,(l,u)=>{const c=o.getValue(l,u);c&&c.temp===!0&&o.realDeleteValue(l,u)})})}markRangeDirty(e,n,r){const i=this._ensureCache(e,n);r.forEach(a=>{Gn.foreach(a,(o,s)=>{i.setValue(o,s,void 0)})})}markCellDirty(e,n,r,i){this._ensureCache(e,n).setValue(r,i,void 0)}_deleteRange(e,n,r){const i=this._ensureCache(e,n);r.forEach(a=>{Gn.foreach(a,(o,s)=>{i.realDeleteValue(o,s)})})}getValue(e,n,r,i){return this._ensureCache(e,n).getValue(r,i)}setValue(e,n,r,i,a){return this._ensureCache(e,n).setValue(r,i,a)}};ze(tXe,"DataValidationCacheService");let R9=tXe;var ran=Object.defineProperty,ian=Object.getOwnPropertyDescriptor,aan=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?ian(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&ran(e,n,i),i},"__decorateClass$k"),j3=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$k");function aX(t,e,n,r,i,a){return t.moveFormulaRefOffset(e,a-r,i-n)}ze(aX,"transformFormula");var SU;let Ip=(SU=class extends et{constructor(t,e,n,r,i,a){super(),In(this,"_formulaMap",new Map),In(this,"_ruleFormulaMap",new Map),In(this,"_formulaCellMap",new Map),this._instanceSrv=t,this._registerOtherFormulaService=e,this._lexerTreeBuilder=n,this._dataValidationModel=r,this._dataValidationCacheService=i,this._logService=a,this._initFormulaResultHandler()}_initFormulaResultHandler(){this.disposeWithMe(this._registerOtherFormulaService.formulaResult$.subscribe(t=>{for(const e in t){const n=t[e];if(this._instanceSrv.getUnitType(e)===le.UNIVER_SHEET)for(const r in n){const i=n[r],{formulaCellMap:a,ruleFormulaMap:o}=this._ensureMaps(e,r);i.forEach(s=>{var l,u;const c=o.get((l=s.extra)==null?void 0:l.ruleId),d=a.get(s.formulaId),h=this._dataValidationModel.getRuleById(e,r,(u=s.extra)==null?void 0:u.ruleId);h&&c&&!c.isTransformable&&this._dataValidationCacheService.markRangeDirty(e,r,h.ranges),d&&this._dataValidationCacheService.markCellDirty(e,r,d.row,d.column)})}}}))}_ensureMaps(t,e){let n=this._formulaMap.get(t),r=this._ruleFormulaMap.get(t),i=this._formulaCellMap.get(t);(!n||!r||!i)&&(n=new Map,r=new Map,i=new Map,this._formulaMap.set(t,n),this._ruleFormulaMap.set(t,r),this._formulaCellMap.set(t,i));let a=n.get(e),o=r.get(e),s=i.get(e);return(!a||!o||!s)&&(a=new Ct,n.set(e,a),o=new Map,r.set(e,o),s=new Map,i.set(e,s)),{formulaMap:a,ruleFormulaMap:o,formulaCellMap:s}}_registerFormula(t,e,n,r){return this._registerOtherFormulaService.registerFormula(t,e,r,{ruleId:n})}deleteByRuleId(t,e,n){const{formulaMap:r,formulaCellMap:i,ruleFormulaMap:a}=this._ensureMaps(t,e),o=this._dataValidationModel.getRuleById(t,e,n),s=new Set,l=a.get(n);!o||!l||(a.delete(n),o.ranges.forEach(u=>{Gn.foreach(u,(c,d)=>{const h=r.getValue(c,d);if(h&&h.ruleId===n){const{formulaId:f}=h;r.realDeleteValue(c,d),s.add(f),i.delete(f)}})}),this._registerOtherFormulaService.deleteFormula(t,e,Array.from(s.values())))}_addFormulaByRange(t,e,n,r,i){const{formulaMap:a,ruleFormulaMap:o,formulaCellMap:s}=this._ensureMaps(t,e);if(!r)return;const l=i[0].startRow,u=i[0].startColumn;i.forEach(d=>{Gn.foreach(d,(h,f)=>{const m=aX(this._lexerTreeBuilder,r,l,u,h,f),g=this._registerFormula(t,e,n,m);a.setValue(h,f,{formulaId:g,ruleId:n}),s.set(g,{row:h,column:f})})}),o.set(n,{formula:r,originCol:u,originRow:l,formulaId:void 0,isTransformable:!0})}addRule(t,e,n){const{ranges:r,formula1:i,uid:a,type:o}=n;o!==ia.CUSTOM||!i||!Ar(i)||this._addFormulaByRange(t,e,a,i,r)}updateRuleRanges(t,e,n,r,i){const{formulaMap:a,ruleFormulaMap:o,formulaCellMap:s}=this._ensureMaps(t,e),l=o.get(n);if(!l)return;const{formula:u,originCol:c,originRow:d,isTransformable:h,formulaId:f}=l,m=new Set;r.forEach(g=>{Gn.foreach(g,(p,v)=>{const _=a.getValue(p,v);_&&_.ruleId===n&&(_.temp=!0)})}),i.forEach(g=>{Gn.foreach(g,(p,v)=>{var _;const C=(_=a.getValue(p,v))!=null?_:{};if(C.ruleId!==n){const S=o.get(C.ruleId);if(S!=null&&S.isTransformable&&m.add(C.formulaId),h){const b=aX(this._lexerTreeBuilder,u,d,c,p,v),y=this._registerFormula(t,e,n,b);a.setValue(p,v,{ruleId:n,formulaId:y}),s.set(y,{row:p,column:v})}else a.setValue(p,v,{ruleId:n,formulaId:f})}else C.temp=!1})}),r.forEach(g=>{Gn.foreach(g,(p,v)=>{const _=a.getValue(p,v);_&&_.ruleId===n&&_.temp===!0&&(a.realDeleteValue(p,v),h&&m.add(_.formulaId))})}),m.forEach(g=>{s.delete(g)}),this._registerOtherFormulaService.deleteFormula(t,e,Array.from(m.values()))}updateRuleFormula(t,e,n,r,i){const{ruleFormulaMap:a}=this._ensureMaps(t,e),o=a.get(n);(!o||o.formula!==i)&&this._addFormulaByRange(t,e,n,i,r)}getCellFormulaValue(t,e,n,r){const{formulaMap:i}=this._ensureMaps(t,e),a=i.getValue(n,r);return a?this._registerOtherFormulaService.getFormulaValue(t,e,a.formulaId):Promise.resolve(void 0)}getRuleFormulaInfo(t,e,n){const{ruleFormulaMap:r}=this._ensureMaps(t,e);return r.get(n)}},ze(SU,"DataValidationCustomFormulaService"),SU);Ip=aan([j3(0,Ce),j3(1,se(C7)),j3(2,se(Kl)),j3(3,se(xs)),j3(4,se(R9)),j3(5,Ra)],Ip);var oan=Object.defineProperty,san=Object.getOwnPropertyDescriptor,lan=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?san(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&oan(e,n,i),i},"__decorateClass$j"),iE=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$j"),bU;let bc=(bU=class extends et{constructor(t,e,n,r){super(),In(this,"_formulaRuleMap",new Map),this._instanceService=t,this._registerOtherFormulaService=e,this._dataValidationCacheService=n,this._dataValidationModel=r,this._initFormulaResultHandler()}_initFormulaResultHandler(){this.disposeWithMe(this._registerOtherFormulaService.formulaResult$.subscribe(t=>{for(const e in t){const n=t[e];if(this._instanceService.getUnitType(e)===le.UNIVER_SHEET)for(const r in n){const i=n[r],a=this._ensureRuleFormulaMap(e,r);i.forEach(o=>{var s,l;if(a.get((s=o.extra)==null?void 0:s.ruleId)){const u=this._dataValidationModel.getRuleById(e,r,(l=o.extra)==null?void 0:l.ruleId);u&&this._dataValidationCacheService.markRangeDirty(e,r,u.ranges)}})}}}))}_ensureRuleFormulaMap(t,e){let n=this._formulaRuleMap.get(t);n||(n=new Map,this._formulaRuleMap.set(t,n));let r=n.get(e);return r||(r=new Map,n.set(e,r)),r}addRule(t,e,n,r,i){const a=Ar(r),o=Ar(i);if(!a&&!o)return;const s=this._ensureRuleFormulaMap(t,e),l=[void 0,void 0];if(a){const u=this._registerOtherFormulaService.registerFormula(t,e,r,{ruleId:n});l[0]={id:u,text:r}}if(o){const u=this._registerOtherFormulaService.registerFormula(t,e,i,{ruleId:n});l[1]={id:u,text:i}}s.set(n,l)}removeRule(t,e,n){const r=this._ensureRuleFormulaMap(t,e).get(n);if(!r)return;const[i,a]=r,o=[i==null?void 0:i.id,a==null?void 0:a.id].filter(Boolean);o.length&&this._registerOtherFormulaService.deleteFormula(t,e,o)}updateRuleFormulaText(t,e,n,r,i){const a=this._ensureRuleFormulaMap(t,e).get(n);if(!a){this.addRule(t,e,n,r,i);return}const[o,s]=a;if((o==null?void 0:o.text)!==r)if(o&&this._registerOtherFormulaService.deleteFormula(t,e,[o.id]),Ar(r)){const l=this._registerOtherFormulaService.registerFormula(t,e,r,{ruleId:n});a[0]={text:r,id:l}}else a[0]=void 0;if((s==null?void 0:s.text)!==i)if(s&&this._registerOtherFormulaService.deleteFormula(t,e,[s.id]),Ar(i)){const l=this._registerOtherFormulaService.registerFormula(t,e,i,{ruleId:n});a[1]={text:i,id:l}}else a[1]=void 0}getRuleFormulaResult(t,e,n){const r=this._ensureRuleFormulaMap(t,e).get(n);if(!r)return Promise.resolve(null);const i=ze(async a=>a&&this._registerOtherFormulaService.getFormulaValue(t,e,a.id),"getResult");return Promise.all([i(r[0]),i(r[1])])}getRuleFormulaResultSync(t,e,n){const r=this._ensureRuleFormulaMap(t,e).get(n);if(r)return r.map(i=>{if(i)return this._registerOtherFormulaService.getFormulaValueSync(t,e,i.id)})}getRuleFormulaInfo(t,e,n){return this._ensureRuleFormulaMap(t,e).get(n)}},ze(bU,"DataValidationFormulaService"),bU);bc=lan([iE(0,Ce),iE(1,se(C7)),iE(2,se(R9)),iE(3,se(xs))],bc);function es(t){return ahe(t)}ze(es,"getCellValueOrigin");function iie(t){var e;return String((e=es(t))!=null?e:"")}ze(iie,"getStringCellValue");const nXe=class rXe{constructor(e,n){In(this,"_map",new Map),this._worksheet=n,this._map=e}addRule(e){const n=e.uid,r=e.ranges.map(i=>Gn.transformRange(i,this._worksheet));this._map.forEach((i,a)=>{const o=ft.subtractMulti(i,r);o.length===0?this._map.delete(a):this._map.set(a,o)}),this._map.set(n,r)}removeRange(e){const n=e.map(r=>Gn.transformRange(r,this._worksheet));this._map.forEach((r,i)=>{const a=ft.subtractMulti(r,n);a.length===0?this._map.delete(i):this._map.set(i,a)})}removeRule(e){this._map.delete(e.uid)}updateRange(e,n){this._map.delete(e);const r=n.map(i=>Gn.transformRange(i,this._worksheet));this._map.forEach((i,a)=>{const o=ft.subtractMulti(i,r);o.length===0?this._map.delete(a):this._map.set(a,o)}),this._map.set(e,r)}diff(e){const n=[];let r=0;return e.forEach((i,a)=>{var o;const s=(o=this._map.get(i.uid))!=null?o:[],l=i.ranges;(s.length!==l.length||s.some((u,c)=>!ft.equals(u,l[c])))&&n.push({type:"update",ruleId:i.uid,oldRanges:l,newRanges:s}),s.length===0&&(n.push({type:"delete",rule:i,index:a-r}),r++)}),n}diffWithAddition(e,n){const r=[];let i=0;return e.forEach((a,o)=>{var s;const l=(s=this._map.get(a.uid))!=null?s:[],u=a.ranges;(l.length!==u.length||l.some((c,d)=>!ft.equals(c,u[d])))&&r.push({type:"update",ruleId:a.uid,oldRanges:u,newRanges:l}),l.length===0&&(r.push({type:"delete",rule:a,index:o-i}),i++)}),Array.from(n).forEach(a=>{var o;const s=(o=this._map.get(a.uid))!=null?o:[];r.push({type:"add",rule:{...a,ranges:s}})}),r}clone(){return new rXe(new Map(Ie.deepClone(Array.from(this._map.entries()))),this._worksheet)}getValue(e,n){var r;const i=Array.from(this._map.keys());for(const a of i)if(((r=this._map.get(a))!=null?r:[]).find(o=>o.startRow<=e&&o.endRow>=e&&o.startColumn<=n&&o.endColumn>=n))return a}addRangeRules(e){e.forEach(({id:n,ranges:r})=>{if(!r.length)return;let i=this._map.get(n);i?(this._map.set(n,ft.mergeRanges([...i,...r])),i=this._map.get(n)):(i=r,this._map.set(n,i)),this._map.forEach((a,o)=>{if(o===n)return;const s=ft.subtractMulti(a,r);s.length===0?this._map.delete(o):this._map.set(o,s)})})}};ze(nXe,"RuleMatrix");let uan=nXe;var can=Object.defineProperty,dan=Object.getOwnPropertyDescriptor,han=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?dan(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&can(e,n,i),i},"__decorateClass$i"),$3=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$i"),yU;let io=(yU=class extends et{constructor(t,e,n,r,i,a){super(),In(this,"_ruleMatrixMap",new Map),In(this,"_validStatusChange$",new Zt),In(this,"_ruleChange$",new Zt),In(this,"ruleChange$",this._ruleChange$.asObservable()),In(this,"validStatusChange$",this._validStatusChange$.asObservable()),this._dataValidationModel=t,this._univerInstanceService=e,this._dataValidatorRegistryService=n,this._dataValidationCacheService=r,this._dataValidationFormulaService=i,this._dataValidationCustomFormulaService=a,this._initRuleUpdateListener(),this.disposeWithMe(()=>{this._ruleChange$.complete(),this._validStatusChange$.complete()})}_initRuleUpdateListener(){const t=this._dataValidationModel.getAll();for(const[e,n]of t)for(const[r,i]of n)for(const a of i)this._ruleChange$.next({type:"add",unitId:e,subUnitId:r,rule:a,source:"patched"}),this._addRule(e,r,a);this.disposeWithMe(this._dataValidationModel.ruleChange$.subscribe(e=>{switch(this._ruleChange$.next(e),e.type){case"add":this._addRule(e.unitId,e.subUnitId,e.rule);break;case"update":this._updateRule(e.unitId,e.subUnitId,e.rule.uid,e.oldRule,e.updatePayload);break;case"remove":this._removeRule(e.unitId,e.subUnitId,e.rule);break}}))}_ensureRuleMatrix(t,e){let n=this._ruleMatrixMap.get(t);const r=this._univerInstanceService.getUnit(t,le.UNIVER_SHEET);if(!r)throw new Error(`workbook not found, unitId: ${t}`);n||(n=new Map,this._ruleMatrixMap.set(t,n));let i=n.get(e);if(!i){const a=r.getSheetBySheetId(e);if(!a)throw new Error(`worksheet not found, unitId: ${t}, subUnitId: ${e}`);i=new uan(new Map,a),n.set(e,i)}return i}_addRuleSideEffect(t,e,n){var r;(n.type===ia.LIST||n.type===ia.LIST_MULTIPLE)&&ES((r=n.formula1)!=null?r:"")&&(n.formula1=`=${n.formula1}`),this._ensureRuleMatrix(t,e).addRule(n),this._dataValidationCacheService.addRule(t,e,n),this._dataValidationFormulaService.addRule(t,e,n.uid,n.formula1,n.formula2),this._dataValidationCustomFormulaService.addRule(t,e,n)}_addRule(t,e,n){(Array.isArray(n)?n:[n]).forEach(r=>{this._addRuleSideEffect(t,e,r)})}_updateRule(t,e,n,r,i){const a=this._ensureRuleMatrix(t,e);i.type===Ko.RANGE?(a.updateRange(n,i.payload),this._dataValidationCacheService.updateRuleRanges(t,e,n,i.payload,r.ranges),this._dataValidationCustomFormulaService.updateRuleRanges(t,e,n,r.ranges,i.payload)):i.type===Ko.SETTING&&(this._dataValidationCacheService.markRangeDirty(t,e,r.ranges),this._dataValidationFormulaService.updateRuleFormulaText(t,e,n,i.payload.formula1,i.payload.formula2),this._dataValidationCustomFormulaService.updateRuleFormula(t,e,n,r.ranges,i.payload.formula1))}_removeRule(t,e,n){this._ensureRuleMatrix(t,e).removeRule(n),this._dataValidationCacheService.removeRule(t,e,n)}getValidator(t){return this._dataValidatorRegistryService.getValidatorItem(t)}getRuleIdByLocation(t,e,n,r){return this._ensureRuleMatrix(t,e).getValue(n,r)}getRuleByLocation(t,e,n,r){const i=this.getRuleIdByLocation(t,e,n,r);if(i)return this._dataValidationModel.getRuleById(t,e,i)}validator(t,e,n,r){const{col:i,row:a,unitId:o,subUnitId:s,worksheet:l}=n,u=e.uid,c=ze((g,p)=>{r&&r(g,p),p&&this._validStatusChange$.next({unitId:o,subUnitId:s,ruleId:e.uid,status:g})},"onCompete"),d=this.getValidator(e.type),h=l.getCellRaw(a,i),f=es(h),m=es(t);if(d){const g=this._dataValidationCacheService.ensureCache(o,s),p=g.getValue(a,i);return!p||p.value!==f||p.interceptValue!==m||p.ruleId!==u?(g.setValue(a,i,{value:f,interceptValue:m,status:q1.VALIDATING,ruleId:u}),d.validator({value:f,unitId:o,subUnitId:s,row:a,column:i,worksheet:n.worksheet,workbook:n.workbook,interceptValue:es(t),t:h==null?void 0:h.t},e).then(v=>{const _=v?q1.VALID:q1.INVALID;g.setValue(a,i,{value:f,status:_,ruleId:u,interceptValue:m}),c(_,!0)}),q1.VALIDATING):(c(p.status,!1),p.status)}else return c(q1.VALID,!1),q1.VALID}getRuleErrorMsg(t,e,n){const r=this._dataValidationModel.getRuleById(t,e,n);if(!r)return"";const i=this._dataValidatorRegistryService.getValidatorItem(r.type);return r.error?r.error:i?i.getRuleFinalError(r):""}getRuleObjectMatrix(t,e){return this._ensureRuleMatrix(t,e)}getRuleById(t,e,n){return this._dataValidationModel.getRuleById(t,e,n)}getRuleIndex(t,e,n){return this._dataValidationModel.getRuleIndex(t,e,n)}getRules(t,e){return[...this._dataValidationModel.getRules(t,e)]}getUnitRules(t){return this._dataValidationModel.getUnitRules(t)}deleteUnitRules(t){return this._dataValidationModel.deleteUnitRules(t)}getSubUnitIds(t){return this._dataValidationModel.getSubUnitIds(t)}getAll(){return this._dataValidationModel.getAll()}},ze(yU,"SheetDataValidationModel"),yU);io=han([yn(Vt.Starting,io),$3(0,se(xs)),$3(1,Ce),$3(2,se(D1)),$3(3,se(R9)),$3(4,se(bc)),$3(5,se(Ip))],io);function aie(t){const e=t.get(Bt).getCurrentSelections().map(n=>n.range);return{uid:Ie.generateRandomId(6),type:ia.DECIMAL,operator:Wt.EQUAL,formula1:"100",ranges:e??[{startColumn:0,endColumn:0,startRow:0,endRow:0}]}}ze(aie,"createDefaultNewRule");function nd(t){var e,n;return(n=(e=t==null?void 0:t[0])==null?void 0:e[0])==null?void 0:n.v}ze(nd,"getFormulaResult");function iXe(t){var e;return(e=t==null?void 0:t[0])==null?void 0:e[0]}ze(iXe,"getFormulaCellData");var fan=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aXe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}ze(aXe,"getDefaultExportFromCjs");var oXe={exports:{}},rO={};/** |
|
|
* @license React |
|
|
* react-jsx-runtime.production.min.js |
|
|
* |
|
|
* Copyright (c) Facebook, Inc. and its affiliates. |
|
|
* |
|
|
* This source code is licensed under the MIT license found in the |
|
|
* LICENSE file in the root directory of this source tree. |
|
|
*/var man=Re,gan=Symbol.for("react.element"),pan=Symbol.for("react.fragment"),van=Object.prototype.hasOwnProperty,_an=man.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Can={key:!0,ref:!0,__self:!0,__source:!0};function oie(t,e,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)van.call(e,r)&&!Can.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:gan,type:t,key:a,ref:o,props:i,_owner:_an.current}}ze(oie,"q");rO.Fragment=pan;rO.jsx=oie;rO.jsxs=oie;oXe.exports=rO;var Ht=oXe.exports;function sXe(t){var e;const{unitId:n,subUnitId:r,value:i,onChange:a,showError:o,validResult:s}=t,l=o?s==null?void 0:s.formula1:"";return Ht.jsx(yo,{error:l,children:Ht.jsx(Gp,{value:(e=i==null?void 0:i.formula1)!=null?e:"",id:qg(`dataValidation-custom-formula-${n}-${r}`),onChange:ze(u=>{a==null||a({...i,formula1:(u??"").trim()})},"onChange"),onlyInputFormula:!0,openForSheetUnitId:n,openForSheetSubUnitId:r})})}ze(sXe,"CustomFormulaInput");const San="univer-data-validation-formula",ban="univer-data-validation-formula-and",yan="univer-data-validation-formula-list-item",Ean="univer-data-validation-formula-list-item-icon",Ran="univer-data-validation-formula-list-item-drag",Aan="univer-data-validation-formula-list-add",wan="univer-data-validation-formula-color-select",Dan="univer-data-validation-formula-color-select-panel",Ian="univer-data-validation-formula-color-item",Su={dataValidationFormula:San,dataValidationFormulaAnd:ban,dataValidationFormulaListItem:yan,dataValidationFormulaListItemIcon:Ean,dataValidationFormulaListItemDrag:Ran,dataValidationFormulaListAdd:Aan,dataValidationFormulaColorSelect:wan,dataValidationFormulaColorSelectPanel:Dan,dataValidationFormulaColorItem:Ian},Pan=ze(t=>{const{isTwoFormula:e=!1,value:n,onChange:r,showError:i,validResult:a}=t,o=Ne(sn),s=i?a==null?void 0:a.formula1:"",l=i?a==null?void 0:a.formula2:"";return e?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(yo,{error:s,children:Ht.jsx(Qs,{className:Su.dataValidationFormula,placeholder:o.t("dataValidation.panel.formulaPlaceholder"),value:n==null?void 0:n.formula1,onChange:ze(u=>{r==null||r({...n,formula1:u})},"onChange")})}),Ht.jsx("div",{className:Su.dataValidationFormulaAnd,children:o.t("dataValidation.panel.formulaAnd")}),Ht.jsx(yo,{error:l,children:Ht.jsx(Qs,{className:Su.dataValidationFormula,placeholder:o.t("dataValidation.panel.formulaPlaceholder"),value:n==null?void 0:n.formula2,onChange:ze(u=>{r==null||r({...n,formula2:u})},"onChange")})})]}):Ht.jsx(yo,{error:s,children:Ht.jsx(Qs,{className:Su.dataValidationFormula,placeholder:o.t("dataValidation.panel.formulaPlaceholder"),value:n==null?void 0:n.formula1,onChange:ze(u=>{r==null||r({formula1:u})},"onChange")})})},"BaseFormulaInput");var t1=function(){return t1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},t1.apply(this,arguments)},Man=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},d2=E.forwardRef(function(t,e){var n=t.icon,r=t.id,i=t.className,a=t.extend,o=Man(t,["icon","id","className","extend"]),s="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),l=E.useRef("_".concat(cXe()));return sie(n,"".concat(r),{defIds:n.defIds,idSuffix:l.current},t1({ref:e,className:s},o),a)});function sie(t,e,n,r,i){return E.createElement(t.tag,t1(t1({key:e},lXe(t,n,i)),r),(uXe(t,n).children||[]).map(function(a,o){return sie(a,"".concat(e,"-").concat(t.tag,"-").concat(o),n,void 0,i)}))}ze(sie,"render");function lXe(t,e,n){var r=t1({},t.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=e.defIds;return!i||i.length===0||(t.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+e.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],s=a[1];typeof s=="string"&&(r[o]=s.replace(/url\(#(.*)\)/,"url(#$1".concat(e.idSuffix,")")))})),r}ze(lXe,"replaceRuntimeIdsAndExtInAttrs");function uXe(t,e){var n,r=e.defIds;return!r||r.length===0?t:t.tag==="defs"&&!((n=t.children)===null||n===void 0)&&n.length?t1(t1({},t),{children:t.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?t1(t1({},i),{attrs:t1(t1({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}ze(uXe,"replaceRuntimeIdsInDefs");function cXe(){return Math.random().toString(36).substring(2,8)}ze(cXe,"generateShortUuid");d2.displayName="UniverIcon";var Tan={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"}}]},dXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"check-mark-single",ref:e,icon:Tan}))});dXe.displayName="CheckMarkSingle";var Lan={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z"}},{tag:"path",attrs:{fill:"currentColor",d:"M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z",fillRule:"evenodd",clipRule:"evenodd"}}]},hXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"data-validation-single",ref:e,icon:Lan}))});hXe.displayName="DataValidationSingle";var xan={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"}}]},lie=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"delete-single",ref:e,icon:xan}))});lie.displayName="DeleteSingle";var Oan={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"}}]},fXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"increase-single",ref:e,icon:Oan}))});fXe.displayName="IncreaseSingle";var Nan={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"}}]},mXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"more-down-single",ref:e,icon:Nan}))});mXe.displayName="MoreDownSingle";var kan={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z",fillRule:"evenodd",clipRule:"evenodd"}}]},gXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"more-up-single",ref:e,icon:kan}))});gXe.displayName="MoreUpSingle";var Fan={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_622_8",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_622_8)"},children:[{tag:"path",attrs:{d:"M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z"}}]}]},pXe=E.forwardRef(function(t,e){return E.createElement(d2,Object.assign({},t,{id:"sequence-single",ref:e,icon:Fan}))});pXe.displayName="SequenceSingle";function uie(t){return t.filter(Boolean).join(",")}ze(uie,"serializeListOptions");function Rg(t){return t.split(",").filter(Boolean)}ze(Rg,"deserializeListOptions");function vXe(t){const e=es(t);return e==null?"":e.toString()}ze(vXe,"getDataValidationCellValue");const iO="SHEET_DATA_VALIDATION_PLUGIN",Ag="#ECECEC";var _Xe=(t=>(t[t.View=0]="View",t[t.Edit=1]="Edit",t[t.ManageCollaborator=2]="ManageCollaborator",t[t.Print=3]="Print",t[t.Duplicate=4]="Duplicate",t[t.Comment=5]="Comment",t[t.Copy=6]="Copy",t[t.Share=7]="Share",t[t.Export=8]="Export",t[t.MoveWorksheet=9]="MoveWorksheet",t[t.DeleteWorksheet=10]="DeleteWorksheet",t[t.HideWorksheet=11]="HideWorksheet",t[t.RenameWorksheet=12]="RenameWorksheet",t[t.CreateWorksheet=13]="CreateWorksheet",t[t.SetWorksheetStyle=14]="SetWorksheetStyle",t[t.EditWorksheetCell=15]="EditWorksheetCell",t[t.InsertHyperlink=16]="InsertHyperlink",t[t.Sort=17]="Sort",t[t.Filter=18]="Filter",t[t.PivotTable=19]="PivotTable",t[t.FloatImg=20]="FloatImg",t[t.History=21]="History",t[t.RwHgtClWdt=22]="RwHgtClWdt",t[t.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",t[t.ViewFilter=24]="ViewFilter",t[t.MoveSheet=25]="MoveSheet",t[t.DeleteSheet=26]="DeleteSheet",t[t.HideSheet=27]="HideSheet",t[t.CopySheet=28]="CopySheet",t[t.RenameSheet=29]="RenameSheet",t[t.CreateSheet=30]="CreateSheet",t[t.SelectProtectedCells=31]="SelectProtectedCells",t[t.SelectUnProtectedCells=32]="SelectUnProtectedCells",t[t.SetCellStyle=33]="SetCellStyle",t[t.SetCellValue=34]="SetCellValue",t[t.SetRowStyle=35]="SetRowStyle",t[t.SetColumnStyle=36]="SetColumnStyle",t[t.InsertRow=37]="InsertRow",t[t.InsertColumn=38]="InsertColumn",t[t.DeleteRow=39]="DeleteRow",t[t.DeleteColumn=40]="DeleteColumn",t[t.EditExtraObject=41]="EditExtraObject",t[t.Delete=42]="Delete",t[t.RecoverHistory=43]="RecoverHistory",t[t.ViewHistory=44]="ViewHistory",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(_Xe||{}),Van=Object.defineProperty,Ban=Object.getOwnPropertyDescriptor,Uan=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Ban(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Van(e,n,i),i},"__decorateClass$h"),EU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$h"),RU;let g4=(RU=class extends et{constructor(t,e,n){super(),this._univerInstanceService=t,this._permissionService=e,this._lexerTreeBuilder=n}getFormulaRefCheck(t){var e,n;const r=this._lexerTreeBuilder.sequenceNodesBuilder(t);if(!r)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(typeof a=="string")continue;const{token:o}=a,s=Uo(o),l=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);let u=l.getActiveSheet();const c=l.getUnitId();if(s.sheetName){if(u=l.getSheetBySheetName(s.sheetName),!u)return!1;const g=u==null?void 0:u.getSheetId();if(!this._permissionService.getPermissionPoint(new rb(c,g).id))return!1}if(!u)return!1;const{startRow:d,endRow:h,startColumn:f,endColumn:m}=s.range;for(let g=d;g<=h;g++)for(let p=f;p<=m;p++){const v=(n=(e=u.getCell(g,p))==null?void 0:e.selectionProtection)==null?void 0:n[0];if((v==null?void 0:v[_Xe.View])===!1)return!1}}return!0}},ze(RU,"DataValidationFormulaController"),RU);g4=Uan([yn(Vt.Rendered,g4),EU(0,Ce),EU(1,Qi),EU(2,se(Kl))],g4);const Han=["#FFFFFF","#FEE7E7","#FEF0E6","#EFFBD0","#E4F4FE","#E8ECFD","#F1EAFA","#FDE8F3","#E5E5E5","#FDCECE","#FDC49B","#DEF6A2","#9FDAFF","#D0D9FB","#E3D5F6","#FBD0E8","#656565","#FE4B4B","#FF8C51","#8BBB11","#0B9EFB","#3A60F7","#9E6DE3","#F248A6"],jan=ze(t=>{const{value:e,onChange:n,disabled:r}=t,[i,a]=E.useState(!1);return Ht.jsx(md,{disabled:r,open:i,onDropdownVisibleChange:a,dropdownStyle:{width:112},className:Su.dataValidationFormulaColorSelect,value:e,onChange:n,labelRender:ze(o=>Ht.jsx("div",{className:Su.dataValidationFormulaColorItem,style:{background:o.value,marginTop:5}}),"labelRender"),dropdownRender:ze(()=>Ht.jsx("div",{className:Su.dataValidationFormulaColorSelectPanel,children:Han.map(o=>Ht.jsx("div",{onClick:ze(()=>{n(o),a(!1)},"onClick"),className:Su.dataValidationFormulaColorItem,style:{background:o}},o))}),"dropdownRender")})},"ColorSelect"),Vue=ze(t=>{const{item:e,commonProps:n,style:r}=t,{onItemChange:i,onItemDelete:a}=n;return Ht.jsxs("div",{className:Su.dataValidationFormulaListItem,style:r,children:[e.isRef?null:Ht.jsx("div",{className:hr(Su.dataValidationFormulaListItemDrag,"draggableHandle"),children:Ht.jsx(pXe,{})}),Ht.jsx(jan,{value:e.color,onChange:ze(o=>{i(e.id,e.label,o)},"onChange")}),Ht.jsx(Qs,{disabled:e.isRef,value:e.label,onChange:ze(o=>{i(e.id,o,e.color)},"onChange")}),e.isRef?null:Ht.jsx("div",{className:Su.dataValidationFormulaListItemIcon,children:Ht.jsx(lie,{onClick:ze(()=>a(e.id),"onClick")})})]})},"Template");function CXe(t){const{value:e,onChange:n=ze(()=>{},"_onChange"),unitId:r,subUnitId:i,validResult:a,showError:o,ruleId:s}=t,{formula1:l="",formula2:u=""}=e||{},c=E.useRef(null),[d,h]=E.useState(()=>Ar(l)?"1":"0"),[f,m]=E.useState(d==="1"?l:"="),[g,p]=E.useState(d==="1"?l:"="),v=Ne(sn),_=Ne(D1),C=Ne(xs),S=Ne(g4),[b,y]=E.useState(()=>u.split(",")),A=_.getValidatorItem(ia.LIST),[w,P]=E.useState([]),[M,L]=E.useState(""),k=o?a==null?void 0:a.formula1:"",O=E.useMemo(()=>C.ruleChange$.pipe(ah(16)),[]),$=ai(O),B=US(n);E.useEffect(()=>{(async()=>{await new Promise(ie=>{setTimeout(()=>ie(!0),100)});const Y=C.getRuleById(r,i,s),ae=Y==null?void 0:Y.formula1;if(Ar(ae)&&A&&Y){const ie=await A.getListAsync(Y,r,i);P(ie)}})()},[C,$,A,s,i,r]),E.useEffect(()=>{Ar(l)&&l!==g&&(m(l),p(g))},[g,l]);const[V,X]=E.useState(()=>{const Y=d!=="1"?Rg(l):[],ae=u.split(",");return Y.map((ie,ne)=>({label:ie,color:ae[ne]||Ag,isRef:!1,id:Ie.generateRandomId(4)}))}),z=ze((Y,ae,ie)=>{const ne=V.find(de=>de.id===Y);ne&&(ne.label=ae,ne.color=ie,X([...V]))},"handleStrItemChange"),F=ze(Y=>{const ae=V.findIndex(ie=>ie.id===Y);ae!==-1&&(V.splice(ae,1),X([...V]))},"handleStrItemDelete"),H=u.split(","),W=E.useMemo(()=>w.map((Y,ae)=>({label:Y,color:H[ae]||Ag,id:`${ae}`,isRef:!0})),[H,w]),K=ze((Y,ae,ie)=>{const ne=[...b];ne[+Y]=ie,y(ne),B({formula1:l,formula2:ne.join(",")})},"handleRefItemChange"),G=ze(()=>{X([...V,{label:"",color:Ag,isRef:!1,id:Ie.generateRandomId(4)}])},"handleAdd");E.useEffect(()=>{if(d==="1")return;const Y=new Set,ae=[];V.map(ie=>({labelList:ie.label.split(","),item:ie})).forEach(({item:ie,labelList:ne})=>{ne.forEach(de=>{Y.has(de)||(Y.add(de),ae.push({label:de,color:ie.color}))})}),B({formula1:uie(ae.map(ie=>ie.label)),formula2:ae.map(ie=>ie.color===Ag?"":ie.color).join(",")})},[V,B,d,g,b]);const te=E.useMemo(()=>async Y=>{if(!Ar(Y)){B==null||B({formula1:"",formula2:u});return}S.getFormulaRefCheck(Y)?(B==null||B({formula1:Ar(Y)?Y:"",formula2:u}),L("")):(B==null||B({formula1:"",formula2:u}),m("="),L(v.t("dataValidation.validFail.formulaError")))},[u,B]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(yo,{label:v.t("dataValidation.list.options"),children:Ht.jsxs(np,{value:d,onChange:ze(Y=>{h(Y),m(g),Y==="1"&&B({formula1:g==="="?"":g,formula2:b.join(",")})},"onChange"),children:[Ht.jsx(gu,{value:"0",children:v.t("dataValidation.list.customOptions")}),Ht.jsx(gu,{value:"1",children:v.t("dataValidation.list.refOptions")})]})}),d==="1"?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(yo,{error:k||M,children:Ht.jsx(Gp,{id:qg(`list-ref-range-${r}-${i}`),value:f,openForSheetUnitId:r,openForSheetSubUnitId:i,onlyInputFormula:!0,onChange:ze(async Y=>{const ae=(Y??"").trim();p(ae),te(ae)},"onChange")})}),Ht.jsx(yo,{children:Ht.jsx("div",{ref:c,children:W.map(Y=>Ht.jsx(Vue,{item:Y,commonProps:{onItemChange:K},style:{marginBottom:12}},Y.id))})})]}):Ht.jsx(yo,{error:k,children:Ht.jsxs("div",{ref:c,style:{marginTop:"-12px"},children:[Ht.jsx(x4e,{list:V,onListChange:X,rowHeight:32,margin:[0,12],draggableHandle:".draggableHandle",itemRender:ze(Y=>Ht.jsx(Vue,{item:Y,commonProps:{onItemChange:z,onItemDelete:F}},Y.id),"itemRender"),idKey:"id"}),Ht.jsxs("a",{className:Su.dataValidationFormulaListAdd,onClick:G,children:[Ht.jsx(fXe,{}),v.t("dataValidation.list.add")]})]})})]})}ze(CXe,"ListFormulaInput");function SXe(t){const{value:e,onChange:n,showError:r,validResult:i}=t,a=Ne(sn),o=r?i==null?void 0:i.formula1:"",s=r?i==null?void 0:i.formula2:"",[l,u]=E.useState(!((e==null?void 0:e.formula1)===void 0&&(e==null?void 0:e.formula2)===void 0));return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(yo,{children:Ht.jsx(tp,{checked:l,onChange:ze(c=>{c?u(!0):(u(!1),n==null||n({...e,formula1:void 0,formula2:void 0}))},"onChange"),children:a.t("dataValidation.checkbox.tips")})}),l?Ht.jsx(yo,{label:a.t("dataValidation.checkbox.checked"),error:o,children:Ht.jsx(Qs,{className:Su.dataValidationFormula,placeholder:a.t("dataValidation.panel.valuePlaceholder"),value:e==null?void 0:e.formula1,onChange:ze(c=>{n==null||n({...e,formula1:c||void 0})},"onChange")})}):null,l?Ht.jsx(yo,{label:a.t("dataValidation.checkbox.unchecked"),error:s,children:Ht.jsx(Qs,{className:Su.dataValidationFormula,placeholder:a.t("dataValidation.panel.valuePlaceholder"),value:e==null?void 0:e.formula2,onChange:ze(c=>{n==null||n({...e,formula2:c||void 0})},"onChange")})}):null]})}ze(SXe,"CheckboxFormulaInput");const bXe="data-validation.custom-formula-input",Ab="data-validation.formula-input",yXe="data-validation.list-formula-input",EXe="data-validation.checkbox-formula-input",$an=[[bXe,sXe],[Ab,Pan],[yXe,CXe],[EXe,SXe]];var Wan=Object.defineProperty,zan=Object.getOwnPropertyDescriptor,qan=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?zan(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Wan(e,n,i),i},"__decorateClass$g"),AU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$g");const aE=6;var wU;let oX=(wU=class{constructor(t,e,n){this._commandService=t,this._formulaService=e,this._themeService=n}_calc(t,e){var n,r,i;const{vt:a,ht:o}=e||{},s=t.endX-t.startX-aE*2,l=t.endY-t.startY,u=((n=e==null?void 0:e.fs)!=null?n:10)*1.6;let c=0,d=0;switch(a){case ea.TOP:d=0;break;case ea.BOTTOM:d=0+(l-u);break;default:d=0+(l-u)/2;break}switch(o){case dr.LEFT:c=aE;break;case dr.RIGHT:c=aE+(s-u);break;default:c=aE+(s-u)/2;break}return{left:t.startX+c,top:t.startY+d,width:((r=e==null?void 0:e.fs)!=null?r:10)*1.6,height:((i=e==null?void 0:e.fs)!=null?i:10)*1.6}}calcCellAutoHeight(t){var e;const{style:n}=t;return((e=n==null?void 0:n.fs)!=null?e:10)*1.6}async _parseFormula(t,e,n){var r,i;const{formula1:a=vC,formula2:o=_C}=t,s=await this._formulaService.getRuleFormulaResult(e,n,t.uid);return{formula1:Ar(a)?nd((r=s==null?void 0:s[0])==null?void 0:r.result):a,formula2:Ar(o)?nd((i=s==null?void 0:s[1])==null?void 0:i.result):o}}drawWith(t,e){var n,r,i,a,o;const{style:s,data:l,primaryWithCoord:u,unitId:c,subUnitId:d,worksheet:h,row:f,col:m}=e,g=u.isMergedMainCell?u.mergeInfo:u,p=es(h.getCellRaw(f,m)),v=(n=l.dataValidation)==null?void 0:n.rule,_=(r=l.dataValidation)==null?void 0:r.validator;if(!v||!_)return;const C=this._themeService.getCurrentTheme();if(!_.skipDefaultFontRender(v,p,{unitId:c,subUnitId:d}))return;const S=_.parseFormulaSync(v,c,d),{formula1:b}=S,y=this._calc(g,s),{a:A,d:w}=t.getTransform(),P=Rr(y.left,A),M=Rr(y.top,w),L=a1.create().composeMatrix({left:P,top:M,scaleX:1,scaleY:1,angle:0,skewX:0,skewY:0,flipX:!1,flipY:!1}),k=g.endX-g.startX,O=g.endY-g.startY;t.save(),t.beginPath(),t.rect(g.startX,g.startY,k,O),t.clip();const $=L.getMatrix();t.transform($[0],$[1],$[2],$[3],$[4],$[5]);const B=((i=s==null?void 0:s.fs)!=null?i:10)*1.6,V=String(p)===String(b),X=C.hyacinth500;nye.drawWith(t,{checked:V,width:B,height:B,fill:(o=(a=s==null?void 0:s.cl)==null?void 0:a.rgb)!=null?o:X}),t.restore()}isHit(t,e){const n=e.primaryWithCoord.isMergedMainCell?e.primaryWithCoord.mergeInfo:e.primaryWithCoord,r=this._calc(n,e.style),i=r.top,a=r.top+r.height,o=r.left,s=r.left+r.width,{x:l,y:u}=t;return l<=s&&l>=o&&u<=a&&u>=i}async onPointerDown(t,e){var n,r;if(e.button===2)return;const{primaryWithCoord:i,unitId:a,subUnitId:o,data:s,worksheet:l,row:u,col:c}=t,d=es(l.getCellRaw(u,c)),h=(n=s.dataValidation)==null?void 0:n.rule,f=(r=s.dataValidation)==null?void 0:r.validator;if(!h||!f||!f.skipDefaultFontRender(h,d,{unitId:a,subUnitId:o}))return;const{formula1:m,formula2:g}=await this._parseFormula(h,a,o),p={range:{startColumn:i.actualColumn,endColumn:i.actualColumn,startRow:i.actualRow,endRow:i.actualRow},value:{v:String(d)===a8(String(m))?g:m,p:null}};this._commandService.executeCommand(Uu.id,p)}},ze(wU,"CheckboxRender"),wU);oX=qan([AU(0,me),AU(1,se(bc)),AU(2,se(Ja))],oX);const vC=1,_C=0;function sX(t,e){return Ie.isBlank(t)?e.t("dataValidation.validFail.value"):Ar(t)?e.t("dataValidation.validFail.primitive"):""}ze(sX,"getFailMessage");const a8=ze(t=>Ie.isDefine(t)&&String(t).toLowerCase()==="true"?"1":String(t).toLowerCase()==="false"?"0":t,"transformCheckboxValue"),RXe=class extends jf{constructor(){super(...arguments),In(this,"id",ia.CHECKBOX),In(this,"title","dataValidation.checkbox.title"),In(this,"operators",[]),In(this,"scopes",["sheet"]),In(this,"formulaInput",EXe),In(this,"canvasRender",this.injector.createInstance(oX)),In(this,"_formulaService",this.injector.get(bc))}skipDefaultFontRender(e,n,r){const{formula1:i,formula2:a}=this.parseFormulaSync(e,r.unitId,r.subUnitId),o=`${n??""}`;return!o||o===`${i}`||o===`${a}`}validatorFormula(e,n,r){const{formula1:i,formula2:a}=e,o=i===a;if(Ie.isBlank(i)&&Ie.isBlank(a))return{success:!0};if(o)return{success:!1,formula1:this.localeService.t("dataValidation.validFail.checkboxEqual"),formula2:this.localeService.t("dataValidation.validFail.checkboxEqual")};const s=sX(i,this.localeService),l=sX(a,this.localeService);return{success:!s&&!l,formula1:s,formula2:l}}async parseFormula(e,n,r){var i,a;const{formula1:o=vC,formula2:s=_C}=e,l=await this._formulaService.getRuleFormulaResult(n,r,e.uid),u=Ar(o)?nd((i=l==null?void 0:l[0])==null?void 0:i.result):o,c=Ar(s)?nd((a=l==null?void 0:l[1])==null?void 0:a.result):s;return{formula1:a8(u),formula2:a8(c),originFormula1:u,originFormula2:c}}getExtraStyle(e,n){return{tb:Li.CLIP}}parseFormulaSync(e,n,r){var i,a;const{formula1:o=vC,formula2:s=_C}=e,l=this._formulaService.getRuleFormulaResultSync(n,r,e.uid),u=Ar(o)?nd((i=l==null?void 0:l[0])==null?void 0:i.result):o,c=Ar(s)?nd((a=l==null?void 0:l[1])==null?void 0:a.result):s;return{formula1:a8(u),formula2:a8(c),originFormula1:u,originFormula2:c}}async isValidType(e,n,r){const{value:i,unitId:a,subUnitId:o}=e,{formula1:s,formula2:l,originFormula1:u,originFormula2:c}=await this.parseFormula(r,a,o);return!Ie.isDefine(s)||!Ie.isDefine(l)?!0:Ie.isDefine(i)&&(String(i)===String(s)||String(i)===String(l)||String(i)===String(u??"")||String(i)===String(c??""))}generateRuleErrorMessage(e){return this.localeService.t("dataValidation.checkbox.error")}};ze(RXe,"CheckboxValidator");let Yan=RXe;const Xan={[Wt.BETWEEN]:"dataValidation.date.operators.between",[Wt.EQUAL]:"dataValidation.date.operators.equal",[Wt.GREATER_THAN]:"dataValidation.date.operators.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.date.operators.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.date.operators.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.date.operators.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.date.operators.notBetween",[Wt.NOT_EQUAL]:"dataValidation.date.operators.notEqual"};Wt.BETWEEN+"",Wt.EQUAL+"",Wt.GREATER_THAN+"",Wt.GREATER_THAN_OR_EQUAL+"",Wt.LESS_THAN+"",Wt.LESS_THAN_OR_EQUAL+"",Wt.NOT_BETWEEN+"",Wt.NOT_EQUAL+"";const Gan={[Wt.BETWEEN]:"dataValidation.date.ruleName.between",[Wt.EQUAL]:"dataValidation.date.ruleName.equal",[Wt.GREATER_THAN]:"dataValidation.date.ruleName.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.date.ruleName.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.date.ruleName.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.date.ruleName.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.date.ruleName.notBetween",[Wt.NOT_EQUAL]:"dataValidation.date.ruleName.notEqual"},Qan={[Wt.BETWEEN]:"dataValidation.date.errorMsg.between",[Wt.EQUAL]:"dataValidation.date.errorMsg.equal",[Wt.GREATER_THAN]:"dataValidation.date.errorMsg.greaterThan",[Wt.GREATER_THAN_OR_EQUAL]:"dataValidation.date.errorMsg.greaterThanOrEqual",[Wt.LESS_THAN]:"dataValidation.date.errorMsg.lessThan",[Wt.LESS_THAN_OR_EQUAL]:"dataValidation.date.errorMsg.lessThanOrEqual",[Wt.NOT_BETWEEN]:"dataValidation.date.errorMsg.notBetween",[Wt.NOT_EQUAL]:"dataValidation.date.errorMsg.notEqual"},aO=[Wt.BETWEEN,Wt.NOT_BETWEEN];var Kan=Object.defineProperty,Zan=Object.getOwnPropertyDescriptor,Jan=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Zan(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Kan(e,n,i),i},"__decorateClass$f"),Bue=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$f"),DU;let mh=(DU=class extends et{constructor(t,e){super(),In(this,"_open$",new Pn(!1)),In(this,"open$",this._open$.pipe(Hl())),In(this,"_activeRule"),In(this,"_activeRule$",new Pn(void 0)),In(this,"activeRule$",this._activeRule$.asObservable()),In(this,"_closeDisposable",null),this._univerInstanceService=t,this._sidebarService=e,this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(le.UNIVER_SHEET).pipe(mo(n=>!n)).subscribe(()=>{this.close()}))}get activeRule(){return this._activeRule}get isOpen(){return this._open$.getValue()}dispose(){var t;super.dispose(),this._open$.next(!1),this._open$.complete(),this._activeRule$.complete(),(t=this._closeDisposable)==null||t.dispose()}open(){this._open$.next(!0)}close(){var t;this._open$.next(!1),(t=this._closeDisposable)==null||t.dispose()}setCloseDisposable(t){this._closeDisposable=$t(()=>{t.dispose(),this._closeDisposable=null})}setActiveRule(t){this._activeRule=t,this._activeRule$.next(t)}},ze(DU,"DataValidationPanelService"),DU);mh=Jan([Bue(0,Ce),Bue(1,ol)],mh);const eon="univer-data-validation-options-button",ton="univer-data-validation-options-button-icon",IU={dataValidationOptionsButton:eon,dataValidationOptionsButtonIcon:ton};function AXe(t){var e;const n=Ne(sn),r=Ne(ja),{value:i,onChange:a,extraComponent:o}=t,[s,l]=E.useState(!1),u=o?r.get(o):null;return Ht.jsxs(Ht.Fragment,{children:[Ht.jsxs("div",{className:IU.dataValidationOptionsButton,onClick:ze(()=>l(!s),"onClick"),children:[n.t("dataValidation.panel.options"),s?Ht.jsx(gXe,{className:IU.dataValidationOptionsButtonIcon}):Ht.jsx(mXe,{className:IU.dataValidationOptionsButtonIcon})]}),s&&Ht.jsxs(Ht.Fragment,{children:[u?Ht.jsx(u,{value:i,onChange:a}):null,Ht.jsx(yo,{label:n.t("dataValidation.panel.invalid"),children:Ht.jsxs(np,{value:`${(e=i.errorStyle)!=null?e:F6.WARNING}`,onChange:ze(c=>a({...i,errorStyle:+c}),"onChange"),children:[Ht.jsx(gu,{value:`${F6.WARNING}`,children:n.t("dataValidation.panel.showWarning")}),Ht.jsx(gu,{value:`${F6.STOP}`,children:n.t("dataValidation.panel.rejectInput")})]})}),Ht.jsx(yo,{label:n.t("dataValidation.panel.messageInfo"),children:Ht.jsx(tp,{checked:i.showErrorMessage,onChange:ze(()=>a({...i,showErrorMessage:!i.showErrorMessage}),"onChange"),children:n.t("dataValidation.panel.showInfo")})}),i.showErrorMessage?Ht.jsx(yo,{children:Ht.jsx(Qs,{value:i.error,onChange:ze(c=>a({...i,error:c}),"onChange")})}):null]})]})}ze(AXe,"DataValidationOptions");const non="univer-data-validation-detail-form-item",ron="univer-data-validation-detail-buttons",ion="univer-data-validation-detail-button",W3={dataValidationDetailFormItem:non,dataValidationDetailButtons:ron,dataValidationDetailButton:ion},aon=ze(t=>_4(async(e,n,r,i)=>{const a=await t.executeCommand(e,n,r);i==null||i(a)},1e3),"debounceExecuteFactory");function wXe(){const[t,e]=E.useState(0),n=Ne(mh),r=ai(n.activeRule$,n.activeRule),{unitId:i,subUnitId:a,rule:o}=r||{},s=o.uid,l=Ne(D1),u=Ne(ja),c=Ne(me),d=Ne(xs),h=Ne(sn),[f,m]=E.useState(o),g=l.getValidatorItem(f.type),[p,v]=E.useState(!1),_=l.getValidatorsByScope(OYe.SHEET),[C,S]=E.useState(()=>f.ranges.map(F=>({unitId:"",sheetId:"",range:F}))),b=E.useMemo(()=>aon(c),[c]);if(E.useEffect(()=>{c.onCommandExecuted(F=>{(F.id===TC.id||F.id===LC.id)&&setTimeout(()=>{const H=d.getRuleById(i,a,s);e(W=>W+1),H&&(m(H),S(H.ranges.map(W=>({unitId:"",sheetId:"",range:W}))))},20)})},[c,d,s,a,i]),!g)return null;const y=g.operators,A=g.operatorNames,w=f.operator?Vrn.includes(f.operator):!1,P=ze(()=>{f.ranges.length&&(g.validatorFormula(f,i,a).success?n.setActiveRule(null):v(!0))},"handleOk"),M=US(F=>{if(TJe(F,C))return;S(F);const H=F.filter(K=>(!K.unitId||K.unitId===i)&&(!K.sheetId||K.sheetId===a)).map(K=>K.range);if(m({...f,ranges:H}),H.length===0)return;const W={unitId:i,subUnitId:a,ruleId:s,ranges:H};b(sO.id,W)}),L=ze(F=>{if(dH(F,S7(f)))return;m({...f,...F});const H={unitId:i,subUnitId:a,ruleId:s,setting:F};b(TP.id,H,void 0)},"handleUpdateRuleSetting"),k=ze(async()=>{await c.executeCommand(uO.id,{ruleId:s,unitId:i,subUnitId:a}),n.setActiveRule(null)},"handleDelete"),O={type:f.type,operator:f.operator,formula1:f.formula1,formula2:f.formula2,allowBlank:f.allowBlank},$=ze(F=>{const H=l.getValidatorItem(F);if(!H)return;const W=H.operators,K=d.getRuleById(i,a,s),G=F===(K==null?void 0:K.type)||F.includes("list")&&K!=null&&K.type.includes("list")?{...K,type:F}:{...f,type:F,operator:W[0],formula1:void 0,formula2:void 0};m(G),c.executeCommand(TP.id,{unitId:i,subUnitId:a,ruleId:f.uid,setting:S7(G)})},"handleChangeType"),B=u.get(g.formulaInput),V=E.useMemo(()=>C.map(F=>Jo(F.range)).join(","),[]),X=b7(f),z=ze(F=>{dH(F,b7(f))||(m({...f,...F}),b(fie.id,{unitId:i,subUnitId:a,ruleId:s,options:F}))},"handleUpdateRuleOptions");return Ht.jsxs("div",{children:[Ht.jsx(yo,{label:h.t("dataValidation.panel.range"),error:f.ranges.length?"":h.t("dataValidation.panel.rangeError"),children:Ht.jsx(mL,{className:W3.dataValidationDetailFormItem,value:V,id:qg("data-validation-detail"),openForSheetUnitId:i,openForSheetSubUnitId:a,onChange:ze(F=>{F.some(H=>!QP(H.range)||H.range.endColumn<H.range.startColumn||H.range.endRow<H.range.startRow)||M(F)},"onChange")},t)}),Ht.jsx(yo,{label:h.t("dataValidation.panel.type"),children:Ht.jsx(md,{options:_==null?void 0:_.map(F=>({label:h.t(F.title),value:F.id})),value:f.type,onChange:$,className:W3.dataValidationDetailFormItem})}),y!=null&&y.length?Ht.jsx(yo,{label:h.t("dataValidation.panel.operator"),children:Ht.jsx(md,{options:y.map((F,H)=>({value:`${F}`,label:A[H]})),value:`${f.operator}`,onChange:ze(F=>{L({...O,operator:F})},"onChange"),className:W3.dataValidationDetailFormItem})}):null,B?Ht.jsx(B,{isTwoFormula:w,value:{formula1:f.formula1,formula2:f.formula2},onChange:ze(F=>{L({...O,...F})},"onChange"),showError:p,validResult:g.validatorFormula(f,i,a),unitId:i,subUnitId:a,ruleId:s},t+f.type):null,Ht.jsx(AXe,{value:X,onChange:z,extraComponent:g.optionsInput}),Ht.jsxs("div",{className:W3.dataValidationDetailButtons,children:[Ht.jsx(fa,{className:W3.dataValidationDetailButton,onClick:k,children:h.t("dataValidation.panel.removeRule")}),Ht.jsx(fa,{className:W3.dataValidationDetailButton,type:"primary",onClick:P,children:h.t("dataValidation.panel.done")})]})]})}ze(wXe,"DataValidationDetail");const oon="univer-data-validation-item-container",son="univer-data-validation-item-title",lon="univer-data-validation-item-content",uon="univer-data-validation-item-icon",oE={dataValidationItemContainer:oon,dataValidationItemTitle:son,dataValidationItemContent:lon,dataValidationItemIcon:uon},con=ze(t=>{const{rule:e,onClick:n,unitId:r,subUnitId:i,disable:a}=t,o=Ne(D1),s=Ne(me),l=Ne(l3),u=o.getValidatorItem(e.type),c=E.useRef(),[d,h]=E.useState(!1),f=ze(m=>{s.executeCommand(uO.id,{ruleId:e.uid,unitId:r,subUnitId:i}),m.stopPropagation()},"handleDelete");return E.useEffect(()=>()=>{var m;c.current&&((m=c.current)==null||m.forEach(g=>{g&&l.removeShape(g)}))},[l]),Ht.jsxs("div",{className:oE.dataValidationItemContainer,onClick:n,onMouseEnter:ze(()=>{a||(h(!0),c.current=e.ranges.map(m=>l.addShape({range:m,style:{hasAutoFill:!1,fill:"rgba(73, 184, 17, 0.05)",strokeWidth:1,stroke:"#49B811",widgets:{}},primary:{startColumn:m.startColumn,endColumn:m.endColumn,startRow:m.startRow,endRow:m.endRow,actualRow:m.startRow,actualColumn:m.startColumn,isMerged:!1,isMergedMainCell:!1}})))},"onMouseEnter"),onMouseLeave:ze(()=>{var m;h(!1),(m=c.current)==null||m.forEach(g=>{g&&l.removeShape(g)}),c.current=void 0},"onMouseLeave"),children:[Ht.jsx("div",{className:oE.dataValidationItemTitle,children:u==null?void 0:u.generateRuleName(e)}),Ht.jsx("div",{className:oE.dataValidationItemContent,children:e.ranges.map(m=>Jo(m)).join(",")}),d?Ht.jsx("div",{className:oE.dataValidationItemIcon,onClick:f,children:Ht.jsx(lie,{})}):null]})},"DataValidationItem"),don="univer-data-validation-list-buttons",hon="univer-data-validation-list-button",PU={dataValidationListButtons:don,dataValidationListButton:hon};function DXe(){const t=Ne(Ce),e=ai(()=>t.getCurrentTypeOfUnit$(le.UNIVER_SHEET),void 0,void 0,[]);return e?Ht.jsx(IXe,{workbook:e}):null}ze(DXe,"DataValidationList");function IXe(t){const e=Ne(io),n=Ne(Ce),r=Ne(me),i=Ne(Wn),a=Ne(mh),o=Ne(sn),[s,l]=E.useState([]),{workbook:u}=t,c=ai(u.activeSheet$,void 0,!0),d=u.getUnitId(),h=c==null?void 0:c.getSheetId();E.useEffect(()=>{l(e.getRules(d,h));const v=e.ruleChange$.subscribe(_=>{_.unitId===d&&_.subUnitId===h&&l(e.getRules(d,h))});return()=>{v.unsubscribe()}},[d,h,e]);const f=ze(async()=>{const v=aie(i),_={unitId:d,subUnitId:h,rule:v};await r.executeCommand(wb.id,_),a.setActiveRule({unitId:d,subUnitId:h,rule:v})},"handleAddRule"),m=ze(()=>{r.executeCommand(mie.id,{unitId:d,subUnitId:h})},"handleRemoveAll"),g=ze(v=>{const _=n.getCurrentUnitForType(le.UNIVER_SHEET),C=_.getActiveSheet(),S=_.getUnitId(),b=C.getSheetId();return v.map(y=>qzt(i,S,b,y.ranges)?{...y}:{...y,disable:!0})},"getDvRulesByPermissionCorrect")(s),p=g==null?void 0:g.some(v=>v.disable);return Ht.jsxs("div",{children:[g==null?void 0:g.map(v=>{var _;return Ht.jsx(con,{unitId:d,subUnitId:h,onClick:ze(()=>{v.disable||a.setActiveRule({unitId:d,subUnitId:h,rule:v})},"onClick"),rule:v,disable:(_=v.disable)!=null?_:!1},v.uid)}),Ht.jsxs("div",{className:PU.dataValidationListButtons,children:[s.length&&!p?Ht.jsx(fa,{className:PU.dataValidationListButton,onClick:m,children:o.t("dataValidation.panel.removeAll")}):null,Ht.jsx(fa,{className:PU.dataValidationListButton,type:"primary",onClick:f,children:o.t("dataValidation.panel.add")})]})]})}ze(IXe,"DataValidationListWithWorkbook");const fon=ze(()=>{const t=Ne(mh),e=ai(t.activeRule$,t.activeRule);return e?Ht.jsx(wXe,{},e.rule.uid):Ht.jsx(DXe,{})},"DataValidationPanel");function PXe(){const t=Ne(G0),e=ai(t.activeDropdown$,t.activeDropdown),n=Ne(ja);if(!e)return null;const{location:r,componentKey:i}=e,a=n.get(i),o=`${r.unitId}-${r.subUnitId}-${r.row}-${r.col}`;if(!a)return null;const s=ze(()=>{t.hideDropdown()},"hideFn");return Ht.jsx(a,{location:r,hideFn:s},o)}ze(PXe,"CellDropdown");const MXe="sheet.ui.dropdown";var mon=Object.defineProperty,gon=Object.getOwnPropertyDescriptor,pon=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?gon(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&mon(e,n,i),i},"__decorateClass$e"),$2=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$e"),MU;let G0=(MU=class extends et{constructor(t,e,n,r,i,a,o){super(),In(this,"_activeDropdown"),In(this,"_activeDropdown$",new Zt),In(this,"_currentPopup",null),In(this,"activeDropdown$",this._activeDropdown$.asObservable()),In(this,"_zenVisible",!1),this._canvasPopupManagerService=t,this._univerInstanceService=e,this._dataValidatorRegistryService=n,this._zenZoneService=r,this._renderManagerService=i,this._dataValidationModel=a,this._sheetsSelectionsService=o,this._init(),this._initSelectionChange(),this.disposeWithMe(()=>{this._activeDropdown$.complete()})}get activeDropdown(){return this._activeDropdown}_init(){this.disposeWithMe(this._zenZoneService.visible$.subscribe(t=>{this._zenVisible=t,t&&this.hideDropdown()}))}_getDropdownByCell(t,e,n,r){const i=t?this._univerInstanceService.getUnit(t,le.UNIVER_SHEET):this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return;const a=e?i.getSheetBySheetId(e):i.getActiveSheet();if(!a)return;const o=this._dataValidationModel.getRuleByLocation(i.getUnitId(),a.getSheetId(),n,r);if(!o)return;const s=this._dataValidatorRegistryService.getValidatorItem(o.type);return s==null?void 0:s.dropdown}_initSelectionChange(){this.disposeWithMe(this._sheetsSelectionsService.selectionMoveEnd$.subscribe(t=>{t&&t.every(e=>!(e.primary&&this._getDropdownByCell(e.primary.unitId,e.primary.sheetId,e.primary.actualRow,e.primary.actualColumn)))&&this.hideDropdown()}))}showDropdown(t,e=!0){const{location:n}=t,{row:r,col:i,unitId:a,subUnitId:o}=n;if(this._currentPopup&&this._currentPopup.dispose(),this._zenVisible)return;this._activeDropdown=t,this._activeDropdown$.next(this._activeDropdown);const s=this._renderManagerService.getRenderById(Ki),l=this._canvasPopupManagerService.attachPopupToCell(r,i,{componentKey:MXe,onClickOutside:ze(()=>{e&&this.hideDropdown()},"onClickOutside"),offset:[0,3],excludeOutside:[s==null?void 0:s.engine.getCanvasElement()].filter(Boolean)},a,o);if(!l)throw new Error("[DataValidationDropdownManagerService]: cannot show dropdown!");const u=new Gi;u.add(l),u.add({dispose:ze(()=>{var c,d;(d=(c=this._activeDropdown)==null?void 0:c.onHide)==null||d.call(c)},"dispose")}),this._currentPopup=u}hideDropdown(){this._activeDropdown&&(this._currentPopup&&this._currentPopup.dispose(),this._currentPopup=null,this._activeDropdown=null,this._activeDropdown$.next(null))}showDataValidationDropdown(t,e,n,r,i){const a=this._univerInstanceService.getUnit(t,le.UNIVER_SHEET);if(!a)return;const o=a.getSheetBySheetId(e);if(!o)return;const s=this._dataValidationModel.getRuleByLocation(a.getUnitId(),o.getSheetId(),n,r);if(!s)return;const l=this._dataValidatorRegistryService.getValidatorItem(s.type);if(!l||!l.dropdown){this.hideDropdown();return}this.showDropdown({location:{workbook:a,worksheet:o,row:n,col:r,unitId:t,subUnitId:e},componentKey:l.dropdown,onHide:i})}},ze(MU,"DataValidationDropdownManagerService"),MU);G0=pon([$2(0,se(_7)),$2(1,Ce),$2(2,se(D1)),$2(3,n9),$2(4,Sr),$2(5,se(io)),$2(6,se(Bt))],G0);const TXe="DataValidationPanel",h3={id:"data-validation.operation.open-validation-panel",type:Se.OPERATION,handler(t,e){if(!e)return!1;const{ruleId:n,isAdd:r}=e,i=t.get(mh),a=t.get(xs),o=t.get(Ce),s=t.get(ol),l=Dn(o);if(!l)return!1;const{unitId:u,subUnitId:c}=l,d=n?a.getRuleById(u,c,n):void 0;i.open(),i.setActiveRule(d&&{unitId:u,subUnitId:c,rule:d});const h=s.open({header:{title:r?"dataValidation.panel.addTitle":"dataValidation.panel.title"},children:{label:TXe},width:312,onClose:ze(()=>i.close(),"onClose")});return i.setCloseDisposable(h),!0}},cie={id:"data-validation.operation.close-validation-panel",type:Se.OPERATION,handler(t){return t.get(mh).close(),!0}},LXe={id:"data-validation.operation.toggle-validation-panel",type:Se.OPERATION,handler(t){const e=t.get(me),n=t.get(mh);return n.open(),n.isOpen?e.executeCommand(cie.id):e.executeCommand(h3.id),!0}},oO={type:Se.OPERATION,id:"sheet.operation.show-data-validation-dropdown",handler(t,e){if(!e)return!1;const n=t.get(G0),{unitId:r,subUnitId:i,row:a,column:o}=e,s=n.activeDropdown,l=s==null?void 0:s.location;return l&&l.unitId===r&&l.subUnitId===i&&l.row===a&&l.col===o||n.showDataValidationDropdown(r,i,a,o),!0}},xXe={type:Se.OPERATION,id:"sheet.operation.hide-data-validation-dropdown",handler(t,e){return e?(t.get(G0).hideDropdown(),!0):!1}},von="univer-dv-list-dropdown",_on="univer-dv-list-dropdown-title",Con="univer-dv-list-dropdown-list",Son="univer-dv-list-dropdown-list-container",bon="univer-dv-list-dropdown-selected-icon",yon="univer-dv-list-dropdown-item-container",Eon="univer-dv-list-dropdown-item",Ron="univer-dv-list-dropdown-split",Aon="univer-dv-list-dropdown-edit",Oh={dvListDropdown:von,dvListDropdownTitle:_on,dvListDropdownList:Con,dvListDropdownListContainer:Son,dvListDropdownSelectedIcon:bon,dvListDropdownItemContainer:yon,dvListDropdownItem:Eon,dvListDropdownSplit:Ron,dvListDropdownEdit:Aon},won=ze(t=>{const{value:e,onChange:n,multiple:r,options:i,title:a,onEdit:o,style:s,filter:l}=t,u=Ne(sn),c=l==null?void 0:l.toLowerCase(),d=i.filter(h=>c?h.label.toLowerCase().includes(c):!0);return Ht.jsxs("div",{className:Oh.dvListDropdown,style:s,children:[Ht.jsx("div",{className:Oh.dvListDropdownTitle,children:a}),Ht.jsx("div",{className:Oh.dvListDropdownList,children:Ht.jsx($3e,{children:Ht.jsx("div",{className:Oh.dvListDropdownListContainer,children:d.map((h,f)=>{const m=e.indexOf(h.value)>-1,g=ze(()=>{let v;m?v=new Set(e.filter(C=>C!==h.value)):v=new Set(r?[...e,h.value]:[h.value]);const _=[];i.forEach(C=>{v.has(C.value)&&_.push(C.value)}),n(_)},"handleClick"),p=h.label.toLocaleLowerCase().indexOf(c);return Ht.jsxs("div",{className:Oh.dvListDropdownItemContainer,onClick:g,children:[Ht.jsx("div",{className:Oh.dvListDropdownItem,style:{background:h.color||Ag},children:c&&h.label.toLowerCase().includes(c)?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx("span",{children:h.label.substring(0,p)}),Ht.jsx("span",{style:{fontWeight:"bold"},children:h.label.substring(p,p+c.length)}),Ht.jsx("span",{children:h.label.substring(p+c.length)})]}):h.label}),Ht.jsx("div",{className:Oh.dvListDropdownSelectedIcon,children:m?Ht.jsx(dXe,{}):null})]},f)})})},l)}),Ht.jsx("div",{className:Oh.dvListDropdownSplit}),Ht.jsx("div",{className:Oh.dvListDropdownEdit,children:Ht.jsx("a",{onClick:o,children:u.t("dataValidation.list.edit")})})]})},"SelectList");function OXe(t){var e,n;const{location:r,hideFn:i}=t,{worksheet:a,row:o,col:s,unitId:l,subUnitId:u}=r,c=Ne(xs),[d,h]=E.useState(""),f=Ne(me),m=Ne(sn),[g,p]=E.useState(""),v=Ne(Zl),_=Ne(Ce),C=E.useMemo(()=>c.ruleChange$.pipe(ah(16)),[]);ai(C);const S=iS.useContext(),b=S.right-S.left;if(E.useEffect(()=>{const V=f.onCommandExecuted(X=>{var z,F;if(X.id===Oi.id){const H=X.params,{unitId:W}=H,K=_.getUnit(W,le.UNIVER_DOC);if(!K)return;const G=Aa.transform.getPlainText((F=(z=K.getSnapshot().body)==null?void 0:z.dataStream)!=null?F:"");h(G)}});return()=>{V.dispose()}},[f,_]),!a)return null;const y=a.getCell(o,s),A=(e=y==null?void 0:y.dataValidation)==null?void 0:e.rule,w=(n=y==null?void 0:y.dataValidation)==null?void 0:n.validator,P=(A==null?void 0:A.renderMode)===kl.CUSTOM||(A==null?void 0:A.renderMode)===void 0;if(!y||!A||!w||w.id.indexOf(ia.LIST)!==0)return;const M=A.type===ia.LIST_MULTIPLE,L=w.getListWithColor(A,l,u),k=g||vXe(a.getCellRaw(o,s)),O=Rg(k),$=ze(()=>{f.executeCommand(h3.id,{ruleId:A.uid}),i()},"handleEdit"),B=L.map(V=>({label:V.label,value:V.label,color:P?V.color:"transparent"}));return Ht.jsx(won,{style:{minWidth:b,maxWidth:Math.max(b,200)},title:M?m.t("dataValidation.listMultiple.dropdown"):m.t("dataValidation.list.dropdown"),value:O,multiple:M,onChange:ze(V=>{const X=uie(V),z={unitId:l,subUnitId:u,range:{startColumn:s,endColumn:s,startRow:o,endRow:o},value:{v:X,p:null,f:null,si:null}};v.isVisible()&&v.changeVisible({visible:!1,keycode:Et.ESC,eventType:$i.Keyboard,unitId:l}),f.executeCommand(Uu.id,z),p(X),M||i()},"onChange"),options:B,onEdit:$,filter:d})}ze(OXe,"ListDropDown");var NXe={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(fan,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(g){var p={date:g,utc:!0,args:arguments};return new o(p)},l.utc=function(g){var p=s(this.toDate(),{locale:this.$L,utc:!0});return g?p.add(this.utcOffset(),n):p},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var c=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else c.call(this)};var d=l.utcOffset;l.utcOffset=function(g,p){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=function(b){b===void 0&&(b="");var y=b.match(r);if(!y)return null;var A=(""+y[0]).match(i)||["-",0,0],w=A[0],P=60*+A[1]+ +A[2];return P===0?0:w==="+"?P:-P}(g),g===null))return this;var _=Math.abs(g)<=16?60*g:g,C=this;if(p)return C.$offset=_,C.$u=g===0,C;if(g!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(_+S,n)).$offset=_,C.$x.$localOffset=S}else C=this.utc();return C};var h=l.format;l.format=function(g){var p=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,p)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var f=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var m=l.diff;l.diff=function(g,p,v){if(g&&this.$u===g.$u)return m.call(this,g,p,v);var _=this.local(),C=s(g).local();return m.call(_,C,p,v)}}})})(NXe);var Don=NXe.exports;const Ion=aXe(Don);var Pon=Object.defineProperty,Mon=Object.getOwnPropertyDescriptor,Ton=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Mon(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Pon(e,n,i),i},"__decorateClass$d"),v5=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$d"),TU;let fv=(TU=class extends et{constructor(t,e,n,r,i){super(),this._editorBridgeService=t,this._dataValidationModel=e,this._dataValidatorRegistryService=n,this._dialogService=r,this._localeService=i,this._initEditorBridgeInterceptor()}_initEditorBridgeInterceptor(){this._editorBridgeService.interceptor.intercept(this._editorBridgeService.interceptor.getInterceptPoints().AFTER_CELL_EDIT_ASYNC,{handler:ze(async(t,e,n)=>{var r;const i=await t,{worksheet:a,row:o,col:s,unitId:l,subUnitId:u,workbook:c}=e,d=this._dataValidationModel.getRuleIdByLocation(l,u,o,s),h=d?this._dataValidationModel.getRuleById(l,u,d):void 0;if(!h||h.errorStyle!==F6.STOP)return n(Promise.resolve(i));const f=await this._dataValidatorRegistryService.getValidatorItem(h.type);if(!f||await f.validator({value:es(i),interceptValue:es((r=e==null?void 0:e.origin)!=null?r:i),row:o,column:s,unitId:l,subUnitId:u,worksheet:a,workbook:c,t:i==null?void 0:i.t},h))return n(Promise.resolve(i));const m=a.getCellRaw(o,s);return this._dialogService.open({width:368,title:{title:this._localeService.t("dataValidation.alert.title")},id:"reject-input-dialog",children:{title:f.getRuleFinalError(h)},footer:{title:Re.createElement(fa,{type:"primary",onClick:ze(()=>this._dialogService.close("reject-input-dialog"),"onClick")},this._localeService.t("dataValidation.alert.ok"))},onClose:ze(()=>{this._dialogService.close("reject-input-dialog")},"onClose")}),n(Promise.resolve(m))},"handler")})}showReject(t){this._dialogService.open({width:368,title:{title:this._localeService.t("dataValidation.alert.title")},id:"reject-input-dialog",children:{title:t},footer:{title:Re.createElement(fa,{type:"primary",onClick:ze(()=>this._dialogService.close("reject-input-dialog"),"onClick")},this._localeService.t("dataValidation.alert.ok"))},onClose:ze(()=>{this._dialogService.close("reject-input-dialog")},"onClose")})}},ze(TU,"DataValidationRejectInputController"),TU);fv=Ton([yn(Vt.Ready,fv),v5(0,Zl),v5(1,se(io)),v5(2,se(D1)),v5(3,Rd),v5(4,se(sn))],fv);const Lon="univer-dv-date-dropdown",xon="univer-dv-date-dropdown-btns",Uue={dvDateDropdown:Lon,dvDateDropdownBtns:xon};gc.extend(Ion);const Oon=ze(t=>{if(t==null||typeof t=="boolean")return;if(typeof t=="number"||!Number.isNaN(+t))return gc(Fi.format("yyyy-MM-dd HH:mm:ss",Number(t)));const e=gc(t);if(e.isValid())return e},"transformDate");function kXe(t){var e,n,r;const{location:i,hideFn:a}=t,{worksheet:o,row:s,col:l,unitId:u,subUnitId:c,workbook:d}=i,h=Ne(me),f=Ne(fv),m=o.getCell(s,l),g=(e=m==null?void 0:m.dataValidation)==null?void 0:e.rule,p=(n=m==null?void 0:m.dataValidation)==null?void 0:n.validator,v=es(o.getCellRaw(s,l)),_=Oon(v),[C,S]=E.useState(_),b=!!((r=g==null?void 0:g.bizInfo)!=null&&r.showTime),y=C&&C.isValid()?C:gc(),A=Ne(sn);if(!m||!g||!p)return;const w=ze(async()=>{var P,M,L;if(!y)return;const k=y.format(b?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD 00:00:00"),O=(P=Fi.parseDate(k))==null?void 0:P.v,$=d.getStyles().getStyleByCell(m),B=(L=(M=$==null?void 0:$.n)==null?void 0:M.pattern)!=null?L:"",V=mC(B);g.errorStyle!==F6.STOP||await p.validator({value:O,unitId:u,subUnitId:c,row:s,column:l,worksheet:o,workbook:d,interceptValue:k.replace("Z","").replace("T"," "),t:rr.NUMBER},g)?(h.executeCommand(Uu.id,{unitId:u,subUnitId:c,range:{startColumn:l,endColumn:l,startRow:s,endRow:s},value:{v:O,t:2,p:null,f:null,si:null,s:{n:{pattern:b?V==="datetime"?B:"yyyy-MM-dd hh:mm:ss":V==="date"?B:"yyyy-MM-dd"}}}}),a()):f.showReject(p.getRuleFinalError(g))},"handleSave");return Ht.jsxs("div",{className:Uue.dvDateDropdown,children:[Ht.jsx(Wit,{defaultValue:y,pickerValue:y,showTime:b||void 0,onSelect:ze(async P=>{S(P)},"onSelect"),onPanelChange:ze(P=>{S(P)},"onPanelChange"),disabledDate:ze(P=>!Fi.parseDate(P.format("YYYY-MM-DD")),"disabledDate")}),Ht.jsx("div",{className:Uue.dvDateDropdownBtns,children:Ht.jsx(fa,{size:"small",type:"primary",onClick:w,disabled:!y.isValid(),children:A.t("dataValidation.alert.ok")})})]})}ze(kXe,"DateDropdown");const FXe="data-validation.list.dropdown",VXe="data-validation.date.dropdown",Non="DATE_SHOW_TIME_OPTION";function CC(t){var e;const{value:n,onChange:r}=t,i=Ne(sn);return Ht.jsx(yo,{children:Ht.jsx(tp,{checked:(e=n.bizInfo)==null?void 0:e.showTime,onChange:ze(a=>{r({...n,bizInfo:{...n.bizInfo,showTime:a}})},"onChange"),children:i.t("dataValidation.showTime.label")})})}ze(CC,"DateShowTimeOption");CC.componentKey=Non;const Hue="{FORMULA1}",jue="{FORMULA2}",_5=ze(t=>{var e,n;if(t==null||typeof t=="boolean")return;if(typeof t=="number"||!Number.isNaN(+t))return+t;const r=(e=Fi.parseDate(t))==null?void 0:e.v;return Ie.isDefine(r)?r:(n=Fi.parseDate(gc(t).format("YYYY-MM-DD HH:mm:ss")))==null?void 0:n.v},"transformDate2SerialNumber"),BXe=class extends jf{constructor(){super(...arguments),In(this,"id",ia.DATE),In(this,"title","dataValidation.date.title"),In(this,"operators",[Wt.BETWEEN,Wt.EQUAL,Wt.GREATER_THAN,Wt.GREATER_THAN_OR_EQUAL,Wt.LESS_THAN,Wt.LESS_THAN_OR_EQUAL,Wt.NOT_BETWEEN,Wt.NOT_EQUAL]),In(this,"scopes",["sheet"]),In(this,"formulaInput",Ab),In(this,"optionsInput",CC.componentKey),In(this,"dropdown",VXe),In(this,"_formulaService",this.injector.get(bc))}async parseFormula(e,n,r){var i,a;const o=await this._formulaService.getRuleFormulaResult(n,r,e.uid),{formula1:s,formula2:l}=e;return{formula1:_5(Ar(s)?nd((i=o==null?void 0:o[0])==null?void 0:i.result):s),formula2:_5(Ar(l)?nd((a=o==null?void 0:o[1])==null?void 0:a.result):l)}}parseFormulaSync(e,n,r){var i,a;const o=this._formulaService.getRuleFormulaResultSync(n,r,e.uid),{formula1:s,formula2:l}=e;return{formula1:_5(Ar(s)?nd((i=o==null?void 0:o[0])==null?void 0:i.result):s),formula2:_5(Ar(l)?nd((a=o==null?void 0:o[1])==null?void 0:a.result):l)}}async isValidType(e){const{interceptValue:n,value:r}=e;return typeof r=="number"&&typeof n=="string"?!0:typeof n=="string"?!!Fi.parseDate(n):!1}_validatorSingleFormula(e){return!Ie.isBlank(e)&&(Ar(e)||!Number.isNaN(+e)||!!(e&&Fi.parseDate(e)))}validatorFormula(e,n,r){const i=e.operator;if(!i)return{success:!1};const a=this._validatorSingleFormula(e.formula1),o=this.localeService.t("dataValidation.validFail.date");if(aO.includes(i)){const s=this._validatorSingleFormula(e.formula2);return{success:a&&s,formula1:a?void 0:o,formula2:s?void 0:o}}return{success:a,formula1:a?void 0:o}}normalizeFormula(e,n,r){const{formula1:i,formula2:a,bizInfo:o}=e,s=ze(l=>{var u;if(!l)return l;let c;if(!Number.isNaN(+l))c=Fi.dateFromSerial(+l);else{const d=(u=Fi.parseDate(l))==null?void 0:u.v;if(d==null)return"";c=Fi.dateFromSerial(d)}return gc(`${c[0]}/${c[1]}/${c[2]} ${c[3]}:${c[4]}:${c[5]}`).format(o!=null&&o.showTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD")},"normlizeSingleFormula");return{formula1:Ar(i)?i:s(`${i}`),formula2:Ar(a)?a:s(`${a}`)}}transform(e,n,r){const{value:i}=e;return{...e,value:_5(i)}}async validatorIsEqual(e,n,r){const{formula1:i}=n,{value:a}=e;return Number.isNaN(i)?!0:a===i}async validatorIsNotEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value!==i}async validatorIsBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value>=o&&e.value<=s}async validatorIsNotBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value<o||e.value>s}async validatorIsGreaterThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>i}async validatorIsGreaterThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>=i}async validatorIsLessThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<i}async validatorIsLessThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<=i}get operatorNames(){return this.operators.map(e=>this.localeService.t(Xan[e]))}generateRuleName(e){var n,r;if(!e.operator)return this.titleStr;const i=this.localeService.t(Gan[e.operator]).replace(Hue,(n=e.formula1)!=null?n:"").replace(jue,(r=e.formula2)!=null?r:"");return`${this.titleStr} ${i}`}generateRuleErrorMessage(e){var n,r;return e.operator?`${this.localeService.t(Qan[e.operator]).replace(Hue,(n=e.formula1)!=null?n:"").replace(jue,(r=e.formula2)!=null?r:"")}`:this.titleStr}};ze(BXe,"DateValidator");let kon=BXe;const Fon="LIST_RENDER_MODE_OPTION_INPUT";function SC(t){var e;const{value:n,onChange:r}=t,i=Ne(sn);return Ht.jsx(yo,{label:i.t("dataValidation.renderMode.label"),children:Ht.jsxs(np,{value:`${(e=n.renderMode)!=null?e:kl.CUSTOM}`,onChange:ze(a=>r({...n,renderMode:+a}),"onChange"),children:[Ht.jsx(gu,{value:`${kl.CUSTOM}`,children:i.t("dataValidation.renderMode.chip")}),Ht.jsx(gu,{value:`${kl.ARROW}`,children:i.t("dataValidation.renderMode.arrow")}),Ht.jsx(gu,{value:`${kl.TEXT}`,children:i.t("dataValidation.renderMode.text")})]})})}ze(SC,"ListRenderModeInput");SC.componentKey=Fon;var Von=Object.defineProperty,Bon=Object.getOwnPropertyDescriptor,Uon=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Bon(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Von(e,n,i),i},"__decorateClass$c"),$ue=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$c");const C5=4,sE=4,W2=14,c6=6,lX=4,Hon="#565656",Wue=new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");function UXe(t,e){const n=t.length;return{id:"d",body:{dataStream:`${t}${Sd}`,textRuns:[{ts:{fs:11,ff:void 0,it:at.FALSE,bl:at.FALSE,ul:{s:at.FALSE},st:{s:at.FALSE},ol:{s:at.FALSE},cl:void 0,...e,bg:void 0,bd:void 0},st:0,ed:n}]},documentStyle:{pageSize:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY}}}}ze(UXe,"convertToDocumentData");function die(t,e,n){const r=UXe(t,n),i=new sh(r),a=new H4(i);return{documentSkeleton:X4.create(a,e),docModel:i,docViewModel:a}}ze(die,"createDocSkeleton");function jA(t,e,n){const{documentSkeleton:r,docModel:i,docViewModel:a}=die(t,e,n);return{documents:new E_(`DOCUMENTS_${Ie.generateRandomId()}`,r,{pageMarginLeft:0,pageMarginTop:0}),documentSkeleton:r,docModel:i,docViewModel:a}}ze(jA,"createDocuments");function uX(t,e,n,r,i,a,o=!0){let s=0;const l=o?lX:0;switch(i){case ea.BOTTOM:s=e-l*2-r+l;break;case ea.MIDDLE:s=(e-l*2-r)/2+l;break;default:s=l;break}s=Math.max(lX,s);let u=0;switch(a){case dr.CENTER:u=(t-n)/2;break;case dr.RIGHT:u=t-n;break}return u=Math.max(c6,u),{paddingLeft:u,paddingTop:s}}ze(uX,"calcPadding");var LU;let cX=(LU=class{constructor(t,e){In(this,"_dropdownInfoMap",new Map),In(this,"zIndex"),In(this,"onPointerEnter"),In(this,"onPointerLeave"),this._localeService=t,this._commandService=e}_ensureMap(t){let e=this._dropdownInfoMap.get(t);return e||(e=new Map,this._dropdownInfoMap.set(t,e)),e}_generateKey(t,e){return`${t}.${e}`}_drawDownIcon(t,e,n,r,i,a,o){const{t:s=ba.pd.t,b:l=ba.pd.b}=o,u=n-W2;let c;switch(a){case ea.MIDDLE:c=(r-sE)/2;break;case ea.BOTTOM:c=r-sE/2-l-i/2;break;default:c=s+i/2-sE/2;break}t.save(),t.translateWithPrecision(e.startX+u,e.startY+c),t.fillStyle="#565656",t.fill(Wue),t.restore()}drawWith(t,e,n){var r,i;const{primaryWithCoord:a,row:o,col:s,style:l,data:u,subUnitId:c}=e,d=a.isMergedMainCell?a.mergeInfo:a,h=(r=u.dataValidation)==null?void 0:r.rule,f=(i=u.dataValidation)==null?void 0:i.validator,m=u.fontRenderExtension,{leftOffset:g=0,rightOffset:p=0,topOffset:v=0,downOffset:_=0}=m||{};if(!h||!f||!f||f.id.indexOf(ia.LIST)!==0||!f.skipDefaultFontRender(h))return;const C={startX:d.startX+g,endX:d.endX-p,startY:d.startY+v,endY:d.endY-_},S=C.endX-C.startX,b=C.endY-C.startY,y=this._ensureMap(c),A=this._generateKey(o,s),w=f.getListWithColor(h),P=es(u),M=`${P??""}`,L=w.find(V=>V.label===M);let{tb:k,vt:O,ht:$,pd:B}=l||{};if(k=k??Li.WRAP,O=O??ea.BOTTOM,$=$??ba.ht,B=B??ba.pd,h.renderMode===kl.ARROW){const{l:V=ba.pd.l,t:X=ba.pd.t,r:z=ba.pd.r,b:F=ba.pd.b}=B,H=S-V-z-W2,{documentSkeleton:W,documents:K,docModel:G}=jA(M,this._localeService,l);k===Li.WRAP&&G.updateDocumentDataPageSize(Math.max(H,1)),W.calculate(),W.getActualSize();const te=ef(W),{height:Y,width:ae}=te,{paddingTop:ie,paddingLeft:ne}=uX(H,b-X-F,ae,Y,O,$,!1);this._drawDownIcon(t,C,S,b,Y,O,B),t.save(),t.translateWithPrecision(C.startX+V,C.startY+X),t.beginPath(),t.rect(0,0,S-V-z,b-X-F),t.clip(),t.translateWithPrecision(0,ie),t.save(),t.translateWithPrecision(C5,0),t.beginPath(),t.rect(0,0,H,Y),t.clip(),K.render(t),t.translateWithPrecision(ne,0),t.restore(),t.restore(),y.set(A,{left:C.endX+V+n.rowHeaderWidth-W2,top:C.startY+X+n.columnHeaderHeight,width:W2,height:b-X-F})}else{t.save(),t.translateWithPrecision(C.startX,C.startY),t.beginPath(),t.rect(0,0,S,b),t.clip();const V=S-c6*2-C5-W2,{documentSkeleton:X,documents:z,docModel:F}=jA(M,this._localeService,l);k===Li.WRAP&&F.updateDocumentDataPageSize(Math.max(V,1)),X.calculate();const H=ef(X),{height:W,width:K}=H,{paddingTop:G,paddingLeft:te}=uX(V,b,K,W,O,$);t.translateWithPrecision(c6,G);const Y=Math.max(S-c6*2,1),ae=W;ur.drawWith(t,{width:Y,height:ae,fill:(L==null?void 0:L.color)||Ag,radius:8}),t.save(),t.translateWithPrecision(C5,0),t.beginPath(),t.rect(0,0,V,W),t.clip(),t.translateWithPrecision(te,0),z.render(t),t.restore(),t.translateWithPrecision(V+C5+4,(W-sE)/2),t.fillStyle=Hon,t.fill(Wue),t.restore(),y.set(A,{left:C.startX+c6+n.rowHeaderWidth,top:C.startY+G+n.columnHeaderHeight,width:Y,height:ae})}}calcCellAutoHeight(t){var e;const{primaryWithCoord:n,style:r,data:i}=t,a=n.isMergedMainCell?n.mergeInfo:n,o=i.fontRenderExtension,{leftOffset:s=0,rightOffset:l=0,topOffset:u=0,downOffset:c=0}=o||{},d=(e=i.dataValidation)==null?void 0:e.rule;if(!d||d.renderMode===kl.TEXT)return;const h={startX:a.startX+s,endX:a.endX-l,startY:a.startY+u,endY:a.endY-c},f=h.endX-h.startX,m=es(i),g=`${m??""}`;let{tb:p,pd:v}=r||{};const{t:_=ba.pd.t,b:C=ba.pd.b}=v??{};if(p=p??Li.WRAP,d.renderMode===kl.ARROW){const S=f-W2,{documentSkeleton:b,docModel:y}=jA(g,this._localeService,r);p===Li.WRAP&&y.updateDocumentDataPageSize(Math.max(S,1)),b.calculate(),b.getActualSize();const A=ef(b),{height:w}=A;return w+_+C}else{const S=f-c6*2-C5-W2,{documentSkeleton:b,docModel:y}=die(g,this._localeService,r);p===Li.WRAP&&y.updateDocumentDataPageSize(Math.max(S,1)),b.calculate();const A=ef(b),{height:w}=A;return w+lX*2}}isHit(t,e){const{data:n,subUnitId:r,row:i,col:a}=e,o=this._ensureMap(r).get(this._generateKey(i,a)),s=n.dataValidation;if(!s||!o||s.rule.renderMode===kl.TEXT)return!1;const{top:l,left:u,width:c,height:d}=o,{x:h,y:f}=t;return h>=u&&h<=u+c&&f>=l&&f<=l+d}onPointerDown(t,e){if(e.button===2)return;const{unitId:n,subUnitId:r,row:i,col:a}=t,o={unitId:n,subUnitId:r,row:i,column:a};this._commandService.executeCommand(oO.id,o)}},ze(LU,"DropdownWidget"),LU);cX=Uon([$ue(0,se(sn)),$ue(1,me)],cX);function $A(t){if(!t)return[];const e=new Set;return t.forEach(n=>{n.forEach(r=>{var i,a;const o=es(r);if(o!=null){if(typeof o!="string"&&typeof(r==null?void 0:r.s)=="object"&&(a=(i=r.s)==null?void 0:i.n)!=null&&a.pattern){e.add(Fi.format(r.s.n.pattern,o,{throws:!1}));return}e.add(o.toString())}})}),[...e]}ze($A,"getRuleFormulaResultSet");const jon=["if","indirect","choose","offset"];function HXe(t,e){if(!Ar(t)||ES(t.slice(1)))return!0;const n=e.sequenceNodesBuilder(t);return n&&n.some(r=>typeof r=="object"&&r.nodeType===ya.FUNCTION&&jon.indexOf(r.token.toLowerCase())>-1)}ze(HXe,"isValidListFormula");function jXe(t,e){const{formula1:n="",ranges:r}=t;if(ES(n.slice(1))){const i=Uo(n.slice(1));if((!i.sheetName||i.sheetName===e)&&r.some(a=>ft.intersects(a,i.range)))return!0}return!1}ze(jXe,"isRuleIntersects");const $Xe=class extends jf{constructor(){super(...arguments),In(this,"formulaService",this.injector.get(bc)),In(this,"_lexer",this.injector.get(Kl)),In(this,"_univerInstanceService",this.injector.get(Ce)),In(this,"id",ia.LIST),In(this,"title","dataValidation.list.title"),In(this,"operators",[]),In(this,"scopes",["sheet"]),In(this,"formulaInput",yXe),In(this,"canvasRender",this.injector.createInstance(cX)),In(this,"dropdown",FXe),In(this,"optionsInput",SC.componentKey)}skipDefaultFontRender(e){return e.renderMode!==kl.TEXT}validatorFormula(e,n,r){var i,a,o;const s=!Ie.isBlank(e.formula1),l=HXe((i=e.formula1)!=null?i:"",this._lexer),u=(o=(a=this._univerInstanceService.getUnit(n,le.UNIVER_SHEET))==null?void 0:a.getSheetBySheetId(r))==null?void 0:o.getName(),c=jXe(e,u??"");return{success:!!(s&&l&&!c),formula1:s?l?c?this.localeService.t("dataValidation.validFail.listIntersects"):void 0:this.localeService.t("dataValidation.validFail.listInvalid"):this.localeService.t("dataValidation.validFail.list")}}getExtraStyle(e,n,{style:r}){var i;const a=(i=r.tb!==Li.OVERFLOW?r.tb:Li.CLIP)!=null?i:Li.WRAP;if(e.type===ia.LIST&&(e.renderMode===kl.ARROW||e.renderMode===kl.TEXT)){const o=this.getListWithColorMap(e),s=`${n??""}`,l=o[s];if(l)return{bg:{rgb:l},tb:a}}return{tb:a}}parseCellValue(e){const n=e.toString();return Rg(n)}async parseFormula(e,n,r){var i;const{formula1:a=""}=e,o=await this.formulaService.getRuleFormulaResult(n,r,e.uid);return{formula1:Ar(a)?$A((i=o==null?void 0:o[0])==null?void 0:i.result):Rg(a),formula2:void 0}}async isValidType(e,n,r){const{value:i}=e,{formula1:a=[]}=n;return this.parseCellValue(i).every(o=>a.includes(o))}generateRuleName(){return this.localeService.t("dataValidation.list.name")}generateRuleErrorMessage(){return this.localeService.t("dataValidation.list.error")}getList(e,n,r){var i,a,o;const{formula1:s=""}=e,l=this.injector.get(Ce),u=(i=n?l.getUniverSheetInstance(n):void 0)!=null?i:l.getCurrentUnitForType(le.UNIVER_SHEET);if(!u)return[];const c=(a=r?u.getSheetBySheetId(r):void 0)!=null?a:u.getActiveSheet();if(!c)return[];const d=u.getUnitId(),h=c.getSheetId(),f=this.formulaService.getRuleFormulaResultSync(d,h,e.uid);return Ar(s)?$A((o=f==null?void 0:f[0])==null?void 0:o.result):Rg(s)}async getListAsync(e,n,r){var i,a,o;const{formula1:s=""}=e,l=this.injector.get(Ce),u=(i=n?l.getUniverSheetInstance(n):void 0)!=null?i:l.getCurrentUnitForType(le.UNIVER_SHEET);if(!u)return[];const c=(a=r?u.getSheetBySheetId(r):void 0)!=null?a:u.getActiveSheet();if(!c)return[];const d=u.getUnitId(),h=c.getSheetId(),f=await this.formulaService.getRuleFormulaResult(d,h,e.uid);return Ar(s)?$A((o=f==null?void 0:f[0])==null?void 0:o.result):Rg(s)}getListWithColor(e,n,r){const i=this.getList(e,n,r),a=(e.formula2||"").split(",");return i.map((o,s)=>({label:o,color:a[s]}))}getListWithColorMap(e,n,r){const i=this.getListWithColor(e,n,r),a={};return i.forEach(o=>{o.color&&(a[o.label]=o.color)}),a}};ze($Xe,"ListValidator");let WXe=$Xe;function bC(t){let e=t;return typeof t=="string"?((t.startsWith("¥")||t.startsWith("$"))&&(e=t.slice(1)),+e):+t}ze(bC,"getCellValueNumber");const zXe=class extends jf{constructor(){super(...arguments),In(this,"_formulaService",this.injector.get(bc)),In(this,"id",ia.DECIMAL),In(this,"title","dataValidation.decimal.title"),In(this,"operators",[Wt.BETWEEN,Wt.EQUAL,Wt.GREATER_THAN,Wt.GREATER_THAN_OR_EQUAL,Wt.LESS_THAN,Wt.LESS_THAN_OR_EQUAL,Wt.NOT_BETWEEN,Wt.NOT_EQUAL]),In(this,"scopes",["sheet"]),In(this,"formulaInput",Ab),In(this,"dropDownInput")}_isFormulaOrNumber(e){return!Ie.isBlank(e)&&(Ar(e)||!Number.isNaN(+e))}async isValidType(e,n,r){const{value:i}=e;return!Number.isNaN(bC(i))}transform(e,n,r){const{value:i}=e;return{...e,value:bC(i)}}_parseNumber(e){return e==null?Number.NaN:+e}async parseFormula(e,n,r){var i,a,o,s,l,u,c,d;const h=await this._formulaService.getRuleFormulaResult(n,r,e.uid),{formula1:f,formula2:m}=e;return{formula1:this._parseNumber(Ar(f)?(s=(o=(a=(i=h==null?void 0:h[0])==null?void 0:i.result)==null?void 0:a[0])==null?void 0:o[0])==null?void 0:s.v:f),formula2:this._parseNumber(Ar(m)?(d=(c=(u=(l=h==null?void 0:h[1])==null?void 0:l.result)==null?void 0:u[0])==null?void 0:c[0])==null?void 0:d.v:m)}}validatorFormula(e,n,r){const i=e.operator;if(!i)return{success:!1};const a=Ie.isDefine(e.formula1)&&this._isFormulaOrNumber(e.formula1),o=Ie.isDefine(e.formula2)&&this._isFormulaOrNumber(e.formula2),s=aO.includes(i),l=this.localeService.t("dataValidation.validFail.number");return s?{success:a&&o,formula1:a?void 0:l,formula2:o?void 0:l}:{success:a,formula1:a?"":l}}async validatorIsEqual(e,n,r){const{formula1:i}=n,{value:a}=e;return Number.isNaN(i)?!0:a===i}async validatorIsNotEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value!==i}async validatorIsBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value>=o&&e.value<=s}async validatorIsNotBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value<o||e.value>s}async validatorIsGreaterThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>i}async validatorIsGreaterThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>=i}async validatorIsLessThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<i}async validatorIsLessThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<=i}};ze(zXe,"DecimalValidator");let $on=zXe;const Won="{FORMULA1}",zon="{FORMULA2}",qXe=class extends jf{constructor(){super(...arguments),In(this,"id",ia.TEXT_LENGTH),In(this,"title","dataValidation.textLength.title"),In(this,"operators",[Wt.BETWEEN,Wt.EQUAL,Wt.GREATER_THAN,Wt.GREATER_THAN_OR_EQUAL,Wt.LESS_THAN,Wt.LESS_THAN_OR_EQUAL,Wt.NOT_BETWEEN,Wt.NOT_EQUAL]),In(this,"scopes",["sheet"]),In(this,"formulaInput",Ab),In(this,"_formulaService",this.injector.get(bc))}_isFormulaOrInt(e){return!Ie.isBlank(e)&&(Ar(e)||!Number.isNaN(+e)&&Number.isInteger(+e))}validatorFormula(e,n,r){const i=e.operator;if(!i)return{success:!1};const a=Ie.isDefine(e.formula1)&&this._isFormulaOrInt(e.formula1),o=Ie.isDefine(e.formula2)&&this._isFormulaOrInt(e.formula2),s=aO.includes(i),l=this.localeService.t("dataValidation.validFail.number");return s?{success:a&&o,formula1:a?void 0:l,formula2:o?void 0:l}:{success:a,formula1:l}}_parseNumber(e){return e==null?Number.NaN:+e}_isValidFormula(e){return!Number.isNaN(e)}async parseFormula(e,n,r){var i,a,o,s,l,u,c,d;const h=await this._formulaService.getRuleFormulaResult(n,r,e.uid),{formula1:f,formula2:m}=e;return{formula1:this._parseNumber(Ar(f)?(s=(o=(a=(i=h==null?void 0:h[0])==null?void 0:i.result)==null?void 0:a[0])==null?void 0:o[0])==null?void 0:s.v:f),formula2:this._parseNumber(Ar(m)?(d=(c=(u=(l=h==null?void 0:h[1])==null?void 0:l.result)==null?void 0:u[0])==null?void 0:c[0])==null?void 0:d.v:m)}}transform(e,n,r){return{...e,value:e.value.toString().length}}async isValidType(e,n,r){const{value:i}=e;return typeof i=="string"||typeof i=="number"}async validatorIsEqual(e,n,r){const{formula1:i}=n;return Ie.isDefine(i)?e.value===i:!1}async validatorIsNotEqual(e,n,r){const{formula1:i}=n;return Ie.isDefine(i)?e.value!==i:!1}async validatorIsBetween(e,n,r){const{formula1:i,formula2:a}=n,{value:o}=e;if(!this._isValidFormula(i)||!this._isValidFormula(a))return!1;const s=Math.max(i,a),l=Math.min(i,a);return o>=l&&o<=s}async validatorIsNotBetween(e,n,r){const{formula1:i,formula2:a}=n,{value:o}=e;if(!this._isValidFormula(i)||!this._isValidFormula(a))return!1;const s=Math.max(i,a),l=Math.min(i,a);return o<l||o>s}async validatorIsGreaterThan(e,n,r){const{formula1:i}=n,{value:a}=e;return this._isValidFormula(i)?a>i:!1}async validatorIsGreaterThanOrEqual(e,n,r){const{formula1:i}=n,{value:a}=e;return this._isValidFormula(i)?a>=i:!1}async validatorIsLessThan(e,n,r){const{formula1:i}=n,{value:a}=e;return this._isValidFormula(i)?a<i:!1}async validatorIsLessThanOrEqual(e,n,r){const{formula1:i}=n,{value:a}=e;return this._isValidFormula(i)?a<=i:!1}generateRuleErrorMessage(e){var n,r;return e.operator?`${this.localeService.t(Frn[e.operator]).replace(Won,(n=e.formula1)!=null?n:"").replace(zon,(r=e.formula2)!=null?r:"")}`:this.titleStr}};ze(qXe,"TextLengthValidator");let qon=qXe;function hie(t){var e,n;return t?t.p?!((n=(e=t.p.body)==null?void 0:e.dataStream)!=null?n:"").slice(0,-2).trim():Ie.isBlank(t.v):!0}ze(hie,"isBlankCell");function Q0(t,e,n,r,i="command",a=!0){const o=[],s=[],l=r.get(io),u=r.get(Ce),c=Dn(u,{unitId:t,subUnitId:e});if(!c)return{redoMutations:o,undoMutations:s};const{worksheet:d}=c,h=new Ct;function f(p,v){a&&p.forEach(_=>{Gn.foreach(_,(C,S)=>{const b=d.getCellRaw(C,S),y=iie(b);(hie(b)||y===v)&&h.setValue(C,S,{v,p:null})})})}ze(f,"setRangesDefaultValue"),n.forEach(p=>{switch(p.type){case"delete":o.push({id:Yl.id,params:{unitId:t,subUnitId:e,ruleId:p.rule.uid,source:i}}),s.unshift({id:Sc.id,params:{unitId:t,subUnitId:e,rule:p.rule,index:p.index,source:i}});break;case"update":{o.push({id:Is.id,params:{unitId:t,subUnitId:e,ruleId:p.ruleId,payload:{type:Ko.RANGE,payload:p.newRanges},source:i}}),s.unshift({id:Is.id,params:{unitId:t,subUnitId:e,ruleId:p.ruleId,payload:{type:Ko.RANGE,payload:p.oldRanges},source:i}});const v=l.getRuleById(t,e,p.ruleId);if(v&&v.type===ia.CHECKBOX){const _=l.getValidator(ia.CHECKBOX).parseFormulaSync(v,t,e);f(p.newRanges,_.formula2)}break}case"add":{if(o.push({id:Sc.id,params:{unitId:t,subUnitId:e,rule:p.rule,source:i}}),s.unshift({id:Yl.id,params:{unitId:t,subUnitId:e,ruleId:p.rule.uid,source:i}}),p.rule.type===ia.CHECKBOX){const v=l.getValidator(ia.CHECKBOX).parseFormulaSync(p.rule,t,e);f(p.rule.ranges,v.originFormula2)}break}}});const m={id:Mn.id,params:{unitId:t,subUnitId:e,cellValue:h.getData()}},g={id:Mn.id,params:No(r,m.params)};return o.push(m),s.push(g),{redoMutations:o,undoMutations:s}}ze(Q0,"getDataValidationDiffMutations");const sO={type:Se.COMMAND,id:"sheet.command.updateDataValidationRuleRange",async handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,ranges:i,ruleId:a}=e,o=t.get(io),s=t.get(me),l=t.get(xn);if(!o.getRuleById(n,r,a))return!1;const u=o.getRuleObjectMatrix(n,r).clone();u.updateRange(a,i);const c=u.diff(o.getRules(n,r)),{redoMutations:d,undoMutations:h}=Q0(n,r,c,t);return l.pushUndoRedo({undoMutations:h,redoMutations:d,unitID:n}),await A7(d,s),!0}},wb={type:Se.COMMAND,id:"sheet.command.addDataValidation",async handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,rule:i}=e,a=t.get(io),o=t.get(me),s=t.get(xn),l=a.getRuleObjectMatrix(n,r).clone();l.addRule(i);const u=l.diff(a.getRules(n,r)),c={unitId:n,subUnitId:r,rule:i},{redoMutations:d,undoMutations:h}=Q0(n,r,u,t);return d.push({id:Sc.id,params:c}),h.unshift({id:Yl.id,params:{unitId:n,subUnitId:r,ruleId:i.uid}}),s.pushUndoRedo({unitID:n,redoMutations:d,undoMutations:h}),await A7(d,o),!0}},lO={type:Se.COMMAND,id:"data-validation.command.addRuleAndOpen",async handler(t){const e=t.get(Ce),n=Dn(e);if(!n)return!1;const{workbook:r,worksheet:i}=n,a=aie(t),o=t.get(me),s=r.getUnitId(),l=i.getSheetId(),u={rule:a,unitId:s,subUnitId:l};return await o.executeCommand(wb.id,u)?(o.executeCommand(h3.id,{ruleId:a.uid,isAdd:!0}),!0):!1}},TP={type:Se.COMMAND,id:"sheets.command.update-data-validation-setting",handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(io),a=t.get(D1),{unitId:o,subUnitId:s,ruleId:l,setting:u}=e,c=a.getValidatorItem(u.type);if(!c)return!1;const d=i.getRuleById(o,s,l);if(!d)return!1;const h={...d,...u};if(!c.validatorFormula(h,o,s).success)return!1;const f={unitId:o,subUnitId:s,ruleId:l,payload:{type:Ko.SETTING,payload:{...u,...c.normalizeFormula(h,o,s)}}},m=[{id:Is.id,params:f}],g={unitId:o,subUnitId:s,ruleId:l,payload:{type:Ko.SETTING,payload:S7(d)}},p=[{id:Is.id,params:g}];if(u.type===ia.CHECKBOX){const v=d.ranges,_=t.get(Ce),C=Dn(_,{unitId:o,subUnitId:s});if(C){const S=new Ct,{worksheet:b}=C,{formula2:y=_C,formula1:A=vC}=d,{formula2:w=_C,formula1:P=vC}=u;v.forEach(k=>{Gn.foreach(k,(O,$)=>{const B=b.getCellRaw(O,$),V=iie(B);hie(B)||V===String(y)?S.setValue(O,$,{v:w,p:null}):V===String(A)&&S.setValue(O,$,{v:P,p:null})})});const M={id:Mn.id,params:{unitId:o,subUnitId:s,cellValue:S.getData()}},L={id:Mn.id,params:No(t,M.params)};m.push(M),p.push(L)}}return ti(m,n).result?(r.pushUndoRedo({unitID:o,redoMutations:m,undoMutations:p}),!0):!1}},fie={type:Se.COMMAND,id:"sheets.command.update-data-validation-options",handler(t,e){if(!e)return!1;const n=t.get(me),r=t.get(xn),i=t.get(io),{unitId:a,subUnitId:o,ruleId:s,options:l}=e,u=i.getRuleById(a,o,s);if(!u)return!1;const c={unitId:a,subUnitId:o,ruleId:s,payload:{type:Ko.OPTIONS,payload:l}},d=[{id:Is.id,params:c}],h={unitId:a,subUnitId:o,ruleId:s,payload:{type:Ko.OPTIONS,payload:b7(u)}},f=[{id:Is.id,params:h}];return r.pushUndoRedo({unitID:a,redoMutations:d,undoMutations:f}),n.executeCommand(Is.id,c),!0}},YXe={type:Se.COMMAND,id:"sheets.command.clear-range-data-validation",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,ranges:i}=e,a=t.get(me),o=t.get(Ce),s=Dn(o,{unitId:n,subUnitId:r}),l=t.get(io);if(!s)return!1;const u=t.get(xn),c=l.getRuleObjectMatrix(n,r).clone();c.removeRange(i);const d=c.diff(l.getRules(n,r)),{redoMutations:h,undoMutations:f}=Q0(n,r,d,t);return u.pushUndoRedo({unitID:n,redoMutations:h,undoMutations:f}),ti(h,a).result}},mie={type:Se.COMMAND,id:"sheet.command.remove-all-data-validation",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r}=e,i=t.get(me),a=t.get(io),o=t.get(xn),s=[...a.getRules(n,r)],l={unitId:n,subUnitId:r,ruleId:s.map(d=>d.uid)},u=[{id:Yl.id,params:l}],c=[{id:Sc.id,params:{unitId:n,subUnitId:r,rule:s}}];return o.pushUndoRedo({redoMutations:u,undoMutations:c,unitID:n}),i.executeCommand(Yl.id,l),!0}},Yon=ze((t,e)=>{const n=t.get(io),{unitId:r,subUnitId:i,ruleId:a,source:o}=e;if(Array.isArray(a)){const s=a.map(l=>n.getRuleById(r,i,l)).filter(Boolean);return[{id:Sc.id,params:{unitId:r,subUnitId:i,rule:s,source:o}}]}return[{id:Sc.id,params:{unitId:r,subUnitId:i,rule:{...n.getRuleById(r,i,a)},index:n.getRuleIndex(r,i,a)}}]},"removeDataValidationUndoFactory"),uO={type:Se.COMMAND,id:"sheet.command.remove-data-validation-rule",handler(t,e){if(!e)return!1;const{unitId:n,subUnitId:r,ruleId:i}=e,a=t.get(me),o=t.get(xn),s=t.get(io),l=[{id:Yl.id,params:e}],u=[{id:Sc.id,params:{unitId:n,subUnitId:r,rule:{...s.getRuleById(n,r,i)},index:s.getRuleIndex(n,r,i)}}];return o.pushUndoRedo({undoMutations:u,redoMutations:l,unitID:e.unitId}),a.executeCommand(Yl.id,e),!0}},XXe="sheets-data-validation.config",GXe={};function QXe(t){return!Wp.has(t)}ze(QXe,"isLegalFormulaResult");const KXe=class extends jf{constructor(){super(...arguments),In(this,"id",ia.CUSTOM),In(this,"title","dataValidation.custom.title"),In(this,"operators",[]),In(this,"scopes",["sheet"]),In(this,"formulaInput",bXe),In(this,"_customFormulaService",this.injector.get(Ip))}validatorFormula(e,n,r){const i=Ar(e.formula1);return{success:i,formula1:i?"":this.localeService.t("dataValidation.validFail.formula")}}async parseFormula(e,n,r){return{formula1:void 0,formula2:void 0}}async isValidType(e,n,r){const{column:i,row:a,unitId:o,subUnitId:s}=e,l=await this._customFormulaService.getCellFormulaValue(o,s,a,i),u=iXe(l==null?void 0:l.result),c=u==null?void 0:u.v;return Ie.isDefine(c)&&c!==""?u.t===rr.BOOLEAN?!!c:typeof c=="boolean"?c:typeof c=="number"?!!c:typeof c=="string"?QXe(c):!!c:!1}generateRuleErrorMessage(e){return this.localeService.t("dataValidation.custom.error")}};ze(KXe,"CustomFormulaValidator");let Xon=KXe;const ZXe=4,Gon=0,xU=4,JXe=4,dX=6,LP=6,dg=14;function eGe(t,e){const n=a_.getTextSize(t,e),r=n.width+ZXe*2,{ba:i,bd:a}=n,o=i+a;return{width:r,height:o+Gon*2,ba:i}}ze(eGe,"getDropdownItemSize");function hX(t,e,n,r){const i=n-dg-dX,a=r-LP*2,o=t.map(c=>({layout:eGe(c,e),text:c}));let s;const l=[];o.forEach(c=>{const{layout:d}=c,{width:h,height:f}=d;!s||s.width+h+xU>i?(s={width:h,height:f,items:[{...c,left:0}]},l.push(s)):(s.items.push({...c,left:s.width+xU}),s.width=s.width+h+xU)});let u=0;return l.forEach((c,d)=>{d===l.length-1?u+=c.height:u+=c.height+JXe}),{lines:l,totalHeight:u,contentWidth:i,contentHeight:a,cellAutoHeight:u+LP*2}}ze(hX,"layoutDropdowns");const Qon=8,tGe=class extends Ed{static drawWith(e,n){const{fontFamily:r,fontString:i,fontSize:a,info:o,fill:s,color:l}=n,{layout:u,text:c}=o;e.save(),ur.drawWith(e,{width:u.width,height:u.height,radius:Qon,fill:s||Ag}),e.translateWithPrecision(ZXe,u.ba),e.font=i,e.fillStyle=l,e.fillText(c,0,0),e.restore()}};ze(tGe,"Dropdown");let Kon=tGe;var Zon=Object.defineProperty,Jon=Object.getOwnPropertyDescriptor,esn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Jon(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Zon(e,n,i),i},"__decorateClass$b"),tsn=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$b");const nsn=new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");var OU;let fX=(OU=class{constructor(t){In(this,"zIndex"),In(this,"_dropdownInfoMap",new Map),this._commandService=t}_ensureMap(t){let e=this._dropdownInfoMap.get(t);return e||(e=new Map,this._dropdownInfoMap.set(t,e)),e}_generateKey(t,e){return`${t}.${e}`}_drawDownIcon(t,e,n,r,i){const a=n-dg+4;let o=4;switch(i){case ea.MIDDLE:o=(r-dg)/2+4;break;case ea.BOTTOM:o=r-dg+4;break}t.save(),t.translateWithPrecision(e.startX+a,e.startY+o),t.fillStyle="#565656",t.fill(nsn),t.restore()}drawWith(t,e,n,r){var i,a;const{primaryWithCoord:o,row:s,col:l,style:u,data:c,subUnitId:d}=e,h=o.isMergedMainCell?o.mergeInfo:o,f=c.fontRenderExtension,{leftOffset:m=0,rightOffset:g=0,topOffset:p=0,downOffset:v=0}=f||{},_=c.dataValidation,C=this._ensureMap(d),S=this._generateKey(s,l);if(!_)return;const b={startX:h.startX+m,endX:h.endX-g,startY:h.startY+p,endY:h.endY-v},y=b.endX-b.startX,A=b.endY-b.startY,{cl:w}=u||{},P=(i=typeof w=="object"?w==null?void 0:w.rgb:w)!=null?i:"#000",M=rp(u??void 0),{rule:L,validator:k}=_,O=k,{vt:$,ht:B}=u||{},V=$??ea.MIDDLE,X=(a=es(c))!=null?a:"",z=O.parseCellValue(X),F=O.getListWithColorMap(L),H=hX(z,M,y,A);this._drawDownIcon(t,b,y,A,V),t.save(),t.translateWithPrecision(b.startX,b.startY),t.beginPath(),t.rect(0,0,y-dg,A),t.clip(),t.translateWithPrecision(dX,LP);let W=0;switch(V){case ea.MIDDLE:W=(H.contentHeight-H.totalHeight)/2;break;case ea.BOTTOM:W=H.contentHeight-H.totalHeight;break}t.translateWithPrecision(0,W),H.lines.forEach((K,G)=>{t.save();const{width:te,height:Y,items:ae}=K;let ie=0;switch(B){case dr.RIGHT:ie=H.contentWidth-te;break;case dr.CENTER:ie=(H.contentWidth-te)/2;break}t.translate(ie,G*(Y+JXe)),ae.forEach(ne=>{t.save(),t.translateWithPrecision(ne.left,0),Kon.drawWith(t,{...M,info:ne,color:P,fill:F[ne.text]}),t.restore()}),t.restore()}),t.restore(),C.set(S,{left:b.startX,top:b.startY,width:H.contentWidth+dX+dg,height:H.contentHeight+LP*2})}calcCellAutoHeight(t){var e;const{primaryWithCoord:n,style:r,data:i}=t,a=i.fontRenderExtension,{leftOffset:o=0,rightOffset:s=0,topOffset:l=0,downOffset:u=0}=a||{},c=n.isMergedMainCell?n.mergeInfo:n,d={startX:c.startX+o,endX:c.endX-s,startY:c.startY+l,endY:c.endY-u},h=i.dataValidation;if(!h)return;const f=d.endX-d.startX,m=d.endY-d.startY,g=(e=es(i))!=null?e:"",{validator:p}=h,v=p.parseCellValue(g),_=rp(r??void 0);return hX(v,_,f,m).cellAutoHeight}isHit(t,e){const{primaryWithCoord:n}=e,r=n.isMergedMainCell?n.mergeInfo:n,{endX:i}=r,{x:a}=t;return a>=i-dg&&a<=i}onPointerDown(t,e){if(e.button===2)return;const{unitId:n,subUnitId:r,row:i,col:a}=t,o={unitId:n,subUnitId:r,row:i,column:a};this._commandService.executeCommand(oO.id,o)}},ze(OU,"DropdownMultipleWidget"),OU);fX=esn([tsn(0,me)],fX);const nGe=class extends WXe{constructor(){super(...arguments),In(this,"id",ia.LIST_MULTIPLE),In(this,"title","dataValidation.listMultiple.title"),In(this,"canvasRender",this.injector.createInstance(fX))}skipDefaultFontRender(){return!0}};ze(nGe,"ListMultipleValidator");let rsn=nGe;const rGe=class extends jf{constructor(){super(...arguments),In(this,"_formulaService",this.injector.get(bc)),In(this,"id",ia.WHOLE),In(this,"title","dataValidation.whole.title"),In(this,"operators",[Wt.BETWEEN,Wt.EQUAL,Wt.GREATER_THAN,Wt.GREATER_THAN_OR_EQUAL,Wt.LESS_THAN,Wt.LESS_THAN_OR_EQUAL,Wt.NOT_BETWEEN,Wt.NOT_EQUAL]),In(this,"scopes",["sheet"]),In(this,"formulaInput",Ab),In(this,"dropDownInput")}_isFormulaOrInt(e){return!Ie.isBlank(e)&&(Ar(e)||!Number.isNaN(+e)&&Number.isInteger(+e))}async isValidType(e,n,r){const{value:i}=e,a=bC(i);return!Number.isNaN(a)&&Number.isInteger(a)}transform(e,n,r){const{value:i}=e;return{...e,value:bC(i)}}_parseNumber(e){return e==null?Number.NaN:+e}async parseFormula(e,n,r){var i,a,o,s,l,u,c,d;const h=await this._formulaService.getRuleFormulaResult(n,r,e.uid),{formula1:f,formula2:m}=e;return{formula1:this._parseNumber(Ar(f)?(s=(o=(a=(i=h==null?void 0:h[0])==null?void 0:i.result)==null?void 0:a[0])==null?void 0:o[0])==null?void 0:s.v:f),formula2:this._parseNumber(Ar(m)?(d=(c=(u=(l=h==null?void 0:h[1])==null?void 0:l.result)==null?void 0:u[0])==null?void 0:c[0])==null?void 0:d.v:m)}}validatorFormula(e,n,r){const i=e.operator;if(!i)return{success:!1};const a=Ie.isDefine(e.formula1)&&this._isFormulaOrInt(e.formula1),o=Ie.isDefine(e.formula2)&&this._isFormulaOrInt(e.formula2),s=aO.includes(i),l=this.localeService.t("dataValidation.validFail.number");return s?{success:a&&o,formula1:a?void 0:l,formula2:o?void 0:l}:{success:a,formula1:l}}async validatorIsEqual(e,n,r){const{formula1:i}=n,{value:a}=e;return Number.isNaN(i)?!0:a===i}async validatorIsNotEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value!==i}async validatorIsBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value>=o&&e.value<=s}async validatorIsNotBetween(e,n,r){const{formula1:i,formula2:a}=n;if(Number.isNaN(i)||Number.isNaN(a))return!0;const o=Math.min(i,a),s=Math.max(i,a);return e.value<o||e.value>s}async validatorIsGreaterThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>i}async validatorIsGreaterThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value>=i}async validatorIsLessThan(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<i}async validatorIsLessThanOrEqual(e,n,r){const{formula1:i}=n;return Number.isNaN(i)?!0:e.value<=i}};ze(rGe,"WholeValidator");let isn=rGe;const iGe="data-validation-single",aGe="sheet.menu.data-validation";function oGe(t){return{id:aGe,type:Tt.SUBITEMS,icon:iGe,tooltip:"dataValidation.title",hidden$:vn(t,le.UNIVER_SHEET),disabled$:Mr(t,{workbookTypes:[on],worksheetTypes:[Hi,Tn],rangeTypes:[Bn]})}}ze(oGe,"dataValidationMenuFactory");function sGe(t){return{id:h3.id,title:"dataValidation.panel.title",type:Tt.BUTTON}}ze(sGe,"openDataValidationMenuFactory");function lGe(t){return{id:lO.id,title:"dataValidation.panel.add",type:Tt.BUTTON}}ze(lGe,"addDataValidationMenuFactory");var asn=Object.defineProperty,osn=Object.getOwnPropertyDescriptor,ssn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?osn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&asn(e,n,i),i},"__decorateClass$a"),z2=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$a"),NU;let mv=(NU=class extends Da{constructor(t,e,n,r,i,a,o){super(),this._univerInstanceService=t,this._dataValidatorRegistryService=e,this._injector=n,this._componentManger=r,this._selectionManagerService=i,this._sheetInterceptorService=a,this._sheetDataValidationModel=o,this._init()}_init(){this._registerValidators(),this._initCommandInterceptor(),this._initComponents()}_registerValidators(){[$on,isn,qon,kon,Yan,WXe,rsn,Xon].forEach(t=>{const e=this._injector.createInstance(t);this.disposeWithMe(this._dataValidatorRegistryService.register(e)),this.disposeWithMe({dispose:ze(()=>{this._injector.delete(t)},"dispose")})})}_initCommandInterceptor(){this._sheetInterceptorService.interceptCommand({getMutations:ze(t=>{var e;if(t.id===p0.id){const n=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET),r=n.getUnitId(),i=n.getActiveSheet();if(!i)throw new Error("No active sheet found");const a=i.getSheetId(),o=(e=this._selectionManagerService.getCurrentSelections())==null?void 0:e.map(d=>d.range),s=this._sheetDataValidationModel.getRuleObjectMatrix(r,a).clone();o&&s.removeRange(o);const l=s.diff(this._sheetDataValidationModel.getRules(r,a)),{redoMutations:u,undoMutations:c}=Q0(r,a,l,this._injector,"patched");return{undos:c,redos:u}}return{undos:[],redos:[]}},"getMutations")})}_initComponents(){[[iGe,hXe],[TXe,fon],[MXe,PXe],[FXe,OXe],[VXe,kXe],[SC.componentKey,SC],[CC.componentKey,CC],...$an].forEach(([t,e])=>{this.disposeWithMe(this._componentManger.register(t,e))})}},ze(NU,"DataValidationController"),NU);mv=ssn([yn(Vt.Rendered,mv),z2(0,Ce),z2(1,se(D1)),z2(2,se(Wn)),z2(3,se(ja)),z2(4,se(Bt)),z2(5,se(Tr)),z2(6,se(io))],mv);var lsn=Object.defineProperty,usn=Object.getOwnPropertyDescriptor,csn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?usn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&lsn(e,n,i),i},"__decorateClass$9"),S5=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$9");const lE="SHEET_DATA_VALIDATION_ALERT";var kU;let gv=(kU=class extends et{constructor(t,e,n,r,i){super(),this._hoverManagerService=t,this._cellAlertManagerService=e,this._univerInstanceService=n,this._localeService=r,this._zenZoneService=i,this._init()}_init(){this._initCellAlertPopup(),this._initZenService()}_initCellAlertPopup(){this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(ah(100)).subscribe(t=>{var e,n;if(t){const r=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getActiveSheet();if(!r)return;const i=r.getCell(t.location.row,t.location.col);if(((e=i==null?void 0:i.dataValidation)==null?void 0:e.validStatus)===q1.INVALID){const a=this._cellAlertManagerService.currentAlert.get(lE),o=(n=a==null?void 0:a.alert)==null?void 0:n.location;if(o&&o.row===t.location.row&&o.col===t.location.col&&o.subUnitId===t.location.subUnitId&&o.unitId===t.location.unitId)return;const s=i.dataValidation.validator,l=i.dataValidation.rule;if(!s)return;this._cellAlertManagerService.showAlert({type:jg.ERROR,title:this._localeService.t("dataValidation.error.title"),message:s==null?void 0:s.getRuleFinalError(l),location:t.location,width:200,height:74,key:lE});return}}this._cellAlertManagerService.removeAlert(lE)}))}_initZenService(){this.disposeWithMe(this._zenZoneService.visible$.subscribe(t=>{t&&this._cellAlertManagerService.removeAlert(lE)}))}},ze(kU,"DataValidationAlertController"),kU);gv=csn([yn(Vt.Rendered,gv),S5(0,se(q0)),S5(1,se(Ap)),S5(2,Ce),S5(3,se(sn)),S5(4,n9)],gv);var dsn=Object.defineProperty,hsn=Object.getOwnPropertyDescriptor,fsn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?hsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&dsn(e,n,i),i},"__decorateClass$8"),FU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$8"),VU;let pv=(VU=class extends et{constructor(t,e,n){super(),In(this,"_copyInfo"),this._sheetClipboardService=t,this._sheetDataValidationModel=e,this._injector=n,this._initCopyPaste()}_initCopyPaste(){this._sheetClipboardService.addClipboardHook({id:iO,onBeforeCopy:ze((t,e,n)=>this._collect(t,e,n),"onBeforeCopy"),onPasteCells:ze((t,e,n,r)=>{const{copyType:i=$d.COPY,pasteType:a}=r,{range:o}=t||{},{range:s,unitId:l,subUnitId:u}=e;return this._generateMutations(s,{copyType:i,pasteType:a,copyRange:o,unitId:l,subUnitId:u})},"onPasteCells")})}_collect(t,e,n){const r=new Ct;this._copyInfo={unitId:t,subUnitId:e,matrix:r};const i=this._injector.invoke(s=>Bg(n,s,t,e));if(!i)return;const{rows:a,cols:o}=i;a.forEach((s,l)=>{o.forEach((u,c)=>{const d=this._sheetDataValidationModel.getRuleIdByLocation(t,e,s,u);r.setValue(l,c,d??"")})})}_generateMutations(t,e){if(!this._copyInfo)return{redos:[],undos:[]};if(e.copyType===$d.CUT)return this._copyInfo=null,{redos:[],undos:[]};if(!this._copyInfo||!this._copyInfo.matrix.getSizeOf()||!e.copyRange)return{redos:[],undos:[]};if([ka.SPECIAL_PASTE_COL_WIDTH,ka.SPECIAL_PASTE_VALUE,ka.SPECIAL_PASTE_FORMAT,ka.SPECIAL_PASTE_FORMULA].includes(e.pasteType))return{redos:[],undos:[]};const{unitId:n,subUnitId:r}=this._copyInfo;if(e.unitId!==n||r!==e.subUnitId){const i=this._sheetDataValidationModel.getRuleObjectMatrix(e.unitId,e.subUnitId).clone(),a=new Ct,o=new Set,{ranges:[s,l],mapFunc:u}=Bf([e.copyRange,t]),c=sue(s,l,!0),d=new Map;c.forEach(({startRange:g})=>{var p;(p=this._copyInfo)==null||p.matrix.forValue((v,_,C)=>{const S=ft.getPositionRange({startRow:v,endRow:v,startColumn:_,endColumn:_},g),b=`${r}-${C}`,y=this._sheetDataValidationModel.getRuleById(n,r,C);!this._sheetDataValidationModel.getRuleById(e.unitId,e.subUnitId,b)&&y&&d.set(b,{...y,uid:b});const{row:A,col:w}=u(S.startRow,S.startColumn);o.add(b),a.setValue(A,w,b)})});const h=Array.from(o).map(g=>({id:g,ranges:pc(a,p=>p===g)}));i.addRangeRules(h);const{redoMutations:f,undoMutations:m}=Q0(e.unitId,e.subUnitId,i.diffWithAddition(this._sheetDataValidationModel.getRules(e.unitId,e.subUnitId),d.values()),this._injector,"patched");return{redos:f,undos:m}}else{const i=this._sheetDataValidationModel.getRuleObjectMatrix(n,r).clone(),a=new Ct,o=new Set,{ranges:[s,l],mapFunc:u}=Bf([e.copyRange,t]);sue(s,l,!0).forEach(({startRange:f})=>{var m;(m=this._copyInfo)==null||m.matrix.forValue((g,p,v)=>{const _=ft.getPositionRange({startRow:g,endRow:g,startColumn:p,endColumn:p},f),{row:C,col:S}=u(_.startRow,_.startColumn);a.setValue(C,S,v),o.add(v)})});const c=Array.from(o).map(f=>({id:f,ranges:pc(a,m=>m===f)}));i.addRangeRules(c);const{redoMutations:d,undoMutations:h}=Q0(n,r,i.diff(this._sheetDataValidationModel.getRules(n,r)),this._injector,"patched");return{redos:d,undos:h}}}},ze(VU,"DataValidationCopyPasteController"),VU);pv=fsn([yn(Vt.Ready,pv),FU(0,Eh),FU(1,se(io)),FU(2,se(Wn))],pv);var msn=Object.defineProperty,gsn=Object.getOwnPropertyDescriptor,psn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?gsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&msn(e,n,i),i},"__decorateClass$7"),BU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),UU;let vv=(UU=class extends et{constructor(t,e,n){super(),this._localeService=t,this._commandService=e,this._sheetPermissionInterceptorBaseController=n,this._commandExecutedListener()}_commandExecutedListener(){this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{t.id===wb.id&&(this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,Hi]})||this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))),t.id===sO.id&&(this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({workbookTypes:[on],rangeTypes:[Bn],worksheetTypes:[Tn,Hi]},t.params.ranges)||this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr")))}))}},ze(UU,"DataValidationPermissionController"),UU);vv=psn([yn(Vt.Ready,vv),BU(0,se(sn)),BU(1,me),BU(2,se($g))],vv);var vsn=Object.defineProperty,_sn=Object.getOwnPropertyDescriptor,Csn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?_sn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&vsn(e,n,i),i},"__decorateClass$6"),z3=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),HU;let _v=(HU=class extends et{constructor(t,e,n,r,i,a){super(),In(this,"_disposableMap",new Map),In(this,"registerRule",ze((o,s,l)=>{this.register(o,s,l),this.registerFormula(o,s,l)},"registerRule")),this._dataValidationModel=t,this._injector=e,this._refRangeService=n,this._dataValidationCustomFormulaService=r,this._dataValidationFormulaService=i,this._formulaRefRangeService=a,this._initRefRange()}_getIdWithUnitId(t,e,n){return`${t}_${e}_${n}`}registerFormula(t,e,n){var r;const i=n.uid,a=this._getIdWithUnitId(t,e,i),o=(r=this._disposableMap.get(a))!=null?r:new Set,s=ze((l,u)=>{const c=this._dataValidationModel.getRuleById(t,e,i);if(!c)return{redos:[],undos:[]};const d=c[l];if(!d||d===u)return{redos:[],undos:[]};const h={unitId:t,subUnitId:e,ruleId:n.uid,payload:{type:Ko.SETTING,payload:{type:c.type,formula1:c.formula1,formula2:c.formula2,[l]:u}}},f={unitId:t,subUnitId:e,ruleId:n.uid,payload:{type:Ko.SETTING,payload:{type:c.type,formula1:c.formula1,formula2:c.formula2}}},m=[{id:Is.id,params:h}],g=[{id:Is.id,params:f}];return{redos:m,undos:g}},"handleFormulaChange");if(n.type===ia.CUSTOM){const l=this._dataValidationCustomFormulaService.getRuleFormulaInfo(t,e,i);if(l){const u=this._formulaRefRangeService.registerFormula(l.formula,c=>s("formula1",c));o.add(()=>u.dispose())}}if(n.type!==ia.CUSTOM){const l=this._dataValidationFormulaService.getRuleFormulaInfo(t,e,i);if(l){const[u,c]=l;if(u){const d=this._formulaRefRangeService.registerFormula(u.text,h=>s("formula1",h));o.add(()=>d.dispose())}if(c){const d=this._formulaRefRangeService.registerFormula(c.text,h=>s("formula2",h));o.add(()=>d.dispose())}}}}register(t,e,n){var r;const i=ze(l=>{const u=[...n.ranges],c=u.map(d=>QWt(d,l)).filter(d=>!!d).flat();if(MJe(c,u))return{redos:[],undos:[]};if(c.length){const d={unitId:t,subUnitId:e,ruleId:n.uid,payload:{type:Ko.RANGE,payload:c},source:"patched"},h=[{id:Is.id,params:d}],f=[{id:Is.id,params:{unitId:t,subUnitId:e,ruleId:n.uid,payload:{type:Ko.RANGE,payload:u},source:"patched"}}];return{redos:h,undos:f}}else{const d={unitId:t,subUnitId:e,ruleId:n.uid},h=[{id:Yl.id,params:d}],f=Yon(this._injector,d);return{redos:h,undos:f}}},"handleRangeChange"),a=[];n.ranges.forEach(l=>{const u=this._refRangeService.registerRefRange(l,i,t,e);a.push(()=>u.dispose())});const o=this._getIdWithUnitId(t,e,n.uid),s=(r=this._disposableMap.get(o))!=null?r:new Set;s.add(()=>a.forEach(l=>l())),this._disposableMap.set(o,s)}_initRefRange(){this.disposeWithMe(this._dataValidationModel.ruleChange$.subscribe(t=>{const{unitId:e,subUnitId:n,rule:r}=t;switch(t.type){case"add":{const i=t.rule;this.registerRule(t.unitId,t.subUnitId,i);break}case"remove":{const i=this._disposableMap.get(this._getIdWithUnitId(e,n,r.uid));i&&i.forEach(a=>a());break}case"update":{const i=t.rule,a=this._disposableMap.get(this._getIdWithUnitId(e,n,i.uid));a&&a.forEach(o=>o()),this.registerRule(t.unitId,t.subUnitId,i);break}}})),this.disposeWithMe($t(()=>{this._disposableMap.forEach(t=>{t.forEach(e=>e())}),this._disposableMap.clear()}))}},ze(HU,"DataValidationRefRangeController"),HU);_v=Csn([yn(Vt.Starting,_v),z3(0,se(io)),z3(1,se(Wn)),z3(2,se(ff)),z3(3,se(Ip)),z3(4,se(bc)),z3(5,se(uC))],_v);const Ssn={[As.FORMULAS_INSERT]:{[aGe]:{order:9,menuItemFactory:oGe,[h3.id]:{order:0,menuItemFactory:sGe},[lO.id]:{order:1,menuItemFactory:lGe}}}};var bsn=Object.defineProperty,ysn=Object.getOwnPropertyDescriptor,uGe=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?ysn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bsn(e,n,i),i},"__decorateClass$5"),Hs=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5");const cGe={tr:{size:6,color:"#fe4b4b"}};var jU;let WA=(jU=class extends Da{constructor(t,e,n,r,i,a,o,s,l,u){super(),this._commandService=t,this._menuManagerService=e,this._renderManagerService=n,this._univerInstanceService=r,this._autoHeightController=i,this._dropdownManagerService=a,this._sheetDataValidationModel=o,this._dataValidatorRegistryService=s,this._sheetInterceptorService=l,this._editorBridgeService=u,this._initMenu(),this._initSkeletonChange(),this._initDropdown(),this._initViewModelIntercept(),this._initAutoHeight()}_initMenu(){this._menuManagerService.mergeMenu(Ssn)}_initDropdown(){this._editorBridgeService&&this.disposeWithMe(this._editorBridgeService.visible$.subscribe(t=>{var e;if(!t.visible){((e=this._dropdownManagerService.activeDropdown)==null?void 0:e.trigger)==="editor-bridge"&&this._dropdownManagerService.hideDropdown();return}const n=this._editorBridgeService.getEditCellState();if(n){const{unitId:r,sheetId:i,row:a,column:o}=n,s=this._univerInstanceService.getUniverSheetInstance(r);if(!s)return;const l=this._sheetDataValidationModel.getRuleByLocation(r,i,a,o);if(!l)return;const u=this._dataValidatorRegistryService.getValidatorItem(l.type);if(!(u!=null&&u.dropdown))return;const c=s.getActiveSheet();if(!c)return;const d=this._dropdownManagerService.activeDropdown,h=d==null?void 0:d.location;if(h&&h.unitId===r&&h.subUnitId===i&&h.row===a&&h.col===o)return;this._dropdownManagerService.showDropdown({location:{unitId:r,subUnitId:i,row:a,col:o,workbook:s,worksheet:c},componentKey:u.dropdown,onHide:ze(()=>{},"onHide"),trigger:"editor-bridge"},!1)}}))}_initSkeletonChange(){const t=ze(()=>{var e,n,r;const i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return;const a=i.getUnitId(),o=(e=i.getActiveSheet())==null?void 0:e.getSheetId();if(!o)return;const s=(r=(n=this._renderManagerService.getRenderById(a))==null?void 0:n.with(Gr).getWorksheetSkeleton(o))==null?void 0:r.skeleton,l=this._renderManagerService.getRenderById(a);s==null||s.makeDirty(!0),s==null||s.calculate(),l&&l.mainComponent.makeForceDirty()},"markSkeletonDirty");this.disposeWithMe(this._sheetDataValidationModel.ruleChange$.pipe(ah(16)).subscribe(()=>t())),this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(ah(16)).subscribe(()=>t()))}_initViewModelIntercept(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:ex.DATA_VALIDATION,handler:ze((t,e,n)=>{var r,i,a,o;const{row:s,col:l,unitId:u,subUnitId:c,workbook:d,worksheet:h}=e,f=d.getStyles(),m=(typeof(t==null?void 0:t.s)=="string"?f.get(t==null?void 0:t.s):t==null?void 0:t.s)||{},g=this._sheetDataValidationModel.getRuleIdByLocation(u,c,s,l);if(!g)return n(t);const p=this._sheetDataValidationModel.getRuleById(u,c,g);if(!p)return n(t);const v=this._sheetDataValidationModel.validator(t,p,e),_=this._dataValidatorRegistryService.getValidatorItem(p.type),C=h.getCellRaw(s,l),S=es(C),b=`${(r=es(C))!=null?r:""}`;return n({...t,dataValidation:{ruleId:g,validStatus:v,rule:p,validator:_},markers:{...t==null?void 0:t.markers,...v===q1.INVALID?cGe:null},customRender:[...(i=t==null?void 0:t.customRender)!=null?i:[],..._!=null&&_.canvasRender?[_.canvasRender]:[]],fontRenderExtension:{...t==null?void 0:t.fontRenderExtension,isSkip:((a=t==null?void 0:t.fontRenderExtension)==null?void 0:a.isSkip)||(_==null?void 0:_.skipDefaultFontRender(p,S,e))},interceptorStyle:{...t==null?void 0:t.interceptorStyle,..._==null?void 0:_.getExtraStyle(p,b,{style:m})},interceptorAutoHeight:ze(()=>{var y,A,w,P,M,L;const k=(A=(y=this._renderManagerService.getRenderById(u))==null?void 0:y.with(Gr).getWorksheetSkeleton(c))==null?void 0:A.skeleton;if(!k)return;const O=k.worksheet.getMergedCell(s,l),$={data:{...t,dataValidation:{ruleId:g,validStatus:v,rule:p,validator:_}},style:k.getsStyles().getStyleByCell(t),primaryWithCoord:k.getCellByIndex((w=O==null?void 0:O.startRow)!=null?w:s,(P=O==null?void 0:O.startColumn)!=null?P:l),unitId:u,subUnitId:c,row:s,col:l,workbook:d,worksheet:h};return(L=(M=_==null?void 0:_.canvasRender)==null?void 0:M.calcCellAutoHeight)==null?void 0:L.call(M,$)},"interceptorAutoHeight"),coverable:((o=t==null?void 0:t.coverable)!=null?o:!0)&&!(p.type===ia.LIST||p.type===ia.LIST_MULTIPLE)})},"handler")}))}_initAutoHeight(){this._sheetDataValidationModel.ruleChange$.pipe(mo(t=>t.source==="command"),FP(16)).subscribe(t=>{const e=[];if(t.forEach(n=>{var r;(r=n.rule)!=null&&r.ranges&&e.push(...n.rule.ranges)}),e.length){const n=this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);ti(n.redos,this._commandService)}})}},ze(jU,"SheetsDataValidationRenderController"),jU);WA=uGe([yn(Vt.Rendered,WA),Hs(0,me),Hs(1,sl),Hs(2,Sr),Hs(3,Ce),Hs(4,se(Ug)),Hs(5,se(G0)),Hs(6,se(io)),Hs(7,se(D1)),Hs(8,se(Tr)),Hs(9,_1(Zl))],WA);var $U;let zA=($U=class extends Da{constructor(t,e,n,r,i,a,o){super(),this._commandService=t,this._renderManagerService=e,this._univerInstanceService=n,this._autoHeightController=r,this._dataValidatorRegistryService=i,this._sheetInterceptorService=a,this._sheetDataValidationModel=o,this._initSkeletonChange(),this._initViewModelIntercept(),this._initAutoHeight()}_initSkeletonChange(){const t=ze(()=>{var e,n,r;const i=this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET);if(!i)return;const a=i.getUnitId(),o=(e=i.getActiveSheet())==null?void 0:e.getSheetId();if(!o)return;const s=(r=(n=this._renderManagerService.getRenderById(a))==null?void 0:n.with(Gr).getWorksheetSkeleton(o))==null?void 0:r.skeleton,l=this._renderManagerService.getRenderById(a);s==null||s.makeDirty(!0),s==null||s.calculate(),l&&l.mainComponent.makeForceDirty()},"markSkeletonDirty");this.disposeWithMe(this._sheetDataValidationModel.ruleChange$.pipe(ah(16)).subscribe(()=>t())),this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(ah(16)).subscribe(()=>t()))}_initViewModelIntercept(){this.disposeWithMe(this._sheetInterceptorService.intercept(dc.CELL_CONTENT,{priority:ex.DATA_VALIDATION,handler:ze((t,e,n)=>{var r,i,a,o,s;const{row:l,col:u,unitId:c,subUnitId:d,workbook:h,worksheet:f}=e,m=(i=(r=this._renderManagerService.getRenderById(c))==null?void 0:r.with(Gr).getWorksheetSkeleton(d))==null?void 0:i.skeleton;if(!m)return n(t);const g=e.workbook.getStyles(),p=(typeof(t==null?void 0:t.s)=="string"?g.get(t==null?void 0:t.s):t==null?void 0:t.s)||{},v=this._sheetDataValidationModel.getRuleIdByLocation(c,d,l,u);if(!v)return n(t);const _=this._sheetDataValidationModel.getRuleById(c,d,v);if(!_)return n(t);const C=this._sheetDataValidationModel.validator(t,_,e),S=this._dataValidatorRegistryService.getValidatorItem(_.type),b=f.getCellRaw(l,u),y=es(b);let A={};if((_.type===ia.LIST||_.type===ia.LIST_MULTIPLE)&&(A={interceptorStyle:{...t==null?void 0:t.interceptorStyle,tb:(a=p.tb!==Li.OVERFLOW?p.tb:Li.CLIP)!=null?a:Li.WRAP}}),_.type===ia.CHECKBOX&&(A={interceptorStyle:{...t==null?void 0:t.interceptorStyle,tb:Li.CLIP}}),_.type===ia.LIST&&(_.renderMode===kl.ARROW||_.renderMode===kl.TEXT)){const w=S.getListWithColorMap(_),P=`${(o=es(b))!=null?o:""}`,M=w[P];M&&(A={...A,interceptorStyle:{...A.interceptorStyle,bg:{rgb:M}}})}return n({...t,...A,dataValidation:{ruleId:v,validStatus:C,rule:_,validator:S},markers:{...t==null?void 0:t.markers,...C===q1.INVALID?cGe:null},customRender:[...(s=t==null?void 0:t.customRender)!=null?s:[],...S!=null&&S.canvasRender?[S.canvasRender]:[]],fontRenderExtension:{...t==null?void 0:t.fontRenderExtension,isSkip:S==null?void 0:S.skipDefaultFontRender(_,y,e)},interceptorStyle:{...t==null?void 0:t.interceptorStyle,...A.interceptorStyle},interceptorAutoHeight:ze(()=>{var w,P,M,L;const k=m.worksheet.getMergedCell(l,u),O={data:{...t,dataValidation:{ruleId:v,validStatus:C,rule:_,validator:S}},style:m.getsStyles().getStyleByCell(t),primaryWithCoord:m.getCellByIndex((w=k==null?void 0:k.startRow)!=null?w:l,(P=k==null?void 0:k.startColumn)!=null?P:u),unitId:c,subUnitId:d,row:l,col:u,worksheet:f,workbook:h};return(L=(M=S==null?void 0:S.canvasRender)==null?void 0:M.calcCellAutoHeight)==null?void 0:L.call(M,O)},"interceptorAutoHeight")})},"handler")}))}_initAutoHeight(){this._sheetDataValidationModel.ruleChange$.pipe(mo(t=>t.source==="command"),FP(16)).subscribe(t=>{const e=[];if(t.forEach(n=>{var r;(r=n.rule)!=null&&r.ranges&&e.push(...n.rule.ranges)}),e.length){const n=this._autoHeightController.getUndoRedoParamsOfAutoHeight(e);ti(n.redos,this._commandService)}})}},ze($U,"SheetsDataValidationMobileRenderController"),$U);zA=uGe([yn(Vt.Rendered,zA),Hs(0,me),Hs(1,Sr),Hs(2,Ce),Hs(3,se(Ug)),Hs(4,se(D1)),Hs(5,se(Tr)),Hs(6,se(io))],zA);var Esn=Object.defineProperty,Rsn=Object.getOwnPropertyDescriptor,Asn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Rsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Esn(e,n,i),i},"__decorateClass$4"),WU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4"),zU;let xP=(zU=class{constructor(t,e,n){this._univerInstanceService=t,this._sheetDataValidationModel=e,this._dataValidationCacheService=n}async validatorCell(t,e,n,r){const i=this._univerInstanceService.getUnit(t,le.UNIVER_SHEET);if(!i)throw new Error(`cannot find current workbook, unitId: ${t}`);const a=i.getSheetBySheetId(e);if(!a)throw new Error(`cannot find current worksheet, sheetId: ${e}`);if(!Ie.isDefine(n)||!Ie.isDefine(r))throw new Error(`row or col is not defined, row: ${n}, col: ${r}`);const o=a.getCell(n,r),s=this._sheetDataValidationModel.getRuleByLocation(t,e,n,r);return s?new Promise(l=>{this._sheetDataValidationModel.validator(o,s,{unitId:t,subUnitId:e,row:n,col:r,worksheet:a,workbook:i},l)}):q1.VALID}validatorRanges(t,e,n){return Promise.all(n.map(r=>{const i=[];return Gn.foreach(r,(a,o)=>{i.push(this.validatorCell(t,e,a,o))}),i}))}async validatorWorksheet(t,e){const n=this._sheetDataValidationModel.getRules(t,e);return await Promise.all(n.map(r=>Promise.all(r.ranges.map(i=>{const a=[];return Gn.foreach(i,(o,s)=>{a.push(this.validatorCell(t,e,o,s))}),a})))),this._dataValidationCacheService.ensureCache(t,e)}async validatorWorkbook(t){const e=this._sheetDataValidationModel.getSubUnitIds(t),n=await Promise.all(e.map(i=>this.validatorWorksheet(t,i))),r={};return n.forEach((i,a)=>{r[e[a]]=i}),r}getDataValidations(t,e,n){const r=this._sheetDataValidationModel.getRuleObjectMatrix(t,e),i=new Set;return n.forEach(a=>{Gn.foreach(a,(o,s)=>{const l=r.getValue(o,s);l&&i.add(l)})}),Array.from(i).map(a=>this._sheetDataValidationModel.getRuleById(t,e,a)).filter(Boolean)}getDataValidation(t,e,n){return this.getDataValidations(t,e,n)[0]}},ze(zU,"SheetsDataValidationValidatorService"),zU);xP=Asn([WU(0,Ce),WU(1,se(io)),WU(2,se(R9))],xP);var dGe=Object.defineProperty,wsn=Object.getOwnPropertyDescriptor,Dsn=ze((t,e,n)=>e in t?dGe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp$1"),Isn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?wsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&dGe(e,n,i),i},"__decorateClass$3"),qU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),hGe=ze((t,e,n)=>Dsn(t,typeof e!="symbol"?e+"":e,n),"__publicField$1"),YU;let OP=(YU=class extends Cs{constructor(t=GXe,e,n,r){super(),this._config=t,this._injector=e,this._commandService=n,this._configService=r;const{menu:i,...a}=this._config;i&&this._configService.setConfig("menu",i,{merge:!0}),this._configService.setConfig(XXe,a)}onStarting(){[[mh],[R9],[bc],[Ip],[G0],[xP],[io],[mv],[zA],[gv],[_v],[vv],[pv],[g4]].forEach(t=>{this._injector.add(t)}),[wb,lO,sO,TP,fie,uO,mie,YXe,oO,xXe,cie,h3,LXe].forEach(t=>{this._commandService.registerCommand(t)})}},ze(YU,"UniverSheetsDataValidationMobilePlugin"),YU);hGe(OP,"pluginName",iO);hGe(OP,"type",le.UNIVER_SHEET);OP=Isn([yd(hC,Ff,Y0),qU(1,se(Wn)),qU(2,me),qU(3,Za)],OP);var Psn=Object.defineProperty,Msn=Object.getOwnPropertyDescriptor,Tsn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Msn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Psn(e,n,i),i},"__decorateClass$2"),XU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2"),GU;let qA=(GU=class extends et{constructor(t,e,n){super(),this._autoFillService=t,this._dataValidationModel=e,this._injector=n,this._initAutoFill()}_initAutoFill(){const t=ze(()=>({redos:[],undos:[]}),"noopReturnFunc"),e=ze((i,a)=>{const{source:o,target:s,unitId:l,subUnitId:u}=i,c=this._dataValidationModel.getRuleObjectMatrix(l,u).clone(),d=Bf([o,s]),[h,f]=d.ranges,{mapFunc:m}=d,g={row:h.startRow,col:h.startColumn},p=rje(h,f),v=new Ct,_=new Set;p.forEach(A=>{const w=A.repeatStartCell,P=A.relativeRange,M={startRow:g.row,startColumn:g.col,endColumn:g.col,endRow:g.row},L={startRow:w.row,startColumn:w.col,endColumn:w.col,endRow:w.row};Gn.foreach(P,(k,O)=>{const $=ft.getPositionRange({startRow:k,startColumn:O,endColumn:O,endRow:k},M),{row:B,col:V}=m($.startRow,$.startColumn),X=this._dataValidationModel.getRuleIdByLocation(l,u,B,V);if(X){const z=ft.getPositionRange({startRow:k,startColumn:O,endColumn:O,endRow:k},L),{row:F,col:H}=m(z.startRow,z.startColumn);v.setValue(F,H,X),_.add(X)}})});const C=Array.from(_).map(A=>({id:A,ranges:pc(v,w=>w===A)}));c.addRangeRules(C);const S=c.diff(this._dataValidationModel.getRules(l,u)),{redoMutations:b,undoMutations:y}=Q0(l,u,S,this._injector,"patched",a===Mi.ONLY_FORMAT);return{undos:y,redos:b}},"generalApplyFunc"),n=[ia.CHECKBOX],r={id:iO,onBeforeFillData:ze(i=>{const{source:a,unitId:o,subUnitId:s}=i;for(const l of a.rows)for(const u of a.cols){const c=this._dataValidationModel.getRuleByLocation(o,s,l,u);if(c&&n.indexOf(c.type)>-1){this._autoFillService.setDisableApplyType(Mi.SERIES,!0);return}}},"onBeforeFillData"),onFillData:ze((i,a,o)=>o===Mi.COPY||o===Mi.ONLY_FORMAT||o===Mi.SERIES?e(i,o):t(),"onFillData"),onAfterFillData:ze(()=>{},"onAfterFillData")};this.disposeWithMe(this._autoFillService.addHook(r))}},ze(GU,"DataValidationAutoFillController"),GU);qA=Tsn([yn(Vt.Ready,qA),XU(0,om),XU(1,se(io)),XU(2,se(Wn))],qA);var Lsn=Object.defineProperty,xsn=Object.getOwnPropertyDescriptor,Osn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?xsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Lsn(e,n,i),i},"__decorateClass$1"),QU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1"),KU;let YA=(KU=class extends et{constructor(t,e,n){super(),this._sheetInterceptorService=t,this._univerInstanceService=e,this._sheetDataValidationModel=n,this._initSheetChange()}_initSheetChange(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:ze(t=>{var e;if(t.id===ab.id){const n=t.params,r=n.unitId||this._univerInstanceService.getCurrentUnitForType(le.UNIVER_SHEET).getUnitId(),i=this._univerInstanceService.getUniverSheetInstance(r);if(!i)return{redos:[],undos:[]};const a=n.subUnitId||((e=i.getActiveSheet())==null?void 0:e.getSheetId());if(!a)return{redos:[],undos:[]};const o=this._sheetDataValidationModel.getRules(r,a),s=o.map(c=>c.uid),l={unitId:r,subUnitId:a,ruleId:s,source:"patched"},u={unitId:r,subUnitId:a,rule:[...o],source:"patched"};return{redos:[{id:Yl.id,params:l}],undos:[{id:Sc.id,params:u}]}}return{redos:[],undos:[]}},"getMutations")}))}},ze(KU,"SheetDataValidationSheetController"),KU);YA=Osn([yn(Vt.Ready,YA),QU(0,se(Tr)),QU(1,se(Ce)),QU(2,se(io))],YA);var fGe=Object.defineProperty,Nsn=Object.getOwnPropertyDescriptor,ksn=ze((t,e,n)=>e in t?fGe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),Fsn=ze((t,e,n,r)=>{for(var i=r>1?void 0:r?Nsn(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fGe(e,n,i),i},"__decorateClass"),ZU=ze((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),mGe=ze((t,e,n)=>ksn(t,typeof e!="symbol"?e+"":e,n),"__publicField"),JU;let yC=(JU=class extends Cs{constructor(t=GXe,e,n,r){super(),this._config=t,this._injector=e,this._commandService=n,this._configService=r;const{menu:i,...a}=this._config;i&&this._configService.setConfig("menu",i,{merge:!0}),this._configService.setConfig(XXe,a)}onStarting(){[[mh],[R9],[bc],[Ip],[G0],[xP],[io],[mv],[WA],[gv],[_v],[vv],[qA],[pv],[g4],[fv],[YA]].forEach(t=>{this._injector.add(t)}),[wb,lO,sO,TP,fie,uO,mie,YXe,oO,xXe,cie,h3,LXe].forEach(t=>{this._commandService.registerCommand(t)})}},ze(JU,"UniverSheetsDataValidationPlugin"),JU);mGe(yC,"pluginName",iO);mGe(yC,"type",le.UNIVER_SHEET);yC=Fsn([yd(pC,hC,Y0),ZU(1,se(Wn)),ZU(2,me),ZU(3,Za)],yC);const Vsn={Confirm:{cancel:"取消",confirm:"确定"},Slider:{resetTo:"恢复至"},Picker:{name:"zh",weekdays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],weekdaysShort:["周日","周一","周二","周三","周四","周五","周六"],weekdaysMin:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},yearFormat:"YYYY年",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!1,locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",cellDateFormat:"D"},CascaderList:{empty:"无"}},Bsn={design:Vsn},Usn={start:"开始",insert:"插入",formulas:"公式",data:"数据",view:"视图",others:"其他",more:"更多"},Hsn={TimesNewRoman:"Times New Roman",Arial:"Arial",Tahoma:"Tahoma",Verdana:"Verdana",MicrosoftYaHei:"微软雅黑",SimSun:"宋体",SimHei:"黑体",Kaiti:"楷体",FangSong:"仿宋",NSimSun:"新宋体",STXinwei:"华文新魏",STXingkai:"华文行楷",STLiti:"华文隶书",HanaleiFill:"HanaleiFill",Anton:"Anton",Pacifico:"Pacifico"},jsn={undo:"撤销",redo:"重做",cut:"剪切",copy:"复制",paste:"粘贴","shortcut-panel":"打开收起快捷键面板"},$sn={authentication:{title:"无法访问剪贴板",content:"请允许 Univer 访问您的剪贴板。"}},Wsn={formulaError:"请输入合法的公式,例如=SUM(A1)",rangeError:"请输入合法的范围,例如 A1:B10"},zsn={title:"选择一个数据范围",addAnotherRange:"添加范围",buttonTooltip:"选择数据范围",placeHolder:"框选范围或输入",confirm:"确认",cancel:"取消"},qsn={ribbon:Usn,fontFamily:Hsn,"shortcut-panel":{title:"快捷键面板"},shortcut:jsn,"common-edit":"常用编辑","toggle-shortcut-panel":"打开收起快捷键面板",clipboard:$sn,textEditor:Wsn,rangeSelector:zsn,"global-shortcut":"全局快捷键"},Ysn={undo:"撤销",redo:"重做",font:"字体",fontSize:"字号",bold:"粗体",italic:"斜体",strikethrough:"删除线",subscript:"下标",superscript:"上标",underline:"下划线",textColor:{main:"文本颜色",right:"颜色选择"},fillColor:{main:"文本背景色",right:"背景色选择"},table:{main:"表格",insert:"插入表格",colCount:"列数",rowCount:"行数"},resetColor:"重置颜色",order:"有序列表",unorder:"无序列表",checklist:"任务列表",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignJustify:"两端对齐",headerFooter:"页眉页脚"},Xsn={insert:"插入",insertRowAbove:"上方插入行",insertRowBelow:"下方插入行",insertColumnLeft:"左方插入列",insertColumnRight:"右方插入列",delete:"表格删除",deleteRows:"删除行",deleteColumns:"删除列",deleteTable:"删除表格"},Gsn={header:"页眉",footer:"页脚",panel:"页眉页脚设置",firstPageCheckBox:"首页不同",oddEvenCheckBox:"奇偶页不同",headerTopMargin:"页眉顶端距离",footerBottomMargin:"页脚底端距离",closeHeaderFooter:"关闭页眉页脚",disableText:"页眉页脚设置不可用"},Qsn={menu:{paragraphSetting:"段落设置"},slider:{paragraphSetting:"段落设置"},paragraphSetting:{alignment:"对齐方式",indentation:"缩进",left:"左边距",right:"右边距",firstLine:"首行",hanging:"悬挂",spacing:"间距",before:"段落前",after:"段落后",lineSpace:"行距",multiSpace:"多倍行距",fixedValue:"固定值(px)"}},Ksn={toolbar:Ysn,table:Xsn,headerFooter:Gsn,doc:Qsn},Zsn={tabs:{sheetCopy:"(副本{0})",sheet:"工作表"},info:{overlappingSelections:"无法对重叠选区使用该命令",acrossMergedCell:"无法跨越合并单元格",partOfCell:"仅选择了合并单元格的一部分",hideSheet:"隐藏后无可见工作表"}},Jsn={sheets:Zsn},eln="插件",tln="更多 Sheets",nln={undo:"撤销",redo:"重做",formatPainter:"格式刷",currencyFormat:"货币格式",percentageFormat:"百分比格式",numberDecrease:"减少小数位数",numberIncrease:"增加小数位数",moreFormats:"更多格式",font:"字体",fontSize:"字号",bold:"粗体",italic:"斜体",strikethrough:"删除线",subscript:"下标",superscript:"上标",underline:"下划线",textColor:{main:"文本颜色",right:"颜色选择"},resetColor:"重置颜色",customColor:"自定义",alternatingColors:"交替颜色",confirmColor:"确定颜色",cancelColor:"取消",collapse:"收起",fillColor:{main:"单元格颜色",right:"颜色选择"},border:{main:"边框",right:"边框类型"},mergeCell:{main:"合并单元格",right:"选择合并类型"},horizontalAlignMode:{main:"水平对齐",right:"对齐方式"},verticalAlignMode:{main:"垂直对齐",right:"对齐方式"},textWrapMode:{main:"文本换行",right:"换行方式"},textRotateMode:{main:"文本旋转",right:"旋转方式"},freezeTopRow:"冻结首行",sortAndFilter:"排序和筛选",findAndReplace:"查找替换",sum:"求和",autoSum:"自动求和",moreFunction:"更多函数",conditionalFormatting:"条件格式",comment:"批注",pivotTable:"数据透视表",chart:"图表",screenshot:"截图",splitColumn:"分列",insertImage:"插入图片",insertLink:"插入链接",dataValidation:"数据验证",protection:"保护工作表内容",clearText:"清除颜色选择",noColorSelectedText:"没有颜色被选择",toolMore:"更多",toolLess:"少于",toolClose:"收起",toolMoreTip:"更多功能",moreOptions:"更多选项",cellFormat:"设置单元格格式",print:"打印",borderMethod:{top:"上框线",bottom:"下框线",left:"左框线",right:"右框线"},more:"更多"},rln={Automatic:{text:"自动",value:"General",example:""},Number:{text:"数字",value:"##0.00",example:"1000.12"},Percent:{text:"百分比",value:"#0.00%",example:"12.21%"},PlainText:{text:"纯文本",value:"@",example:""},Scientific:{text:"科学计数",value:"0.00E+00",example:"1.01E+5"},Accounting:{text:"会计",value:"¥(0.00)",example:"¥(1200.09)"},Thousand:{text:"万元",value:"w",example:"1亿2000万2500"},Currency:{text:"货币",value:"¥0.00",example:"¥1200.09"},Digit:{text:"万元2位小数",value:"w0.00",example:"2万2500.55"},Date:{text:"日期",value:"yyyy-MM-dd",example:"2017-11-29"},Time:{text:"时间",value:"hh:mm AM/PM",example:"3:00 PM"},Time24H:{text:"时间24H",value:"hh:mm",example:"15:00"},DateTime:{text:"日期时间",value:"yyyy-MM-dd hh:mm AM/PM",example:"2017-11-29 3:00 PM"},DateTime24H:{text:"日期时间24H",value:"yyyy-MM-dd hh:mm",example:"2017-11-29 15:00"},CustomFormats:{text:"自定义格式",value:"fmtOtherSelf",example:""}},iln={moreCurrency:"更多货币格式",moreDateTime:"更多日期与时间格式",moreNumber:"更多数字格式",titleCurrency:"货币格式",decimalPlaces:"小数位数",titleDateTime:"日期与时间格式",titleNumber:"数字格式"},aln={normalBtn:"常规视图",layoutBtn:"页面布局",pageBtn:"分页预览",menuItemPrint:"打印(Ctrl+P)",menuItemAreas:"打印区域",menuItemRows:"打印标题行",menuItemColumns:"打印标题列"},oln={left:"左对齐",center:"中间对齐",right:"右对齐",top:"顶部对齐",middle:"居中对齐",bottom:"底部对齐"},sln={confirm:"确定",cancel:"取消",close:"关闭",update:"Update",delete:"Delete",insert:"新建",prevPage:"上一页",nextPage:"下一页",total:"总共:"},lln={tab:"Tab 键",semicolon:"分号",comma:"逗号",space:"空格"},uln={collapse:"收起",customColor:"自定义",change:"切换",confirmColor:"确定",cancelColor:"取消"},cln={borderTop:"上框线",borderBottom:"下框线",borderLeft:"左框线",borderRight:"右框线",borderNone:"无",borderAll:"所有",borderOutside:"外侧",borderInside:"内侧",borderHorizontal:"内侧横线",borderVertical:"内侧竖线",borderColor:"边框颜色",borderSize:"边框粗细",borderType:"边框线类型"},dln={all:"全部合并",vertical:"垂直合并",horizontal:"水平合并",cancel:"取消合并",overlappingError:"不能合并重叠区域",partiallyError:"无法对部分合并单元格执行此操作",confirm:{title:"合并单元格仅保存左上角单元格的值,是否继续?",cancel:"取消合并",confirm:"继续合并",waring:"警告",dismantleMergeCellWaring:"此操作会导致一些合并单元格被拆散,是否继续?"}},hln={confirm:{error:"出现了一个问题",notAllowedToInsertRange:"要移动这些单元格,请清除该区域的筛选器"}},fln={overflow:"溢出",wrap:"自动换行",clip:"截断"},mln={none:"无旋转",angleUp:"向上倾斜",angleDown:"向下倾斜",vertical:"竖排文字",rotationUp:"向上90°",rotationDown:"向下90°"},gln={delete:"删除",copy:"复制",rename:"重命名",changeColor:"更改颜色",hide:"隐藏",unhide:"取消隐藏",moveLeft:"向左移",moveRight:"向右移",resetColor:"重置颜色",cancelText:"取消",chooseText:"确定颜色",tipNameRepeat:"标签页的名称不能重复!请重新修改",noMoreSheet:"工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。",confirmDelete:"是否删除",redoDelete:"可以通过Ctrl+Z撤销删除",noHide:"不能隐藏, 至少保留一个sheet标签",chartEditNoOpt:"图表编辑模式下不允许该操作!",sheetNameErrorTitle:"错误",sheetNameSpecCharError:"名称不能超过 31 个字符,首尾不能是' 且名称不能包含: [ ] : \\ ? * /",sheetNameCannotIsEmptyError:"名称不能为空。",sheetNameAlreadyExistsError:"工作表已存在,请输入其它名称。",deleteSheet:"删除工作表",deleteSheetContent:"确认删除此工作表,删除后将不可找回,确定要删除吗?",addProtectSheet:"保护工作表",removeProtectSheet:"取消保护工作表",changeSheetPermission:"更改工作表权限",viewAllProtectArea:"查看所有保护范围"},pln={copy:"复制",copyAs:"复制为",cut:"剪切",paste:"粘贴",pasteSpecial:"选择性粘贴",pasteValue:"仅粘贴值",pasteFormat:"仅粘贴格式",pasteColWidth:"仅粘贴列宽",pasteBesidesBorder:"仅粘贴边框以外内容",insert:"插入",delete:"删除",insertRow:"插入行",insertRowBefore:"在上方插入行",insertColumn:"插入列",insertColumnBefore:"在左侧插入列",deleteCell:"删除单元格",insertCell:"插入单元格",deleteSelected:"删除选中",hide:"隐藏",hideSelected:"隐藏选中",showHide:"显示隐藏",toTopAdd:"向上增加",toBottomAdd:"向下增加",toLeftAdd:"向左增加",toRightAdd:"向右增加",deleteSelectedRow:"删除选中行",deleteSelectedColumn:"删除选中列",hideSelectedRow:"隐藏选中行",showHideRow:"显示隐藏行",rowHeight:"行高",hideSelectedColumn:"隐藏选中列",showHideColumn:"显示隐藏列",columnWidth:"列宽",to:"向",left:"左",right:"右",top:"上",bottom:"下",moveLeft:"左移",moveUp:"上移",moveRight:"右移",moveDown:"下移",add:"增加",row:"行",column:"列",width:"宽",height:"高",number:"数字",confirm:"确认",orderAZ:"A-Z顺序排列",orderZA:"Z-A降序排列",clearSelection:"清除",clearContent:"清除内容",clearFormat:"清除格式",clearAll:"清除全部",matrix:"矩阵操作选区",sortSelection:"排序选区",filterSelection:"筛选选区",chartGeneration:"图表生成",firstLineTitle:"首行为标题",untitled:"无标题",array1:"一维数组",array2:"二维数组",array3:"多维数组",diagonal:"对角线",antiDiagonal:"反对角线",diagonalOffset:"对角偏移",offset:"偏移量",boolean:"布尔值",flip:"翻转",upAndDown:"上下",leftAndRight:"左右",clockwise:"顺时针",counterclockwise:"逆时针",transpose:"转置",matrixCalculation:"矩阵计算",plus:"加",minus:"减",multiply:"乘",divided:"除",power:"次方",root:"次方根",log:"log",delete0:"删除两端0值",removeDuplicate:"删除重复值",byRow:"按行",byCol:"按列",generateNewMatrix:"生成新矩阵",fitContent:"适合数据",freeze:"冻结",freezeCol:"冻结列",freezeRow:"冻结行",cancelFreeze:"取消冻结",zenEditor:"禅模式编辑",deleteAllRowsAlert:"您无法删除工作表上的所有行",deleteAllColumnsAlert:"您无法删除工作表上的所有列",hideAllRowsAlert:"您无法隐藏工作表上的所有行",hideAllColumnsAlert:"您无法隐藏工作表上的所有列",protectRange:"保护行列",editProtectRange:"设置保护范围",removeProtectRange:"移除保护范围",turnOnProtectRange:"新增保护范围",viewAllProtectArea:"查看所有保护范围"},vln={tooltip:"提示",error:"错误",notChangeMerge:"不能对合并单元格做部分更改",detailUpdate:"新打开",detailSave:"已恢复本地缓存",row:"行",column:"列",loading:"渲染中···",copy:"副本",return:"返回",rename:"重命名",tips:"重命名",noName:"无标题的电子表格",wait:"待更新",add:"添加",addLast:"在底部添加",backTop:"回到顶部",pageInfo:"共${total}条,${totalPage}页,当前已显示${currentPage}页",nextPage:"下一页",tipInputNumber:"请输入数字",tipInputNumberLimit:"增加范围限制在1-100",tipRowHeightLimit:"行高必须在0 ~ 545之间",tipColumnWidthLimit:"列宽必须在0 ~ 2038之间",pageInfoFull:"共${total}条,${totalPage}页,已显示全部数据",problem:"出现了一个问题",forceStringInfo:"以文本形式存储的数字"},_ln={paste:{exceedMaxCells:"粘贴区域超出最大单元格数",overlappingMergedCells:"粘贴区域与合并单元格重叠"},shortCutNotify:{title:"请使用快捷键粘贴",useShortCutInstead:"检测到 Excel 内容,请使用快捷键粘贴"}},Cln={sum:"求和",average:"平均值",min:"最小值",max:"最大值",count:"数值计数",countA:"计数",clickToCopy:"点击复制数值",copied:"已复制"},Sln={copy:"复制单元格",series:"填充序列",formatOnly:"仅填充格式",noFormat:"不带格式填充"},bln={placeholder:"选择范围或输入值",tooltip:"选择范围"},yln={sheet:{"zoom-in":"放大","zoom-out":"缩小","reset-zoom":"恢复缩放","select-below-cell":"选择下方单元格","select-up-cell":"选择上方单元格","select-left-cell":"选择左侧单元格","select-right-cell":"选择右侧单元格","select-next-cell":"选择后一个单元格","select-previous-cell":"选择前一个单元格","select-up-value-cell":"选择上方有值的单元格","select-below-value-cell":"选择下方有值的单元格","select-left-value-cell":"选择左侧有值的单元格","select-right-value-cell":"选择右侧有值的单元格","expand-selection-down":"向下扩展选区","expand-selection-up":"向上扩展选区","expand-selection-left":"向左扩展选区","expand-selection-right":"向右扩展选区","expand-selection-to-left-gap":"向左扩展选区到下一个边界","expand-selection-to-below-gap":"向下扩展选区到下一个边界","expand-selection-to-right-gap":"向右扩展选区到下一个边界","expand-selection-to-up-gap":"向上扩展选区到下一个边界","select-all":"全选","toggle-editing":"开始 / 结束编辑","delete-and-start-editing":"清空并开始编辑","abort-editing":"放弃编辑","break-line":"换行","set-bold":"切换粗体","set-italic":"切换斜体","set-underline":"切换下划线","set-strike-through":"切换删除线","start-editing":"开始编辑(选区切换到编辑器)"}},Eln={managerTitle:"名称管理器",managerDescription:"通过选择单元格或公式,并在文本框中输入您想要的名称来创建一个定义名称。",addButton:"新建名称",featureTitle:"定义名称",ratioRange:"范围",ratioFormula:"公式",confirm:"确认",cancel:"取消",scopeWorkbook:"工作簿",inputNamePlaceholder:"请输入名称(必填)",inputCommentPlaceholder:"请输入备注",inputRangePlaceholder:"请输入范围(必填)",inputFormulaPlaceholder:"请输入公式(必填)",nameEmpty:"名称不能为空",nameDuplicate:"名称重复",formulaOrRefStringEmpty:"公式或引用字符串不能为空",formulaOrRefStringInvalid:"公式或引用字符串无效",defaultName:"DefinedName",updateButton:"修改",deleteButton:"删除",deleteConfirmText:"确定删除定义名称?",nameConflict:"与函数名称冲突",nameInvalid:"名称不包含空格或不允许的字符",nameSheetConflict:"名称与工作表名称冲突"},Rln={loading:"正在上传,当前剩余",error:"加载失败"},Aln={toolbarMenu:"保护",panel:{title:"保护行列",name:"名称",protectedRange:"保护区域",permissionDirection:"权限描述",permissionDirectionPlaceholder:"请输入权限描述",editPermission:"编辑权限",onlyICanEdit:"仅我可以编辑",designedUserCanEdit:"指定用户可以编辑",viewPermission:"查看权限",othersCanView:"其他人可以查看",noOneElseCanView:"其他人不可以查看",designedPerson:"指定人员",addPerson:"添加人员",canEdit:"可编辑",canView:"可查看",delete:"删除",currentSheet:"当前工作表",allSheet:"所有工作表",edit:"编辑",Print:"打印",Comment:"评论",Copy:"复制",SetCellStyle:"设置单元格样式",SetCellValue:"设置单元格值",SetHyperLink:"设置超链接",Sort:"排序",Filter:"筛选",PivotTable:"数据透视表",FloatImage:"浮动图片",RowHeightColWidth:"行高列宽",RowHeightColWidthReadonly:"只读行高列宽",FilterReadonly:"只读筛选",nameError:"名称不能为空",created:"创建",iCanEdit:"我可以编辑",iCanNotEdit:"我不可以编辑",iCanView:"我可以查看",iCanNotView:"我不可以查看",emptyRangeError:"范围不能为空",rangeOverlapError:"范围不能重叠",rangeOverlapOverPermissionError:"范围不能重叠已有权限范围",InsertHyperlink:"插入超链接",SetRowStyle:"设置行样式",SetColumnStyle:"设置列样式",InsertColumn:"插入列",InsertRow:"插入行",DeleteRow:"删除行",DeleteColumn:"删除列",EditExtraObject:"编辑其他对象"},dialog:{allowUserToEdit:"允许用户编辑",allowedPermissionType:"允许权限类型",setCellValue:"设置单元格值",setCellStyle:"设置单元格样式",copy:"复制",alert:"提示",alertContent:"该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。",userEmpty:"没有指定的人员,分享链接以邀请特定的人。",listEmpty:"你还没有设置任何范围或工作表为受保护状态。",commonErr:"该范围已被保护,目前无该操作权限。如需编辑,请联系创建者。",editErr:"该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。",pasteErr:"该范围已被保护,目前无粘贴权限。如需粘贴,请联系创建者。",setStyleErr:"该范围已被保护,目前无设置样式权限。如需设置样式,请联系创建者。",copyErr:"该范围已被保护,目前无复制权限。如需复制,请联系创建者。",workbookCopyErr:"该工作簿已被保护,目前无复制权限。如需复制,请联系创建者。",setRowColStyleErr:"该范围已被保护,目前无设置行列样式权限。如需设置行列样式,请联系创建者。",moveRowColErr:"该范围已被保护,目前无移动行列权限。如需移动行列,请联系创建者。",moveRangeErr:"该范围已被保护,目前无移动选区权限。如需移动选区,请联系创建者。",autoFillErr:"该范围已被保护,目前无自动填充权限。如需自动填充,请联系创建者。",filterErr:"该范围已被保护,目前无筛选权限。如需筛选,请联系创建者。",operatorSheetErr:"该工作表已被保护,目前无操作工作表权限。如需操作工作表,请联系创建者。",insertOrDeleteMoveRangeErr:"插入、删除区域与保护范围相交,暂不支持此操作。",printErr:"该工作表已被保护,目前无打印权限。如需打印,请联系创建者。",formulaErr:"该范围或者引用范围已被保护,目前无编辑权限。如需编辑,请联系创建者。",hyperLinkErr:"该范围已被保护,目前无设置超链接权限。如需设置超链接,请联系创建者。"},button:{confirm:"确认",cancel:"取消",addNewPermission:"添加新权限"}},wln={spreadsheetLabel:eln,spreadsheetRightLabel:tln,toolbar:nln,defaultFmt:rln,format:iln,print:aln,align:oln,button:sln,punctuation:lln,colorPicker:uln,borderLine:cln,merge:dln,filter:hln,textWrap:fln,textRotate:mln,sheetConfig:gln,rightClick:pln,info:vln,clipboard:_ln,statusbar:Cln,autoFill:Sln,rangeSelector:bln,shortcut:yln,"sheet-view":"浏览表格","sheet-edit":"编辑表格",definedName:Eln,uploadLoading:Rln,permission:Aln},Dln={title:"数据验证",validFail:{value:"请输入一个合法值",common:"请输入值或公式",number:"请输入合法的数字或公式",formula:"请输入合法的公式",integer:"请输入合法的整数或公式",date:"请输入合法的日期或公式",list:"请输入至少一个合法选项",listInvalid:"列表源必须是分隔列表或对单行或列的引用。",checkboxEqual:"为勾选和未勾选的单元格内容输入不同的值。",formulaError:"引用范围内包含不可见的数据,请重新调整范围",listIntersects:"所选范围不能和规则范围相交",primitive:"自定义勾选和未勾选值不允许使用公式。"},panel:{title:"管理数据验证",addTitle:"新建数据验证",removeAll:"全部删除",add:"新建规则",range:"应用范围",rangeError:"请输入合法的应用范围",type:"条件类型",options:"高级设置",operator:"数据",removeRule:"删除规则",done:"确认",formulaPlaceholder:"请输入值或公式",valuePlaceholder:"请输入值",formulaAnd:"与",invalid:"数据无效时",showWarning:"显示警告",rejectInput:"拒绝输入",messageInfo:"文字提示",showInfo:"显示所选单元格的提示文字"},operators:{between:"介于",greaterThan:"大于",greaterThanOrEqual:"大于或等于",lessThan:"小于",lessThanOrEqual:"小于或等于",equal:"等于",notEqual:"不等于",notBetween:"未介于"},ruleName:{between:"介于 {FORMULA1} 和 {FORMULA2} 之间",greaterThan:"大于 {FORMULA1}",greaterThanOrEqual:"大于或等于 {FORMULA1}",lessThan:"小于 {FORMULA1}",lessThanOrEqual:"小于或等于 {FORMULA1}",equal:"等于 {FORMULA1}",notEqual:"不等于 {FORMULA1}",notBetween:"在 {FORMULA1} 和 {FORMULA2} 范围之外"},errorMsg:{between:"值必须介于 {FORMULA1} 和 {FORMULA2} 之间",greaterThan:"值必须大于 {FORMULA1}",greaterThanOrEqual:"值必须大于或等于 {FORMULA1}",lessThan:"值必须小于 {FORMULA1}",lessThanOrEqual:"值必须小于或等于 {FORMULA1}",equal:"值必须等于 {FORMULA1}",notEqual:"值必须不等于 {FORMULA1}",notBetween:"值必须在 {FORMULA1} 和 {FORMULA2} 范围之外"},date:{title:"日期",operators:{between:"介于",greaterThan:"晚于",greaterThanOrEqual:"晚于或等于",lessThan:"早于",lessThanOrEqual:"早于或等于",equal:"等于",notEqual:"不等于",notBetween:"未介于"},ruleName:{between:"介于 {FORMULA1} 和 {FORMULA2} 之间",greaterThan:"晚于 {FORMULA1}",greaterThanOrEqual:"晚于或等于 {FORMULA1}",lessThan:"早于 {FORMULA1}",lessThanOrEqual:"早于或等于 {FORMULA1}",equal:"等于 {FORMULA1}",notEqual:"不等于 {FORMULA1}",notBetween:"在 {FORMULA1} 和 {FORMULA2} 范围之外"},errorMsg:{between:"必须为有效日期且介于 {FORMULA1} 和 {FORMULA2} 之间",greaterThan:"必须为有效日期且晚于 {FORMULA1}",greaterThanOrEqual:"必须为有效日期且晚于或等于 {FORMULA1}",lessThan:"必须为有效日期且早于 {FORMULA1}",lessThanOrEqual:"必须为有效日期且早于或等于 {FORMULA1}",equal:"必须为有效日期且等于 {FORMULA1}",notEqual:"必须为有效日期且不等于 {FORMULA1}",notBetween:"必须为有效日期且在 {FORMULA1} 和 {FORMULA2} 范围之外"}},list:{title:"下拉菜单",name:"值必须是列表中的值",error:"输入必须在指定的范围内",emptyError:"请输入一个值",add:"添加选项",dropdown:"单选",options:"选项来源",customOptions:"自定义",refOptions:"引用数据",formulaError:"列表源必须是划定分界后的数据列表,或是对单一行或一列的引用。",edit:"编辑"},listMultiple:{title:"下拉菜单-多选",dropdown:"多选"},textLength:{title:"文本长度",errorMsg:{between:"文本长度必须介于 {FORMULA1} 和 {FORMULA2} 之间",greaterThan:"文本长度必须大于 {FORMULA1}",greaterThanOrEqual:"文本长度必须大于或等于 {FORMULA1}",lessThan:"文本长度必须小于 {FORMULA1}",lessThanOrEqual:"文本长度必须小于或等于 {FORMULA1}",equal:"文本长度必须等于 {FORMULA1}",notEqual:"文本长度必须不等于 {FORMULA1}",notBetween:"文本长度必须在 {FORMULA1} 和 {FORMULA2} 范围之外"}},decimal:{title:"数字"},whole:{title:"整数"},checkbox:{title:"复选框",error:"此单元格的内容违反了验证规则",tips:"在单元格内使用自定义值",checked:"选中值",unchecked:"未选中值"},custom:{title:"自定义公式",error:"此单元格的内容违反了验证规则",validFail:"请输入合法的公式"},alert:{title:"提示",ok:"确定"},error:{title:"无效:"},renderMode:{arrow:"箭头",chip:"条状标签",text:"纯文本",label:"显示样式"},showTime:{label:"展示时间选择"}},Iln={dataValidation:Dln},Pln=CGe({__name:"Ledger",props:{data:{type:Object,default:()=>({})}},setup(t,{expose:e}){const n=mO(null),r=mO(null),i=mO(null);SGe(()=>{a(t.data)}),bGe(()=>{o()});const a=(l={})=>{const u=new NJe({theme:tZ,locale:pf.ZH_CN,locales:{[pf.ZH_CN]:Ie.deepMerge(Jsn,Ksn,wln,qsn,Bsn,Iln)}});n.value=u,u.registerPlugin(LI,{container:i.value,toolbar:!0}),u.registerPlugin(_z,{hasScroll:!1}),u.registerPlugin(zq),u.registerPlugin(Ff),u.registerPlugin(Y0),u.registerPlugin(dC),u.registerPlugin(hC),u.registerPlugin(yC),r.value=u.createUnit(le.UNIVER_SHEET,l)},o=()=>{var l;(l=yGe(n.value))==null||l.dispose(),n.value=null,r.value=null};return e({getData:()=>{if(!r.value)throw new Error("Workbook is not initialized");console.log(r.value.save())},destroyUniver:o}),(l,u)=>(RGe(),EGe("div",{ref_key:"container",ref:i,class:"univer-container"},null,512))}}),_pn=gGe(Pln,[["__scopeId","data-v-a5b1c283"]]);export{_pn as default};
|