UNPKG

react-chrono

Version:
1 lines 143 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("styled-components"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","styled-components","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactChrono={},e.jsxRuntime,e.React,e.styled,e.ReactDOM)}(this,(function(e,t,i,n,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,l,s,d,c,u,h,m,f,p,g,v={exports:{}},b={},x={exports:{}},w={};function C(){if(a)return w;function e(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}a=1;var t=/javascript\s*\:/gim;return w.whiteList=e(),w.getDefaultWhiteList=e,w.onAttr=function(e,t,i){},w.onIgnoreAttr=function(e,t,i){},w.safeAttrValue=function(e,i){return t.test(i)?"":i},w}function y(){return s?l:(s=1,l={indexOf:function(e,t){var i,n;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var n,o;if(Array.prototype.forEach)return e.forEach(t,i);for(n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}})}function T(){if(h)return u;h=1;var e=C(),t=function(){if(c)return d;c=1;var e=y();return d=function(t,i){";"!==(t=e.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,r=0,a=0,l="";function s(){if(!o){var n=e.trim(t.slice(r,a)),s=n.indexOf(":");if(-1!==s){var d=e.trim(n.slice(0,s)),c=e.trim(n.slice(s+1));if(d){var u=i(r,l.length,d,c,n);u&&(l+=u+"; ")}}}r=a+1}for(;a<n;a++){var d=t[a];if("/"===d&&"*"===t[a+1]){var c=t.indexOf("*/",a+2);if(-1===c)break;r=(a=c+1)+1,o=!1}else"("===d?o=!0:")"===d?o=!1:";"===d?o||s():"\n"===d&&s()}return e.trim(l)},d}();function i(e){return null==e}function n(t){(t=function(e){var t={};for(var i in e)t[i]=e[i];return t}(t||{})).whiteList=t.whiteList||e.whiteList,t.onAttr=t.onAttr||e.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||e.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||e.safeAttrValue,this.options=t}return y(),n.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var n=this.options,o=n.whiteList,r=n.onAttr,a=n.onIgnoreAttr,l=n.safeAttrValue;return t(e,(function(e,t,n,s,d){var c=o[n],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=l(n,s)){var h,m={position:t,sourcePosition:e,source:d,isWhite:u};return u?i(h=r(n,s,m))?n+":"+s:h:i(h=a(n,s,m))?void 0:h}}))},u=n}function k(){return m||(m=1,function(e,t){var i=C(),n=T();for(var o in(t=e.exports=function(e,t){return new n(t).process(e)}).FilterCSS=n,i)t[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(x,x.exports)),x.exports}function S(){return p?f:(p=1,f={indexOf:function(e,t){var i,n;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var n,o;if(Array.prototype.forEach)return e.forEach(t,i);for(n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}})}function I(){if(g)return b;g=1;var e=k().FilterCSS,t=k().getDefaultWhiteList,i=S();function n(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new e;function r(e){return e.replace(a,"&lt;").replace(l,"&gt;")}var a=/</g,l=/>/g,s=/"/g,d=/&quot;/g,c=/&#([a-zA-Z0-9]*);?/gim,u=/&colon;?/gim,h=/&newline;?/gim,m=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,p=/u\s*r\s*l\s*\(.*/gi;function v(e){return e.replace(s,"&quot;")}function x(e){return e.replace(d,'"')}function w(e){return e.replace(c,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function C(e){return e.replace(u,":").replace(h," ")}function y(e){for(var t="",n=0,o=e.length;n<o;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return i.trim(t)}function T(e){return e=y(e=C(e=w(e=x(e))))}function I(e){return e=r(e=v(e))}return b.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},b.getDefaultWhiteList=n,b.onTag=function(e,t,i){},b.onIgnoreTag=function(e,t,i){},b.onTagAttr=function(e,t,i){},b.onIgnoreTagAttr=function(e,t,i){},b.safeAttrValue=function(e,t,n,r){if(n=T(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(m.lastIndex=0,m.test(n))return""}else if("style"===t){if(f.lastIndex=0,f.test(n))return"";if(p.lastIndex=0,p.test(n)&&(m.lastIndex=0,m.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return n=I(n)},b.escapeHtml=r,b.escapeQuote=v,b.unescapeQuote=x,b.escapeHtmlEntities=w,b.escapeDangerHtml5Entities=C,b.clearNonPrintableCharacter=y,b.friendlyAttrValue=T,b.escapeAttrValue=I,b.onIgnoreTagStripAll=function(){return""},b.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),o=[],r=!1;return{onIgnoreTag:function(a,l,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(s.isClosing){var d="[/removed]",c=s.position+10;return o.push([!1!==r?r:s.position,c]),r=!1,d}return r||(r=s.position),"[removed]"}return t(a,l,s)},remove:function(e){var t="",n=0;return i.forEach(o,(function(i){t+=e.slice(n,i[0]),n=i[1]})),t+=e.slice(n)}}},b.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var n=e.indexOf("\x3c!--",i);if(-1===n){t+=e.slice(i);break}t+=e.slice(i,n);var o=e.indexOf("--\x3e",n);if(-1===o)break;i=o+3}return t},b.stripBlankChar=function(e){var t=e.split("");return t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))})),t.join("")},b.attributeWrapSign='"',b.cssFilter=o,b.getDefaultCSSWhiteList=t,b}var M,L,$,A,j={};function N(){if(M)return j;M=1;var e=S();function t(t){var i,n=e.spaceIndex(t);return i=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(i=e.trim(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),"/"===i.slice(-1)&&(i=i.slice(0,-1)),i}function i(e){return"</"===e.slice(0,2)}var n=/[^a-zA-Z0-9\\_:.-]/gim;function o(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function r(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function a(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}return j.parseTag=function(e,n,o){var r="",a=0,l=!1,s=!1,d=0,c=e.length,u="",h="";e:for(d=0;d<c;d++){var m=e.charAt(d);if(!1===l){if("<"===m){l=d;continue}}else if(!1===s){if("<"===m){r+=o(e.slice(a,d)),l=d,a=d;continue}if(">"===m||d===c-1){r+=o(e.slice(a,l)),u=t(h=e.slice(l,d+1)),r+=n(l,r.length,u,h,i(h)),a=d+1,l=!1;continue}if('"'===m||"'"===m)for(var f=1,p=e.charAt(d-f);""===p.trim()||"="===p;){if("="===p){s=m;continue e}p=e.charAt(d-++f)}}else if(m===s){s=!1;continue}}return a<c&&(r+=o(e.substr(a))),r},j.parseAttr=function(t,i){var s=0,d=0,c=[],u=!1,h=t.length;function m(t,o){if(!((t=(t=e.trim(t)).replace(n,"").toLowerCase()).length<1)){var r=i(t,o||"");r&&c.push(r)}}for(var f=0;f<h;f++){var p,g=t.charAt(f);if(!1!==u||"="!==g)if(!1===u||f!==d)if(/\s|\n|\t/.test(g)){if(t=t.replace(/\s|\n|\t/g," "),!1===u){if(-1===(p=o(t,f))){m(e.trim(t.slice(s,f))),u=!1,s=f+1;continue}f=p-1;continue}if(-1===(p=a(t,f-1))){m(u,l(e.trim(t.slice(s,f)))),u=!1,s=f+1;continue}}else;else{if(-1===(p=t.indexOf(g,f+1)))break;m(u,e.trim(t.slice(d+1,p))),u=!1,s=(f=p)+1}else u=t.slice(s,f),s=f+1,d='"'===t.charAt(s)||"'"===t.charAt(s)?s:r(t,f+1)}return s<t.length&&(!1===u?m(t.slice(s)):m(u,l(e.trim(t.slice(s))))),e.trim(c.join(" "))},j}function D(){if($)return L;$=1;var e=k().FilterCSS,t=I(),i=N(),n=i.parseTag,o=i.parseAttr,r=S();function a(e){return null==e}function l(i){(i=function(e){var t={};for(var i in e)t[i]=e[i];return t}(i||{})).stripIgnoreTag&&(i.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),i.onIgnoreTag=t.onIgnoreTagStripAll),i.whiteList||i.allowList?i.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(i.whiteList||i.allowList):i.whiteList=t.whiteList,this.attributeWrapSign=!0===i.singleQuotedAttributeValue?"'":t.attributeWrapSign,i.onTag=i.onTag||t.onTag,i.onTagAttr=i.onTagAttr||t.onTagAttr,i.onIgnoreTag=i.onIgnoreTag||t.onIgnoreTag,i.onIgnoreTagAttr=i.onIgnoreTagAttr||t.onIgnoreTagAttr,i.safeAttrValue=i.safeAttrValue||t.safeAttrValue,i.escapeHtml=i.escapeHtml||t.escapeHtml,this.options=i,!1===i.css?this.cssFilter=!1:(i.css=i.css||{},this.cssFilter=new e(i.css))}return l.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var i=this,l=i.options,s=l.whiteList,d=l.onTag,c=l.onIgnoreTag,u=l.onTagAttr,h=l.onIgnoreTagAttr,m=l.safeAttrValue,f=l.escapeHtml,p=i.attributeWrapSign,g=i.cssFilter;l.stripBlankChar&&(e=t.stripBlankChar(e)),l.allowCommentTag||(e=t.stripCommentTag(e));var v=!1;l.stripIgnoreTagBody&&(v=t.StripTagBody(l.stripIgnoreTagBody,c),c=v.onIgnoreTag);var b=n(e,(function(e,t,i,n,l){var v={sourcePosition:e,position:t,isClosing:l,isWhite:Object.prototype.hasOwnProperty.call(s,i)},b=d(i,n,v);if(!a(b))return b;if(v.isWhite){if(v.isClosing)return"</"+i+">";var x=function(e){var t=r.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=r.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=r.trim(e.slice(0,-1))),{html:e,closing:i}}(n),w=s[i],C=o(x.html,(function(e,t){var n=-1!==r.indexOf(w,e),o=u(i,e,t,n);return a(o)?n?(t=m(i,e,t,g))?e+"="+p+t+p:e:a(o=h(i,e,t,n))?void 0:o:o}));return n="<"+i,C&&(n+=" "+C),x.closing&&(n+=" /"),n+=">"}return a(b=c(i,n,v))?f(n):b}),f);return v&&(b=v.remove(b)),b},L=l}var H=(A||(A=1,function(e,t){var i=I(),n=N(),o=D();function r(e,t){return new o(t).process(e)}(t=e.exports=r).filterXSS=r,t.FilterXSS=o,function(){for(var e in i)t[e]=i[e];for(var o in n)t[o]=n[o]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(v,v.exports)),v.exports),R=r(H);const O={cardBgColor:"#ffffff",cardDetailsBackGround:"#ffffff",cardDetailsColor:"#374151",cardMediaBgColor:"#f8fafc",cardSubtitleColor:"#6b7280",cardTitleColor:"#007FFF",detailsColor:"#374151",iconBackgroundColor:"#007FFF",nestedCardBgColor:"#f8fafc",nestedCardDetailsBackGround:"#f8fafc",nestedCardDetailsColor:"#374151",nestedCardSubtitleColor:"#6b7280",nestedCardTitleColor:"#1f2937",primary:"#007FFF",secondary:"#ffdf00",titleColor:"#007FFF",titleColorActive:"#007FFF",toolbarBgColor:"#f1f5f9",toolbarBtnBgColor:"#ffffff",toolbarTextColor:"#1e293b",timelineBgColor:"#ffffff",iconColor:"#007FFF",buttonHoverBgColor:"#e2e8f0",buttonActiveBgColor:"#007FFF",buttonActiveIconColor:"#ffffff",buttonBorderColor:"#e2e8f0",buttonHoverBorderColor:"#007FFF",buttonActiveBorderColor:"#007FFF",shadowColor:"rgba(0, 0, 0, 0.1)",glowColor:"rgba(0, 127, 255, 0.2)",searchHighlightColor:"rgba(0, 127, 255, 0.2)",darkToggleActiveBgColor:"#007FFF",darkToggleActiveIconColor:"#ffffff",darkToggleActiveBorderColor:"#007FFF",darkToggleGlowColor:"rgba(0, 127, 255, 0.2)"},E={cardBgColor:"#1f2937",cardDetailsBackGround:"#1f2937",cardDetailsColor:"#f3f4f6",cardMediaBgColor:"#111827",cardSubtitleColor:"#d1d5db",cardTitleColor:"#60a5fa",detailsColor:"#f3f4f6",iconBackgroundColor:"#3b82f6",nestedCardBgColor:"#111827",nestedCardDetailsBackGround:"#111827",nestedCardDetailsColor:"#f3f4f6",nestedCardSubtitleColor:"#d1d5db",nestedCardTitleColor:"#f9fafb",primary:"#3b82f6",secondary:"#fbbf24",titleColor:"#60a5fa",titleColorActive:"#60a5fa",toolbarBgColor:"#111827",toolbarBtnBgColor:"#374151",toolbarTextColor:"#f3f4f6",timelineBgColor:"#111827",iconColor:"#93c5fd",buttonHoverBgColor:"#4b5563",buttonActiveBgColor:"#fbbf24",buttonActiveIconColor:"#1f2937",buttonBorderColor:"rgba(255, 255, 255, 0.1)",buttonHoverBorderColor:"#3b82f6",buttonActiveBorderColor:"#3b82f6",shadowColor:"rgba(0, 0, 0, 0.4)",glowColor:"rgba(59, 130, 246, 0.4)",searchHighlightColor:"rgba(96, 165, 250, 0.4)",darkToggleActiveBgColor:"#1e40af",darkToggleActiveIconColor:"#e2e8f0",darkToggleActiveBorderColor:"#3b82f6",darkToggleGlowColor:"rgba(59, 130, 246, 0.4)"},z=Object.freeze({card:"rc-card",cardMedia:"rc-card-media",cardSubTitle:"rc-card-subtitle",cardText:"rc-card-text",cardTitle:"rc-card-title",controls:"rc-controls",title:"rc-title"}),B=Object.freeze({changeDensity:"Change density",changeDensityOptions:Object.freeze({high:Object.freeze({helpText:"Show more items at once",text:"High"}),low:Object.freeze({helpText:"Show fewer items at once",text:"Low"})}),changeLayout:"Change layout",changeLayoutOptions:Object.freeze({alternating:Object.freeze({helpText:"Show cards in a vertical layout with alternating fashion",text:"Alternating"}),horizontal:Object.freeze({helpText:"Show cards in a horizontal layout",text:"Horizontal"}),horizontal_all:Object.freeze({helpText:"Show all cards in a horizontal layout",text:"Show all cards"}),vertical:Object.freeze({helpText:"Show cards in a vertical layout",text:"Vertical"})}),dark:"Switch to Dark Mode",first:"Go to First",jumpTo:"Jump to",last:"Go to Last",light:"Switch to Light Mode",next:"Next",play:"Play Slideshow",previous:"Previous",stop:"Stop Slideshow",searchPlaceholder:"Search Timeline",searchAriaLabel:"Search timeline content",clearSearch:"Clear Search",previousMatch:"Previous Match",nextMatch:"Next Match",timelinePoint:"Timeline point"}),P=/^#[0-9a-fA-F]{6}$/,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",W=(e,t)=>{if("string"!=typeof e||"number"!=typeof t)return`rgba(0, 0, 0, ${Math.max(0,Math.min(1,t||0))})`;if(!P.test(e))return console.warn("Invalid hex color provided:",e),`rgba(0, 0, 0, ${Math.max(0,Math.min(1,t))})`;const i=parseInt(e.slice(1),16);return`rgba(${i>>16&255}, ${i>>8&255}, ${255&i}, ${Math.max(0,Math.min(1,t))})`},V=()=>z,q=()=>B,_=()=>{var e;if("undefined"!=typeof window&&null!==(e=window.crypto)&&void 0!==e&&e.getRandomValues)try{const e=new Uint8Array(7);return window.crypto.getRandomValues(e),Array.from(e,(e=>F[e%62])).join("")}catch(e){console.error("Error generating unique ID:",e)}const t=Date.now().toString(36),i="undefined"!=typeof performance&&performance.now?performance.now().toString().replace(".",""):Date.now().toString(),n=parseInt(i.slice(-6),10),o=Array.from({length:8},((e,t)=>{const i=Math.pow(2,32);return F[(1664525*(n+t)+1013904223)%i%62]})).join("");return`id-${t}-${o}`};var G,U={exports:{}};var Y=(G||(G=1,function(e){e.exports=function(){var e=1e3,t=6e4,i=36e5,n="millisecond",o="second",r="minute",a="hour",l="day",s="week",d="month",c="quarter",u="year",h="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},v=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},b={s:v,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),o=i%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),o=t.clone().add(n,d),r=i-o<0,a=t.clone().add(n+(r?-1:1),d);return+(-(n+(i-o)/(r?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:s,d:l,D:h,h:a,m:r,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",w={};w[x]=g;var C="$isDayjsObject",y=function(e){return e instanceof I||!(!e||!e[C])},T=function e(t,i,n){var o;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();w[r]&&(o=r),i&&(w[r]=i,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!n&&o&&(x=o),o||!n&&x},k=function(e,t){if(y(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new I(i)},S=b;S.l=T,S.i=y,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var o=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===m)},v.isSame=function(e,t){var i=k(e);return this.startOf(t)<=i&&i<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,i){return S.u(e)?this[t]:this.set(i,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var i=this,n=!!S.u(t)||t,c=S.p(e),m=function(e,t){var o=S.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?o:o.endOf(l)},f=function(e,t){return S.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},p=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return n?m(1,0):m(31,11);case d:return n?m(1,g):m(0,g+1);case s:var x=this.$locale().weekStart||0,w=(p<x?p+7:p)-x;return m(n?v-w:v+(6-w),g);case l:case h:return f(b+"Hours",0);case a:return f(b+"Minutes",1);case r:return f(b+"Seconds",2);case o:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var i,s=S.p(e),c="set"+(this.$u?"UTC":""),m=(i={},i[l]=c+"Date",i[h]=c+"Date",i[d]=c+"Month",i[u]=c+"FullYear",i[a]=c+"Hours",i[r]=c+"Minutes",i[o]=c+"Seconds",i[n]=c+"Milliseconds",i)[s],f=s===l?this.$D+(t-this.$W):t;if(s===d||s===u){var p=this.clone().set(h,1);p.$d[m](f),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(n,c){var h,m=this;n=Number(n);var f=S.p(c),p=function(e){var t=k(m);return S.w(t.date(t.date()+Math.round(e*n)),m)};if(f===d)return this.set(d,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===l)return p(1);if(f===s)return p(7);var g=(h={},h[r]=t,h[a]=i,h[o]=e,h)[f]||1,v=this.$d.getTime()+n*g;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||m;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),r=this.$H,a=this.$m,l=this.$M,s=i.weekdays,d=i.months,c=i.meridiem,u=function(e,i,o,r){return e&&(e[i]||e(t,n))||o[i].slice(0,r)},h=function(e){return S.s(r%12||12,e,"0")},f=c||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(p,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return l+1;case"MM":return S.s(l+1,2,"0");case"MMM":return u(i.monthsShort,l,d,3);case"MMMM":return u(d,l);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(i.weekdaysMin,t.$W,s,2);case"ddd":return u(i.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(r);case"HH":return S.s(r,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(r,a,!0);case"A":return f(r,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,h,m){var f,p=this,g=S.p(h),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,w=function(){return S.m(p,v)};switch(g){case u:f=w()/12;break;case d:f=w();break;case c:f=w()/3;break;case s:f=(x-b)/6048e5;break;case l:f=(x-b)/864e5;break;case a:f=x/i;break;case r:f=x/t;break;case o:f=x/e;break;default:f=x}return m?f:S.a(f)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=T(e,t,!0);return n&&(i.$L=n),i},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),M=I.prototype;return k.prototype=M,[["$ms",n],["$s",o],["$m",r],["$H",a],["$W",l],["$M",d],["$y",u],["$D",h]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,I,k),e.$i=!0),k},k.locale=T,k.isDayjs=y,k.unix=function(e){return k(1e3*e)},k.en=w[x],k.Ls=w,k.p={},k}()}(U)),U.exports),Z=r(Y);const J=i.createContext({staticDefaults:{borderLessCards:!1,cardLess:!1,disableTimelinePoint:!1,disableToolbar:!1,enableBreakPoint:!0,enableDarkToggle:!1,enableLayoutSwitch:!0,enableQuickJump:!0,focusActiveItemOnLoad:!1,highlightCardsOnHover:!1,isChild:!1,lineWidth:3,mediaHeight:200,nestedCardHeight:150,noUniqueId:!1,parseDetailsAsHTML:!1,scrollable:{scrollbar:!1},showProgressOnSlideshow:!0,showOverallSlideshowProgress:!0,timelinePointDimension:16,timelinePointShape:"circle",titleDateFormat:"MMM DD, YYYY",toolbarPosition:"top",uniqueId:"react-chrono",useReadMore:!0},computedCardHeight:200,computedActiveItemIndex:0,computedSlideShowType:"reveal",computedMediaAlign:"center",newContentDetailsHeight:150,memoizedButtonTexts:{first:"First",last:"Last",play:"Play",stop:"Stop",previous:"Previous",next:"Next",dark:"Dark",light:"Light",timelinePoint:"Timeline Point",searchPlaceholder:"Search...",searchAriaLabel:"Search timeline",clearSearch:"Clear search",nextMatch:"Next match",previousMatch:"Previous match"},memoizedClassNames:{},memoizedFontSizes:{},memoizedMediaSettings:{},memoizedSemanticTags:{}}),Q=i.createContext({isDarkMode:!1,isMobile:!1,horizontalAll:!1,textContentDensity:"HIGH",memoizedTheme:{primary:"#007FFF",secondary:"#ffdf00",cardBgColor:"#ffffff",cardDetailsBackGround:"#ffffff",cardDetailsColor:"#000",cardMediaBgColor:"#f5f5f5",cardSubtitleColor:"#000",cardTitleColor:"#007FFF",detailsColor:"#000",iconBackgroundColor:"#007FFF",nestedCardBgColor:"#f5f5f5",nestedCardDetailsBackGround:"#f5f5f5",nestedCardDetailsColor:"#000",nestedCardSubtitleColor:"#000",nestedCardTitleColor:"#000",titleColor:"#007FFF",titleColorActive:"#007FFF",toolbarBgColor:"#f5f5f5",toolbarBtnBgColor:"#ffffff",toolbarTextColor:"#000",timelineBgColor:"#f5f5f5"},toggleDarkMode:()=>{},updateHorizontalAllCards:()=>{},updateTextContentDensity:()=>{}}),K=i.createContext({}),X=()=>i.useContext(K),ee=()=>{const e=i.useContext(J);if(e&&"react-chrono"!==e.staticDefaults.uniqueId)return e;return(e=>({staticDefaults:{borderLessCards:(null==e?void 0:e.borderLessCards)??!1,cardLess:(null==e?void 0:e.cardLess)??!1,disableTimelinePoint:(null==e?void 0:e.disableTimelinePoint)??!1,disableToolbar:(null==e?void 0:e.disableToolbar)??!1,enableBreakPoint:(null==e?void 0:e.enableBreakPoint)??!0,enableDarkToggle:(null==e?void 0:e.enableDarkToggle)??!1,enableLayoutSwitch:(null==e?void 0:e.enableLayoutSwitch)??!0,enableQuickJump:(null==e?void 0:e.enableQuickJump)??!0,focusActiveItemOnLoad:(null==e?void 0:e.focusActiveItemOnLoad)??!1,highlightCardsOnHover:(null==e?void 0:e.highlightCardsOnHover)??!1,isChild:(null==e?void 0:e.isChild)??!1,lineWidth:(null==e?void 0:e.lineWidth)??3,mediaHeight:(null==e?void 0:e.mediaHeight)??200,nestedCardHeight:(null==e?void 0:e.nestedCardHeight)??150,noUniqueId:(null==e?void 0:e.noUniqueId)??!1,parseDetailsAsHTML:(null==e?void 0:e.parseDetailsAsHTML)??!1,scrollable:(null==e?void 0:e.scrollable)??{scrollbar:!1},timelinePointDimension:(null==e?void 0:e.timelinePointDimension)??16,timelinePointShape:(null==e?void 0:e.timelinePointShape)??"circle",titleDateFormat:(null==e?void 0:e.titleDateFormat)??"MMM DD, YYYY",toolbarPosition:(null==e?void 0:e.toolbarPosition)??"top",uniqueId:(null==e?void 0:e.uniqueId)??"react-chrono",useReadMore:(null==e?void 0:e.useReadMore)??!0},computedCardHeight:(null==e?void 0:e.cardHeight)??200,computedActiveItemIndex:(null==e?void 0:e.activeItemIndex)??0,computedSlideShowType:(null==e?void 0:e.slideShowType)??"reveal",computedMediaAlign:(null==e?void 0:e.mediaAlign)??"center",newContentDetailsHeight:(null==e?void 0:e.contentDetailsHeight)??150,memoizedButtonTexts:{...q(),...null==e?void 0:e.buttonTexts},memoizedClassNames:{...V(),...null==e?void 0:e.classNames},memoizedFontSizes:(null==e?void 0:e.fontSizes)??{},memoizedMediaSettings:(null==e?void 0:e.mediaSettings)??{},memoizedSemanticTags:(null==e?void 0:e.semanticTags)??{},mode:null==e?void 0:e.mode,cardHeight:null==e?void 0:e.cardHeight,flipLayout:null==e?void 0:e.flipLayout,items:null==e?void 0:e.items,fontSizes:null==e?void 0:e.fontSizes,textOverlay:null==e?void 0:e.textOverlay,mediaSettings:null==e?void 0:e.mediaSettings,responsiveBreakPoint:null==e?void 0:e.responsiveBreakPoint,enableBreakPoint:null==e?void 0:e.enableBreakPoint,slideItemDuration:null==e?void 0:e.slideItemDuration,slideShowType:null==e?void 0:e.slideShowType,cardPositionHorizontal:null==e?void 0:e.cardPositionHorizontal,disableNavOnKey:null==e?void 0:e.disableNavOnKey,itemWidth:null==e?void 0:e.itemWidth,lineWidth:null==e?void 0:e.lineWidth,scrollable:null==e?void 0:e.scrollable,onScrollEnd:null==e?void 0:e.onScrollEnd,toolbarPosition:null==e?void 0:e.toolbarPosition,disableToolbar:null==e?void 0:e.disableToolbar,cardWidth:null==e?void 0:e.cardWidth,borderLessCards:null==e?void 0:e.borderLessCards,disableAutoScrollOnClick:null==e?void 0:e.disableAutoScrollOnClick,classNames:null==e?void 0:e.classNames,showProgressOnSlideshow:null==e?void 0:e.showProgressOnSlideshow,showOverallSlideshowProgress:null==e?void 0:e.showOverallSlideshowProgress,disableInteraction:null==e?void 0:e.disableInteraction,highlightCardsOnHover:null==e?void 0:e.highlightCardsOnHover,disableClickOnCircle:null==e?void 0:e.disableClickOnCircle,disableTimelinePoint:null==e?void 0:e.disableTimelinePoint,enableQuickJump:null==e?void 0:e.enableQuickJump,enableLayoutSwitch:null==e?void 0:e.enableLayoutSwitch,cardLess:null==e?void 0:e.cardLess,useReadMore:null==e?void 0:e.useReadMore}))(X())},te=()=>{const e=i.useContext(Q);if(e&&e.toggleDarkMode&&"function"==typeof e.toggleDarkMode)return e;return(e=>({isDarkMode:(null==e?void 0:e.darkMode)??!1,isMobile:(null==e?void 0:e.isMobile)??!1,horizontalAll:(null==e?void 0:e.showAllCardsHorizontal)??!1,textContentDensity:(null==e?void 0:e.textDensity)??"HIGH",memoizedTheme:(null==e?void 0:e.theme)??{},toggleDarkMode:(null==e?void 0:e.toggleDarkMode)??(()=>{}),updateTextContentDensity:(null==e?void 0:e.updateTextContentDensity)??(()=>{}),updateHorizontalAllCards:(null==e?void 0:e.updateHorizontalAllCards)??(()=>{})}))(X())};function ie(e,t,n){var o=this,r=i.useRef(null),a=i.useRef(0),l=i.useRef(null),s=i.useRef([]),d=i.useRef(),c=i.useRef(),u=i.useRef(e),h=i.useRef(!0);u.current=e;var m="undefined"!=typeof window,f=!t&&0!==t&&m;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,x=v?Math.max(+n.maxWait||0,t):null;i.useEffect((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=i.useMemo((function(){var e=function(e){var t=s.current,i=d.current;return s.current=d.current=null,a.current=e,c.current=u.current.apply(i,t)},i=function(e,t){f&&cancelAnimationFrame(l.current),l.current=f?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!h.current)return!1;var i=e-r.current;return!r.current||i>=t||i<0||v&&e-a.current>=x},w=function(t){return l.current=null,g&&s.current?e(t):(s.current=d.current=null,c.current)},C=function e(){var o=Date.now();if(n(o))return w(o);if(h.current){var l=t-(o-r.current),s=v?Math.min(l,x-(o-a.current)):l;i(e,s)}},y=function(){if(m||b){var u=Date.now(),f=n(u);if(s.current=[].slice.call(arguments),d.current=o,r.current=u,f){if(!l.current&&h.current)return a.current=r.current,i(C,t),p?e(r.current):c.current;if(v)return i(C,t),e(r.current)}return l.current||i(C,t),c.current}};return y.cancel=function(){l.current&&(f?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,s.current=r.current=d.current=l.current=null},y.isPending=function(){return!!l.current},y.flush=function(){return l.current?w(Date.now()):c.current},y}),[p,v,t,x,g,f,m,b]);return w}function ne(e,t,i){if("undefined"!=typeof window)try{e&&e.removeEventListener("change",t),window.removeEventListener("resize",i)}catch(e){console.error("Error removing media listeners:",e)}}const oe=(e,{onMatch:t,enabled:n=!0,debounceDelay:o=100}={})=>{const[r,a]=i.useState(!1),l=i.useRef(null),s=i.useRef(!1),d=i.useCallback((e=>{s.current||a(e.matches)}),[]),c=ie((()=>{if(!l.current||s.current)return;const e=l.current.matches;a(e)}),o,{maxWait:1e3});i.useEffect((()=>{if(!n||"undefined"==typeof window)return;s.current=!1,l.current&&ne(l.current,d,c),l.current=function(e){if("undefined"==typeof window)return null;try{return window.matchMedia(e)}catch(e){return console.error("Error creating media query:",e),null}}(e);const t=l.current;return t?(d(t),function(e,t,i){if(e&&"undefined"!=typeof window)try{e.addEventListener("change",t),window.addEventListener("resize",i)}catch(e){console.error("Error adding media listeners:",e)}}(t,d,c),()=>{s.current=!0,t&&ne(t,d,c),c.cancel(),l.current=null}):void 0}),[e,n,d,c]);const u=i.useRef(t);return u.current=t,i.useEffect((()=>{r&&u.current&&u.current()}),[r]),r},re=e=>{const{cardHeight:n=200,cardLess:o=!1,flipLayout:r,items:a=[],theme:l,buttonTexts:s,classNames:d,mode:c="VERTICAL_ALTERNATING",fontSizes:u,textOverlay:h,darkMode:m,slideShow:f,onThemeChange:p,mediaSettings:g,mediaHeight:v=200,contentDetailsHeight:b=10,showAllCardsHorizontal:x,textDensity:w="HIGH",responsiveBreakPoint:C=1024,enableBreakPoint:y,semanticTags:T,children:k}=e,[S,I]=i.useState(m),[M,L]=i.useState(x??!1),[$,A]=i.useState(!1),[j,N]=i.useState(w),D=i.useCallback((()=>{I(!S),null==p||p()}),[S,p]),H=i.useCallback((e=>{L(e)}),[]),R=i.useCallback((e=>{N(e)}),[]);oe(`(max-width: ${C-1}px)`,{onMatch:()=>A(!0),enabled:y}),oe(`(min-width: ${C}px)`,{onMatch:()=>A(!1),enabled:y});const z=i.useMemo((()=>({borderLessCards:e.borderLessCards??!1,cardLess:o,disableToolbar:e.disableToolbar??!1,enableBreakPoint:e.enableBreakPoint??!0,enableDarkToggle:e.enableDarkToggle??!1,enableLayoutSwitch:e.enableLayoutSwitch??!0,enableQuickJump:e.enableQuickJump??!0,focusActiveItemOnLoad:e.focusActiveItemOnLoad??!1,highlightCardsOnHover:e.highlightCardsOnHover??!1,lineWidth:e.lineWidth??3,mediaHeight:v,nestedCardHeight:e.nestedCardHeight??150,parseDetailsAsHTML:e.parseDetailsAsHTML??!1,scrollable:e.scrollable??{scrollbar:!1},timelinePointDimension:e.timelinePointDimension??16,timelinePointShape:e.timelinePointShape??"circle",titleDateFormat:e.titleDateFormat??"MMM DD, YYYY",toolbarPosition:e.toolbarPosition??"top",uniqueId:e.uniqueId??"react-chrono",useReadMore:e.useReadMore??!0,disableTimelinePoint:e.disableTimelinePoint??!1,isChild:e.isChild??!1,noUniqueId:e.noUniqueId??!1})),[e.borderLessCards,o,e.disableToolbar,e.enableBreakPoint,e.enableDarkToggle,e.enableLayoutSwitch,e.enableQuickJump,e.focusActiveItemOnLoad,e.highlightCardsOnHover,e.lineWidth,v,e.nestedCardHeight,e.parseDetailsAsHTML,e.scrollable,e.timelinePointDimension,e.timelinePointShape,e.titleDateFormat,e.toolbarPosition,e.uniqueId,e.useReadMore,e.disableTimelinePoint,e.isChild,e.noUniqueId]),B=i.useMemo((()=>Math.max((b??0)+(v??0),n)),[b,v,n]),P=i.useMemo((()=>{const e=Math.round(.75*B),t=b??0;return t>B?Math.min(t,e):Math.max(t,e)}),[B,b]),F=i.useMemo((()=>o?n??80:n),[o,n]),W=i.useMemo((()=>r?(null==a?void 0:a.length)-1:0),[r,null==a?void 0:a.length]),_=i.useMemo((()=>(e=>"VERTICAL_ALTERNATING"===e?"slide_from_sides":"reveal")(c)),[c]),G=i.useMemo((()=>"VERTICAL"!==c||h?"center":"left"),[c,h]),U=i.useMemo((()=>({...q(),...s})),[s]),Y=i.useMemo((()=>({...V(),...d})),[d]),Z=i.useMemo((()=>({cardSubtitle:"0.85rem",cardText:"1rem",cardTitle:"1rem",title:"1rem",...u})),[u]),K=i.useMemo((()=>({align:G,fit:"cover",...g})),[G,g]),X=i.useMemo((()=>({cardTitle:"span",cardSubtitle:"span",...T})),[T]),ee=i.useMemo((()=>({staticDefaults:z,computedCardHeight:F,computedActiveItemIndex:W,computedSlideShowType:_,computedMediaAlign:G,newContentDetailsHeight:P,memoizedButtonTexts:U,memoizedClassNames:Y,memoizedFontSizes:Z,memoizedMediaSettings:K,memoizedSemanticTags:X,mode:c,cardHeight:n,flipLayout:r,items:a,fontSizes:u,textOverlay:h,mediaSettings:g,responsiveBreakPoint:C,enableBreakPoint:y,slideItemDuration:e.slideItemDuration??2e3,slideShowType:_,cardPositionHorizontal:e.cardPositionHorizontal,disableNavOnKey:e.disableNavOnKey,itemWidth:e.itemWidth??200,lineWidth:e.lineWidth??3,scrollable:"boolean"!=typeof e.scrollable||e.scrollable,onScrollEnd:e.onScrollEnd,toolbarPosition:e.toolbarPosition??"top",disableToolbar:e.disableToolbar??!1,cardWidth:e.cardWidth,borderLessCards:e.borderLessCards??!1,disableAutoScrollOnClick:!!e.disableInteraction,classNames:Y,showProgressOnSlideshow:f,showOverallSlideshowProgress:e.showOverallSlideshowProgress??f,disableInteraction:!1,highlightCardsOnHover:e.highlightCardsOnHover??!1,disableClickOnCircle:!!e.disableInteraction,disableTimelinePoint:!!e.disableInteraction,enableQuickJump:e.enableQuickJump??!0,enableLayoutSwitch:e.enableLayoutSwitch??!0,cardLess:o,useReadMore:e.useReadMore??!0})),[z,F,W,_,G,P,U,Y,Z,K,X,c,n,r,a,u,h,g,C,y,f,e.cardPositionHorizontal,e.disableNavOnKey,e.itemWidth,e.lineWidth,e.scrollable,e.onScrollEnd,e.toolbarPosition,e.disableToolbar,e.cardWidth,e.borderLessCards,e.disableInteraction,e.highlightCardsOnHover,e.enableQuickJump,e.enableLayoutSwitch,e.useReadMore,e.showOverallSlideshowProgress]),te=i.useMemo((()=>{return{...(e=S,e?E:O),...l};var e}),[S,l]),ie=i.useMemo((()=>({isDarkMode:S,isMobile:$,horizontalAll:M,textContentDensity:j,memoizedTheme:te,toggleDarkMode:D,updateHorizontalAllCards:H,updateTextContentDensity:R})),[S,$,M,j,te,D,H,R]);return t.jsx(J.Provider,{value:ee,children:t.jsx(Q.Provider,{value:ie,children:k})})},ae=K,le=e=>t.jsx(re,{...e,children:t.jsx(se,{children:e.children})}),se=({children:e})=>{const n={...i.useContext(J),...i.useContext(Q)},o={...n,textDensity:n.textContentDensity,theme:n.memoizedTheme,buttonTexts:n.memoizedButtonTexts,classNames:n.memoizedClassNames,fontSizes:n.memoizedFontSizes,mediaSettings:n.memoizedMediaSettings,semanticTags:n.memoizedSemanticTags,contentDetailsHeight:n.newContentDetailsHeight,activeItemIndex:n.computedActiveItemIndex,slideShowType:n.slideShowType??n.computedSlideShowType,cardPositionHorizontal:n.cardPositionHorizontal,isMobile:n.isMobile,showAllCardsHorizontal:n.horizontalAll,darkMode:n.isDarkMode,borderLessCards:n.staticDefaults.borderLessCards,cardLess:n.staticDefaults.cardLess,disableToolbar:n.staticDefaults.disableToolbar,enableBreakPoint:n.staticDefaults.enableBreakPoint,enableDarkToggle:n.staticDefaults.enableDarkToggle,enableLayoutSwitch:n.staticDefaults.enableLayoutSwitch,enableQuickJump:n.staticDefaults.enableQuickJump,focusActiveItemOnLoad:n.staticDefaults.focusActiveItemOnLoad,highlightCardsOnHover:n.staticDefaults.highlightCardsOnHover,lineWidth:n.staticDefaults.lineWidth,mediaHeight:n.staticDefaults.mediaHeight,nestedCardHeight:n.staticDefaults.nestedCardHeight,parseDetailsAsHTML:n.staticDefaults.parseDetailsAsHTML,scrollable:n.staticDefaults.scrollable,timelinePointDimension:n.staticDefaults.timelinePointDimension,timelinePointShape:n.staticDefaults.timelinePointShape,titleDateFormat:n.staticDefaults.titleDateFormat,toolbarPosition:n.staticDefaults.toolbarPosition,uniqueId:n.staticDefaults.uniqueId,useReadMore:n.staticDefaults.useReadMore,toggleDarkMode:n.toggleDarkMode,updateHorizontalAllCards:n.updateHorizontalAllCards,updateTextContentDensity:n.updateTextContentDensity};return t.jsx(K.Provider,{value:o,children:e})};var de,ce={exports:{}};var ue=(de||(de=1,function(e){!function(){var t={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,n(i)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var r in e)t.call(e,r)&&e[r]&&(n=o(n,r));return n}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):window.classNames=i}()}(ce)),ce.exports),he=r(ue);const me=(e,t)=>{const[n,o]=i.useState(0),r=i.useMemo((()=>(i,n)=>{const{clientWidth:r,scrollLeft:a,scrollTop:l,clientHeight:s}=i,{pointOffset:d=0,pointWidth:c=0,contentHeight:u=0,contentOffset:h=0}=n;"HORIZONTAL"===e&&t?((e,t,i,n,o,r)=>{const a=e+t,l=i+n,s=i-e,d=a-i;(!(i>=e&&l<=a)&&!(i<e&&l>e||l>a&&i<a)||s<=o&&s>=0||d<=o&&d>=0)&&r(i-o)})(a,r,d,c,t,o):"VERTICAL"!==e&&"VERTICAL_ALTERNATING"!==e||((e,t,i,n,o)=>{const r=e+t,a=i+n,l=i-n,s=!(i>=e&&a<=r)||i<e&&a>e||a>r&&i<r;s&&l+n<r?o(l+Math.round(n/2)):s&&o(l)})(l,s,h,u,o)}),[e,t]);return[n,r]},fe=0,pe=2,ge=5,ve=10,be=100,xe=n.css(["scrollbar-color:"," default;scrollbar-width:thin;&::-webkit-scrollbar{width:0.3em;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,0.2);}&::-webkit-scrollbar-thumb{background-color:",";outline:1px solid ",";}"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary})),we=n.div.withConfig({displayName:"Wrapper",componentId:"sc-cif21b-0"})(["display:flex;flex-direction:column;height:100%;z-index:",";&:focus{outline:0;}overflow:hidden;position:relative;width:100%;&.horizontal{justify-content:flex-start;}&.js-focus-visible :focus:not(.focus-visible){}&.js-focus-visible .focus-visible{outline:2px solid #528deb;}"],ge-2),Ce=n.div.withConfig({displayName:"TimelineMainWrapper",componentId:"sc-cif21b-1"})(["align-items:flex-start;display:flex;justify-content:center;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;",";scroll-behavior:smooth;width:100%;background-color:",";background:transparent;F "," &.horizontal{min-height:150px;}padding:",";"],(e=>"HORIZONTAL"===e.mode?"position: relative":""),(e=>{var t;return(null===(t=e.theme)||void 0===t?void 0:t.timelineBgColor)||"transparent"}),xe,(({$scrollable:e})=>e?"":"0 1rem 0")),ye=n.div.withConfig({displayName:"TimelineMain",componentId:"sc-cif21b-2"})(["position:absolute;top:50%;left:0;display:flex;align-items:center;transition:all 0.2s ease;transform:translate(0,-50%);&.vertical{align-items:flex-start;justify-content:flex-start;width:100%;height:100%;}"]),Te=n.div.withConfig({displayName:"Outline",componentId:"sc-cif21b-3"})(["position:absolute;right:0;left:0;width:100%;height:",";margin-right:auto;margin-left:auto;background:",";"],(e=>`${e.height}px`),(e=>e.color));n.div.withConfig({displayName:"TimelineControlContainer",componentId:"sc-cif21b-4"})(["display:flex;align-items:center;justify-content:center;min-height:3rem;filter:",";&.hide{visibility:hidden;}&.show{visibility:visible;}"],(e=>e.active?"opacity(1);":"opacity(0.9);"));const ke=n.div.withConfig({displayName:"TimelineContentRender",componentId:"sc-cif21b-5"})(["display:flex;align-items:flex-start;justify-content:",";width:98%;margin-right:auto;margin-left:auto;overflow-x:hidden;"],(e=>e.$showAllCards?"flex-start":"center")),Se=n.div.withConfig({displayName:"ToolbarWrapper",componentId:"sc-cif21b-6"})(["display:flex;font-weight:bold;text-align:center;text-decoration:none;border-radius:6px;width:100%;padding:0;margin:",";order:",";z-index:",";align-items:center;justify-content:space-between;gap:1rem;"],(e=>"top"===e.position?"0 0 20px 0":"20px 0 0 0"),(e=>"top"===e.position?0:1),ve-1),Ie=n.ul.withConfig({displayName:"ExtraControls",componentId:"sc-cif21b-7"})(["display:flex;align-items:center;list-style:none;margin:0;padding:0.1rem;visibility:",";flex-shrink:0;"],(e=>e.$hide?"hidden":"visible"));n.li.withConfig({displayName:"ExtraControlChild",componentId:"sc-cif21b-8"})(["display:flex;margin:0.5rem 0;margin-right:0.5rem;"]);const Me=n.div.withConfig({displayName:"SearchWrapper",componentId:"sc-cif21b-9"})(["display:flex;align-items:center;background-color:",";padding:0.1rem 0.5rem;border-radius:6px;border:1px solid ",";flex-grow:1;ma