(function(C,Y){typeof exports=="object"&&typeof module<"u"?module.exports=Y(require("react")):typeof define=="function"&&define.amd?define(["react"],Y):(C=typeof globalThis<"u"?globalThis:C||self,C.TextOverflow=Y(C.React))})(this,function(C){"use strict";const re=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(C);var J={exports:{}},D={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var te;function Pe(){if(te)return D;te=1;var l=re.default,h=Symbol.for("react.element"),x=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,m=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function $(T,c,S){var y,E={},O=null,N=null;S!==void 0&&(O=""+S),c.key!==void 0&&(O=""+c.key),c.ref!==void 0&&(N=c.ref);for(y in c)p.call(c,y)&&!L.hasOwnProperty(y)&&(E[y]=c[y]);if(T&&T.defaultProps)for(y in c=T.defaultProps,c)E[y]===void 0&&(E[y]=c[y]);return{$$typeof:h,type:T,key:O,ref:N,props:E,_owner:m.current}}return D.Fragment=x,D.jsx=$,D.jsxs=$,D}var F={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ne;function je(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var l=re.default,h=Symbol.for("react.element"),x=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),T=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),ae=Symbol.iterator,De="@@iterator";function Fe(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[De];return typeof r=="function"?r:null}var P=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var g=` `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),typeof e=="function"&&M.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,G.current=u,Ue(),Error.prepareStackTrace=o}var k=e?e.displayName||e.name:"",Se=k?V(k):"";return typeof e=="function"&&M.set(e,Se),Se}function Be(e,r,t){return ye(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Je(e));if(typeof e=="string")return V(e);switch(e){case S:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Be(e.render);case E:return U(e.type,r,t);case O:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,ge={},he=P.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var u=Function.call.bind(q);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,B(o),d("Failed %s type: %s",t,a.message),B(null))}}}var ze=Array.isArray;function H(e){return ze(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Ee(e){if(He(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),me(e)}var W=P.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},be,_e,X;X={};function Ze(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&W.current&&r&&W.current.stateNode!==r){var t=b(W.current.type);X[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(W.current.type),e.ref),X[t]=!0)}}function rr(e,r){{var t=function(){be||(be=!0,d("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function tr(e,r){{var t=function(){_e||(_e=!0,d("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,n,o,u,i){var a={$$typeof:h,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(Ee(t),a=""+t),Qe(r)&&(Ee(r.key),a=""+r.key),Ze(r)&&(v=r.ref,er(r,o));for(u in r)q.call(r,u)&&!Xe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(i,f),v&&tr(i,f)}return nr(e,a,v,o,n,W.current,i)}}var Z=P.ReactCurrentOwner,Re=P.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===h}function Te(){{if(Z.current){var e=b(Z.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return` Check your code at `+r+":"+t+"."}return""}}var Oe={};function or(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),j(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),j(null)}}function Ce(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=ar(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(H(g)){for(var k=0;kR("span",{style:{overflow:"hidden",whiteSpace:"nowrap",display:"block",...h},children:l});return({text:l,startPos:h=0,truncatePosition:x="end"})=>{if(x==="middle"){let p=l.slice(0,~~(l.length/2)),m=l.slice(~~(l.length/2));return h&&(p=l.slice(0,h),m=l.slice(h)),m=`\u200E${m}\u200E`,p=`\u200E${p}\u200E`,ke(A,{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0px, max-content))"},title:l,children:[R(A,{style:{display:"auto"},children:p}),R(A,{style:{textOverflow:"ellipsis",direction:"rtl",textAlign:"left",display:"auto"},children:m})]})}if(x==="start"){const p=`${l}\u200E`;return R("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:R(A,{style:{direction:"rtl",textAlign:"left",textOverflow:"ellipsis",display:"auto"},children:p})})}return R("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:R(A,{style:{textOverflow:"ellipsis"},children:l})})}});