asma-core-ui 3.1.0-beta.4 → 4.0.0-2

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 (28) hide show
  1. package/dist/asma-core-ui.es.js +7 -7
  2. package/dist/src/components/custom/widget/widget/StyledWidget.d.ts +2 -2
  3. package/dist/src/components/feedback/minimizable-dialog/MinimizableDialog.d.ts +3 -3
  4. package/dist/src/components/icons/calendar-icon/NewCalendarIcon.d.ts +2 -0
  5. package/dist/src/components/icons/calendar-icon/index.d.ts +1 -0
  6. package/dist/src/components/icons/handyman-icon/HandymanIcon.d.ts +2 -0
  7. package/dist/src/components/icons/handyman-icon/index.d.ts +1 -0
  8. package/dist/src/components/icons/handyman-outline-icon/HandymanOutlineIcon.d.ts +2 -0
  9. package/dist/src/components/icons/handyman-outline-icon/index.d.ts +1 -0
  10. package/dist/src/components/icons/index.d.ts +4 -0
  11. package/dist/src/components/icons/pin-icon/PinIcon.d.ts +2 -0
  12. package/dist/src/components/icons/pin-icon/index.d.ts +1 -0
  13. package/dist/src/components/icons/work-icon/WorkIcon.d.ts +2 -0
  14. package/dist/src/components/icons/work-icon/index.d.ts +1 -0
  15. package/dist/src/components/inputs/rich-input/RichInput.d.ts +1 -0
  16. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +2 -1
  17. package/dist/src/components/table/StyledTable.d.ts +8 -2
  18. package/dist/src/components/table/components/TableHeader.d.ts +2 -1
  19. package/dist/src/components/table/components/TableHeaderCell.d.ts +3 -2
  20. package/dist/src/components/table/types.d.ts +1 -1
  21. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -0
  22. package/dist/src/index.d.ts +1 -1
  23. package/dist/tailwind.config.d.ts +1 -1
  24. package/package.json +10 -4
  25. package/tw-configs/twConfigs.json +4 -2
  26. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +0 -2
  27. package/dist/src/components/feedback/snack-bar/index.d.ts +0 -1
  28. package/dist/style.css +0 -1
@@ -1,4 +1,5 @@
1
- import*as e from"react";import t,{forwardRef as n,useContext as o,useLayoutEffect as r,useRef as i,useState as a,useEffect as l,createContext as s,useCallback as u,Fragment as c}from"react";import{Badge as d,Chip as f,Tooltip as p,Typography as h,Dialog as g,DialogActions as m,DialogContent as v,DialogTitle as y,Alert as b,AlertTitle as w,Checkbox as x,TextField as _,Select as k,MenuItem as E,Autocomplete as O,Paper as C,Slider as N,Switch as S,Radio as j,RadioGroup as T,Snackbar as P,FormControl as A,Popover as M,Popper as R,Fade as I,ClickAwayListener as D,FormControlLabel as L,FormHelperText as q,FormLabel as F,InputLabel as V,FormGroup as z,Drawer as B,Menu as H,MenuList as U,Tab as $,Tabs as W,Accordion as G,AccordionSummary as Y,AccordionDetails as K,Skeleton as Z}from"@mui/material";import{Avatar as X,ClickAwayListener as Q,Container as J,Fade as ee,Paper as te,Popper as ne,Skeleton as oe,Stack as re}from"@mui/material";import ie from"prop-types";import ae from"react-dom";const le=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ce(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function de(e){ce(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===se(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function fe(e,t){ce(2,arguments);var n=de(e),o=ue(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function pe(e,t){ce(2,arguments);var n=de(e),o=ue(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var he={};function ge(){return he}function me(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=ge(),d=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=de(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function ve(e){return ce(1,arguments),me(e,{weekStartsOn:1})}function ye(e){ce(1,arguments);var t=function(e){ce(1,arguments);var t=de(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=ve(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=ve(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ve(n)}function be(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function we(e){ce(1,arguments);var t=de(e);return t.setHours(0,0,0,0),t}var xe=864e5;function _e(e,t){ce(2,arguments);var n=we(e),o=we(t),r=n.getTime()-be(n),i=o.getTime()-be(o);return Math.round((r-i)/xe)}function ke(e,t){return ce(2,arguments),fe(e,7*ue(t))}function Ee(e,t){return ce(2,arguments),pe(e,12*ue(t))}function Oe(e,t){ce(2,arguments);var n=we(e),o=we(t);return n.getTime()===o.getTime()}function Ce(e){return ce(1,arguments),e instanceof Date||"object"===se(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Ne(e,t){ce(2,arguments);var n=de(e),o=de(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var Se=6048e5;function je(e){ce(1,arguments);var t=de(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Te(e){ce(1,arguments);var t=de(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Pe(e){ce(1,arguments);var t=de(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ae(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=ge(),d=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=de(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f}function Me(e){return ce(1,arguments),Ae(e,{weekStartsOn:1})}function Re(e,t){return ce(2,arguments),function(e,t){ce(2,arguments);var n=de(e).getTime(),o=ue(t);return new Date(n+o)}(e,-ue(t))}function Ie(e){ce(1,arguments);var t=de(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function De(e){ce(1,arguments);var t=de(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ie(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Ie(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Le(e){ce(1,arguments);var t=de(e),n=Ie(t).getTime()-function(e){ce(1,arguments);var t=De(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ie(n)}(t).getTime();return Math.round(n/6048e5)+1}function qe(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=ge(),d=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=de(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Fe(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=de(e),d=c.getUTCFullYear(),f=ge(),p=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=qe(h,t),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var v=qe(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Ve(e,t){ce(1,arguments);var n=de(e),o=qe(n,t).getTime()-function(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=ge(),d=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Fe(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),qe(p,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function ze(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}const Be={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return ze("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ze(n+1,2)},d:function(e,t){return ze(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ze(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ze(e.getUTCHours(),t.length)},m:function(e,t){return ze(e.getUTCMinutes(),t.length)},s:function(e,t){return ze(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return ze(Math.floor(o*Math.pow(10,n-3)),t.length)}};var He="midnight",Ue="noon",$e="morning",We="afternoon",Ge="evening",Ye="night",Ke={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Be.y(e,t)},Y:function(e,t,n,o){var r=Fe(e,o),i=r>0?r:1-r;return"YY"===t?ze(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ze(i,t.length)},R:function(e,t){return ze(De(e),t.length)},u:function(e,t){return ze(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return ze(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return ze(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Be.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return ze(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Ve(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},I:function(e,t,n){var o=Le(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):ze(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Be.d(e,t)},D:function(e,t,n){var o=function(e){ce(1,arguments);var t=de(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):ze(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ze(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ze(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return ze(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Ue:0===r?He:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Ge:r>=12?We:r>=4?$e:Ye,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Be.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Be.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):ze(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):ze(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Be.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Be.s(e,t)},S:function(e,t){return Be.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Xe(r);case"XXXX":case"XX":return Qe(r);default:return Qe(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Xe(r);case"xxxx":case"xx":return Qe(r);default:return Qe(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ze(r,":");default:return"GMT"+Qe(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ze(r,":");default:return"GMT"+Qe(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return ze(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return ze((o._originalDate||e).getTime(),t.length)}};function Ze(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+ze(i,2)}function Xe(e,t){return e%60==0?(e>0?"-":"+")+ze(Math.abs(e)/60,2):Qe(e,t)}function Qe(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+ze(Math.floor(r/60),2)+n+ze(r%60,2)}const Je=Ke;var et=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},tt=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const nt={p:tt,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return et(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",et(r,t)).replace("{{time}}",tt(i,t))}};var ot=["D","DD"],rt=["YY","YYYY"];function it(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var at={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const lt=function(e,t,n){var o,r=at[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function st(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ut={date:st({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:st({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:st({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ct={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const dt=function(e,t,n,o){return ct[e]};function ft(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const pt={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ft({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ft({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ft({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ft({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ft({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ht(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(l.length)}}}var gt;const mt={ordinalNumber:(gt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(gt.matchPattern);if(!n)return null;var o=n[0],r=e.match(gt.parsePattern);if(!r)return null;var i=gt.valueCallback?gt.valueCallback(r[0]):r[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:ht({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ht({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ht({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const vt={code:"en-US",formatDistance:lt,formatLong:ut,formatRelative:dt,localize:pt,match:mt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var yt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wt=/^'([^]*?)'?$/,xt=/''/g,_t=/[a-zA-Z]/;function kt(e,t,n){var o,r,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w;ce(2,arguments);var x=String(t),_=ge(),k=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:vt,E=ue(null!==(i=null!==(a=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=ue(null!==(p=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var C=de(e);if(!function(e){if(ce(1,arguments),!Ce(e)&&"number"!=typeof e)return!1;var t=de(e);return!isNaN(Number(t))}(C))throw new RangeError("Invalid time value");var N=Re(C,be(C)),S={firstWeekContainsDate:E,weekStartsOn:O,locale:k,_originalDate:C},j=x.match(bt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,nt[t])(e,k.formatLong):e})).join("").match(yt).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(wt);return t?t[1].replace(xt,"'"):e}(o);var i=Je[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==rt.indexOf(e)}(o)&&it(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==ot.indexOf(e)}(o)&&it(o,t,String(e)),i(N,o,k.localize,S);if(r.match(_t))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return j}var Et=6048e5;function Ot(e){return ce(1,arguments),Math.floor(function(e){return ce(1,arguments),de(e).getTime()}(e)/1e3)}function Ct(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=ge(),d=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=function(e,t){var n,o,r,i,a,l,s,u;ce(1,arguments);var c=de(e),d=c.getFullYear(),f=ge(),p=ue(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var g=me(h,t),m=new Date(0);m.setFullYear(d,0,p),m.setHours(0,0,0,0);var v=me(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),me(p,t)}var Nt=6048e5;function St(e,t){return ce(1,arguments),function(e,t,n){ce(2,arguments);var o=me(e,n),r=me(t,n),i=o.getTime()-be(o),a=r.getTime()-be(r);return Math.round((i-a)/Se)}(function(e){ce(1,arguments);var t=de(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),Te(e),t)+1}function jt(e,t){ce(2,arguments);var n=de(e),o=de(t);return n.getTime()>o.getTime()}function Tt(e,t){ce(2,arguments);var n=de(e),o=de(t);return n.getTime()<o.getTime()}function Pt(e,t){return(Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function At(e,t){ce(2,arguments);var n=de(e),o=de(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Mt(e,t){return ce(2,arguments),fe(e,-ue(t))}function Rt(e,t){ce(2,arguments);var n=de(e),o=ue(t),r=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(r,o,15),a.setHours(0,0,0,0);var l=function(e){ce(1,arguments);var t=de(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(a);return n.setMonth(o,Math.min(i,l)),n}function It(e,t){if(ce(2,arguments),"object"!==se(t)||null===t)throw new RangeError("values parameter must be an object");var n=de(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Rt(n,t.month)),null!=t.date&&n.setDate(ue(t.date)),null!=t.hours&&n.setHours(ue(t.hours)),null!=t.minutes&&n.setMinutes(ue(t.minutes)),null!=t.seconds&&n.setSeconds(ue(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(ue(t.milliseconds)),n)}function Dt(e,t){ce(2,arguments);var n=de(e),o=ue(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const Lt=e=>It(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),qt=e=>It(e,{hours:0,minutes:0,seconds:0,milliseconds:0});var Ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt,Bt={exports:{}},Ht={};
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";:root{--colors-text: #4c4c4c;--colors-blue-25: #f2f8fb;--colors-blue-50: #e6f2f8;--colors-blue-100: #cce6f1;--colors-blue-200: #99cce4;--colors-blue-300: #66b3d6;--colors-blue-400: #4da6cf;--colors-blue-500: #007cb5;--colors-blue-600: #006696;--colors-blue-700: #005a83;--colors-blue-800: #00405e;--colors-blue-900: #002638;--colors-red-100: #f7dede;--colors-red-300: #f6b9b9;--colors-red-500: #e10700;--colors-red-600: #b6120d;--colors-red-700: #9d0f0f;--colors-salmon-500: #d24545;--colors-salmon-700: #b14848;--colors-gray-10: #f9fafb;--colors-gray-50: #f0f2f4;--colors-gray-100: #e7eaee;--colors-gray-200: #d3d8df;--colors-gray-300: #bdc4cf;--colors-gray-400: #a2acbb;--colors-gray-500: #7a899e;--colors-gray-600: #626e7e;--colors-gray-700: #49525f;--colors-gray-800: #363e4a;--colors-gray-900: #0b0c0f;--colors-gray-9000: #1a1d23;--colors-gray-10000: black;--colors-zinc-100: #f5f5f5;--colors-zinc-200: #b4b4b4;--colors-zinc-300: #898989;--colors-zinc-400: #686868;--colors-zinc-500: #575757;--colors-zinc-600: #4c4c4c;--colors-zinc-700: #4e4d4f;--colors-zinc-800: #343434;--colors-zinc-900: #0b0c0f;--colors-cardea--grey-01: 210deg 16% 95%;--colors-cardea--grey-02: 215deg 16% 85%;--colors-cardea--grey-03: 213deg 16% 75%;--colors-cardea--grey-04: 216deg 16% 65%;--colors-cardea--grey-05: 215deg 16% 56%;--colors-cardea--grey-06: 216deg 16% 25%;--colors-green-25: #f7f9f8;--colors-green-50: #eff4f2;--colors-green-100: #deebe5;--colors-green-200: #ceddd7;--colors-green-300: #adc6bc;--colors-green-400: #9cb2a9;--colors-green-500: #687771;--colors-green-600: #59635e;--colors-green-700: #474f4b;--colors-green-800: #353b38;--colors-slate-100: #d0dee5;--colors-slate-200: #abc8d42f;--colors-slate-300: #abc8d4;--colors-slate-500: #9fbcca;--colors-slate-600: #6198ae;--colors-slate-700: #6e9aaf;--colors-slate-800: #4c7f93;--colors-magic-blue-700: #247ba3;--colors-jade-25: #f3fafa;--colors-jade-50: #e8f6f6;--colors-jade-100: #c5e7e7;--colors-jade-200: #8ed0d0;--colors-jade-300: #60bdbd;--colors-jade-400: #1ca1a1;--colors-jade-500: #168181;--colors-jade-600: #116161;--colors-jade-700: #0b4040;--colors-jade-800: #083030;--colors-yellow-400: #efcc1d;--colors-yellow-500: #ffd815;--colors-lime-300: #e6f1b1;--colors-lime-500: #beda2f;--colors-lime-700: #8ba01d;--colors-success-100: #d3f8e1;--colors-success-300: #a1ebbd;--colors-success-500: #13ce5a;--colors-success-700: #0b7c36;--colors-warning-100: #fcf4cf;--colors-warning-300: #fdeb92;--colors-warning-500: #f0c800;--colors-warning-700: #816d09;--colors-error-100: #f7dede;--colors-error-300: #f6b9b9;--colors-error-500: #ea1710;--colors-error-600: #b6120d;--colors-error-700: #9d0f0f;--colors-info-300: #bae8fd;--colors-info-500: #0297e8;--colors-info-700: #1563bc}[data-theme=default],[data-theme=fretex],[data-theme=greenish]{--colors-input-active-placeholder-color: var(--colors-gray-500);--colors-input-active-bg-color: #ffffff;--colors-input-active-hover-bg-color: var(--colors-gray-10);--colors-input-active-active-bg-color: var(--colors-gray-10);--colors-input-active-focus-bg-color: var(--colors-gray-10);--colors-input-active-disabled-bg-color: transparent;--colors-input-active-text-color: var(--colors-gray-800);--colors-input-active-active-text-color: var(--colors-gray-800);--colors-input-active-focus-text-color: var(--colors-gray-800);--colors-input-active-disabled-text-color: var(--colors-gray-300);--colors-input-active-outline-color: var(--colors-gray-500);--colors-input-active-hover-outline-color: var(--colors-gray-800);--colors-input-active-active-outline-color: var(--colors-gray-800);--colors-input-active-focus-outline-color: var(--colors-gama-500);--colors-input-active-disabled-outline-color: var(--colors-gray-300);--input-active-cursor: text;--input-active-hover-cursor: text;--input-active-active-cursor: text;--input-active-focus-cursor: text;--input-active-disabled-cursor: default;--input-active-outline-width: 1px;--input-active-hover-outline-width: 1px;--input-active-active-outline-width: 1px;--input-active-focus-outline-width: 2px;--input-active-disabled-outline-width: 1px;--colors-input-error-placeholder-color: var(--colors-error-700);--colors-input-error-bg-color: var(--colors-error-100);--colors-input-error-hover-bg-color: var(--colors-error-100);--colors-input-error-active-bg-color: var(--colors-error-100);--colors-input-error-focus-bg-color: var(--colors-error-100);--colors-input-error-disabled-bg-color: var(--colors-error-100);--colors-input-error-text-color: var(--colors-error-700);--colors-input-error-hover-text-color: var(--colors-error-700);--colors-input-error-active-text-color: var(--colors-error-700);--colors-input-error-focus-text-color: var(--colors-error-700);--colors-input-error-disabled-text-color: var(--colors-error-700);--colors-input-error-outline-color: var(--colors-error-700);--colors-input-error-hover-outline-color: var(--colors-error-700);--colors-input-error-active-outline-color: var(--colors-error-700);--colors-input-error-focus-outline-color: var(--colors-error-700);--colors-input-error-disabled-outline-color: var(--colors-error-700);--input-error-cursor: text;--input-error-hover-cursor: text;--input-error-active-cursor: text;--input-error-focus-cursor: text;--input-error-disabled-cursor: default;--input-error-outline-width: 1px;--input-error-hover-outline-width: 1px;--input-error-active-outline-width: 1px;--input-error-focus-outline-width: 2px;--input-error-disabled-outline-width: 1px;--colors-input-notEditable-placeholder-color: var(--colors-gray-800);--colors-input-notEditable-bg-color: var(--colors-gray-50);--colors-input-notEditable-hover-bg-color: var(--colors-gray-50);--colors-input-notEditable-active-bg-color: var(--colors-gray-50);--colors-input-notEditable-focus-bg-color: var(--colors-gray-50);--colors-input-notEditable-disabled-bg-color: var(--colors-gray-50);--colors-input-notEditable-text-color: var(--colors-gray-800);--colors-input-notEditable-active-text-color: var(--colors-gray-800);--colors-input-notEditable-focus-text-color: var(--colors-gray-800);--colors-input-notEditable-disabled-text-color: var(--colors-gray-300);--input-notEditable-cursor: default;--input-notEditable-hover-cursor: default;--input-notEditable-active-cursor: default;--input-notEditable-focus-cursor: default;--input-notEditable-disabled-cursor: default;--input-notEditable-outline-width: 0px;--input-notEditable-hover-outline-width: 0px;--input-notEditable-active-outline-width: 0px;--input-notEditable-focus-outline-width: 0px;--input-notEditable-disabled-outline-width: 0px;--colors-input-disabled-disabled-outline-width: 1px;--colors-input-disabled-disabled-outline-color: var(--colors-gray-300);--colors-input-disabled-disabled-text-color: var(--colors-gray-300);--colors-input-disabled-placeholder-color: var(--colors-gray-300);--colors-input-disabled-disabled-bg-color: #ffffff;--input-disabled-disabled-outline-width: 1px;--colors-input-readOnly-placeholder-color: var(--colors-gray-800);--colors-input-readOnly-bg-color: transparent;--colors-input-readOnly-hover-bg-color: transparent;--colors-input-readOnly-active-bg-color: transparent;--colors-input-readOnly-focus-bg-color: transparent;--colors-input-readOnly-disabled-bg-color: transparent;--colors-input-readOnly-text-color: var(--colors-gray-800);--colors-input-active-hover-text-color: var(--colors-gray-800);--colors-input-readOnly-active-text-color: var(--colors-gray-800);--colors-input-readOnly-focus-text-color: var(--colors-gray-800);--colors-input-readOnly-active-text-color: var(--colors-gray-300);--input-readOnly-cursor: text;--input-readOnly-hover-cursor: text;--input-readOnly-active-cursor: text;--input-readOnly-focus-cursor: text;--input-readOnly-disabled-cursor: default;--input-readOnly-outline-width: 0px;--input-readOnly-hover-outline-width: 0px;--input-readOnly-active-outline-width: 0px;--input-readOnly-focus-outline-width: 0px;--input-readOnly-disabled-outline-width: 0px;--colors-input-label-active-text-color: var(--colors-gray-800);--colors-input-label-error-text-color: var(--colors-error-700);--colors-input-label-disabled-text-color: var(--colors-gray-300);--colors-input-label-notEditable-text-color: var(--colors-gray-800);--colors-input-label-readOnly-text-color: var(--colors-gray-800);--colors-input-description-active-text-color: var(--colors-gray-600);--colors-input-description-error-text-color: var(--colors-error-700);--colors-input-description-disabled-text-color: var(--colors-gray-300);--colors-input-description-notEditable-text-color: var(--colors-gray-600);--colors-input-description-readOnly-text-color: var(--colors-gray-600)}:root{--colors-text-component: #ffffff;--colors-active-component: var(--colors-blue-500);--colors-alpha-100: var(--colors-blue-100);--colors-alpha-500: var(--colors-blue-500);--colors-alpha-600: var(--colors-blue-600);--colors-alpha-700: var(--colors-blue-700);--colors-beta-100: var(--colors-red-100);--colors-beta-500: var(--colors-red-500);--colors-beta-600: var(--colors-red-600);--colors-beta-700: var(--colors-red-700);--colors-gama-25: var(--colors-blue-25);--colors-gama-50: var(--colors-blue-50);--colors-gama-100: var(--colors-blue-100);--colors-gama-200: var(--colors-blue-200);--colors-gama-300: var(--colors-blue-300);--colors-gama-400: var(--colors-blue-400);--colors-gama-500: var(--colors-blue-500);--colors-gama-600: var(--colors-blue-600);--colors-gama-700: var(--colors-blue-700);--colors-gama-800: var(--colors-blue-800);--colors-gama-900: var(--colors-blue-900);--colors-delta-10: var(--colors-gray-10);--colors-delta-50: var(--colors-gray-50);--colors-delta-100: var(--colors-gray-100);--colors-delta-200: var(--colors-gray-200);--colors-delta-300: var(--colors-gray-300);--colors-delta-400: var(--colors-gray-400);--colors-delta-500: var(--colors-gray-500);--colors-delta-600: var(--colors-gray-600);--colors-delta-700: var(--colors-gray-700);--colors-delta-800: var(--colors-gray-800);--colors-delta-900: var(--colors-gray-900);--colors-delta-9000: var(--colors-gray-9000);--colors-delta-10000: var(--colors-gray-10000);--colors-sigma-700: var(--colors-magic-blue-700);--colors-theta-100: #ffffff;--colors-theta-200: var(--colors-slate-200);--colors-theta-300: var(--colors-slate-500);--colors-theta-400: #ffffff;--colors-theta-500: var(--colors-blue-300);--colors-theta-600: var(--colors-blue-700);--colors-theta-700: var(--colors-blue-600);--colors-theta-800: #ffffff;--colors-theta-hover: var(--colors-blue-700);--colors-btn-bg-hover: var(--colors-slate-300);--colors-btn-bg-standart: var(--colors-slate-600);--colors-btn-bg-active: var(--colors-slate-800);--colors-btn-bg-disabled: var(--colors-green-800);--colors-btn-bg-danger: var(--colors-salmon-700);--colors-btn-bg-danger-active: var(--colors-salmon-500);--colors-button-contained-common-text-color: #ffffff;--colors-button-contained-common-bg-color: var(--colors-gama-500);--colors-button-contained-common-border-color: var(--colors-gama-500);--colors-button-contained-common-focused-text-color: #ffffff;--colors-button-contained-common-focused-bg-color: var(--colors-gama-500);--colors-button-contained-common-focused-border-color: var(--colors-gama-400);--colors-button-contained-common-active-text-color: #ffffff;--colors-button-contained-common-active-bg-color: var(--colors-gama-700);--colors-button-contained-common-active-border-color: var(--colors-gama-700);--colors-button-contained-common-hover-text-color: #ffffff;--colors-button-contained-common-hover-bg-color: var(--colors-gama-600);--colors-button-contained-common-hover-border-color: var(--colors-gama-600);--colors-button-contained-common-disabled-text-color: #ffffff;--colors-button-contained-common-disabled-bg-color: var(--colors-delta-300);--colors-button-contained-common-disabled-border-color: var(--colors-delta-300);--colors-button-contained-error-text-color: #ffffff;--colors-button-contained-error-bg-color: var(--colors-beta-500);--colors-button-contained-error-border-color: var(--colors-beta-500);--colors-button-contained-error-focused-text-color: #ffffff;--colors-button-contained-error-focused-bg-color: var(--colors-beta-500);--colors-button-contained-error-focused-border-color: var(--colors-beta-400);--colors-button-contained-error-active-text-color: #ffffff;--colors-button-contained-error-active-bg-color: var(--colors-beta-700);--colors-button-contained-error-active-border-color: var(--colors-beta-700);--colors-button-contained-error-hover-text-color: #ffffff;--colors-button-contained-error-hover-bg-color: var(--colors-beta-600);--colors-button-contained-error-hover-border-color: var(--colors-beta-600);--colors-button-contained-error-disabled-text-color: #ffffff;--colors-button-contained-error-disabled-bg-color: var(--colors-delta-300);--colors-button-contained-error-disabled-border-color: transparent;--colors-button-outlined-common-text-color: var(--colors-delta-700);--colors-button-outlined-common-bg-color: transparent;--colors-button-outlined-common-border-color: var(--colors-delta-500);--colors-button-outlined-common-focused-text-color: var(--colors-delta-800);--colors-button-outlined-common-focused-bg-color: var(--colors-gama-50);--colors-button-outlined-common-focused-border-color: var(--colors-gama-400);--colors-button-outlined-common-active-text-color: var(--colors-delta-800);--colors-button-outlined-common-active-bg-color: var(--colors-gama-50);--colors-button-outlined-common-active-border-color: var(--colors-delta-700);--colors-button-outlined-common-hover-text-color: var(--colors-delta-800);--colors-button-outlined-common-hover-bg-color: var(--colors-gama-100);--colors-button-outlined-common-hover-border-color: var(--colors-delta-700);--colors-button-outlined-common-disabled-text-color: var(--colors-delta-300);--colors-button-outlined-common-disabled-bg-color: transparent;--colors-button-outlined-common-disabled-border-color: var(--colors-delta-300);--colors-button-outlined-error-text-color: var(--colors-beta-500);--colors-button-outlined-error-bg-color: transparent;--colors-button-outlined-error-border-color: var(--colors-beta-500);--colors-button-outlined-error-focused-text-color: #ffffff;--colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);--colors-button-outlined-error-focused-border-color: var(--colors-beta-400);--colors-button-outlined-error-active-text-color: var(--colors-beta-700);--colors-button-outlined-error-active-bg-color: var(--colors-beta-100);--colors-button-outlined-error-active-border-color: var(--colors-beta-700);--colors-button-outlined-error-hover-text-color: var(--colors-beta-600);--colors-button-outlined-error-hover-bg-color: var(--colors-beta-100);--colors-button-outlined-error-hover-border-color: var(--colors-beta-600);--colors-button-outlined-error-disabled-text-color: var(--colors-delta-300);--colors-button-outlined-error-disabled-bg-color: transparent;--colors-button-outlined-error-disabled-border-color: var(--colors-delta-300);--colors-button-text-common-text-color: var(--colors-gama-500);--colors-button-text-common-bg-color: transparent;--colors-button-text-common-border-color: transparent;--colors-button-text-common-focused-text-color: var(--colors-delta-800);--colors-button-text-common-focused-bg-color: var(--colors-gama-50);--colors-button-text-common-focused-border-color: var(--colors-gama-400);--colors-button-text-common-active-text-color: var(--colors-delta-800);--colors-button-text-common-active-bg-color: var(--colors-gama-100);--colors-button-text-common-active-border-color: var(--colors-gama-100);--colors-button-text-common-hover-text-color: var(--colors-delta-800);--colors-button-text-common-hover-bg-color: var(--colors-gama-50);--colors-button-text-common-hover-border-color: var(--colors-gama-50);--colors-button-text-common-disabled-text-color: var(--colors-delta-300);--colors-button-text-common-disabled-bg-color: transparent;--colors-button-text-common-disabled-border-color: transparent;--colors-button-text-error-text-color: var(--colors-beta-500);--colors-button-text-error-bg-color: transparent;--colors-button-text-error-border-color: transparent;--colors-button-text-error-focused-text-color: var(--colors-beta-600);--colors-button-text-error-focused-bg-color: var(--colors-beta-100);--colors-button-text-error-focused-border-color: var(--colors-beta-400);--colors-button-text-error-active-text-color: var(--colors-beta-600);--colors-button-text-error-active-bg-color: var(--colors-beta-100);--colors-button-text-error-active-border-color: var(--colors-beta-100);--colors-button-text-error-hover-text-color: var(--colors-beta-600);--colors-button-text-error-hover-bg-color: var(--colors-beta-100);--colors-button-text-error-hover-border-color: var(--colors-beta-100);--colors-button-text-error-disabled-text-color: var(--colors-delta-300);--colors-button-text-error-disabled-bg-color: transparent;--colors-button-text-error-disabled-border-color: transparent;--colors-button-textGray-common-text-color: var(--colors-delta-700);--colors-button-textGray-common-bg-color: transparent;--colors-button-textGray-common-border-color: transparent;--colors-button-textGray-common-focused-text-color: var(--colors-delta-800);--colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);--colors-button-textGray-common-focused-border-color: var(--colors-gama-400);--colors-button-textGray-common-active-text-color: var(--colors-delta-800);--colors-button-textGray-common-active-bg-color: var(--colors-gama-100);--colors-button-textGray-common-active-border-color: var(--colors-gama-100);--colors-button-textGray-common-hover-text-color: var(--colors-delta-800);--colors-button-textGray-common-hover-bg-color: var(--colors-gama-50);--colors-button-textGray-common-hover-border-color: var(--colors-gama-50);--colors-button-textGray-common-disabled-text-color: var(--colors-delta-300);--colors-button-textGray-common-disabled-bg-color: transparent;--colors-button-textGray-common-disabled-border-color: transparent;--colors-button-textWhite-common-text-color: white;--colors-button-textWhite-common-bg-color: transparent;--colors-button-textWhite-common-border-color: transparent;--colors-button-textWhite-common-focused-text-color: white;--colors-button-textWhite-common-focused-bg-color: transparent;--colors-button-textWhite-common-focused-border-color: transparent;--colors-button-textWhite-common-active-text-color: white;--colors-button-textWhite-common-active-bg-color: transparent;--colors-button-textWhite-common-active-border-color: transparent;--colors-button-textWhite-common-hover-text-color: white;--colors-button-textWhite-common-hover-bg-color: transparent;--colors-button-textWhite-common-hover-border-color: transparent;--colors-button-textWhite-common-disabled-text-color: white;--colors-button-textWhite-common-disabled-bg-color: transparent;--colors-button-textWhite-common-disabled-border-color: transparent;--colors-btn-bg-mini-action: var(--colors-slate-600);--colors-btn-bg-mini-action-hover: var(--colors-slate-300);--colors-link-text-hover: #ffffff;--colors-link-text-standart: #ffffff;--colors-link-text-active: var(--colors-blue-800);--colors-link-text-disabled: var(--colors-green-800);--colors-app-directory-button-select-recipient-bg: var(--colors-blue-200);--colors-btn-task-status-bg: var(--colors-slate-600);--colors-chat-ticket-message-bg: var(--colors-blue-200);--colors-topbar-text: var(--colors-zinc-500);--colors-menu-text-active: var(--colors-slate-700);--colors-badge-background: var(--colors-gama-500);--colors-badge-text: #ffffff}[data-theme=fretex]{--colors-text-component: var(--colors-gray-9000);--colors-active-component: var(--colors-gama-700);--colors-alpha-100: var(--colors-slate-100);--colors-alpha-500: var(--colors-slate-500);--colors-alpha-600: var(--colors-slate-600);--colors-alpha-700: var(--colors-slate-700);--colors-beta-100: var(--colors-red-100);--colors-beta-500: var(--colors-red-500);--colors-beta-600: var(--colors-red-600);--colors-beta-700: var(--colors-red-700);--colors-gama-25: var(--colors-green-25);--colors-gama-50: var(--colors-green-50);--colors-gama-100: var(--colors-green-100);--colors-gama-200: var(--colors-green-200);--colors-gama-300: var(--colors-green-300);--colors-gama-400: var(--colors-green-400);--colors-gama-500: var(--colors-green-500);--colors-gama-600: var(--colors-green-600);--colors-gama-700: var(--colors-green-700);--colors-gama-800: var(--colors-green-700);--colors-delta-10: var(--colors-gray-10);--colors-delta-50: var(--colors-gray-50);--colors-delta-100: var(--colors-zinc-100);--colors-delta-200: var(--colors-zinc-200);--colors-delta-300: var(--colors-zinc-300);--colors-delta-400: var(--colors-zinc-400);--colors-delta-500: var(--colors-zinc-500);--colors-delta-600: var(--colors-zinc-600);--colors-delta-700: var(--colors-zinc-700);--colors-delta-800: var(--colors-zinc-800);--colors-delta-900: var(--colors-zinc-900);--colors-delta-9000: var(--colors-gray-9000);--colors-delta-10000: var(--colors-gray-10000);--colors-sigma-700: var(--colors-zinc-500);--colors-theta-100: #ffffff;--colors-theta-200: var(--colors-green-200);--colors-theta-300: var(--colors-green-500);--colors-theta-400: #ffffff;--colors-theta-500: #ffffff;--colors-theta-600: #ffffff;--colors-theta-700: #ffffff;--colors-theta-800: #ffffff;--colors-theta-hover: #ffffff;--colors-btn-bg-hover: var(--colors-gama-600);--colors-btn-bg-standart: var(--colors-gama-500);--colors-btn-bg-active: var(--colors-gama-600);--colors-btn-bg-disabled: var(--colors-gray-200);--colors-btn-bg-danger: var(--colors-red-700);--colors-btn-bg-danger-active: var(--colors-red-500);--colors-button-contained-common-text-color: #ffffff;--colors-button-contained-common-bg-color: var(--colors-gama-500);--colors-button-contained-common-border-color: var(--colors-gama-500);--colors-button-contained-common-focused-text-color: #ffffff;--colors-button-contained-common-focused-bg-color: var(--colors-gama-500);--colors-button-contained-common-focused-border-color: var(--colors-gama-400);--colors-button-contained-common-active-text-color: #ffffff;--colors-button-contained-common-active-bg-color: var(--colors-gama-700);--colors-button-contained-common-active-border-color: var(--colors-gama-700);--colors-button-contained-common-hover-text-color: #ffffff;--colors-button-contained-common-hover-bg-color: var(--colors-gama-600);--colors-button-contained-common-hover-border-color: var(--colors-gama-600);--colors-button-contained-common-disabled-text-color: #ffffff;--colors-button-contained-common-disabled-bg-color: var(--colors-delta-200);--colors-button-contained-common-disabled-border-color: var(--colors-delta-200);--colors-button-contained-error-text-color: #ffffff;--colors-button-contained-error-bg-color: var(--colors-beta-500);--colors-button-contained-error-border-color: var(--colors-beta-500);--colors-button-contained-error-focused-text-color: #ffffff;--colors-button-contained-error-focused-bg-color: var(--colors-beta-500);--colors-button-contained-error-focused-border-color: var(--colors-gama-400);--colors-button-contained-error-active-text-color: #ffffff;--colors-button-contained-error-active-bg-color: var(--colors-beta-700);--colors-button-contained-error-active-border-color: var(--colors-beta-700);--colors-button-contained-error-hover-text-color: #ffffff;--colors-button-contained-error-hover-bg-color: var(--colors-beta-600);--colors-button-contained-error-hover-border-color: var(--colors-beta-600);--colors-button-contained-error-disabled-text-color: #ffffff;--colors-button-contained-error-disabled-bg-color: var(--colors-delta-200);--colors-button-contained-error-disabled-border-color: transparent;--colors-button-outlined-common-text-color: var(--colors-delta-700);--colors-button-outlined-common-bg-color: transparent;--colors-button-outlined-common-border-color: var(--colors-delta-400);--colors-button-outlined-common-focused-text-color: var(--colors-delta-800);--colors-button-outlined-common-focused-bg-color: var(--colors-gama-50);--colors-button-outlined-common-focused-border-color: var(--colors-gama-400);--colors-button-outlined-common-active-text-color: var(--colors-delta-800);--colors-button-outlined-common-active-bg-color: var(--colors-gama-50);--colors-button-outlined-common-active-border-color: var(--colors-delta-700);--colors-button-outlined-common-hover-text-color: var(--colors-delta-800);--colors-button-outlined-common-hover-bg-color: var(--colors-gama-100);--colors-button-outlined-common-hover-border-color: var(--colors-delta-700);--colors-button-outlined-common-disabled-text-color: var(--colors-delta-200);--colors-button-outlined-common-disabled-bg-color: transparent;--colors-button-outlined-common-disabled-border-color: var(--colors-delta-200);--colors-button-outlined-error-text-color: var(--colors-beta-500);--colors-button-outlined-error-bg-color: transparent;--colors-button-outlined-error-border-color: var(--colors-beta-500);--colors-button-outlined-error-focused-text-color: #ffffff;--colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);--colors-button-outlined-error-focused-border-color: var(--colors-gama-400);--colors-button-outlined-error-active-text-color: var(--colors-beta-700);--colors-button-outlined-error-active-bg-color: var(--colors-beta-100);--colors-button-outlined-error-active-border-color: var(--colors-beta-700);--colors-button-outlined-error-hover-text-color: var(--colors-beta-600);--colors-button-outlined-error-hover-bg-color: var(--colors-beta-100);--colors-button-outlined-error-hover-border-color: var(--colors-beta-600);--colors-button-outlined-error-disabled-text-color: var(--colors-delta-200);--colors-button-outlined-error-disabled-bg-color: transparent;--colors-button-outlined-error-disabled-border-color: var(--colors-delta-200);--colors-button-text-common-text-color: var(--colors-gama-500);--colors-button-text-common-bg-color: transparent;--colors-button-text-common-border-color: transparent;--colors-button-text-common-focused-text-color: var(--colors-delta-800);--colors-button-text-common-focused-bg-color: var(--colors-gama-50);--colors-button-text-common-focused-border-color: var(--colors-gama-400);--colors-button-text-common-active-text-color: var(--colors-delta-800);--colors-button-text-common-active-bg-color: var(--colors-gama-100);--colors-button-text-common-active-border-color: var(--colors-gama-100);--colors-button-text-common-hover-text-color: var(--colors-delta-800);--colors-button-text-common-hover-bg-color: var(--colors-gama-50);--colors-button-text-common-hover-border-color: var(--colors-gama-50);--colors-button-text-common-disabled-text-color: var(--colors-delta-200);--colors-button-text-common-disabled-bg-color: transparent;--colors-button-text-common-disabled-border-color: transparent;--colors-button-text-error-text-color: var(--colors-beta-500);--colors-button-text-error-bg-color: transparent;--colors-button-text-error-border-color: transparent;--colors-button-text-error-focused-text-color: var(--colors-beta-600);--colors-button-text-error-focused-bg-color: var(--colors-beta-100);--colors-button-text-error-focused-border-color: var(--colors-gama-400);--colors-button-text-error-active-text-color: var(--colors-beta-600);--colors-button-text-error-active-bg-color: var(--colors-beta-100);--colors-button-text-error-active-border-color: var(--colors-beta-100);--colors-button-text-error-hover-text-color: var(--colors-beta-600);--colors-button-text-error-hover-bg-color: var(--colors-beta-100);--colors-button-text-error-hover-border-color: var(--colors-beta-100);--colors-button-text-error-disabled-text-color: var(--colors-delta-200);--colors-button-text-error-disabled-bg-color: transparent;--colors-button-text-error-disabled-border-color: transparent;--colors-button-textGray-common-text-color: var(--colors-delta-700);--colors-button-textGray-common-bg-color: transparent;--colors-button-textGray-common-border-color: transparent;--colors-button-textGray-common-focused-text-color: var(--colors-delta-800);--colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);--colors-button-textGray-common-focused-border-color: var(--colors-gama-400);--colors-button-textGray-common-active-text-color: var(--colors-delta-800);--colors-button-textGray-common-active-bg-color: var(--colors-gama-100);--colors-button-textGray-common-active-border-color: var(--colors-gama-100);--colors-button-textGray-common-hover-text-color: var(--colors-delta-800);--colors-button-textGray-common-hover-bg-color: var(--colors-gama-50);--colors-button-textGray-common-hover-border-color: var(--colors-gama-50);--colors-button-textGray-common-disabled-text-color: var(--colors-delta-200);--colors-button-textGray-common-disabled-bg-color: transparent;--colors-button-textGray-common-disabled-border-color: transparent;--colors-button-textWhite-common-text-color: white;--colors-button-textWhite-common-bg-color: transparent;--colors-button-textWhite-common-border-color: transparent;--colors-button-textWhite-common-focused-text-color: white;--colors-button-textWhite-common-focused-bg-color: transparent;--colors-button-textWhite-common-focused-border-color: transparent;--colors-button-textWhite-common-active-text-color: white;--colors-button-textWhite-common-active-bg-color: transparent;--colors-button-textWhite-common-active-border-color: transparent;--colors-button-textWhite-common-hover-text-color: white;--colors-button-textWhite-common-hover-bg-color: transparent;--colors-button-textWhite-common-hover-border-color: transparent;--colors-button-textWhite-common-disabled-text-color: white;--colors-button-textWhite-common-disabled-bg-color: transparent;--colors-button-textWhite-common-disabled-border-color: transparent;--colors-colors-btn-bg-mini-action: var(--colors-zinc-100);--colors-colors-btn-bg-mini-action-hover: var(--colors-gama-700);--colors-link-text-hover: var(--colors-red-700);--colors-link-text-standart: var(--colors-gray-500);--colors-link-text-active: var(--colors-red-700);--colors-link-text-disabled: var(--colors-gray-200);--colors-app-directory-button-select-recipient-bg: var(--colors-slate-500);--colors-btn-task-status-bg: var(--colors-green-100);--colors-chat-ticket-message-bg: var(--colors-alpha-500);--colors-colors-topbar-text: #ffffff;--colors-menu-text-active: var(--colors-beta-700);--colors-badge-background: var(--colors-beta-700);--colors-badge-text: #ffffff}[data-theme=greenish]{--colors-beta-100: var(--colors-red-100);--colors-beta-500: var(--colors-red-500);--colors-beta-600: var(--colors-red-600);--colors-beta-700: var(--colors-red-700);--colors-gama-25: var(--colors-jade-25);--colors-gama-50: var(--colors-jade-50);--colors-gama-100: var(--colors-jade-100);--colors-gama-200: var(--colors-jade-200);--colors-gama-300: var(--colors-jade-300);--colors-gama-400: var(--colors-jade-400);--colors-gama-500: var(--colors-jade-500);--colors-gama-600: var(--colors-jade-600);--colors-gama-700: var(--colors-jade-700);--colors-gama-800: var(--colors-jade-800);--colors-delta-10: var(--colors-gray-10);--colors-delta-50: var(--colors-gray-50);--colors-delta-100: var(--colors-gray-100);--colors-delta-200: var(--colors-gray-200);--colors-delta-300: var(--colors-gray-300);--colors-delta-400: var(--colors-gray-400);--colors-delta-500: var(--colors-gray-500);--colors-delta-600: var(--colors-gray-600);--colors-delta-700: var(--colors-gray-700);--colors-delta-800: var(--colors-gray-800);--colors-delta-900: var(--colors-gray-900);--colors-delta-9000: var(--colors-gray-9000);--colors-delta-10000: var(--colors-gray-10000);--colors-theta-100: var(--colors-jade-100);--colors-theta-200: var(--colors-jade-200);--colors-theta-300: var(--colors-jade-300);--colors-theta-400: var(--colors-jade-400);--colors-theta-500: var(--colors-jade-500);--colors-theta-600: var(--colors-jade-600);--colors-theta-700: var(--colors-jade-700);--colors-theta-800: var(--colors-jade-800);--colors-theta-hover: var(--colors-jade-500);--colors-sigma-700: var(--colors-jade-600);--colors-link-text-hover: #ffffff;--colors-link-text-standart: #ffffff;--colors-link-text-active: #ffffff;--colors-link-text-disabled: var(--colors-gray-200);--colors-button-contained-common-text-color: #ffffff;--colors-button-contained-common-bg-color: var(--colors-gama-500);--colors-button-contained-common-border-color: var(--colors-gama-500);--colors-button-contained-common-focused-text-color: #ffffff;--colors-button-contained-common-focused-bg-color: var(--colors-gama-500);--colors-button-contained-common-focused-border-color: var(--colors-gama-400);--colors-button-contained-common-active-text-color: #ffffff;--colors-button-contained-common-active-bg-color: var(--colors-gama-700);--colors-button-contained-common-active-border-color: var(--colors-gama-700);--colors-button-contained-common-hover-text-color: #ffffff;--colors-button-contained-common-hover-bg-color: var(--colors-gama-600);--colors-button-contained-common-hover-border-color: var(--colors-gama-600);--colors-button-contained-common-disabled-text-color: #ffffff;--colors-button-contained-common-disabled-bg-color: var(--colors-delta-300);--colors-button-contained-common-disabled-border-color: var(--colors-delta-300);--colors-button-contained-error-text-color: #ffffff;--colors-button-contained-error-bg-color: var(--colors-beta-500);--colors-button-contained-error-border-color: var(--colors-beta-500);--colors-button-contained-error-focused-text-color: #ffffff;--colors-button-contained-error-focused-bg-color: var(--colors-beta-500);--colors-button-contained-error-focused-border-color: var(--colors-beta-400);--colors-button-contained-error-active-text-color: #ffffff;--colors-button-contained-error-active-bg-color: var(--colors-beta-700);--colors-button-contained-error-active-border-color: var(--colors-beta-700);--colors-button-contained-error-hover-text-color: #ffffff;--colors-button-contained-error-hover-bg-color: var(--colors-beta-600);--colors-button-contained-error-hover-border-color: var(--colors-beta-600);--colors-button-contained-error-disabled-text-color: #ffffff;--colors-button-contained-error-disabled-bg-color: var(--colors-delta-300);--colors-button-contained-error-disabled-border-color: transparent;--colors-button-outlined-common-text-color: var(--colors-delta-700);--colors-button-outlined-common-bg-color: transparent;--colors-button-outlined-common-border-color: var(--colors-delta-500);--colors-button-outlined-common-focused-text-color: var(--colors-delta-800);--colors-button-outlined-common-focused-bg-color: var(--colors-gama-50);--colors-button-outlined-common-focused-border-color: var(--colors-gama-400);--colors-button-outlined-common-active-text-color: var(--colors-delta-800);--colors-button-outlined-common-active-bg-color: var(--colors-gama-100);--colors-button-outlined-common-active-border-color: var(--colors-delta-700);--colors-button-outlined-common-hover-text-color: var(--colors-delta-800);--colors-button-outlined-common-hover-bg-color: var(--colors-gama-50);--colors-button-outlined-common-hover-border-color: var(--colors-delta-700);--colors-button-outlined-common-disabled-text-color: var(--colors-delta-300);--colors-button-outlined-common-disabled-bg-color: transparent;--colors-button-outlined-common-disabled-border-color: var(--colors-delta-300);--colors-button-outlined-error-text-color: var(--colors-beta-500);--colors-button-outlined-error-bg-color: transparent;--colors-button-outlined-error-border-color: var(--colors-beta-500);--colors-button-outlined-error-focused-text-color: #ffffff;--colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);--colors-button-outlined-error-focused-border-color: var(--colors-beta-400);--colors-button-outlined-error-active-text-color: var(--colors-beta-700);--colors-button-outlined-error-active-bg-color: var(--colors-beta-100);--colors-button-outlined-error-active-border-color: var(--colors-beta-700);--colors-button-outlined-error-hover-text-color: var(--colors-beta-600);--colors-button-outlined-error-hover-bg-color: var(--colors-beta-100);--colors-button-outlined-error-hover-border-color: var(--colors-beta-600);--colors-button-outlined-error-disabled-text-color: var(--colors-delta-300);--colors-button-outlined-error-disabled-bg-color: transparent;--colors-button-outlined-error-disabled-border-color: var(--colors-delta-300);--colors-button-text-common-text-color: var(--colors-gama-500);--colors-button-text-common-bg-color: transparent;--colors-button-text-common-border-color: transparent;--colors-button-text-common-focused-text-color: var(--colors-delta-800);--colors-button-text-common-focused-bg-color: var(--colors-gama-50);--colors-button-text-common-focused-border-color: var(--colors-gama-400);--colors-button-text-common-active-text-color: var(--colors-delta-800);--colors-button-text-common-active-bg-color: var(--colors-gama-100);--colors-button-text-common-active-border-color: var(--colors-gama-100);--colors-button-text-common-hover-text-color: var(--colors-delta-800);--colors-button-text-common-hover-bg-color: var(--colors-gama-50);--colors-button-text-common-hover-border-color: var(--colors-gama-50);--colors-button-text-common-disabled-text-color: var(--colors-delta-300);--colors-button-text-common-disabled-bg-color: transparent;--colors-button-text-common-disabled-border-color: transparent;--colors-button-text-error-text-color: var(--colors-beta-500);--colors-button-text-error-bg-color: transparent;--colors-button-text-error-border-color: transparent;--colors-button-text-error-focused-text-color: var(--colors-beta-600);--colors-button-text-error-focused-bg-color: var(--colors-beta-100);--colors-button-text-error-focused-border-color: var(--colors-beta-400);--colors-button-text-error-active-text-color: var(--colors-beta-600);--colors-button-text-error-active-bg-color: var(--colors-beta-100);--colors-button-text-error-active-border-color: var(--colors-beta-100);--colors-button-text-error-hover-text-color: var(--colors-beta-600);--colors-button-text-error-hover-bg-color: var(--colors-beta-100);--colors-button-text-error-hover-border-color: var(--colors-beta-100);--colors-button-text-error-disabled-text-color: var(--colors-delta-300);--colors-button-text-error-disabled-bg-color: transparent;--colors-button-text-error-disabled-border-color: transparent;--colors-button-textGray-common-text-color: var(--colors-delta-700);--colors-button-textGray-common-bg-color: transparent;--colors-button-textGray-common-border-color: transparent;--colors-button-textGray-common-focused-text-color: var(--colors-delta-800);--colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);--colors-button-textGray-common-focused-border-color: var(--colors-gama-400);--colors-button-textGray-common-active-text-color: var(--colors-delta-800);--colors-button-textGray-common-active-bg-color: var(--colors-gama-100);--colors-button-textGray-common-active-border-color: var(--colors-gama-100);--colors-button-textGray-common-hover-text-color: var(--colors-delta-800);--colors-button-textGray-common-hover-bg-color: var(--colors-gama-50);--colors-button-textGray-common-hover-border-color: var(--colors-gama-50);--colors-button-textGray-common-disabled-text-color: var(--colors-delta-300);--colors-button-textGray-common-disabled-bg-color: transparent;--colors-button-textGray-common-disabled-border-color: transparent;--colors-button-textWhite-common-text-color: white;--colors-button-textWhite-common-bg-color: transparent;--colors-button-textWhite-common-border-color: transparent;--colors-button-textWhite-common-focused-text-color: white;--colors-button-textWhite-common-focused-bg-color: transparent;--colors-button-textWhite-common-focused-border-color: transparent;--colors-button-textWhite-common-active-text-color: white;--colors-button-textWhite-common-active-bg-color: transparent;--colors-button-textWhite-common-active-border-color: transparent;--colors-button-textWhite-common-hover-text-color: white;--colors-button-textWhite-common-hover-bg-color: transparent;--colors-button-textWhite-common-hover-border-color: transparent;--colors-button-textWhite-common-disabled-text-color: white;--colors-button-textWhite-common-disabled-bg-color: transparent;--colors-button-textWhite-common-disabled-border-color: transparent;--colors-menu-text-active: var(--colors-jade-700);--colors-badge-background: var(--colors-lime-500);--colors-badge-text: var(--colors-jade-600)}.pointer-events-none{pointer-events:none!important}.visible{visibility:visible!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.bottom-3{bottom:.75rem!important}.bottom-4{bottom:1rem!important}.left-0{left:0px!important}.right-0{right:0px!important}.right-1{right:.25rem!important}.right-2{right:.5rem!important}.right-3{right:.75rem!important}.right-4{right:1rem!important}.right-8{right:2rem!important}.top-0{top:0px!important}.top-1{top:.25rem!important}.top-2{top:.5rem!important}.z-0{z-index:0!important}.z-40{z-index:40!important}.z-\\[51\\]{z-index:51!important}.m-0{margin:0!important}.m-auto{margin:auto!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.ml-0{margin-left:0!important}.ml-1{margin-left:.25rem!important}.mr-1{margin-right:.25rem!important}.mt-1{margin-top:.25rem!important}.block{display:block!important}.inline{display:inline!important}.flex{display:flex!important}.\\!table,.table{display:table!important}.hidden{display:none!important}.\\!h-0{height:0px!important}.h-12{height:3rem!important}.h-2{height:.5rem!important}.h-4{height:1rem!important}.h-\\[15px\\]{height:15px!important}.h-\\[30px\\]{height:30px!important}.h-\\[33px\\]{height:33px!important}.h-\\[400px\\]{height:400px!important}.h-\\[calc\\(100vh-130px\\)\\]{height:calc(100vh - 130px)!important}.h-\\[calc\\(100vh-170px\\)\\]{height:calc(100vh - 170px)!important}.h-fit{height:-moz-fit-content!important;height:fit-content!important}.h-full{height:100%!important}.max-h-\\[400px\\]{max-height:400px!important}.max-h-\\[40px\\]{max-height:40px!important}.max-h-\\[800px\\]{max-height:800px!important}.min-h-\\[20px\\]{min-height:20px!important}.\\!w-0,.w-0{width:0px!important}.w-2{width:.5rem!important}.w-4{width:1rem!important}.w-52{width:13rem!important}.w-\\[150px\\]{width:150px!important}.w-\\[25px\\]{width:25px!important}.w-\\[33px\\]{width:33px!important}.w-\\[387px\\]{width:387px!important}.w-\\[42px\\]{width:42px!important}.w-\\[600px\\]{width:600px!important}.w-\\[700px\\]{width:700px!important}.w-fit{width:-moz-fit-content!important;width:fit-content!important}.w-full{width:100%!important}.min-w-\\[120px\\]{min-width:120px!important}.min-w-\\[200px\\]{min-width:200px!important}.min-w-\\[20px\\]{min-width:20px!important}.max-w-\\[1200px\\]{max-width:1200px!important}.max-w-\\[400px\\]{max-width:400px!important}.max-w-full{max-width:100%!important}.max-w-lg{max-width:32rem!important}.max-w-sm{max-width:24rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.gap-10{gap:2.5rem!important}.gap-12{gap:3rem!important}.gap-2{gap:.5rem!important}.gap-2\\.5{gap:.625rem!important}.gap-4{gap:1rem!important}.gap-5{gap:1.25rem!important}.gap-8{gap:2rem!important}.gap-x-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.gap-x-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}.gap-y-2{row-gap:.5rem!important}.gap-y-3{row-gap:.75rem!important}.self-start{align-self:flex-start!important}.overflow-y-scroll{overflow-y:scroll!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-b-\\[1px\\]{border-bottom-width:1px!important}.border-t-\\[1px\\]{border-top-width:1px!important}.border-none{border-style:none!important}.border-delta-200{border-color:var(--colors-delta-200)!important}.border-delta-300{border-color:var(--colors-delta-300)!important}.bg-delta-200{background-color:var(--colors-delta-200)!important}.bg-gama-400{background-color:var(--colors-gama-400)!important}.bg-gama-50{background-color:var(--colors-gama-50)!important}.bg-gama-600{background-color:var(--colors-gama-600)!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(209 213 219 / var(--tw-bg-opacity))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity))!important}.bg-transparent{background-color:transparent!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.p-0{padding:0!important}.p-2{padding:.5rem!important}.p-3{padding:.75rem!important}.p-4{padding:1rem!important}.p-\\[2px\\]{padding:2px!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.pb-5{padding-bottom:1.25rem!important}.pb-\\[32px\\]{padding-bottom:32px!important}.pl-4{padding-left:1rem!important}.pr-2{padding-right:.5rem!important}.pr-3{padding-right:.75rem!important}.pt-3{padding-top:.75rem!important}.align-middle{vertical-align:middle!important}.font-roboto,.font-sans{font-family:Roboto!important}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-\\[10px\\]{font-size:10px!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-normal{font-weight:400!important}.font-semibold{font-weight:600!important}.capitalize{text-transform:capitalize!important}.italic{font-style:italic!important}.leading-4{line-height:1rem!important}.\\!text-delta-800{color:var(--colors-delta-800)!important}.text-amber-600{--tw-text-opacity: 1 !important;color:rgb(217 119 6 / var(--tw-text-opacity))!important}.text-amber-700{--tw-text-opacity: 1 !important;color:rgb(180 83 9 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity))!important}.text-custom-grey-06{--tw-text-opacity: 1 !important;color:hsl(var(--color-cardea--grey-06) / var(--tw-text-opacity))!important}.text-delta-500{color:var(--colors-delta-500)!important}.text-delta-600{color:var(--colors-delta-600)!important}.text-delta-700{color:var(--colors-delta-700)!important}.text-delta-800{color:var(--colors-delta-800)!important}.text-gama-500{color:var(--colors-gama-500)!important}.text-gama-700{color:var(--colors-gama-700)!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-\\[0_4px_40px_0px_rgba\\(34\\,33\\,51\\,0\\.4\\)\\]{--tw-shadow: 0 4px 40px 0px rgba(34,33,51,.4) !important;--tw-shadow-colored: 0 4px 40px 0px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-\\[0px_2px_4px_0px_rgba\\(34\\,_33\\,_51\\,_0\\.15\\)\\]{--tw-shadow: 0px 2px 4px 0px rgba(34, 33, 51, .15) !important;--tw-shadow-colored: 0px 2px 4px 0px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.border-solid{border-style:solid!important}.before\\:shadow-none:before{content:var(--tw-content)!important;--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.hover\\:bg-gama-100:hover{background-color:var(--colors-gama-100)!important}.hover\\:text-delta-600:hover{color:var(--colors-delta-600)!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}._all-icons-container_z9w7e_1{display:flex;height:100%;width:100%;flex-wrap:wrap;align-items:center;gap:1.25rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:1.25rem}@keyframes _opacity-appear_z9w7e_1{0%{opacity:0}to{opacity:1}}._icon_z9w7e_5{animation:_opacity-appear_z9w7e_1 .3s linear;cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}._asma-core-ui-button_1r2np_1{border-color:transparent;border-width:1px;border-style:solid}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-contained-common-text-color)!important;background-color:var(--colors-button-contained-common-bg-color)!important;border-color:var(--colors-button-contained-common-border-color)!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27:active{color:var(--colors-button-contained-common-active-text-color)!important;background-color:var(--colors-button-contained-common-active-bg-color)!important;border-color:var(--colors-button-contained-common-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27:hover{color:var(--colors-button-contained-common-hover-text-color)!important;background-color:var(--colors-button-contained-common-hover-bg-color)!important;border-color:var(--colors-button-contained-common-hover-border-color)!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27:focus{outline-offset:-2px!important;color:var(--colors-button-contained-common-focused-text-color)!important;background-color:var(--colors-button-contained-common-focused-bg-color)!important;outline:2px solid var(--colors-button-contained-common-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._contained_1r2np_27._common_1r2np_27:disabled{cursor:default;color:var(--colors-button-contained-common-disabled-text-color)!important;background-color:var(--colors-button-contained-common-disabled-bg-color)!important;border-color:var(--colors-button-contained-common-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-contained-error-text-color)!important;background-color:var(--colors-button-contained-error-bg-color)!important;border-color:var(--colors-button-contained-error-border-color)!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84:active{color:var(--colors-button-contained-error-active-text-color)!important;background-color:var(--colors-button-contained-error-active-bg-color)!important;border-color:var(--colors-button-contained-error-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84:hover{color:var(--colors-button-contained-error-hover-text-color)!important;background-color:var(--colors-button-contained-error-hover-bg-color)!important;border-color:var(--colors-button-contained-error-hover-border-color)!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84:focus{outline-offset:-2px!important;color:var(--colors-button-contained-error-focused-text-color)!important;background-color:var(--colors-button-contained-error-focused-bg-color)!important;outline:2px solid var(--colors-button-contained-error-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._contained_1r2np_27._error_1r2np_84:disabled{cursor:default;color:var(--colors-button-contained-error-disabled-text-color)!important;background-color:var(--colors-button-contained-error-disabled-bg-color)!important;border-color:var(--colors-button-contained-error-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-outlined-common-text-color)!important;background-color:var(--colors-button-outlined-common-bg-color)!important;border-color:var(--colors-button-outlined-common-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27:active{color:var(--colors-button-outlined-common-active-text-color)!important;background-color:var(--colors-button-outlined-common-active-bg-color)!important;border-color:var(--colors-button-outlined-common-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27:hover{color:var(--colors-button-outlined-common-hover-text-color)!important;background-color:var(--colors-button-outlined-common-hover-bg-color)!important;border-color:var(--colors-button-outlined-common-hover-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27:focus{outline-offset:-2px!important;color:var(--colors-button-outlined-common-focused-text-color)!important;background-color:var(--colors-button-outlined-common-focused-bg-color)!important;outline:2px solid var(--colors-button-outlined-common-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._common_1r2np_27:disabled{cursor:default;color:var(--colors-button-outlined-common-disabled-text-color)!important;background-color:var(--colors-button-outlined-common-disabled-bg-color)!important;border-color:var(--colors-button-outlined-common-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-outlined-error-text-color)!important;background-color:var(--colors-button-outlined-error-bg-color)!important;border-color:var(--colors-button-outlined-error-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84:active{color:var(--colors-button-outlined-error-active-text-color)!important;background-color:var(--colors-button-outlined-error-active-bg-color)!important;border-color:var(--colors-button-outlined-error-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84:hover{color:var(--colors-button-outlined-error-hover-text-color)!important;background-color:var(--colors-button-outlined-error-hover-bg-color)!important;border-color:var(--colors-button-outlined-error-hover-border-color)!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84:focus{outline-offset:-2px!important;color:var(--colors-button-outlined-error-focused-text-color)!important;background-color:var(--colors-button-outlined-error-focused-bg-color)!important;outline:2px solid var(--colors-button-outlined-error-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._outlined_1r2np_141._error_1r2np_84:disabled{cursor:default;color:var(--colors-button-outlined-error-disabled-text-color)!important;background-color:var(--colors-button-outlined-error-disabled-bg-color)!important;border-color:var(--colors-button-outlined-error-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-text-common-text-color)!important;background-color:var(--colors-button-text-common-bg-color)!important;border-color:var(--colors-button-text-common-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27:active{color:var(--colors-button-text-common-active-text-color)!important;background-color:var(--colors-button-text-common-active-bg-color)!important;border-color:var(--colors-button-text-common-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27:hover{color:var(--colors-button-text-common-hover-text-color)!important;background-color:var(--colors-button-text-common-hover-bg-color)!important;border-color:var(--colors-button-text-common-hover-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27:focus{outline-offset:-2px!important;color:var(--colors-button-text-common-focused-text-color)!important;background-color:var(--colors-button-text-common-focused-bg-color)!important;outline:2px solid var(--colors-button-text-common-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._text_1r2np_255._common_1r2np_27:disabled{cursor:default;color:var(--colors-button-text-common-disabled-text-color)!important;background-color:var(--colors-button-text-common-disabled-bg-color)!important;border-color:var(--colors-button-text-common-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-text-error-text-color)!important;background-color:var(--colors-button-text-error-bg-color)!important;border-color:var(--colors-button-text-error-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84:active{color:var(--colors-button-text-error-active-text-color)!important;background-color:var(--colors-button-text-error-active-bg-color)!important;border-color:var(--colors-button-text-error-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84:hover{color:var(--colors-button-text-error-hover-text-color)!important;background-color:var(--colors-button-text-error-hover-bg-color)!important;border-color:var(--colors-button-text-error-hover-border-color)!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84:focus{outline-offset:-2px!important;color:var(--colors-button-text-error-focused-text-color)!important;background-color:var(--colors-button-text-error-focused-bg-color)!important;outline:2px solid var(--colors-button-text-error-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._text_1r2np_255._error_1r2np_84:disabled{cursor:default;color:var(--colors-button-text-error-disabled-text-color)!important;background-color:var(--colors-button-text-error-disabled-bg-color)!important;border-color:var(--colors-button-text-error-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-textGray-common-text-color)!important;background-color:var(--colors-button-textGray-common-bg-color)!important;border-color:var(--colors-button-textGray-common-border-color)!important}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27:active{color:var(--colors-button-textGray-common-active-text-color)!important;background-color:var(--colors-button-textGray-common-active-bg-color)!important;border-color:var(--colors-button-textGray-common-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27:hover{color:var(--colors-button-textGray-common-hover-text-color)!important;background-color:var(--colors-button-textGray-common-hover-bg-color)!important;border-color:var(--colors-button-textGray-common-hover-border-color)!important}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27:focus{outline-offset:-2px!important;color:var(--colors-button-textGray-common-focused-text-color)!important;background-color:var(--colors-button-textGray-common-focused-bg-color)!important;outline:2px solid var(--colors-button-textGray-common-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._textGray_1r2np_369._common_1r2np_27:disabled{cursor:default;color:var(--colors-button-textGray-common-disabled-text-color)!important;background-color:var(--colors-button-textGray-common-disabled-bg-color)!important;border-color:var(--colors-button-textGray-common-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27{cursor:pointer;border-radius:4px;border-width:1px;border-style:solid;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .3s ease-in-out;color:var(--colors-button-textWhite-common-text-color)!important;background-color:var(--colors-button-textWhite-common-bg-color)!important;border-color:var(--colors-button-textWhite-common-border-color)!important}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27:active{color:var(--colors-button-textWhite-common-active-text-color)!important;background-color:var(--colors-button-textWhite-common-active-bg-color)!important;border-color:var(--colors-button-textWhite-common-active-border-color)!important;outline:none!important}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27:hover{color:var(--colors-button-textWhite-common-hover-text-color)!important;background-color:var(--colors-button-textWhite-common-hover-bg-color)!important;border-color:var(--colors-button-textWhite-common-hover-border-color)!important}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27:focus{outline-offset:-2px!important;color:var(--colors-button-textWhite-common-focused-text-color)!important;background-color:var(--colors-button-textWhite-common-focused-bg-color)!important;outline:2px solid var(--colors-button-textWhite-common-focused-border-color)!important;transition:none!important}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27:focus._asma-core-ui-button_1r2np_1._contained_1r2np_27{box-shadow:inset 0 0 0 2px #fff}._asma-core-ui-button_1r2np_1._textWhite_1r2np_426._common_1r2np_27:disabled{cursor:default;color:var(--colors-button-textWhite-common-disabled-text-color)!important;background-color:var(--colors-button-textWhite-common-disabled-bg-color)!important;border-color:var(--colors-button-textWhite-common-disabled-border-color)!important}._asma-core-ui-button_1r2np_1._medium_1r2np_69{height:38px;padding-left:4px;padding-right:4px}._asma-core-ui-button_1r2np_1._small_1r2np_74{height:32px;padding-left:4px;padding-right:4px}._asma-core-ui-button_1r2np_1._large_1r2np_79{height:40px;padding-left:8px;padding-right:8px}._styled-dialog-root_wyr4j_1{display:flex;align-items:top}._styled-top-header_wyr4j_6{display:flex;width:100%;padding:16px 16px 0;justify-content:space-between}._styled-dialog-close_wyr4j_13{display:flex;justify-content:flex-end;flex-grow:1}._styled-dialog-info_wyr4j_19{display:flex;flex-direction:column;justify-content:flex-start;gap:2px}._styled-dialog-label_wyr4j_26{display:flex;align-items:center;height:32px;font-weight:400;font-size:14px;line-height:20px;color:var(--colors-grey-700)}._styled-dialog-title_wyr4j_36{display:flex;font-weight:600;font-size:24px;line-height:32px;color:var(--colors-grey-800)}._styled-dialog-actions-root_1mac5_1{padding:0;margin:0;justify-content:center}._styled-dialog-actions_1mac5_1{display:flex;width:100%;justify-content:center;justify-content:flex-end;padding:16px;gap:16px}._styled-dialog-content_d2vki_1{padding:16px;margin-left:0;margin-right:0;margin-top:0;width:100%}._styled-dialog-title-root_mcspk_1{padding:16px;font-size:20px;font-weight:600;margin-right:12px;margin-left:12px;line-height:20px}._styled-alert-title_1yaww_1{margin-bottom:2px;font-weight:600;font-size:14px;line-height:20px}._textarea_1p8hl_1._active_1p8hl_1{width:400px!important;resize:none!important;border-radius:.25rem!important;border-style:none!important;padding:.75rem!important;font-family:Roboto!important;font-size:.875rem!important;line-height:1.25rem!important;font-weight:400!important;line-height:20px!important;outline-style:solid!important;transition-duration:75ms!important;color:var(--colors-input-active-text-color)!important;background-color:var(--colors-input-active-bg-color)!important;outline-color:var(--colors-input-active-outline-color)!important;outline-width:var(--input-active-outline-width)!important;cursor:var(--input-active-cursor)!important;outline-offset:-1px!important}._textarea_1p8hl_1._active_1p8hl_1::-moz-placeholder{color:var(--colors-input-active-placeholder-color)!important}._textarea_1p8hl_1._active_1p8hl_1::placeholder{color:var(--colors-input-active-placeholder-color)!important}._textarea_1p8hl_1._active_1p8hl_1:hover{color:var(--colors-input-active-hover-text-color)!important;background-color:var(--colors-input-active-hover-bg-color)!important;outline-color:var(--colors-input-active-hover-outline-color)!important;outline-width:var(--input-active-hover-outline-width)!important}._textarea_1p8hl_1._active_1p8hl_1:active{color:var(--colors-input-active-active-text-color)!important;background-color:var(--colors-input-active-active-bg-color)!important;outline-color:var(--colors-input-active-active-outline-color)!important;outline-width:var(--input-active-active-outline-width)!important;cursor:var(--input-active-active-cursor)!important}._textarea_1p8hl_1._active_1p8hl_1:focus{color:var(--colors-input-active-focus-text-color)!important;background-color:var(--colors-input-active-focus-bg-color)!important;outline-color:var(--colors-input-active-focus-outline-color)!important;outline-width:var(--input-active-focus-outline-width)!important;cursor:var(--input-active-focus-cursor)!important}._textarea_1p8hl_1._active_1p8hl_1:disabled{color:var(--colors-input-active-disabled-text-color)!important;background-color:var(--colors-input-active-disabled-bg-color)!important;outline-color:var(--colors-input-active-disabled-outline-color)!important;outline-width:var(--input-active-disabled-outline-width)!important;cursor:var(--input-active-disabled-cursor)!important}._textarea_1p8hl_1._error_1p8hl_40{width:400px!important;resize:none!important;border-radius:.25rem!important;border-style:none!important;padding:.75rem!important;font-family:Roboto!important;font-size:.875rem!important;line-height:1.25rem!important;font-weight:400!important;line-height:20px!important;outline-style:solid!important;transition-duration:75ms!important;color:var(--colors-input-error-text-color)!important;background-color:var(--colors-input-error-bg-color)!important;outline-color:var(--colors-input-error-outline-color)!important;outline-width:var(--input-error-outline-width)!important;cursor:var(--input-error-cursor)!important;outline-offset:-1px!important}._textarea_1p8hl_1._error_1p8hl_40::-moz-placeholder{color:var(--colors-input-error-placeholder-color)!important}._textarea_1p8hl_1._error_1p8hl_40::placeholder{color:var(--colors-input-error-placeholder-color)!important}._textarea_1p8hl_1._error_1p8hl_40:hover{color:var(--colors-input-error-hover-text-color)!important;background-color:var(--colors-input-error-hover-bg-color)!important;outline-color:var(--colors-input-error-hover-outline-color)!important;outline-width:var(--input-error-hover-outline-width)!important}._textarea_1p8hl_1._error_1p8hl_40:active{color:var(--colors-input-error-active-text-color)!important;background-color:var(--colors-input-error-active-bg-color)!important;outline-color:var(--colors-input-error-active-outline-color)!important;outline-width:var(--input-error-active-outline-width)!important;cursor:var(--input-error-active-cursor)!important}._textarea_1p8hl_1._error_1p8hl_40:focus{color:var(--colors-input-error-focus-text-color)!important;background-color:var(--colors-input-error-focus-bg-color)!important;outline-color:var(--colors-input-error-focus-outline-color)!important;outline-width:var(--input-error-focus-outline-width)!important;cursor:var(--input-error-focus-cursor)!important}._textarea_1p8hl_1._error_1p8hl_40:disabled{color:var(--colors-input-error-disabled-text-color)!important;background-color:var(--colors-input-error-disabled-bg-color)!important;outline-color:var(--colors-input-error-disabled-outline-color)!important;outline-width:var(--input-error-disabled-outline-width)!important;cursor:var(--input-error-disabled-cursor)!important}._label_1p8hl_80._active_1p8hl_1{width:-moz-fit-content;width:fit-content;font-family:Roboto;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--colors-input-label-active-text-color)}._label_1p8hl_80._error_1p8hl_40{width:-moz-fit-content;width:fit-content;font-family:Roboto;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--colors-input-label-error-text-color)}._label_1p8hl_80._disabled_1p8hl_88{width:-moz-fit-content;width:fit-content;font-family:Roboto;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--colors-input-label-disabled-text-color)}._description_1p8hl_93._active_1p8hl_1{font-family:Roboto;font-size:.75rem;line-height:1rem;color:var(--colors-input-description-active-text-color)}._description_1p8hl_93._error_1p8hl_40{font-family:Roboto;font-size:.75rem;line-height:1rem;color:var(--colors-input-description-error-text-color)}._description_1p8hl_93._disabled_1p8hl_88{font-family:Roboto;font-size:.75rem;line-height:1rem;color:var(--colors-input-description-disabled-text-color)}.core-ui-rte{border-radius:4px;border:1px solid #d3d8df}.core-ui-rte.core-ui-rte-error{border-radius:4px;border:1px solid #ff4d4f}.core-ui-rte .ql-container{max-height:400px;overflow:auto}.core-ui-rte-edit-mode .ql-container{min-height:100px}.core-ui-rte.core-ui-rte-ghost-mode{border:1px solid transparent;background-color:transparent;padding:0}.core-ui-rte.core-ui-rte-ghost-mode .ql-editor{padding:0}.core-ui-rte-helper-text{color:#626e7e;font-size:12px}.core-ui-rte-helper-text.core-ui-rte-error{color:#ff4d4f}.ql-container{box-sizing:border-box;font-family:Roboto,Arial,sans-serif;font-size:16px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:none!important;border-bottom:1px solid #d3d8df!important;border-top-right-radius:4px!important;border-top-left-radius:4px!important;box-sizing:border-box;font-family:Roboto,Arial,sans-serif;padding:8px;background:#f9fafb}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid transparent}._styledSelectAutocompleteWrapper_lfbvb_1{width:100%}._select-custom-icon_lfbvb_5{margin-top:"-0.5px !important"}._styled-label_1fp95_1{font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;text-transform:uppercase;height:16px;padding:2px 6px;border-radius:3px;background-color:var(--colors-gama-50);color:var(--colors-gama-700)}._styled-calendar-day-picker_1elmw_1{font-family:Roboto}._styled-calendar-day-picker_1elmw_1 ._months_1elmw_4{display:flex;flex-direction:column;gap:14px;margin-top:16px;margin-bottom:16px}@media (min-width: 640px){._styled-calendar-day-picker_1elmw_1 ._months_1elmw_4{flex-direction:row;margin:0 14px}}._styled-calendar-day-picker_1elmw_1 ._month_1elmw_4{display:flex;flex-direction:column;gap:16px}._styled-calendar-day-picker_1elmw_1 ._caption_1elmw_25{display:flex;position:relative;padding-top:4px;justify-content:center;align-items:center}._styled-calendar-day-picker_1elmw_1 ._caption_label_1elmw_32{font-size:16px;line-height:24px;font-weight:500;color:var(--colors-gray-700)}._styled-calendar-day-picker_1elmw_1 ._nav_1elmw_38{display:flex;gap:8px;align-items:center}._styled-calendar-day-picker_1elmw_1 ._nav_button_1elmw_43{height:28px;width:28px;display:flex;justify-content:center;align-items:center;border-radius:4px;border-width:1px;color:var(--colors-gray-700);border-color:var(--colors-gray-500)}._styled-calendar-day-picker_1elmw_1 ._nav_button_previous_1elmw_54{position:absolute;left:4px}._styled-calendar-day-picker_1elmw_1 ._nav_button_next_1elmw_58{position:absolute;right:4px}._styled-calendar-day-picker_1elmw_1 ._head_row_1elmw_62{display:flex;font-size:14px;line-height:20px;cursor:pointer}._styled-calendar-day-picker_1elmw_1 ._head_cell_1elmw_68{color:var(--colors-gray-600);width:36px;cursor:pointer;text-transform:capitalize}._styled-calendar-day-picker_1elmw_1 ._row_1elmw_74{display:flex;width:100%;margin-top:8px}._styled-calendar-day-picker_1elmw_1 ._cell_1elmw_79{font-size:14px;line-height:20px;width:36px;color:var(--colors-gray-800);position:relative}._styled-calendar-day-picker_1elmw_1 ._cell_1elmw_79._has_1elmw_86{background-color:var(--colors-gama-50)}._styled-calendar-day-picker_1elmw_1 ._cell_1elmw_79._first_1elmw_89{border-top-left-radius:6px;border-bottom-left-radius:6px}._styled-calendar-day-picker_1elmw_1 ._cell_1elmw_79._last_1elmw_93{border-top-right-radius:6px;border-bottom-right-radius:6px}._styled-calendar-day-picker_1elmw_1 ._day_1elmw_97{height:40px;width:36px;padding:0;font-weight:400px;border-radius:6px}._styled-calendar-day-picker_1elmw_1 ._day_1elmw_97:hover{background-color:var(--colors-gray-50)!important}._styled-calendar-day-picker_1elmw_1 ._day_1elmw_97._focus-visible_1elmw_107{border-color:#fff;outline-style:solid;outline-width:2px;outline-color:var(--colors-gama-500)!important;z-index:50}._styled-calendar-day-picker_1elmw_1 ._day_today_1elmw_114{color:var(--colors-gama-700)!important;font-size:16px;line-height:24px;background-color:var(--colors-gray-50)!important;font-weight:700}._styled-calendar-day-picker_1elmw_1 ._day_today_1elmw_114:hover,._styled-calendar-day-picker_1elmw_1 ._day_today_1elmw_114._day_selected_1elmw_124{background-color:var(--colors-gama-50)!important}._styled-calendar-day-picker_1elmw_1 ._day_today_1elmw_114._day_selected_1elmw_124._rdp-day_range_end_1elmw_127{background-color:var(--colors-gama-500)!important;color:#fff!important}._styled-calendar-day-picker_1elmw_1 ._day_selected_1elmw_124{background-color:var(--colors-gama-500);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border-radius:6px!important}._styled-calendar-day-picker_1elmw_1 ._day_selected_1elmw_124:hover,._styled-calendar-day-picker_1elmw_1 ._day_selected_1elmw_124._day_selected_1elmw_124._rdp-day_range_end_1elmw_127._day_outside_1elmw_139{background-color:var(--colors-gama-500)!important;color:#fff!important}._styled-calendar-day-picker_1elmw_1 ._day_selected_1elmw_124._day_range_middle_1elmw_143{background-color:var(--colors-gama-50);color:var(--colors-gray-800)}._styled-calendar-day-picker_1elmw_1 ._day_outside_1elmw_139,._styled-calendar-day-picker_1elmw_1 ._day_disabled_1elmw_150{color:var(--colors-gray-400)}._styled-calendar-day-picker_1elmw_1 ._day_hidden_1elmw_153{visibility:hidden}._styled-calendar-day-picker_1elmw_1 ._caption_end_1elmw_156 tfoot{display:none}._styled-calendar-day-picker_1elmw_1 ._caption_end_1elmw_156 ._rdp-custom-caption_1elmw_159{opacity:0;pointer-events:none}._styled-calendar-picker-select-period-menu_1p95f_1 ul{overflow:auto;scrollbar-width:thin;max-height:250px}.rdp{--rdp-cell-size: 40px;--rdp-caption-font-size: 18px;--rdp-accent-color: #0000ff;--rdp-background-color: #e7edff;--rdp-accent-color-dark: #3003e1;--rdp-background-color-dark: #180270;--rdp-outline: 2px solid var(--rdp-accent-color);--rdp-outline-selected: 3px solid var(--rdp-accent-color);margin:1em}.rdp-vhidden{box-sizing:border-box;margin:0;background:transparent;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute!important;top:0;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(1px,1px,1px,1px)!important;border:0!important}.rdp-button_reset{appearance:none;position:relative;margin:0;padding:0;cursor:default;color:inherit;background:none;font:inherit;-moz-appearance:none;-webkit-appearance:none}.rdp-button_reset:focus-visible{outline:none}.rdp-button{border:2px solid transparent}.rdp-button[disabled]:not(.rdp-day_selected){opacity:.25}.rdp-button:not([disabled]){cursor:pointer}.rdp-button:focus-visible:not([disabled]){color:inherit;background-color:var(--rdp-background-color);border:var(--rdp-outline)}.rdp-button:hover:not([disabled]):not(.rdp-day_selected){background-color:var(--rdp-background-color)}.rdp-months{display:flex}.rdp-month{margin:0 1em}.rdp-month:first-child{margin-left:0}.rdp-month:last-child{margin-right:0}.rdp-table{margin:0;max-width:calc(var(--rdp-cell-size) * 7);border-collapse:collapse}.rdp-with_weeknumber .rdp-table{max-width:calc(var(--rdp-cell-size) * 8);border-collapse:collapse}.rdp-caption{display:flex;align-items:center;justify-content:space-between;padding:0;text-align:left}.rdp-multiple_months .rdp-caption{position:relative;display:block;text-align:center}.rdp-caption_dropdowns{position:relative;display:inline-flex}.rdp-caption_label{position:relative;z-index:1;display:inline-flex;align-items:center;margin:0;padding:0 .25em;white-space:nowrap;color:currentColor;border:0;border:2px solid transparent;font-family:inherit;font-size:var(--rdp-caption-font-size);font-weight:700}.rdp-nav{white-space:nowrap}.rdp-multiple_months .rdp-caption_start .rdp-nav{position:absolute;top:50%;left:0;transform:translateY(-50%)}.rdp-multiple_months .rdp-caption_end .rdp-nav{position:absolute;top:50%;right:0;transform:translateY(-50%)}.rdp-nav_button{display:inline-flex;align-items:center;justify-content:center;width:var(--rdp-cell-size);height:var(--rdp-cell-size);padding:.25em;border-radius:100%}.rdp-dropdown_year,.rdp-dropdown_month{position:relative;display:inline-flex;align-items:center}.rdp-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:2;top:0;bottom:0;left:0;width:100%;margin:0;padding:0;cursor:inherit;opacity:0;border:none;background-color:transparent;font-family:inherit;font-size:inherit;line-height:inherit}.rdp-dropdown[disabled]{opacity:unset;color:unset}.rdp-dropdown:focus-visible:not([disabled])+.rdp-caption_label{background-color:var(--rdp-background-color);border:var(--rdp-outline);border-radius:6px}.rdp-dropdown_icon{margin:0 0 0 5px}.rdp-head{border:0}.rdp-head_row,.rdp-row{height:100%}.rdp-head_cell{vertical-align:middle;font-size:.75em;font-weight:700;text-align:center;height:100%;height:var(--rdp-cell-size);padding:0;text-transform:uppercase}.rdp-tbody{border:0}.rdp-tfoot{margin:.5em}.rdp-cell{width:var(--rdp-cell-size);height:100%;height:var(--rdp-cell-size);padding:0;text-align:center}.rdp-weeknumber{font-size:.75em}.rdp-weeknumber,.rdp-day{display:flex;overflow:hidden;align-items:center;justify-content:center;box-sizing:border-box;width:var(--rdp-cell-size);max-width:var(--rdp-cell-size);height:var(--rdp-cell-size);margin:0;border:2px solid transparent;border-radius:100%}.rdp-day_today:not(.rdp-day_outside){font-weight:700}.rdp-day_selected,.rdp-day_selected:focus-visible,.rdp-day_selected:hover{color:#fff;opacity:1;background-color:var(--rdp-accent-color)}.rdp-day_outside{opacity:.5}.rdp-day_selected:focus-visible{outline:var(--rdp-outline);outline-offset:2px;z-index:1}.rdp:not([dir="rtl"]) .rdp-day_range_start:not(.rdp-day_range_end){border-top-right-radius:0;border-bottom-right-radius:0}.rdp:not([dir="rtl"]) .rdp-day_range_end:not(.rdp-day_range_start){border-top-left-radius:0;border-bottom-left-radius:0}.rdp[dir=rtl] .rdp-day_range_start:not(.rdp-day_range_end){border-top-left-radius:0;border-bottom-left-radius:0}.rdp[dir=rtl] .rdp-day_range_end:not(.rdp-day_range_start){border-top-right-radius:0;border-bottom-right-radius:0}.rdp-day_range_end.rdp-day_range_start{border-radius:100%}.rdp-day_range_middle{border-radius:0}._styled-date-picker-input-range-compact_tw2by_1{display:inline-flex;gap:16px;align-items:center;width:-moz-fit-content;width:fit-content;cursor:pointer}._styled-date-picker-input-range-compact_tw2by_1._range-compact-disabled_tw2by_8{pointer-events:none;color:var(--colors-gray-300)}._styled-link_iqlxk_1{font-family:Roboto;font-weight:600;width:-moz-fit-content;width:fit-content;text-decoration-line:underline;border-radius:4px;padding:2px 4px;outline:2px solid transparent;outline-offset:2px;border-style:none;color:var(--colors-gama-500)}._styled-link_iqlxk_1:not(._styled-link-disabled_iqlxk_16):hover{color:var(--colors-gama-600)!important}._styled-link_iqlxk_1:not(._styled-link-disabled_iqlxk_16):active{color:var(--colors-gama-500)!important}._styled-link_iqlxk_1:not(._styled-link-disabled_iqlxk_16):focus{outline-offset:-1px!important;outline:1px solid var(--colors-warning-500)!important;color:var(--colors-gama-500)!important}._styled-link-disabled_iqlxk_16{color:var(--colors-delta-300)}._styled-link-small_iqlxk_32{font-size:14px;line-height:20px}._styled-link-large_iqlxk_37{font-size:16px;line-height:24px}._asma-core-ui-styled-table_plwn6_1 *,._asma-core-ui-styled-table_plwn6_1 *:after,._asma-core-ui-styled-table_plwn6_1 *:before{box-sizing:border-box;-webkit-box-sizing:border-box}._asma-core-ui-styled-table_plwn6_1 ._table-wrapper_plwn6_7{overflow:auto;width:100%}._asma-core-ui-styled-table_plwn6_1 ._styled-table_plwn6_11{display:table;margin:0;border-collapse:separate;border-spacing:0 .5px;max-width:inherit;width:100%}._asma-core-ui-styled-table_plwn6_1 ._styled-table_plwn6_11 ._tbody_plwn6_19{display:table-row-group;vertical-align:middle;max-width:inherit}._asma-core-ui-styled-table_plwn6_1 ._loading-icon_plwn6_24{position:absolute;top:50%;left:50%;z-index:10}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30{margin-top:1px;display:table-row;border-style:solid;border-left-width:.5px;border-right-width:.5px;border-top-width:.5px;border-bottom-width:.5px;border-left-color:transparent;border-right-color:transparent;border-top-color:var(--colors-delta-300)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:hover{background-color:var(--colors-gama-25);cursor:pointer}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:hover ._action-cell_plwn6_46{background-color:var(--colors-gama-25)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus{background-color:var(--colors-gama-50)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus ._action-cell_plwn6_46{background-color:var(--colors-gama-50)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus ._t-cell_plwn6_55{border-top:.5px solid var(--colors-gama-500);border-bottom:.5px solid var(--colors-gama-500)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus ._t-cell_plwn6_55:first-child{border-left:.5px solid var(--colors-gama-500)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus ._t-cell_plwn6_55:last-child{border-right:.5px solid var(--colors-gama-500)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:focus-visible{outline:none}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:last-child{border-bottom-color:transparent}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30:first-child{border-top-color:transparent}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30 ._t-cell_plwn6_55{overflow-wrap:break-word;vertical-align:middle;font-size:14px;line-height:20px;color:var(--colors-delta-900);display:table-cell;white-space:pre-wrap;padding:0 5px;border-top:.5px solid transparent;border-bottom:.5px solid var(--colors-delta-300)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30 ._t-cell_plwn6_55:first-child{border-left:.5px solid transparent}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30 ._t-cell_plwn6_55:last-child{border-right:.5px solid transparent}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30 ._action-cell_plwn6_46{height:100%;position:sticky;right:-1px}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30 ._action-cell_plwn6_46._selected_plwn6_100,._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30._selected_plwn6_100{background-color:var(--colors-gama-50)}._asma-core-ui-styled-table_plwn6_1 ._t-row_plwn6_30._is-loading_plwn6_106{opacity:.5}._asma-core-ui-styled-table_plwn6_1 ._action-cell-default-background_plwn6_109{background-color:#fff}._asma-core-ui-styled-table_plwn6_1 tr._no-rows-overlay_plwn6_112{height:112px}._asma-core-ui-styled-table_plwn6_1 tr._no-rows-overlay_plwn6_112 td{font-size:.875rem;line-height:1.25rem;text-align:center;vertical-align:middle}._asma-core-ui-styled-table_plwn6_1 ._hide-table-header_plwn6_121{height:0px;opacity:0}._asma-core-ui-styled-table_plwn6_1 ._show-table-header_plwn6_125{position:relative;height:30px;opacity:1}._asma-core-ui-styled-table_plwn6_1 ._sortable-column_plwn6_130{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}._asma-core-ui-styled-table_plwn6_1 ._resizer_plwn6_134{position:absolute;top:0;height:100%;right:0;width:5px;background:var(--colors-delta-300);cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}._asma-core-ui-styled-table_plwn6_1 ._resizer_plwn6_134._isResizing_plwn6_145{background:var(--colors-gama-500);opacity:1}@media (hover: hover){._asma-core-ui-styled-table_plwn6_1 ._resizer_plwn6_134{opacity:0}._asma-core-ui-styled-table_plwn6_1 *:hover>._resizer_plwn6_134{opacity:1}}._asma-core-ui-styled-table_plwn6_1 ._table-header_plwn6_157{display:table-header-group;z-index:49;background-color:#fcfcfd;cursor:default}._asma-core-ui-styled-table_plwn6_1 ._table-header_plwn6_157 ._t-cell_plwn6_55{text-transform:uppercase;background-color:transparent;font-size:10px;font-weight:600;text-align:start;color:var(--colors-delta-500);white-space:pre-wrap;padding:0 5px;border-top:.5px solid var(--colors-delta-300);border-bottom:.5px solid var(--colors-delta-300)}._asma-core-ui-styled-table_plwn6_1 ._table-header_plwn6_157 ._t-cell_plwn6_55._t-cell__actions_plwn6_178{position:sticky;right:0;background-color:#fcfcfd}._asma-core-ui-styled-table_plwn6_1 ._table-header_plwn6_157 ._sort-icon_plwn6_183{color:var(--colors-delta-800)}._asma-core-ui-styled-table_plwn6_1 ._table-footer_plwn6_186{display:flex;width:100%;gap:8px;background-color:transparent;flex-direction:row;padding-top:4px;padding-bottom:4px;align-items:center;justify-content:flex-end}._table-pagination_1oks0_1{display:flex;width:-moz-fit-content;width:fit-content;gap:8px;background-color:transparent;flex-direction:row;padding-top:4px;padding-bottom:4px;align-items:center;justify-content:flex-end}._table-pagination__pages-list_1oks0_13{overflow:auto;width:134px;max-height:200px}._table-pagination__pages-list_1oks0_13 ._table-pagination__pages-list__page_1oks0_18{height:36px;position:relative;display:flex;align-items:center;padding-left:40px;cursor:pointer}._table-pagination__pages-list_1oks0_13 ._table-pagination__pages-list__page_1oks0_18:hover{background-color:var(--colors-delta-30)}._table-pagination__pages-list_1oks0_13 ._table-pagination__pages-list__page_1oks0_18._page-selected_1oks0_29{background-color:var(--colors-gama-50)}._table-pagination__pages-list_1oks0_13 ._table-pagination__pages-list__page_1oks0_18 ._check-icon_1oks0_32{position:absolute;left:8px;top:4px;color:var(--colors-gama-500)}._styled-widget-title_1gze6_1{font-size:18px;font-style:normal;font-weight:600;line-height:20.7px;color:var(--colors-gray-800)}._styled-widget-header_1qk88_1{display:flex;position:relative;padding:16px 16px 24px;justify-content:space-between;align-items:center}._asma-core-ui-styled-widget_9kq62_1 *,._asma-core-ui-styled-widget_9kq62_1 *:after,._asma-core-ui-styled-widget_9kq62_1 *:before{box-sizing:border-box;-webkit-box-sizing:border-box}._asma-core-ui-styled-widget_9kq62_1 ._widget-wrapper_9kq62_7{background-color:#fff;display:flex;flex-direction:column;gap:16px;padding:16px;width:100%;border-radius:8px;box-shadow:0 0 4px #22213326;transition:all .3s ease-out}._asma-core-ui-styled-widget_9kq62_1 ._widget-expanded_9kq62_18{height:600px}._asma-core-ui-styled-widget_9kq62_1 ._widget-collapsed_9kq62_21{height:400px}._asma-core-ui-styled-widget_9kq62_1 ._widget-header_9kq62_24{color:var(--colors-gray-800);display:flex;gap:10px;align-items:center}._asma-core-ui-styled-widget_9kq62_1 ._widget-content_9kq62_30{height:100%;overflow-y:hidden}._asma-core-ui-styled-widget_9kq62_1 ._widget-footer_9kq62_34{display:flex;align-items:center}._asma-core-ui-styled-widget_9kq62_1 ._widget-footer-space-between_9kq62_38{justify-content:space-between}._asma-core-ui-styled-widget_9kq62_1 ._widget-footer-center_9kq62_41{justify-content:center}._asma-core-ui-styled-widget_9kq62_1 ._widget-link_9kq62_44{cursor:pointer}._styled-module-title_174mo_1{margin-bottom:20px;font-size:24px;line-height:40px;font-weight:700;color:#17232e}@media (min-width: 768px){._styled-module-title_174mo_1{margin-bottom:8px}}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import*as e from"react";import t,{useLayoutEffect as n,useRef as o,useState as r,useEffect as i,createContext as l,forwardRef as a,useContext as s,useCallback as u,Fragment as c,memo as d,useMemo as f}from"react";import{Badge as p,Chip as h,Tooltip as g,Typography as m,Dialog as v,DialogActions as y,DialogContent as b,DialogTitle as w,Alert as _,AlertTitle as x,Checkbox as k,TextField as C,Select as O,MenuItem as E,Autocomplete as N,Paper as S,Slider as j,Switch as T,Radio as M,RadioGroup as P,FormControl as A,Popover as R,Popper as I,Fade as D,ClickAwayListener as L,FormControlLabel as q,FormHelperText as F,FormLabel as z,InputLabel as V,FormGroup as B,Drawer as H,Menu as U,MenuList as W,Tab as G,Tabs as $,Accordion as K,AccordionSummary as Y,AccordionDetails as Z,Skeleton as X}from"@mui/material";import{Avatar as Q,ClickAwayListener as J,Container as ee,Fade as te,Paper as ne,Popper as oe,Skeleton as re,Stack as ie}from"@mui/material";import le from"prop-types";import{ThemeContext as ae}from"@emotion/react";import se from"react-dom";const ue=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function fe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pe(e){fe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ce(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function he(e,t){fe(2,arguments);var n=pe(e),o=de(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function ge(e,t){fe(2,arguments);var n=pe(e),o=de(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var me={};function ve(){return me}function ye(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=ve(),d=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=pe(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function be(e){return fe(1,arguments),ye(e,{weekStartsOn:1})}function we(e){fe(1,arguments);var t=function(e){fe(1,arguments);var t=pe(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=be(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=be(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),be(n)}function _e(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function xe(e){fe(1,arguments);var t=pe(e);return t.setHours(0,0,0,0),t}var ke=864e5;function Ce(e,t){fe(2,arguments);var n=xe(e),o=xe(t),r=n.getTime()-_e(n),i=o.getTime()-_e(o);return Math.round((r-i)/ke)}function Oe(e,t){return fe(2,arguments),he(e,7*de(t))}function Ee(e,t){return fe(2,arguments),ge(e,12*de(t))}function Ne(e,t){fe(2,arguments);var n=xe(e),o=xe(t);return n.getTime()===o.getTime()}function Se(e){return fe(1,arguments),e instanceof Date||"object"===ce(e)&&"[object Date]"===Object.prototype.toString.call(e)}function je(e,t){fe(2,arguments);var n=pe(e),o=pe(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var Te=6048e5;function Me(e){fe(1,arguments);var t=pe(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Pe(e){fe(1,arguments);var t=pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ae(e){fe(1,arguments);var t=pe(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Re(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=ve(),d=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=pe(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f}function Ie(e){return fe(1,arguments),Re(e,{weekStartsOn:1})}function De(e,t){return fe(2,arguments),function(e,t){fe(2,arguments);var n=pe(e).getTime(),o=de(t);return new Date(n+o)}(e,-de(t))}function Le(e){fe(1,arguments);var t=pe(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function qe(e){fe(1,arguments);var t=pe(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Le(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=Le(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function Fe(e){fe(1,arguments);var t=pe(e),n=Le(t).getTime()-function(e){fe(1,arguments);var t=qe(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Le(n)}(t).getTime();return Math.round(n/6048e5)+1}function ze(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=ve(),d=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=pe(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Ve(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=pe(e),d=c.getUTCFullYear(),f=ve(),p=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=ze(h,t),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var v=ze(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Be(e,t){fe(1,arguments);var n=pe(e),o=ze(n,t).getTime()-function(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=ve(),d=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Ve(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),ze(p,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function He(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}const Ue={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return He("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):He(n+1,2)},d:function(e,t){return He(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return He(e.getUTCHours()%12||12,t.length)},H:function(e,t){return He(e.getUTCHours(),t.length)},m:function(e,t){return He(e.getUTCMinutes(),t.length)},s:function(e,t){return He(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return He(Math.floor(o*Math.pow(10,n-3)),t.length)}};var We="midnight",Ge="noon",$e="morning",Ke="afternoon",Ye="evening",Ze="night",Xe={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Ue.y(e,t)},Y:function(e,t,n,o){var r=Ve(e,o),i=r>0?r:1-r;return"YY"===t?He(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):He(i,t.length)},R:function(e,t){return He(qe(e),t.length)},u:function(e,t){return He(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return He(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return He(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Ue.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return He(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Be(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):He(r,t.length)},I:function(e,t,n){var o=Fe(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):He(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ue.d(e,t)},D:function(e,t,n){var o=function(e){fe(1,arguments);var t=pe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):He(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return He(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return He(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return He(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Ge:0===r?We:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Ye:r>=12?Ke:r>=4?$e:Ze,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Ue.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ue.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):He(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):He(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ue.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ue.s(e,t)},S:function(e,t){return Ue.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Je(r);case"XXXX":case"XX":return et(r);default:return et(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Je(r);case"xxxx":case"xx":return et(r);default:return et(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qe(r,":");default:return"GMT"+et(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qe(r,":");default:return"GMT"+et(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return He(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return He((o._originalDate||e).getTime(),t.length)}};function Qe(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var l=t||"";return n+String(r)+l+He(i,2)}function Je(e,t){return e%60==0?(e>0?"-":"+")+He(Math.abs(e)/60,2):et(e,t)}function et(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+He(Math.floor(r/60),2)+n+He(r%60,2)}const tt=Xe;var nt=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ot=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const rt={p:ot,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return nt(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",nt(r,t)).replace("{{time}}",ot(i,t))}};var it=["D","DD"],lt=["YY","YYYY"];function at(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var st={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const ut=function(e,t,n){var o,r=st[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function ct(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dt={date:ct({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ct({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ct({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ft={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const pt=function(e,t,n,o){return ft[e]};function ht(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var l=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[l]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const gt={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ht({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ht({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ht({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ht({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ht({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function mt(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var l,a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(a)}));return l=e.valueCallback?e.valueCallback(u):u,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(a.length)}}}var vt;const yt={ordinalNumber:(vt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(vt.matchPattern);if(!n)return null;var o=n[0],r=e.match(vt.parsePattern);if(!r)return null;var i=vt.valueCallback?vt.valueCallback(r[0]):r[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:mt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:mt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:mt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:mt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const bt={code:"en-US",formatDistance:ut,formatLong:dt,formatRelative:pt,localize:gt,match:yt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xt=/^'([^]*?)'?$/,kt=/''/g,Ct=/[a-zA-Z]/;function Ot(e,t,n){var o,r,i,l,a,s,u,c,d,f,p,h,g,m,v,y,b,w;fe(2,arguments);var _=String(t),x=ve(),k=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:x.locale)&&void 0!==o?o:bt,C=de(null!==(i=null!==(l=null!==(a=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==l?l:null===(d=x.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=de(null!==(p=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:x.weekStartsOn)&&void 0!==h?h:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var E=pe(e);if(!function(e){if(fe(1,arguments),!Se(e)&&"number"!=typeof e)return!1;var t=pe(e);return!isNaN(Number(t))}(E))throw new RangeError("Invalid time value");var N=De(E,_e(E)),S={firstWeekContainsDate:C,weekStartsOn:O,locale:k,_originalDate:E},j=_.match(_t).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,rt[t])(e,k.formatLong):e})).join("").match(wt).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(xt);return t?t[1].replace(kt,"'"):e}(o);var i=tt[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==lt.indexOf(e)}(o)&&at(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==it.indexOf(e)}(o)&&at(o,t,String(e)),i(N,o,k.localize,S);if(r.match(Ct))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return j}var Et=6048e5;function Nt(e){return fe(1,arguments),Math.floor(function(e){return fe(1,arguments),pe(e).getTime()}(e)/1e3)}function St(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=ve(),d=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=function(e,t){var n,o,r,i,l,a,s,u;fe(1,arguments);var c=pe(e),d=c.getFullYear(),f=ve(),p=de(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var g=ye(h,t),m=new Date(0);m.setFullYear(d,0,p),m.setHours(0,0,0,0);var v=ye(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),ye(p,t)}var jt=6048e5;function Tt(e,t){return fe(1,arguments),function(e,t,n){fe(2,arguments);var o=ye(e,n),r=ye(t,n),i=o.getTime()-_e(o),l=r.getTime()-_e(r);return Math.round((i-l)/Te)}(function(e){fe(1,arguments);var t=pe(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),Pe(e),t)+1}function Mt(e,t){fe(2,arguments);var n=pe(e),o=pe(t);return n.getTime()>o.getTime()}function Pt(e,t){fe(2,arguments);var n=pe(e),o=pe(t);return n.getTime()<o.getTime()}function At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rt(e,t){fe(2,arguments);var n=pe(e),o=pe(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function It(e,t){return fe(2,arguments),he(e,-de(t))}function Dt(e,t){fe(2,arguments);var n=pe(e),o=de(t),r=n.getFullYear(),i=n.getDate(),l=new Date(0);l.setFullYear(r,o,15),l.setHours(0,0,0,0);var a=function(e){fe(1,arguments);var t=pe(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(l);return n.setMonth(o,Math.min(i,a)),n}function Lt(e,t){if(fe(2,arguments),"object"!==ce(t)||null===t)throw new RangeError("values parameter must be an object");var n=pe(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Dt(n,t.month)),null!=t.date&&n.setDate(de(t.date)),null!=t.hours&&n.setHours(de(t.hours)),null!=t.minutes&&n.setMinutes(de(t.minutes)),null!=t.seconds&&n.setSeconds(de(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(de(t.milliseconds)),n)}function qt(e,t){fe(2,arguments);var n=pe(e),o=de(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const Ft=e=>Lt(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),zt=e=>Lt(e,{hours:0,minutes:0,seconds:0,milliseconds:0});var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht,Ut={exports:{}},Wt={};
2
3
  /**
3
4
  * @license React
4
5
  * react-jsx-runtime.production.min.js
@@ -7,7 +8,7 @@ import*as e from"react";import t,{forwardRef as n,useContext as o,useLayoutEffec
7
8
  *
8
9
  * This source code is licensed under the MIT license found in the
9
10
  * LICENSE file in the root directory of this source tree.
10
- */var Ut,$t={};
11
+ */var Gt,$t={};
11
12
  /**
12
13
  * @license React
13
14
  * react-jsx-runtime.development.js
@@ -16,13 +17,13 @@ import*as e from"react";import t,{forwardRef as n,useContext as o,useLayoutEffec
16
17
  *
17
18
  * This source code is licensed under the MIT license found in the
18
19
  * LICENSE file in the root directory of this source tree.
19
- */"production"===process.env.NODE_ENV?Bt.exports=function(){if(zt)return Ht;zt=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,o){var l,s={},u=null,c=null;for(l in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,l)&&!a.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return Ht.Fragment=o,Ht.jsx=l,Ht.jsxs=l,Ht}():Bt.exports=(Ut||(Ut=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,w=!1,x=!1,_=!1,k=!1,E=!1;function O(e){return e.displayName||"Context"}function C(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return O(e)+".Consumer";case l:return O(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:C(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return C(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var N,S,j,T,P,A,M,R=Object.assign,I=0;function D(){}D.__reactDisabledLog=!0;var L,q=v.ReactCurrentDispatcher;function F(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var V,z=!1,B="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||z)return"";var n,o=V.get(e);if(void 0!==o)return o;z=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=q.current,q.current=null,function(){if(0===I){N=console.log,S=console.info,j=console.warn,T=console.error,P=console.group,A=console.groupCollapsed,M=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&V.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{z=!1,q.current=r,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:N}),info:R({},e,{value:S}),warn:R({},e,{value:j}),error:R({},e,{value:T}),group:R({},e,{value:P}),groupCollapsed:R({},e,{value:A}),groupEnd:R({},e,{value:M})})}I<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?F(f):"";return"function"==typeof e&&V.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return F(e);switch(e){case c:return F("Suspense");case d:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case f:return U(e.type,t,n);case p:var o=e,r=o._payload,i=o._init;try{return U(i(r),t,n)}catch{}}return""}V=new B;var $=Object.prototype.hasOwnProperty,W={},G=v.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var K=Array.isArray;function Z(e){return K(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,a,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,a={},l=null,s=null;for(i in void 0!==n&&(Q(n),l=""+n),function(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),l=""+t.key),function(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=C(ne.current.type);te[n]||(y('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',C(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)$.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(l||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){J||(J=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),s&&function(e,t){var n=function(){ee||(ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return re(e,l,s,r,o,ne.current,a)}var ae,le=v.ReactCurrentOwner,se=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=C(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+C(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&pe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)ce(i.value)&&pe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=C(n);!function(e,t,n,o,r){var i=Function.call.bind($);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(Y(r),y("%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).",o||"React class",n,a,typeof l),Y(null)),l instanceof Error&&!(l.message in W)&&(W[l.message]=!0,Y(r),y("Failed %s type: %s",n,l.message),Y(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ae||(ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,o,g,m,v){var O=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===a||E||e===i||e===c||e===d||k||e===h||w||x||_||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!O){var N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);N+=j||de(),null===e?S="null":Z(e)?S="array":void 0!==e&&e.$$typeof===n?(S="<"+(C(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,N)}var T=ie(e,t,o,m,v);if(null==T)return T;if(O){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var A=0;A<P.length;A++)he(P[A],e);Object.freeze&&Object.freeze(P)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(P,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(T):ge(T),T}var ve=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};$t.Fragment=r,$t.jsx=ve,$t.jsxs=ye}()),$t);var Wt=Bt.exports;const Gt=({color:e="primary",dataTest:t,...n})=>Wt.jsx(d,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Yt=({dataTest:e,...t})=>Wt.jsx(f,{...t,"data-test":e});function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kt.apply(this,arguments)}function Zt(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}const Xt=!1;var Qt="production"!==process.env.NODE_ENV?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]);const Jt=t.createContext(null);var en="unmounted",tn="exited",nn="entering",on="entered",rn="exiting",an=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=tn,o.appearStatus=nn):r=on:r=t.unmountOnExit||t.mountOnEnter?en:tn,o.state={status:r},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pt(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===en?{status:tn}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==nn&&n!==on&&(t=nn):(n===nn||n===on)&&(t=rn)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ae.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tn&&this.setState({status:en})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[ae.findDOMNode(this),o],i=r[0],a=r[1],l=this.getTimeouts(),s=o?l.appear:l.enter;!e&&!n||Xt?this.safeSetState({status:on},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:nn},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:on},(function(){t.props.onEntered(i,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:ae.findDOMNode(this);t&&!Xt?(this.props.onExit(o),this.safeSetState({status:rn},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:tn},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:tn},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ae.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===en)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Zt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Jt.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function ln(){}an.contextType=Jt,an.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,o,r,i){var a=e[t];return ie.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(e){var t=Qt;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{},an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln},an.UNMOUNTED=en,an.EXITED=tn,an.ENTERING=nn,an.ENTERED=on,an.EXITING=rn;const sn=an;function un(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function cn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function dn(e){if(!cn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=dn(e[n])})),t}function fn(e,t,n={clone:!0}){const o=n.clone?Kt({},e):e;return cn(e)&&cn(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(cn(t[r])&&r in e&&cn(e[r])?o[r]=fn(e[r],t[r],n):n.clone?o[r]=cn(t[r])?dn(t[r]):t[r]:o[r]=t[r])})),o}function pn(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||typeof window>"u")return null;let l;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const hn=un(ie.element,pn);hn.isRequired=un(ie.element.isRequired,pn);const gn=hn;function mn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function vn(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":mn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yn=e=>e,bn=(()=>{let e=yn;return{configure(t){e=t},generate:t=>e(t),reset(){e=yn}}})(),wn=bn,xn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function _n(e,t,n="Mui"){const o=xn[t];return o?`${n}-${o}`:`${wn.generate(e)}-${t}`}function kn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var En=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)&&console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),On="-ms-",Cn="-moz-",Nn="-webkit-",Sn="comm",jn="rule",Tn="decl",Pn="@keyframes",An=Math.abs,Mn=String.fromCharCode,Rn=Object.assign;function In(e){return e.trim()}function Dn(e,t,n){return e.replace(t,n)}function Ln(e,t){return e.indexOf(t)}function qn(e,t){return 0|e.charCodeAt(t)}function Fn(e,t,n){return e.slice(t,n)}function Vn(e){return e.length}function zn(e){return e.length}function Bn(e,t){return t.push(e),e}var Hn=1,Un=1,$n=0,Wn=0,Gn=0,Yn="";function Kn(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Hn,column:Un,length:a,return:""}}function Zn(e,t){return Rn(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xn(){return Gn=Wn<$n?qn(Yn,Wn++):0,Un++,10===Gn&&(Un=1,Hn++),Gn}function Qn(){return qn(Yn,Wn)}function Jn(){return Wn}function eo(e,t){return Fn(Yn,e,t)}function to(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function no(e){return Hn=Un=1,$n=Vn(Yn=e),Wn=0,[]}function oo(e){return Yn="",e}function ro(e){return In(eo(Wn-1,lo(91===e?e+2:40===e?e+1:e)))}function io(e){for(;(Gn=Qn())&&Gn<33;)Xn();return to(e)>2||to(Gn)>3?"":" "}function ao(e,t){for(;--t&&Xn()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return eo(e,Jn()+(t<6&&32==Qn()&&32==Xn()))}function lo(e){for(;Xn();)switch(Gn){case e:return Wn;case 34:case 39:34!==e&&39!==e&&lo(Gn);break;case 40:41===e&&lo(e);break;case 92:Xn()}return Wn}function so(e,t){for(;Xn()&&e+Gn!==57&&(e+Gn!==84||47!==Qn()););return"/*"+eo(t,Wn-1)+"*"+Mn(47===e?e:Xn())}function uo(e){for(;!to(Qn());)Xn();return eo(e,Wn)}function co(e){return oo(fo("",null,null,null,[""],e=no(e),0,[0],e))}function fo(e,t,n,o,r,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,y=0,b="",w=r,x=i,_=o,k=b;m;)switch(h=y,y=Xn()){case 40:if(108!=h&&58==qn(k,d-1)){-1!=Ln(k+=Dn(ro(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=ro(y);break;case 9:case 10:case 13:case 32:k+=io(h);break;case 92:k+=ao(Jn()-1,7);continue;case 47:switch(Qn()){case 42:case 47:Bn(ho(so(Xn(),Jn()),t,n),s);break;default:k+="/"}break;case 123*g:l[u++]=Vn(k)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:-1==v&&(k=Dn(k,/\f/g,"")),p>0&&Vn(k)-d&&Bn(p>32?go(k+";",o,n,d-1):go(Dn(k," ","")+";",o,n,d-2),s);break;case 59:k+=";";default:if(Bn(_=po(k,t,n,u,c,r,l,b,w=[],x=[],d),i),123===y)if(0===c)fo(k,t,_,_,w,i,d,l,x);else switch(99===f&&110===qn(k,3)?100:f){case 100:case 108:case 109:case 115:fo(e,_,_,o&&Bn(po(e,_,_,0,0,r,l,b,r,w=[],d),x),r,x,d,l,o?w:x);break;default:fo(k,_,_,_,[""],x,0,l,x)}}u=c=p=0,g=v=1,b=k="",d=a;break;case 58:d=1+Vn(k),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(Gn=Wn>0?qn(Yn,--Wn):0,Un--,10===Gn&&(Un=1,Hn--),Gn))continue;switch(k+=Mn(y),y*g){case 38:v=c>0?1:(k+="\f",-1);break;case 44:l[u++]=(Vn(k)-1)*v,v=1;break;case 64:45===Qn()&&(k+=ro(Xn())),f=Qn(),c=d=Vn(b=k+=uo(Jn())),y++;break;case 45:45===h&&2==Vn(k)&&(g=0)}}return i}function po(e,t,n,o,r,i,a,l,s,u,c){for(var d=r-1,f=0===r?i:[""],p=zn(f),h=0,g=0,m=0;h<o;++h)for(var v=0,y=Fn(e,d+1,d=An(g=a[h])),b=e;v<p;++v)(b=In(g>0?f[v]+" "+y:Dn(y,/&\f/g,f[v])))&&(s[m++]=b);return Kn(e,t,n,0===r?jn:l,s,u,c)}function ho(e,t,n){return Kn(e,t,n,Sn,Mn(Gn),Fn(e,2,-2),0)}function go(e,t,n,o){return Kn(e,t,n,Tn,Fn(e,0,o),Fn(e,o+1,-1),o)}function mo(e,t){for(var n="",o=zn(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function vo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Tn:return e.return=e.return||e.value;case Sn:return"";case Pn:return e.return=e.value+"{"+mo(e.children,o)+"}";case jn:e.value=e.props.join(",")}return Vn(n=mo(e.children,o))?e.return=e.value+"{"+n+"}":""}function yo(e){return function(t){t.root||(t=t.return)&&e(t)}}var bo=function(e,t,n){for(var o=0,r=0;o=r,r=Qn(),38===o&&12===r&&(t[n]=1),!to(r);)Xn();return eo(e,Wn)},wo=function(e,t){return oo(function(e,t){var n=-1,o=44;do{switch(to(o)){case 0:38===o&&12===Qn()&&(t[n]=1),e[n]+=bo(Wn-1,t,n);break;case 2:e[n]+=ro(o);break;case 4:if(44===o){e[++n]=58===Qn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mn(o)}}while(o=Xn());return e}(no(e),t))},xo=new WeakMap,_o=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||xo.get(n))&&!o){xo.set(e,!0);for(var r=[],i=wo(t,r),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=r[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},ko=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Eo=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Oo=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Co=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},No=function(e,t,n){Oo(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Co(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Oo(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Co(e)))};function So(e,t){switch(function(e,t){return 45^qn(e,0)?(((t<<2^qn(e,0))<<2^qn(e,1))<<2^qn(e,2))<<2^qn(e,3):0}(e,t)){case 5103:return Nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nn+e+Cn+e+On+e+e;case 6828:case 4268:return Nn+e+On+e+e;case 6165:return Nn+e+On+"flex-"+e+e;case 5187:return Nn+e+Dn(e,/(\w+).+(:[^]+)/,Nn+"box-$1$2"+On+"flex-$1$2")+e;case 5443:return Nn+e+On+"flex-item-"+Dn(e,/flex-|-self/,"")+e;case 4675:return Nn+e+On+"flex-line-pack"+Dn(e,/align-content|flex-|-self/,"")+e;case 5548:return Nn+e+On+Dn(e,"shrink","negative")+e;case 5292:return Nn+e+On+Dn(e,"basis","preferred-size")+e;case 6060:return Nn+"box-"+Dn(e,"-grow","")+Nn+e+On+Dn(e,"grow","positive")+e;case 4554:return Nn+Dn(e,/([^-])(transform)/g,"$1"+Nn+"$2")+e;case 6187:return Dn(Dn(Dn(e,/(zoom-|grab)/,Nn+"$1"),/(image-set)/,Nn+"$1"),e,"")+e;case 5495:case 3959:return Dn(e,/(image-set\([^]*)/,Nn+"$1$`$1");case 4968:return Dn(Dn(e,/(.+:)(flex-)?(.*)/,Nn+"box-pack:$3"+On+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nn+e+e;case 4095:case 3583:case 4068:case 2532:return Dn(e,/(.+)-inline(.+)/,Nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vn(e)-1-t>6)switch(qn(e,t+1)){case 109:if(45!==qn(e,t+4))break;case 102:return Dn(e,/(.+:)(.+)-([^]+)/,"$1"+Nn+"$2-$3$1"+Cn+(108==qn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ln(e,"stretch")?So(Dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qn(e,t+1))break;case 6444:switch(qn(e,Vn(e)-3-(~Ln(e,"!important")&&10))){case 107:return Dn(e,":",":"+Nn)+e;case 101:return Dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nn+(45===qn(e,14)?"inline-":"")+"box$3$1"+Nn+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(qn(e,t+11)){case 114:return Nn+e+On+Dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nn+e+On+Dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nn+e+On+Dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nn+e+On+e+e}return e}var jo=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Tn:e.return=So(e.value,e.length);break;case Pn:return mo([Zn(e,{value:Dn(e.value,"@","@"+Nn)})],o);case jn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mo([Zn(e,{props:[Dn(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return mo([Zn(e,{props:[Dn(t,/:(plac\w+)/,":"+Nn+"input-$1")]}),Zn(e,{props:[Dn(t,/:(plac\w+)/,":-moz-$1")]}),Zn(e,{props:[Dn(t,/:(plac\w+)/,On+"input-$1")]})],o)}return""}))}}],To=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||jo;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)}));var l,s=[_o,ko];"production"!==process.env.NODE_ENV&&s.push(function(e){return function(t,n,o){if("rule"===t.type&&!e.compat){var r=t.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var i=t.parent?t.parent.children:o,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(Eo(l))return;break}}r.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return f.compat}}),No);var u,c=[vo,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Sn&&u.insert(e.value+"{}"))}:yo((function(e){u.insert(e)}))],d=function(e){var t=zn(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}(s.concat(o,c));l=function(e,t,n,o){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),function(e){mo(co(e),d)}(e?e+"{"+t.styles+"}":t.styles),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new En({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return f.sheet.hydrate(a),f};var Po=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)};var Ao={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mo="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Ro="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Io=/[A-Z]|^ms/g,Do=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lo=function(e){return 45===e.charCodeAt(1)},qo=function(e){return null!=e&&"boolean"!=typeof e},Fo=kn((function(e){return Lo(e)?e:e.replace(Io,"-$&").toLowerCase()})),Vo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Do,(function(e,t,n){return Xo={name:t,styles:n,next:Xo},t}))}return 1===Ao[e]||Lo(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var zo=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Bo=["normal","none","initial","inherit","unset"],Ho=Vo,Uo=/^-ms-/,$o=/-(.)/g,Wo={};Vo=function(e,t){if("content"===e&&("string"!=typeof t||-1===Bo.indexOf(t)&&!zo.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ho(e,t);return""!==n&&!Lo(e)&&-1!==e.indexOf("-")&&void 0===Wo[e]&&(Wo[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Uo,"ms-").replace($o,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Go="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yo(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Go);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xo={name:n.name,styles:n.styles,next:Xo},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Xo={name:o.name,styles:o.styles,next:Xo},o=o.next;var r=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(r+=n.map),r}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Yo(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":qo(a)&&(o+=Fo(i)+":"+Vo(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Go);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Yo(e,t,a);switch(i){case"animation":case"animationName":o+=Fo(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Ro),o+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)qo(a[s])&&(o+=Fo(i)+":"+Vo(i,a[s])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var i=Xo,a=n(e);return Xo=i,Yo(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(Do,(function(e,t,n){var o="animation"+l.length;return l.push("const "+o+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+o+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var Ko,Zo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ko=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Xo,Qo=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Xo=void 0;var i,a=e[0];null==a||void 0===a.raw?(o=!1,r+=Yo(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Mo),r+=a[0]);for(var l=1;l<e.length;l++)r+=Yo(n,t,e[l]),o&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Mo),r+=a[l]);"production"!==process.env.NODE_ENV&&(r=r.replace(Ko,(function(e){return i=e,""}))),Zo.lastIndex=0;for(var s,u="";null!==(s=Zo.exec(r));)u+="-"+s[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:r,map:i,next:Xo,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:r,next:Xo}},Jo=!!e.useInsertionEffect&&e.useInsertionEffect||function(e){return e()},er={}.hasOwnProperty,tr=e.createContext(typeof HTMLElement<"u"?To({key:"css"}):null);"production"!==process.env.NODE_ENV&&(tr.displayName="EmotionCacheContext"),tr.Provider;var nr=function(e){return n((function(t,n){var r=o(tr);return e(t,r,n)}))},or=e.createContext({});"production"!==process.env.NODE_ENV&&(or.displayName="EmotionThemeContext");var rr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ir="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ar=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Po(t,n,o),Jo((function(){return function(e,t,n){Po(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},lr=nr((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[rr],a=[r],l="";"string"==typeof t.className?l=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=Qo(a,void 0,e.useContext(or));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var u=t[ir];u&&(s=Qo([s,"label:"+u+";"]))}l+=n.key+"-"+s.name;var c={};for(var d in t)er.call(t,d)&&"css"!==d&&d!==rr&&("production"===process.env.NODE_ENV||d!==ir)&&(c[d]=t[d]);return c.ref=o,c.className=l,e.createElement(e.Fragment,null,e.createElement(ar,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,c))}));"production"!==process.env.NODE_ENV&&(lr.displayName="EmotionCssPropInternal");const sr=["values","unit","step"],ur=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Kt({},e,{[t.key]:t.val})),{})};const cr={borderRadius:4},dr="production"!==process.env.NODE_ENV?ie.oneOfType([ie.number,ie.string,ie.object,ie.array]):{};function fr(e,t){return t?fn(e,t,{clone:!1}):e}const pr={xs:0,sm:600,md:900,lg:1200,xl:1536},hr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pr[e]}px)`};function gr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||hr;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||hr;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||pr).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function mr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function vr(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:mr(e,n)||o,t&&(r=t(r,o,e)),r}function yr(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=mr(e.theme,o)||{};return gr(e,i,(e=>{let o=vr(a,r,e);return e===o&&"string"==typeof e&&(o=vr(a,r,`${t}${"default"===e?"":vn(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:dr}:{},i.filterProps=[t],i}const br={m:"margin",p:"padding"},wr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_r=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!xr[e])return[e];e=xr[e]}const[t,n]=e.split(""),o=br[t],r=wr[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),kr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Er=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Or=[...kr,...Er];function Cr(e,t,n,o){var r;const i=null!=(r=mr(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Nr(e){return Cr(e,"spacing",8,"spacing")}function Sr(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function jr(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=Sr(t,n),e)),{})}(_r(n),o);return gr(e,e[n],r)}function Tr(e,t){const n=Nr(e.theme);return Object.keys(e).map((o=>jr(e,t,o,n))).reduce(fr,{})}function Pr(e){return Tr(e,kr)}function Ar(e){return Tr(e,Er)}function Mr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?fr(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Rr(e){return"number"!=typeof e?e:`${e}px solid`}Pr.propTypes="production"!==process.env.NODE_ENV?kr.reduce(((e,t)=>(e[t]=dr,e)),{}):{},Pr.filterProps=kr,Ar.propTypes="production"!==process.env.NODE_ENV?Er.reduce(((e,t)=>(e[t]=dr,e)),{}):{},Ar.filterProps=Er,"production"!==process.env.NODE_ENV&&Or.reduce(((e,t)=>(e[t]=dr,e)),{});const Ir=yr({prop:"border",themeKey:"borders",transform:Rr}),Dr=yr({prop:"borderTop",themeKey:"borders",transform:Rr}),Lr=yr({prop:"borderRight",themeKey:"borders",transform:Rr}),qr=yr({prop:"borderBottom",themeKey:"borders",transform:Rr}),Fr=yr({prop:"borderLeft",themeKey:"borders",transform:Rr}),Vr=yr({prop:"borderColor",themeKey:"palette"}),zr=yr({prop:"borderTopColor",themeKey:"palette"}),Br=yr({prop:"borderRightColor",themeKey:"palette"}),Hr=yr({prop:"borderBottomColor",themeKey:"palette"}),Ur=yr({prop:"borderLeftColor",themeKey:"palette"}),$r=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Cr(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Sr(t,e)});return gr(e,e.borderRadius,n)}return null};$r.propTypes="production"!==process.env.NODE_ENV?{borderRadius:dr}:{},$r.filterProps=["borderRadius"],Mr(Ir,Dr,Lr,qr,Fr,Vr,zr,Br,Hr,Ur,$r);const Wr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Cr(e.theme,"spacing",8,"gap"),n=e=>({gap:Sr(t,e)});return gr(e,e.gap,n)}return null};Wr.propTypes="production"!==process.env.NODE_ENV?{gap:dr}:{},Wr.filterProps=["gap"];const Gr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Cr(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Sr(t,e)});return gr(e,e.columnGap,n)}return null};Gr.propTypes="production"!==process.env.NODE_ENV?{columnGap:dr}:{},Gr.filterProps=["columnGap"];const Yr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Cr(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Sr(t,e)});return gr(e,e.rowGap,n)}return null};Yr.propTypes="production"!==process.env.NODE_ENV?{rowGap:dr}:{},Yr.filterProps=["rowGap"];function Kr(e,t){return"grey"===t?t:e}Mr(Wr,Gr,Yr,yr({prop:"gridColumn"}),yr({prop:"gridRow"}),yr({prop:"gridAutoFlow"}),yr({prop:"gridAutoColumns"}),yr({prop:"gridAutoRows"}),yr({prop:"gridTemplateColumns"}),yr({prop:"gridTemplateRows"}),yr({prop:"gridTemplateAreas"}),yr({prop:"gridArea"}));function Zr(e){return e<=1&&0!==e?100*e+"%":e}Mr(yr({prop:"color",themeKey:"palette",transform:Kr}),yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kr}),yr({prop:"backgroundColor",themeKey:"palette",transform:Kr}));const Xr=yr({prop:"width",transform:Zr}),Qr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||pr[t]||Zr(t)}};return gr(e,e.maxWidth,t)}return null};Qr.filterProps=["maxWidth"];const Jr=yr({prop:"minWidth",transform:Zr}),ei=yr({prop:"height",transform:Zr}),ti=yr({prop:"maxHeight",transform:Zr}),ni=yr({prop:"minHeight",transform:Zr});yr({prop:"size",cssProperty:"width",transform:Zr}),yr({prop:"size",cssProperty:"height",transform:Zr});Mr(Xr,Qr,Jr,ei,ti,ni,yr({prop:"boxSizing"}));const oi={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$r},color:{themeKey:"palette",transform:Kr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kr},backgroundColor:{themeKey:"palette",transform:Kr},p:{style:Ar},pt:{style:Ar},pr:{style:Ar},pb:{style:Ar},pl:{style:Ar},px:{style:Ar},py:{style:Ar},padding:{style:Ar},paddingTop:{style:Ar},paddingRight:{style:Ar},paddingBottom:{style:Ar},paddingLeft:{style:Ar},paddingX:{style:Ar},paddingY:{style:Ar},paddingInline:{style:Ar},paddingInlineStart:{style:Ar},paddingInlineEnd:{style:Ar},paddingBlock:{style:Ar},paddingBlockStart:{style:Ar},paddingBlockEnd:{style:Ar},m:{style:Pr},mt:{style:Pr},mr:{style:Pr},mb:{style:Pr},ml:{style:Pr},mx:{style:Pr},my:{style:Pr},margin:{style:Pr},marginTop:{style:Pr},marginRight:{style:Pr},marginBottom:{style:Pr},marginLeft:{style:Pr},marginX:{style:Pr},marginY:{style:Pr},marginInline:{style:Pr},marginInlineStart:{style:Pr},marginInlineEnd:{style:Pr},marginBlock:{style:Pr},marginBlockStart:{style:Pr},marginBlockEnd:{style:Pr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wr},rowGap:{style:Yr},columnGap:{style:Gr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zr},maxWidth:{style:Qr},minWidth:{transform:Zr},height:{transform:Zr},maxHeight:{transform:Zr},minHeight:{transform:Zr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ri=oi;const ii=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=mr(n,l)||{};return u?u(r):gr(r,t,(t=>{let n=vr(c,s,t);return t===n&&"string"==typeof t&&(n=vr(c,s,`${e}${"default"===t?"":vn(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=null!=(o=i.unstable_sxConfig)?o:ri;function l(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(a[n])s=fr(s,e(n,r,i,a));else{const e=gr({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=fr(s,e):s[n]=t({sx:r,theme:i})}else s=fr(s,e(n,r,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(r)?r.map(l):l(r)}}();ii.filterProps=["sx"];const ai=ii,li=["breakpoints","palette","spacing","shape"];function si(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,a=Zt(e,li),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=Zt(e,sr),i=ur(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=a.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:r)-o/100}${n})`}return Kt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=Nr({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=fn({breakpoints:l,direction:"ltr",components:{},palette:Kt({mode:"light"},o),spacing:s,shape:Kt({},cr,i)},a);return u=t.reduce(((e,t)=>fn(e,t)),u),u.unstable_sxConfig=Kt({},ri,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ai({sx:e,theme:this})},u}function ui(t=null){const n=e.useContext(or);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const ci=si();function di(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=di(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function fi(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=di(e))&&(o&&(o+=" "),o+=t);return o}function pi(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function hi(e){if(e.type)return e;if("#"===e.charAt(0))return hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:mn(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:mn(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function gi(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function mi(e){let t="hsl"===(e=hi(e)).type||"hsla"===e.type?hi(function(e){e=hi(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),gi({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vi(e,t){const n=mi(e),o=mi(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function yi(e,t){return Kt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const bi={black:"#000",white:"#fff"},wi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_i={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ei={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Oi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ci={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ni=["mode","contrastThreshold","tonalOffset"],Si={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bi.white,default:bi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ji={text:{primary:bi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ti(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=hi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return gi(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=hi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return gi(e)}(e.main,i)))}function Pi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=Zt(e,Ni),i=e.primary||function(e="light"){return"dark"===e?{main:Ei[200],light:Ei[50],dark:Ei[400]}:{main:Ei[700],light:Ei[400],dark:Ei[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xi[200],light:xi[50],dark:xi[400]}:{main:xi[500],light:xi[300],dark:xi[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:_i[500],light:_i[300],dark:_i[700]}:{main:_i[700],light:_i[400],dark:_i[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Oi[400],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[500],dark:Oi[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}(t);function d(e){const t=vi(e,ji.text.primary)>=n?ji.text.primary:Si.text.primary;if("production"!==process.env.NODE_ENV){const n=vi(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=Kt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:mn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:mn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ti(e,"light",r,o),Ti(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ji,light:Si};return"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),fn(Kt({common:Kt({},bi),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:wi,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:o},p[t]),r)}const Ai=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Mi(e){return Math.round(1e5*e)/1e5}const Ri={textTransform:"uppercase"},Ii='"Roboto", "Helvetica", "Arial", sans-serif';function Di(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=Ii,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Zt(n,Ai);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,r,i)=>Kt({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===Ii?{letterSpacing:`${Mi(r/t)}em`}:{},i,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Ri),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Ri),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fn(Kt({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},m),f,{clone:!1})}function Li(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const qi=["none",Li(0,2,1,-1,0,1,1,0,0,1,3,0),Li(0,3,1,-2,0,2,2,0,0,1,5,0),Li(0,3,3,-2,0,3,4,0,0,1,8,0),Li(0,2,4,-1,0,4,5,0,0,1,10,0),Li(0,3,5,-1,0,5,8,0,0,1,14,0),Li(0,3,5,-1,0,6,10,0,0,1,18,0),Li(0,4,5,-2,0,7,10,1,0,2,16,1),Li(0,5,5,-3,0,8,10,1,0,3,14,2),Li(0,5,6,-3,0,9,12,1,0,3,16,2),Li(0,6,6,-3,0,10,14,1,0,4,18,3),Li(0,6,7,-4,0,11,15,1,0,4,20,3),Li(0,7,8,-4,0,12,17,2,0,5,22,4),Li(0,7,8,-4,0,13,19,2,0,5,24,4),Li(0,7,9,-4,0,14,21,2,0,5,26,4),Li(0,8,9,-5,0,15,22,2,0,6,28,5),Li(0,8,10,-5,0,16,24,2,0,6,30,5),Li(0,8,11,-5,0,17,26,2,0,6,32,5),Li(0,9,11,-5,0,18,28,2,0,7,34,6),Li(0,9,12,-6,0,19,29,2,0,7,36,6),Li(0,10,13,-6,0,20,31,3,0,8,38,7),Li(0,10,13,-6,0,21,33,3,0,8,40,7),Li(0,10,14,-6,0,22,35,3,0,8,42,7),Li(0,11,14,-7,0,23,36,3,0,9,44,8),Li(0,11,15,-7,0,24,38,3,0,9,46,8)],Fi=["duration","easing","delay"],Vi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function Hi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ui(e){const t=Kt({},Vi,e.easing),n=Kt({},zi,e.duration);return Kt({getAutoHeightDuration:Hi,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:a=0}=o,l=Zt(o,Fi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(l).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:Bi(r)} ${i} ${"string"==typeof a?a:Bi(a)}`)).join(",")}},e,{easing:t,duration:n})}const $i={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Gi=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,a=Zt(e,Wi);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":mn(18));const l=Pi(o),s=si(e);let u=fn(s,{mixins:yi(s.breakpoints,n),palette:l,shadows:qi.slice(),typography:Di(l,i),transitions:Ui(r),zIndex:Kt({},$i)});if(u=fn(u,a),u=t.reduce(((e,t)=>fn(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=_n("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=Kt({},ri,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ai({sx:e,theme:this})},u}(),Yi=Gi;function Ki(){const t=function(e=ci){return ui(e)}(Yi);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t.$$material||t}function Zi(e,t){var n,o;const{timeout:r,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Xi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qi={entering:{opacity:1},entered:{opacity:1}},Ji=e.forwardRef((function(t,n){const o=Ki(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=sn}=t,b=Zt(t,Xi),w=e.useRef(null),x=function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(w,l.ref,n),_=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=_(f),E=_(((e,t)=>{(e=>{e.scrollTop})(e);const n=Zi({style:m,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),O=_(d),C=_(g),N=_((e=>{const t=Zi({style:m,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),p&&p(e)})),S=_(h);return Wt.jsx(y,Kt({appear:a,in:u,nodeRef:w,onEnter:E,onEntered:O,onEntering:k,onExit:N,onExited:S,onExiting:C,addEndListener:e=>{i&&i(w.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(l,Kt({style:Kt({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},Qi[t],m,l.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(Ji.propTypes={addEndListener:ie.func,appear:ie.bool,children:gn.isRequired,easing:ie.oneOfType([ie.shape({enter:ie.string,exit:ie.string}),ie.string]),in:ie.bool,onEnter:ie.func,onEntered:ie.func,onEntering:ie.func,onExit:ie.func,onExited:ie.func,onExiting:ie.func,style:ie.object,timeout:ie.oneOfType([ie.number,ie.shape({appear:ie.number,enter:ie.number,exit:ie.number})])});const ea=Ji,ta=e=>Wt.jsx(p,{TransitionComponent:ea,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),na=/^[a-z0-9]+(-[a-z0-9]+)*$/,oa=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!ra(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!ra(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!ra(e,n)?null:e}return null},ra=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(na)||!(t&&""===e.prefix||e.prefix.match(na))||!e.name.match(na)),ia=Object.freeze({left:0,top:0,width:16,height:16}),aa=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),la=Object.freeze({...ia,...aa}),sa=Object.freeze({...la,body:"",hidden:!1});function ua(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in sa)o in aa?o in e&&!(o in n)&&(n[o]=aa[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function ca(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=ua(o[e]||r[e],i)}return a(t),n.forEach(a),ua(e,i)}function da(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,ca(e,r,i)),n.push(r))}return n}const fa={provider:"",aliases:{},not_found:{},...ia};function pa(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ha(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!pa(e,fa))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(na)||"string"!=typeof t.body||!pa(t,sa))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(na)||"string"!=typeof r||!n[r]&&!o[r]||!pa(t,sa))return null}return t}const ga=Object.create(null);function ma(e,t){const n=ga[e]||(ga[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function va(e,t){return ha(t)?da(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let ya=!1;function ba(e){return"boolean"==typeof e&&(ya=e),ya}function wa(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),ya&&!t&&!e.prefix){let t=!1;return ha(e)&&(e.prefix="",da(e,((e,n)=>{n&&function(e,t){const n=oa(e,!0,ya);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(ma(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!ra({provider:t,prefix:n,name:"a"}))return!1;return!!va(ma(t,n),e)}const xa=Object.freeze({width:null,height:null}),_a=Object.freeze({...xa,...aa}),ka=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ea=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Oa(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(ka);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=Ea.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const Ca=/\sid="(\S+)"/g,Na="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Sa=0;function ja(e,t=Na){const n=[];let o;for(;o=Ca.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Sa++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Ta=Object.create(null);function Pa(e){return Ta[e]||Ta[""]}function Aa(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ma=Object.create(null),Ra=["https://api.simplesvg.com","https://api.unisvg.com"],Ia=[];for(;Ra.length>0;)1===Ra.length||Math.random()>.5?Ia.push(Ra.shift()):Ia.push(Ra.pop());function Da(e,t){const n=Aa(t);return null!==n&&(Ma[e]=n,!0)}function La(e){return Ma[e]}Ma[""]=Aa({resources:["https://api.iconify.design"].concat(Ia)});let qa=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const Fa={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=La(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach(((n,s)=>{l+=n.length+1,l>=r&&s>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!qa)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=La(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;qa(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function Va(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let za=0;var Ba={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ha(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function g(){"pending"===u&&(u="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==u)return;h();const o=a.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{h(),"pending"===u&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(r)return s=o,void(f.length||(a.length?b():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),c++,d=setTimeout(b,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}}function Ua(e){const t={...Ba,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=Ha(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function $a(){}const Wa=Object.create(null);function Ga(e,t,n){let o,r;if("string"==typeof e){const t=Pa(e);if(!t)return n(void 0,424),$a;r=t.send;const i=function(e){if(!Wa[e]){const t=La(e);if(!t)return;const n={config:t,redundancy:Ua(t)};Wa[e]=n}return Wa[e]}(e);i&&(o=i.redundancy)}else{const t=Aa(e);if(t){o=Ua(t);const n=Pa(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),$a)}const Ya="iconify2",Ka="iconify",Za=Ka+"-count",Xa=Ka+"-version",Qa=36e5,Ja=168;function el(e,t){try{return e.getItem(t)}catch{}}function tl(e,t,n){try{return e.setItem(t,n),!0}catch{}}function nl(e,t){try{e.removeItem(t)}catch{}}function ol(e,t){return tl(e,Za,t.toString())}function rl(e){return parseInt(el(e,Za))||0}const il={local:!0,session:!0},al={local:new Set,session:new Set};let ll=!1;let sl=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(sl&&sl[t]&&"number"==typeof sl[t].length)return sl[t]}catch{}il[e]=!1}function cl(e,t){const n=ul(e);if(!n)return;const o=el(n,Xa);if(o!==Ya){if(o){const e=rl(n);for(let t=0;t<e;t++)nl(n,Ka+t.toString())}return tl(n,Xa,Ya),void ol(n,0)}const r=Math.floor(Date.now()/Qa)-Ja,i=e=>{const o=Ka+e.toString(),i=el(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}nl(n,o)}};let a=rl(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,ol(n,a)):al[e].add(t))}function dl(){if(!ll){!function(e){ll=e}(!0);for(const e in il)cl(e,(e=>{const t=e.data,n=ma(e.provider,t.prefix);if(!va(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function fl(e,t){function n(n){let o;if(!il[n]||!(o=ul(n)))return;const r=al[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=rl(o),!ol(o,i+1))return;const a={cached:Math.floor(Date.now()/Qa),provider:e.provider,data:t};return tl(o,Ka+i.toString(),JSON.stringify(a))}ll||dl(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in il)cl(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function pl(){}function hl(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||Va([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const gl=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?oa(e,t,n):e;r&&o.push(r)})),o}(e,!0,ba()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,l=n[r]||(n[r]=Object.create(null)),s=l[i]||(l[i]=ma(r,i));let u;u=a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending;const c={provider:r,prefix:i,name:a};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,pl)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,l;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===l&&t===a)return;a=t,l=n,i.push(ma(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=ma(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Pa(t))&&r.prepare(t,n,o).forEach((n=>{Ga(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=va(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),fl(e,t)}catch(e){console.error(e)}hl(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=za++,r=Va.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):pl};const ml=/[\s,]+/;function vl(e,t){t.split(ml).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function yl(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function bl(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let wl;function xl(e){return void 0===wl&&function(){try{wl=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{wl=null}}(),wl?wl.createHTML(e):e}const _l={..._a,inline:!1},kl={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},El={display:"inline-block"},Ol={backgroundColor:"currentColor"},Cl={backgroundColor:"transparent"},Nl={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Sl={WebkitMask:Ol,mask:Ol,background:Cl};for(const e in Sl){const t=Sl[e];for(const n in Nl)t[e+n]=Nl[n]}const jl={..._l,inline:!0};function Tl(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pl=(e,n,o,r)=>{const i=o?jl:_l,a=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in xa?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),l=n.mode||"svg",s={},u=n.style||{},c={..."svg"===l?kl:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&vl(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[e]=yl(t):"number"==typeof t&&(a[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...la,...e},o={..._a,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,l=e.rotate;switch(n?o?l+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}l%2==1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=o.width,l=o.height,s=r.width,u=r.height;let c,d;null===a?(d=null===l?"1em":"auto"===l?u:l,c=Oa(d,s/u)):(c="auto"===a?s:a,d=null===l?Oa(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",c),p("height",d),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:f,body:i}}(e,a),f=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===l){c.style={...s,...u},Object.assign(c,f);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:xl(ja(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:p,width:h,height:g}=e,m="mask"===l||"bg"!==l&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...f,width:h+"",height:g+""});return c.style={...s,"--svg":bl(v),width:Tl(f.width),height:Tl(f.height),...El,...m?Ol:Cl,...u},t.createElement("span",c)};if(ba(!0),function(e,t){Ta[e]=t}("",Fa),typeof document<"u"&&typeof window<"u"){dl();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!wa(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;Da(e,o)||console.error(n)}catch{console.error(n)}}}}class Al extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=oa(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?oa(e,!0,ya):e;if(t){const e=ma(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:gl([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Pl({...la,...n.data},o,e._inline,e._ref)}}const Ml=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(Al,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(Al,o)}));const Rl="_icon_z9w7e_5",Il=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:a=!1})=>Wt.jsx(Ml,{onClick:r,icon:o,width:e,height:t,className:`${Rl} ${n}`,color:i,vFlip:a}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Wt.jsx(Il,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r});function Kl(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function Zl(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function Xl(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),es=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),ts=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),ns=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),os=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),rs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),is=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),as=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),ls=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),ss=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),us=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),cs=({color:e="black",size:t="20",className:n=""})=>Wt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Wt.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Wt.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Wt.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Wt.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),ds=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),fs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),ps=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),hs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),gs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),ms=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),vs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),ys=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),bs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),ws=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),xs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),_s=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),ks=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),Es=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Os=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),Cs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Ns=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Ss=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),js=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Ts=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ps=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),As=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),Ms=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),Rs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),Is=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),Ds=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),Ls=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Wt.jsx(Il,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),qs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),Fs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),Vs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),zs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),Bs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),Hs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),Us=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),$s=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),Ws=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),Gs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Ys=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function Ks(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const Zs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function Xs(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const Qs=e=>Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),Js=e=>Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function eu(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function tu(e){return Wt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Wt.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Wt.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Wt.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Wt.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function nu(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function ou(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function ru(e){return Wt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Wt.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}const iu=e=>Wt.jsx(h,{...e}),au=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:a,dataTest:l,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Wt.jsxs("button",{...u,className:fi("asma-core-ui-button",e,d,n,t),ref:r,"data-test":l,children:[i&&i,o&&Wt.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:c?"8px":"4px",paddingLeft:c?"8px":"4px",paddingRight:c?"8px":"4px"},children:o}),a&&a]})},lu=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogLabel:r,dialogTitle:i,...a})=>Wt.jsxs(g,{...a,"data-test":n,style:{zIndex:999,...a.style},children:[Wt.jsx("div",{className:"styled-dialog-root",children:Wt.jsxs("div",{className:"styled-top-header",children:[Wt.jsxs("div",{className:"styled-dialog-info",children:[r&&Wt.jsx("div",{className:"styled-dialog-label",children:r}),i&&Wt.jsx("div",{className:"styled-dialog-title",children:i})]}),o&&Wt.jsx("div",{className:"styled-dialog-close",children:Wt.jsx(au,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:Wt.jsx(ks,{width:24,height:24}),onClick:e=>{a.onClose&&a.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)"},children:e})})]})}),t]}),su=e=>Wt.jsx(m,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"styled-dialog-actions-root"},children:Wt.jsx("div",{className:fi("styled-dialog-actions",e.className),children:e.children})}),uu=({children:e,classes:t,className:n,...o})=>Wt.jsx(v,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"styled-dialog-content"},className:n,children:e}),cu=({children:e,...t})=>e?Wt.jsx(y,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"styled-dialog-title-root"},children:e}):null,du=e=>Wt.jsx(b,{iconMapping:{success:Wt.jsx(Kl,{height:24,width:24,fontSize:"inherit"}),...e.iconMapping},...e}),fu=e=>Wt.jsx(w,{...e,classes:{root:fi("styled-alert-title",e.className)}}),pu=({dataTest:e,...t})=>Wt.jsx(x,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),hu=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Wt.jsx(_,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Wt.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Wt.jsx(ks,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),gu={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},mu=({id:e,variant:t="active",label:n="",labelClassName:o="",description:s="",value:u="",minRows:c=3,maxRows:d=1/0,disabled:f,error:p,errorMessage:h,containerClassName:g="",className:m="",maxLength:v=1/0,counter:y,refLink:b,dataTest:w,counterLimit:x,..._})=>{const k=i(null),E=b||k,O=!(!y||!x),[C,N]=a(!1);l((()=>{N(!0)}),[]),((e,t,n,o,i,a)=>{r((()=>{if(e){const t=a?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,i,a])})(E.current,u,c,d,C,O),d<c&&(c=d);const[S,j]=a(u.length);l((()=>{j(u.length)}),[u]);const T=p?"error":"active",P=p?"error":f?"disabled":"active";return Wt.jsxs("div",{className:`flex flex-col gap-1 relative ${g}`,"data-test":w,children:[Wt.jsx("label",{htmlFor:e,className:`${gu.label} ${gu[P]} ${o}`,children:n}),Wt.jsx("span",{className:`${gu.description} ${gu[P]}`,children:p?h:s}),"view_only"===t?Wt.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:u}):"not_editable"===t?Wt.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:u}):Wt.jsx("textarea",{..._,id:e,ref:E,className:`${gu.textarea} ${gu[T]} ${m} ${O?"pb-[32px]":""}`,wrap:"soft",value:u,disabled:f,maxLength:v}),O&&Wt.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[S,"/",x]})]})};var vu=function(){this.__data__=[],this.size=0};var yu=function(e,t){return e===t||e!=e&&t!=t},bu=yu;var wu=function(e,t){for(var n=e.length;n--;)if(bu(e[n][0],t))return n;return-1},xu=wu,_u=Array.prototype.splice;var ku=function(e){var t=this.__data__,n=xu(t,e);return!(n<0)&&(n==t.length-1?t.pop():_u.call(t,n,1),--this.size,!0)},Eu=wu;var Ou=function(e){var t=this.__data__,n=Eu(t,e);return n<0?void 0:t[n][1]},Cu=wu;var Nu=function(e){return Cu(this.__data__,e)>-1},Su=wu;var ju=function(e,t){var n=this.__data__,o=Su(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Tu=vu,Pu=ku,Au=Ou,Mu=Nu,Ru=ju;function Iu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Iu.prototype.clear=Tu,Iu.prototype.delete=Pu,Iu.prototype.get=Au,Iu.prototype.has=Mu,Iu.prototype.set=Ru;var Du=Iu,Lu=Du;var qu=function(){this.__data__=new Lu,this.size=0};var Fu=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Vu=function(e){return this.__data__.get(e)};var zu=function(e){return this.__data__.has(e)},Bu="object"==typeof Ft&&Ft&&Ft.Object===Object&&Ft,Hu=Bu,Uu="object"==typeof self&&self&&self.Object===Object&&self,$u=Hu||Uu||Function("return this")(),Wu=$u.Symbol,Gu=Wu,Yu=Object.prototype,Ku=Yu.hasOwnProperty,Zu=Yu.toString,Xu=Gu?Gu.toStringTag:void 0;var Qu=function(e){var t=Ku.call(e,Xu),n=e[Xu];try{e[Xu]=void 0;var o=!0}catch{}var r=Zu.call(e);return o&&(t?e[Xu]=n:delete e[Xu]),r},Ju=Object.prototype.toString;var ec=function(e){return Ju.call(e)},tc=Qu,nc=ec,oc=Wu?Wu.toStringTag:void 0;var rc=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":oc&&oc in Object(e)?tc(e):nc(e)};var ic=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ac=rc,lc=ic;var sc=function(e){if(!lc(e))return!1;var t=ac(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},uc=$u["__core-js_shared__"],cc=function(){var e=/[^.]+$/.exec(uc&&uc.keys&&uc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var dc=function(e){return!!cc&&cc in e},fc=Function.prototype.toString;var pc=function(e){if(null!=e){try{return fc.call(e)}catch{}try{return e+""}catch{}}return""},hc=sc,gc=dc,mc=ic,vc=pc,yc=/^\[object .+?Constructor\]$/,bc=Function.prototype,wc=Object.prototype,xc=bc.toString,_c=wc.hasOwnProperty,kc=RegExp("^"+xc.call(_c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ec=function(e){return!(!mc(e)||gc(e))&&(hc(e)?kc:yc).test(vc(e))};var Oc=function(e,t){return null==e?void 0:e[t]},Cc=Ec,Nc=Oc;var Sc=function(e,t){var n=Nc(e,t);return Cc(n)?n:void 0},jc=Sc($u,"Map"),Tc=Sc(Object,"create"),Pc=Tc;var Ac=function(){this.__data__=Pc?Pc(null):{},this.size=0};var Mc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Rc=Tc,Ic=Object.prototype.hasOwnProperty;var Dc=function(e){var t=this.__data__;if(Rc){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ic.call(t,e)?t[e]:void 0},Lc=Tc,qc=Object.prototype.hasOwnProperty;var Fc=function(e){var t=this.__data__;return Lc?void 0!==t[e]:qc.call(t,e)},Vc=Tc;var zc=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vc&&void 0===t?"__lodash_hash_undefined__":t,this},Bc=Ac,Hc=Mc,Uc=Dc,$c=Fc,Wc=zc;function Gc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Gc.prototype.clear=Bc,Gc.prototype.delete=Hc,Gc.prototype.get=Uc,Gc.prototype.has=$c,Gc.prototype.set=Wc;var Yc=Gc,Kc=Du,Zc=jc;var Xc=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Qc=Xc;var Jc=function(e,t){var n=e.__data__;return Qc(t)?n["string"==typeof t?"string":"hash"]:n.map},ed=Jc;var td=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},nd=Jc;var od=function(e){return nd(this,e).get(e)},rd=Jc;var id=function(e){return rd(this,e).has(e)},ad=Jc;var ld=function(e,t){var n=ad(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},sd=function(){this.size=0,this.__data__={hash:new Yc,map:new(Zc||Kc),string:new Yc}},ud=td,cd=od,dd=id,fd=ld;function pd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}pd.prototype.clear=sd,pd.prototype.delete=ud,pd.prototype.get=cd,pd.prototype.has=dd,pd.prototype.set=fd;var hd=pd,gd=Du,md=jc,vd=hd;var yd=function(e,t){var n=this.__data__;if(n instanceof gd){var o=n.__data__;if(!md||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new vd(o)}return n.set(e,t),this.size=n.size,this},bd=Du,wd=qu,xd=Fu,_d=Vu,kd=zu,Ed=yd;function Od(e){var t=this.__data__=new bd(e);this.size=t.size}Od.prototype.clear=wd,Od.prototype.delete=xd,Od.prototype.get=_d,Od.prototype.has=kd,Od.prototype.set=Ed;var Cd=Od;var Nd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Sd=function(e){return this.__data__.has(e)},jd=hd,Td=Nd,Pd=Sd;function Ad(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jd;++t<n;)this.add(e[t])}Ad.prototype.add=Ad.prototype.push=Td,Ad.prototype.has=Pd;var Md=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var Rd=function(e,t){return e.has(t)},Id=Ad,Dd=Md,Ld=Rd;var qd=function(e,t,n,o,r,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Id:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(o)var m=a?o(g,h,d,t,e,i):o(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Dd(t,(function(e,t){if(!Ld(p,t)&&(h===e||r(h,e,n,o,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!r(h,g,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Fd=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var Vd=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},zd=$u.Uint8Array,Bd=yu,Hd=qd,Ud=Fd,$d=Vd,Wd=Wu?Wu.prototype:void 0,Gd=Wd?Wd.valueOf:void 0;var Yd=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new zd(e),new zd(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bd(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Ud;case"[object Set]":var s=1&o;if(l||(l=$d),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;o|=2,a.set(e,t);var c=Hd(l(e),l(t),o,r,i,a);return a.delete(e),c;case"[object Symbol]":if(Gd)return Gd.call(e)==Gd.call(t)}return!1};var Kd=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},Zd=Array.isArray,Xd=Kd,Qd=Zd;var Jd=function(e,t,n){var o=t(e);return Qd(e)?o:Xd(o,n(e))};var ef=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var tf=ef,nf=function(){return[]},of=Object.prototype.propertyIsEnumerable,rf=Object.getOwnPropertySymbols,af=rf?function(e){return null==e?[]:(e=Object(e),tf(rf(e),(function(t){return of.call(e,t)})))}:nf,lf=af;var sf=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var uf=function(e){return null!=e&&"object"==typeof e},cf=rc,df=uf;var ff=function(e){return df(e)&&"[object Arguments]"==cf(e)},pf=ff,hf=uf,gf=Object.prototype,mf=gf.hasOwnProperty,vf=gf.propertyIsEnumerable,yf=pf(function(){return arguments}())?pf:function(e){return hf(e)&&mf.call(e,"callee")&&!vf.call(e,"callee")},bf=yf,wf={exports:{}};var xf=function(){return!1};!function(e,t){var n=$u,o=xf,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l}(wf,wf.exports);var _f=wf.exports,kf=/^(?:0|[1-9]\d*)$/;var Ef=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&kf.test(e))&&e>-1&&e%1==0&&e<t};var Of=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Cf=rc,Nf=Of,Sf=uf,jf={};jf["[object Float32Array]"]=jf["[object Float64Array]"]=jf["[object Int8Array]"]=jf["[object Int16Array]"]=jf["[object Int32Array]"]=jf["[object Uint8Array]"]=jf["[object Uint8ClampedArray]"]=jf["[object Uint16Array]"]=jf["[object Uint32Array]"]=!0,jf["[object Arguments]"]=jf["[object Array]"]=jf["[object ArrayBuffer]"]=jf["[object Boolean]"]=jf["[object DataView]"]=jf["[object Date]"]=jf["[object Error]"]=jf["[object Function]"]=jf["[object Map]"]=jf["[object Number]"]=jf["[object Object]"]=jf["[object RegExp]"]=jf["[object Set]"]=jf["[object String]"]=jf["[object WeakMap]"]=!1;var Tf=function(e){return Sf(e)&&Nf(e.length)&&!!jf[Cf(e)]};var Pf=function(e){return function(t){return e(t)}},Af={exports:{}};!function(e,t){var n=Bu,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(Af,Af.exports);var Mf=Af.exports,Rf=Tf,If=Pf,Df=Mf&&Mf.isTypedArray,Lf=Df?If(Df):Rf,qf=sf,Ff=bf,Vf=Zd,zf=_f,Bf=Ef,Hf=Lf,Uf=Object.prototype.hasOwnProperty;var $f=function(e,t){var n=Vf(e),o=!n&&Ff(e),r=!n&&!o&&zf(e),i=!n&&!o&&!r&&Hf(e),a=n||o||r||i,l=a?qf(e.length,String):[],s=l.length;for(var u in e)(t||Uf.call(e,u))&&(!a||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Bf(u,s)))&&l.push(u);return l},Wf=Object.prototype;var Gf=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wf)};var Yf=function(e,t){return function(n){return e(t(n))}},Kf=Yf(Object.keys,Object),Zf=Gf,Xf=Kf,Qf=Object.prototype.hasOwnProperty;var Jf=function(e){if(!Zf(e))return Xf(e);var t=[];for(var n in Object(e))Qf.call(e,n)&&"constructor"!=n&&t.push(n);return t},ep=sc,tp=Of;var np=function(e){return null!=e&&tp(e.length)&&!ep(e)},op=$f,rp=Jf,ip=np;var ap=function(e){return ip(e)?op(e):rp(e)},lp=Jd,sp=lf,up=ap;var cp=function(e){return lp(e,up,sp)},dp=cp,fp=Object.prototype.hasOwnProperty;var pp=function(e,t,n,o,r,i){var a=1&n,l=dp(e),s=l.length;if(s!=dp(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:fp.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(o)var v=a?o(m,g,c,t,e,i):o(g,m,c,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p},hp=Sc($u,"DataView"),gp=jc,mp=Sc($u,"Promise"),vp=Sc($u,"Set"),yp=Sc($u,"WeakMap"),bp=rc,wp=pc,xp="[object Map]",_p="[object Promise]",kp="[object Set]",Ep="[object WeakMap]",Op="[object DataView]",Cp=wp(hp),Np=wp(gp),Sp=wp(mp),jp=wp(vp),Tp=wp(yp),Pp=bp;(hp&&Pp(new hp(new ArrayBuffer(1)))!=Op||gp&&Pp(new gp)!=xp||mp&&Pp(mp.resolve())!=_p||vp&&Pp(new vp)!=kp||yp&&Pp(new yp)!=Ep)&&(Pp=function(e){var t=bp(e),n="[object Object]"==t?e.constructor:void 0,o=n?wp(n):"";if(o)switch(o){case Cp:return Op;case Np:return xp;case Sp:return _p;case jp:return kp;case Tp:return Ep}return t});var Ap=Cd,Mp=qd,Rp=Yd,Ip=pp,Dp=Pp,Lp=Zd,qp=_f,Fp=Lf,Vp="[object Arguments]",zp="[object Array]",Bp="[object Object]",Hp=Object.prototype.hasOwnProperty;var Up=function(e,t,n,o,r,i){var a=Lp(e),l=Lp(t),s=a?zp:Dp(e),u=l?zp:Dp(t),c=(s=s==Vp?Bp:s)==Bp,d=(u=u==Vp?Bp:u)==Bp,f=s==u;if(f&&qp(e)){if(!qp(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Ap),a||Fp(e)?Mp(e,t,n,o,r,i):Rp(e,t,s,n,o,r,i);if(!(1&n)){var p=c&&Hp.call(e,"__wrapped__"),h=d&&Hp.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new Ap),r(g,m,n,o,i)}}return!!f&&(i||(i=new Ap),Ip(e,t,n,o,r,i))},$p=Up,Wp=uf;var Gp=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Wp(t)&&!Wp(n)?t!=t&&n!=n:$p(t,n,o,r,e,i))},Yp=Gp;var Kp=function(e,t){return Yp(e,t)},Zp={exports:{}};
20
+ */"production"===process.env.NODE_ENV?Ut.exports=function(){if(Ht)return Wt;Ht=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,o){var a,s={},u=null,c=null;for(a in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,a)&&!l.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===s[a]&&(s[a]=t[a]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return Wt.Fragment=o,Wt.jsx=a,Wt.jsxs=a,Wt}():Ut.exports=(Gt||(Gt=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,w=!1,_=!1,x=!1,k=!1,C=!1;function O(e){return e.displayName||"Context"}function E(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case l:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return O(e)+".Consumer";case a:return O(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:E(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return E(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var N,S,j,T,M,P,A,R=Object.assign,I=0;function D(){}D.__reactDisabledLog=!0;var L,q=v.ReactCurrentDispatcher;function F(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var z,V=!1,B="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||V)return"";var n,o=z.get(e);if(void 0!==o)return o;V=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=q.current,q.current=null,function(){if(0===I){N=console.log,S=console.info,j=console.warn,T=console.error,M=console.group,P=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(l,[])}catch(e){n=e}Reflect.construct(e,[],l)}else{try{l.call()}catch(e){n=e}e.call(l.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),s=n.stack.split("\n"),u=a.length-1,c=s.length-1;u>=1&&c>=0&&a[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(a[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||a[u]!==s[c]){var d="\n"+a[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{V=!1,q.current=r,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:N}),info:R({},e,{value:S}),warn:R({},e,{value:j}),error:R({},e,{value:T}),group:R({},e,{value:M}),groupCollapsed:R({},e,{value:P}),groupEnd:R({},e,{value:A})})}I<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?F(f):"";return"function"==typeof e&&z.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return F(e);switch(e){case c:return F("Suspense");case d:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case f:return U(e.type,t,n);case p:var o=e,r=o._payload,i=o._init;try{return U(i(r),t,n)}catch{}}return""}z=new B;var W=Object.prototype.hasOwnProperty,G={},$=v.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);$.setExtraStackFrame(n)}else $.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,l,a){var s={$$typeof:n,type:e,key:t,ref:o,props:a,_owner:l,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,l={},a=null,s=null;for(i in void 0!==n&&(Q(n),a=""+n),function(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),a=""+t.key),function(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=E(ne.current.type);te[n]||(y('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',E(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)W.call(t,i)&&!oe.hasOwnProperty(i)&&(l[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===l[i]&&(l[i]=u[i])}if(a||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){J||(J=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,c),s&&function(e,t){var n=function(){ee||(ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,c)}return re(e,a,s,r,o,ne.current,l)}var le,ae=v.ReactCurrentOwner,se=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(ae.current){var e=E(ae.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==ae.current&&(o=" It was passed a child from "+E(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&pe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,l=r.call(e);!(i=l.next()).done;)ce(i.value)&&pe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=E(n);!function(e,t,n,o,r){var i=Function.call.bind(W);for(var l in e)if(i(e,l)){var a=void 0;try{if("function"!=typeof e[l]){var s=Error((o||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[l](t,l,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}a&&!(a instanceof Error)&&(K(r),y("%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).",o||"React class",n,l,typeof a),K(null)),a instanceof Error&&!(a.message in G)&&(G[a.message]=!0,K(r),y("Failed %s type: %s",n,a.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,o,g,m,v){var O=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===l||C||e===i||e===c||e===d||k||e===h||w||_||x||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!O){var N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);N+=j||de(),null===e?S="null":Z(e)?S="array":void 0!==e&&e.$$typeof===n?(S="<"+(E(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,N)}var T=ie(e,t,o,m,v);if(null==T)return T;if(O){var M=t.children;if(void 0!==M)if(g)if(Z(M)){for(var P=0;P<M.length;P++)he(M[P],e);Object.freeze&&Object.freeze(M)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(M,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(T):ge(T),T}var ve=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};$t.Fragment=r,$t.jsx=ve,$t.jsxs=ye}()),$t);var Kt=Ut.exports;const Yt=({color:e="primary",dataTest:t,...n})=>Kt.jsx(p,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Zt=({dataTest:e,...t})=>Kt.jsx(h,{...t,"data-test":e});function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xt.apply(this,arguments)}function Qt(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}const Jt=!1;var en="production"!==process.env.NODE_ENV?le.oneOfType([le.number,le.shape({enter:le.number,exit:le.number,appear:le.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&le.oneOfType([le.string,le.shape({enter:le.string,exit:le.string,active:le.string}),le.shape({enter:le.string,enterDone:le.string,enterActive:le.string,exit:le.string,exitDone:le.string,exitActive:le.string})]);const tn=t.createContext(null);var nn="unmounted",on="exited",rn="entering",ln="entered",an="exiting",sn=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=on,o.appearStatus=rn):r=ln:r=t.unmountOnExit||t.mountOnEnter?nn:on,o.state={status:r},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,At(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nn?{status:on}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==rn&&n!==ln&&(t=rn):(n===rn||n===ln)&&(t=an)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===rn){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:se.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===on&&this.setState({status:nn})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[se.findDOMNode(this),o],i=r[0],l=r[1],a=this.getTimeouts(),s=o?a.appear:a.enter;!e&&!n||Jt?this.safeSetState({status:ln},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:rn},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:ln},(function(){t.props.onEntered(i,l)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:se.findDOMNode(this);t&&!Jt?(this.props.onExit(o),this.safeSetState({status:an},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:on},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:on},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:se.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],l=r[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===nn)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Qt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(tn.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function un(){}sn.contextType=tn,sn.propTypes="production"!==process.env.NODE_ENV?{nodeRef:le.shape({current:typeof Element>"u"?le.any:function(e,t,n,o,r,i){var l=e[t];return le.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:le.oneOfType([le.func.isRequired,le.element.isRequired]).isRequired,in:le.bool,mountOnEnter:le.bool,unmountOnExit:le.bool,appear:le.bool,enter:le.bool,exit:le.bool,timeout:function(e){var t=en;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:le.func,onEnter:le.func,onEntering:le.func,onEntered:le.func,onExit:le.func,onExiting:le.func,onExited:le.func}:{},sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:un,onEntering:un,onEntered:un,onExit:un,onExiting:un,onExited:un},sn.UNMOUNTED=nn,sn.EXITED=on,sn.ENTERING=rn,sn.ENTERED=ln,sn.EXITING=an;const cn=sn;function dn(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function fn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function pn(e){if(!fn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=pn(e[n])})),t}function hn(e,t,n={clone:!0}){const o=n.clone?Xt({},e):e;return fn(e)&&fn(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(fn(t[r])&&r in e&&fn(e[r])?o[r]=hn(e[r],t[r],n):n.clone?o[r]=fn(t[r])?pn(t[r]):t[r]:o[r]=t[r])})),o}function gn(e,t,n,o,r){const i=e[t],l=r||t;if(null==i||typeof window>"u")return null;let a;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(a="Did you accidentally use a plain function component for an element instead?"),void 0!==a?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const mn=dn(le.element,gn);mn.isRequired=dn(le.element.isRequired,gn);const vn=mn;function yn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function bn(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const wn=e=>e,_n=(()=>{let e=wn;return{configure(t){e=t},generate:t=>e(t),reset(){e=wn}}})(),xn=_n,kn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Cn(e,t,n="Mui"){const o=kn[t];return o?`${n}-${o}`:`${xn.generate(e)}-${t}`}const On=["values","unit","step"],En=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Xt({},e,{[t.key]:t.val})),{})};const Nn={borderRadius:4},Sn="production"!==process.env.NODE_ENV?le.oneOfType([le.number,le.string,le.object,le.array]):{};function jn(e,t){return t?hn(e,t,{clone:!1}):e}const Tn={xs:0,sm:600,md:900,lg:1200,xl:1536},Mn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tn[e]}px)`};function Pn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Mn;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||Mn;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||Tn).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function An(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Rn(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:An(e,n)||o,t&&(r=t(r,o,e)),r}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=An(e.theme,o)||{};return Pn(e,i,(e=>{let o=Rn(l,r,e);return e===o&&"string"==typeof e&&(o=Rn(l,r,`${t}${"default"===e?"":bn(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:Sn}:{},i.filterProps=[t],i}const Dn={m:"margin",p:"padding"},Ln={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qn[e])return[e];e=qn[e]}const[t,n]=e.split(""),o=Dn[t],r=Ln[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Bn=[...zn,...Vn];function Hn(e,t,n,o){var r;const i=null!=(r=An(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Un(e){return Hn(e,"spacing",8,"spacing")}function Wn(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Gn(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=Wn(t,n),e)),{})}(Fn(n),o);return Pn(e,e[n],r)}function $n(e,t){const n=Un(e.theme);return Object.keys(e).map((o=>Gn(e,t,o,n))).reduce(jn,{})}function Kn(e){return $n(e,zn)}function Yn(e){return $n(e,Vn)}function Zn(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?jn(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xn(e){return"number"!=typeof e?e:`${e}px solid`}Kn.propTypes="production"!==process.env.NODE_ENV?zn.reduce(((e,t)=>(e[t]=Sn,e)),{}):{},Kn.filterProps=zn,Yn.propTypes="production"!==process.env.NODE_ENV?Vn.reduce(((e,t)=>(e[t]=Sn,e)),{}):{},Yn.filterProps=Vn,"production"!==process.env.NODE_ENV&&Bn.reduce(((e,t)=>(e[t]=Sn,e)),{});const Qn=In({prop:"border",themeKey:"borders",transform:Xn}),Jn=In({prop:"borderTop",themeKey:"borders",transform:Xn}),eo=In({prop:"borderRight",themeKey:"borders",transform:Xn}),to=In({prop:"borderBottom",themeKey:"borders",transform:Xn}),no=In({prop:"borderLeft",themeKey:"borders",transform:Xn}),oo=In({prop:"borderColor",themeKey:"palette"}),ro=In({prop:"borderTopColor",themeKey:"palette"}),io=In({prop:"borderRightColor",themeKey:"palette"}),lo=In({prop:"borderBottomColor",themeKey:"palette"}),ao=In({prop:"borderLeftColor",themeKey:"palette"}),so=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Hn(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Wn(t,e)});return Pn(e,e.borderRadius,n)}return null};so.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Sn}:{},so.filterProps=["borderRadius"],Zn(Qn,Jn,eo,to,no,oo,ro,io,lo,ao,so);const uo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Hn(e.theme,"spacing",8,"gap"),n=e=>({gap:Wn(t,e)});return Pn(e,e.gap,n)}return null};uo.propTypes="production"!==process.env.NODE_ENV?{gap:Sn}:{},uo.filterProps=["gap"];const co=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Hn(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Wn(t,e)});return Pn(e,e.columnGap,n)}return null};co.propTypes="production"!==process.env.NODE_ENV?{columnGap:Sn}:{},co.filterProps=["columnGap"];const fo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Hn(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Wn(t,e)});return Pn(e,e.rowGap,n)}return null};fo.propTypes="production"!==process.env.NODE_ENV?{rowGap:Sn}:{},fo.filterProps=["rowGap"];function po(e,t){return"grey"===t?t:e}Zn(uo,co,fo,In({prop:"gridColumn"}),In({prop:"gridRow"}),In({prop:"gridAutoFlow"}),In({prop:"gridAutoColumns"}),In({prop:"gridAutoRows"}),In({prop:"gridTemplateColumns"}),In({prop:"gridTemplateRows"}),In({prop:"gridTemplateAreas"}),In({prop:"gridArea"}));function ho(e){return e<=1&&0!==e?100*e+"%":e}Zn(In({prop:"color",themeKey:"palette",transform:po}),In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:po}),In({prop:"backgroundColor",themeKey:"palette",transform:po}));const go=In({prop:"width",transform:ho}),mo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||Tn[t]||ho(t)}};return Pn(e,e.maxWidth,t)}return null};mo.filterProps=["maxWidth"];const vo=In({prop:"minWidth",transform:ho}),yo=In({prop:"height",transform:ho}),bo=In({prop:"maxHeight",transform:ho}),wo=In({prop:"minHeight",transform:ho});In({prop:"size",cssProperty:"width",transform:ho}),In({prop:"size",cssProperty:"height",transform:ho});Zn(go,mo,vo,yo,bo,wo,In({prop:"boxSizing"}));const _o={border:{themeKey:"borders",transform:Xn},borderTop:{themeKey:"borders",transform:Xn},borderRight:{themeKey:"borders",transform:Xn},borderBottom:{themeKey:"borders",transform:Xn},borderLeft:{themeKey:"borders",transform:Xn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:so},color:{themeKey:"palette",transform:po},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:po},backgroundColor:{themeKey:"palette",transform:po},p:{style:Yn},pt:{style:Yn},pr:{style:Yn},pb:{style:Yn},pl:{style:Yn},px:{style:Yn},py:{style:Yn},padding:{style:Yn},paddingTop:{style:Yn},paddingRight:{style:Yn},paddingBottom:{style:Yn},paddingLeft:{style:Yn},paddingX:{style:Yn},paddingY:{style:Yn},paddingInline:{style:Yn},paddingInlineStart:{style:Yn},paddingInlineEnd:{style:Yn},paddingBlock:{style:Yn},paddingBlockStart:{style:Yn},paddingBlockEnd:{style:Yn},m:{style:Kn},mt:{style:Kn},mr:{style:Kn},mb:{style:Kn},ml:{style:Kn},mx:{style:Kn},my:{style:Kn},margin:{style:Kn},marginTop:{style:Kn},marginRight:{style:Kn},marginBottom:{style:Kn},marginLeft:{style:Kn},marginX:{style:Kn},marginY:{style:Kn},marginInline:{style:Kn},marginInlineStart:{style:Kn},marginInlineEnd:{style:Kn},marginBlock:{style:Kn},marginBlockStart:{style:Kn},marginBlockEnd:{style:Kn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:uo},rowGap:{style:fo},columnGap:{style:co},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ho},maxWidth:{style:mo},minWidth:{transform:ho},height:{transform:ho},maxHeight:{transform:ho},minHeight:{transform:ho},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xo=_o;const ko=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=An(n,a)||{};return u?u(r):Pn(r,t,(t=>{let n=Rn(c,s,t);return t===n&&"string"==typeof t&&(n=Rn(c,s,`${e}${"default"===t?"":bn(t)}`,t)),!1===l?n:{[l]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const l=null!=(o=i.unstable_sxConfig)?o:xo;function a(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),a=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(l[n])s=jn(s,e(n,r,i,l));else{const e=Pn({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=jn(s,e):s[n]=t({sx:r,theme:i})}else s=jn(s,e(n,r,i,l))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(a,s)}return Array.isArray(r)?r.map(a):a(r)}}();ko.filterProps=["sx"];const Co=ko,Oo=["breakpoints","palette","spacing","shape"];function Eo(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,l=Qt(e,Oo),a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=Qt(e,On),i=En(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return Xt({keys:l,values:i,up:a,down:s,between:u,only:function(e){return l.indexOf(e)+1<l.length?u(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):u(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=Un({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=hn({breakpoints:a,direction:"ltr",components:{},palette:Xt({mode:"light"},o),spacing:s,shape:Xt({},Nn,i)},l);return u=t.reduce(((e,t)=>hn(e,t)),u),u.unstable_sxConfig=Xt({},xo,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return Co({sx:e,theme:this})},u}function No(t=null){const n=e.useContext(ae);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const So=Eo();function jo(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=jo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function To(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=jo(e))&&(o&&(o+=" "),o+=t);return o}function Mo(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Po(e){if(e.type)return e;if("#"===e.charAt(0))return Po(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:yn(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:yn(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function Ao(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Ro(e){let t="hsl"===(e=Po(e)).type||"hsla"===e.type?Po(function(e){e=Po(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Ao({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Io(e,t){const n=Ro(e),o=Ro(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Do(e,t){return Xt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lo={black:"#000",white:"#fff"},qo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Vo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Bo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ho={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wo=["mode","contrastThreshold","tonalOffset"],Go={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Lo.white,default:Lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},$o={text:{primary:Lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ko(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Po(e),t=Mo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ao(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=Po(e),t=Mo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ao(e)}(e.main,i)))}function Yo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=Qt(e,Wo),i=e.primary||function(e="light"){return"dark"===e?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:Fo[200],light:Fo[50],dark:Fo[400]}:{main:Fo[500],light:Fo[300],dark:Fo[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:zo[500],light:zo[300],dark:zo[700]}:{main:zo[700],light:zo[400],dark:zo[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[700],light:Ho[500],dark:Ho[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Vo[400],light:Vo[300],dark:Vo[700]}:{main:"#ed6c02",light:Vo[500],dark:Vo[900]}}(t);function d(e){const t=Io(e,$o.text.primary)>=n?$o.text.primary:Go.text.primary;if("production"!==process.env.NODE_ENV){const n=Io(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=Xt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:yn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:yn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ko(e,"light",r,o),Ko(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:$o,light:Go};return"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),hn(Xt({common:Xt({},Lo),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:qo,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:o},p[t]),r)}const Zo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xo(e){return Math.round(1e5*e)/1e5}const Qo={textTransform:"uppercase"},Jo='"Roboto", "Helvetica", "Arial", sans-serif';function er(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=Jo,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Qt(n,Zo);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,r,i)=>Xt({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===Jo?{letterSpacing:`${Xo(r/t)}em`}:{},i,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(a,14,1.75,.4,Qo),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,Qo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hn(Xt({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},m),f,{clone:!1})}function tr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const nr=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],or=["duration","easing","delay"],rr={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ir={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lr(e){return`${Math.round(e)}ms`}function ar(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sr(e){const t=Xt({},rr,e.easing),n=Xt({},ir,e.duration);return Xt({getAutoHeightDuration:ar,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0}=o,a=Qt(o,or);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(l)&&!t(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(a).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:lr(r)} ${i} ${"string"==typeof l?l:lr(l)}`)).join(",")}},e,{easing:t,duration:n})}const ur={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cr=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const dr=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,l=Qt(e,cr);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":yn(18));const a=Yo(o),s=Eo(e);let u=hn(s,{mixins:Do(s.breakpoints,n),palette:a,shadows:nr.slice(),typography:er(a,i),transitions:sr(r),zIndex:Xt({},ur)});if(u=hn(u,l),u=t.reduce(((e,t)=>hn(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=Cn("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=Xt({},xo,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return Co({sx:e,theme:this})},u}(),fr=dr;function pr(){const t=function(e=So){return No(e)}(fr);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t.$$material||t}function hr(e,t){var n,o;const{timeout:r,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=l.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}const gr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mr={entering:{opacity:1},entered:{opacity:1}},vr=e.forwardRef((function(t,n){const o=pr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=cn}=t,b=Qt(t,gr),w=e.useRef(null),_=function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(w,a.ref,n),x=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=x(f),C=x(((e,t)=>{(e=>{e.scrollTop})(e);const n=hr({style:m,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),O=x(d),E=x(g),N=x((e=>{const t=hr({style:m,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),p&&p(e)})),S=x(h);return Kt.jsx(y,Xt({appear:l,in:u,nodeRef:w,onEnter:C,onEntered:O,onEntering:k,onExit:N,onExited:S,onExiting:E,addEndListener:e=>{i&&i(w.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},mr[t],m,a.props.style),ref:_},n))}))}));"production"!==process.env.NODE_ENV&&(vr.propTypes={addEndListener:le.func,appear:le.bool,children:vn.isRequired,easing:le.oneOfType([le.shape({enter:le.string,exit:le.string}),le.string]),in:le.bool,onEnter:le.func,onEntered:le.func,onEntering:le.func,onExit:le.func,onExited:le.func,onExiting:le.func,style:le.object,timeout:le.oneOfType([le.number,le.shape({appear:le.number,enter:le.number,exit:le.number})])});const yr=vr,br=e=>Kt.jsx(g,{TransitionComponent:yr,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),wr=/^[a-z0-9]+(-[a-z0-9]+)*$/,_r=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!xr(i)?null:i}const i=r[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!xr(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!xr(e,n)?null:e}return null},xr=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(wr)||!(t&&""===e.prefix||e.prefix.match(wr))||!e.name.match(wr)),kr=Object.freeze({left:0,top:0,width:16,height:16}),Cr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Or=Object.freeze({...kr,...Cr}),Er=Object.freeze({...Or,body:"",hidden:!1});function Nr(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Er)o in Cr?o in e&&!(o in n)&&(n[o]=Cr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Sr(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(e){i=Nr(o[e]||r[e],i)}return l(t),n.forEach(l),Nr(e,i)}function jr(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,Sr(e,r,i)),n.push(r))}return n}const Tr={provider:"",aliases:{},not_found:{},...kr};function Mr(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Pr(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Mr(e,Tr))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(wr)||"string"!=typeof t.body||!Mr(t,Er))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(wr)||"string"!=typeof r||!n[r]&&!o[r]||!Mr(t,Er))return null}return t}const Ar=Object.create(null);function Rr(e,t){const n=Ar[e]||(Ar[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Ir(e,t){return Pr(t)?jr(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Dr=!1;function Lr(e){return"boolean"==typeof e&&(Dr=e),Dr}function qr(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Dr&&!t&&!e.prefix){let t=!1;return Pr(e)&&(e.prefix="",jr(e,((e,n)=>{n&&function(e,t){const n=_r(e,!0,Dr);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Rr(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!xr({provider:t,prefix:n,name:"a"}))return!1;return!!Ir(Rr(t,n),e)}const Fr=Object.freeze({width:null,height:null}),zr=Object.freeze({...Fr,...Cr}),Vr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Br=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Hr(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(Vr);if(null===o||!o.length)return e;const r=[];let i=o.shift(),l=Br.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");l=!l}}const Ur=/\sid="(\S+)"/g,Wr="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Gr=0;function $r(e,t=Wr){const n=[];let o;for(;o=Ur.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Gr++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Kr=Object.create(null);function Yr(e){return Kr[e]||Kr[""]}function Zr(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Xr=Object.create(null),Qr=["https://api.simplesvg.com","https://api.unisvg.com"],Jr=[];for(;Qr.length>0;)1===Qr.length||Math.random()>.5?Jr.push(Qr.shift()):Jr.push(Qr.pop());function ei(e,t){const n=Zr(t);return null!==n&&(Xr[e]=n,!0)}function ti(e){return Xr[e]}Xr[""]=Zr({resources:["https://api.iconify.design"].concat(Jr)});let ni=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const oi={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ti(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach(((n,s)=>{a+=n.length+1,a>=r&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)})),o.push(l),o},send:(e,t,n)=>{if(!ni)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=ti(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ni(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ri(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let ii=0;var li={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ai(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function g(){"pending"===u&&(u="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==u)return;h();const o=l.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{h(),"pending"===u&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(r)return s=o,void(f.length||(l.length?b():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),c++,d=setTimeout(b,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:a,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}}function si(e){const t={...li,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const l=ai(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(l),l},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function ui(){}const ci=Object.create(null);function di(e,t,n){let o,r;if("string"==typeof e){const t=Yr(e);if(!t)return n(void 0,424),ui;r=t.send;const i=function(e){if(!ci[e]){const t=ti(e);if(!t)return;const n={config:t,redundancy:si(t)};ci[e]=n}return ci[e]}(e);i&&(o=i.redundancy)}else{const t=Zr(e);if(t){o=si(t);const n=Yr(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),ui)}const fi="iconify2",pi="iconify",hi=pi+"-count",gi=pi+"-version",mi=36e5,vi=168;function yi(e,t){try{return e.getItem(t)}catch{}}function bi(e,t,n){try{return e.setItem(t,n),!0}catch{}}function wi(e,t){try{e.removeItem(t)}catch{}}function _i(e,t){return bi(e,hi,t.toString())}function xi(e){return parseInt(yi(e,hi))||0}const ki={local:!0,session:!0},Ci={local:new Set,session:new Set};let Oi=!1;let Ei=typeof window>"u"?{}:window;function Ni(e){const t=e+"Storage";try{if(Ei&&Ei[t]&&"number"==typeof Ei[t].length)return Ei[t]}catch{}ki[e]=!1}function Si(e,t){const n=Ni(e);if(!n)return;const o=yi(n,gi);if(o!==fi){if(o){const e=xi(n);for(let t=0;t<e;t++)wi(n,pi+t.toString())}return bi(n,gi,fi),void _i(n,0)}const r=Math.floor(Date.now()/mi)-vi,i=e=>{const o=pi+e.toString(),i=yi(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}wi(n,o)}};let l=xi(n);for(let t=l-1;t>=0;t--)i(t)||(t===l-1?(l--,_i(n,l)):Ci[e].add(t))}function ji(){if(!Oi){!function(e){Oi=e}(!0);for(const e in ki)Si(e,(e=>{const t=e.data,n=Rr(e.provider,t.prefix);if(!Ir(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Ti(e,t){function n(n){let o;if(!ki[n]||!(o=Ni(n)))return;const r=Ci[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=xi(o),!_i(o,i+1))return;const l={cached:Math.floor(Date.now()/mi),provider:e.provider,data:t};return bi(o,pi+i.toString(),JSON.stringify(l))}Oi||ji(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in ki)Si(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Mi(){}function Pi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else{if(!e.missing.has(l))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:l})}return!1})),i.pending.length!==l&&(n||ri([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Ai=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?_r(e,t,n):e;r&&o.push(r)})),o}(e,!0,Lr()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,l=e.name,a=n[r]||(n[r]=Object.create(null)),s=a[i]||(a[i]=Rr(r,i));let u;u=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const c={provider:r,prefix:i,name:l};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Mi)})),()=>{e=!1}}const r=Object.create(null),i=[];let l,a;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===a&&t===l)return;l=t,a=n,i.push(Rr(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=Rr(t,n),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(o)||(l.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Yr(t))&&r.prepare(t,n,o).forEach((n=>{di(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Ir(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),Ti(e,t)}catch(e){console.error(e)}Pi(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=ii++,r=ri.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):Mi};const Ri=/[\s,]+/;function Ii(e,t){t.split(Ri).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Di(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function Li(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let qi;function Fi(e){return void 0===qi&&function(){try{qi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{qi=null}}(),qi?qi.createHTML(e):e}const zi={...zr,inline:!1},Vi={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Bi={display:"inline-block"},Hi={backgroundColor:"currentColor"},Ui={backgroundColor:"transparent"},Wi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Gi={WebkitMask:Hi,mask:Hi,background:Ui};for(const e in Gi){const t=Gi[e];for(const n in Wi)t[e+n]=Wi[n]}const $i={...zi,inline:!0};function Ki(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Yi=(e,n,o,r)=>{const i=o?$i:zi,l=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in Fr?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),a=n.mode||"svg",s={},u=n.style||{},c={..."svg"===a?Vi:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":l[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Ii(l,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?l[e]=Di(t):"number"==typeof t&&(l[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...Or,...e},o={...zr,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(n?o?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=r.height/2+r.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=r.width,u=r.height;let c,d;null===l?(d=null===a?"1em":"auto"===a?u:a,c=Hr(d,s/u)):(c="auto"===l?s:l,d=null===a?Hr(c,u/s):"auto"===a?u:a);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",c),p("height",d),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:f,body:i}}(e,l),f=d.attributes;if(l.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...u},Object.assign(c,f);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:Fi($r(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:p,width:h,height:g}=e,m="mask"===a||"bg"!==a&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...f,width:h+"",height:g+""});return c.style={...s,"--svg":Li(v),width:Ki(f.width),height:Ki(f.height),...Bi,...m?Hi:Ui,...u},t.createElement("span",c)};if(Lr(!0),function(e,t){Kr[e]=t}("",oi),typeof document<"u"&&typeof window<"u"){ji();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!qr(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;ei(e,o)||console.error(n)}catch{console.error(n)}}}}class Zi extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=_r(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?_r(e,!0,Dr):e;if(t){const e=Rr(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:Ai([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Yi({...Or,...n.data},o,e._inline,e._ref)}}const Xi=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(Zi,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(Zi,o)}));const Qi="_icon_z9w7e_5",Ji=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:l=!1})=>Kt.jsx(Xi,{onClick:r,icon:o,width:e,height:t,className:`${Qi} ${n}`,color:i,vFlip:l}),el=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Kt.jsx(Ji,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r});function pl(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function hl(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function gl(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),vl=e=>Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),_l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),Cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),Ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),El=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),Nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),Sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),jl=({color:e="black",size:t="20",className:n=""})=>Kt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Kt.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Kt.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Kt.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Kt.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),Tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),Ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),Pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),Al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),Rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),Il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),Xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),ea=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),ta=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),na=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Kt.jsx(Ji,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),oa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),ra=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),ia=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),la=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),aa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),sa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),ua=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),ca=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),da=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),fa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),pa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function ha(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const ga=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function ma(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const va=e=>Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),ya=e=>Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function ba(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function wa(e){return Kt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Kt.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Kt.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Kt.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Kt.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function _a(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function xa(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function ka(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}function Ca(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062m0-2.375l.725-.725L15.9 15.2l-.725.725zM5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22m0-2.4l4.25-4.25v-.725H8.65l-4.25 4.25zm0 0l-.725-.725l.375.35zm13.725 0l.725-.725z"})})}function Oa(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062M5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22"})})}function Ea(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1l1-1v-7H19v-2c-1.66 0-3-1.34-3-3"})})}function Na(e){return Kt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kt.jsx("path",{fill:"currentColor",d:"M20 6c.58 0 1.05.2 1.42.59c.38.41.58.86.58 1.41v11c0 .55-.2 1-.58 1.41c-.37.39-.84.59-1.42.59H4c-.58 0-1.05-.2-1.42-.59C2.2 20 2 19.55 2 19V8c0-.55.2-1 .58-1.41C2.95 6.2 3.42 6 4 6h4V4c0-.58.2-1.05.58-1.42C8.95 2.2 9.42 2 10 2h4c.58 0 1.05.2 1.42.58c.38.37.58.84.58 1.42v2zM4 8v11h16V8zm10-2V4h-4v2z"})})}const Sa=e=>Kt.jsx(m,{...e}),ja="_asma-core-ui-button_1r2np_1",Ta={contained:"_contained_1r2np_27",outlined:"_outlined_1r2np_141",text:"_text_1r2np_255",textGray:"_textGray_1r2np_369",textWhite:"_textWhite_1r2np_426",large:"_large_1r2np_79",small:"_small_1r2np_74",medium:"_medium_1r2np_69",error:"_error_1r2np_84",common:"_common_1r2np_27"},Ma=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:l,dataTest:a,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Kt.jsxs("button",{...u,className:To(ja,Ta[e],Ta[d],Ta[n],t),ref:r,"data-test":a,children:[i,o&&Kt.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:c?"8px":"4px",paddingLeft:c?"8px":"4px",paddingRight:c?"8px":"4px"},children:o}),l]})},Pa="_styled-dialog-root_wyr4j_1",Aa="_styled-top-header_wyr4j_6",Ra="_styled-dialog-close_wyr4j_13",Ia="_styled-dialog-info_wyr4j_19",Da="_styled-dialog-label_wyr4j_26",La="_styled-dialog-title_wyr4j_36",qa=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogLabel:r,dialogTitle:i,...l})=>Kt.jsxs(v,{...l,"data-test":n,style:{zIndex:999,...l.style},children:[Kt.jsx("div",{className:Pa,children:Kt.jsxs("div",{className:Aa,children:[Kt.jsxs("div",{className:Ia,children:[r&&Kt.jsx("div",{className:Da,children:r}),i&&Kt.jsx("div",{className:La,children:i})]}),o&&Kt.jsx("div",{className:Ra,children:Kt.jsx(Ma,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:Kt.jsx(Bl,{width:24,height:24}),onClick:e=>{l.onClose&&l.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)"},children:e})})]})}),t]}),Fa="_styled-dialog-actions-root_1mac5_1",za="_styled-dialog-actions_1mac5_1",Va=e=>Kt.jsx(y,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:Fa},children:Kt.jsx("div",{className:To(za,e.className),children:e.children})}),Ba="_styled-dialog-content_d2vki_1",Ha=({children:e,classes:t,className:n,...o})=>Kt.jsx(b,{...o,"data-test":"styled-dialog-content",classes:{...t,root:Ba},className:n,children:e}),Ua="_styled-dialog-title-root_mcspk_1",Wa=({children:e,...t})=>e?Kt.jsx(w,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:Ua},children:e}):null,Ga=e=>Kt.jsx(_,{iconMapping:{success:Kt.jsx(pl,{height:24,width:24,fontSize:"inherit"}),...e.iconMapping},...e}),$a="_styled-alert-title_1yaww_1",Ka=e=>Kt.jsx(x,{...e,classes:{root:To($a,e.className)}}),Ya=({dataTest:e,...t})=>Kt.jsx(k,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),Za=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Kt.jsx(C,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Kt.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Kt.jsx(Bl,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset":{borderWidth:"1px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),Xa={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},Qa=({id:e,variant:t="active",label:l="",labelClassName:a="",description:s="",value:u="",minRows:c=3,maxRows:d=1/0,disabled:f,error:p,errorMessage:h,containerClassName:g="",className:m="",maxLength:v=1/0,counter:y,refLink:b,dataTest:w,counterLimit:_,...x})=>{const k=o(null),C=b||k,O=!(!y||!_),[E,N]=r(!1);i((()=>{N(!0)}),[]),((e,t,o,r,i,l)=>{n((()=>{if(e){const t=l?32:0;e.style.height="auto";const n=20,o=e.scrollHeight-24;Math.ceil(o/n)>r?e.style.height=`${n*r+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,o,r,i,l])})(C.current,u,c,d,E,O),d<c&&(c=d);const[S,j]=r(u.length);i((()=>{j(u.length)}),[u]);const T=p?"error":"active",M=p?"error":f?"disabled":"active";return Kt.jsxs("div",{className:`flex flex-col gap-1 relative ${g}`,"data-test":w,children:[Kt.jsx("label",{htmlFor:e,className:`${Xa.label} ${Xa[M]} ${a}`,children:l}),Kt.jsx("span",{className:`${Xa.description} ${Xa[M]}`,children:p?h:s}),"view_only"===t?Kt.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:u}):"not_editable"===t?Kt.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:u}):Kt.jsx("textarea",{...x,id:e,ref:C,className:`${Xa.textarea} ${Xa[T]} ${m} ${O?"pb-[32px]":""}`,wrap:"soft",value:u,disabled:f,maxLength:v}),O&&Kt.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[S,"/",_]})]})};var Ja=function(){this.__data__=[],this.size=0};var es=function(e,t){return e===t||e!=e&&t!=t},ts=es;var ns=function(e,t){for(var n=e.length;n--;)if(ts(e[n][0],t))return n;return-1},os=ns,rs=Array.prototype.splice;var is=function(e){var t=this.__data__,n=os(t,e);return!(n<0)&&(n==t.length-1?t.pop():rs.call(t,n,1),--this.size,!0)},ls=ns;var as=function(e){var t=this.__data__,n=ls(t,e);return n<0?void 0:t[n][1]},ss=ns;var us=function(e){return ss(this.__data__,e)>-1},cs=ns;var ds=function(e,t){var n=this.__data__,o=cs(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},fs=Ja,ps=is,hs=as,gs=us,ms=ds;function vs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}vs.prototype.clear=fs,vs.prototype.delete=ps,vs.prototype.get=hs,vs.prototype.has=gs,vs.prototype.set=ms;var ys=vs,bs=ys;var ws=function(){this.__data__=new bs,this.size=0};var _s=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var xs=function(e){return this.__data__.get(e)};var ks=function(e){return this.__data__.has(e)},Cs="object"==typeof Vt&&Vt&&Vt.Object===Object&&Vt,Os=Cs,Es="object"==typeof self&&self&&self.Object===Object&&self,Ns=Os||Es||Function("return this")(),Ss=Ns.Symbol,js=Ss,Ts=Object.prototype,Ms=Ts.hasOwnProperty,Ps=Ts.toString,As=js?js.toStringTag:void 0;var Rs=function(e){var t=Ms.call(e,As),n=e[As];try{e[As]=void 0;var o=!0}catch{}var r=Ps.call(e);return o&&(t?e[As]=n:delete e[As]),r},Is=Object.prototype.toString;var Ds=function(e){return Is.call(e)},Ls=Rs,qs=Ds,Fs=Ss?Ss.toStringTag:void 0;var zs=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Fs&&Fs in Object(e)?Ls(e):qs(e)};var Vs=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Bs=zs,Hs=Vs;var Us=function(e){if(!Hs(e))return!1;var t=Bs(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ws=Ns["__core-js_shared__"],Gs=function(){var e=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var $s=function(e){return!!Gs&&Gs in e},Ks=Function.prototype.toString;var Ys=function(e){if(null!=e){try{return Ks.call(e)}catch{}try{return e+""}catch{}}return""},Zs=Us,Xs=$s,Qs=Vs,Js=Ys,eu=/^\[object .+?Constructor\]$/,tu=Function.prototype,nu=Object.prototype,ou=tu.toString,ru=nu.hasOwnProperty,iu=RegExp("^"+ou.call(ru).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var lu=function(e){return!(!Qs(e)||Xs(e))&&(Zs(e)?iu:eu).test(Js(e))};var au=function(e,t){return null==e?void 0:e[t]},su=lu,uu=au;var cu=function(e,t){var n=uu(e,t);return su(n)?n:void 0},du=cu(Ns,"Map"),fu=cu(Object,"create"),pu=fu;var hu=function(){this.__data__=pu?pu(null):{},this.size=0};var gu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},mu=fu,vu=Object.prototype.hasOwnProperty;var yu=function(e){var t=this.__data__;if(mu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return vu.call(t,e)?t[e]:void 0},bu=fu,wu=Object.prototype.hasOwnProperty;var _u=function(e){var t=this.__data__;return bu?void 0!==t[e]:wu.call(t,e)},xu=fu;var ku=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xu&&void 0===t?"__lodash_hash_undefined__":t,this},Cu=hu,Ou=gu,Eu=yu,Nu=_u,Su=ku;function ju(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ju.prototype.clear=Cu,ju.prototype.delete=Ou,ju.prototype.get=Eu,ju.prototype.has=Nu,ju.prototype.set=Su;var Tu=ju,Mu=ys,Pu=du;var Au=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Ru=Au;var Iu=function(e,t){var n=e.__data__;return Ru(t)?n["string"==typeof t?"string":"hash"]:n.map},Du=Iu;var Lu=function(e){var t=Du(this,e).delete(e);return this.size-=t?1:0,t},qu=Iu;var Fu=function(e){return qu(this,e).get(e)},zu=Iu;var Vu=function(e){return zu(this,e).has(e)},Bu=Iu;var Hu=function(e,t){var n=Bu(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Uu=function(){this.size=0,this.__data__={hash:new Tu,map:new(Pu||Mu),string:new Tu}},Wu=Lu,Gu=Fu,$u=Vu,Ku=Hu;function Yu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Yu.prototype.clear=Uu,Yu.prototype.delete=Wu,Yu.prototype.get=Gu,Yu.prototype.has=$u,Yu.prototype.set=Ku;var Zu=Yu,Xu=ys,Qu=du,Ju=Zu;var ec=function(e,t){var n=this.__data__;if(n instanceof Xu){var o=n.__data__;if(!Qu||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ju(o)}return n.set(e,t),this.size=n.size,this},tc=ys,nc=ws,oc=_s,rc=xs,ic=ks,lc=ec;function ac(e){var t=this.__data__=new tc(e);this.size=t.size}ac.prototype.clear=nc,ac.prototype.delete=oc,ac.prototype.get=rc,ac.prototype.has=ic,ac.prototype.set=lc;var sc=ac;var uc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var cc=function(e){return this.__data__.has(e)},dc=Zu,fc=uc,pc=cc;function hc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dc;++t<n;)this.add(e[t])}hc.prototype.add=hc.prototype.push=fc,hc.prototype.has=pc;var gc=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var mc=function(e,t){return e.has(t)},vc=hc,yc=gc,bc=mc;var wc=function(e,t,n,o,r,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new vc:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],g=t[d];if(o)var m=l?o(g,h,d,t,e,i):o(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!yc(t,(function(e,t){if(!bc(p,t)&&(h===e||r(h,e,n,o,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!r(h,g,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var _c=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var xc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},kc=Ns.Uint8Array,Cc=es,Oc=wc,Ec=_c,Nc=xc,Sc=Ss?Ss.prototype:void 0,jc=Sc?Sc.valueOf:void 0;var Tc=function(e,t,n,o,r,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new kc(e),new kc(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Cc(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ec;case"[object Set]":var s=1&o;if(a||(a=Nc),e.size!=t.size&&!s)return!1;var u=l.get(e);if(u)return u==t;o|=2,l.set(e,t);var c=Oc(a(e),a(t),o,r,i,l);return l.delete(e),c;case"[object Symbol]":if(jc)return jc.call(e)==jc.call(t)}return!1};var Mc=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},Pc=Array.isArray,Ac=Mc,Rc=Pc;var Ic=function(e,t,n){var o=t(e);return Rc(e)?o:Ac(o,n(e))};var Dc=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i};var Lc=Dc,qc=function(){return[]},Fc=Object.prototype.propertyIsEnumerable,zc=Object.getOwnPropertySymbols,Vc=zc?function(e){return null==e?[]:(e=Object(e),Lc(zc(e),(function(t){return Fc.call(e,t)})))}:qc,Bc=Vc;var Hc=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var Uc=function(e){return null!=e&&"object"==typeof e},Wc=zs,Gc=Uc;var $c=function(e){return Gc(e)&&"[object Arguments]"==Wc(e)},Kc=$c,Yc=Uc,Zc=Object.prototype,Xc=Zc.hasOwnProperty,Qc=Zc.propertyIsEnumerable,Jc=Kc(function(){return arguments}())?Kc:function(e){return Yc(e)&&Xc.call(e,"callee")&&!Qc.call(e,"callee")},ed=Jc,td={exports:{}};var nd=function(){return!1};!function(e,t){var n=Ns,o=nd,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,l=i&&i.exports===r?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||o;e.exports=a}(td,td.exports);var od=td.exports,rd=/^(?:0|[1-9]\d*)$/;var id=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&rd.test(e))&&e>-1&&e%1==0&&e<t};var ld=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ad=zs,sd=ld,ud=Uc,cd={};cd["[object Float32Array]"]=cd["[object Float64Array]"]=cd["[object Int8Array]"]=cd["[object Int16Array]"]=cd["[object Int32Array]"]=cd["[object Uint8Array]"]=cd["[object Uint8ClampedArray]"]=cd["[object Uint16Array]"]=cd["[object Uint32Array]"]=!0,cd["[object Arguments]"]=cd["[object Array]"]=cd["[object ArrayBuffer]"]=cd["[object Boolean]"]=cd["[object DataView]"]=cd["[object Date]"]=cd["[object Error]"]=cd["[object Function]"]=cd["[object Map]"]=cd["[object Number]"]=cd["[object Object]"]=cd["[object RegExp]"]=cd["[object Set]"]=cd["[object String]"]=cd["[object WeakMap]"]=!1;var dd=function(e){return ud(e)&&sd(e.length)&&!!cd[ad(e)]};var fd=function(e){return function(t){return e(t)}},pd={exports:{}};!function(e,t){var n=Cs,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,l=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l}(pd,pd.exports);var hd=pd.exports,gd=dd,md=fd,vd=hd&&hd.isTypedArray,yd=vd?md(vd):gd,bd=Hc,wd=ed,_d=Pc,xd=od,kd=id,Cd=yd,Od=Object.prototype.hasOwnProperty;var Ed=function(e,t){var n=_d(e),o=!n&&wd(e),r=!n&&!o&&xd(e),i=!n&&!o&&!r&&Cd(e),l=n||o||r||i,a=l?bd(e.length,String):[],s=a.length;for(var u in e)(t||Od.call(e,u))&&(!l||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||kd(u,s)))&&a.push(u);return a},Nd=Object.prototype;var Sd=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Nd)};var jd=function(e,t){return function(n){return e(t(n))}},Td=jd(Object.keys,Object),Md=Sd,Pd=Td,Ad=Object.prototype.hasOwnProperty;var Rd=function(e){if(!Md(e))return Pd(e);var t=[];for(var n in Object(e))Ad.call(e,n)&&"constructor"!=n&&t.push(n);return t},Id=Us,Dd=ld;var Ld=function(e){return null!=e&&Dd(e.length)&&!Id(e)},qd=Ed,Fd=Rd,zd=Ld;var Vd=function(e){return zd(e)?qd(e):Fd(e)},Bd=Ic,Hd=Bc,Ud=Vd;var Wd=function(e){return Bd(e,Ud,Hd)},Gd=Wd,$d=Object.prototype.hasOwnProperty;var Kd=function(e,t,n,o,r,i){var l=1&n,a=Gd(e),s=a.length;if(s!=Gd(t).length&&!l)return!1;for(var u=s;u--;){var c=a[u];if(!(l?c in t:$d.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=l;++u<s;){var g=e[c=a[u]],m=t[c];if(o)var v=l?o(m,g,c,t,e,i):o(g,m,c,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p},Yd=cu(Ns,"DataView"),Zd=du,Xd=cu(Ns,"Promise"),Qd=cu(Ns,"Set"),Jd=cu(Ns,"WeakMap"),ef=zs,tf=Ys,nf="[object Map]",of="[object Promise]",rf="[object Set]",lf="[object WeakMap]",af="[object DataView]",sf=tf(Yd),uf=tf(Zd),cf=tf(Xd),df=tf(Qd),ff=tf(Jd),pf=ef;(Yd&&pf(new Yd(new ArrayBuffer(1)))!=af||Zd&&pf(new Zd)!=nf||Xd&&pf(Xd.resolve())!=of||Qd&&pf(new Qd)!=rf||Jd&&pf(new Jd)!=lf)&&(pf=function(e){var t=ef(e),n="[object Object]"==t?e.constructor:void 0,o=n?tf(n):"";if(o)switch(o){case sf:return af;case uf:return nf;case cf:return of;case df:return rf;case ff:return lf}return t});var hf=sc,gf=wc,mf=Tc,vf=Kd,yf=pf,bf=Pc,wf=od,_f=yd,xf="[object Arguments]",kf="[object Array]",Cf="[object Object]",Of=Object.prototype.hasOwnProperty;var Ef=function(e,t,n,o,r,i){var l=bf(e),a=bf(t),s=l?kf:yf(e),u=a?kf:yf(t),c=(s=s==xf?Cf:s)==Cf,d=(u=u==xf?Cf:u)==Cf,f=s==u;if(f&&wf(e)){if(!wf(t))return!1;l=!0,c=!1}if(f&&!c)return i||(i=new hf),l||_f(e)?gf(e,t,n,o,r,i):mf(e,t,s,n,o,r,i);if(!(1&n)){var p=c&&Of.call(e,"__wrapped__"),h=d&&Of.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new hf),r(g,m,n,o,i)}}return!!f&&(i||(i=new hf),vf(e,t,n,o,r,i))},Nf=Ef,Sf=Uc;var jf=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Sf(t)&&!Sf(n)?t!=t&&n!=n:Nf(t,n,o,r,e,i))},Tf=jf;var Mf=function(e,t){return Tf(e,t)},Pf={exports:{}};
20
21
  /*!
21
22
  * Quill Editor v1.3.7
22
23
  * https://quilljs.com/
23
24
  * Copyright (c) 2014, Jason Chen
24
25
  * Copyright (c) 2013, salesforce.com
25
- */typeof self<"u"&&self;var Xp=Zp.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},u={},c={};function d(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?l[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=d,t.find=f,t.query=p,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new s(t.rest());return u.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),u=o.next(i);if(l.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,c=o&&a(o)?o:[]):c=o&&l(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=d(n(3)),a=d(n(2)),l=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=1,m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(l.default.query(o,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-g)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:y(e.parent,t)}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=m(n(2)),l=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;_.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return _.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,0,n,o,i),u=r(s,4);return e=u[0],l=u[2],i=u[3],_.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=E(r,l,t):0!==o&&(r=E(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function E(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],l=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);d.allowedChildren=[d,a.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(0)).default.Text);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){l(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(l(e)||l(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),f=r(t)}catch{return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=d(n(2)),l=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=l.default.query(o,l.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),l=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){b(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=k(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,y),x=r(w,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===o(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(y({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==f.default.blotName||e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],c=0,d=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(u),p=(new a.default).insert(r.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,g.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function k(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),a=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),g=o(h,2);return r=g[0],s=g[1],d.setEnd(r,s),d.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),m="right"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(r)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a=void 0,l=t.scroll.leaf(e),s=o(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),f=o(d,2);a=f[0],c=f[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch{t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,a,l,s,c){"object"==typeof a&&(l=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p=typeof Buffer<"u";function h(i,l){if(null===i)return null;if(0===l)return i;var g,m;if("object"!=typeof i)return i;if(e(i,t))g=new t;else if(e(i,n))g=new n;else if(e(i,o))g=new o((function(e,t){i.then((function(t){e(h(t,l-1))}),(function(e){t(h(e,l-1))}))}));else if(r.__isArray(i))g=[];else if(r.__isRegExp(i))g=new RegExp(i.source,u(i)),i.lastIndex&&(g.lastIndex=i.lastIndex);else if(r.__isDate(i))g=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(g),g;e(i,Error)?g=Object.create(i):typeof s>"u"?(m=Object.getPrototypeOf(i),g=Object.create(m)):(g=Object.create(s),m=s)}if(a){var v=d.indexOf(i);if(-1!=v)return f[v];d.push(i),f.push(g)}for(var y in e(i,t)&&i.forEach((function(e,t){var n=h(t,l-1),o=h(e,l-1);g.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,l-1);g.add(t)})),i){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),(!b||null!=b.set)&&(g[y]=h(i[y],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(y=0;y<w.length;y++){var x=w[y];(k=Object.getOwnPropertyDescriptor(i,x))&&!k.enumerable&&!c||(g[x]=h(i[x],l-1),k.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(i);for(y=0;y<_.length;y++){var k,E=_[y];(k=Object.getOwnPropertyDescriptor(i,E))&&k.enumerable||(g[E]=h(i[E],l-1),Object.defineProperty(g,E,{enumerable:!1}))}}return g}return typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0),h(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){return"object"==typeof e&&"[object Date]"===i(e)}function l(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=a,r.__isArray=l,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=p(n(0)),l=p(n(8)),s=n(4),u=p(s),c=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return m(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),l=a[0],u=a[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&u>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(v,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){v(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(21)),l=g(n(11)),s=g(n(3)),u=g(n(2)),c=g(n(20)),d=g(n(0)),f=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,p.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=function(e){function t(e,n){v(this,t);var o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},N),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0},O)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),o.addBinding({key:t.keys.DELETE},{collapsed:!1},C),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),o.listen(),o}return b(t,e),i(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=T(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=r(h,2),m=g[0],v=g[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=r(y,2),w=b[0],x=b[1],_=m instanceof d.default.Text?m.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(x):"",E={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed||null!=t.empty&&t.empty!==E.empty||null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,s,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function k(e,t){var n,o=e===_.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===_.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function O(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=l.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function N(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),g=s.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":k(_.keys.LEFT,!1),"embed left shift":k(_.keys.LEFT,!0),"embed right":k(_.keys.RIGHT,!1),"embed right shift":k(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),f=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),l=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(a.default,l.default,u.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",f=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),l=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),l=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),p=new f("font","font-family",c);t.FontStyle=p,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){l(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=f(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=h(n(3)),a=h(n(2)),l=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&C(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&C(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?C(e,w):e.classList.contains("ql-header")?C(e,x):e.classList.contains("ql-size")&&C(e,_)),new f.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(o.index).delete(o.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(o.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=O(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function O(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],l=this.iterator(i);(o=l())&&a<e+t;){var s=o.length();e>a?n(o,e-a,Math.min(t,a+s-e)):n(o,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null==e.domNode[a.DATA_KEY]||null==e.domNode[a.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[a.DATA_KEY]||e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1);function l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&l(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var l=e.substring(e.length-o),s=a(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),l&&s.push([r,l]),f(s),null!=n&&(s=g(s,n)),s=m(s)}function a(e,t){var a;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return a=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[o,t]];var f=d(e,t);if(f){var p=f[0],h=f[1],g=f[2],m=f[3],v=f[4],y=i(p,g),b=i(h,m);return y.concat([[r,v]],b)}return l(e,t)}function l(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var p=r-i,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=l+w,_=(N=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;N<r&&_<i&&e.charAt(N)==t.charAt(_);)N++,_++;if(c[x]=N,N>r)m+=2;else if(_>i)g+=2;else if(h&&(O=l+p-w)>=0&&O<u&&-1!=d[O]&&N>=(E=r-d[O]))return s(e,t,N,_)}for(var k=-b+v;k<=b-y;k+=2){for(var E,O=l+k,C=(E=k==-b||k!=b&&d[O-1]<d[O+1]?d[O+1]:d[O-1]+1)-k;E<r&&C<i&&e.charAt(r-E-1)==t.charAt(i-C-1);)E++,C++;if(d[O]=E,E>r)y+=2;else if(C>i)v+=2;else if(!h){var N;if((x=l+p-k)>=0&&x<u&&-1!=c[x]&&(_=l+(N=c[x])-x,N>=(E=r-E)))return s(e,t,N,_)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=i(r,a),c=i(l,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,a,l=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(l,s+1));){var f=u(e.substring(n),t.substring(s)),p=c(e.substring(0,n),t.substring(0,s));d.length<p+f&&(d=t.substring(s-p,s)+t.substring(s,s+f),o=e.substring(0,n-p),r=e.substring(n+f),i=t.substring(0,s-p),a=t.substring(s+f))}return 2*d.length>=e.length?[o,r,i,a,d]:null}var i,a,l,s,d,f=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));return f||p?(i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],l=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],a=i[2],l=i[3]),[a,l,s,d,i[4]]):null}function f(e){e.push([r,""]);for(var t,i=0,a=0,l=0,s="",d="";i<e.length;)switch(e[i][0]){case o:l++,d+=e[i][1],i++;break;case n:a++,s+=e[i][1],i++;break;case r:a+l>1?(0!==a&&0!==l&&(0!==(t=u(d,s))&&(i-a-l>0&&e[i-a-l-1][0]==r?e[i-a-l-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===a?e.splice(i-l,a+l,[o,d]):0===l?e.splice(i-a,a+l,[n,s]):e.splice(i-a-l,a+l,[n,s],[o,d]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,a=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&f(e)}var p=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===r){var l=o+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var s=t-o,u=[a[0],a[1].slice(0,s)],c=[a[0],a[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=l}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=h(e,t),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return e;if(a[0]!==r)return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),v(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),v(o,i,3)}return e}function m(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===r&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===o&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var s=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&s.push(e[l]);return s}function v(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}p.INSERT=o,p.DELETE=n,p.EQUAL=r,e.exports=p},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn===t&&(!i||l.once)&&(!n||l.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,typeof e<"u"&&(e.exports=a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=b(n(3)),l=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=(0,c.default)("quill:clipboard"),O="__ql-matcher",C=[[Node.TEXT_NODE,U],[Node.TEXT_NODE,z],["br",q],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,H],["li",V],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",F]],N=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){x(this,t);var o=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],C.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];!n.matchVisual&&a===B||o.addMatcher(i,a)})),o}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],u=R(this.container,a,s);return A(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),E.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[O]=e[O]||[],e[O].push(l)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},w({},t,n),o.attributes))}),new l.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function A(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function M(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[O]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new l.default):new l.default}function I(e,t,n){return T(n,e,!0)}function D(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=N[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=S[t])&&(n.attrName===t||n.keyName===t)&&(n=S[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=T(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function q(e,t){return A(t,"\n")||t.insert("\n"),t}function F(){return new l.default}function V(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!A(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}function z(e,t){return A(t,"\n")||(M(e)||t.length()>0&&e.nextSibling&&M(e.nextSibling))&&t.insert("\n"),t}function B(e,t){if(M(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),o.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}function U(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&M(e.parentNode)||null!=e.previousSibling&&M(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&M(e.parentNode)||null!=e.nextSibling&&M(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=D,t.matchBlot=L,t.matchNewline=z,t.matchSpacing=B,t.matchText=U},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,s.default)("quill:toolbar"),m=function(e){function t(e,n){f(this,t);var r,i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");y(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=g.error("Container required for toolbar",i.options),p(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void g.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void g.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(d({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function v(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)v(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?b(n,t,o):v(n,t,o)}})),e.appendChild(n)}))}function b(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=m,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),l=p(n(8)),s=n(43),u=p(s),c=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=o(i,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=I(n(29)),r=n(36),i=n(38),a=n(64),l=I(n(65)),s=I(n(66)),u=n(67),c=I(u),d=n(37),f=n(26),p=n(39),h=n(40),g=I(n(56)),m=I(n(68)),v=I(n(27)),y=I(n(69)),b=I(n(70)),w=I(n(71)),x=I(n(72)),_=I(n(73)),k=n(13),E=I(k),O=I(n(74)),C=I(n(75)),N=I(n(57)),S=I(n(41)),j=I(n(28)),T=I(n(59)),P=I(n(60)),A=I(n(61)),M=I(n(108)),R=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":C.default,"modules/toolbar":N.default,"themes/bubble":M.default,"themes/snow":R.default,"ui/icons":S.default,"ui/picker":j.default,"ui/icon-picker":P.default,"ui/color-picker":T.default,"ui/tooltip":A.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(4)).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(56)).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=n(4),a=l(n(27));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(35)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),s=d(l),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default,Qp=Ft&&Ft.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jp=Ft&&Ft.__assign||function(){return Jp=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Jp.apply(this,arguments)},eh=Ft&&Ft.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o},th=Ft&&Ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},nh=th(t),oh=th(ae),rh=th(Kp),ih=th(Xp),ah=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,a,l,s;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return Qp(t,e),t.prototype.validateProps=function(e){var t;if(nh.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(nh.default.Children.count(e.children)&&"textarea"===(null===(t=nh.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),eh(this.cleanProps,this.dirtyProps).some((function(t){return!rh.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!rh.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(o),lh((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new ih.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?rh.default(e.ops,t.ops):rh.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),lh((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=oh.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return nh.default.Children.count(n)?nh.default.cloneElement(nh.default.Children.only(n),r):o?nh.default.createElement("pre",Jp({},r)):nh.default.createElement("div",Jp({},r))},t.prototype.render=function(){var e;return nh.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,a,l,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;rh.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=ih.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(nh.default.Component);function lh(e){Promise.resolve().then(e)}const sh=Vt(ah),uh={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},ch=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],dh=({dataTest:e,...t})=>Wt.jsxs("div",{className:"relative",children:[t.label&&Wt.jsx("span",{className:"text-custom-grey-06 mb-2 font-sans text-xs font-semibold leading-4","data-test":`label-${e}`,children:t.label}),t.disabled?Wt.jsx(sh,{...t,className:fi("core-ui-rte","core-ui-rte-view-mode",t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Wt.jsx(sh,{...t,className:fi("core-ui-rte","core-ui-rte-edit-mode",t.is_error&&"core-ui-rte-error",t.className),modules:{...uh,...t.modules},formats:{...ch,...t.formats},"data-test":e}),(t.is_error||t.isRequired)&&Wt.jsx("span",{className:fi("core-ui-rte-helper-text",t.is_error&&"core-ui-rte-error"),"data-test":`error-${e}`,children:t.helperText?t.helperText:"Helper text"})]}),fh=({dataTest:e,allowClear:t,...n})=>Wt.jsx(k,{...n,"data-test":e,value:n.value,IconComponent:e=>Wt.jsx(Ml,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:fi(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Wt.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Wt.jsx(ks,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...n.sx}}),ph=e=>Wt.jsx(E,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function hh({dataTest:e,...t}){const[n,o]=a("auto"),r=i(null);return l((()=>{var e,t;const n=(null==(e=r.current)?void 0:e.getBoundingClientRect().height)??0,i=(null==(t=r.current)?void 0:t.getBoundingClientRect().top)??0,a=window.innerHeight-i-n-40;o(a>0?a:"auto")}),[]),Wt.jsx("div",{ref:r,children:Wt.jsx(O,{...t,className:fi("!text-sm",t.className),popupIcon:t.popupIcon||Wt.jsx(Ml,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:fi("select-custom-icon")}),ListboxProps:{style:{maxHeight:"auto"===n?"auto":`${n}px`}},"data-test":e,PaperComponent:({children:t})=>Wt.jsx(C,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginBottom:"24px !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const gh=({dataTest:e,...t})=>{var n,o,r;return Wt.jsx(N,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:fi("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:fi("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},mh=({dataTest:e,...t})=>Wt.jsx(S,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),vh=({dataTest:e,...t})=>Wt.jsx(j,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),yh=({dataTest:e,...t})=>Wt.jsx(T,{"data-test":e,...t}),bh=({children:e,onClick:t,className:n,dataTest:o,style:r})=>Wt.jsx("div",{className:fi("styled-label",n),style:r,onClick:t,"data-test":o,children:e}),wh=({children:e,...t})=>Wt.jsx(P,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Wt.jsx("div",{children:e})});const xh={code:"en-GB",formatDistance:lt,formatLong:{date:st({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:st({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:st({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:dt,localize:pt,match:mt,options:{weekStartsOn:1,firstWeekContainsDate:4}};var _h=function(){return _h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},_h.apply(this,arguments)};function kh(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Eh(e){return"multiple"===e.mode}function Oh(e){return"range"===e.mode}function Ch(e){return"single"===e.mode}var Nh={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Sh=Object.freeze({__proto__:null,formatCaption:function(e,t){return kt(e,"LLLL y",t)},formatDay:function(e,t){return kt(e,"d",t)},formatMonthCaption:function(e,t){return kt(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return kt(e,"cccccc",t)},formatYearCaption:function(e,t){return kt(e,"yyyy",t)}}),jh=Object.freeze({__proto__:null,labelDay:function(e,t,n){return kt(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return kt(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Th=s(void 0);function Ph(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:Nh,formatters:Sh,labels:jh,locale:vt,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},a=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,a=e.toDate;return o?i=Te(o):t&&(i=new Date(t,0,1)),r?a=je(r):n&&(a=new Date(n,11,31)),{fromDate:i?we(i):void 0,toDate:a?we(a):void 0}}(r),l=a.fromDate,s=a.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!l||!s)&&(u="buttons"),(Ch(r)||Eh(r)||Oh(r))&&(o=r.onSelect);var c=_h(_h(_h({},i),r),{captionLayout:u,classNames:_h(_h({},i.classNames),r.classNames),components:_h({},r.components),formatters:_h(_h({},i.formatters),r.formatters),fromDate:l,labels:_h(_h({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:_h(_h({},i.modifiers),r.modifiers),modifiersClassNames:_h(_h({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:_h(_h({},i.styles),r.styles),toDate:s});return t.createElement(Th.Provider,{value:c},e.children)}function Ah(){var e=o(Th);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Mh(e){var n=Ah(),o=n.locale,r=n.classNames,i=n.styles,a=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},a(e.displayMonth,{locale:o}))}function Rh(e){return t.createElement("svg",_h({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function Ih(e){var n,o,r=e.onChange,i=e.value,a=e.children,l=e.caption,s=e.className,u=e.style,c=Ah(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:Rh;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},a),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},l,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function Dh(e){var n,o=Ah(),r=o.fromDate,i=o.toDate,a=o.styles,l=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var f=[];if(function(e,t){ce(2,arguments);var n=de(e),o=de(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var p=Te(r),h=r.getMonth();h<=i.getMonth();h++)f.push(Rt(p,h));else for(p=Te(new Date),h=0;h<=11;h++)f.push(Rt(p,h));var g=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Ih;return t.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=Rt(Te(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:l})},f.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:l}))})))}function Lh(e){var n,o=e.displayMonth,r=Ah(),i=r.fromDate,a=r.toDate,l=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!i)return t.createElement(t.Fragment,null);if(!a)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),g=a.getFullYear(),m=h;m<=g;m++)p.push(Dt(Pe(new Date),m));var v=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Ih;return t.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=Dt(Te(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:l})},p.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:l}))})))}function qh(){var e=Ah(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,a=e.fromDate,l=e.numberOfMonths,s=void 0===l?1:l;return i&&Ne(i,r)<0&&(r=pe(i,-1*(s-1))),a&&Ne(r,a)<0&&(r=a),Te(r)}(e),n=function(e,t){var n=a(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=Te(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var Fh=s(void 0);function Vh(e){var n=Ah(),o=qh(),r=o[0],i=o[1],a=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=Te(e),i=Ne(Te(pe(r,o)),r),a=[],l=0;l<i;l++){var s=pe(r,l);a.push(s)}return n&&(a=a.reverse()),a}(r,n),l=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,a=o?i:1,l=Te(e);if(!n)return pe(l,a);if(!(Ne(n,e)<i))return pe(l,a)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,a=Te(e);if(!n)return pe(a,-i);if(!(Ne(a,n)<=0))return pe(a,-i)}}(r,n),u=function(e){return a.some((function(t){return At(e,t)}))},c={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:function(e,t){u(e)||(t&&Tt(e,t)?i(pe(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:l,isDateDisplayed:u};return t.createElement(Fh.Provider,{value:c},e.children)}function zh(){var e=o(Fh);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Bh(e){var n,o=Ah(),r=o.classNames,i=o.styles,a=o.components,l=zh().goToMonth,s=function(t){l(pe(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==a?void 0:a.CaptionLabel)&&void 0!==n?n:Mh,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(Dh,{onChange:s,displayMonth:e.displayMonth}),t.createElement(Lh,{onChange:s,displayMonth:e.displayMonth}))}function Hh(e){return t.createElement("svg",_h({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function Uh(e){return t.createElement("svg",_h({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var $h=n((function(e,n){var o=Ah(),r=o.classNames,i=o.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var l=a.join(" "),s=_h(_h({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",_h({},e,{ref:n,type:"button",className:l,style:s}))}));function Wh(e){var n,o,r=Ah(),i=r.dir,a=r.locale,l=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var p=c(e.previousMonth,{locale:a}),h=[l.nav_button,l.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[l.nav_button,l.nav_button_next].join(" "),v=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:Uh,y=null!==(o=null==f?void 0:f.IconLeft)&&void 0!==o?o:Hh;return t.createElement("div",{className:l.nav,style:s.nav},!e.hidePrevious&&t.createElement($h,{name:"previous-month","aria-label":p,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(v,{className:l.nav_icon,style:s.nav_icon}):t.createElement(y,{className:l.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement($h,{name:"next-month","aria-label":g,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(y,{className:l.nav_icon,style:s.nav_icon}):t.createElement(v,{className:l.nav_icon,style:s.nav_icon})))}function Gh(e){var n=Ah().numberOfMonths,o=zh(),r=o.previousMonth,i=o.nextMonth,a=o.goToMonth,l=o.displayMonths,s=l.findIndex((function(t){return At(e.displayMonth,t)})),u=0===s,c=s===l.length-1,d=n>1&&(u||!c),f=n>1&&(c||!u);return t.createElement(Wh,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){i&&a(i)}})}function Yh(e){var n,o,r=Ah(),i=r.classNames,a=r.disableNavigation,l=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:Mh;return o=a?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(Bh,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(Bh,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(Gh,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(Gh,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:l.caption},o)}function Kh(e){var n=Ah(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function Zh(){var e=Ah(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,l=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?ve(new Date):me(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var a=fe(o,i);r.push(a)}return r}(i,a,l);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function Xh(){var e,n=Ah(),o=n.classNames,r=n.styles,i=n.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:Zh;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(a,null))}function Qh(e){var n=Ah(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var Jh=s(void 0);function eg(e){if(!Eh(e.initialProps)){return t.createElement(Jh.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(tg,{initialProps:e.initialProps,children:e.children})}function tg(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,a=n.max,l={disabled:[]};r&&l.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return Oe(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var l,s;if((null===(l=n.onDayClick)||void 0===l||l.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!a||(null==r?void 0:r.length)!==a)){var u=r?kh([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return Oe(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:l};return t.createElement(Jh.Provider,{value:s},o)}function ng(){var e=o(Jh);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var og,rg=s(void 0);function ig(e){if(!Oh(e.initialProps)){return t.createElement(rg.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(ag,{initialProps:e.initialProps,children:e.children})}function ag(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},a=i.from,l=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],l?(c.range_end=[l],Oe(a,l)||(c.range_middle=[{after:a,before:l}])):c.range_end=[a]):l&&(c.range_start=[l],c.range_end=[l]),s&&(a&&!l&&c.disabled.push({after:Mt(a,s-1),before:fe(a,s-1)}),a&&l&&c.disabled.push({after:a,before:fe(a,s-1)}),!a&&l&&c.disabled.push({after:Mt(l,s-1),before:fe(l,s-1)})),u){if(a&&!l&&(c.disabled.push({before:fe(a,1-u)}),c.disabled.push({after:fe(a,u-1)})),a&&l){var d=u-(_e(l,a)+1);c.disabled.push({before:Mt(a,d)}),c.disabled.push({after:fe(l,d)})}!a&&l&&(c.disabled.push({before:fe(l,1-u)}),c.disabled.push({after:fe(l,u-1)}))}return t.createElement(rg.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,a;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var l=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?Oe(r,e)&&Oe(o,e)?void 0:Oe(r,e)?{from:r,to:void 0}:Oe(o,e)?void 0:jt(o,e)?{from:e,to:r}:{from:o,to:e}:r?jt(e,r)?{from:r,to:e}:{from:e,to:r}:o?Tt(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(a=n.onSelect)||void 0===a||a.call(n,l,e,t,o)},modifiers:c}},o)}function lg(){var e=o(rg);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function sg(e){return Array.isArray(e)?kh([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(og||(og={}));var ug=og.Selected,cg=og.Disabled,dg=og.Hidden,fg=og.Today,pg=og.RangeEnd,hg=og.RangeMiddle,gg=og.RangeStart,mg=og.Outside;var vg=s(void 0);function yg(e){var n=Ah(),o=function(e,t,n){var o,r=((o={})[ug]=sg(e.selected),o[cg]=sg(e.disabled),o[dg]=sg(e.hidden),o[fg]=[e.today],o[pg]=[],o[hg]=[],o[gg]=[],o[mg]=[],o);return e.fromDate&&r[cg].push({before:e.fromDate}),e.toDate&&r[cg].push({after:e.toDate}),Eh(e)?r[cg]=r[cg].concat(t.modifiers[cg]):Oh(e)&&(r[cg]=r[cg].concat(n.modifiers[cg]),r[gg]=n.modifiers[gg],r[hg]=n.modifiers[hg],r[pg]=n.modifiers[pg]),r}(n,ng(),lg()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=sg(o)})),t}(n.modifiers),i=_h(_h({},o),r);return t.createElement(vg.Provider,{value:i},e.children)}function bg(){var e=o(vg);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function wg(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return Ce(e)}(t))return Oe(e,t);if(function(e){return Array.isArray(e)&&e.every(Ce)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(_e(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),_e(e,o)>=0&&_e(r,e)>=0):r?Oe(r,e):!!o&&Oe(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=_e(t.before,e)>0,o=_e(t.after,e)<0;return jt(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?_e(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?_e(t.before,e)>0:"function"==typeof t&&t(e)}))}function xg(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return wg(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!At(e,n)&&(r.outside=!0),r}var _g=365;function kg(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,a=t.retry,l=void 0===a?{count:0,lastFocused:e}:a,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,f={day:fe,week:ke,month:pe,year:Ee,startOfWeek:function(e){return r.ISOWeek?ve(e):me(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?Me(e):Ae(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?f=function(e){var t,n;if(ce(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==se(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=de(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,f]):"after"===o&&c&&(f=function(e){var t,n;if(ce(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==se(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=de(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,f]));var p=!0;if(i){var h=xg(f,i);p=!h.disabled&&!h.hidden}return p?f:l.count>_g?l.lastFocused:kg(f,{moveBy:n,direction:o,context:r,modifiers:i,retry:_h(_h({},l),{count:l.count+1})})}var Eg=s(void 0);function Og(e){var n=zh(),o=bg(),r=a(),i=r[0],l=r[1],s=a(),u=s[0],c=s[1],d=function(e,t){for(var n,o,r=Te(e[0]),i=je(e[e.length-1]),a=r;a<=i;){var l=xg(a,t);if(l.disabled||l.hidden)a=fe(a,1);else{if(l.selected)return a;l.today&&!o&&(o=a),n||(n=a),a=fe(a,1)}}return o||n}(n.displayMonths,o),f=i??(u&&n.isDateDisplayed(u))?u:d,p=function(e){l(e)},h=Ah(),g=function(e,t){if(i){var r=kg(i,{moveBy:e,direction:t,context:h,modifiers:o});Oe(i,r)||(n.goToDate(r,i),p(r))}},m={focusedDay:i,focusTarget:f,blur:function(){c(i),l(void 0)},focus:p,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return t.createElement(Eg.Provider,{value:m},e.children)}function Cg(){var e=o(Eg);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Ng=s(void 0);function Sg(e){if(!Ch(e.initialProps)){return t.createElement(Ng.Provider,{value:{selected:void 0}},e.children)}return t.createElement(jg,{initialProps:e.initialProps,children:e.children})}function jg(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,a;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(a=n.onSelect)||void 0===a||a.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(Ng.Provider,{value:r},o)}function Tg(){var e=o(Ng);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Pg(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(og).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function Ag(e,n,o){var r,i,a,s=Ah(),u=Cg(),c=function(e,t){return xg(e,bg(),t)}(e,n),d=function(e,t){var n=Ah(),o=Tg(),r=ng(),i=lg(),a=Cg(),l=a.focusDayAfter,s=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,p=a.focusMonthBefore,h=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,v=a.focusStartOfWeek,y=a.focusEndOfWeek;return{onClick:function(a){var l,s,u,c;Ch(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Eh(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,a):Oh(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,a):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,a)},onFocus:function(o){var r;f(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():p();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():h();break;case"Home":o.preventDefault(),o.stopPropagation(),v();break;case"End":o.preventDefault(),o.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,c),f=function(){var e=Ah(),t=Tg(),n=ng(),o=lg();return Ch(e)?t.selected:Eh(e)?n.selected:Oh(e)?o.selected:void 0}(),p=!(!s.onDayClick&&"default"===s.mode);l((function(){var t;c.outside||u.focusedDay&&p&&Oe(u.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[u.focusedDay,e,o,p,c.outside]);var h=Pg(s,c).join(" "),g=function(e,t){var n=_h({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=_h(_h({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(s,c),m=!!(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(a=null===(i=s.components)||void 0===i?void 0:i.DayContent)&&void 0!==a?a:Qh,y={style:g,className:h,children:t.createElement(v,{date:e,displayMonth:n,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&Oe(u.focusTarget,e)&&!c.outside,w=u.focusedDay&&Oe(u.focusedDay,e),x=_h(_h(_h({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),d);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function Mg(e){var n=i(null),o=Ag(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement($h,_h({name:"day",ref:n},o.buttonProps)):t.createElement("div",_h({},o.divProps))}function Rg(e){var n=e.number,o=e.dates,r=Ah(),i=r.onWeekNumberClick,a=r.styles,l=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:l.weeknumber,style:a.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement($h,{name:"week-number","aria-label":d,className:l.weeknumber,style:a.weeknumber,onClick:function(e){i(n,o,e)}},c)}function Ig(e){var n,o,r,i=Ah(),a=i.styles,l=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:Mg,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:Rg;return s&&(r=t.createElement("td",{className:l.cell,style:a.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:l.row,style:a.row},r,e.dates.map((function(n){return t.createElement("td",{className:l.cell,style:a.cell,key:Ot(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function Dg(e,t,n){for(var o=null!=n&&n.ISOWeek?Me(t):Ae(t,n),r=null!=n&&n.ISOWeek?ve(e):me(e,n),i=_e(o,r),a=[],l=0;l<=i;l++)a.push(fe(r,l));var s=a.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){ce(1,arguments);var t=de(e),n=ve(t).getTime()-ye(t).getTime();return Math.round(n/Et)+1}(t):function(e,t){ce(1,arguments);var n=de(e),o=me(n,t).getTime()-Ct(n,t).getTime();return Math.round(o/Nt)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function Lg(e){var n,o,r,i=Ah(),a=i.locale,l=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,p=i.firstWeekContainsDate,h=i.ISOWeek,g=function(e,t){var n=Dg(Te(e),je(e),t);if(null!=t&&t.useFixedWeeks){var o=St(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],a=ke(i,6-o),l=Dg(ke(i,1),a,t);n.push.apply(n,l)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:Xh,v=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:Ig,y=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:Kh;return t.createElement("table",{id:e.id,className:l.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(m,null),t.createElement("tbody",{className:l.tbody,style:s.tbody},g.map((function(n){return t.createElement(v,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(y,{displayMonth:e.displayMonth}))}var qg=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Fg=!1,Vg=0;function zg(){return"react-day-picker-".concat(++Vg)}function Bg(n){var o,r,i=Ah(),a=i.dir,l=i.classNames,s=i.styles,u=i.components,c=zh().displayMonths,d=function(t){var n,o=t??(Fg?zg():null),r=e.useState(o),i=r[0],a=r[1];return qg((function(){null===i&&a(zg())}),[]),e.useEffect((function(){!1===Fg&&(Fg=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),f=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,p=[l.month],h=s.month,g=0===n.displayIndex,m=n.displayIndex===c.length-1,v=!g&&!m;"rtl"===a&&(m=(o=[g,m])[0],g=o[1]),g&&(p.push(l.caption_start),h=_h(_h({},h),s.caption_start)),m&&(p.push(l.caption_end),h=_h(_h({},h),s.caption_end)),v&&(p.push(l.caption_between),h=_h(_h({},h),s.caption_between));var y=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:Yh;return t.createElement("div",{key:n.displayIndex,className:p.join(" "),style:h},t.createElement(y,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(Lg,{id:f,"aria-labelledby":d,displayMonth:n.displayMonth}))}function Hg(e){var n=e.initialProps,o=Ah(),r=Cg(),i=zh(),s=a(!1),u=s[0],c=s[1];l((function(){o.initialFocus&&r.focusTarget&&(u||(r.focus(r.focusTarget),c(!0)))}),[o.initialFocus,u,r.focus,r.focusTarget,r]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=_h(_h({},o.styles.root),o.style),p=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return _h(_h({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",_h({className:d.join(" "),style:f,dir:o.dir,id:o.id},p),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(Bg,{key:n,displayIndex:n,displayMonth:e})}))))}function Ug(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(Ph,{initialProps:o},t.createElement(Vh,null,t.createElement(Sg,{initialProps:o},t.createElement(eg,{initialProps:o},t.createElement(ig,{initialProps:o},t.createElement(yg,null,t.createElement(Og,null,n)))))))}function $g(e){return t.createElement(Ug,_h({},e),t.createElement(Hg,{initialProps:e}))}const Wg="object"==typeof global&&global&&global.Object===Object&&global;var Gg="object"==typeof self&&self&&self.Object===Object&&self;const Yg=(Wg||Gg||Function("return this")()).Symbol;var Kg=Object.prototype,Zg=Kg.hasOwnProperty,Xg=Kg.toString,Qg=Yg?Yg.toStringTag:void 0;var Jg=Object.prototype.toString;var em="[object Null]",tm="[object Undefined]",nm=Yg?Yg.toStringTag:void 0;function om(e){return null==e?void 0===e?tm:em:nm&&nm in Object(e)?function(e){var t=Zg.call(e,Qg),n=e[Qg];try{e[Qg]=void 0;var o=!0}catch{}var r=Xg.call(e);return o&&(t?e[Qg]=n:delete e[Qg]),r}(e):function(e){return Jg.call(e)}(e)}var rm="[object Symbol]";const im=Array.isArray;var am=1/0,lm=Yg?Yg.prototype:void 0,sm=lm?lm.toString:void 0;function um(e){if("string"==typeof e)return e;if(im(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,um)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&om(e)==rm}(e))return sm?sm.call(e):"";var t=e+"";return"0"==t&&1/e==-am?"-0":t}function cm(e){return null==e?"":um(e)}function dm(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var fm=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function pm(e){return fm.test(e)}var hm="\\ud800-\\udfff",gm="["+hm+"]",mm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vm="\\ud83c[\\udffb-\\udfff]",ym="[^"+hm+"]",bm="(?:\\ud83c[\\udde6-\\uddff]){2}",wm="[\\ud800-\\udbff][\\udc00-\\udfff]",xm="(?:"+mm+"|"+vm+")"+"?",_m="[\\ufe0e\\ufe0f]?",km=_m+xm+("(?:\\u200d(?:"+[ym,bm,wm].join("|")+")"+_m+xm+")*"),Em="(?:"+[ym+mm+"?",mm,bm,wm,gm].join("|")+")",Om=RegExp(vm+"(?="+vm+")|"+Em+km,"g");function Cm(e){return pm(e)?function(e){return e.match(Om)||[]}(e):function(e){return e.split("")}(e)}var Nm=function(e){return function(t){var n=pm(t=cm(t))?Cm(t):void 0,o=n?n[0]:t.charAt(0),r=n?dm(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const Sm=Nm;function jm(e){return Sm(cm(e).toLowerCase())}const Tm=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:a})=>{const{goToMonth:l,nextMonth:s,previousMonth:u}=zh(),c=im(n)?!n.length:Ce(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Wt.jsxs("div",{style:{marginTop:"8px",display:"flex",justifyContent:"space-between",marginRight:"12px"},children:[Wt.jsx(au,{variant:"text",onClick:e=>{a?a():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",style:{minWidth:"60px"},startIcon:Wt.jsx(Ml,{icon:"ph:eraser-duotone",width:24,height:24})}),Wt.jsxs("div",{className:"rdp-custom-caption-navigation",style:{display:"flex",gap:"4px"},children:[Wt.jsx(au,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&l(u),startIcon:Wt.jsx(Vl,{})}),Wt.jsx(au,{size:"small",disabled:i&&At(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",children:t?"I dag":"Today"}),Wt.jsx(au,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&l(s),startIcon:Wt.jsx(Fl,{})})]}),Wt.jsx(au,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",style:{minWidth:"60px"},children:t?"Velg":"Select"})]})};function Pm(e){const{month:t}=e;return Wt.jsx("div",{className:"rdp-custom-caption",style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"30px",marginLeft:"16px"},children:t&&Wt.jsx(Yh,{displayMonth:t})})}const Am=e=>Wt.jsx(A,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Mm=e=>{const{caption:t,children:n}=e,{goToMonth:o}=zh(),{month:r}=Ah(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Wt.jsx(Am,{style:{width:"105px",marginLeft:"-5px"},children:Wt.jsx(fh,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Rt(r,Number(a)))},MenuProps:{className:"styled-calendar-picker-select-period-menu"},children:null==i?void 0:i.map((e=>Wt.jsx(ph,{value:e.label,children:jm(e.label)},e.id)))})})},Rm=e=>{const{caption:t,children:n}=e,{goToMonth:o}=zh(),{month:r}=Ah(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Wt.jsx(Am,{style:{width:"70px",marginLeft:"5px"},children:Wt.jsx(fh,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Dt(r,Number(a)))},MenuProps:{className:"styled-calendar-picker-select-period-menu"},children:null==i?void 0:i.map((e=>Wt.jsx(ph,{value:e.label,children:e.label},e.id)))})})},Im=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:l,disabledDays:s,onClear:u}=e,{open:c,anchorEl:d,onClose:f}=t,[p,h]=a(new Date(Date.now())),g="nb"===(null==r?void 0:r.code),m=(l||1)<2;return Wt.jsx(M,{open:c,anchorEl:d,onClose:f,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Wt.jsx($g,{disabled:s,month:p,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||xh,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"styled-calendar-day-picker",classNames:{months:"months",month:"month",caption:"caption",caption_label:"caption_label",nav:"nav",nav_button:"nav_button",nav_button_previous:"nav_button_previous",nav_button_next:"nav_button_next",head_row:"head_row",head_cell:"head_cell",row:"row",cell:"cell",day:"day",day_today:"day_today",day_selected:"day_selected",day_outside:"day_outside",day_disabled:"day_disabled",day_range_middle:"day_range_middle",day_hidden:"day_hidden",caption_end:m?"":"caption_end"},components:{Caption:e=>Wt.jsx(Pm,{...e,setMonth:h,month:p,isNb:g}),Dropdown:e=>"months"===e.name?Wt.jsx(Mm,{...e}):Wt.jsx(Rm,{...e})},footer:Wt.jsx(Tm,{onClose:f,isNb:g,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:p,onClear:u}),...e})})},Dm=(e,t="dd.MM.yy")=>e?kt(e,t):"",Lm=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:a,onClick:l,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:f}=e;if("range"!==e.mode)return null;const p=Dm(null==(t=e.selected)?void 0:t.from,d),h=Dm(null==(n=e.selected)?void 0:n.to,d),g=null!=(o=e.selected)&&o.from?e.selected.to?`${p} - ${h}`:p:"";return Wt.jsx(hu,{dataTest:r,placeholder:i,label:f,size:"small",onClick:e=>!a&&l(e),InputProps:{endAdornment:Wt.jsx(Zs,{width:24,height:24})},value:g,disabled:!!a,className:s,style:{width:"240px"},allowClear:c,onClear:()=>{null==u||u()}})},qm=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:a,placeholderFrom:l,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:f}=e;if("range"!==e.mode)return null;const p=Dm(null==(t=e.selected)?void 0:t.from,u),h=Dm(null==(n=e.selected)?void 0:n.to,u);return Wt.jsxs("div",{"data-test":o,className:fi(r,"styled-date-picker-input-range-compact",a&&"range-compact-disabled"),onClick:e=>!a&&c(e),children:[Wt.jsx(hu,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:l,value:p,disabled:!!a,className:i,style:{width:"144px"},InputProps:{endAdornment:Wt.jsx(Zs,{width:24,height:24})}}),Wt.jsx(hu,{label:f,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!a,className:i,style:{width:"144px"},InputProps:{endAdornment:Wt.jsx(Zs,{width:24,height:24})}})]})},Fm=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:a,allowClear:l,dateFormat:s,error:u=!1,helperText:c}=e;return"single"!==e.mode?null:Wt.jsx(hu,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Wt.jsx(Zs,{width:24,height:24})},value:Dm(e.selected,s),disabled:!!o,className:i,style:{width:"144px"},allowClear:l,onClear:()=>{null==a||a()},label:e.label,error:u,helperText:c})},Vm=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Wt.jsx(Lm,{...e,onClick:e.onClick}):n?Wt.jsx(qm,{...e,onClick:e.onClick}):Wt.jsx(Fm,{...e,onClick:e.onClick})},zm=e=>{const[t,n]=a(null),[o,r]=a(!1);return Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(Vm,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Wt.jsx(Im,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function Bm(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const Hm={};const Um={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function $m({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:o}){const r=i(!0);l((()=>(r.current=!0,()=>{r.current=!1})),[]);const[s,c]=a(Um),d=u((e=>{r.current&&c(e)}),[]),f=u((e=>d((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),p=Bm((e=>(s.isOpen?m(e):h(e),s))),h=Bm((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void d((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){Hm[e]||(Hm[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==o?void 0:o.currentTarget):r&&(a.anchorEl=r),a};d((e=>e._deferNextOpen?(setTimeout((()=>d(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),g=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},m=Bm((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?d((e=>e._deferNextClose?(setTimeout((()=>d(g)),0),{...e,_deferNextClose:!1}):g(e))):d((e=>({...e,_deferNextClose:!0})))})),v=u(((e,t)=>{e?h(t):m(t)}),[]),y=Bm((e=>{const{relatedTarget:t}=e;d((e=>!e.hovered||t instanceof Element&&Km(t,x)?e:e.focused?{...e,hovered:!1}:g(e)))})),b=Bm((e=>{if(!e)return;const{relatedTarget:t}=e;d((e=>!e.focused||t instanceof Element&&Km(t,x)?e:e.hovered?{...e,focused:!1}:g(e)))})),w=u((e=>d((t=>({...t,_childPopupState:e})))),[]),x={...s,setAnchorEl:f,popupId:t,variant:n,open:h,close:m,toggle:p,setOpen:v,onBlur:b,onMouseLeave:y,disableAutoFocus:o??!(!s.hovered&&!s.focused),_setChildPopupState:w};return x}function Wm({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function Gm(e){return{...Wm(e),onClick:e.open,onTouchStart:e.open}}function Ym({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function Km(e,t){const{anchorEl:n,_childPopupState:o}=t;return Zm(n,e)||Zm(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&Km(e,o)}function Zm(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function Xm({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e($m({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}Xm.propTypes={children:ie.func.isRequired,popupId:ie.string,variant:ie.oneOf(["popover","popper"]).isRequired,parentPopupState:ie.object,disableAutoFocus:ie.bool};const Qm=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,a=r?o.getHours():o.getMinutes();return Wt.jsx("div",{className:"styled-time-picker-root_column",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,l=t&&i===(r?function(e){return ce(1,arguments),de(e).getHours()}(t):function(e){return ce(1,arguments),de(e).getMinutes()}(t)),s=a==i;return Wt.jsx("div",{className:fi("styled-time-picker-root_cell",l&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(It(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},Jm=({value:e,onSelect:t,dataTest:n})=>{const o=i(null);return l((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Wt.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Wt.jsx(Qm,{type:"hours",value:e,onSelect:t}),Wt.jsx(Qm,{type:"minutes",value:e,onSelect:t})]})},ev=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Wt.jsx(R,{...Ym(t),transition:!0,style:{zIndex:"1300",position:"absolute",top:"2px"},children:({TransitionProps:e})=>Wt.jsx(I,{...e,timeout:350,children:Wt.jsxs(C,{style:{paddingBottom:"1px"},children:[Wt.jsx(Jm,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Wt.jsxs("div",{style:{display:"flex",marginTop:"12px",marginBottom:"12px",justifyContent:"space-between"},children:[Wt.jsx(au,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",style:{minWidth:"40px",marginLeft:"10px"},startIcon:Wt.jsx(Ml,{icon:"ph:eraser-duotone",width:24,height:24})}),Wt.jsx(au,{size:"small",onClick:()=>t.close(),dataTest:"select-time",style:{minWidth:"40px",marginRight:"16px"},startIcon:Wt.jsx(Ml,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},tv=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Wt.jsx(Il,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),nv=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Wt.jsx("span",{style:{position:"absolute"},children:r})},ov=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:a,helperText:l,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:f,localValue:p}=e;return Wt.jsx(hu,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!f||a,helperText:Wt.jsx(nv,{isValidTime:f,error:a,localization:u,helperText:l}),onChange:d,InputProps:{endAdornment:Wt.jsx(tv,{width:24,height:24,onClick:()=>!n&&c.open()})},value:p,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:o,label:s})},rv=e=>{const{value:t,onSelect:n}=e,[o,r]=a(t?kt(t,"HH:mm"):""),[i,l]=a(!0),s=e=>{const t=e.target.value;r(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),l(!!o)},u=e=>{n(e),r(e?kt(e,"HH:mm"):""),l(!0)},c=()=>{n(void 0),r(""),l(!0)};return Wt.jsx(Xm,{variant:"popper",popupId:"time-picker-popper",children:t=>Wt.jsx(D,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Wt.jsxs("div",{style:{width:"auto",height:"auto",position:"relative"},children:[Wt.jsx("div",{...Gm(t),children:Wt.jsx(ov,{...e,popupState:t,localValue:o,isValidTime:i,handleChange:s})}),t.isOpen&&Wt.jsx(ev,{...e,popupState:t,handleClear:c,onSelect:u})]})})})},iv=e=>Wt.jsx(L,{...e}),av=e=>Wt.jsx(q,{...e}),lv=e=>Wt.jsx(F,{...e}),sv=e=>Wt.jsx(V,{...e}),uv=e=>Wt.jsx(z,{...e}),cv=e=>Wt.jsx(B,{...e}),dv=e=>{var t,n;return Wt.jsx(H,{...e,classes:{paper:fi("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:fi("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},fv=e=>{var t;return Wt.jsx(E,{...e,classes:{root:fi("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},pv=e=>Wt.jsx(U,{...e}),hv=({href:e,disabled:t,size:n="large",dataTest:o,reflink:r,className:i,content:a,...l})=>{let s="styled-link-small";return"large"===n&&(s="styled-link-large"),t?Wt.jsx("span",{className:fi("styled-link","styled-link-disabled",s,i),children:a}):Wt.jsx("a",{...l,"data-test":o,ref:r,href:e,className:fi("styled-link",s,i),children:a})},gv=e=>Wt.jsx($,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),mv=e=>Wt.jsx(W,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),vv=e=>Wt.jsx(G,{...e}),yv=e=>Wt.jsx(Y,{...e,className:fi("flex-row-reverse gap-2.5",e.className),expandIcon:Wt.jsx(xs,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),bv=e=>Wt.jsx(K,{...e}),wv="select",xv="expand-column-id",_v="actions";
26
+ */typeof self<"u"&&self;var Af=Pf.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var l,a={},s={},u={},c={};function d(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=c[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=c.block:e&l.LEVEL&l.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?a[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(l=t.Scope||(t.Scope={})),t.create=d,t.find=f,t.query=p,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=l.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),o.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=l.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new s(t.rest());return u.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=l.iterator(this.ops),d=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var a=c.next(n),s=d.next(n);r(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),o=l.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),a=n.next(i),u=o.next(i);if(a.delete)continue;u.delete?r.push(u):r.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else r.retain(l.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(a(r)||(i=l(r)))?(i?(i=!1,c=o&&l(o)?o:[]):c=o&&a(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=d(n(3)),l=d(n(2)),a=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=1,m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(a.default.Embed);m.scope=a.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new l.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(a.default.query(o,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-g)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:y(e.parent,t)}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var l=m(n(2)),a=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=_(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;x.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],x.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return x.call(this,(function(){var o=n.getSelection(!0),r=new l.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var l=this,a=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],x.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var l=this,a=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],x.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var l=this,a=void 0,s=k(e,0,n,o,i),u=r(s,4);return e=u[0],a=u[2],i=u[3],x.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],x.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){e=new l.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),l=r(i,4);t=l[0],n=l[1],o=l[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function _(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=C(r,a,t):0!==o&&(r=C(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),a.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return a}function k(e,t,n,r,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(l=n,i=r):"string"==typeof n&&(null!=r?l[n]=r:i=n),[e,t,l,i=i||s.default.sources.API]}function C(e,t,n,o){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],a=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],a=p[1]}return new d.Range(i,a-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=_,t.overload=k,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&l.default.query(o,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);d.allowedChildren=[d,l.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(0)).default.Text);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){a(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){r=e},t.default=l},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),l(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),f=r(t)}catch{return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=d(n(2)),a=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),l=o(r,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=a.default.query(o,a.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-l+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=v(n(2)),a=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,_=function(){function e(t){b(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=k(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var p=l.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,y),_=r(w,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(_))}c=a.default.attributes.diff(b,c)||{}}else if("object"===o(l.insert)){var x=Object.keys(l.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,l.insert[x])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,r,o[r])}else t.format(r,o[r]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=x((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(y({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new l.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==f.default.blotName||e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),a=i[0],s=i[1],c=0,d=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,d=a.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new l.default).insert(n).concat(d)),p=(new l.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new l.default).insert(u),p=(new l.default).insert(r.value());e=(new l.default).retain(a).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,g.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function x(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function k(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new l.default)}t.default=_},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;o.setNativeRange(r,i,l,a)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),l=o(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(a=p[0],s=p[1],null==a)return null;var h=a.position(s,!0),g=o(h,2);return r=g[0],s=g[1],d.setEnd(r,s),d.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),m="right"),v=d.getBoundingClientRect()):(v=a.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],l=n[1],a=i.default.find(r,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(r,l)})),l=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(r)));return new p(a,l-a)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l=void 0,a=t.scroll.leaf(e),s=o(a,2),u=s[0],c=s[1],d=u.position(c,0!==n),f=o(d,2);l=f[0],c=f[1],r.push(l,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),l=o(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));a=o(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||r||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||o!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,o),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=l})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],l=[[this,e]];return r instanceof t?l.concat(r.path(i,n)):(null!=r&&l.push([r,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch{t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,l,a,s,c){"object"==typeof l&&(a=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],f=[],p=typeof Buffer<"u";function h(i,a){if(null===i)return null;if(0===a)return i;var g,m;if("object"!=typeof i)return i;if(e(i,t))g=new t;else if(e(i,n))g=new n;else if(e(i,o))g=new o((function(e,t){i.then((function(t){e(h(t,a-1))}),(function(e){t(h(e,a-1))}))}));else if(r.__isArray(i))g=[];else if(r.__isRegExp(i))g=new RegExp(i.source,u(i)),i.lastIndex&&(g.lastIndex=i.lastIndex);else if(r.__isDate(i))g=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(g),g;e(i,Error)?g=Object.create(i):typeof s>"u"?(m=Object.getPrototypeOf(i),g=Object.create(m)):(g=Object.create(s),m=s)}if(l){var v=d.indexOf(i);if(-1!=v)return f[v];d.push(i),f.push(g)}for(var y in e(i,t)&&i.forEach((function(e,t){var n=h(t,a-1),o=h(e,a-1);g.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,a-1);g.add(t)})),i){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),(!b||null!=b.set)&&(g[y]=h(i[y],a-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(y=0;y<w.length;y++){var _=w[y];(k=Object.getOwnPropertyDescriptor(i,_))&&!k.enumerable&&!c||(g[_]=h(i[_],a-1),k.enumerable||Object.defineProperty(g,_,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(i);for(y=0;y<x.length;y++){var k,C=x[y];(k=Object.getOwnPropertyDescriptor(i,C))&&k.enumerable||(g[C]=h(i[C],a-1),Object.defineProperty(g,C,{enumerable:!1}))}}return g}return typeof l>"u"&&(l=!0),typeof a>"u"&&(a=1/0),h(i,a)}function i(e){return Object.prototype.toString.call(e)}function l(e){return"object"==typeof e&&"[object Date]"===i(e)}function a(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=l,r.__isArray=a,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=p(n(0)),a=p(n(8)),s=n(4),u=p(s),c=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return m(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),l=o(r,2),a=l[0],u=l[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&a!==p&&u>0){if(a instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;a.moveChildren(p,m),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==l.default.query(n,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var a=l.default.create(n,o);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var o=l.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(v,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){v(t)?r.push(t):t instanceof l.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=g(n(21)),a=g(n(11)),s=g(n(3)),u=g(n(2)),c=g(n(20)),d=g(n(0)),f=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,p.default)("quill:keyboard"),_=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",x=function(e){function t(e,n){v(this,t);var o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},N),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},C),o.addBinding({key:t.keys.DELETE},{collapsed:!0},O)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},C),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),o.addBinding({key:t.keys.DELETE},{collapsed:!1},E),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},C),o.listen(),o}return b(t,e),i(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=T(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=r(h,2),m=g[0],v=g[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=r(y,2),w=b[0],_=b[1],x=m instanceof d.default.Text?m.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(_):"",C={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:x,suffix:k};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==C.collapsed||null!=t.empty&&t.empty!==C.empty||null!=t.offset&&t.offset!==C.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==C.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=C.format[e]:!1===t.format[e]?null==C.format[e]:(0,a.default)(t.format[e],C.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(C.prefix)||null!=t.suffix&&!t.suffix.test(C.suffix))&&!0!==t.handler.call(e,s,C)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function k(e,t){var n,o=e===x.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===x.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===x.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function C(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=r(l,1)[0];if(null!=a&&a.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function O(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,l=this.quill.getLine(e.index),a=r(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=a.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function N(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:x.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,l=this.quill.scroll.descendant(n,o),a=r(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),g=s.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=x.keys[e.key.toUpperCase()])e.key=x.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[_]=e.shortKey,delete e.shortKey),e}x.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},x.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:x.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:x.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:x.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:x.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:x.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:x.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:x.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(0,s.default)({},o.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:x.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],l=o[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:x.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,f.default.sources.USER)}},"embed left":k(x.keys.LEFT,!1),"embed left shift":k(x.keys.LEFT,!0),"embed right":k(x.keys.RIGHT,!1),"embed right shift":k(x.keys.RIGHT,!0)}},t.default=x,t.SHORTKEY=_},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(0)),r=n(4),i=l(r);function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),f=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),l=v(i),a=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(l.default,a.default,u.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var l=o.create(this.statics.scope);i.wrap(l),l.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",f=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=l,t.AlignClass=a,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=l,t.DirectionClass=a,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),p=new f("font","font-family",c);t.FontStyle=p,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=l},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){a(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=f(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=h(n(3)),l=h(n(2)),a=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],_=["1","2","3",!1],x=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,_):e.classList.contains("ql-size")&&E(e,x)),new f.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(a.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=O(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function O(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=C,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],l=e-r[1],a=this.iterator(i);(o=a())&&l<e+t;){var s=o.length();e>l?n(o,e-l,Math.min(t,l+s-e)):n(o,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},u=function(e){null==e.domNode[l.DATA_KEY]||null==e.domNode[l.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[l.DATA_KEY]||e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||l.query(o,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&a(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=l.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=l.query(o,l.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=l.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var a=e.substring(e.length-o),s=l(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),a&&s.push([r,a]),f(s),null!=n&&(s=g(s,n)),s=m(s)}function l(e,t){var l;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[o,t]];var f=d(e,t);if(f){var p=f[0],h=f[1],g=f[2],m=f[3],v=f[4],y=i(p,g),b=i(h,m);return y.concat([[r,v]],b)}return a(e,t)}function a(e,t){for(var r=e.length,i=t.length,l=Math.ceil((r+i)/2),a=l,u=2*l,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[a+1]=0,d[a+1]=0;for(var p=r-i,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<l;b++){for(var w=-b+g;w<=b-m;w+=2){for(var _=a+w,x=(N=w==-b||w!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-w;N<r&&x<i&&e.charAt(N)==t.charAt(x);)N++,x++;if(c[_]=N,N>r)m+=2;else if(x>i)g+=2;else if(h&&(O=a+p-w)>=0&&O<u&&-1!=d[O]&&N>=(C=r-d[O]))return s(e,t,N,x)}for(var k=-b+v;k<=b-y;k+=2){for(var C,O=a+k,E=(C=k==-b||k!=b&&d[O-1]<d[O+1]?d[O+1]:d[O-1]+1)-k;C<r&&E<i&&e.charAt(r-C-1)==t.charAt(i-E-1);)C++,E++;if(d[O]=C,C>r)y+=2;else if(E>i)v+=2;else if(!h){var N;if((_=a+p-k)>=0&&_<u&&-1!=c[_]&&(x=a+(N=c[_])-_,N>=(C=r-C)))return s(e,t,N,x)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),l=t.substring(0,o),a=e.substring(n),s=t.substring(o),u=i(r,l),c=i(a,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(a,s+1));){var f=u(e.substring(n),t.substring(s)),p=c(e.substring(0,n),t.substring(0,s));d.length<p+f&&(d=t.substring(s-p,s)+t.substring(s,s+f),o=e.substring(0,n-p),r=e.substring(n+f),i=t.substring(0,s-p),l=t.substring(s+f))}return 2*d.length>=e.length?[o,r,i,l,d]:null}var i,l,a,s,d,f=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));return f||p?(i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(l=i[0],a=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],l=i[2],a=i[3]),[l,a,s,d,i[4]]):null}function f(e){e.push([r,""]);for(var t,i=0,l=0,a=0,s="",d="";i<e.length;)switch(e[i][0]){case o:a++,d+=e[i][1],i++;break;case n:l++,s+=e[i][1],i++;break;case r:l+a>1?(0!==l&&0!==a&&(0!==(t=u(d,s))&&(i-l-a>0&&e[i-l-a-1][0]==r?e[i-l-a-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===l?e.splice(i-a,l+a,[o,d]):0===a?e.splice(i-l,l+a,[n,s]):e.splice(i-l-a,l+a,[n,s],[o,d]),i=i-l-a+(l?1:0)+(a?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,l=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&f(e)}var p=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===r){var a=o+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-o,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=h(e,t),o=n[1],i=n[0],l=o[i],a=o[i+1];if(null==l)return e;if(l[0]!==r)return e;if(null!=a&&l[1]+a[1]===a[1]+l[1])return o.splice(i,2,a,l),v(o,i,2);if(null!=a&&0===a[1].indexOf(l[1])){o.splice(i,2,[a[0],l[1]],[0,l[1]]);var s=a[1].slice(l[1].length);return s.length>0&&o.splice(i+2,0,[a[0],s]),v(o,i,3)}return e}function m(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===r&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===o&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}function v(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}p.INSERT=o,p.DELETE=n,p.EQUAL=r,e.exports=p},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,l=r.length,a=new Array(l);i<l;i++)a[i]=r[i].fn;return a},l.prototype.emit=function(e,t,n,r,i,l){var a=o?o+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,l),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var r=new i(t,n||this),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=o?o+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn===t&&(!i||a.once)&&(!n||a.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=o,l.EventEmitter=l,typeof e<"u"&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=b(n(3)),a=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var C=(0,c.default)("quill:clipboard"),O="__ql-matcher",E=[[Node.TEXT_NODE,U],[Node.TEXT_NODE,V],["br",q],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,H],["li",z],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",F]],N=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){_(this,t);var o=x(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],E.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],l=t[1];!n.matchVisual&&l===B||o.addMatcher(i,l)})),o}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),l=i[0],s=i[1],u=R(this.container,l,s);return P(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),C.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[O]=e[O]||[],e[O].push(a)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,l.default)({},w({},t,n),o.attributes))}),new a.default)}function M(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function P(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function A(e){if(0===e.childNodes.length)return!1;var t=M(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[O]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new a.default):new a.default}function I(e,t,n){return T(n,e,!0)}function D(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=N[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=S[t])&&(n.attrName===t||n.keyName===t)&&(n=S[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=T(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new a.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function q(e,t){return P(t,"\n")||t.insert("\n"),t}function F(){return new a.default}function z(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!P(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:o}))}function V(e,t){return P(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function B(e,t){if(A(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat(M(e).marginTop)+parseFloat(M(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===M(e).fontStyle&&(n.italic=!0),o.fontWeight&&(M(e).fontWeight.startsWith("bold")||parseInt(M(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}function U(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!M(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=D,t.matchBlot=L,t.matchNewline=V,t.matchSpacing=B,t.matchText=U},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,s.default)("quill:toolbar"),m=function(e){function t(e,n){f(this,t);var r,i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");y(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=g.error("Container required for toolbar",i.options),p(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void g.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void g.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(d({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],l=r[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function v(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)v(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?b(n,t,o):v(n,t,o)}})),e.appendChild(n)}))}function b(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=m,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var l=r.bottom-r.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=p(n(3)),a=p(n(8)),s=n(43),u=p(s),c=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=o(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=I(n(29)),r=n(36),i=n(38),l=n(64),a=I(n(65)),s=I(n(66)),u=n(67),c=I(u),d=n(37),f=n(26),p=n(39),h=n(40),g=I(n(56)),m=I(n(68)),v=I(n(27)),y=I(n(69)),b=I(n(70)),w=I(n(71)),_=I(n(72)),x=I(n(73)),k=n(13),C=I(k),O=I(n(74)),E=I(n(75)),N=I(n(57)),S=I(n(41)),j=I(n(28)),T=I(n(59)),M=I(n(60)),P=I(n(61)),A=I(n(108)),R=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":C.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":E.default,"modules/toolbar":N.default,"themes/bubble":A.default,"themes/snow":R.default,"ui/icons":S.default,"ui/picker":j.default,"ui/icon-picker":M.default,"ui/color-picker":T.default,"ui/tooltip":P.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(4)).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(56)).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=n(27);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=n(4),l=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(f,!0)}}]),t}(a.default);t.FormulaBlot=f,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(p,!0),l.default.register(f,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),l=d(n(8)),a=n(43),s=d(a),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===l.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var a=i[i.length-1],s=o.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default,Rf=Vt&&Vt.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),If=Vt&&Vt.__assign||function(){return If=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},If.apply(this,arguments)},Df=Vt&&Vt.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,r++)o[r]=i[l];return o},Lf=Vt&&Vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qf=Lf(t),Ff=Lf(se),zf=Lf(Mf),Vf=Lf(Af),Bf=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,l,a,s;"text-change"===e?null===(l=(i=n).onEditorChangeText)||void 0===l||l.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(a=n).onEditorChangeSelection)||void 0===s||s.call(a,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return Rf(t,e),t.prototype.validateProps=function(e){var t;if(qf.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(qf.default.Children.count(e.children)&&"textarea"===(null===(t=qf.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),Df(this.cleanProps,this.dirtyProps).some((function(t){return!zf.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!zf.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,l=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(o),Hf((function(){return n.setEditorSelection(a,l)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new Vf.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?zf.default(e.ops,t.ops):zf.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),Hf((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=Ff.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return qf.default.Children.count(n)?qf.default.cloneElement(qf.default.Children.only(n),r):o?qf.default.createElement("pre",If({},r)):qf.default.createElement("div",If({},r))},t.prototype.render=function(){var e;return qf.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var l=this.isDelta(this.value)?o.getContents():o.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,l,a,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;zf.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(l=(i=this.props).onFocus)||void 0===l||l.call(i,e,t,n):d&&(null===(s=(a=this.props).onBlur)||void 0===s||s.call(a,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=Vf.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(qf.default.Component);function Hf(e){Promise.resolve().then(e)}const Uf=Bt(Bf),Wf={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},Gf=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],$f=({dataTest:e,...t})=>Kt.jsxs("div",{className:"relative",children:[t.label&&Kt.jsx("span",{className:"text-custom-grey-06 mb-2 font-sans text-xs font-semibold leading-4","data-test":`label-${e}`,children:t.label}),t.disabled?Kt.jsx(Uf,{...t,className:To("core-ui-rte","core-ui-rte-view-mode",t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):t.ghost?Kt.jsx(Uf,{...t,className:To("core-ui-rte","core-ui-rte-ghost-mode",t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Kt.jsx(Uf,{...t,className:To("core-ui-rte","core-ui-rte-edit-mode",t.is_error&&"core-ui-rte-error",t.className),modules:{...Wf,...t.modules},formats:{...Gf,...t.formats},"data-test":e}),(t.is_error||t.isRequired)&&Kt.jsx("span",{className:To("core-ui-rte-helper-text",t.is_error&&"core-ui-rte-error"),"data-test":`error-${e}`,children:t.helperText?t.helperText:"Helper text"})]}),Kf=({dataTest:e,allowClear:t,...n})=>Kt.jsx(O,{...n,"data-test":e,value:n.value,IconComponent:e=>Kt.jsx(Xi,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:To(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Kt.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Kt.jsx(Bl,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...n.sx}}),Yf=e=>Kt.jsx(E,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children}),Zf="_styledSelectAutocompleteWrapper_lfbvb_1",Xf="_select-custom-icon_lfbvb_5";function Qf({dataTest:e,autoHeight:t,...n}){const[l,a]=r("auto"),s=o(null);i((()=>{var e,n;const o=(null==(e=s.current)?void 0:e.getBoundingClientRect().height)??0,r=(null==(n=s.current)?void 0:n.getBoundingClientRect().top)??0,i=window.innerHeight-r-o-40;t&&a(i>0?i:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===l?"auto":`${l}px`}}:{};return Kt.jsx("div",{className:Zf,ref:s,children:Kt.jsx(N,{...n,ListboxProps:u,className:To("!text-sm",n.className),popupIcon:n.popupIcon||Kt.jsx(Xi,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:To(Xf)}),"data-test":e,PaperComponent:({children:t})=>Kt.jsx(S,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginBottom:"24px !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...n.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const Jf=({dataTest:e,...t})=>{var n,o,r;return Kt.jsx(j,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:To("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:To("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},ep=({dataTest:e,...t})=>Kt.jsx(T,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),tp=({dataTest:e,...t})=>Kt.jsx(M,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),np=({dataTest:e,...t})=>Kt.jsx(P,{"data-test":e,...t}),op=({children:e,onClick:t,className:n,dataTest:o,style:r})=>Kt.jsx("div",{className:To("_styled-label_1fp95_1",n),style:r,onClick:t,"data-test":o,children:e});const rp={code:"en-GB",formatDistance:ut,formatLong:{date:ct({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:ct({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ct({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:pt,localize:gt,match:yt,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ip=function(){return ip=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ip.apply(this,arguments)};function lp(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ap(e){return"multiple"===e.mode}function sp(e){return"range"===e.mode}function up(e){return"single"===e.mode}var cp={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var dp=Object.freeze({__proto__:null,formatCaption:function(e,t){return Ot(e,"LLLL y",t)},formatDay:function(e,t){return Ot(e,"d",t)},formatMonthCaption:function(e,t){return Ot(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return Ot(e,"cccccc",t)},formatYearCaption:function(e,t){return Ot(e,"yyyy",t)}}),fp=Object.freeze({__proto__:null,labelDay:function(e,t,n){return Ot(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return Ot(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var pp=l(void 0);function hp(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:cp,formatters:dp,labels:fp,locale:bt,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},l=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,l=e.toDate;return o?i=Pe(o):t&&(i=new Date(t,0,1)),r?l=Me(r):n&&(l=new Date(n,11,31)),{fromDate:i?xe(i):void 0,toDate:l?xe(l):void 0}}(r),a=l.fromDate,s=l.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!a||!s)&&(u="buttons"),(up(r)||ap(r)||sp(r))&&(o=r.onSelect);var c=ip(ip(ip({},i),r),{captionLayout:u,classNames:ip(ip({},i.classNames),r.classNames),components:ip({},r.components),formatters:ip(ip({},i.formatters),r.formatters),fromDate:a,labels:ip(ip({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:ip(ip({},i.modifiers),r.modifiers),modifiersClassNames:ip(ip({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:ip(ip({},i.styles),r.styles),toDate:s});return t.createElement(pp.Provider,{value:c},e.children)}function gp(){var e=s(pp);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function mp(e){var n=gp(),o=n.locale,r=n.classNames,i=n.styles,l=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},l(e.displayMonth,{locale:o}))}function vp(e){return t.createElement("svg",ip({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function yp(e){var n,o,r=e.onChange,i=e.value,l=e.children,a=e.caption,s=e.className,u=e.style,c=gp(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:vp;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},l),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},a,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function bp(e){var n,o=gp(),r=o.fromDate,i=o.toDate,l=o.styles,a=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var f=[];if(function(e,t){fe(2,arguments);var n=pe(e),o=pe(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var p=Pe(r),h=r.getMonth();h<=i.getMonth();h++)f.push(Dt(p,h));else for(p=Pe(new Date),h=0;h<=11;h++)f.push(Dt(p,h));var g=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:yp;return t.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:l.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=Dt(Pe(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a})},f.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:a}))})))}function wp(e){var n,o=e.displayMonth,r=gp(),i=r.fromDate,l=r.toDate,a=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!i)return t.createElement(t.Fragment,null);if(!l)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),g=l.getFullYear(),m=h;m<=g;m++)p.push(qt(Ae(new Date),m));var v=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:yp;return t.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=qt(Pe(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:a})},p.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:a}))})))}function _p(){var e=gp(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,l=e.fromDate,a=e.numberOfMonths,s=void 0===a?1:a;return i&&je(i,r)<0&&(r=ge(i,-1*(s-1))),l&&je(r,l)<0&&(r=l),Pe(r)}(e),n=function(e,t){var n=r(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],i=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=Pe(t);i(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var xp=l(void 0);function kp(e){var n=gp(),o=_p(),r=o[0],i=o[1],l=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=Pe(e),i=je(Pe(ge(r,o)),r),l=[],a=0;a<i;a++){var s=ge(r,a);l.push(s)}return n&&(l=l.reverse()),l}(r,n),a=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,l=o?i:1,a=Pe(e);if(!n)return ge(a,l);if(!(je(n,e)<i))return ge(a,l)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,l=Pe(e);if(!n)return ge(l,-i);if(!(je(l,n)<=0))return ge(l,-i)}}(r,n),u=function(e){return l.some((function(t){return Rt(e,t)}))},c={currentMonth:r,displayMonths:l,goToMonth:i,goToDate:function(e,t){u(e)||(t&&Pt(e,t)?i(ge(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:a,isDateDisplayed:u};return t.createElement(xp.Provider,{value:c},e.children)}function Cp(){var e=s(xp);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Op(e){var n,o=gp(),r=o.classNames,i=o.styles,l=o.components,a=Cp().goToMonth,s=function(t){a(ge(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==l?void 0:l.CaptionLabel)&&void 0!==n?n:mp,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(bp,{onChange:s,displayMonth:e.displayMonth}),t.createElement(wp,{onChange:s,displayMonth:e.displayMonth}))}function Ep(e){return t.createElement("svg",ip({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function Np(e){return t.createElement("svg",ip({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var Sp=a((function(e,n){var o=gp(),r=o.classNames,i=o.styles,l=[r.button_reset,r.button];e.className&&l.push(e.className);var a=l.join(" "),s=ip(ip({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",ip({},e,{ref:n,type:"button",className:a,style:s}))}));function jp(e){var n,o,r=gp(),i=r.dir,l=r.locale,a=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var p=c(e.previousMonth,{locale:l}),h=[a.nav_button,a.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:l}),m=[a.nav_button,a.nav_button_next].join(" "),v=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:Np,y=null!==(o=null==f?void 0:f.IconLeft)&&void 0!==o?o:Ep;return t.createElement("div",{className:a.nav,style:s.nav},!e.hidePrevious&&t.createElement(Sp,{name:"previous-month","aria-label":p,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(v,{className:a.nav_icon,style:s.nav_icon}):t.createElement(y,{className:a.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(Sp,{name:"next-month","aria-label":g,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(y,{className:a.nav_icon,style:s.nav_icon}):t.createElement(v,{className:a.nav_icon,style:s.nav_icon})))}function Tp(e){var n=gp().numberOfMonths,o=Cp(),r=o.previousMonth,i=o.nextMonth,l=o.goToMonth,a=o.displayMonths,s=a.findIndex((function(t){return Rt(e.displayMonth,t)})),u=0===s,c=s===a.length-1,d=n>1&&(u||!c),f=n>1&&(c||!u);return t.createElement(jp,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&l(r)},onNextClick:function(){i&&l(i)}})}function Mp(e){var n,o,r=gp(),i=r.classNames,l=r.disableNavigation,a=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:mp;return o=l?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(Op,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(Op,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(Tp,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(Tp,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:a.caption},o)}function Pp(e){var n=gp(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function Ap(){var e=gp(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,l=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?be(new Date):ye(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var l=he(o,i);r.push(l)}return r}(i,l,a);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function Rp(){var e,n=gp(),o=n.classNames,r=n.styles,i=n.components,l=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:Ap;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(l,null))}function Ip(e){var n=gp(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var Dp=l(void 0);function Lp(e){if(!ap(e.initialProps)){return t.createElement(Dp.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(qp,{initialProps:e.initialProps,children:e.children})}function qp(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,l=n.max,a={disabled:[]};r&&a.disabled.push((function(e){var t=l&&r.length>l-1,n=r.some((function(t){return Ne(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var a,s;if((null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!l||(null==r?void 0:r.length)!==l)){var u=r?lp([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return Ne(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:a};return t.createElement(Dp.Provider,{value:s},o)}function Fp(){var e=s(Dp);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var zp,Vp=l(void 0);function Bp(e){if(!sp(e.initialProps)){return t.createElement(Vp.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(Hp,{initialProps:e.initialProps,children:e.children})}function Hp(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},l=i.from,a=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],a?(c.range_end=[a],Ne(l,a)||(c.range_middle=[{after:l,before:a}])):c.range_end=[l]):a&&(c.range_start=[a],c.range_end=[a]),s&&(l&&!a&&c.disabled.push({after:It(l,s-1),before:he(l,s-1)}),l&&a&&c.disabled.push({after:l,before:he(l,s-1)}),!l&&a&&c.disabled.push({after:It(a,s-1),before:he(a,s-1)})),u){if(l&&!a&&(c.disabled.push({before:he(l,1-u)}),c.disabled.push({after:he(l,u-1)})),l&&a){var d=u-(Ce(a,l)+1);c.disabled.push({before:It(l,d)}),c.disabled.push({after:he(a,d)})}!l&&a&&(c.disabled.push({before:he(a,1-u)}),c.disabled.push({after:he(a,u-1)}))}return t.createElement(Vp.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,l;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var a=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?Ne(r,e)&&Ne(o,e)?void 0:Ne(r,e)?{from:r,to:void 0}:Ne(o,e)?void 0:Mt(o,e)?{from:e,to:r}:{from:o,to:e}:r?Mt(e,r)?{from:r,to:e}:{from:e,to:r}:o?Pt(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(l=n.onSelect)||void 0===l||l.call(n,a,e,t,o)},modifiers:c}},o)}function Up(){var e=s(Vp);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Wp(e){return Array.isArray(e)?lp([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(zp||(zp={}));var Gp=zp.Selected,$p=zp.Disabled,Kp=zp.Hidden,Yp=zp.Today,Zp=zp.RangeEnd,Xp=zp.RangeMiddle,Qp=zp.RangeStart,Jp=zp.Outside;var eh=l(void 0);function th(e){var n=gp(),o=function(e,t,n){var o,r=((o={})[Gp]=Wp(e.selected),o[$p]=Wp(e.disabled),o[Kp]=Wp(e.hidden),o[Yp]=[e.today],o[Zp]=[],o[Xp]=[],o[Qp]=[],o[Jp]=[],o);return e.fromDate&&r[$p].push({before:e.fromDate}),e.toDate&&r[$p].push({after:e.toDate}),ap(e)?r[$p]=r[$p].concat(t.modifiers[$p]):sp(e)&&(r[$p]=r[$p].concat(n.modifiers[$p]),r[Qp]=n.modifiers[Qp],r[Xp]=n.modifiers[Xp],r[Zp]=n.modifiers[Zp]),r}(n,Fp(),Up()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=Wp(o)})),t}(n.modifiers),i=ip(ip({},o),r);return t.createElement(eh.Provider,{value:i},e.children)}function nh(){var e=s(eh);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function oh(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return Se(e)}(t))return Ne(e,t);if(function(e){return Array.isArray(e)&&e.every(Se)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(Ce(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),Ce(e,o)>=0&&Ce(r,e)>=0):r?Ne(r,e):!!o&&Ne(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=Ce(t.before,e)>0,o=Ce(t.after,e)<0;return Mt(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?Ce(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?Ce(t.before,e)>0:"function"==typeof t&&t(e)}))}function rh(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return oh(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!Rt(e,n)&&(r.outside=!0),r}var ih=365;function lh(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,l=t.retry,a=void 0===l?{count:0,lastFocused:e}:l,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,f={day:he,week:Oe,month:ge,year:Ee,startOfWeek:function(e){return r.ISOWeek?be(e):ye(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?Ie(e):Re(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?f=function(e){var t,n;if(fe(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ce(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=pe(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,f]):"after"===o&&c&&(f=function(e){var t,n;if(fe(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ce(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=pe(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,f]));var p=!0;if(i){var h=rh(f,i);p=!h.disabled&&!h.hidden}return p?f:a.count>ih?a.lastFocused:lh(f,{moveBy:n,direction:o,context:r,modifiers:i,retry:ip(ip({},a),{count:a.count+1})})}var ah=l(void 0);function sh(e){var n=Cp(),o=nh(),i=r(),l=i[0],a=i[1],s=r(),u=s[0],c=s[1],d=function(e,t){for(var n,o,r=Pe(e[0]),i=Me(e[e.length-1]),l=r;l<=i;){var a=rh(l,t);if(a.disabled||a.hidden)l=he(l,1);else{if(a.selected)return l;a.today&&!o&&(o=l),n||(n=l),l=he(l,1)}}return o||n}(n.displayMonths,o),f=l??(u&&n.isDateDisplayed(u))?u:d,p=function(e){a(e)},h=gp(),g=function(e,t){if(l){var r=lh(l,{moveBy:e,direction:t,context:h,modifiers:o});Ne(l,r)||(n.goToDate(r,l),p(r))}},m={focusedDay:l,focusTarget:f,blur:function(){c(l),a(void 0)},focus:p,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return t.createElement(ah.Provider,{value:m},e.children)}function uh(){var e=s(ah);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var ch=l(void 0);function dh(e){if(!up(e.initialProps)){return t.createElement(ch.Provider,{value:{selected:void 0}},e.children)}return t.createElement(fh,{initialProps:e.initialProps,children:e.children})}function fh(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,l;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(l=n.onSelect)||void 0===l||l.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(ch.Provider,{value:r},o)}function ph(){var e=s(ch);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function hh(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(zp).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function gh(e,n,o){var r,l,a,s=gp(),u=uh(),c=function(e,t){return rh(e,nh(),t)}(e,n),d=function(e,t){var n=gp(),o=ph(),r=Fp(),i=Up(),l=uh(),a=l.focusDayAfter,s=l.focusDayBefore,u=l.focusWeekAfter,c=l.focusWeekBefore,d=l.blur,f=l.focus,p=l.focusMonthBefore,h=l.focusMonthAfter,g=l.focusYearBefore,m=l.focusYearAfter,v=l.focusStartOfWeek,y=l.focusEndOfWeek;return{onClick:function(l){var a,s,u,c;up(n)?null===(a=o.onDayClick)||void 0===a||a.call(o,e,t,l):ap(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,l):sp(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,l):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,l)},onFocus:function(o){var r;f(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?a():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():a();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():p();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():h();break;case"Home":o.preventDefault(),o.stopPropagation(),v();break;case"End":o.preventDefault(),o.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,c),f=function(){var e=gp(),t=ph(),n=Fp(),o=Up();return up(e)?t.selected:ap(e)?n.selected:sp(e)?o.selected:void 0}(),p=!(!s.onDayClick&&"default"===s.mode);i((function(){var t;c.outside||u.focusedDay&&p&&Ne(u.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[u.focusedDay,e,o,p,c.outside]);var h=hh(s,c).join(" "),g=function(e,t){var n=ip({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=ip(ip({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(s,c),m=!!(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(a=null===(l=s.components)||void 0===l?void 0:l.DayContent)&&void 0!==a?a:Ip,y={style:g,className:h,children:t.createElement(v,{date:e,displayMonth:n,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&Ne(u.focusTarget,e)&&!c.outside,w=u.focusedDay&&Ne(u.focusedDay,e),_=ip(ip(ip({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),d);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:_,divProps:y}}function mh(e){var n=o(null),r=gh(e.date,e.displayMonth,n);return r.isHidden?t.createElement("div",{role:"gridcell"}):r.isButton?t.createElement(Sp,ip({name:"day",ref:n},r.buttonProps)):t.createElement("div",ip({},r.divProps))}function vh(e){var n=e.number,o=e.dates,r=gp(),i=r.onWeekNumberClick,l=r.styles,a=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:a.weeknumber,style:l.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(Sp,{name:"week-number","aria-label":d,className:a.weeknumber,style:l.weeknumber,onClick:function(e){i(n,o,e)}},c)}function yh(e){var n,o,r,i=gp(),l=i.styles,a=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:mh,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:vh;return s&&(r=t.createElement("td",{className:a.cell,style:l.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:a.row,style:l.row},r,e.dates.map((function(n){return t.createElement("td",{className:a.cell,style:l.cell,key:Nt(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function bh(e,t,n){for(var o=null!=n&&n.ISOWeek?Ie(t):Re(t,n),r=null!=n&&n.ISOWeek?be(e):ye(e,n),i=Ce(o,r),l=[],a=0;a<=i;a++)l.push(he(r,a));var s=l.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){fe(1,arguments);var t=pe(e),n=be(t).getTime()-we(t).getTime();return Math.round(n/Et)+1}(t):function(e,t){fe(1,arguments);var n=pe(e),o=ye(n,t).getTime()-St(n,t).getTime();return Math.round(o/jt)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function wh(e){var n,o,r,i=gp(),l=i.locale,a=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,p=i.firstWeekContainsDate,h=i.ISOWeek,g=function(e,t){var n=bh(Pe(e),Me(e),t);if(null!=t&&t.useFixedWeeks){var o=Tt(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],l=Oe(i,6-o),a=bh(Oe(i,1),l,t);n.push.apply(n,a)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:l,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:Rp,v=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:yh,y=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:Pp;return t.createElement("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(m,null),t.createElement("tbody",{className:a.tbody,style:s.tbody},g.map((function(n){return t.createElement(v,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(y,{displayMonth:e.displayMonth}))}var _h=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,xh=!1,kh=0;function Ch(){return"react-day-picker-".concat(++kh)}function Oh(n){var o,r,i=gp(),l=i.dir,a=i.classNames,s=i.styles,u=i.components,c=Cp().displayMonths,d=function(t){var n,o=t??(xh?Ch():null),r=e.useState(o),i=r[0],l=r[1];return _h((function(){null===i&&l(Ch())}),[]),e.useEffect((function(){!1===xh&&(xh=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),f=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,p=[a.month],h=s.month,g=0===n.displayIndex,m=n.displayIndex===c.length-1,v=!g&&!m;"rtl"===l&&(m=(o=[g,m])[0],g=o[1]),g&&(p.push(a.caption_start),h=ip(ip({},h),s.caption_start)),m&&(p.push(a.caption_end),h=ip(ip({},h),s.caption_end)),v&&(p.push(a.caption_between),h=ip(ip({},h),s.caption_between));var y=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:Mp;return t.createElement("div",{key:n.displayIndex,className:p.join(" "),style:h},t.createElement(y,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(wh,{id:f,"aria-labelledby":d,displayMonth:n.displayMonth}))}function Eh(e){var n=e.initialProps,o=gp(),l=uh(),a=Cp(),s=r(!1),u=s[0],c=s[1];i((function(){o.initialFocus&&l.focusTarget&&(u||(l.focus(l.focusTarget),c(!0)))}),[o.initialFocus,u,l.focus,l.focusTarget,l]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=ip(ip({},o.styles.root),o.style),p=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return ip(ip({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",ip({className:d.join(" "),style:f,dir:o.dir,id:o.id},p),t.createElement("div",{className:o.classNames.months,style:o.styles.months},a.displayMonths.map((function(e,n){return t.createElement(Oh,{key:n,displayIndex:n,displayMonth:e})}))))}function Nh(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(hp,{initialProps:o},t.createElement(kp,null,t.createElement(dh,{initialProps:o},t.createElement(Lp,{initialProps:o},t.createElement(Bp,{initialProps:o},t.createElement(th,null,t.createElement(sh,null,n)))))))}function Sh(e){return t.createElement(Nh,ip({},e),t.createElement(Eh,{initialProps:e}))}const jh="object"==typeof global&&global&&global.Object===Object&&global;var Th="object"==typeof self&&self&&self.Object===Object&&self;const Mh=(jh||Th||Function("return this")()).Symbol;var Ph=Object.prototype,Ah=Ph.hasOwnProperty,Rh=Ph.toString,Ih=Mh?Mh.toStringTag:void 0;var Dh=Object.prototype.toString;var Lh="[object Null]",qh="[object Undefined]",Fh=Mh?Mh.toStringTag:void 0;function zh(e){return null==e?void 0===e?qh:Lh:Fh&&Fh in Object(e)?function(e){var t=Ah.call(e,Ih),n=e[Ih];try{e[Ih]=void 0;var o=!0}catch{}var r=Rh.call(e);return o&&(t?e[Ih]=n:delete e[Ih]),r}(e):function(e){return Dh.call(e)}(e)}var Vh="[object Symbol]";const Bh=Array.isArray;var Hh=1/0,Uh=Mh?Mh.prototype:void 0,Wh=Uh?Uh.toString:void 0;function Gh(e){if("string"==typeof e)return e;if(Bh(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,Gh)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&zh(e)==Vh}(e))return Wh?Wh.call(e):"";var t=e+"";return"0"==t&&1/e==-Hh?"-0":t}function $h(e){return null==e?"":Gh(e)}function Kh(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var Yh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Zh(e){return Yh.test(e)}var Xh="\\ud800-\\udfff",Qh="["+Xh+"]",Jh="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",eg="\\ud83c[\\udffb-\\udfff]",tg="[^"+Xh+"]",ng="(?:\\ud83c[\\udde6-\\uddff]){2}",og="[\\ud800-\\udbff][\\udc00-\\udfff]",rg="(?:"+Jh+"|"+eg+")"+"?",ig="[\\ufe0e\\ufe0f]?",lg=ig+rg+("(?:\\u200d(?:"+[tg,ng,og].join("|")+")"+ig+rg+")*"),ag="(?:"+[tg+Jh+"?",Jh,ng,og,Qh].join("|")+")",sg=RegExp(eg+"(?="+eg+")|"+ag+lg,"g");function ug(e){return Zh(e)?function(e){return e.match(sg)||[]}(e):function(e){return e.split("")}(e)}var cg=function(e){return function(t){var n=Zh(t=$h(t))?ug(t):void 0,o=n?n[0]:t.charAt(0),r=n?Kh(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const dg=cg;function fg(e){return dg($h(e).toLowerCase())}const pg=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:l})=>{const{goToMonth:a,nextMonth:s,previousMonth:u}=Cp(),c=Bh(n)?!n.length:Se(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Kt.jsxs("div",{style:{marginTop:"8px",display:"flex",justifyContent:"space-between",marginRight:"12px"},children:[Kt.jsx(Ma,{variant:"text",onClick:e=>{l?l():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",style:{minWidth:"60px"},startIcon:Kt.jsx(Xi,{icon:"ph:eraser-duotone",width:24,height:24})}),Kt.jsxs("div",{className:"rdp-custom-caption-navigation",style:{display:"flex",gap:"4px"},children:[Kt.jsx(Ma,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&a(u),startIcon:Kt.jsx(rl,{})}),Kt.jsx(Ma,{size:"small",disabled:i&&Rt(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",children:t?"I dag":"Today"}),Kt.jsx(Ma,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&a(s),startIcon:Kt.jsx(ol,{})})]}),Kt.jsx(Ma,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",style:{minWidth:"60px"},children:t?"Velg":"Select"})]})},hg="_styled-calendar-day-picker_1elmw_1",gg="_rdp-custom-caption_1elmw_159";function mg(e){const{month:t}=e;return Kt.jsx("div",{className:gg,style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"30px",marginLeft:"16px"},children:t&&Kt.jsx(Mp,{displayMonth:t})})}const vg=e=>Kt.jsx(A,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),yg="_styled-calendar-picker-select-period-menu_1p95f_1",bg=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Cp(),{month:r}=gp(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Kt.jsx(vg,{style:{width:"105px",marginLeft:"-5px"},children:Kt.jsx(Kf,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(Dt(r,Number(l)))},MenuProps:{className:yg},children:null==i?void 0:i.map((e=>Kt.jsx(Yf,{value:e.label,children:fg(e.label)},e.id)))})})},wg=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Cp(),{month:r}=gp(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Kt.jsx(vg,{style:{width:"70px",marginLeft:"5px"},children:Kt.jsx(Kf,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(qt(r,Number(l)))},MenuProps:{className:yg},children:null==i?void 0:i.map((e=>Kt.jsx(Yf,{value:e.label,children:e.label},e.id)))})})},_g=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:i,selected:l,numberOfMonths:a,disabledDays:s,onClear:u}=e,{open:c,anchorEl:d,onClose:f}=t,[p,h]=r(new Date(Date.now())),g="nb"===(null==i?void 0:i.code),m=(a||1)<2;return Kt.jsx(R,{open:c,anchorEl:d,onClose:f,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Kt.jsx(Sh,{disabled:s,month:p,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:i||rp,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:hg,classNames:{months:"months",month:"month",caption:"caption",caption_label:"caption_label",nav:"nav",nav_button:"nav_button",nav_button_previous:"nav_button_previous",nav_button_next:"nav_button_next",head_row:"head_row",head_cell:"head_cell",row:"row",cell:"cell",day:"day",day_today:"day_today",day_selected:"day_selected",day_outside:"day_outside",day_disabled:"day_disabled",day_range_middle:"day_range_middle",day_hidden:"day_hidden",caption_end:m?"":"caption_end"},components:{Caption:e=>Kt.jsx(mg,{...e,setMonth:h,month:p,isNb:g}),Dropdown:e=>"months"===e.name?Kt.jsx(bg,{...e}):Kt.jsx(wg,{...e})},footer:Kt.jsx(pg,{onClose:f,isNb:g,selected:l,removeSelection:t=>{var n;return l&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:p,onClear:u}),...e})})},xg=(e,t="dd.MM.yy")=>e?Ot(e,t):"",kg=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:l,onClick:a,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:f}=e;if("range"!==e.mode)return null;const p=xg(null==(t=e.selected)?void 0:t.from,d),h=xg(null==(n=e.selected)?void 0:n.to,d),g=null!=(o=e.selected)&&o.from?e.selected.to?`${p} - ${h}`:p:"";return Kt.jsx(Za,{dataTest:r,placeholder:i,label:f,size:"small",onClick:e=>!l&&a(e),InputProps:{endAdornment:Kt.jsx(ga,{width:24,height:24})},value:g,disabled:!!l,className:s,style:{width:"240px"},allowClear:c,onClear:()=>{null==u||u()}})},Cg="_styled-date-picker-input-range-compact_tw2by_1",Og="_range-compact-disabled_tw2by_8",Eg=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:l,placeholderFrom:a,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:f}=e;if("range"!==e.mode)return null;const p=xg(null==(t=e.selected)?void 0:t.from,u),h=xg(null==(n=e.selected)?void 0:n.to,u);return Kt.jsxs("div",{"data-test":o,className:To(r,Cg,l&&Og),onClick:e=>!l&&c(e),children:[Kt.jsx(Za,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:a,value:p,disabled:!!l,className:i,style:{width:"144px"},InputProps:{endAdornment:Kt.jsx(ga,{width:24,height:24})}}),Kt.jsx(Za,{label:f,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!l,className:i,style:{width:"144px"},InputProps:{endAdornment:Kt.jsx(ga,{width:24,height:24})}})]})},Ng=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:l,allowClear:a,dateFormat:s,error:u=!1,helperText:c}=e;return"single"!==e.mode?null:Kt.jsx(Za,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Kt.jsx(ga,{width:24,height:24})},value:xg(e.selected,s),disabled:!!o,className:i,style:{width:"144px"},allowClear:a,onClear:()=>{null==l||l()},label:e.label,error:u,helperText:c})},Sg=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Kt.jsx(kg,{...e,onClick:e.onClick}):n?Kt.jsx(Eg,{...e,onClick:e.onClick}):Kt.jsx(Ng,{...e,onClick:e.onClick})},jg=e=>{const[t,n]=r(null),[o,i]=r(!1);return Kt.jsxs(Kt.Fragment,{children:[Kt.jsx(Sg,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,i)}}),Kt.jsx(_g,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function Tg(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const Mg={};const Pg={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function Ag({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:l}){const a=o(!0);i((()=>(a.current=!0,()=>{a.current=!1})),[]);const[s,c]=r(Pg),d=u((e=>{a.current&&c(e)}),[]),f=u((e=>d((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),p=Tg((e=>(s.isOpen?m(e):h(e),s))),h=Tg((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void d((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,l=null==o?void 0:o.clientY,a="number"==typeof i&&"number"==typeof l?{left:i,top:l}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){Mg[e]||(Mg[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(_)))}const l={...i,isOpen:!0,anchorPosition:a,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(l.anchorEl=null==o?void 0:o.currentTarget):r&&(l.anchorEl=r),l};d((e=>e._deferNextOpen?(setTimeout((()=>d(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),g=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},m=Tg((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?d((e=>e._deferNextClose?(setTimeout((()=>d(g)),0),{...e,_deferNextClose:!1}):g(e))):d((e=>({...e,_deferNextClose:!0})))})),v=u(((e,t)=>{e?h(t):m(t)}),[]),y=Tg((e=>{const{relatedTarget:t}=e;d((e=>!e.hovered||t instanceof Element&&Lg(t,_)?e:e.focused?{...e,hovered:!1}:g(e)))})),b=Tg((e=>{if(!e)return;const{relatedTarget:t}=e;d((e=>!e.focused||t instanceof Element&&Lg(t,_)?e:e.hovered?{...e,focused:!1}:g(e)))})),w=u((e=>d((t=>({...t,_childPopupState:e})))),[]),_={...s,setAnchorEl:f,popupId:t,variant:n,open:h,close:m,toggle:p,setOpen:v,onBlur:b,onMouseLeave:y,disableAutoFocus:l??!(!s.hovered&&!s.focused),_setChildPopupState:w};return _}function Rg({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function Ig(e){return{...Rg(e),onClick:e.open,onTouchStart:e.open}}function Dg({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function Lg(e,t){const{anchorEl:n,_childPopupState:o}=t;return qg(n,e)||qg(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&Lg(e,o)}function qg(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function Fg({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e(Ag({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}Fg.propTypes={children:le.func.isRequired,popupId:le.string,variant:le.oneOf(["popover","popper"]).isRequired,parentPopupState:le.object,disableAutoFocus:le.bool};const zg=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,l=r?o.getHours():o.getMinutes();return Kt.jsx("div",{className:"styled-time-picker-root_column",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,a=t&&i===(r?function(e){return fe(1,arguments),pe(e).getHours()}(t):function(e){return fe(1,arguments),pe(e).getMinutes()}(t)),s=l==i;return Kt.jsx("div",{className:To("styled-time-picker-root_cell",a&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(Lt(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},Vg=({value:e,onSelect:t,dataTest:n})=>{const r=o(null);return i((()=>{var e;null==(e=r.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[r]),Kt.jsxs("div",{ref:r,"data-test":n,className:"styled-time-picker-root",children:[Kt.jsx(zg,{type:"hours",value:e,onSelect:t}),Kt.jsx(zg,{type:"minutes",value:e,onSelect:t})]})},Bg=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Kt.jsx(I,{...Dg(t),transition:!0,style:{zIndex:"1300",position:"absolute",top:"2px"},children:({TransitionProps:e})=>Kt.jsx(D,{...e,timeout:350,children:Kt.jsxs(S,{style:{paddingBottom:"1px"},children:[Kt.jsx(Vg,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Kt.jsxs("div",{style:{display:"flex",marginTop:"12px",marginBottom:"12px",justifyContent:"space-between"},children:[Kt.jsx(Ma,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",style:{minWidth:"40px",marginLeft:"10px"},startIcon:Kt.jsx(Xi,{icon:"ph:eraser-duotone",width:24,height:24})}),Kt.jsx(Ma,{size:"small",onClick:()=>t.close(),dataTest:"select-time",style:{minWidth:"40px",marginRight:"16px"},startIcon:Kt.jsx(Xi,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},Hg=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kt.jsx(Ji,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),Ug=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Kt.jsx("span",{style:{position:"absolute"},children:r})},Wg=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:l,helperText:a,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:f,localValue:p}=e;return Kt.jsx(Za,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!f||l,helperText:Kt.jsx(Ug,{isValidTime:f,error:l,localization:u,helperText:a}),onChange:d,InputProps:{endAdornment:Kt.jsx(Hg,{width:24,height:24,onClick:()=>!n&&c.open()})},value:p,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:o,label:s})},Gg=e=>{const{value:t,onSelect:n}=e,[o,i]=r(t?Ot(t,"HH:mm"):""),[l,a]=r(!0),s=e=>{const t=e.target.value;i(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),a(!!o)},u=e=>{n(e),i(e?Ot(e,"HH:mm"):""),a(!0)},c=()=>{n(void 0),i(""),a(!0)};return Kt.jsx(Fg,{variant:"popper",popupId:"time-picker-popper",children:t=>Kt.jsx(L,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Kt.jsxs("div",{style:{width:"auto",height:"auto",position:"relative"},children:[Kt.jsx("div",{...Ig(t),children:Kt.jsx(Wg,{...e,popupState:t,localValue:o,isValidTime:l,handleChange:s})}),t.isOpen&&Kt.jsx(Bg,{...e,popupState:t,handleClear:c,onSelect:u})]})})})},$g=e=>Kt.jsx(q,{...e}),Kg=e=>Kt.jsx(F,{...e}),Yg=e=>Kt.jsx(z,{...e}),Zg=e=>Kt.jsx(V,{...e}),Xg=e=>Kt.jsx(B,{...e}),Qg=e=>Kt.jsx(H,{...e}),Jg=e=>{var t,n;return Kt.jsx(U,{...e,classes:{paper:To("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:To("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},em=e=>{var t;return Kt.jsx(E,{...e,classes:{root:To("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},tm=e=>Kt.jsx(W,{...e}),nm="_styled-link_iqlxk_1",om="_styled-link-disabled_iqlxk_16",rm="_styled-link-small_iqlxk_32",im="_styled-link-large_iqlxk_37",lm=({href:e,disabled:t,size:n="large",dataTest:o,reflink:r,className:i,content:l,...a})=>{let s=rm;return"large"===n&&(s=im),t?Kt.jsx("span",{className:To(nm,om,s,i),children:l}):Kt.jsx("a",{...a,"data-test":o,ref:r,href:e,className:To(nm,s,i),children:l})},am=e=>Kt.jsx(G,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-500)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),sm=e=>Kt.jsx($,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),um=e=>Kt.jsx(K,{...e}),cm=e=>Kt.jsx(Y,{...e,className:To("flex-row-reverse gap-2.5",e.className),expandIcon:Kt.jsx(zl,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),dm=e=>Kt.jsx(Z,{...e}),fm="select",pm="expand-column-id",hm="actions";
26
27
  /**
27
28
  * table-core
28
29
  *
@@ -32,8 +33,7 @@ import*as e from"react";import t,{forwardRef as n,useContext as o,useLayoutEffec
32
33
  * LICENSE.md file in the root directory of this source tree.
33
34
  *
34
35
  * @license MIT
35
- */
36
- function kv(e,t){return"function"==typeof e?e(t):e}function Ev(e,t){return n=>{t.setState((t=>({...t,[e]:kv(n,t[e])})))}}function Ov(e){return e instanceof Function}function Cv(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(a.length===r.length&&!a.some(((e,t)=>r[t]!==e)))return o;let l;if(r=a,n.key&&n.debug&&(l=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function Nv(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const Sv={createTable:e=>{e.getHeaderGroups=Cv((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,a;const l=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return jv(t,[...l,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Cv((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>jv(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Cv((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return jv(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Cv((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return jv(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=Cv((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Cv((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Cv((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=Cv((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=Cv((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Cv((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Cv((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Cv((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Cv((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Cv((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Cv((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=Cv((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,a,l,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function jv(e,t,n,o){var r,i;let a=0;const l=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===r.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const r=Nv(n,l,{id:[o,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===l)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>Nv(n,e,{depth:a,index:t})));u(c,a-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const Tv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Pv={getDefaultColumnDef:()=>Tv,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Ev("columnSizing",e),onColumnSizingInfoChange:Ev("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Tv.minSize,null!=(o=i??e.columnDef.size)?o:Tv.size),null!=(r=e.columnDef.maxSize)?r:Tv.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),Mv(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],l=Mv(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof Av)return Av;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Av=e,Av}()&&{passive:!1};Mv(r)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",f.moveHandler,h),document.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let Av=null;function Mv(e){return"touchstart"===e.type}const Rv={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ev("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let a={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=o,n=null!=(r=n)?r:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Iv=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};Iv.autoRemove=e=>$v(e);const Dv=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};Dv.autoRemove=e=>$v(e);const Lv=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};Lv.autoRemove=e=>$v(e);const qv=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};qv.autoRemove=e=>$v(e)||!(null!=e&&e.length);const Fv=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));Fv.autoRemove=e=>$v(e)||!(null!=e&&e.length);const Vv=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));Vv.autoRemove=e=>$v(e)||!(null!=e&&e.length);const zv=(e,t,n)=>e.getValue(t)===n;zv.autoRemove=e=>$v(e);const Bv=(e,t,n)=>e.getValue(t)==n;Bv.autoRemove=e=>$v(e);const Hv=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};Hv.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,a=null===n||Number.isNaN(r)?1/0:r;if(i>a){const e=i;i=a,a=e}return[i,a]},Hv.autoRemove=e=>$v(e)||$v(e[0])&&$v(e[1]);const Uv={includesString:Iv,includesStringSensitive:Dv,equalsString:Lv,arrIncludes:qv,arrIncludesAll:Fv,arrIncludesSome:Vv,equals:zv,weakEquals:Bv,inNumberRange:Hv};function $v(e){return null==e||""===e}const Wv={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ev("columnFilters",e),onGlobalFilterChange:Ev("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?Uv.includesString:"number"==typeof o?Uv.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Uv.equals:Array.isArray(o)?Uv.arrIncludes:Uv.weakEquals},e.getFilterFn=()=>{var n,o;return Ov(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:Uv[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=kv(n,r?r.value:void 0);var a;if(Gv(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Uv.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return Ov(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:Uv[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=kv(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Gv(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function Gv(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const Yv={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},Kv={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ev("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?Yv.sum:"[object Date]"===Object.prototype.toString.call(o)?Yv.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return Ov(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:Yv[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const Zv={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ev("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Cv((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},Xv={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ev("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>kv(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=kv(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,kv(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=kv(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=Cv((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Qv={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Ev("columnPinning",e),onRowPinningChange:Ev("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,a,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...l]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...l],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=Cv((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=Cv((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=Cv((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=Cv((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=Cv((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=Cv((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>Cv((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Cv((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},Jv={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ev("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{ey(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Cv((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?ty(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Cv((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?ty(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Cv((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?ty(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return ey(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ny(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===oy(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===oy(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},ey=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>ey(e,t.id,n,o)))};function ty(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const a=ny(e,n);if(a&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function ny(e,t){var n;return null!=(n=t[e.id])&&n}function oy(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(ny(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=oy(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const ry=/([0-9]+)/gm;function iy(e,t){return e===t?0:e>t?1:-1}function ay(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ly(e,t){const n=e.split(ry).filter(Boolean),o=t.split(ry).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),a=[r,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const sy={alphanumeric:(e,t,n)=>ly(ay(e.getValue(n)).toLowerCase(),ay(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ly(ay(e.getValue(n)),ay(t.getValue(n))),text:(e,t,n)=>iy(ay(e.getValue(n)).toLowerCase(),ay(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>iy(ay(e.getValue(n)),ay(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>iy(e.getValue(n),t.getValue(n))},uy={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ev("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return sy.datetime;if("string"==typeof n&&(o=!0,n.split(ry).length>1))return sy.alphanumeric}return o?sy.text:sy.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return Ov(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:sy[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var f;(u=null!=a&&a.length&&e.getCanMultiSort()&&o?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},cy={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ev("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Cv((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=Cv((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>Cv((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},dy=[Sv,cy,Zv,Qv,Wv,uy,Kv,Rv,Xv,Jv,Pv];function fy(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:dy};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let a=!1;const l={_features:dy,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=kv(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:Cv((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:Cv((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let s,u=null!=(r=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[a.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Cv((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Cv((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:Cv((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:Cv((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:Cv((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,l);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const py=(e,t,n,o,r,i,a)=>{let l={id:t,index:o,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,o),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Cv((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:Cv((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,l,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Cv((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l};function hy(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function gy(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=py(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<a){if(f.subRows=l(d.subRows,o+1),d=f,t(d)&&!f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<a){const e=py(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=l(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n)}function my(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
36
+ */function gm(e,t){return"function"==typeof e?e(t):e}function mm(e,t){return n=>{t.setState((t=>({...t,[e]:gm(n,t[e])})))}}function vm(e){return e instanceof Function}function ym(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const l=e();if(l.length===r.length&&!l.some(((e,t)=>r[t]!==e)))return o;let a;if(r=l,n.key&&n.debug&&(a=Date.now()),o=t(...l),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-a))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function bm(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const wm={createTable:e=>{e.getHeaderGroups=ym((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,l;const a=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(l=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[];return _m(t,[...a,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=ym((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>_m(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=ym((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return _m(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=ym((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return _m(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=ym((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=ym((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=ym((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=ym((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=ym((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=ym((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=ym((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=ym((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=ym((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=ym((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=ym((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=ym((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,l,a,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function _m(e,t,n,o){var r,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===r.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const r=bm(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===a)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>bm(n,e,{depth:l,index:t})));u(c,l-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const xm={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},km={getDefaultColumnDef:()=>xm,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:mm("columnSizing",e),onColumnSizingInfoChange:mm("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:xm.minSize,null!=(o=i??e.columnDef.size)?o:xm.size),null!=(r=e.columnDef.maxSize)?r:xm.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),Om(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=Om(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof Cm)return Cm;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Cm=e,Cm}()&&{passive:!1};Om(r)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",f.moveHandler,h),document.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let Cm=null;function Om(e){return"touchstart"===e.type}const Em={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:mm("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let l={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{l[e]=!0})):l=o,n=null!=(r=n)?r:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Nm=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};Nm.autoRemove=e=>Lm(e);const Sm=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};Sm.autoRemove=e=>Lm(e);const jm=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};jm.autoRemove=e=>Lm(e);const Tm=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};Tm.autoRemove=e=>Lm(e)||!(null!=e&&e.length);const Mm=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));Mm.autoRemove=e=>Lm(e)||!(null!=e&&e.length);const Pm=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));Pm.autoRemove=e=>Lm(e)||!(null!=e&&e.length);const Am=(e,t,n)=>e.getValue(t)===n;Am.autoRemove=e=>Lm(e);const Rm=(e,t,n)=>e.getValue(t)==n;Rm.autoRemove=e=>Lm(e);const Im=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};Im.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,l=null===n||Number.isNaN(r)?1/0:r;if(i>l){const e=i;i=l,l=e}return[i,l]},Im.autoRemove=e=>Lm(e)||Lm(e[0])&&Lm(e[1]);const Dm={includesString:Nm,includesStringSensitive:Sm,equalsString:jm,arrIncludes:Tm,arrIncludesAll:Mm,arrIncludesSome:Pm,equals:Am,weakEquals:Rm,inNumberRange:Im};function Lm(e){return null==e||""===e}const qm={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:mm("columnFilters",e),onGlobalFilterChange:mm("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?Dm.includesString:"number"==typeof o?Dm.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Dm.equals:Array.isArray(o)?Dm.arrIncludes:Dm.weakEquals},e.getFilterFn=()=>{var n,o;return vm(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:Dm[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=gm(n,r?r.value:void 0);var l;if(Fm(o,i,e))return null!=(l=null==t?void 0:t.filter((t=>t.id!==e.id)))?l:[];const a={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?s:[]:null!=t&&t.length?[...t,a]:[a]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Dm.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return vm(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:Dm[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=gm(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Fm(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function Fm(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const zm={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},Vm={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:mm("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?zm.sum:"[object Date]"===Object.prototype.toString.call(o)?zm.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return vm(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:zm[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const Bm={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:mm("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=ym((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},Hm={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:mm("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>gm(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=gm(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,gm(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=gm(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=ym((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Um={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:mm("columnPinning",e),onRowPinningChange:mm("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],l=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...l,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,l,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...a]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),...a],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=ym((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=ym((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=ym((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=ym((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=ym((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=ym((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>ym((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=ym((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},Wm={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:mm("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{Gm(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ym((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?$m(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=ym((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?$m(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=ym((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?$m(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return Gm(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Km(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Ym(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Ym(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},Gm=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>Gm(e,t.id,n,o)))};function $m(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const l=Km(e,n);if(l&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function Km(e,t){var n;return null!=(n=t[e.id])&&n}function Ym(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(Km(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=Ym(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const Zm=/([0-9]+)/gm;function Xm(e,t){return e===t?0:e>t?1:-1}function Qm(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Jm(e,t){const n=e.split(Zm).filter(Boolean),o=t.split(Zm).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),l=[r,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const ev={alphanumeric:(e,t,n)=>Jm(Qm(e.getValue(n)).toLowerCase(),Qm(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Jm(Qm(e.getValue(n)),Qm(t.getValue(n))),text:(e,t,n)=>Xm(Qm(e.getValue(n)).toLowerCase(),Qm(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Xm(Qm(e.getValue(n)),Qm(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>Xm(e.getValue(n),t.getValue(n))},tv={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:mm("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return ev.datetime;if("string"==typeof n&&(o=!0,n.split(Zm).length>1))return ev.alphanumeric}return o?ev.text:ev.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return vm(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:ev[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((l=>{const a=null==l?void 0:l.find((t=>t.id===e.id)),s=null==l?void 0:l.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var f;(u=null!=l&&l.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...l,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?l.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?l.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},nv={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:mm("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ym((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=ym((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>ym((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},ov=[wm,nv,Bm,Um,qm,tv,Vm,Em,Hm,Wm,km];function rv(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:ov};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let l=!1;const a={_features:ov,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),l||(l=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();l=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=gm(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:ym((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:ym((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,u=null!=(r=null!=(i=l.id)?i:a?a.replace(".","_"):void 0)?r:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`)}return t}:e=>e[l.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:ym((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ym((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:ym((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:ym((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:ym((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,a);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const iv=(e,t,n,o,r,i,l)=>{let a={id:t,index:o,original:n,depth:r,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,o),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:ym((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:ym((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,a,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ym((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a};function lv(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function av(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},l=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,a=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=iv(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<l){if(f.subRows=a(d.subRows,o+1),d=f,t(d)&&!f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:a(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},l=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,a=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<l){const e=iv(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=a(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:a(e),flatRows:r,rowsById:i}}(e,t,n)}function sv(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
37
37
  /**
38
38
  * react-table
39
39
  *
@@ -44,4 +44,4 @@ function kv(e,t){return"function"==typeof e?e(t):e}function Ev(e,t){return n=>{t
44
44
  *
45
45
  * @license MIT
46
46
  */
47
- function vy(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}const yy=e=>{var t;const{header:n,enableResizing:o,element:r}=e;let i=n.getSize();if(!o){i&&(i=`${i}px`);const e="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(n.headerGroup.headers))?void 0:t.id),o=n.headerGroup.headers[n.headerGroup.headers.length-(e?2:1)];return((null==o?void 0:o.id)===n.id||!i)&&(i="100%"),{width:i||n.column.columnDef.size,maxWidth:i||n.column.columnDef.maxSize,minWidth:i||n.column.columnDef.minSize}}const a=n.column.columnDef.size,l=n.column.columnDef.minSize;return{width:a,maxWidth:n.column.columnDef.maxSize,minWidth:l}};function by({styledTableProps:e,header:t}){const{hideHeader:n=!1,enableResizing:o=!1}=e,r=i(null);return Wt.jsx("th",{ref:r,colSpan:t.colSpan,className:fi("t-cell","actions"===t.column.id&&"t-cell__actions"),style:yy({enableResizing:o,header:t,element:r.current}),children:Wt.jsxs("div",{className:fi("flex items-center justify-left",n?"hide-table-header":"show-table-header",t.column.getCanSort()&&"sortable-column",t.column.columnDef.className),onClick:t.column.getToggleSortingHandler(),children:[vy(t.column.columnDef.header,t.getContext()),{asc:Wt.jsx(ms,{className:"sort-icon"}),desc:Wt.jsx(vs,{className:"sort-icon"})}[t.column.getIsSorted()]??null]})},t.id)}function wy({table:e,styledTableProps:t}){const{stickyHeader:n=!1,hideHeader:o=!1}=t;return t.loading?null:Wt.jsx("thead",{className:fi("table-header",o&&"hide-table-header"),style:n&&{position:"sticky",top:-.2}||{},children:e.getHeaderGroups().map((e=>Wt.jsx("tr",{children:e.headers.map((e=>Wt.jsx(by,{styledTableProps:t,header:e},e.column.id)))},e.id)))})}const xy=({colSpan:e})=>Wt.jsx(Wt.Fragment,{children:Array.from({length:5}).map(((t,n)=>Wt.jsx("tr",{children:Wt.jsx("td",{colSpan:e,children:Wt.jsx(Z,{variant:"text",width:"100%",height:50},n)})},n)))});function _y({styledTableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:a,onRowClick:l,expandArrow:s,tdClassName:u,customSubRowData:d,renderSubRows:f}=e;return Wt.jsxs(c,{children:[Wt.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:fi("t-row",r&&"is-loading",(t.getIsExpanded()||t.getIsSelected())&&"selected",null==i?void 0:i(t)),style:{height:a?`${a}px`:"inherit"},onMouseUp:e=>{var n,o;if(e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName)return;t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),null==(n=document.getElementById(t.id))||n.focus();const r="Range"===(null==(o=window.getSelection())?void 0:o.type);l&&!r&&l(e,t)},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Wt.jsx("td",{className:fi("t-cell",u,n&&"action-cell",n&&(t.getIsExpanded()||t.getIsSelected())&&"selected",n&&(null!=i&&i(t)?null==i?void 0:i(t):"action-cell-default-background")),children:vy(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Wt.jsx(Wt.Fragment,{children:d&&f&&f({rows:d.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function ky({styledTableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Wt.jsx(Wt.Fragment,{children:n.map(((t,n)=>Wt.jsx(_y,{styledTableProps:e,row:t,index:n},t.id)))})}const Ey=({colSpan:e,noRowsOverlay:t})=>Wt.jsx("tr",{className:"no-rows-overlay",children:Wt.jsx("td",{colSpan:e,children:t})});function Oy({table:e,styledTableProps:t}){const{columns:n,data:o,loading:r,noRowsOverlay:i}=t;return Wt.jsxs("tbody",{className:"tbody",children:[o.length>0&&r&&Wt.jsx(gs,{className:"loading-icon",width:50,height:50}),0===o.length&&r?Wt.jsx(xy,{colSpan:n.length}):o.length>0?Wt.jsx(ky,{table:e,styledTableProps:t}):Wt.jsx(Ey,{colSpan:n.length,noRowsOverlay:i})]})}const Cy=e=>Wt.jsx(M,{...e}),Ny=()=>{const[e,t]=a(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}};function Sy({table:e,locale:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:a}=Ny(),l=i(null),s="no"===t,u=()=>{var e,t,n,o;null==(o=null==(n=null==(t=null==(e=null==l?void 0:l.current)?void 0:e.closest(".asma-core-ui-styled-table"))?void 0:t.querySelectorAll('[data-index="0"]'))?void 0:n[0])||o.scrollIntoView({block:"center",inline:"start"})},c=e.getPageCount(),d=e.getState().pagination.pageIndex+1,f=Array.from({length:c},((e,t)=>t+1));return c>1?Wt.jsxs("div",{ref:l,className:"table-pagination",children:[Wt.jsx(ta,{title:s?"Nåværende side":"Current Page",children:Wt.jsx("div",{children:Wt.jsxs(au,{variant:"outlined",dataTest:"list-pages",style:{width:"134px"},onClick:e=>{a(e)},endIcon:o?Wt.jsx(_s,{height:24,width:24}):Wt.jsx(xs,{height:24,width:24}),children:[s?"Side":"Page"," ",d," ",s?"av":"of"," ",c]})})}),Wt.jsx(Cy,{open:o,anchorEl:n,onClose:r,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Wt.jsx("div",{className:"table-pagination__pages-list",children:f.map((t=>Wt.jsxs("div",{className:fi("table-pagination__pages-list__page",d===t&&"page-selected"),onClick:()=>{e.setPageIndex(t-1),r(),u()},children:[d===t&&Wt.jsx(Es,{className:"check-icon",height:24,width:24}),Wt.jsxs("span",{children:[s?"Side":"Page"," ",t]})]},t)))})}),Wt.jsx(ta,{title:1===d?"":s?"Forrige side":"Previous Page",children:Wt.jsx("div",{children:Wt.jsx(au,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Wt.jsx(Vl,{height:24,width:24}),onClick:()=>{e.previousPage(),u()},disabled:!e.getCanPreviousPage()})})}),Wt.jsx(ta,{title:d===c?"":s?"Neste side":"Next Page",children:Wt.jsx("div",{children:Wt.jsx(au,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Wt.jsx(Fl,{height:24,width:24}),onClick:()=>{e.nextPage(),u()},disabled:!e.getCanNextPage()})})})]}):null}function jy({table:e,styledTableProps:t}){var n;return t.hideFooter?null:Wt.jsxs("div",{className:"table-footer",children:[null==(n=t.footer)?void 0:n.call(t,e),Wt.jsx(Sy,{table:e,locale:t.locale||"en"})]})}const Ty=t=>{const{columns:n,data:o,initialState:r,pageSize:i,enableRowSelection:a,tableInstanceRef:l,...s}=t,u=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:fy(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:i||50},columnVisibility:{...null==r?void 0:r.columnVisibility,[wv]:!1},...r},enableRowSelection:a,getCoreRowModel:e=>Cv((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const a=[];for(let s=0;s<t.length;s++){const u=py(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return a};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>Cv((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?my(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>Cv((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const a=n.map((e=>e.id)),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&l&&s.length&&(a.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:l,resolvedValue:null!=(t=null==l.resolveFilterValue?void 0:l.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return gy(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Cv((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],l=a[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?l.sortUndefined:-l.sortUndefined)}if(0===u&&(u=l.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>Cv((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:a,rowsById:l}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:my({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:s.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString()),defaultColumn:t.enableResizing?{size:void 0}:void 0,...s});return l&&(l.current=u),{table:u}};function Py({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=Ny(),a=t(e.row).filter((e=>!e.hide));return Wt.jsx("div",{className:"flex justify-center items-center w-[42px]",children:a.length?Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(au,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Wt.jsx(ps,{className:"!text-delta-800",width:20,height:20})}),Wt.jsx(Cy,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Wt.jsx(fv,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]}):null})}function Ay({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=Ny();return Wt.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Wt.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center cursor-pointer",onClick:r,children:Wt.jsx(Ml,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Wt.jsx(Cy,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==wv)).map((e=>e.columnDef.header?Wt.jsxs(fv,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Wt.jsx(pu,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const My=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:a}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Wt.jsx(Ay,{headerData:e}):null,cell:e=>n||o?Wt.jsxs("div",{className:"flex items-center justify-end",children:[o&&Wt.jsx("div",{className:"mr-1",children:null==o?void 0:o(e)}),n&&Wt.jsx(Py,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===wv))&&t.unshift({id:wv,minSize:40,maxSize:40,size:40,header:({table:e})=>Wt.jsx("div",{className:"w-[25px]",children:Wt.jsx(pu,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Wt.jsx("div",{className:"w-[25px]",children:Wt.jsx(pu,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),a&&!t.find((e=>e.id===xv))&&t.unshift({id:xv,minSize:50,maxSize:50,size:50,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Wt.jsx("span",{className:"flex h-fit w-full outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Wt.jsx(_s,{width:24,height:24}):Wt.jsx(xs,{width:24,height:24})}):null}})},Ry=e=>{const{className:t,height:n}=e;My(e);const{table:o}=Ty(e);return Wt.jsxs("div",{className:"asma-core-ui-styled-table",children:[Wt.jsx("div",{className:fi("table-wrapper",t),style:{height:n},children:Wt.jsxs("table",{className:"styled-table",children:[Wt.jsx(wy,{table:o,styledTableProps:e}),Wt.jsx(Oy,{table:o,styledTableProps:e})]})}),Wt.jsx(jy,{table:o,styledTableProps:e})]})},Iy=function(e){return Wt.jsx("div",{className:"styled-widget-title",children:e.children})},Dy=({actions:e,title:t})=>Wt.jsxs("div",{className:"styled-widget-header",children:[Wt.jsx(Iy,{children:t}),Wt.jsx("div",{children:e})]}),Ly=function(e){return Wt.jsx("h1",{"data-test":e.dataTest,className:"styled-module-title",children:e.children})},qy=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Fy=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined"})=>{const{onAnchorClick:a,onClose:l,anchorEl:s}=qy();return Wt.jsxs(Wt.Fragment,{children:[Wt.jsxs("div",{className:"w-fit h-fit relative",children:[Wt.jsx(au,{disabled:o,variant:i,startIcon:Wt.jsx(Rs,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:a,size:r,dataTest:n,children:"Filter"}),e&&Wt.jsx("div",{className:fi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Wt.jsx(Cy,{open:!!s,anchorEl:s,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:"my-1",children:t})]})},Vy=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:r=!0,showExpandIcon:i=!0,title:l,label:s,children:u,open:c,onClose:d,className:f="",primaryButtonText:p,secondaryButtonText:h,onPrimaryButtonClick:g,onSecondaryButtonClick:m,dataTest:v})=>{const[y,b]=a(!1),w=()=>{b(!y)};return c?y?Wt.jsx("div",{style:{zIndex:51},className:"fixed bottom-4 right-4 w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",children:Wt.jsxs("div",{className:"flex items-center justify-between","data-test":v,children:[Wt.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:l}),Wt.jsxs("div",{className:"flex gap-x-1",children:[Wt.jsx("div",{className:"flex items-center gap-x-2",children:Wt.jsx(au,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:i&&Wt.jsx(Js,{height:20,width:20,color:"text-gama-500"}),children:n})}),Wt.jsx("div",{className:"flex items-center gap-x-2",children:Wt.jsx(au,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:o&&Wt.jsx(ks,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}):Wt.jsxs("div",{className:fi("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",f),"data-test":v,children:[Wt.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Wt.jsxs("div",{className:"flex items-center justify-between",children:[s?Wt.jsx("div",{className:"text-sm text-delta-700",children:s}):Wt.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:l}),Wt.jsxs("div",{className:"flex gap-x-1",children:[Wt.jsx("div",{className:"flex items-center gap-x-2",children:Wt.jsx(au,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:r&&Wt.jsx(Qs,{height:20,width:20,color:"text-delta-700"}),children:t})}),Wt.jsx("div",{className:"flex items-center gap-x-2",children:Wt.jsx(au,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:Wt.jsx(ks,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),s&&Wt.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:l})]}),Wt.jsx("div",{children:u}),h||p?Wt.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&m&&Wt.jsx(au,{dataTest:"cancel-button",variant:"outlined",onClick:m,children:h}),p&&g&&Wt.jsx(au,{dataTest:"save-button",onClick:g,children:p})]}):null]}):null};export{_v as ACTIONS_COLUMN_ID,ys as ArchiveIcon,es as AssignmentIcon,ts as AssignmentOutlineIcon,X as Avatar,tu as BadgeIcon,Ll as BellIcon,Dl as BellOutlineIcon,Fs as CalendarBlankOutlineIcon,Ql as CalendarIcon,Jl as CalendarRangeIcon,ws as CheckBoxCheckedIcon,Xl as CheckFactIcon,Zl as CheckFactOutlineIcon,Es as CheckIcon,Kl as CheckOutlineIcon,zl as ChevronDoubleLeftIcon,Bl as ChevronDoubleRightIcon,xs as ChevronDownIcon,Vl as ChevronLeftIcon,Fl as ChevronRightIcon,_s as ChevronUpIcon,Q as ClickAwayListener,ks as CloseIcon,Xs as ConsentsIcon,J as Container,$l as DashboardViewIcon,Wl as DashboardViewOutlineIcon,Ms as DeleteOutlineIcon,ps as DotsVerticalIcon,bs as DownloadIcon,Ps as DragHorizontalIcon,vs as DropDownIcon,ms as DropUpIcon,Ds as DvrIcon,xv as EXPAND_COLUMN_ID,Ws as EarthIcon,nu as EditSquareIcon,Ts as EmptyPageIcon,Ls as ErrorOutlineIcon,ee as Fade,zs as FastCheckOutlineIcon,As as FilePdfIcon,Rs as FilterIcon,us as FindReplaceIcon,cs as FindReplacePeopleIcon,ql as HamburgerIcon,Ns as InboxOutboxIcon,Ss as InboxOutboxOutlineIcon,Js as KeyboardCapslockIcon,Vs as LinkOutlineIcon,ns as ListNumberedIcon,$s as ListSettingsLineIcon,Hs as ListStatusIcon,gs as LoadingIcon,Is as LockIcon,os as MessageProcessingIcon,rs as MessageProcessingOutlineIcon,eu as MessageReplyIcon,Vy as MinimizableDialog,Qs as MinimizeIcon,Zs as OutlineCalendarMonth,te as Paper,Ul as PdfIcon,Ys as PencilOutlineIcon,Yl as PeopleIcon,Gl as PeopleOutlineIcon,Os as PermMediaIcon,Cs as PermMediaOutline,ds as PersonIcon,fs as PersonOutlineIcon,ou as PlusIcon,ru as PlusIconCircle,ne as Popper,Hl as QnrIcon,qs as ReplayIcon,is as ReportBoxIcon,as as ReportBoxOutlineIcon,dh as RichInput,wv as SELECT_COLUMN_ID,hs as SearchIcon,ls as SettingsIcon,Gs as SettingsMenuHorizontalIcon,ss as SettingsOutlineIcon,oe as Skeleton,re as Stack,vv as StyledAccordion,bv as StyledAccordionDetails,yv as StyledAccordionSummary,du as StyledAlert,fu as StyledAlertTitle,Gt as StyledBadge,au as StyledButton,pu as StyledCheckbox,Yt as StyledChip,zm as StyledDatePicker,lu as StyledDialog,su as StyledDialogActions,uu as StyledDialogContent,cu as StyledDialogTitle,cv as StyledDrawer,Fy as StyledFilterMenu,Am as StyledFormControl,iv as StyledFormControlLabel,uv as StyledFormGroup,av as StyledFormHelperText,lv as StyledFormLabel,hu as StyledInputField,sv as StyledInputLabel,bh as StyledLabel,hv as StyledLink,dv as StyledMenu,fv as StyledMenuItem,pv as StyledMenuList,Ly as StyledModuleTitle,Cy as StyledPopover,vh as StyledRadio,yh as StyledRadioGroup,fh as StyledSelect,hh as StyledSelectAutocomplete,ph as StyledSelectItem,gh as StyledSlider,wh as StyledSnackbar,mh as StyledSwitch,gv as StyledTab,Ry as StyledTable,mv as StyledTabs,mu as StyledTextarea,rv as StyledTimePicker,ta as StyledTooltip,iu as StyledTypography,Dy as StyledWidgetHeader,Iy as StyledWidgetTitle,Us as TextBoxCheckOutlineIcon,js as TopicIcon,Bs as UnknownDocumentOutlineRoundedIcon,Ks as WarningAmberOutlineIcon,hy as createColumnHelper,le as omit,Lt as setMidnightTime,qt as setZeroTime};
47
+ function uv(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}const cv=e=>{var t;const{header:n,enableResizing:o,element:r}=e;let i=n.getSize();if(!o){i&&(i=`${i}px`);const e="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(n.headerGroup.headers))?void 0:t.id),o=n.headerGroup.headers[n.headerGroup.headers.length-(e?2:1)];return((null==o?void 0:o.id)===n.id||!i)&&(i="100%"),{width:i||n.column.columnDef.size,maxWidth:i||n.column.columnDef.maxSize,minWidth:i||n.column.columnDef.minSize}}const l=n.column.columnDef.size,a=n.column.columnDef.minSize;return{width:l,maxWidth:n.column.columnDef.maxSize,minWidth:a}},dv={"asma-core-ui-styled-table":"_asma-core-ui-styled-table_plwn6_1","table-wrapper":"_table-wrapper_plwn6_7","styled-table":"_styled-table_plwn6_11",tbody:"_tbody_plwn6_19","loading-icon":"_loading-icon_plwn6_24","t-row":"_t-row_plwn6_30","action-cell":"_action-cell_plwn6_46","t-cell":"_t-cell_plwn6_55",selected:"_selected_plwn6_100","is-loading":"_is-loading_plwn6_106","action-cell-default-background":"_action-cell-default-background_plwn6_109","no-rows-overlay":"_no-rows-overlay_plwn6_112","hide-table-header":"_hide-table-header_plwn6_121","show-table-header":"_show-table-header_plwn6_125","sortable-column":"_sortable-column_plwn6_130",resizer:"_resizer_plwn6_134",isResizing:"_isResizing_plwn6_145","table-header":"_table-header_plwn6_157","t-cell__actions":"_t-cell__actions_plwn6_178","sort-icon":"_sort-icon_plwn6_183","table-footer":"_table-footer_plwn6_186"};function fv({styledTableProps:e,header:t,tableCanResize:n=!1}){const{hideHeader:r=!1,enableResizing:i=!1}=e,l=o(null);return Kt.jsx("th",{ref:l,colSpan:t.colSpan,className:To(dv["t-cell"],"actions"===t.column.id&&dv["t-cell__actions"]),style:cv({enableResizing:i,header:t,element:l.current}),children:Kt.jsxs("div",{className:To("flex items-center justify-left",r?dv["hide-table-header"]:dv["show-table-header"],t.column.getCanSort()&&dv["sortable-column"],t.column.columnDef.className),onClick:t.column.getToggleSortingHandler(),children:[uv(t.column.columnDef.header,t.getContext()),{asc:Kt.jsx(Il,{className:dv["sort-icon"]}),desc:Kt.jsx(Dl,{className:dv["sort-icon"]})}[t.column.getIsSorted()]??null,n&&t.column.getCanResize()&&![fm,pm,hm].includes(t.column.id)&&Kt.jsx("div",{onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:`${dv.resizer} ${t.column.getIsResizing()?dv.isResizing:""}`})]})},t.id)}function pv({table:e,styledTableProps:t,tableCanResize:n}){const{stickyHeader:o=!1,hideHeader:r=!1}=t;return t.loading?null:Kt.jsx("thead",{className:To(dv["table-header"],r&&dv["hide-table-header"]),style:o&&{position:"sticky",top:-.2}||{},children:e.getHeaderGroups().map((e=>Kt.jsx("tr",{children:e.headers.map((e=>Kt.jsx(fv,{styledTableProps:t,header:e,tableCanResize:n},e.column.id)))},e.id)))})}const hv=({colSpan:e})=>Kt.jsx(Kt.Fragment,{children:Array.from({length:5}).map(((t,n)=>Kt.jsx("tr",{children:Kt.jsx("td",{colSpan:e,children:Kt.jsx(X,{variant:"text",width:"100%",height:50},n)})},n)))});function gv({styledTableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:l,onRowClick:a,expandArrow:s,tdClassName:u,customSubRowData:d,renderSubRows:f}=e;return Kt.jsxs(c,{children:[Kt.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:To(dv["t-row"],r&&dv["is-loading"],(t.getIsExpanded()||t.getIsSelected())&&dv.selected,null==i?void 0:i(t)),style:{height:l?`${l}px`:"inherit"},onMouseUp:e=>{var n,o;if(e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName)return;t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),null==(n=document.getElementById(t.id))||n.focus();const r="Range"===(null==(o=window.getSelection())?void 0:o.type);a&&!r&&a(e,t)},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Kt.jsx("td",{className:To(dv["t-cell"],u,n&&dv["action-cell"],n&&(t.getIsExpanded()||t.getIsSelected())&&dv.selected,n&&(null!=i&&i(t)?null==i?void 0:i(t):dv["action-cell-default-background"])),children:uv(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Kt.jsx(Kt.Fragment,{children:d&&f&&f({rows:d.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function mv({styledTableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Kt.jsx(Kt.Fragment,{children:n.map(((t,n)=>Kt.jsx(gv,{styledTableProps:e,row:t,index:n},t.id)))})}const vv=({colSpan:e,noRowsOverlay:t})=>Kt.jsx("tr",{className:dv["no-rows-overlay"],children:Kt.jsx("td",{colSpan:e,children:t})});function yv({table:e,styledTableProps:t}){const{columns:n,data:o,loading:r,noRowsOverlay:i}=t;return Kt.jsxs("tbody",{className:dv.tbody,children:[o.length>0&&r&&Kt.jsx(Rl,{className:dv["loading-icon"],width:50,height:50}),0===o.length&&r?Kt.jsx(hv,{colSpan:n.length}):o.length>0?Kt.jsx(mv,{table:e,styledTableProps:t}):Kt.jsx(vv,{colSpan:n.length,noRowsOverlay:i})]})}const bv=e=>Kt.jsx(R,{...e}),wv=()=>{const[e,t]=r(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}},_v={"table-pagination":"_table-pagination_1oks0_1","table-pagination__pages-list":"_table-pagination__pages-list_1oks0_13","table-pagination__pages-list__page":"_table-pagination__pages-list__page_1oks0_18","page-selected":"_page-selected_1oks0_29","check-icon":"_check-icon_1oks0_32"};function xv({table:e,locale:t}){const{anchorEl:n,open:r,handleClose:i,handleOpen:l}=wv(),a=o(null),s="no"===t,u=dv["asma-core-ui-styled-table"],c=()=>{var e,t,n,o;null==(o=null==(n=null==(t=null==(e=null==a?void 0:a.current)?void 0:e.closest(`.${u}`))?void 0:t.querySelectorAll('[data-index="0"]'))?void 0:n[0])||o.scrollIntoView({block:"center",inline:"start"})},d=e.getPageCount(),f=e.getState().pagination.pageIndex+1,p=Array.from({length:d},((e,t)=>t+1));return d>1?Kt.jsxs("div",{ref:a,className:_v["table-pagination"],children:[Kt.jsx(br,{title:s?"Nåværende side":"Current Page",children:Kt.jsx("div",{children:Kt.jsxs(Ma,{variant:"outlined",dataTest:"list-pages",style:{width:"134px"},onClick:e=>{l(e)},endIcon:r?Kt.jsx(Vl,{height:24,width:24}):Kt.jsx(zl,{height:24,width:24}),children:[s?"Side":"Page"," ",f," ",s?"av":"of"," ",d]})})}),Kt.jsx(bv,{open:r,anchorEl:n,onClose:i,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Kt.jsx("div",{className:_v["table-pagination__pages-list"],children:p.map((t=>Kt.jsxs("div",{className:To(_v["table-pagination__pages-list__page"],f===t&&"page-selected"),onClick:()=>{e.setPageIndex(t-1),i(),c()},children:[f===t&&Kt.jsx(Hl,{className:_v["check-icon"],height:24,width:24}),Kt.jsxs("span",{children:[s?"Side":"Page"," ",t]})]},t)))})}),Kt.jsx(br,{title:1===f?"":s?"Forrige side":"Previous Page",children:Kt.jsx("div",{children:Kt.jsx(Ma,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Kt.jsx(rl,{height:24,width:24}),onClick:()=>{e.previousPage(),c()},disabled:!e.getCanPreviousPage()})})}),Kt.jsx(br,{title:f===d?"":s?"Neste side":"Next Page",children:Kt.jsx("div",{children:Kt.jsx(Ma,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Kt.jsx(ol,{height:24,width:24}),onClick:()=>{e.nextPage(),c()},disabled:!e.getCanNextPage()})})})]}):null}function kv({table:e,styledTableProps:t}){var n;return t.hideFooter?null:Kt.jsxs("div",{className:dv["table-footer"],children:[null==(n=t.footer)?void 0:n.call(t,e),Kt.jsx(xv,{table:e,locale:t.locale||"en"})]})}const Cv=t=>{const{columns:n,data:o,initialState:r,pageSize:i,enableRowSelection:l,tableInstanceRef:a,...s}=t,u=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:rv(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:i||50},columnVisibility:{...null==r?void 0:r.columnVisibility,[fm]:!1},...r},enableRowSelection:l,getCoreRowModel:e=>ym((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const l=[];for(let s=0;s<t.length;s++){const u=iv(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var a;n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return l};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>ym((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?sv(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>ym((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const l=n.map((e=>e.id)),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&a&&s.length&&(l.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:a,resolvedValue:null!=(t=null==a.resolveFilterValue?void 0:a.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return av(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ym((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),l={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(l[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],a=l[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(a.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?a.sortUndefined:-a.sortUndefined)}if(0===u&&(u=a.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),a.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>ym((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:l,rowsById:a}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:l,rowsById:a}:sv({rows:i,flatRows:l,rowsById:a}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:s.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString()),defaultColumn:t.enableResizing?{size:void 0}:void 0,...s});return a&&(a.current=u),{table:u}};function Ov({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=wv(),l=t(e.row).filter((e=>!e.hide));return Kt.jsx("div",{className:"flex justify-center items-center w-[42px]",children:l.length?Kt.jsxs(Kt.Fragment,{children:[Kt.jsx(Ma,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Kt.jsx(Pl,{className:"!text-delta-800",width:20,height:20})}),Kt.jsx(bv,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Kt.jsx(em,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]}):null})}function Ev({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=wv();return Kt.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Kt.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center cursor-pointer",onClick:r,children:Kt.jsx(Xi,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Kt.jsx(bv,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==fm)).map((e=>e.columnDef.header?Kt.jsxs(em,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Kt.jsx(Ya,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const Nv=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:l}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Kt.jsx(Ev,{headerData:e}):null,cell:e=>n||o?Kt.jsxs("div",{className:"flex items-center justify-end",children:[o&&Kt.jsx("div",{className:"mr-1",children:null==o?void 0:o(e)}),n&&Kt.jsx(Ov,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===fm))&&t.unshift({id:fm,minSize:40,maxSize:40,size:40,header:({table:e})=>Kt.jsx("div",{className:"w-[25px]",children:Kt.jsx(Ya,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Kt.jsx("div",{className:"w-[25px]",children:Kt.jsx(Ya,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),l&&!t.find((e=>e.id===pm))&&t.unshift({id:pm,minSize:50,maxSize:50,size:50,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Kt.jsx("span",{className:"flex h-fit w-full outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Kt.jsx(Vl,{width:24,height:24}):Kt.jsx(zl,{width:24,height:24})}):null}})},Sv=e=>{const{className:t,height:n}=e;Nv(e);const{table:o}=Cv(e),r=f((()=>{var t,n;if(!e.enableColumnResizing)return;const r=o.getFlatHeaders(),i={};for(let e=0;e<r.length;e++){const t=r[e];i[`--header-${t.id}-size`]=t.getSize(),i[`--col-${t.column.id}-size`]=t.column.getSize()}return null==(t=e.getTableState)||t.call(e,o.getState()),null==(n=e.getColumnSizing)||n.call(e,o.getState().columnSizing),i}),[e.enableColumnResizing,o.getState().columnSizingInfo,o.getState().columnSizing]);return Kt.jsxs("div",{className:dv["asma-core-ui-styled-table"],children:[Kt.jsx("div",{className:To(dv["table-wrapper"],t),style:{height:n},children:Kt.jsxs("table",{className:dv["styled-table"],style:{...r},children:[Kt.jsx(pv,{table:o,styledTableProps:e,tableCanResize:!!e.enableColumnResizing}),r?Kt.jsx(Kt.Fragment,{children:o.getState().columnSizingInfo.isResizingColumn?Kt.jsx(jv,{table:o,styledTableProps:e}):Kt.jsx(yv,{table:o,styledTableProps:e})}):Kt.jsx(yv,{table:o,styledTableProps:e})]})}),Kt.jsx(kv,{table:o,styledTableProps:e})]})},jv=d(yv,((e,t)=>e.table.options.data===t.table.options.data)),Tv="_styled-widget-title_1gze6_1",Mv=function(e){return Kt.jsx("div",{className:Tv,children:e.children})},Pv="_styled-widget-header_1qk88_1",Av=({actions:e,title:t})=>Kt.jsxs("div",{className:Pv,children:[Kt.jsx(Mv,{children:t}),Kt.jsx("div",{children:e})]}),Rv="_asma-core-ui-styled-widget_9kq62_1",Iv="_widget-wrapper_9kq62_7",Dv="_widget-expanded_9kq62_18",Lv="_widget-collapsed_9kq62_21",qv="_widget-header_9kq62_24",Fv="_widget-content_9kq62_30",zv="_widget-footer_9kq62_34",Vv="_widget-footer-space-between_9kq62_38",Bv="_widget-footer-center_9kq62_41",Hv="_widget-link_9kq62_44",Uv=({children:e,title:t,icon:n,link:o,viewMore:i})=>{const[l,a]=r(!1);return Kt.jsx("div",{className:Rv,children:Kt.jsxs("div",{className:To(Iv,l?Dv:Lv),children:[Kt.jsxs("div",{className:qv,children:[n,Kt.jsx(Mv,{children:t})]}),Kt.jsx("div",{className:Fv,children:e}),Kt.jsxs("div",{className:To(zv,!i||null!=i&&i.hide?Bv:Vv),children:[!!i&&!(null!=i&&i.hide)&&Kt.jsx(Ma,{dataTest:"view-more",variant:"text",endIcon:l?Kt.jsx(Vl,{width:20,height:20}):Kt.jsx(zl,{width:20,height:20}),onClick:()=>{var e;a(!l),null==(e=null==i?void 0:i.onClick)||e.call(i)},children:l?"View less":"View more"}),!!o&&!o.hide&&Kt.jsx(lm,{dataTest:"go-to-button",className:Hv,size:"small",href:o.href,onClick:o.onClick,content:o.content})]})]})})},Wv="_styled-module-title_174mo_1",Gv=function(e){return Kt.jsx("h1",{"data-test":e.dataTest,className:Wv,children:e.children})},$v=()=>{const[e,t]=r(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Kv=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined",popoverProps:l})=>{const{onAnchorClick:a,onClose:s,anchorEl:u}=$v();return Kt.jsxs(Kt.Fragment,{children:[Kt.jsxs("div",{className:"w-fit h-fit relative",children:[Kt.jsx(Ma,{disabled:o,variant:i,startIcon:Kt.jsx(Jl,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:a,size:r,dataTest:n,children:"Filter"}),e&&Kt.jsx("div",{className:To("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Kt.jsx(bv,{...l,open:!!u,anchorEl:u,onClose:s,anchorOrigin:(null==l?void 0:l.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==l?void 0:l.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==l?void 0:l.className)||"my-1",children:t})]})},Yv=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:l=!0,title:a,label:s,children:u,open:c,onClose:d,className:f="",primaryButtonText:p,secondaryButtonText:h,onPrimaryButtonClick:g,onSecondaryButtonClick:m,dataTest:v})=>{const[y,b]=r(!1),w=()=>{b(!y)};return c?Kt.jsxs(Kt.Fragment,{children:[Kt.jsx("div",{style:{zIndex:51},className:To("fixed bottom-4 right-4 w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",!y&&"!h-0 !w-0 "),children:Kt.jsxs("div",{className:To("flex items-center justify-between",!y&&"hidden"),"data-test":v,children:[Kt.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:a}),Kt.jsxs("div",{className:"flex gap-x-1",children:[Kt.jsx(Ma,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:l&&Kt.jsx(ya,{height:20,width:20,color:"text-gama-500"}),children:n}),Kt.jsx("div",{className:"flex items-center gap-x-2",children:Kt.jsx(Ma,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:o&&Kt.jsx(Bl,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}),Kt.jsxs("div",{className:To("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",y&&"!h-0 !w-0",f),"data-test":v,children:[Kt.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Kt.jsxs("div",{className:"flex items-center justify-between",children:[s?Kt.jsx("div",{className:"text-sm text-delta-700",children:s}):Kt.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a}),Kt.jsxs("div",{className:"flex gap-x-1",children:[Kt.jsx("div",{className:"flex items-center gap-x-2",children:Kt.jsx(Ma,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:i&&Kt.jsx(va,{height:20,width:20,color:"text-delta-700"}),children:t})}),Kt.jsx("div",{className:"flex items-center gap-x-2",children:Kt.jsx(Ma,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:Kt.jsx(Bl,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),s&&Kt.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a})]}),Kt.jsx("div",{children:u}),h||p?Kt.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&m&&Kt.jsx(Ma,{dataTest:"cancel-button",variant:"outlined",onClick:m,children:h}),p&&g&&Kt.jsx(Ma,{dataTest:"save-button",onClick:g,children:p})]}):null]})]}):null};export{hm as ACTIONS_COLUMN_ID,Ll as ArchiveIcon,bl as AssignmentIcon,wl as AssignmentOutlineIcon,Q as Avatar,wa as BadgeIcon,tl as BellIcon,el as BellOutlineIcon,ra as CalendarBlankOutlineIcon,ml as CalendarIcon,yl as CalendarRangeIcon,Fl as CheckBoxCheckedIcon,gl as CheckFactIcon,hl as CheckFactOutlineIcon,Hl as CheckIcon,pl as CheckOutlineIcon,il as ChevronDoubleLeftIcon,ll as ChevronDoubleRightIcon,zl as ChevronDownIcon,rl as ChevronLeftIcon,ol as ChevronRightIcon,Vl as ChevronUpIcon,J as ClickAwayListener,Bl as CloseIcon,ma as ConsentsIcon,ee as Container,ul as DashboardViewIcon,cl as DashboardViewOutlineIcon,Ql as DeleteOutlineIcon,Pl as DotsVerticalIcon,ql as DownloadIcon,Zl as DragHorizontalIcon,Dl as DropDownIcon,Il as DropUpIcon,ta as DvrIcon,pm as EXPAND_COLUMN_ID,da as EarthIcon,_a as EditSquareIcon,Yl as EmptyPageIcon,na as ErrorOutlineIcon,te as Fade,la as FastCheckOutlineIcon,Xl as FilePdfIcon,Jl as FilterIcon,Sl as FindReplaceIcon,jl as FindReplacePeopleIcon,nl as HamburgerIcon,Oa as HandymanIcon,Ca as HandymanOutlineIcon,Gl as InboxOutboxIcon,$l as InboxOutboxOutlineIcon,ya as KeyboardCapslockIcon,ia as LinkOutlineIcon,_l as ListNumberedIcon,ca as ListSettingsLineIcon,sa as ListStatusIcon,Rl as LoadingIcon,ea as LockIcon,jv as MemoizedTableBody,xl as MessageProcessingIcon,kl as MessageProcessingOutlineIcon,ba as MessageReplyIcon,Yv as MinimizableDialog,va as MinimizeIcon,vl as NewCalendarIcon,ga as OutlineCalendarMonth,ne as Paper,sl as PdfIcon,pa as PencilOutlineIcon,fl as PeopleIcon,dl as PeopleOutlineIcon,Ul as PermMediaIcon,Wl as PermMediaOutline,Tl as PersonIcon,Ml as PersonOutlineIcon,Ea as PinIcon,xa as PlusIcon,ka as PlusIconCircle,oe as Popper,al as QnrIcon,oa as ReplayIcon,Cl as ReportBoxIcon,Ol as ReportBoxOutlineIcon,$f as RichInput,fm as SELECT_COLUMN_ID,Al as SearchIcon,El as SettingsIcon,fa as SettingsMenuHorizontalIcon,Nl as SettingsOutlineIcon,re as Skeleton,ie as Stack,um as StyledAccordion,dm as StyledAccordionDetails,cm as StyledAccordionSummary,Ga as StyledAlert,Ka as StyledAlertTitle,Yt as StyledBadge,Ma as StyledButton,Ya as StyledCheckbox,Zt as StyledChip,jg as StyledDatePicker,qa as StyledDialog,Va as StyledDialogActions,Ha as StyledDialogContent,Wa as StyledDialogTitle,Qg as StyledDrawer,Kv as StyledFilterMenu,vg as StyledFormControl,$g as StyledFormControlLabel,Xg as StyledFormGroup,Kg as StyledFormHelperText,Yg as StyledFormLabel,Za as StyledInputField,Zg as StyledInputLabel,op as StyledLabel,lm as StyledLink,Jg as StyledMenu,em as StyledMenuItem,tm as StyledMenuList,Gv as StyledModuleTitle,bv as StyledPopover,tp as StyledRadio,np as StyledRadioGroup,Kf as StyledSelect,Qf as StyledSelectAutocomplete,Yf as StyledSelectItem,Jf as StyledSlider,ep as StyledSwitch,am as StyledTab,Sv as StyledTable,sm as StyledTabs,Qa as StyledTextarea,Gg as StyledTimePicker,br as StyledTooltip,Sa as StyledTypography,Uv as StyledWidget,Av as StyledWidgetHeader,Mv as StyledWidgetTitle,ua as TextBoxCheckOutlineIcon,Kl as TopicIcon,aa as UnknownDocumentOutlineRoundedIcon,ha as WarningAmberOutlineIcon,Na as WorkIcon,lv as createColumnHelper,ue as omit,Ft as setMidnightTime,zt as setZeroTime};