@stll/folio-vue 0.32.1 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/FindReplaceDialog-CfcTl2Ra.cjs +1 -0
  2. package/dist/FindReplaceDialog-DEWjhuOw.js +168 -0
  3. package/dist/HorizontalRuler-Cuk0l4Us.cjs +1 -0
  4. package/dist/HorizontalRuler-TM9dg--R.js +341 -0
  5. package/dist/HyperlinkDialog-BEse_y7R.js +175 -0
  6. package/dist/HyperlinkDialog-Cs1y6aol.cjs +1 -0
  7. package/dist/ImagePropertiesDialog-CTbX2GrE.cjs +1 -0
  8. package/dist/ImagePropertiesDialog-mrJ8S3sl.js +186 -0
  9. package/dist/ImageSelectionOverlay-DULrvfOJ.js +386 -0
  10. package/dist/ImageSelectionOverlay-Dr0lg9WZ.cjs +1 -0
  11. package/dist/InsertSymbolDialog-BjB-Q9EO.js +93 -0
  12. package/dist/InsertSymbolDialog-BsjgPYM-.cjs +1 -0
  13. package/dist/PageSetupDialog-CZ5fE9rz.cjs +1 -0
  14. package/dist/PageSetupDialog-DNNSezj3.js +208 -0
  15. package/dist/SetNumberingValueDialog-ClCYr37D.cjs +1 -0
  16. package/dist/SetNumberingValueDialog-CwLHfO7f.js +54 -0
  17. package/dist/SplitCellDialog-Bfuo5WCO.cjs +1 -0
  18. package/dist/SplitCellDialog-HIg4ZEqt.js +1031 -0
  19. package/dist/StylePicker-BnGGlXOX.cjs +4 -0
  20. package/dist/{StylePicker-DmTN56Yg.js → StylePicker-F3cLPvRE.js} +593 -1100
  21. package/dist/TablePropertiesDialog-CRX9Xgdr.js +102 -0
  22. package/dist/TablePropertiesDialog-ClJSuB0F.cjs +1 -0
  23. package/dist/VerticalRuler-D973NTMv.js +178 -0
  24. package/dist/VerticalRuler-DVi2P_TO.cjs +1 -0
  25. package/dist/WatermarkDialog-BYyBTlDK.cjs +1 -0
  26. package/dist/WatermarkDialog-BoAdQ-qK.js +161 -0
  27. package/dist/components/DocxEditor/types.d.ts +1 -1
  28. package/dist/components/dialogs/recentSymbols.d.ts +7 -0
  29. package/dist/composables/useDocxEditor.d.ts +4 -1
  30. package/dist/composables/useTrackedChanges.d.ts +5 -2
  31. package/dist/composables.cjs +1 -1
  32. package/dist/composables.js +1 -1
  33. package/dist/dialogs.cjs +1 -1
  34. package/dist/dialogs.js +9 -1
  35. package/dist/{SplitCellDialog-BczVYfpm.js → folio-ui-ctJdVP-s.js} +678 -2753
  36. package/dist/folio-ui-u7h3WXUO.cjs +15 -0
  37. package/dist/folio-vue.css +1 -1
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.d.ts +1 -2
  40. package/dist/index.js +1666 -2064
  41. package/dist/messages/ar.cjs +1 -1
  42. package/dist/messages/cs.cjs +1 -1
  43. package/dist/messages/de.cjs +1 -1
  44. package/dist/messages/en.cjs +1 -1
  45. package/dist/messages/es.cjs +1 -1
  46. package/dist/messages/et.cjs +1 -1
  47. package/dist/messages/fr.cjs +1 -1
  48. package/dist/messages/he.cjs +1 -1
  49. package/dist/messages/hi.cjs +1 -1
  50. package/dist/messages/hu.cjs +1 -1
  51. package/dist/messages/lt.cjs +1 -1
  52. package/dist/messages/lv.cjs +1 -1
  53. package/dist/messages/pl.cjs +1 -1
  54. package/dist/messages/pt-BR.cjs +1 -1
  55. package/dist/messages/sk.cjs +1 -1
  56. package/dist/messages/tr.cjs +1 -1
  57. package/dist/messages/zh-CN.cjs +1 -1
  58. package/dist/rolldown-runtime-DbbDpzbe.cjs +1 -0
  59. package/dist/ui.cjs +1 -1
  60. package/dist/ui.js +28 -18
  61. package/dist/useZoom-BKM59EqE.js +1013 -0
  62. package/dist/useZoom-C0dkG1Q4.cjs +1 -0
  63. package/dist/utils/comments.d.ts +1 -1
  64. package/package.json +2 -2
  65. package/dist/SplitCellDialog-CrLHwVLc.cjs +0 -15
  66. package/dist/StylePicker-C0iEQnw6.cjs +0 -4
  67. package/dist/rolldown-runtime-5iZMYShA.cjs +0 -1
  68. package/dist/useZoom-1kmdkmJ4.js +0 -1006
  69. package/dist/useZoom-Bj5B9uT1.cjs +0 -1
@@ -0,0 +1,15 @@
1
+ const e=require("./rolldown-runtime-DbbDpzbe.cjs");let t=require("vue"),n=require("@stll/folio-core/i18n/loadMessages"),r=require("@stll/folio-core/i18n/messages/en"),i=require("@stll/folio-core/utils/colorResolver"),a=require("@stll/folio-core/utils/sliceText");function o(e,t){let n=t&&t.cache?t.cache:g,r=t&&t.serializer?t.serializer:m;return(t&&t.strategy?t.strategy:d)(e,{cache:n,serializer:r})}function s(e){return e==null||typeof e==`number`||typeof e==`boolean`}function c(e,t,n,r){let i=s(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function l(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function u(e,t,n,r,i){return n.bind(t,e,r,i)}function d(e,t){let n=e.length===1?c:l;return u(e,this,n,t.cache.create(),t.serializer)}function f(e,t){return u(e,this,l,t.cache.create(),t.serializer)}function p(e,t){return u(e,this,c,t.cache.create(),t.serializer)}var m=function(){return JSON.stringify(arguments)},h=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},g={create:function(){return new h}},_={variadic:f,monadic:p},v=class extends Error{constructor(e,t){let n=e;t&&(n+=`: `+t),super(n),this.code=e,t&&(this.originalMessage=t)}},y=function(e){return e.MISSING_MESSAGE=`MISSING_MESSAGE`,e.MISSING_FORMAT=`MISSING_FORMAT`,e.ENVIRONMENT_FALLBACK=`ENVIRONMENT_FALLBACK`,e.INSUFFICIENT_PATH=`INSUFFICIENT_PATH`,e.INVALID_MESSAGE=`INVALID_MESSAGE`,e.INVALID_KEY=`INVALID_KEY`,e.FORMATTING_ERROR=`FORMATTING_ERROR`,e}(y||{});function b(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function x(e,t){return o(e,{cache:(n=t,{create:()=>({get:e=>n[e],set(e,t){n[e]=t}})}),strategy:_.variadic});var n}function S(e,t){return x(((...t)=>new e(...t)),t)}function C(e){return{getDateTimeFormat:S(Intl.DateTimeFormat,e.dateTime),getNumberFormat:S(Intl.NumberFormat,e.number),getPluralRules:S(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:S(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:S(Intl.ListFormat,e.list),getDisplayNames:S(Intl.DisplayNames,e.displayNames)}}var w=e.t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var ee={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ee,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),T=e.t(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;U[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),U[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=ue,this.updater=n||le}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=ue,this.updater=n||le}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case z:return`Fragment`;case te:return`Profiler`;case ee:return`StrictMode`;case ie:return`Suspense`;case ae:return`SuspenseList`;case oe:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case R:return`Portal`;case ne:return e.displayName||`Context`;case B:return(e._context.displayName||`Context`)+`.Consumer`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case V:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case H:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===z)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===H)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=K.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(q.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){me||(me=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return ge[e]||(ge[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:L,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===H&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===L}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case L:case R:s=!0;break;case H:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return de(a)?(n=``,c!=null&&(n=c.replace(be,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(be,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,de(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(ye||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),ye=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=null,n=null,r=e._ioInfo;r!=null&&(r.start=r.end=performance.now(),r.value=new Promise(function(e,r){t=e,n=r})),r=e._result;var i=r();if(i.then(function(n){if(e._status===0||e._status===-1){e._status=1,e._result=n;var r=e._ioInfo;if(r!=null){r.end=performance.now();var a=n?.default;t(a),r.value.status=`fulfilled`,r.value.value=a}i.status===void 0&&(i.status=`fulfilled`,i.value=n)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now(),r.value.then(c,c),n(t),r.value.status=`rejected`,r.value.reason=t),i.status===void 0&&(i.status=`rejected`,i.reason=t)}}),r=e._ioInfo,r!=null){var a=i.displayName;typeof a==`string`&&(r.name=a)}e._status===-1&&(e._status=0,e._result=i)}if(e._status===1)return r=e._result,r===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,r),`default`in r||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,r),r.default;throw e._result}function O(){var e=K.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){K.asyncTransitions--}function A(e){var t=K.T,n={};n.types=t===null?null:t.types,n._updatedFibers=new Set,K.T=n;try{var r=e(),i=K.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(K.asyncTransitions++,r.then(k,k),r.then(c,xe))}catch(e){xe(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),K.T=t}}function j(e){var t=K.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else K.asyncTransitions===0&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),A(j.bind(null,e))}function M(e){if(Y===null)try{var n=(`require`+Math.random()).slice(0,7);Y=(t&&t[n]).call(t,`timers`).setImmediate}catch{Y=function(e){!1===J&&(J=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Y(e)}function N(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function P(e,t){t!==Se-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Se=t}function F(e,t,n){var r=K.actQueue;if(r!==null){if(r.length!==0)try{I(r),M(function(){return F(e,t,n)});return}catch(e){K.thrownErrors.push(e)}else K.actQueue=null}0<K.thrownErrors.length?(r=N(K.thrownErrors),K.thrownErrors.length=0,n(r)):t(e)}function I(e){if(!X){X=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{K.didUsePromise=!1;var r=n(!1);if(r!==null){if(K.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),K.thrownErrors.push(n)}finally{X=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L=Symbol.for(`react.transitional.element`),R=Symbol.for(`react.portal`),z=Symbol.for(`react.fragment`),ee=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),B=Symbol.for(`react.consumer`),ne=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),ie=Symbol.for(`react.suspense`),ae=Symbol.for(`react.suspense_list`),V=Symbol.for(`react.memo`),H=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.view_transition`),ce=Symbol.iterator,U={},le={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},W=Object.assign,ue={};Object.freeze(ue),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var G={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Z in G)G.hasOwnProperty(Z)&&n(Z,G[Z]);o.prototype=a.prototype,G=s.prototype=new o,G.constructor=s,W(G,a.prototype),G.isPureReactComponent=!0;var de=Array.isArray,fe=Symbol.for(`react.client.reference`),K={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},q=Object.prototype.hasOwnProperty,pe=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(e){return e()}};var me,he,ge={},_e=G.react_stack_bottom_frame.bind(G,m)(),ve=pe(f(m)),ye=!1,be=/\/+/g,xe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},J=!1,Y=null,Se=0,Ce=!1,X=!1,we=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:M;G=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var Z={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=oe,e.Children=Z,e.Component=a,e.Fragment=z,e.Profiler=te,e.PureComponent=s,e.StrictMode=ee,e.Suspense=ie,e.ViewTransition=se,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,e.__COMPILER_RUNTIME=G,e.act=function(e){var t=K.actQueue,n=Se;Se++;var r=K.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length)throw P(t,n),e=N(K.thrownErrors),K.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return we(function(){i||Ce||(Ce=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(P(t,n),n===0){try{I(r),M(function(){return F(i,e,a)})}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length){var o=N(K.thrownErrors);K.thrownErrors.length=0,a(o)}}else e(i)},function(e){P(t,n),0<K.thrownErrors.length&&(e=N(K.thrownErrors),K.thrownErrors.length=0),a(e)})}}}var s=a;if(P(t,n),n===0&&(I(r),r.length!==0&&we(function(){i||Ce||(Ce=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),K.actQueue=null),0<K.thrownErrors.length)throw e=N(K.thrownErrors),K.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(K.actQueue=r,M(function(){return F(s,e,t)})):e(s)}}},e.addTransitionType=j,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=K.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=W({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(q.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!q.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:ne,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:B,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);var i;r={};var a=null;if(t!=null)for(i in he||!(`__self`in t)||`key`in t||(he=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),a=``+t.key),t)q.call(t,i)&&i!==`key`&&i!==`__self`&&i!==`__source`&&(r[i]=t[i]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];Object.freeze&&Object.freeze(s),r.children=s}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)r[i]===void 0&&(r[i]=o[i]);return a&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e),(i=1e4>K.recentlyCreatedOwnerStacks++)?(s=Error.stackTraceLimit,Error.stackTraceLimit=10,o=Error(`react-stack-top-frame`),Error.stackTraceLimit=s):o=_e,v(e,a,r,p(),o,i?pe(f(e)):ve)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:re,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:H,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:V,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=A,e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===B&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.3.1`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),E=e.t(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?w():T()}))(),D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function O(e){let t={};return e.replace(D,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function A(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(k).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function j(e){return e.replace(/^(.*?)-/,``)}var M=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N=/^(@+)?(\+|#+)?[rs]?$/g,P=/(\*)(0+)|(#+)(0+)|(0+)/g,F=/^(0+)$/;function I(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(N,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function L(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function R(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!F.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function z(e){return L(e)||{}}function ee(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=j(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...z(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...z(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(P,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(F.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(M.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(M,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...I(e)});continue}if(N.test(n.stem)){t={...t,...I(n.stem)};continue}let e=L(n.stem);e&&(t={...t,...e});let r=R(n.stem);r&&(t={...t,...r})}return t}var te=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function B(e){return e.type===0}function ne(e){return e.type===1}function re(e){return e.type===2}function ie(e){return e.type===3}function ae(e){return e.type===4}function V(e){return e.type===5}function H(e){return e.type===6}function oe(e){return e.type===7}function se(e){return e.type===8}function ce(e){return!!(e&&typeof e==`object`&&e.type===0)}function U(e){return!!(e&&typeof e==`object`&&e.type===1)}var le=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,W={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function ue(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=G(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function G(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(W[r||``]||W[n||``]||W[`${n}-001`]||W[`001`])[0]}var de=RegExp(`^${le.source}*`),fe=RegExp(`${le.source}*$`);function K(e,t){return{start:e,end:t}}var q=!!Object.fromEntries,pe=!!String.prototype.trimStart,me=!!String.prototype.trimEnd,he=q?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},ge=pe?function(e){return e.trimStart()}:function(e){return e.replace(de,``)},_e=me?function(e){return e.trimEnd()}:function(e){return e.replace(fe,``)},ve=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function ye(e,t){return ve.lastIndex=t,ve.exec(e)[1]??``}function be(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var xe=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=be(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:K(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:K(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,K(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&J(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:K(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!J(this.char()))return this.error(23,K(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:K(n,this.clonePosition())},err:null}:this.error(23,K(o,this.clonePosition()))):this.error(26,K(e,this.clonePosition()))}return this.error(27,K(n,this.clonePosition()))}return this.error(23,K(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&Se(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a)r+=a;else break}let i=K(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Y(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,K(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,K(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,K(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,K(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:K(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,K(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,K(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=ye(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:K(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,K(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=_e(n.val);if(r.length===0)return this.error(6,K(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:K(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=K(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=ge(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=ue(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?O(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,K(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,K(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=K(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:he(c.val),location:u},err:null}:{val:{type:6,value:n,options:he(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,K(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,K(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=A(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ee(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=K(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,K(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:K(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,K(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=K(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&Ce(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function J(e){return e>=97&&e<=122||e>=65&&e<=90}function Y(e){return J(e)||e===47}function Se(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ce(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function X(e){e.forEach(e=>{if(delete e.location,V(e)||H(e))for(let t in e.options)delete e.options[t].location,X(e.options[t].value);else re(e)&&ce(e.style)||(ie(e)||ae(e))&&U(e.style)?delete e.style.location:se(e)&&X(e.children)})}function we(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new xe(e,t).parse();if(n.err){let e=SyntaxError(te[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||X(n.val),n.val}var Z=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Te=class extends Z{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},Ee=class extends Z{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},De=class extends Z{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function Oe(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function ke(e){return typeof e==`function`}function Ae(e,t,n,r,i,a,o){if(e.length===1&&B(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(B(c)){s.push({type:0,value:c.value});continue}if(oe(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new De(e,o);let l=i[e];if(ne(c))l&&typeof l!=`string`&&typeof l!=`number`&&typeof l!=`bigint`||(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});else if(ie(c)){let e=typeof c.style==`string`?r.date[c.style]:U(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(ae(c)){let e=typeof c.style==`string`?r.time[c.style]:U(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(re(c)){let e=typeof c.style==`string`?r.number[c.style]:ce(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)})}else{if(se(c)){let{children:e,value:l}=c,u=i[l];if(!ke(u))throw new Ee(l,`function`,o);let d=u(Ae(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(V(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new Te(c.value,l,Object.keys(c.options),o);s.push(...Ae(a.value,t,n,r,i))}else if(H(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new Z(`Intl.PluralRules is not available in this environment.
14
+ Try polyfilling it using "@formatjs/intl-pluralrules"
15
+ `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new Te(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...Ae(a.value,t,n,r,i,u-(c.offset||0)))}}}return Oe(s)}function je(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Me(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=je(e[r],t[r]),n),{...e}):e}function Ne(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Pe(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:o((...e)=>new Intl.NumberFormat(...e),{cache:Ne(e.number),strategy:_.variadic}),getDateTimeFormat:o((...e)=>new Intl.DateTimeFormat(...e),{cache:Ne(e.dateTime),strategy:_.variadic}),getPluralRules:o((...e)=>new Intl.PluralRules(...e),{cache:Ne(e.pluralRules),strategy:_.variadic})}}var Fe=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>Ae(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Me(e.formats,r),this.formatters=i&&i.formatters||Pe(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=we}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function Ie(...[e,t,n,r]){if(Array.isArray(t))throw new v(y.INVALID_MESSAGE,void 0);if(typeof t==`object`)throw new v(y.INSUFFICIENT_PATH,void 0);if(typeof t==`string`){let e=function(e,t){return t||/'[{}<#|']/.test(e)?void 0:e}(t,n);if(e)return e}let{cache:i,formats:a,formatters:o,globalFormats:s,locale:c,timeZone:l}=r,u;o.getMessageFormat||=function(e,t){return x(((...e)=>new Fe(e[0],e[1],e[2],{formatters:t,...e[3]})),e.message)}(i,o);try{u=o.getMessageFormat(t,c,function(e,t,n){let r=Fe.formats.date,i=Fe.formats.time,a={...e?.dateTime,...t?.dateTime},o={date:{...r,...a},time:{...i,...a},number:{...e?.number,...t?.number}};return n&&[`date`,`time`].forEach((e=>{let t=o[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:n,...r}})),o}(s,a,l),{formatters:{...o,getDateTimeFormat:(e,t)=>o.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??l})}})}catch{throw new v(y.INVALID_MESSAGE,void 0)}let d=u.format(n);return(0,E.isValidElement)(d)||Array.isArray(d)||typeof d==`string`?d:String(d)}Ie.raw=!0;function Le(...e){return e.filter(Boolean).join(`.`)}function Re(e){return Le(e.namespace,e.key)}function ze(e){console.error(e)}function Be(e,t,n,r){let i=Le(r,n);if(!t)throw Error(i);let a=t;return n.split(`.`).forEach((t=>{let n=a[t];if(t==null||n==null)throw Error(i+` (${e})`);a=n})),a}function Ve(e){let t=function(e,t,n){try{if(!t)throw Error(void 0);let r=n?Be(e,t,n):t;if(!r)throw Error(n);return r}catch(e){return new v(y.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:n,getMessageFallback:r=Re,locale:i,messagesOrError:a,namespace:o,onError:s,timeZone:c}){let l=a instanceof v;function u(e,t,n,i){let a=new v(t,n);return s(a),i??r({error:a,key:e,namespace:o})}function d(d,f,p,m){let h=m,g;if(l){if(!h)return s(a),r({error:a,key:d,namespace:o});g=h}else{let e=a;try{g=Be(i,e,d,o)}catch(e){if(!h)return u(d,y.MISSING_MESSAGE,e.message,h);g=h}}try{return Ie(Le(o,d),g,f&&function(e){let t={};return Object.keys(e).forEach((n=>{let r=0,i=e[n],a;a=typeof i==`function`?e=>{let t=i(e);return(0,E.isValidElement)(t)?(0,E.cloneElement)(t,{key:n+r++}):t}:i,t[n]=a})),t}(f),{cache:e,formatters:n,globalFormats:t,formats:p,locale:i,timeZone:c})}catch(e){let t,n;return e instanceof v?(t=e.code,n=e.originalMessage):(t=y.FORMATTING_ERROR,n=e.message),u(d,t,n,h)}}function f(e,t,n,r){let i=d(e,t,n,r);return typeof i==`string`?i:u(e,y.INVALID_MESSAGE,void 0)}return f.rich=d,f.markup=(e,t,n,r)=>d(e,t,n,r),f.raw=e=>{if(l)return s(a),r({error:a,key:e,namespace:o});let t=a;try{return Be(i,t,e,o)}catch(t){return u(e,y.MISSING_MESSAGE,t.message)}},f.has=e=>{if(l)return!1;try{return Be(i,a,e,o),!0}catch{return!1}},f}({...e,messagesOrError:t})}function He(e,t){return e===t?void 0:e.slice((t+`.`).length)}function Ue({_cache:e=b(),_formatters:t=C(e),getMessageFallback:n=Re,messages:r,namespace:i,onError:a=ze,...o}){return function({messages:e,namespace:t,...n},r){return e=e[r],t=He(t,r),Ve({...n,messages:e,namespace:t})}({...o,onError:a,cache:e,formatters:t,getMessageFallback:n,messages:{"!":r},namespace:i?`!.${i}`:`!`},`!`)}var We=`en`,Ge=(e,t)=>Ue({locale:e,messages:t,namespace:`folio`}),Ke=Symbol(`folioLocale`),qe=(0,t.shallowRef)(Ge(`en`,r.messages)),Je=(e=`en`)=>{(0,t.provide)(Ke,e)},Ye={translator:qe,status:(0,t.shallowRef)({type:`ready`})},Xe=(e,r)=>{if(e===`en`)return Ye;let i=(0,t.shallowRef)(qe.value),a=(0,t.shallowRef)({type:`loading`}),o;return(0,t.watch)(()=>(0,t.toValue)(e),(e,t,s)=>{let c=(0,n.getLoadedFolioMessages)(e);if(c){i.value=Ge(e,c),a.value={type:`ready`},o=void 0;return}let l=a.value.type===`ready`;l||(a.value={type:`loading`});let u=!0;return s(()=>{u=!1}),o=(0,n.loadFolioMessages)(e).then(t=>{u&&(i.value=Ge(e,t),a.value={type:`ready`})},e=>{if(!u)return;let t=e instanceof Error?e:Error(String(e));if(l||(a.value={type:`failed`,error:t}),!r)throw t;r(t)}),o},{immediate:!0,flush:`sync`}),(0,t.onServerPrefetch)(()=>o),{translator:i,status:a}},Ze=Symbol(`folioEditorTranslation`),Qe=e=>(t,n)=>e.value(t,n),$e=e=>{let n=(0,t.inject)(Ke,`en`),r=Xe(n,e);return(0,t.provide)(Ze,{locale:n,translation:r}),{t:Qe(r.translator),status:r.status}},et=()=>{let e=(0,t.inject)(Ke,`en`),n=(0,t.inject)(Ze,null),{translator:r}=n?.locale===e?n.translation:Xe(e);return{t:Qe(r)}},tt={install(e,t=`en`){e.provide(Ke,t)}},nt=[`disabled`],rt=`inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,it=(0,t.defineComponent)({__name:`Button`,props:{variant:{default:`default`},size:{default:`default`},disabled:{type:Boolean,default:!1},className:{default:``}},emits:[`click`],setup(e){let n=e,r={default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},i={default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,xs:`h-7 rounded-md px-2 text-xs`,"icon-xs":`h-7 w-7`},a=(0,t.computed)(()=>[rt,r[n.variant],i[n.size],n.className].filter(Boolean).join(` `));return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{type:`button`,class:(0,t.normalizeClass)(a.value),disabled:e.disabled,onClick:r[0]||=e=>n.$emit(`click`,e)},[(0,t.renderSlot)(n.$slots,`default`)],10,nt))}}),at=[`checked`],ot=(0,t.defineComponent)({__name:`Checkbox`,props:{checked:{type:Boolean},className:{}},emits:[`update:checked`],setup(e,{emit:n}){let r=n;function i(e){e.target instanceof HTMLInputElement&&r(`update:checked`,e.target.checked)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{type:`checkbox`,class:(0,t.normalizeClass)([`folio-default-checkbox`,e.className]),checked:e.checked,onChange:i},null,42,at))}}),Q=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},st=Q(ot,[[`__scopeId`,`data-v-2e4f5470`]]),ct={undo:[`M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z`],redo:[`M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z`],print:[`M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z`],file_download:[`M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`],file_upload:[`M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z`],format_bold:[`M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200H272Zm121-112h104q48 0 58.5-24.5T566-372q0-11-10.5-35.5T494-432H393v120Zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95v109Z`],format_italic:[`M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z`],format_underlined:[`M200-120v-80h560v80H200Zm123-223q-56-63-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63q-101 0-157-63Z`],strikethrough_s:[`M486-160q-76 0-135-45t-85-123l88-38q14 48 48.5 79t85.5 31q42 0 76-20t34-64q0-18-7-33t-19-27h112q5 14 7.5 28.5T694-340q0 86-61.5 133T486-160ZM80-480v-80h800v80H80Zm402-326q66 0 115.5 32.5T674-674l-88 39q-9-29-33.5-52T484-710q-41 0-68 18.5T386-640h-96q2-69 54.5-117.5T482-806Z`],superscript:[`M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z`],subscript:[`M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z`],link:[`M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z`],format_clear:[`m528-546-93-93-121-121h486v120H568l-40 94ZM792-56 460-388l-80 188H249l119-280L56-792l56-56 736 736-56 56Z`],format_align_left:[`M120-120v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Z`],format_align_center:[`M120-120v-80h720v80H120Zm160-160v-80h400v80H280ZM120-440v-80h720v80H120Zm160-160v-80h400v80H280ZM120-760v-80h720v80H120Z`],format_align_right:[`M120-760v-80h720v80H120Zm240 160v-80h480v80H360ZM120-440v-80h720v80H120Zm240 160v-80h480v80H360ZM120-120v-80h720v80H120Z`],format_align_justify:[`M120-120v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Z`],format_line_spacing:[`M240-160 80-320l56-56 64 62v-332l-64 62-56-56 160-160 160 160-56 56-64-62v332l64-62 56 56-160 160Zm240-40v-80h400v80H480Zm0-240v-80h400v80H480Zm0-240v-80h400v80H480Z`],format_list_bulleted:[`M360-200v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360ZM200-160q-33 0-56.5-23.5T120-240q0-33 23.5-56.5T200-320q33 0 56.5 23.5T280-240q0 33-23.5 56.5T200-160Zm0-240q-33 0-56.5-23.5T120-480q0-33 23.5-56.5T200-560q33 0 56.5 23.5T280-480q0 33-23.5 56.5T200-400Zm-56.5-263.5Q120-687 120-720t23.5-56.5Q167-800 200-800t56.5 23.5Q280-753 280-720t-23.5 56.5Q233-640 200-640t-56.5-23.5Z`],format_list_numbered:[`M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z`],format_indent_increase:[`M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm0 440v-320l160 160-160 160Z`],format_indent_decrease:[`M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm160 440L120-480l160-160v320Z`],format_color_text:[`M80 0v-160h800V0H80Zm140-280 210-560h100l210 560h-96l-50-144H368l-52 144h-96Zm176-224h168l-82-232h-4l-82 232Z`],ink_highlighter:[`M544-400 440-504 240-304l104 104 200-200Zm-47-161 104 104 199-199-104-104-199 199Zm-84-28 216 216-229 229q-24 24-56 24t-56-24l-2-2-26 26H60l126-126-2-2q-24-24-24-56t24-56l229-229Zm0 0 227-227q24-24 56-24t56 24l104 104q24 24 24 56t-24 56L629-373 413-589Z`],format_color_reset:[`M800-436q0 36-8 69t-22 63l-62-60q6-17 9-34.5t3-37.5q0-47-17.5-89T650-600L480-768l-88 86-56-56 144-142 226 222q44 42 69 99.5T800-436Zm-8 380L668-180q-41 29-88 44.5T480-120q-133 0-226.5-92.5T160-436q0-51 16-98t48-90L56-792l56-56 736 736-56 56ZM480-200q36 0 68.5-10t61.5-28L280-566q-21 32-30.5 64t-9.5 66q0 98 70 167t170 69Zm-37-204Zm110-116Z`],arrow_drop_down:[`M480-360 280-560h400L480-360Z`],table:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm240-240H200v160h240v-160Zm80 0v160h240v-160H520Zm-80-80v-160H200v160h240Zm80 0h240v-160H520v160ZM200-680h560v-80H200v80Z`],table_chart:[`M760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120ZM200-640h560v-120H200v120Zm100 80H200v360h100v-360Zm360 0v360h100v-360H660Zm-80 0H380v360h200v-360Z`],grid_on:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133ZM200-413h133v-134H200v134Zm213 0h134v-134H413v134Zm214 0h133v-134H627v134ZM200-627h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133Z`],table_rows:[`M760-200v-120H200v120h560Zm0-200v-160H200v160h560Zm0-240v-120H200v120h560ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z`],view_column:[`M121-280v-400q0-33 23.5-56.5T201-760h559q33 0 56.5 23.5T840-680v400q0 33-23.5 56.5T760-200H201q-33 0-56.5-23.5T121-280Zm79 0h133v-400H200v400Zm213 0h133v-400H413v400Zm213 0h133v-400H626v400Z`],border_all:[`M120-120v-720h720v720H120Zm640-80v-240H520v240h240Zm0-560H520v240h240v-240Zm-560 0v240h240v-240H200Zm0 560h240v-240H200v240Z`],select_all:[`M360-360h240v-240H360v240ZM200-120q-33 0-56.5-23.5T120-200h80v80Zm-80-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T200-840v80Zm80 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80q0 33-23.5 56.5T760-120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80q33 0 56.5 23.5T840-760h-80Z`],border_outer:[`M200-200h560v-560H200v560Zm-80 80v-720h720v720H120Zm160-320v-80h80v80h-80Zm160 160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 160v-80h80v80h-80Z`],border_inner:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm320 640v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm-160 0v-80h80v80h-80ZM440-120v-320H120v-80h320v-320h80v320h320v80H520v320h-80Z`],border_clear:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],add:[`M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z`],remove:[`M200-440v-80h560v80H200Z`],delete:[`M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z`],delete_sweep:[`M600-240v-80h160v80H600Zm0-320v-80h280v80H600Zm0 160v-80h240v80H600ZM120-640H80v-80h160v-60h160v60h160v80h-40v360q0 33-23.5 56.5T440-200H200q-33 0-56.5-23.5T120-280v-360Zm80 0v360h240v-360H200Zm0 0v360-360Z`],call_merge:[`m296-160-56-56 200-200v-269L337-582l-57-57 200-200 201 201-57 57-104-104v301L296-160Zm368 1L536-286l57-57 127 128-56 56Z`],call_split:[`M440-160v-304L240-664v104h-80v-240h240v80H296l224 224v336h-80Zm154-376-58-58 128-126H560v-80h240v240h-80v-104L594-536Z`],drag_indicator:[`M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z`],image:[`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z`],format_image_left:[`M120-280v-400h400v400H120Zm80-80h240v-240H200v240Zm-80-400v-80h720v80H120Zm480 160v-80h240v80H600Zm0 160v-80h240v80H600Zm0 160v-80h240v80H600ZM120-120v-80h720v80H120Z`],format_image_right:[`M440-280v-400h400v400H440Zm80-80h240v-240H520v240ZM120-120v-80h720v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h720v80H120Z`],horizontal_rule:[`M160-440v-80h640v80H160Z`],flip_to_back:[`M200-120q-33 0-56.5-23.5T120-200v-480h80v480h480v80H200Zm160-240v80q-33 0-56.5-23.5T280-360h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T360-840v80Zm80 480v-80h80v80h-80Zm0-480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0 480v-80h80v80h-80Zm160-480v-80q33 0 56.5 23.5T840-760h-80Zm0 400h80q0 33-23.5 56.5T760-280v-80Zm0-80v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],flip_to_front:[`M360-280q-33 0-56.5-23.5T280-360v-400q0-33 23.5-56.5T360-840h400q33 0 56.5 23.5T840-760v400q0 33-23.5 56.5T760-280H360Zm0-80h400v-400H360v400ZM200-200v80q-33 0-56.5-23.5T120-200h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z`],open_with:[`M480-80 310-250l57-57 73 73v-166h80v165l72-73 58 58L480-80ZM250-310 80-480l169-169 57 57-72 72h166v80H235l73 72-58 58Zm460 0-57-57 73-73H560v-80h165l-73-72 58-58 170 170-170 170ZM440-560v-166l-73 73-57-57 170-170 170 170-57 57-73-73v166h-80Z`],tune:[`M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z`],rotate_right:[`M522-80v-82q34-5 66.5-18t61.5-34l56 58q-42 32-88 51.5T522-80Zm-80 0Q304-98 213-199.5T122-438q0-75 28.5-140.5t77-114q48.5-48.5 114-77T482-798h6l-62-62 56-58 160 160-160 160-56-56 64-64h-8q-117 0-198.5 81.5T202-438q0 104 68 182.5T442-162v82Zm322-134-58-56q21-29 34-61.5t18-66.5h82q-5 50-24.5 96T764-214Zm76-264h-82q-5-34-18-66.5T706-606l58-56q32 39 51 86t25 98Z`],rotate_left:[`M440-80q-50-5-96-24.5T256-156l56-58q29 21 61.5 34t66.5 18v82Zm80 0v-82q104-15 172-93.5T760-438q0-117-81.5-198.5T480-718h-8l64 64-56 56-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-438q0 137-91 238.5T520-80ZM198-214q-32-42-51.5-88T122-398h82q5 34 18 66.5t34 61.5l-58 56Zm-76-264q6-51 25-98t51-86l58 56q-21 29-34 61.5T204-478h-82Z`],swap_horiz:[`M280-160 80-360l200-200 56 57-103 103h287v80H233l103 103-56 57Zm400-240-56-57 103-103H440v-80h287L624-743l56-57 200 200-200 200Z`],swap_vert:[`M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z`],shapes:[`M600-360ZM320-242q10 1 19.5 1.5t20.5.5q11 0 20.5-.5T400-242v82h400v-400h-82q1-10 1.5-19.5t.5-20.5q0-11-.5-20.5T718-640h82q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400q-33 0-56.5-23.5T320-160v-82Zm40-78q-117 0-198.5-81.5T80-600q0-117 81.5-198.5T360-880q117 0 198.5 81.5T640-600q0 117-81.5 198.5T360-320Zm0-80q83 0 141.5-58.5T560-600q0-83-58.5-141.5T360-800q-83 0-141.5 58.5T160-600q0 83 58.5 141.5T360-400Zm0-200Z`],format_paint:[`M440-80q-33 0-56.5-23.5T360-160v-160H240q-33 0-56.5-23.5T160-400v-280q0-66 47-113t113-47h480v440q0 33-23.5 56.5T720-320H600v160q0 33-23.5 56.5T520-80h-80ZM240-560h480v-200h-40v160h-80v-160h-40v80h-80v-80H320q-33 0-56.5 23.5T240-680v120Zm0 160h480v-80H240v80Zm0 0v-80 80Z`],expand_more:[`M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z`],expand_less:[`m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z`],border_top:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h720v80H120Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_bottom:[`M120-120v-80h720v80H120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_left:[`M120-120v-720h80v720h-80Zm160 0v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z`],border_right:[`M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-720h80v720h-80Z`],border_horizontal:[`M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h720v60H120Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Z`],border_vertical:[`M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-720h60v720h-60Zm165 0v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Z`],padding:[`M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm160 0q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm160 0q17 0 28.5-11.5T680-640q0-17-11.5-28.5T640-680q-17 0-28.5 11.5T600-640q0 17 11.5 28.5T640-600ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z`],text_rotation_none:[`M160-200v-80h528l-42-42 56-56 138 138-138 138-56-56 42-42H160Zm116-200 164-440h80l164 440h-76l-38-112H392l-40 112h-76Zm138-176h132l-64-182h-4l-64 182Z`],wrap_text:[`M588-132 440-280l148-148 56 58-50 50h96q29 0 49.5-20.5T760-390q0-29-20.5-49.5T690-460H160v-80h530q63 0 106.5 43.5T840-390q0 63-43.5 106.5T690-240h-96l50 50-56 58ZM160-240v-80h200v80H160Zm0-440v-80h640v80H160Z`],height:[`M480-120 320-280l56-56 64 63v-414l-64 63-56-56 160-160 160 160-56 57-64-64v414l64-63 56 56-160 160Z`],fit_width:[`M120-120v-720h80v720h-80Zm640 0v-720h80v720h-80ZM280-440v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z`],settings:[`m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z`],border_color:[`M80 0v-160h800V0H80Zm160-320h56l312-311-29-29-28-28-311 312v56Zm-80 80v-170l448-447q11-11 25.5-17t30.5-6q16 0 31 6t27 18l55 56q12 11 17.5 26t5.5 31q0 15-5.5 29.5T777-687L330-240H160Zm560-504-56-56 56 56ZM608-631l-29-29-28-28 57 57Z`],format_color_fill:[`m247-904 57-56 343 343q23 23 23 57t-23 57L457-313q-23 23-57 23t-57-23L153-503q-23-23-23-57t23-57l190-191-96-96Zm153 153L209-560h382L400-751Zm360 471q-33 0-56.5-23.5T680-360q0-21 12.5-45t27.5-45q9-12 19-25t21-25q11 12 21 25t19 25q15 21 27.5 45t12.5 45q0 33-23.5 56.5T760-280ZM80 0v-160h800V0H80Z`],vertical_align_top:[`M160-760v-80h640v80H160Zm280 640v-408L336-424l-56-56 200-200 200 200-56 56-104-104v408h-80Z`],vertical_align_center:[`M440-80v-168l-64 64-56-56 160-160 160 160-56 56-64-64v168h-80ZM160-440v-80h640v80H160Zm320-120L320-720l56-56 64 64v-168h80v168l64-64 56 56-160 160Z`],vertical_align_bottom:[`M160-120v-80h640v80H160Zm320-160L280-480l56-56 104 104v-408h80v408l104-104 56 56-200 200Z`],line_weight:[`M120-160v-40h720v40H120Zm0-120v-80h720v80H120Zm0-160v-120h720v120H120Zm0-200v-160h720v160H120Z`],keyboard_arrow_up:[`M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z`],keyboard_arrow_down:[`M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z`],keyboard_arrow_left:[`M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z`],keyboard_arrow_right:[`M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z`],more_vert:[`M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z`],page_break:[`M120-440v-80h160v80H120Zm200 0v-80h160v80H320Zm200 0v-80h160v80H520Zm200 0v-80h120v80H720ZM240-120q-33 0-56.5-23.5T160-200v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-120H240Zm-80-520v-120q0-33 23.5-56.5T240-840h480q33 0 56.5 23.5T800-760v120h-80v-120H240v120h-80Z`],arrow_back:[`M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z`],branding_watermark:[`M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm320-60q66 0 113-37t47-93q0-29-13-58t-34-55q-21-26-50-49t-50-31q-21 8-50 31t-50 49q-21 26-34 55t-13 58q0 56 47 93t140 37Z`],done_all:[`M268-240 42-466l57-56 170 170 56 56-57 56Zm226 0L268-466l56-57 170 170 368-368 57 57-425 424Zm0-226-57-56 198-198 57 56-198 198Z`],check_circle:[`m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z`],chat_bubble_outline:[`M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],chat_bubble_check:[`M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],check:[`M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z`],close:[`m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z`],add_comment:[`M440-400h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],comment:[`M240-400h480v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],edit_note:[`M160-400h280v-80H160v80Zm0-160h440v-80H160v80Zm0-160h440v-80H160v80Zm360 360v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22q0 11-4 22.5T863-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z`],rate_review:[`M240-400h122l200-200q9-9 13.5-20.5T580-643q0-11-5-21.5T562-684l-36-38q-9-9-20-13.5t-23-4.5q-11 0-22.5 4.5T440-722L240-522v122Zm280-243-37-37 37 37ZM300-460v-38l101-101 20 18 18 20-101 101h-38Zm121-121 18 20-38-38 20 18Zm26 181h273v-80H527l-80 80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z`],visibility:[`M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z`],format_textdirection_l_to_r:[`M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z`],format_textdirection_r_to_l:[`M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z`],"agent-sparkle":[`m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z`]},lt=[`width`,`height`],ut=[`d`],$=(0,t.defineComponent)({__name:`MaterialSymbol`,props:{name:{},size:{default:20},className:{default:``},style:{}},setup(e){let n=e,r=ct,i=(0,t.computed)(()=>r[n.name]||(typeof console<`u`&&console.warn(`Icon not found: ${n.name}`),null));return(n,r)=>i.value?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{key:0,xmlns:`http://www.w3.org/2000/svg`,width:e.size,height:e.size,viewBox:`0 -960 960 960`,fill:`currentColor`,class:(0,t.normalizeClass)(e.className),style:(0,t.normalizeStyle)({display:`inline-flex`,flexShrink:0,...e.style??{}}),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`path`,{key:n,d:e},null,8,ut))),128))],14,lt)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)(e.className),style:(0,t.normalizeStyle)({fontSize:`${e.size}px`,width:`${e.size}px`,height:`${e.size}px`,display:`inline-flex`,...e.style??{}})},(0,t.toDisplayString)(e.name),7))}}),dt=[`disabled`,`title`,`aria-label`],ft=[`disabled`,`title`,`aria-label`,`aria-expanded`],pt=[`disabled`,`title`,`aria-label`,`aria-expanded`],mt={class:`docx-color-picker__button-stack`},ht=[`aria-label`],gt={key:0,class:`docx-color-picker__auto-icon docx-color-picker__auto-icon--none`},_t={key:1,class:`docx-color-picker__auto-icon docx-color-picker__auto-icon--auto`},vt={class:`docx-color-picker__section-label`},yt={class:`docx-color-picker__grid`},bt=[`title`,`aria-label`,`aria-selected`,`onClick`],xt={class:`docx-color-picker__section-label`},St={class:`docx-color-picker__grid`},Ct=[`title`,`aria-label`,`aria-selected`,`onClick`],wt={class:`docx-color-picker__section-label`},Tt={class:`docx-color-picker__custom`},Et=[`onKeydown`],Dt=[`disabled`],Ot=Q((0,t.defineComponent)({__name:`ColorPicker`,props:{mode:{},value:{},theme:{},disabled:{type:Boolean,default:!1},className:{},style:{},title:{},icon:{},autoLabel:{},splitButton:{type:Boolean,default:!0},defaultColor:{}},emits:[`change`],setup(e,{emit:n}){let r=e,a=n,{t:o}=et(),s=[{nameKey:`colorPicker.colors.darkRed`,hex:`C00000`},{nameKey:`colorPicker.colors.red`,hex:`FF0000`},{nameKey:`colorPicker.colors.orange`,hex:`FFC000`},{nameKey:`colorPicker.colors.yellow`,hex:`FFFF00`},{nameKey:`colorPicker.colors.lightGreen`,hex:`92D050`},{nameKey:`colorPicker.colors.green`,hex:`00B050`},{nameKey:`colorPicker.colors.lightBlue`,hex:`00B0F0`},{nameKey:`colorPicker.colors.blue`,hex:`0070C0`},{nameKey:`colorPicker.colors.darkBlue`,hex:`002060`},{nameKey:`colorPicker.colors.purple`,hex:`7030A0`}];function c(e){return e?typeof e==`string`?r.mode===`highlight`?(0,i.resolveHighlightColor)(e)||(e===`none`?`transparent`:e.startsWith(`#`)?e:`#${e}`):e.startsWith(`#`)?e:`#${e}`:(0,i.resolveColor)(e,r.theme):r.mode===`text`||r.mode===`border`?`#000000`:`transparent`}function l(e){return/^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/,``))}function u(e){let t=e.replace(/^#/,``);if(t.length!==6)return!1;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return(n*299+r*587+i*114)/1e3>230}function d(e,t){return e?(typeof e==`string`?e.replace(/^#/,``).toUpperCase():(0,i.resolveColorToHex)(e,r.theme))===t.toUpperCase():!1}function f(e){return e===`highlight`?`FFFF00`:e===`border`?{rgb:`000000`}:{rgb:`FF0000`}}function p(e){return o(e===`text`?`fontColor`:e===`highlight`?`formattingBar.highlightColor`:`table.borderColor`)}function m(e){return e===`text`?`format_color_text`:e===`highlight`?`ink_highlighter`:`border_color`}let h=(0,t.ref)(!1),g=(0,t.ref)(``),_=(0,t.ref)(null),v=(0,t.ref)(null),y=(0,t.ref)(r.defaultColor??f(r.mode)),b=(0,t.computed)(()=>(0,i.generateThemeTintShadeMatrix)(r.theme?.colorScheme??null)),x=(0,t.computed)(()=>b.value.flatMap((e,t)=>e.map((e,n)=>({...e,key:`${t}-${n}`})))),S=(0,t.computed)(()=>c(r.value)),C=(0,t.computed)(()=>c(y.value)),w=(0,t.computed)(()=>p(r.mode)),T=(0,t.computed)(()=>r.icon??m(r.mode));(0,t.watch)(()=>[r.value,r.mode,r.theme],()=>{let e=c(r.value).replace(/^#/,``);/^[0-9A-Fa-f]{6}$/.test(e)&&(g.value=e.toUpperCase())},{immediate:!0});let E=(0,t.ref)({});function D(){let e=_.value;if(!e)return;let t=e.getBoundingClientRect();E.value={top:`${t.bottom+4}px`,left:`${t.left}px`}}function O(){r.disabled||(h.value||D(),h.value=!h.value)}function k(e,t=!0){t&&(y.value=e),a(`change`,e),h.value=!1}function A(){r.disabled||a(`change`,y.value)}function j(e){if(r.mode===`highlight`){k(e.hex);return}let t={themeColor:e.themeSlot,rgb:e.hex};e.tint&&(t.themeTint=e.tint),e.shade&&(t.themeShade=e.shade),k(t)}function M(e){k(r.mode===`highlight`?e:{rgb:e})}function N(){k(r.mode===`highlight`?`none`:{auto:!0},!1)}function P(){let e=g.value.replace(/^#/,``).toUpperCase();l(e)&&(k(r.mode===`highlight`?e:{rgb:e}),g.value=``)}function F(e){e.target instanceof HTMLInputElement||e.preventDefault()}function I(e){if(!h.value)return;let t=e.target;t instanceof Node&&(_.value?.contains(t)||v.value?.contains(t)||(h.value=!1))}return(0,t.onMounted)(()=>document.addEventListener(`mousedown`,I)),(0,t.onBeforeUnmount)(()=>document.removeEventListener(`mousedown`,I)),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:_,class:(0,t.normalizeClass)([`docx-color-picker`,e.className]),style:(0,t.normalizeStyle)(e.style)},[e.splitButton?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`docx-color-picker__split`,{"is-disabled":e.disabled}])},[(0,t.createElementVNode)(`button`,{type:`button`,class:`docx-color-picker__apply`,disabled:e.disabled,title:e.title??w.value,"aria-label":e.title??w.value,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:A},[(0,t.createVNode)($,{name:T.value,size:18},null,8,[`name`]),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`docx-color-picker__bar`,{"is-light":C.value===`transparent`||u(C.value)}]),style:(0,t.normalizeStyle)({background:C.value===`transparent`?`#fff`:C.value})},null,6)],40,dt),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`docx-color-picker__arrow`,{"is-open":h.value}]),disabled:e.disabled,title:e.title??w.value,"aria-label":e.title??w.value,"aria-haspopup":`true`,"aria-expanded":h.value,onMousedown:r[1]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:O},[(0,t.createVNode)($,{name:`arrow_drop_down`,size:18})],42,ft)],2)):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:(0,t.normalizeClass)([`docx-color-picker__button`,{"is-open":h.value}]),disabled:e.disabled,title:e.title??w.value,"aria-label":e.title??w.value,"aria-haspopup":`true`,"aria-expanded":h.value,onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:O},[(0,t.createElementVNode)(`span`,mt,[(0,t.createVNode)($,{name:T.value,size:18},null,8,[`name`]),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`docx-color-picker__bar`,{"is-light":S.value===`transparent`||u(S.value)}]),style:(0,t.normalizeStyle)({background:S.value===`transparent`?`#fff`:S.value})},null,6)]),(0,t.createVNode)($,{name:`arrow_drop_down`,size:14})],42,pt)),h.value&&!e.disabled?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,ref_key:`panelRef`,ref:v,class:`docx-color-picker__panel`,style:(0,t.normalizeStyle)(E.value),role:`dialog`,"aria-label":(0,t.unref)(o)(`colorPicker.ariaLabel`,{type:w.value}),onMousedown:F},[(0,t.createElementVNode)(`button`,{type:`button`,class:`docx-color-picker__auto`,onMousedown:r[3]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:N},[e.mode===`highlight`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gt,[...r[10]||=[(0,t.createElementVNode)(`span`,{class:`docx-color-picker__auto-slash`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_t)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.autoLabel??(e.mode===`highlight`?(0,t.unref)(o)(`colorPicker.noColor`):(0,t.unref)(o)(`colorPicker.automatic`))),1)],32),r[12]||=(0,t.createElementVNode)(`div`,{class:`docx-color-picker__divider`},null,-1),(0,t.createElementVNode)(`div`,vt,(0,t.toDisplayString)((0,t.unref)(o)(`colorPicker.themeColors`)),1),(0,t.createElementVNode)(`div`,yt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(x.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.key,type:`button`,class:(0,t.normalizeClass)([`docx-color-picker__cell`,{"is-selected":d(e.value,n.hex)}]),style:(0,t.normalizeStyle)({background:`#`+n.hex}),title:n.label,"aria-label":n.label,"aria-selected":d(e.value,n.hex),onMousedown:r[4]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:e=>j(n)},null,46,bt))),128))]),r[13]||=(0,t.createElementVNode)(`div`,{class:`docx-color-picker__divider`},null,-1),(0,t.createElementVNode)(`div`,xt,(0,t.toDisplayString)((0,t.unref)(o)(`colorPicker.standardColors`)),1),(0,t.createElementVNode)(`div`,St,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s,n=>(0,t.createElementVNode)(`button`,{key:n.hex,type:`button`,class:(0,t.normalizeClass)([`docx-color-picker__cell`,{"is-selected":d(e.value,n.hex)}]),style:(0,t.normalizeStyle)({background:`#`+n.hex}),title:(0,t.unref)(o)(n.nameKey),"aria-label":(0,t.unref)(o)(n.nameKey),"aria-selected":d(e.value,n.hex),onMousedown:r[5]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:e=>M(n.hex)},null,46,Ct)),64))]),r[14]||=(0,t.createElementVNode)(`div`,{class:`docx-color-picker__divider`},null,-1),(0,t.createElementVNode)(`div`,wt,(0,t.toDisplayString)((0,t.unref)(o)(`colorPicker.customColor`)),1),(0,t.createElementVNode)(`div`,Tt,[r[11]||=(0,t.createElementVNode)(`span`,{class:`docx-color-picker__hash`},`#`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":r[6]||=e=>g.value=e,type:`text`,class:`docx-color-picker__hex`,placeholder:`FF0000`,maxlength:`6`,"aria-label":`Custom hex color`,onInput:r[7]||=e=>g.value=g.value.replace(/[^0-9A-Fa-f]/g,``).slice(0,6),onKeydown:(0,t.withKeys)((0,t.withModifiers)(P,[`prevent`]),[`enter`]),onMousedown:r[8]||=(0,t.withModifiers)(()=>{},[`stop`])},null,40,Et),[[t.vModelText,g.value]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`docx-color-picker__apply-btn`,disabled:!l(g.value),onMousedown:r[9]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:P},(0,t.toDisplayString)((0,t.unref)(o)(`common.apply`)),41,Dt)])],44,ht)):(0,t.createCommentVNode)(``,!0)],6))}}),[[`__scopeId`,`data-v-57d7b2cc`]]),kt=[`value`,`autofocus`],At=Q((0,t.defineComponent)({__name:`DatePickerPopover`,props:{value:{},defaultOpen:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n;function o(e){return e===null?``:e instanceof Date?`${e.getFullYear().toString().padStart(4,`0`)}-${(e.getMonth()+1).toString().padStart(2,`0`)}-${e.getDate().toString().padStart(2,`0`)}`:e.length>=10?(0,a.sliceText)({text:e,units:`codeUnits`,end:10}):e}let s=(0,t.computed)(()=>o(r.value));function c(e){e.target instanceof HTMLInputElement&&i(`change`,e.target.value||null)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{class:`folio-default-date-input`,type:`date`,value:s.value,autofocus:e.defaultOpen,onChange:c},null,40,kt))}}),[[`__scopeId`,`data-v-3dda46a0`]]),jt=[`aria-label`],Mt=Q((0,t.defineComponent)({inheritAttrs:!1,__name:`Dialog`,props:{open:{type:Boolean},ariaLabel:{},className:{},backdropClass:{},closeOnBackdrop:{type:Boolean,default:!0}},emits:[`update:open`,`close`],setup(e,{emit:n}){let r=e,i=n;function a(){i(`update:open`,!1),i(`close`)}function o(){r.closeOnBackdrop&&a()}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[e.open?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`folio-default-dialog-backdrop`,e.backdropClass]),onMousedown:(0,t.withModifiers)(o,[`self`])},[(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:[`folio-default-dialog-popup`,e.className],role:`dialog`,"aria-label":e.ariaLabel},n.$attrs,{onKeydown:(0,t.withKeys)(a,[`escape`]),onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])}),[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],16,jt)],34)):(0,t.createCommentVNode)(``,!0)]))}}),[[`__scopeId`,`data-v-76309dbc`]]),Nt=[`value`],Pt=Q((0,t.defineComponent)({__name:`Input`,props:{modelValue:{},className:{},size:{default:`default`}},emits:[`update:modelValue`],setup(e,{expose:n,emit:r}){let i=r;function a(e){e.target instanceof HTMLInputElement&&i(`update:modelValue`,e.target.value)}let o=(0,t.ref)(null);return n({focus:()=>o.value?.focus(),select:()=>o.value?.select()}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{ref_key:`inputRef`,ref:o,class:(0,t.normalizeClass)([`folio-default-input`,[e.className,e.size&&`folio-default-input--${e.size}`]]),value:e.modelValue,onInput:a},null,42,Nt))}}),[[`__scopeId`,`data-v-a34b139d`]]),Ft=4,It=Q((0,t.defineComponent)({__name:`Popover`,props:{open:{type:Boolean},placement:{default:`bottom-left`},panelClass:{},panelStyle:{},closeOnScroll:{type:Boolean,default:!0}},emits:[`close`,`update:open`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)({position:`fixed`});function c(){let e=a.value;if(!e)return;let t=e.getBoundingClientRect(),n={position:`fixed`};r.placement.startsWith(`top`)?(n.bottom=`${Math.round(window.innerHeight-t.top+Ft)}px`,n.top=`auto`):(n.top=`${Math.round(t.bottom+Ft)}px`,n.bottom=`auto`),r.placement.endsWith(`right`)?(n.right=`${Math.round(window.innerWidth-t.right)}px`,n.left=`auto`):(n.left=`${Math.round(t.left)}px`,n.right=`auto`),s.value=n}function l(){i(`update:open`,!r.open),r.open&&i(`close`)}function u(){i(`update:open`,!1),i(`close`)}function d(e){if(!r.open)return;let t=e.target;t instanceof Node&&(a.value?.contains(t)||o.value?.contains(t)||u())}function f(e){e.key===`Escape`&&r.open&&u()}function p(e){r.closeOnScroll&&r.open&&(e.target instanceof Node&&o.value?.contains(e.target)||(e.target instanceof Node&&e.target!==document&&a.value&&e.target.contains(a.value)?c():u()))}function m(){r.open&&c()}function h(){document.addEventListener(`mousedown`,d),document.addEventListener(`keydown`,f),window.addEventListener(`scroll`,p,!0),window.addEventListener(`resize`,m)}function g(){document.removeEventListener(`mousedown`,d),document.removeEventListener(`keydown`,f),window.removeEventListener(`scroll`,p,!0),window.removeEventListener(`resize`,m)}return(0,t.watch)(()=>r.open,e=>{e?(c(),h()):g()}),(0,t.watch)(()=>r.placement,()=>r.open&&c()),(0,t.onMounted)(()=>{r.open&&(c(),h())}),(0,t.onBeforeUnmount)(g),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`rootRef`,ref:a,class:`docx-popover`},[(0,t.renderSlot)(n.$slots,`trigger`,{toggle:l,open:e.open},void 0,!0),e.open?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`panelRef`,ref:o,class:(0,t.normalizeClass)([`docx-popover__panel`,e.panelClass]),style:(0,t.normalizeStyle)([s.value,e.panelStyle??{}]),onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.renderSlot)(n.$slots,`panel`,{},void 0,!0)],38)):(0,t.createCommentVNode)(``,!0)],512))}}),[[`__scopeId`,`data-v-0de72b4f`]]),Lt=[`disabled`,`onClick`],Rt={key:0,class:`docx-menu-dropdown__separator`},zt=[`onMouseenter`,`onMouseleave`],Bt=[`disabled`,`onClick`],Vt={class:`docx-menu-dropdown__label`},Ht={key:1,class:`docx-menu-dropdown__shortcut`},Ut={key:2,class:`docx-menu-dropdown__chevron`},Wt={key:0,class:`docx-menu-dropdown__submenu`},Gt=Q((0,t.defineComponent)({__name:`MenuDropdown`,props:{label:{},items:{},disabled:{type:Boolean},showChevron:{type:Boolean,default:!1}},setup(e){function n(e){return`type`in e&&e.type===`separator`}let r=(0,t.ref)(!1),i=(0,t.ref)(null);function a(){r.value=!1,i.value=null}function o(e){e.disabled||e.submenu||(e.onClick?.(),a())}return(s,c)=>((0,t.openBlock)(),(0,t.createBlock)(It,{open:r.value,"onUpdate:open":c[2]||=e=>r.value=e,onClose:a},{trigger:(0,t.withCtx)(({toggle:n})=>[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`docx-menu-dropdown__trigger`,{"docx-menu-dropdown__trigger--open":r.value}]),disabled:e.disabled,onMousedown:c[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(n,[`prevent`])},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label)+` `,1),e.showChevron?((0,t.openBlock)(),(0,t.createBlock)($,{key:0,name:`arrow_drop_down`,size:16})):(0,t.createCommentVNode)(``,!0)],42,Lt)]),panel:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`docx-menu-dropdown__menu`,onMousedown:c[1]||=(0,t.withModifiers)(()=>{},[`prevent`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:r},[n(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Rt)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`docx-menu-dropdown__wrap`,onMouseenter:t=>e.submenu?i.value=r:void 0,onMouseleave:t=>e.submenu?i.value=null:void 0},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`docx-menu-dropdown__item`,{"docx-menu-dropdown__item--disabled":e.disabled}]),disabled:e.disabled,onClick:(0,t.withModifiers)(t=>o(e),[`prevent`])},[e.icon?((0,t.openBlock)(),(0,t.createBlock)($,{key:0,name:e.icon,size:18},null,8,[`name`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,Vt,(0,t.toDisplayString)(e.label),1),e.shortcut?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ht,(0,t.toDisplayString)(e.shortcut),1)):(0,t.createCommentVNode)(``,!0),e.submenu?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ut,[(0,t.createVNode)($,{name:`keyboard_arrow_right`,size:16})])):(0,t.createCommentVNode)(``,!0)],10,Bt),e.submenu&&i.value===r?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wt,[(0,t.renderSlot)(s.$slots,`submenu`,{item:e,closeMenu:a},void 0,!0)])):(0,t.createCommentVNode)(``,!0)],40,zt))],64))),128))],32)]),_:3},8,[`open`]))}}),[[`__scopeId`,`data-v-4ff44889`]]),Kt=[`aria-label`],qt=[`data-depth`,`aria-current`,`aria-label`,`title`,`tabindex`,`onClick`,`onFocus`],Jt={"aria-hidden":`true`,class:`folio-outline-tick-label`},Yt={key:1,class:`folio-outline-item-label`},Xt=12,Zt=Q((0,t.defineComponent)({__name:`OutlineRail`,props:{items:{},getScrollContainer:{},resolvePct:{},onJump:{},activeId:{default:null},topOffset:{},panelWidth:{},ariaLabel:{default:`Outline`},presentation:{default:`panel`}},setup(e){let n=e,r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.ref)(0),o=(0,t.ref)(!1),s=(0,t.computed)(()=>n.items.findIndex(e=>e.id===n.activeId)),c=(0,t.computed)(()=>{let e=1/0;for(let t of n.items)e=Math.min(e,t.level);return e}),l=e=>n.presentation===`rail`?[`folio-outline-tick`,e.id===n.activeId?`folio-outline-tick--active`:void 0]:[`folio-outline-item`,e.id===n.activeId?`folio-outline-item--active`:void 0];(0,t.watch)(s,e=>{!o.value&&e>=0&&(a.value=e)},{immediate:!0}),(0,t.watch)([s,()=>n.presentation],async([e,n])=>{if(n!==`panel`||e<0)return;await(0,t.nextTick)();let i=r.value,a=i?.children.item(e);if(!(a instanceof HTMLElement)||!i)return;let o=a.offsetTop,s=o+a.offsetHeight;o<i.scrollTop?i.scrollTop=o:s>i.scrollTop+i.clientHeight&&(i.scrollTop=s-i.clientHeight)},{immediate:!0,flush:`post`});let u=null;(0,t.watch)([r,()=>n.presentation],([e,t])=>{u?.disconnect(),u=null,i.value=0,t===`rail`&&e&&typeof ResizeObserver<`u`&&(i.value=e.clientHeight,u=new ResizeObserver(()=>{i.value=e.clientHeight}),u.observe(e))},{flush:`post`}),(0,t.onBeforeUnmount)(()=>u?.disconnect());let d=(0,t.computed)(()=>{if(n.presentation!==`rail`||i.value===0)return[];let e=Math.max(0,i.value-Xt),t=n.items.length;if(t*Xt>i.value){let r=t>1?e/(t-1):0;return n.items.map((e,t)=>t*r)}let r=n.getScrollContainer(),a=n.items.map((i,a)=>{let o=r?n.resolvePct?.(i.id,r)??null:null;return(o===null?a/Math.max(1,t-1):o/100)*e});for(let e=1;e<a.length;e++)a[e]=Math.max(a[e]??0,(a[e-1]??0)+Xt);for(let t=a.length-1;t>=0;t--){let n=t===a.length-1?e:(a[t+1]??e)-Xt;a[t]=Math.min(a[t]??0,n)}return a}),f=e=>{let t=n.getScrollContainer();t&&n.onJump(e,t)},p=e=>{let t=n.items.length-1,i;switch(e.key){case`ArrowDown`:i=Math.min(t,a.value+1);break;case`ArrowUp`:i=Math.max(0,a.value-1);break;case`Home`:i=0;break;case`End`:i=t;break;default:return}e.preventDefault(),a.value=i,r.value?.querySelectorAll(`button`).item(i)?.focus()},m=e=>{e.relatedTarget instanceof Node&&r.value?.contains(e.relatedTarget)||(o.value=!1)};return(n,i)=>e.items.length>=2?((0,t.openBlock)(),(0,t.createElementBlock)(`ol`,{key:0,ref_key:`listRef`,ref:r,"aria-label":e.ariaLabel,class:(0,t.normalizeClass)(e.presentation===`rail`?`folio-outline-ticks`:`folio-outline-list`),onKeydown:p,onFocusin:i[0]||=e=>o.value=!0,onFocusout:m},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n.id,class:(0,t.normalizeClass)(e.presentation===`rail`?`folio-outline-tick-slot`:void 0),style:(0,t.normalizeStyle)(e.presentation===`rail`?{top:(d.value[r]??0)+`px`}:void 0)},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)(l(n)),"data-depth":Math.min(4,n.level-c.value),"aria-current":n.id===e.activeId?`true`:void 0,"aria-label":e.presentation===`rail`?n.label:void 0,title:e.presentation===`panel`?n.label:void 0,tabindex:r===a.value?0:-1,onClick:e=>f(n.id),onFocus:e=>a.value=r},[e.presentation===`rail`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[i[1]||=(0,t.createElementVNode)(`span`,{"aria-hidden":`true`,class:`folio-outline-tick-mark`},null,-1),(0,t.createElementVNode)(`span`,Jt,(0,t.toDisplayString)(n.label),1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Yt,(0,t.toDisplayString)(n.label),1))],42,qt)],6))),128))],42,Kt)):(0,t.createCommentVNode)(``,!0)}}),[[`__scopeId`,`data-v-c628bcf3`]]),Qt=[`disabled`,`value`],$t={key:0,disabled:``,value:``},en=[`disabled`,`value`],tn=Q((0,t.defineComponent)({__name:`Select`,props:{value:{},items:{},disabled:{type:Boolean},placeholder:{},className:{}},emits:[`change`],setup(e,{emit:n}){let r=n;function i(e){e.target instanceof HTMLSelectElement&&r(`change`,e.target.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`select`,{class:(0,t.normalizeClass)([`folio-default-select`,e.className]),disabled:e.disabled,value:e.value,onChange:i},[e.placeholder&&e.value===void 0?((0,t.openBlock)(),(0,t.createElementBlock)(`option`,$t,(0,t.toDisplayString)(e.placeholder),1)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.value,disabled:e.disabled,value:e.value},(0,t.toDisplayString)(e.label),9,en))),128))],42,Qt))}}),[[`__scopeId`,`data-v-0925daaa`]]),nn={Button:it,Dialog:Mt,Select:tn,Menu:Gt,Popover:It,Input:Pt,Checkbox:st,ColorPicker:Ot,DatePickerPopover:At,OutlineRail:Zt},rn=Symbol(`folio-ui-components`);function an(e){return e?{...nn,...e}:nn}function on(e){(0,t.provide)(rn,an(e))}function sn(){return(0,t.inject)(rn,nn)}var cn=(0,t.defineComponent)({name:`FolioUIProvider`,props:{components:{type:Object,default:void 0}},setup(e,{slots:t}){return on(e.components),()=>t.default?.()}});Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return an}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return tt}});