iobroker.admin 7.3.1 → 7.3.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 (44) hide show
  1. package/README.md +5 -4
  2. package/adminWww/asset-manifest.json +15 -15
  3. package/adminWww/index.html +1 -1
  4. package/adminWww/static/js/{288.e785dc66.chunk.js → 288.875210cc.chunk.js} +2 -2
  5. package/adminWww/static/js/{288.e785dc66.chunk.js.map → 288.875210cc.chunk.js.map} +1 -1
  6. package/adminWww/static/js/38.d6758029.chunk.js.map +1 -1
  7. package/adminWww/static/js/{4308.825ae51f.chunk.js → 3946.1d44a5fe.chunk.js} +2 -2
  8. package/adminWww/static/js/3946.1d44a5fe.chunk.js.map +1 -0
  9. package/adminWww/static/js/6603.614b4df4.chunk.js +3 -0
  10. package/adminWww/static/js/6603.614b4df4.chunk.js.map +1 -0
  11. package/adminWww/static/js/6718.67830d76.chunk.js +2 -0
  12. package/adminWww/static/js/6718.67830d76.chunk.js.map +1 -0
  13. package/adminWww/static/js/7302.09345470.chunk.js +2 -0
  14. package/adminWww/static/js/7302.09345470.chunk.js.map +1 -0
  15. package/adminWww/static/js/7931.38a8acbc.chunk.js +3 -0
  16. package/adminWww/static/js/7931.38a8acbc.chunk.js.map +1 -0
  17. package/adminWww/static/js/css.js +8 -0
  18. package/adminWww/static/js/html.js +8 -0
  19. package/adminWww/static/js/javascript.js +8 -0
  20. package/adminWww/static/js/{main.91c7efb7.js → main.9f62181e.js} +2 -2
  21. package/adminWww/static/js/{main.91c7efb7.js.map → main.9f62181e.js.map} +1 -1
  22. package/adminWww/static/js/worker-css.js +1 -0
  23. package/adminWww/static/js/worker-html.js +1 -0
  24. package/adminWww/static/js/worker-javascript.js +1 -0
  25. package/adminWww/static/js/worker-json.js +1 -0
  26. package/adminWww/static/js/worker-xml.js +1 -0
  27. package/adminWww/static/js/worker-yaml.js +1 -0
  28. package/build-backend/lib/checkLinuxPass.js +32 -6
  29. package/build-backend/lib/checkLinuxPass.js.map +1 -1
  30. package/build-backend/lib/web.js +4 -1
  31. package/build-backend/lib/web.js.map +1 -1
  32. package/io-package.json +14 -1
  33. package/package.json +4 -4
  34. package/adminWww/static/js/3868.dd7a3468.chunk.js +0 -3
  35. package/adminWww/static/js/3868.dd7a3468.chunk.js.map +0 -1
  36. package/adminWww/static/js/4308.825ae51f.chunk.js.map +0 -1
  37. package/adminWww/static/js/6309.b5ed59b8.chunk.js +0 -2
  38. package/adminWww/static/js/6309.b5ed59b8.chunk.js.map +0 -1
  39. package/adminWww/static/js/6603.d6aaea6e.chunk.js +0 -3
  40. package/adminWww/static/js/6603.d6aaea6e.chunk.js.map +0 -1
  41. package/adminWww/static/js/7302.8bdbcaa8.chunk.js +0 -2
  42. package/adminWww/static/js/7302.8bdbcaa8.chunk.js.map +0 -1
  43. /package/adminWww/static/js/{6603.d6aaea6e.chunk.js.LICENSE.txt → 6603.614b4df4.chunk.js.LICENSE.txt} +0 -0
  44. /package/adminWww/static/js/{3868.dd7a3468.chunk.js.LICENSE.txt → 7931.38a8acbc.chunk.js.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see 3868.dd7a3468.chunk.js.LICENSE.txt */
2
- (self.webpackChunksrc_rx=self.webpackChunksrc_rx||[]).push([[3868],{29239:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,I:()=>s});var r=n(29183),o=(n(91999),n(79159));const i=r.createContext();const s=()=>r.useContext(i)??!1,a=function(e){let{value:t,...n}=e;return(0,o.jsx)(i.Provider,{value:t??!0,...n})}},2136:(e,t,n)=>{"use strict";n.d(t,{h:()=>Gt});Math.pow(10,8);const r=6048e5,o=36e5,i=Symbol.for("constructDateFrom");function s(e,t){return"function"===typeof e?e(t):e&&"object"===typeof e&&i in e?e[i](t):e instanceof Date?new e.constructor(t):new Date(t)}function a(e,t){return s(t||e,e)}function c(e,t,n){const r=a(e,n?.in);return isNaN(t)?s(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function u(e,t,n){return s(n?.in||e,+a(e)+t)}function l(e,t,n){return u(e,1e3*t,n)}function h(e,t,n){const r=a(e,n?.in);return r.setTime(r.getTime()+6e4*t),r}function d(e,t,n){return u(e,t*o,n)}function f(e,t,n){return c(e,7*t,n)}function p(e,t,n){const r=a(e,n?.in);if(isNaN(t))return s(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=s(n?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);return o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function g(e,t,n){return p(e,12*t,n)}function m(e,t){const n=a(e,t?.in);return n.setHours(23,59,59,999),n}let y={};function v(){return y}function b(e,t){const n=v(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=a(e,t?.in),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function w(e,t){const n=a(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}const x=(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"})}},k=(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"})}},S={p:k,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return x(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",x(r,t)).replace("{{time}}",k(o,t))}},_={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"}};function T(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const C={date:T({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:T({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:T({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function O(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function I(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(a,(e=>e.test(s))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(a,(e=>e.test(s)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(s.length)}}}var D;const A={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=_[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:C,formatRelative:(e,t,n,r)=>E[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:O({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:O({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:O({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:O({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:O({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"})},match:{ordinalNumber:(D={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.match(D.matchPattern);if(!n)return null;const r=n[0],o=e.match(D.parsePattern);if(!o)return null;let i=D.valueCallback?D.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:I({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:I({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:e=>e+1}),month:I({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:I({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:I({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function M(e){const t=a(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=s.bind(null,e||n.find((e=>"object"===typeof e)));return n.map(o)}function L(e,t){const n=a(e,t?.in);return n.setHours(0,0,0,0),n}function R(e,t,n){const[r,o]=P(n?.in,e,t),i=L(r),s=L(o),a=+i-M(i),c=+s-M(s);return Math.round((a-c)/864e5)}function N(e,t){const n=a(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function j(e,t){const n=a(e,t?.in);return R(n,N(n))+1}function F(e,t){const n=v(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=a(e,t?.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function H(e,t){return F(e,{...t,weekStartsOn:1})}function $(e,t){const n=a(e,t?.in),r=n.getFullYear(),o=s(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=H(o),c=s(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const u=H(c);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function B(e,t){const n=$(e,t),r=s(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),H(r)}function q(e,t){const n=a(e,t?.in),o=+H(n)-+B(n);return Math.round(o/r)+1}function z(e,t){const n=a(e,t?.in),r=n.getFullYear(),o=v(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=s(t?.in||e,0);c.setFullYear(r+1,0,i),c.setHours(0,0,0,0);const u=F(c,t),l=s(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const h=F(l,t);return+n>=+u?r+1:+n>=+h?r:r-1}function U(e,t){const n=v(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=z(e,t),i=s(t?.in||e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return F(i,t)}function W(e,t){const n=a(e,t?.in),o=+F(n,t)-+U(n,t);return Math.round(o/r)+1}function V(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Y={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return V("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):V(n+1,2)},d:(e,t)=>V(e.getDate(),t.length),a(e,t){const n=e.getHours()/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:(e,t)=>V(e.getHours()%12||12,t.length),H:(e,t)=>V(e.getHours(),t.length),m:(e,t)=>V(e.getMinutes(),t.length),s:(e,t)=>V(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return V(Math.trunc(r*Math.pow(10,n-3)),t.length)}},K="midnight",G="noon",X="morning",Q="afternoon",J="evening",Z="night",ee={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,n,r){const o=z(e,r),i=o>0?o:1-o;if("YY"===t){return V(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):V(i,t.length)},R:function(e,t){return V($(e),t.length)},u:function(e,t){return V(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return V(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return V(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return V(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=W(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,n){const r=q(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):V(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,n){const r=j(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):V(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return V(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return V(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return V(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?G:0===r?K: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){const r=e.getHours();let o;switch(o=r>=17?J:r>=12?Q:r>=4?X:Z,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){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return ne(r);case"XXXX":case"XX":return re(r);default:return re(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ne(r);case"xxxx":case"xx":return re(r);default:return re(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+te(r,":");default:return"GMT"+re(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+te(r,":");default:return"GMT"+re(r,":")}},t:function(e,t,n){return V(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return V(+e,t.length)}};function te(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+V(i,2)}function ne(e,t){if(e%60===0){return(e>0?"-":"+")+V(Math.abs(e)/60,2)}return re(e,t)}function re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e);return n+V(Math.trunc(r/60),2)+t+V(r%60,2)}const oe=/^D+$/,ie=/^Y+$/,se=["D","DD","YY","YYYY"];function ae(e){return oe.test(e)}function ce(e){return ie.test(e)}function ue(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),se.includes(e))throw new RangeError(r)}function le(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function he(e){return!(!le(e)&&"number"!==typeof e||isNaN(+a(e)))}const de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,ge=/''/g,me=/[a-zA-Z]/;function ye(e,t,n){const r=v(),o=n?.locale??r.locale??A,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=a(e,n?.in);if(!he(c))throw new RangeError("Invalid time value");let u=t.match(fe).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,S[t])(e,o.formatLong)}return e})).join("").match(de).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ve(e)};if(ee[t])return{isToken:!0,value:e};if(t.match(me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(u=o.localize.preprocessor(c,u));const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return u.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&ce(i)||!n?.useAdditionalDayOfYearTokens&&ae(i))&&ue(i,t,String(e));return(0,ee[i[0]])(c,i,o.localize,l)})).join("")}function ve(e){const t=e.match(pe);return t?t[1].replace(ge,"'"):e}function be(e,t){return a(e,t?.in).getDate()}function we(e,t){const n=a(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=s(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function xe(e,t){return a(e,t?.in).getHours()}function ke(e,t){return a(e,t?.in).getMinutes()}function Se(e,t){return a(e,t?.in).getMonth()}function _e(e){return a(e).getSeconds()}function Te(e){return a(e).getMilliseconds()}function Ce(e,t){return a(e,t?.in).getFullYear()}function Ee(e,t){return+a(e)>+a(t)}function Oe(e,t){return+a(e)<+a(t)}function Ie(e,t){return+a(e)===+a(t)}function De(e,t,n){const[r,o]=P(n?.in,e,t);return+L(r)===+L(o)}function Ae(e,t,n){const[r,o]=P(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Me(e,t,n){const[r,o]=P(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Pe(e,t){const n=a(e,t?.in);return n.setMinutes(0,0,0),n}function Le(e,t,n){const[r,o]=P(n?.in,e,t);return+Pe(r)===+Pe(o)}function Re(){return Object.assign({},v())}function Ne(e,t){const n=function(e){return"function"===typeof e&&e.prototype?.constructor===e}(t)?new t(0):s(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class je{subPriority=0;validate(e,t){return!0}}class Fe extends je{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class He extends je{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>s(t,e))}set(e,t){return t.timestampIsSet?e:s(e,Ne(e,this.context))}}class $e{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new Fe(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const Be=/^(1[0-2]|0?\d)/,qe=/^(3[0-1]|[0-2]?\d)/,ze=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ue=/^(5[0-3]|[0-4]?\d)/,We=/^(2[0-3]|[0-1]?\d)/,Ve=/^(2[0-4]|[0-1]?\d)/,Ye=/^(1[0-1]|0?\d)/,Ke=/^(1[0-2]|0?\d)/,Ge=/^[0-5]?\d/,Xe=/^[0-5]?\d/,Qe=/^\d/,Je=/^\d{1,2}/,Ze=/^\d{1,3}/,et=/^\d{1,4}/,tt=/^-?\d+/,nt=/^-?\d/,rt=/^-?\d{1,2}/,ot=/^-?\d{1,3}/,it=/^-?\d{1,4}/,st=/^([+-])(\d{2})(\d{2})?|Z/,at=/^([+-])(\d{2})(\d{2})|Z/,ct=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ut=/^([+-])(\d{2}):(\d{2})|Z/,lt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ht(e,t){return e?{value:t(e.value),rest:e.rest}:e}function dt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ft(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*o+6e4*s+1e3*a),rest:t.slice(n[0].length)}}function pt(e){return dt(tt,e)}function gt(e,t){switch(e){case 1:return dt(Qe,t);case 2:return dt(Je,t);case 3:return dt(Ze,t);case 4:return dt(et,t);default:return dt(new RegExp("^\\d{1,"+e+"}"),t)}}function mt(e,t){switch(e){case 1:return dt(nt,t);case 2:return dt(rt,t);case 3:return dt(ot,t);case 4:return dt(it,t);default:return dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function vt(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function bt(e){return e%400===0||e%4===0&&e%100!==0}function wt(e,t,n){const r=a(e,n?.in),o=W(r,n)-t;return r.setDate(r.getDate()-7*o),a(r,n?.in)}function xt(e,t,n){const r=a(e,n?.in),o=q(r,n)-t;return r.setDate(r.getDate()-7*o),r}const kt=[31,28,31,30,31,30,31,31,30,31,30,31],St=[31,29,31,30,31,30,31,31,30,31,30,31];function _t(e,t,n){const r=v(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=a(e,n?.in),s=i.getDay(),u=7-o;return c(i,t<0||t>6?t-(s+u)%7:((t%7+7)%7+u)%7-(s+u)%7,n)}function Tt(e,t){const n=a(e,t?.in).getDay();return 0===n?7:n}function Ct(e,t,n){const r=a(e,n?.in);return c(r,t-Tt(r,n),n)}const Et={G:new class extends $e{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends $e{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return ht(gt(4,e),r);case"yo":return ht(n.ordinalNumber(e,{unit:"year"}),r);default:return ht(gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=vt(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends $e{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return ht(gt(4,e),r);case"Yo":return ht(n.ordinalNumber(e,{unit:"year"}),r);default:return ht(gt(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=z(e,r);if(n.isTwoDigitYear){const t=vt(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),F(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),F(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends $e{priority=130;parse(e,t){return mt("R"===t?4:t.length,e)}set(e,t,n){const r=s(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),H(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends $e{priority=130;parse(e,t){return mt("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends $e{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return gt(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends $e{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return gt(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends $e{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return ht(dt(Be,e),r);case"MM":return ht(gt(2,e),r);case"Mo":return ht(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends $e{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return ht(dt(Be,e),r);case"LL":return ht(gt(2,e),r);case"Lo":return ht(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends $e{priority=100;parse(e,t,n){switch(t){case"w":return dt(Ue,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return F(wt(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends $e{priority=100;parse(e,t,n){switch(t){case"I":return dt(Ue,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return H(xt(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends $e{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return dt(qe,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return gt(t.length,e)}}validate(e,t){const n=bt(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=St[r]:t>=1&&t<=kt[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends $e{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return dt(ze,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return gt(t.length,e)}}validate(e,t){return bt(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends $e{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_t(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends $e{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ht(gt(t.length,e),o);case"eo":return ht(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_t(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends $e{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ht(gt(t.length,e),o);case"co":return ht(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_t(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends $e{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return gt(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ht(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ht(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ht(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ht(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=Ct(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends $e{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(yt(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends $e{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(yt(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends $e{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(yt(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends $e{priority=70;parse(e,t,n){switch(t){case"h":return dt(Ke,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return gt(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends $e{priority=70;parse(e,t,n){switch(t){case"H":return dt(We,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return gt(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends $e{priority=70;parse(e,t,n){switch(t){case"K":return dt(Ye,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return gt(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends $e{priority=70;parse(e,t,n){switch(t){case"k":return dt(Ve,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return gt(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends $e{priority=60;parse(e,t,n){switch(t){case"m":return dt(Ge,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends $e{priority=50;parse(e,t,n){switch(t){case"s":return dt(Xe,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends $e{priority=30;parse(e,t){return ht(gt(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends $e{priority=10;parse(e,t){switch(t){case"X":return ft(st,e);case"XX":return ft(at,e);case"XXXX":return ft(ct,e);case"XXXXX":return ft(lt,e);default:return ft(ut,e)}}set(e,t,n){return t.timestampIsSet?e:s(e,e.getTime()-M(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends $e{priority=10;parse(e,t){switch(t){case"x":return ft(st,e);case"xx":return ft(at,e);case"xxxx":return ft(ct,e);case"xxxxx":return ft(lt,e);default:return ft(ut,e)}}set(e,t,n){return t.timestampIsSet?e:s(e,e.getTime()-M(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends $e{priority=40;parse(e){return pt(e)}set(e,t,n){return[s(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends $e{priority=20;parse(e){return pt(e)}set(e,t,n){return[s(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Ot=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,It=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dt=/^'([^]*?)'?$/,At=/''/g,Mt=/\S/,Pt=/[a-zA-Z]/;function Lt(e,t,n,r){const o=()=>s(r?.in||n,NaN),i=Re(),c=r?.locale??i.locale??A,u=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():a(n,r?.in);const h={firstWeekContainsDate:u,weekStartsOn:l,locale:c},d=[new He(r?.in,n)],f=t.match(It).map((e=>{const t=e[0];if(t in S){return(0,S[t])(e,c.formatLong)}return e})).join("").match(Ot),p=[];for(let s of f){!r?.useAdditionalWeekYearTokens&&ce(s)&&ue(s,t,e),!r?.useAdditionalDayOfYearTokens&&ae(s)&&ue(s,t,e);const n=s[0],i=Et[n];if(i){const{incompatibleTokens:t}=i;if(Array.isArray(t)){const e=p.find((e=>t.includes(e.token)||e.token===n));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${s}\` at the same time`)}else if("*"===i.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${s}\` and any other token at the same time`);p.push({token:n,fullToken:s});const r=i.run(e,s,c.match,h);if(!r)return o();d.push(r.setter),e=r.rest}else{if(n.match(Pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===s?s="'":"'"===n&&(s=s.match(Dt)[1].replace(At,"'")),0!==e.indexOf(s))return o();e=e.slice(s.length)}}if(e.length>0&&Mt.test(e))return o();const g=d.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>d.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=a(n,r?.in);if(isNaN(+m))return o();const y={};for(const s of g){if(!s.validate(m,h))return o();const e=s.set(m,y,h);Array.isArray(e)?(m=e[0],Object.assign(y,e[1])):m=e}return m}function Rt(e,t,n){const r=a(e,n?.in);return r.setDate(t),r}function Nt(e,t,n){const r=a(e,n?.in);return r.setHours(t),r}function jt(e,t,n){const r=a(e,n?.in);return r.setMinutes(t),r}function Ft(e,t,n){const r=a(e,n?.in),o=r.getFullYear(),i=r.getDate(),c=s(n?.in||e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const u=we(c);return r.setMonth(t,Math.min(i,u)),r}function Ht(e,t,n){const r=a(e,n?.in);return r.setSeconds(t),r}function $t(e,t,n){const r=a(e,n?.in);return r.setMilliseconds(t),r}function Bt(e,t,n){const r=a(e,n?.in);return isNaN(+r)?s(n?.in||e,NaN):(r.setFullYear(t),r)}function qt(e,t){const n=a(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function zt(e,t){const n=a(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Ut(e,t,n){const r=+a(e,n?.in),[o,i]=[+a(t.start,n?.in),+a(t.end,n?.in)].sort(((e,t)=>e-t));return r>=o&&r<=i}var Wt=n(77940);const Vt={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Yt={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Kt{constructor(e){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Vt,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=e=>"undefined"===typeof e?new Date:null===e?null:new Date(e),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.toJsDate=e=>e,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,this.longFormatters[t])(e,this.locale.formatLong)}return e})).join(""),this.formatNumber=e=>e,this.getDayOfWeek=e=>e.getDay()+1;const{locale:t,formats:n,longFormatters:r,lib:o}=e;this.locale=t,this.formats=(0,Wt.A)({},Yt,n),this.longFormatters=r,this.lib=o||"date-fns"}}class Gt extends Kt{constructor(){let{locale:e,formats:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({locale:e??A,formats:t,longFormatters:S}),this.parse=(e,t)=>""===e?null:Lt(e,t,new Date,{locale:this.locale}),this.isValid=e=>null!=e&&he(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>ye(e,t,{locale:this.locale}),this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&Ie(e,t),this.isSameYear=(e,t)=>Ae(e,t),this.isSameMonth=(e,t)=>Me(e,t),this.isSameDay=(e,t)=>De(e,t),this.isSameHour=(e,t)=>Le(e,t),this.isAfter=(e,t)=>Ee(e,t),this.isAfterYear=(e,t)=>Ee(e,w(t)),this.isAfterDay=(e,t)=>Ee(e,m(t)),this.isBefore=(e,t)=>Oe(e,t),this.isBeforeYear=(e,t)=>Oe(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>Oe(e,this.startOfDay(t)),this.isWithinRange=(e,t)=>{let[n,r]=t;return Ut(e,{start:n,end:r})},this.startOfYear=e=>N(e),this.startOfMonth=e=>qt(e),this.startOfWeek=e=>F(e,{locale:this.locale}),this.startOfDay=e=>L(e),this.endOfYear=e=>w(e),this.endOfMonth=e=>zt(e),this.endOfWeek=e=>b(e,{locale:this.locale}),this.endOfDay=e=>m(e),this.addYears=(e,t)=>g(e,t),this.addMonths=(e,t)=>p(e,t),this.addWeeks=(e,t)=>f(e,t),this.addDays=(e,t)=>c(e,t),this.addHours=(e,t)=>d(e,t),this.addMinutes=(e,t)=>h(e,t),this.addSeconds=(e,t)=>l(e,t),this.getYear=e=>Ce(e),this.getMonth=e=>Se(e),this.getDate=e=>be(e),this.getHours=e=>xe(e),this.getMinutes=e=>ke(e),this.getSeconds=e=>_e(e),this.getMilliseconds=e=>Te(e),this.setYear=(e,t)=>Bt(e,t),this.setMonth=(e,t)=>Ft(e,t),this.setDate=(e,t)=>Rt(e,t),this.setHours=(e,t)=>Nt(e,t),this.setMinutes=(e,t)=>jt(e,t),this.setSeconds=(e,t)=>Ht(e,t),this.setMilliseconds=(e,t)=>$t(e,t),this.getDaysInMonth=e=>we(e),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,o=t;const i=[];for(;this.isBefore(o,n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=this.addDays(o,1),r+=1}return i},this.getWeekNumber=e=>W(e,{locale:this.locale}),this.getYearRange=e=>{let[t,n]=e;const r=this.startOfYear(t),o=this.endOfYear(n),i=[];let s=r;for(;this.isBefore(s,o);)i.push(s),s=this.addYears(s,1);return i}}}},65993:function(e,t,n){"use strict";var r=this&&this.__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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=o(n(28437)),s=n(89303),a=n(40267),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this,t=a.icons[this.props.icon];return i.default.createElement(s.Tooltip,{title:this.props.tooltipText,componentsProps:{popper:{sx:{pointerEvents:"none"}}}},i.default.createElement(s.IconButton,{color:this.props.iconColor,sx:this.props.noBackground?void 0:{backgroundColor:function(e){return e.palette.primary.main},"&:hover":{backgroundColor:function(e){return e.palette.primary.light}},color:function(e){return e.palette.getContrastText(e.palette.primary.dark)}},size:"small",disabled:this.props.disabled,onClick:function(){return e.props.onClick()}},i.default.createElement(t,null)))},t}(i.default.Component);t.default=c},26122:function(e,t,n){"use strict";var r=this&&this.__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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=o(n(28437)),s=n(89303),a=n(32075);n(89762);var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.default.createElement(s.Box,{className:"iom-info-box",sx:{borderColor:function(t){return t.palette[e.props.type].main}}},"info"===this.props.type?i.default.createElement(a.Info,{color:"primary"}):i.default.createElement(a.Warning,{color:this.props.type}),i.default.createElement(s.Typography,null,this.props.children))},t}(i.default.Component);t.default=c},40267:(e,t,n)=>{"use strict";t.__esModule=!0,t.icons=void 0;var r=n(32075);t.icons={refresh:r.Refresh,add:r.Add,help:r.Help,update:r.KeyboardArrowUp,build:r.Build,addToPhotos:r.AddToPhotos,deleteForever:r.DeleteForever,publish:r.Publish,link:r.Link,close:r.Close,monetizationOn:r.MonetizationOn,gitHub:r.GitHub,cloud:r.Cloud,cloudOff:r.CloudOff,arrowUpward:r.ArrowUpward,arrowDownward:r.ArrowDownward,remove:r.Remove,qrCode:r.QrCode,delete:r.Delete,edit:r.Edit,factoryReset:r.DomainDisabled,leakAdd:r.LeakAdd,noConnection:r.SignalWifiConnectedNoInternet4,notAlive:r.SignalCellularOff,contentCopy:r.ContentCopy,questionMark:r.QuestionMark,settingsInputAntenna:r.SettingsInputAntenna,signalWifiStatusbarNull:r.SignalWifiStatusbarNull,wifi:r.Wifi,wifiOff:r.WifiOff,deviceHub:r.DeviceHub,autoMode:r.AutoMode,formatListBulleted:r.FormatListBulleted,unfoldLess:r.UnfoldLess,unfoldMore:r.UnfoldMore}},81266:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.IconButton=t.InfoBox=void 0;var o=r(n(26122));t.InfoBox=o.default;var i=r(n(65993));t.IconButton=i.default},41647:(e,t,n)=>{e=n.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],(function(e,t,n){"use strict";function r(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var o=e("./lib/dom"),i=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,a=e("./lib/lang"),c=e("./range").Range,u=e("./range_list").RangeList,l=e("./keyboard/hash_handler").HashHandler,h=e("./tokenizer").Tokenizer,d=e("./clipboard"),f={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return d.getText&&d.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:r.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:r.bind(null,{year:"2-digit"}),CURRENT_MONTH:r.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:r.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:r.bind(null,{month:"short"}),CURRENT_DATE:r.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:r.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:r.bind(null,{weekday:"short"}),CURRENT_HOUR:r.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:r.bind(null,{minute:"2-digit"}),CURRENT_SECOND:r.bind(null,{second:"2-digit"})};f.SELECTED_TEXT=f.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=f}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function n(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var r={regex:"/("+n("/")+"+)/",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag="",""},next:"formatString"};return e.$tokenizer=new h({start:[{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return("}"==r&&n.length||-1!="`$\\".indexOf(r))&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,n,r){var o=t(e.substr(1));return r.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+n("\\|")+"*\\|",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=r,[r[0]]},next:"start"},r,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:"n"==r?e="\n":"t"==r?e="\t":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},r,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},e.prototype.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var r=this.variables[t];return"function"==typeof r&&(r=this.variables[t](e,t,n)),null==r?"":r},e.prototype.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||"",o=t.guard;o=new RegExp(o,r.replace(/[^gim]/g,""));var i="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this,a=e.replace(o,(function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(i,n),r="E",o=0;o<t.length;o++){var a=t[o];if("object"==typeof a)if(t[o]="",a.changeCase&&a.local){var c=t[o+1];c&&"string"==typeof c&&("u"==a.changeCase?t[o]=c[0].toUpperCase():t[o]=c[0].toLowerCase(),t[o+1]=c.substr(1))}else a.changeCase&&(r=a.changeCase);else"U"==r?t[o]=a.toUpperCase():"L"==r&&(t[o]=a.toLowerCase())}return s.variables.__=e,t.join("")}));return a},e.prototype.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},e.prototype.resolveVariables=function(e,t){function n(t){var n=e.indexOf(t,s+1);-1!=n&&(s=n)}for(var r=[],o="",i=!0,s=0;s<e.length;s++){var a=e[s];if("string"!=typeof a){if(a){if(i=!1,a.fmtString){var c=e.indexOf(a,s+1);-1==c&&(c=e.length),a.fmt=e.slice(s+1,c),s=c}if(a.text){var u=this.getVariableValue(t,a.text,o)+"";a.fmtString&&(u=this.tmStrFormat(u,a,t)),a.formatFunction&&(u=this.tmFormatFunction(u,a,t)),u&&!a.ifEnd?(r.push(u),n(a)):!u&&a.ifEnd&&n(a.ifEnd)}else a.elseEnd?n(a.elseEnd):(null!=a.tabstopId||null!=a.changeCase)&&r.push(a)}}else r.push(a),"\n"==a?(i=!0,o=""):i&&(o=/^\t*/.exec(a)[0],i=/\S/.test(a))}return r},e.prototype.getDisplayTextForSnippet=function(e,t){return g.call(this,e,t).text},e.prototype.insertSnippetForSelection=function(e,t,n){void 0===n&&(n={});var r=g.call(this,e,t,n),o=e.getSelectionRange(),i=e.session.replace(o,r.text),s=new m(e),a=e.inVirtualSelectionMode&&e.selection.index;s.addTabstops(r.tabstops,o.start,i,a)},e.prototype.insertSnippet=function(e,t,n){void 0===n&&(n={});var r=this;if(e.inVirtualSelectionMode)return r.insertSnippetForSelection(e,t,n);e.forEachSelection((function(){r.insertSnippetForSelection(e,t,n)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},e.prototype.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"==typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},e.prototype.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},e.prototype.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},e.prototype.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),o=e.session.getLine(r.row),i=o.substring(0,r.column),s=o.substr(r.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,i,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},e.prototype.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var o=e[r];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},e.prototype.register=function(e,t){function n(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function r(e,t,r){return e=n(e),t=n(t),r?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function o(e){e.scope||(e.scope=t||"_"),t=e.scope,i[t]||(i[t]=[],s[t]={});var n=s[t];if(e.name){var o=n[e.name];o&&c.unregister(o),n[e.name]=e}i[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=a.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=r(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=r(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var i=this.snippetMap,s=this.snippetNameMap,c=this;e||(e=[]),Array.isArray(e)?e.forEach(o):Object.keys(e).forEach((function(t){o(e[t])})),this._signal("registerSnippets",{scope:t})},e.prototype.unregister=function(e,t){function n(e){var n=o[e.scope||t];if(n&&n[e.name]){delete n[e.name];var i=r[e.scope||t],s=i&&i.indexOf(e);s>=0&&i.splice(s,1)}}var r=this.snippetMap,o=this.snippetNameMap;e.content?n(e):Array.isArray(e)&&e.forEach(n)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(s){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var i=t[2],a=t[3];if("regex"==i){var c=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=c.exec(a)[1],r.trigger=c.exec(a)[1],r.endTrigger=c.exec(a)[1],r.endGuard=c.exec(a)[1]}else"snippet"==i?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):i&&(r[i]=a)}}return n},e.prototype.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=r[t];return o&&(n=o[e]),!!n}),this),n},e}();i.implement(p.prototype,s);var g=function(e,t,n){function r(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(l[r.tabstopId])continue;r=t[e.lastIndexOf(r,n-1)]||{tabstopId:r.tabstopId}}t[n]=r}return t}void 0===n&&(n={});var o=e.getCursorPosition(),i=e.session.getLine(o.row),s=e.session.getTabString(),a=i.match(/^\s*/)[0];o.column<a.length&&(a=a.slice(0,o.column)),t=t.replace(/\r/g,"");var c=this.tokenizeTmSnippet(t);c=(c=this.resolveVariables(c,e)).map((function(e){return"\n"!=e||n.excludeExtraIndent?"string"==typeof e?e.replace(/\t/g,s):e:e+a}));var u=[];c.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=u[n];if(r||((r=u[n]=[]).index=n,r.value="",r.parents={}),-1===r.indexOf(e)){e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var o=c.indexOf(e,t+1);if(-1!==o){var i=c.slice(t+1,o),s=i.some((function(e){return"object"==typeof e}));s&&!r.value?r.value=i:i.length&&(!r.value||"string"!=typeof r.value)&&(r.value=i.join(""))}}}})),u.forEach((function(e){e.length=0}));for(var l={},h=0;h<c.length;h++){var d=c[h];if("object"==typeof d){var f=d.tabstopId,p=u[f],g=c.indexOf(d,h+1);if(l[f])l[f]===d&&(delete l[f],Object.keys(l).forEach((function(e){p.parents[e]=!0})));else{l[f]=d;var m=p.value;"string"!=typeof m?m=r(m):d.fmt&&(m=this.tmStrFormat(m,d,e)),c.splice.apply(c,[h+1,Math.max(0,g-h)].concat(m,d)),-1===p.indexOf(d)&&p.push(d)}}}var y=0,v=0,b="";return c.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(v=t[t.length-1].length,y+=t.length-1):v+=e.length,b+=e}else e&&(e.start?e.end={row:y,column:v}:e.start={row:y,column:v})})),{text:b,tabstops:u,tokens:c}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=a.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},r=n.parents||{},o=this.tabstops.slice(),i=0;i<o.length;i++){var s=o[i],a=s==n||r[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var c=s.parents&&s.parents[n.index],u=s.rangeList.pointIndex(e.start,c);u=u<0?-u-1:u+1;var l=s.rangeList.pointIndex(e.end,c);l=l<0?-l-1:l-1;for(var h=s.rangeList.ranges.slice(u,l),d=0;d<h.length;d++)this.removeRange(h[d])}s.rangeList.$onChange(e)}var f=this.session;!this.$inChange&&t&&1==f.getLength()&&!f.getValue()&&this.detach()},e.prototype.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.session,r=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var i=e[o];if(i.linked){var s=i.original,a=t.snippetManager.tmStrFormat(r,s,this.editor);n.replace(i,a)}}this.$inChange=!1}},e.prototype.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},e.prototype.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=0;r<this.ranges.length;r++)if(!this.ranges[r].linked){var o=this.ranges[r].contains(e.row,e.column),i=n||this.ranges[r].contains(t.row,t.column);if(o&&i)return}this.detach()}},e.prototype.onChangeSession=function(){this.detach()},e.prototype.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),this.updateTabstopMarkers(),0===n&&this.detach()},e.prototype.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var r=this.editor.multiSelect;r.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||r.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},e.prototype.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=c.fromPoints(n,n);v(o.start,t),v(o.end,t),e[0]=[o],e[0].index=0}var i=[this.index+1,0],s=this.ranges,a=this.snippetId=(this.snippetId||0)+1;e.forEach((function(e,n){var o=this.$openTabstops[n]||e;o.snippetId=a;for(var l=0;l<e.length;l++){var h=e[l],d=c.fromPoints(h.start,h.end||h.start);y(d.start,t),y(d.end,t),d.original=h,d.tabstop=o,s.push(d),o!=e?o.unshift(d):o[l]=d,h.fmtString||o.firstNonLinked&&r?(d.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=d)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(i.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new u,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),i.length>2&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},e.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var e=this.selectedTabstop.snippetId;0===this.selectedTabstop.index&&e--,this.tabstops.forEach((function(t){t.snippetId===e?this.addTabstopMarkers(t):this.removeTabstopMarkers(t)}),this)}},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new l,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var y=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},v=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};o.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new p;var b=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(b.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),c=e("../lib/dom"),u=e("../config").nls,l=e("./../lib/useragent"),h=function(e){return"suggest-aria-id:".concat(e)},d=l.isSafari?"menu":"listbox",f=l.isSafari?"menuitem":"option",p=l.isSafari?"aria-current":"aria-selected",g=function(e){var t=new r(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},m=function(e){var t=c.createElement("div"),n=g(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role",d),n.renderer.$textLayer.element.setAttribute("aria-roledescription",u("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),n.renderer.$textLayer.element.setAttribute("aria-label",u("autocomplete.popup.aria-label","Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity="0",n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),m.start.row=m.end.row=t.row,e.stop()}));var o,l=new i(-1,0,-1,1/0),m=new i(-1,0,-1,1/0);m.id=n.session.addMarker(m,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?l.id&&(n.session.removeMarker(l.id),l.id=null):l.id=n.session.addMarker(l,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(o){if(o.x!=e.x||o.y!=e.y){(o=e).scrollTop=n.renderer.scrollTop,n.isMouseOver=!0;var t=o.getDocumentPosition().row;l.start.row!=t&&(l.id||n.setRow(t),v(t))}}else o=e})),n.renderer.on("beforeRender",(function(){if(o&&-1!=l.start.row){o.$pos=null;var e=o.getDocumentPosition().row;l.id||n.setRow(e),v(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow],o=document.activeElement;if(r!==n.selectedNode&&n.selectedNode&&(c.removeCssClass(n.selectedNode,"ace_selected"),o.removeAttribute("aria-activedescendant"),n.selectedNode.removeAttribute(p),n.selectedNode.removeAttribute("id")),n.selectedNode=r,r){c.addCssClass(r,"ace_selected");var i=h(e);r.id=i,t.element.setAttribute("aria-activedescendant",i),o.setAttribute("aria-activedescendant",i),r.setAttribute("role",f),r.setAttribute("aria-roledescription",u("autocomplete.popup.item.aria-roledescription","item")),r.setAttribute("aria-label",n.getData(e).caption||n.getData(e).value),r.setAttribute("aria-setsize",n.data.length),r.setAttribute("aria-posinset",e+1),r.setAttribute("aria-describedby","doc-tooltip"),r.setAttribute(p,"true")}}));var y=function(){v(-1)},v=function(e,t){e!==l.start.row&&(l.start.row=l.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return l.start.row},s.addListener(n.container,"mouseout",(function(){n.isMouseOver=!1,y()})),n.on("hide",y),n.on("changeSelection",y),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var b=n.session.bgTokenizer;return b.$tokenizeRow=function(e){function t(e,t){e&&o.push({type:(r.className||"")+(t||""),value:e})}var r=n.data[e],o=[];if(!r)return o;"string"==typeof r&&(r={value:r});for(var i=r.caption||r.value||r.name,s=i.toLowerCase(),a=(n.filterText||"").toLowerCase(),c=0,u=0,l=0;l<=a.length;l++)if(l!=u&&(r.matchMask&1<<l||l==a.length)){var h=a.slice(u,l);u=l;var d=s.indexOf(h,c);if(-1==d)continue;t(i.slice(c,d),""),c=d+h.length,t(i.slice(d,c),"completion-highlight")}return t(i.slice(c,i.length),""),o.push({type:"completion-spacer",value:" "}),r.meta&&o.push({type:"completion-meta",value:r.meta}),r.message&&o.push({type:"completion-message",value:r.message}),o},b.$updateOnChange=r,b.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.isMouseOver=!1,n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return m.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,e)),m.start.row!=e&&(n.selection.clearSelection(),m.start.row=m.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",n.anchorPos=null,n.anchor=null,n.isOpen&&(n.isOpen=!1,this._signal("hide"))},n.tryShow=function(e,t,r,i){if(!i&&n.isOpen&&n.anchorPos&&n.anchor&&n.anchorPos.top===e.top&&n.anchorPos.left===e.left&&n.anchor===r)return!0;var s=this.container,a=window.innerHeight,c=window.innerWidth,u=this.renderer,l=u.$maxLines*t*1.4,h={top:0,bottom:0,left:0},d=a-e.top-3*this.$borderSize-t,f=e.top-3*this.$borderSize;r||(r=f<=d||d>=l?"bottom":"top"),"top"===r?(h.bottom=e.top-this.$borderSize,h.top=h.bottom-l):"bottom"===r&&(h.top=e.top+t+this.$borderSize,h.bottom=h.top+l);var p=h.top>=0&&h.bottom<=a;if(!i&&!p)return!1;u.$maxPixelHeight=p?null:"top"===r?f:d,"top"===r?(s.style.top="",s.style.bottom=a-h.bottom+"px",n.isTopdown=!1):(s.style.top=h.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var g=e.left;return g+s.offsetWidth>c&&(g=c-s.offsetWidth),s.style.left=g+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),o=null),n.anchorPos=e,n.anchor=r,!0},n.show=function(e,t,n){this.tryShow(e,t,n?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};c.importCssString('\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n margin-left: 0.9em;\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n.ace_autocomplete.ace_loading:after {\n content: "";\n position: absolute;\n top: 0px;\n height: 2px;\n width: 8%;\n background: blue;\n z-index: 100;\n animation: ace_progress 3s infinite linear;\n animation-delay: 300ms;\n transform: translateX(-100%) scaleX(1);\n}\n@keyframes ace_progress {\n 0% { transform: translateX(-100%) scaleX(1) }\n 50% { transform: translateX(625%) scaleX(2) } \n 100% { transform: translateX(1500%) scaleX(3) } \n}\n@media (prefers-reduced-motion) {\n .ace_autocomplete.ace_loading:after {\n transform: translateX(625%) scaleX(2);\n animation: none;\n }\n}\n',"autocompletion.css",!1),t.AcePopup=m,t.$singleLineEditor=g,t.getAriaId=h})),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){function e(e){this.editor=e,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return e.prototype.setScreenReaderContent=function(e){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var e=this.popup.getRow(),t=this.popup.renderer.$textLayer,n=t.element.childNodes[e-t.config.firstRow];if(n){for(var r="doc-tooltip ",o=0;o<this._lines.length;o++)r+="ace-inline-screenreader-line-".concat(o," ");n.setAttribute("aria-describedby",r)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=e.split(/\r\n|\r|\n/);var t=this.createCodeBlock();this.screenReaderDiv.appendChild(t)},e.prototype.destroy=function(){this.screenReaderDiv.remove()},e.prototype.createCodeBlock=function(){var e=document.createElement("pre");e.setAttribute("id","ace-inline-screenreader");for(var t=0;t<this._lines.length;t++){var n=document.createElement("code");n.setAttribute("id","ace-inline-screenreader-line-".concat(t));var r=document.createTextNode(this._lines[t]);n.appendChild(r),e.appendChild(n)}return e},e}();t.AceInlineScreenReader=r})),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,o=e("./inline_screenreader").AceInlineScreenReader,i=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,n){if(n=n||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!e||!t)return!1;this.inlineScreenReader||(this.inlineScreenReader=new o(e));var i=t.snippet?r.getDisplayTextForSnippet(e,t.snippet):t.value;return!(t.hideInlinePreview||!i||!i.startsWith(n))&&(this.editor=e,this.inlineScreenReader.setScreenReaderContent(i),""===(i=i.slice(n.length))?e.removeGhostText():e.setGhostText(i),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},e}();t.AceInline=i})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,o=e.length;0===o&&n();for(var i=0;i<o;i++)t(e[i],(function(e,t){++r===o&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var o=[],i=t-1;i>=0&&n.test(e[i]);i--)o.push(e[i]);return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var o=[],i=t;i<e.length&&n.test(e[i]);i++)o.push(e[i]);return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(r,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(r,n.column)},t.triggerAutocomplete=function(e,t){t=null==t?e.session.getPrecedingCharacter():t;return e.completers.some((function(e){if(e.triggerCharacters&&Array.isArray(e.triggerCharacters))return e.triggerCharacters.includes(t)}))}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/inline").AceInline,s=e("./autocomplete/popup").getAriaId,a=e("./autocomplete/util"),c=e("./lib/lang"),u=e("./lib/dom"),l=e("./snippets").snippetManager,h=e("./config"),d=e("./lib/event"),f=e("./lib/scroll").preventParentScroll,p=function(e,t){t.completer&&t.completer.destroy()},g=function(){function e(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=c.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=c.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=c.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=c.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay),this.$firstOpenTimer=c.delayedCall(function(){var t=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!t||0===this.editor.completers.length||(this.completions=new y(e.completionsForLoading),this.openPopup(this.editor,t.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}.bind(this),this.stickySelectionDelay)}return Object.defineProperty(e,"completionsForLoading",{get:function(){return[{caption:h.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),e.prototype.$init=function(){return this.popup=new o(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),d.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},e.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new i,this.inlineRenderer},e.prototype.getPopup=function(){return this.popup||this.$init()},e.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},e.prototype.$seen=function(e){!this.hasSeen.has(e)&&e&&e.completer&&e.completer.onSeen&&"function"==typeof e.completer.onSeen&&(e.completer.onSeen(this.editor,e),this.hasSeen.add(e))},e.prototype.$onPopupChange=function(e){if(this.inlineRenderer&&this.inlineEnabled){var t=e?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(t),this.popup.isMouseOver&&this.setSelectOnHover)return void this.tooltipTimer.call(null,null);this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},e.prototype.$updateGhostText=function(e){var t=this.base.row,n=this.base.column,r=this.editor.getCursorPosition().column,o=this.editor.session.getLine(t).slice(n,r);this.inlineRenderer.show(this.editor,e,o)?this.$seen(e):this.inlineRenderer.hide()},e.prototype.$onPopupRender=function(){var e=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var t=this.popup.getFirstVisibleRow();t<=this.popup.getLastVisibleRow();t++){var n=this.popup.getData(t);n&&(!e||n.hideInlinePreview)&&this.$seen(n)}},e.prototype.$onPopupShow=function(e){this.$onPopupChange(e),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},e.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var e=this.editor.container.parentNode,t=[];e;)t.push(e),e.addEventListener("scroll",this.onLayoutChange,{passive:!0}),e=e.parentNode;this.$elements=t}},e.prototype.unObserveLayoutChanges=function(){var e=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach((function(t){t.removeEventListener("scroll",e.onLayoutChange,{passive:!0})})),this.$elements=null},e.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},e.prototype.$updatePopupPosition=function(){var e=this.editor,t=e.renderer,n=t.layerConfig.lineHeight,r=t.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();r.top+=o.top-t.layerConfig.offset,r.left+=o.left-e.renderer.scrollLeft,r.left+=t.gutterWidth;var i={top:r.top,left:r.left};t.$ghostText&&t.$ghostTextWidget&&this.base.row===t.$ghostText.position.row&&(i.top+=t.$ghostTextWidget.el.offsetHeight);var s=e.container.getBoundingClientRect().bottom-n,a=s<i.top?{top:s,left:i.left}:i;this.popup.tryShow(a,n,"bottom")||this.popup.tryShow(r,n,"top")||this.popup.show(r,n)},e.prototype.openPopup=function(e,t,n){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var r,o=this.popup.getRow(),i=this.popup.data[o];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:s(this.popup.getRow()),inline:this.inlineEnabled}),e.keyBinding.addKeyboardHandler(this.keyboardHandler),this.stickySelection&&(r=this.popup.data.indexOf(i)),r&&-1!==r||(r=0),this.popup.setRow(this.autoSelect?r:-1),r===o&&i!==this.completions.filtered[r]&&this.$onPopupChange();var a=this.inlineRenderer&&this.inlineEnabled;if(r===o&&a){var c=this.popup.getData(this.popup.getRow());this.$updateGhostText(c)}n||(this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},e.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},e.prototype.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},e.prototype.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t!=n&&t.parentNode!=o&&!r&&t!=this.tooltipNode&&e.relatedTarget!=n&&this.detach()},e.prototype.mousedownListener=function(e){this.detach()},e.prototype.mousewheelListener=function(e){this.popup&&!this.popup.isMouseOver&&this.detach()},e.prototype.mouseOutListener=function(e){this.popup.isOpen&&this.$updatePopupPosition()},e.prototype.goTo=function(e){this.popup.goTo(e)},e.prototype.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(""===e.value)return this.detach();var n=this.completions,r=this.getCompletionProvider().insertMatch(this.editor,e,n.filterText,t);return this.completions==n&&this.detach(),r},e.prototype.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},e.prototype.getCompletionProvider=function(e){return this.completionProvider||(this.completionProvider=new m(e)),this.completionProvider},e.prototype.gatherCompletions=function(e,t){return this.getCompletionProvider().gatherCompletions(e,t)},e.prototype.updateCompletions=function(t,n){if(t&&this.base&&this.completions){var r=this.editor.getCursorPosition();if((i=this.editor.session.getTextRange({start:this.base,end:r}))==this.completions.filterText)return;return this.completions.setFilter(i),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=i||this.completions.filtered[0].snippet?void this.openPopup(this.editor,i,t):this.detach():this.detach()}if(n&&n.matches){r=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(r.row,r.column),this.base.$insertRight=!0,this.completions=new y(n.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",t)}var o=this.editor.getSession(),i=(r=this.editor.getCursorPosition(),a.getCompletionPrefix(this.editor));this.base=o.doc.createAnchor(r.row,r.column-i.length),this.base.$insertRight=!0;var s={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:i,pos:r}).provideCompletions(this.editor,s,function(n,r,o){var i=r.filtered,s=a.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),o){if(!i.length){var c=!this.autoShown&&this.emptyMessage;if("function"==typeof c&&(c=this.emptyMessage(s)),c){var u=[{caption:c,value:""}];return this.completions=new y(u),this.openPopup(this.editor,s,t),this.popup.renderer.setStyle("ace_loading",!1),void this.popup.renderer.setStyle("ace_empty-message",!0)}return this.detach()}if(1==i.length&&i[0].value==s&&!i[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&1==i.length)return this.insertMatch(i[0])}this.completions=!o&&this.showLoadingState?new y(e.completionsForLoading.concat(i),r.filterText):r,this.openPopup(this.editor,s,t),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!o)}.bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},e.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},e.prototype.updateDocTooltip=function(){var e=this.popup,t=this.completions.filtered,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var o=this.editor.completers.length,i=0;i<o;i++){var s=this.editor.completers[i];if(s.getDocTooltip&&n.completerId===s.id){r=s.getDocTooltip(n);break}}if(!r&&"string"!=typeof n&&(r=n),"string"==typeof r&&(r={docText:r}),!r||!r.docHTML&&!r.docText)return this.hideDocTooltip();this.showDocTooltip(r)},e.prototype.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=u.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",f));var t=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(t.isDark?"ace_dark ":"")+(t.cssClass||"");var n=this.tooltipNode;e.docHTML?n.innerHTML=e.docHTML:e.docText&&(n.textContent=e.docText),n.parentNode||this.popup.container.appendChild(this.tooltipNode);var r=this.popup,o=r.container.getBoundingClientRect();n.style.top=r.container.style.top,n.style.bottom=r.container.style.bottom,n.style.display="block",window.innerWidth-o.right<320?o.left<320?r.isTopdown?(n.style.top=o.bottom+"px",n.style.left=o.left+"px",n.style.right="",n.style.bottom=""):(n.style.top=r.container.offsetTop-n.offsetHeight+"px",n.style.left=o.left+"px",n.style.right="",n.style.bottom=""):(n.style.right=window.innerWidth-o.left+"px",n.style.left=""):(n.style.left=o.right+1+"px",n.style.right="")},e.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==e&&this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},e.prototype.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},e.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},e.for=function(t){return t.completer instanceof e||(t.completer&&(t.completer.destroy(),t.completer=null),h.get("sharedPopups")?(e.$sharedInstance||(e.$sharedInstance=new e),t.completer=e.$sharedInstance):(t.completer=new e,t.once("destroy",p))),t.completer},e}();g.prototype.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},Backspace:function(e){e.execCommand("backspace"),!a.getCompletionPrefix(e)&&e.completer&&e.completer.detach()},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},g.startCommand={name:"startAutocomplete",exec:function(e,t){var n=g.for(e);n.autoInsert=!1,n.autoSelect=!0,n.autoShown=!1,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var m=function(){function e(e){this.initialPosition=e,this.active=!0}return e.prototype.insertByIndex=function(e,t,n){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(e,this.completions.filtered[t],n)},e.prototype.insertMatch=function(e,t,n){if(!t)return!1;if(e.startOperation({command:{name:"insertMatch"}}),t.completer&&t.completer.insertMatch)t.completer.insertMatch(e,t);else{if(!this.completions)return!1;var r=this.completions.filterText.length,o=0;if(t.range&&t.range.start.row===t.range.end.row&&(r-=this.initialPosition.prefix.length,r+=this.initialPosition.pos.column-t.range.start.column,o+=t.range.end.column-this.initialPosition.pos.column),r||o){var i;i=e.selection.getAllRanges?e.selection.getAllRanges():[e.getSelectionRange()];for(var s,a=0;s=i[a];a++)s.start.column-=r,s.end.column+=o,e.session.remove(s)}t.snippet?l.insertSnippet(e,t.snippet):this.$insertString(e,t),t.completer&&t.completer.onInsert&&"function"==typeof t.completer.onInsert&&t.completer.onInsert(e,t),t.command&&"startAutocomplete"===t.command&&e.execCommand(t.command)}return e.endOperation(),!0},e.prototype.$insertString=function(e,t){var n=t.value||t;e.execCommand("insertstring",n)},e.prototype.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),o=a.getCompletionPrefix(e),i=[];this.completers=e.completers;var s=e.completers.length;return e.completers.forEach((function(c,u){c.getCompletions(e,n,r,o,(function(n,r){c.hideInlinePreview&&(r=r.map((function(e){return Object.assign(e,{hideInlinePreview:c.hideInlinePreview})}))),!n&&r&&(i=i.concat(r)),t(null,{prefix:a.getCompletionPrefix(e),matches:i,finished:0===--s})}))})),!0},e.prototype.provideCompletions=function(e,t,n){var r=function(e){var r=e.prefix,o=e.matches;this.completions=new y(o),t.exactMatch&&(this.completions.exactMatch=!0),t.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(r),(e.finished||this.completions.filtered.length)&&n(null,this.completions,e.finished)}.bind(this),o=!0,i=null;if(this.gatherCompletions(e,function(e,t){this.active&&(e&&(n(e,[],!0),this.detach()),0===t.prefix.indexOf(t.prefix)&&(o?i=t:r(t)))}.bind(this)),o=!1,i){var s=i;i=null,r(s)}},e.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach((function(e){"function"==typeof e.cancel&&e.cancel()}))},e}(),y=function(){function e(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1,this.ignoreCaption=!1}return e.prototype.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},e.prototype.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),o=t.toLowerCase();e:for(var i,s=0;i=e[s];s++){var a=!this.ignoreCaption&&i.caption||i.value||i.snippet;if(a){var c,u,l=-1,h=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var f=a.toLowerCase().indexOf(o);if(f>-1)d=f;else for(var p=0;p<t.length;p++){var g=a.indexOf(o[p],l+1),m=a.indexOf(r[p],l+1);if((c=g>=0&&(m<0||g<m)?g:m)<0)continue e;(u=c-l-1)>0&&(-1===l&&(d+=10),d+=u,h|=1<<p),l=c}}i.matchMask=h,i.exactMatch=d?0:1,i.$score=(i.score||0)-d,n.push(i)}}return n},e}();t.Autocomplete=g,t.CompletionProvider=m,t.FilteredList=y})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){function r(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(s).length-1}function o(e,t){var n=r(e,t),o=e.getValue().split(s),i=Object.create(null),a=o[n];return o.forEach((function(e,t){if(e&&e!==a){var r=Math.abs(n-t),s=o.length-r;i[e]?i[e]=Math.max(s,i[e]):i[e]=s}})),i}var i=e("../range").Range,s=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,n,r,i){var s=o(t,n);i(null,Object.keys(s).map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),c=e("../autocomplete/text_completer"),u={getCompletions:function(e,t,n,r,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,o);var i=e.session.getState(n.row),s=t.$mode.getCompletions(i,t,n,r);s=s.map((function(e){return e.completerId=u.id,e})),o(null,s)},id:"keywordCompleter"},l=function(e){var t={};return e.replace(/\${(\d+)(:(.*?))?}/g,(function(e,n,r,o){return t[n]=o||""})).replace(/\$(\d+?)/g,(function(e,n){return t[n]}))},h={getCompletions:function(e,t,n,o,i){var s=[],a=t.getTokenAt(n.row,n.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?s.push("html-tag"):s=r.getActiveScopes(e);var c=r.snippetMap,u=[];s.forEach((function(e){for(var t=c[e]||[],n=t.length;n--;){var r=t[n],o=r.name||r.tabTrigger;o&&u.push({caption:o,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"\u21e5 ":"snippet",completerId:h.id})}}),this),i(null,u)},getDocTooltip:function(e){e.snippet&&!e.docHTML&&(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(l(e.snippet))].join(""))},id:"snippetCompleter"},d=[h,c,u];t.setCompleters=function(e){d.length=0,e&&d.push.apply(d,e)},t.addCompleter=function(e){d.push(e)},t.textCompleter=c,t.keyWordCompleter=u,t.snippetCompleter=h;var f,p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},g=function(e,t){m(t.session.$mode)},m=function(e){"string"==typeof e&&(e=i.$modes[e]),e&&(r.files||(r.files={}),y(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(m))},y=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},i.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){m("ace/mode/"+e)}))))})))},v=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!n){f=e;var r=e.editor.$liveAutocompletionDelay;r?b.delay(r):w(e)}},b=s.delayedCall((function(){w(f)}),0),w=function(e){var t=e.editor,n=a.getCompletionPrefix(t),r=e.args,i=a.triggerAutocomplete(t,r);if(n&&n.length>=t.$liveAutocompletionThreshold||i){var s=o.for(t);s.autoShown=!0,s.showPopup(t)}},x=e("../editor").Editor;e("../config").defineOptions(x.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.on("afterExec",v)):this.commands.off("afterExec",v)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",g),g(0,this)):(this.commands.removeCommand(p),this.off("changeMode",g))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))},77879:(e,t,n)=>{e=n.nmd(e),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,i=e.findMatchingBracket({row:t,column:o});if(!i||i.row==t)return 0;var s=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var u=(n=e.getLine(t)).search(/\S/);if(-1!==u){if(r>u)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=i)break;if(l.isMultiLine())t=l.end.row;else if(r==u)break}a=t}}return new o(i,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<i;){t=e.getLine(n);var u=a.exec(t);if(u&&(u[1]?c--:c++,!c))break}if(n>s)return new o(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a};r.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);"start"==e&&(t.match(/^.*[\{\(\[]\s*$/)&&(r+=n));return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))},98689:(e,t,n)=>{e=n.nmd(e),ace.define("ace/theme/chrome-css",["require","exports","module"],(function(e,t,n){n.exports='.ace-chrome .ace_gutter {\n background: #ebebeb;\n color: #333;\n overflow : hidden;\n}\n\n.ace-chrome .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-chrome {\n background-color: #FFFFFF;\n color: black;\n}\n\n.ace-chrome .ace_cursor {\n color: black;\n}\n\n.ace-chrome .ace_invisible {\n color: rgb(191, 191, 191);\n}\n\n.ace-chrome .ace_constant.ace_buildin {\n color: rgb(88, 72, 246);\n}\n\n.ace-chrome .ace_constant.ace_language {\n color: rgb(88, 92, 246);\n}\n\n.ace-chrome .ace_constant.ace_library {\n color: rgb(6, 150, 14);\n}\n\n.ace-chrome .ace_invalid {\n background-color: rgb(153, 0, 0);\n color: white;\n}\n\n.ace-chrome .ace_fold {\n}\n\n.ace-chrome .ace_support.ace_function {\n color: rgb(60, 76, 114);\n}\n\n.ace-chrome .ace_support.ace_constant {\n color: rgb(6, 150, 14);\n}\n\n.ace-chrome .ace_support.ace_type,\n.ace-chrome .ace_support.ace_class\n.ace-chrome .ace_support.ace_other {\n color: rgb(109, 121, 222);\n}\n\n.ace-chrome .ace_variable.ace_parameter {\n font-style:italic;\n color:#FD971F;\n}\n.ace-chrome .ace_keyword.ace_operator {\n color: rgb(104, 118, 135);\n}\n\n.ace-chrome .ace_comment {\n color: #236e24;\n}\n\n.ace-chrome .ace_comment.ace_doc {\n color: #236e24;\n}\n\n.ace-chrome .ace_comment.ace_doc.ace_tag {\n color: #236e24;\n}\n\n.ace-chrome .ace_constant.ace_numeric {\n color: rgb(0, 0, 205);\n}\n\n.ace-chrome .ace_variable {\n color: rgb(49, 132, 149);\n}\n\n.ace-chrome .ace_xml-pe {\n color: rgb(104, 104, 91);\n}\n\n.ace-chrome .ace_entity.ace_name.ace_function {\n color: #0000A2;\n}\n\n\n.ace-chrome .ace_heading {\n color: rgb(12, 7, 255);\n}\n\n.ace-chrome .ace_list {\n color:rgb(185, 6, 144);\n}\n\n.ace-chrome .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n\n.ace-chrome .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-chrome .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-chrome .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-chrome .ace_marker-layer .ace_active-line {\n background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-chrome .ace_gutter-active-line {\n background-color : #dcdcdc;\n}\n\n.ace-chrome .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-chrome .ace_storage,\n.ace-chrome .ace_keyword,\n.ace-chrome .ace_meta.ace_tag {\n color: rgb(147, 15, 128);\n}\n\n.ace-chrome .ace_string.ace_regex {\n color: rgb(255, 0, 0)\n}\n\n.ace-chrome .ace_string {\n color: #1A1AA6;\n}\n\n.ace-chrome .ace_entity.ace_other.ace_attribute-name {\n color: #994409;\n}\n\n.ace-chrome .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n \n.ace-chrome .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/chrome",["require","exports","module","ace/theme/chrome-css","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-chrome",t.cssText=e("./chrome-css"),e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.require(["ace/theme/chrome"],(function(t){e&&(e.exports=t)}))},38536:(e,t,n)=>{e=n.nmd(e),ace.define("ace/theme/clouds_midnight-css",["require","exports","module"],(function(e,t,n){n.exports=".ace-clouds-midnight .ace_gutter {\n background: #232323;\n color: #929292\n}\n\n.ace-clouds-midnight .ace_print-margin {\n width: 1px;\n background: #232323\n}\n\n.ace-clouds-midnight {\n background-color: #191919;\n color: #929292\n}\n\n.ace-clouds-midnight .ace_cursor {\n color: #7DA5DC\n}\n\n.ace-clouds-midnight .ace_marker-layer .ace_selection {\n background: #000000\n}\n\n.ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #191919;\n}\n\n.ace-clouds-midnight .ace_marker-layer .ace_step {\n background: rgb(102, 82, 0)\n}\n\n.ace-clouds-midnight .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid #BFBFBF\n}\n\n.ace-clouds-midnight .ace_marker-layer .ace_active-line {\n background: rgba(215, 215, 215, 0.031)\n}\n\n.ace-clouds-midnight .ace_gutter-active-line {\n background-color: rgba(215, 215, 215, 0.031)\n}\n\n.ace-clouds-midnight .ace_marker-layer .ace_selected-word {\n border: 1px solid #000000\n}\n\n.ace-clouds-midnight .ace_invisible {\n color: #666\n}\n\n.ace-clouds-midnight .ace_keyword,\n.ace-clouds-midnight .ace_meta,\n.ace-clouds-midnight .ace_support.ace_constant.ace_property-value {\n color: #927C5D\n}\n\n.ace-clouds-midnight .ace_keyword.ace_operator {\n color: #4B4B4B\n}\n\n.ace-clouds-midnight .ace_keyword.ace_other.ace_unit {\n color: #366F1A\n}\n\n.ace-clouds-midnight .ace_constant.ace_language {\n color: #39946A\n}\n\n.ace-clouds-midnight .ace_constant.ace_numeric {\n color: #46A609\n}\n\n.ace-clouds-midnight .ace_constant.ace_character.ace_entity {\n color: #A165AC\n}\n\n.ace-clouds-midnight .ace_invalid {\n color: #FFFFFF;\n background-color: #E92E2E\n}\n\n.ace-clouds-midnight .ace_fold {\n background-color: #927C5D;\n border-color: #929292\n}\n\n.ace-clouds-midnight .ace_storage,\n.ace-clouds-midnight .ace_support.ace_class,\n.ace-clouds-midnight .ace_support.ace_function,\n.ace-clouds-midnight .ace_support.ace_other,\n.ace-clouds-midnight .ace_support.ace_type {\n color: #E92E2E\n}\n\n.ace-clouds-midnight .ace_string {\n color: #5D90CD\n}\n\n.ace-clouds-midnight .ace_comment {\n color: #3C403B\n}\n\n.ace-clouds-midnight .ace_entity.ace_name.ace_tag,\n.ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {\n color: #606060\n}\n\n.ace-clouds-midnight .ace_indent-guide {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\n}\n\n.ace-clouds-midnight .ace_indent-guide-active {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;\n}\n"})),ace.define("ace/theme/clouds_midnight",["require","exports","module","ace/theme/clouds_midnight-css","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-clouds-midnight",t.cssText=e("./clouds_midnight-css"),e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.require(["ace/theme/clouds_midnight"],(function(t){e&&(e.exports=t)}))},42272:function(){!function(e){if(("undefined"==typeof e.window||!e.document)&&(!e.require||!e.define)){e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,o){postMessage({type:"error",data:{message:e,data:o&&o.data,file:t,line:n,col:r,stack:o&&o.stack}})},e.normalizeModule=function(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if("."==n.charAt(0)){var o=t.split("/").slice(0,-1).join("/");for(n=(o?o+"/":"")+n;-1!==n.indexOf(".")&&i!=n;){var i=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(t,n){if(n||(n=t,t=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=e.normalizeModule(t,n);var r=e.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!e.require.tlns)return console.log("unable to load "+n);var o=function(e,t){for(var n=e,r="";n;){var o=t[n];if("string"==typeof o)return o+r;if(o)return o.location.replace(/\/*$/,"/")+(r||o.main||o.name);if(!1===o)return"";var i=n.lastIndexOf("/");if(-1===i)break;r=n.substr(i)+r,n=n.slice(0,i)}return e}(n,e.require.tlns);return".js"!=o.slice(-3)&&(o+=".js"),e.require.id=n,e.require.modules[n]={},importScripts(o),e.require(t,n)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){if(2==arguments.length?(r=n,"string"!=typeof t&&(n=t,t=e.require.id)):1==arguments.length&&(r=t,n=[],t=e.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var o=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map((function(t){switch(t){case"require":return o;case"exports":return e.exports;case"module":return e;default:return o(t)}})));return t&&(e.exports=t),e}}}else e.require.modules[t]={exports:r,initialized:!0}},e.define.amd={},e.require.tlns={},e.initBaseUrls=function(e){for(var t in e)this.require.tlns[t]=e[t]},e.initSender=function(){var t=e.require("ace/lib/event_emitter").EventEmitter,n=e.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,t),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(r.prototype),new r};var t=e.main=null,n=e.sender=null;e.onmessage=function(r){var o=r.data;if(o.event&&n)n._signal(o.event,o.data);else if(o.command)if(t[o.command])t[o.command].apply(t,o.args);else{if(!e[o.command])throw new Error("Unknown command:"+o.command);e[o.command].apply(e,o.args)}else if(o.init){e.initBaseUrls(o.tlns),n=e.sender=e.initSender();var i=this.require(o.module)[o.classname];t=e.main=new i(n)}}}}(this),ace.define("ace/lib/oop",[],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/apply_delta",[],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,o=t.start.column,i=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=i.substring(0,o)+t.lines[0]+i.substring(o);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=i.substring(0,o)+e[r],e[r+t.lines.length-1]+=i.substring(o)}break;case"remove":var a=t.end.column,c=t.end.row;r===c?e[r]=i.substring(0,o)+i.substring(a):e.splice(r,c-r+1,i.substring(0,o)+e[c].substring(a))}}})),ace.define("ace/lib/event_emitter",[],(function(e,t,n){"use strict";var r={},o=function(){this.propagationStopped=!0},i=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=o),t.preventDefault||(t.preventDefault=i),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],o=n._disabled_[e];o||(n._disabled_[e]=o=[]),o.push(r);var i=o.indexOf(t);-1!=i&&o.splice(i,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var o=r.indexOf(t);-1!=o&&r.splice(o,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/range",[],(function(e,t,n){"use strict";var r=function(){function e(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.row<t)r={row:t,column:0};if(this.start.row>n)var o={row:n+1,column:0};else if(this.start.row<t)o={row:t,column:0};return e.fromPoints(o||this.start,r||this.end)},e.prototype.extend=function(t,n){var r=this.compare(t,n);if(0==r)return this;if(-1==r)var o={row:t,column:n};else var i={row:t,column:n};return e.fromPoints(o||this.start,i||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),r=t.documentToScreenPosition(this.end);return new e(n.row,n.column,r.row,r.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/anchor",[],(function(e,t,n){"use strict";function r(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}var o=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,s=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var t=function(e,t,n){var o="insert"==e.action,i=(o?1:-1)*(e.end.row-e.start.row),s=(o?1:-1)*(e.end.column-e.start.column),a=e.start,c=o?a:e.end;return r(t,a,n)?{row:t.row,column:t.column}:r(c,t,!n)?{row:t.row+i,column:t.column+(t.row==c.row?s:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var o={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:o,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();s.prototype.$insertRight=!1,o.implement(s.prototype,i),t.Anchor=s})),ace.define("ace/document",[],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./apply_delta").applyDelta,i=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,c=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new a(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return void 0==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:r,end:o,action:"remove",lines:this.getLinesForRange({start:r,end:o})},!0),this.clonePos(r)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,o=n?e-1:e,i=n?this.getLine(o).length:0,a=r?t+1:t,c=r?0:this.getLine(a).length,u=new s(o,i,a,c),l=this.$lines.slice(e,t+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),l},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,o=e.start.row,i=e.start.column,s=0,a=0;s<r;s=a){a+=t-1;var c=n.slice(s,a);c.push(""),this.applyDelta({start:this.pos(o+s,i),end:this.pos(o+a,i=0),action:e.action,lines:c},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=i,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=t||0,i=n.length;o<i;o++)if((e-=n[o].length+r)<0)return{row:o,column:e+n[o].length+r};return{row:i-1,column:e+n[i-1].length+r}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=0,i=Math.min(e.row,n.length),s=t||0;s<i;++s)o+=n[s].length+r;return o+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();c.prototype.$autoNewLine="",c.prototype.$newLineMode="auto",r.implement(c.prototype,i),t.Document=c})),ace.define("ace/lib/deep_copy",[],(function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n}})),ace.define("ace/lib/lang",[],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(r,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},o.schedule=o,o.call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}})),ace.define("ace/worker/mirror",[],(function(e,t,n){"use strict";var r=e("../document").Document,o=e("../lib/lang"),i=t.Mirror=function(e){this.sender=e;var t=this.doc=new r(""),n=this.deferredUpdate=o.delayedCall(this.onUpdate.bind(this)),i=this;e.on("change",(function(e){var r=e.data;if(r[0].start)t.applyDeltas(r);else for(var o=0;o<r.length;o+=2){var s,a;if(("insert"==(s=Array.isArray(r[o+1])?{action:"insert",start:r[o],lines:r[o+1]}:{action:"remove",start:r[o],end:r[o+1]}).action?s.start:s.end).row>=t.$lines.length)throw(a=new Error("Invalid delta")).data={path:i.$path,linesLength:t.$lines.length,start:s.start,end:s.end},a;t.applyDelta(s,!0)}if(i.$timeout)return n.schedule(i.$timeout);i.onUpdate()}))};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(i.prototype)})),ace.define("ace/mode/json/json_parse",[],(function(e,t,n){"use strict";var r,o,i,s,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:r,text:i}},u=function(e){return e&&e!==o&&c("Expected '"+e+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},l=function(){var e,t="";for("-"===o&&(t="-",u("-"));o>="0"&&o<="9";)t+=o,u();if("."===o)for(t+=".";u()&&o>="0"&&o<="9";)t+=o;if("e"===o||"E"===o)for(t+=o,u(),"-"!==o&&"+"!==o||(t+=o,u());o>="0"&&o<="9";)t+=o,u();if(e=+t,!isNaN(e))return e;c("Bad number")},h=function(){var e,t,n,r="";if('"'===o)for(;u();){if('"'===o)return u(),r;if("\\"===o)if(u(),"u"===o){for(n=0,t=0;t<4&&(e=parseInt(u(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof a[o])break;r+=a[o]}else{if("\n"==o||"\r"==o)break;r+=o}}c("Bad string")},d=function(){for(;o&&o<=" ";)u()};return s=function(){switch(d(),o){case"{":return function(){var e,t={};if("{"===o){if(u("{"),d(),"}"===o)return u("}"),t;for(;o;){if(e=h(),d(),u(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=s(),d(),"}"===o)return u("}"),t;u(","),d()}}c("Bad object")}();case"[":return function(){var e=[];if("["===o){if(u("["),d(),"]"===o)return u("]"),e;for(;o;){if(e.push(s()),d(),"]"===o)return u("]"),e;u(","),d()}}c("Bad array")}();case'"':return h();case"-":return l();default:return o>="0"&&o<="9"?l():function(){switch(o){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}c("Unexpected '"+o+"'")}()}},function(e,t){var n;return i=e,r=0,o=" ",n=s(),d(),o&&c("Syntax error"),"function"==typeof t?function e(n,r){var o,i,s=n[r];if(s&&"object"==typeof s)for(o in s)Object.hasOwnProperty.call(s,o)&&(void 0!==(i=e(s,o))?s[o]=i:delete s[o]);return t.call(n,r,s)}({"":n},""):n}})),ace.define("ace/mode/json_worker",[],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../worker/mirror").Mirror,i=e("./json/json_parse"),s=t.JsonWorker=function(e){o.call(this,e),this.setTimeout(200)};r.inherits(s,o),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{e&&i(e)}catch(n){var r=this.doc.indexToPosition(n.at-1);t.push({row:r.row,column:r.column,text:n.message,type:"error"})}this.sender.emit("annotate",t)}}.call(s.prototype)}))},43240:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},a=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},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,l,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d<f;++d)if(null!=(t=arguments[d]))for(n in t)r=c(h,n),h!==(o=c(t,n))&&(p&&o&&(s(o)||(u=i(o)))?(u?(u=!1,l=r&&i(r)?r:[]):l=r&&s(r)?r:{},a(h,{name:n,newValue:e(p,l,o)})):"undefined"!==typeof o&&a(h,{name:n,newValue:o}));return h}},122:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}},94403:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function l(e){return e?e.replace(c,u):u}e.exports=function(e,c){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var h=1,d=1;function f(e){var t=e.match(n);t&&(h+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:h,column:d};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:h,column:d},this.source=c.source}g.prototype.content=e;var m=[];function y(t){var n=new Error(c.source+":"+h+":"+d+": "+t);if(n.reason=t,n.filename=c.source,n.line=h,n.column=d,n.source=e,!c.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function k(){var e=p(),n=v(o);if(n){if(x(),!v(i))return y("property missing ':'");var r=v(s),c=e({type:"declaration",property:l(n[0].replace(t,u)),value:r?l(r[0].replace(t,u)):u});return v(a),c}}return b(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},22740:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},53536:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,h=128,d=256,f=1/0,p=9007199254740991,g=NaN,m=4294967295,y=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",d]],v="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",k="[object Error]",S="[object Function]",_="[object GeneratorFunction]",T="[object Map]",C="[object Number]",E="[object Object]",O="[object Promise]",I="[object RegExp]",D="[object Set]",A="[object String]",M="[object Symbol]",P="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",N="[object Float32Array]",j="[object Float64Array]",F="[object Int8Array]",H="[object Int16Array]",$="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,X=RegExp(K.source),Q=RegExp(G.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),se=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,he=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['\u2019]",Me="["+_e+"]",Pe="["+De+"]",Le="["+Te+"]",Re="\\d+",Ne="["+Ce+"]",je="["+Ee+"]",Fe="[^"+_e+De+Re+Ce+Ee+Oe+"]",He="\\ud83c[\\udffb-\\udfff]",$e="[^"+_e+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Oe+"]",Ue="\\u200d",We="(?:"+je+"|"+Fe+")",Ve="(?:"+ze+"|"+Fe+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Le+"|"+He+")"+"?",Xe="["+Ie+"]?",Qe=Xe+Ge+("(?:"+Ue+"(?:"+[$e,Be,qe].join("|")+")"+Xe+Ge+")*"),Je="(?:"+[Ne,Be,qe].join("|")+")"+Qe,Ze="(?:"+[$e+Le+"?",Le,Be,qe,Me].join("|")+")",et=RegExp(Ae,"g"),tt=RegExp(Le,"g"),nt=RegExp(He+"(?="+He+")|"+Ze+Qe,"g"),rt=RegExp([ze+"?"+je+"+"+Ye+"(?="+[Pe,ze,"$"].join("|")+")",Ve+"+"+Ke+"(?="+[Pe,ze+We,"$"].join("|")+")",ze+"?"+We+"+"+Ye,ze+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),ot=RegExp("["+Ue+_e+Te+Ie+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[N]=ct[j]=ct[F]=ct[H]=ct[$]=ct[B]=ct[q]=ct[z]=ct[U]=!0,ct[v]=ct[b]=ct[L]=ct[w]=ct[R]=ct[x]=ct[k]=ct[S]=ct[T]=ct[C]=ct[E]=ct[I]=ct[D]=ct[A]=ct[P]=!1;var ut={};ut[v]=ut[b]=ut[L]=ut[R]=ut[w]=ut[x]=ut[N]=ut[j]=ut[F]=ut[H]=ut[$]=ut[T]=ut[C]=ut[E]=ut[I]=ut[D]=ut[A]=ut[M]=ut[B]=ut[q]=ut[z]=ut[U]=!0,ut[k]=ut[S]=ut[P]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,dt=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,vt=yt&&yt.exports===mt,bt=vt&&ft.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,kt=wt&&wt.isDate,St=wt&&wt.isMap,_t=wt&&wt.isRegExp,Tt=wt&&wt.isSet,Ct=wt&&wt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function jt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ht(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var $t=Yt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function qt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function zt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):qt(e,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!==e}function Vt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:g}function Yt(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function Gt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,mn(e)+1).replace(se,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return Rt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var on=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sn=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function cn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function hn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):$t(e)}function gn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n=(t=null==t?gt:vn.defaults(gt.Object(),t,vn.pick(gt,st))).Array,r=t.Date,ae=t.Error,_e=t.Function,Te=t.Math,Ce=t.Object,Ee=t.RegExp,Oe=t.String,Ie=t.TypeError,De=n.prototype,Ae=_e.prototype,Me=Ce.prototype,Pe=t["__core-js_shared__"],Le=Ae.toString,Re=Me.hasOwnProperty,Ne=0,je=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Me.toString,He=Le.call(Ce),$e=gt._,Be=Ee("^"+Le.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=vt?t.Buffer:o,ze=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:o,Ve=ln(Ce.getPrototypeOf,Ce),Ye=Ce.create,Ke=Me.propertyIsEnumerable,Ge=De.splice,Xe=ze?ze.isConcatSpreadable:o,Qe=ze?ze.iterator:o,Je=ze?ze.toStringTag:o,Ze=function(){try{var e=di(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==gt.Date.now&&r.now,lt=t.setTimeout!==gt.setTimeout&&t.setTimeout,ft=Te.ceil,pt=Te.floor,mt=Ce.getOwnPropertySymbols,yt=qe?qe.isBuffer:o,bt=t.isFinite,wt=De.join,$t=ln(Ce.keys,Ce),Kt=Te.max,bn=Te.min,wn=r.now,xn=t.parseInt,kn=Te.random,Sn=De.reverse,_n=di(t,"DataView"),Tn=di(t,"Map"),Cn=di(t,"Promise"),En=di(t,"Set"),On=di(t,"WeakMap"),In=di(Ce,"create"),Dn=On&&new On,An={},Mn=Fi(_n),Pn=Fi(Tn),Ln=Fi(Cn),Rn=Fi(En),Nn=Fi(On),jn=ze?ze.prototype:o,Fn=jn?jn.valueOf:o,Hn=jn?jn.toString:o;function $n(e){if(ta(e)&&!Us(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return Hi(e)}return new zn(e)}var Bn=function(){function e(){}return function(t){if(!ea(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function qn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Xn(e,t){var n=Us(e),r=!n&&zs(e),o=!n&&!r&&Ks(e),i=!n&&!r&&!o&&ua(e),s=n||r||o||i,a=s?Qt(e.length,Oe):[],c=a.length;for(var u in e)!t&&!Re.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bi(u,c))||a.push(u);return a}function Qn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Jn(e,t){return Ri(Do(e),ar(t,0,e.length))}function Zn(e){return Ri(Do(e))}function er(e,t,n){(n!==o&&!$s(e[t],n)||n===o&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];Re.call(e,t)&&$s(r,n)&&(n!==o||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if($s(e[n][0],t))return n;return-1}function rr(e,t,n,r){return dr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&Ao(t,Aa(t),e)}function ir(e,t,n){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,s=n(i),a=null==e;++r<i;)s[r]=a?o:Ca(e,t[r]);return s}function ar(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,s){var a,c=1&t,u=2&t,l=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ea(e))return e;var h=Us(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Do(e,a)}else{var d=gi(e),f=d==S||d==_;if(Ks(e))return _o(e,c);if(d==E||d==v||f&&!i){if(a=u||f?{}:yi(e),!c)return u?function(e,t){return Ao(e,pi(e),t)}(e,function(e,t){return e&&Ao(t,Ma(t),e)}(a,e)):function(e,t){return Ao(e,fi(e),t)}(e,or(a,e))}else{if(!ut[d])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case L:return To(e);case w:case x:return new r(+e);case R:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case j:case F:case H:case $:case B:case q:case z:case U:return Co(e,n);case T:return new r;case C:case A:return new r(e);case I:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case M:return o=e,Fn?Ce(Fn.call(o)):{}}var o}(e,d,c)}}s||(s=new Gn);var p=s.get(e);if(p)return p;s.set(e,a),sa(e)?e.forEach((function(r){a.add(cr(r,t,n,r,e,s))})):na(e)&&e.forEach((function(r,o){a.set(o,cr(r,t,n,o,e,s))}));var g=h?o:(l?u?ii:oi:u?Ma:Aa)(e);return It(g||e,(function(r,o){g&&(r=e[o=r]),tr(a,o,cr(r,t,n,o,e,s))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Ie(i);return Ai((function(){e.apply(o,n)}),t)}function hr(e,t,n,r){var o=-1,i=Pt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;n&&(t=Rt(t,Zt(n))),r?(i=Lt,s=!1):t.length>=200&&(i=tn,s=!1,t=new Kn(t));e:for(;++o<a;){var l=e[o],h=null==n?l:n(l);if(l=r||0!==l?l:0,s&&h===h){for(var d=u;d--;)if(t[d]===h)continue e;c.push(l)}else i(t,h,r)||c.push(l)}return c}$n.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:$n}},$n.prototype=qn.prototype,$n.prototype.constructor=$n,zn.prototype=Bn(qn.prototype),zn.prototype.constructor=zn,Un.prototype=Bn(qn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?o:n}return Re.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==o:Re.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===o?s:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?o:t[n][1]},Vn.prototype.has=function(e){return nr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Tn||Vn),string:new Wn}},Yn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return li(this,e).get(e)},Yn.prototype.has=function(e){return li(this,e).has(e)},Yn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,s),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var dr=Lo(wr),fr=Lo(xr,!0);function pr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(c===o?a===a&&!ca(a):n(a,c)))var c=a,u=s}return u}function mr(e,t){var n=[];return dr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=vi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?yr(a,t-1,n,r,o):Nt(o,a):r||(o[o.length]=a)}return o}var vr=Ro(),br=Ro(!0);function wr(e,t){return e&&vr(e,t,Aa)}function xr(e,t){return e&&br(e,t,Aa)}function kr(e,t){return Mt(t,(function(t){return Qs(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[ji(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return Us(e)?r:Nt(r,n(e))}function Tr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Ce(e)?function(e){var t=Re.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(s){}var i=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Re.call(e,t)}function Or(e,t){return null!=e&&t in Ce(e)}function Ir(e,t,r){for(var i=r?Lt:Pt,s=e[0].length,a=e.length,c=a,u=n(a),l=1/0,h=[];c--;){var d=e[c];c&&t&&(d=Rt(d,Zt(t))),l=bn(d.length,l),u[c]=!r&&(t||s>=120&&d.length>=120)?new Kn(c&&d):o}d=e[0];var f=-1,p=u[0];e:for(;++f<s&&h.length<l;){var g=d[f],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?tn(p,m):i(h,m,r))){for(c=a;--c;){var y=u[c];if(!(y?tn(y,m):i(e[c],m,r)))continue e}p&&p.push(m),h.push(g)}}return h}function Dr(e,t,n){var r=null==(e=Oi(e,t=wo(t,e)))?e:e[ji(Xi(t))];return null==r?o:Et(r,e,n)}function Ar(e){return ta(e)&&Tr(e)==v}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!==e&&t!==t:function(e,t,n,r,i,s){var a=Us(e),c=Us(t),u=a?b:gi(e),l=c?b:gi(t),h=(u=u==v?E:u)==E,d=(l=l==v?E:l)==E,f=u==l;if(f&&Ks(e)){if(!Ks(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Gn),a||ua(e)?ni(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case w:case x:case C:return $s(+e,+t);case k:return e.name==t.name&&e.message==t.message;case I:case A:return e==t+"";case T:var a=un;case D:var c=1&r;if(a||(a=dn),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var l=ni(a(e),a(t),r,o,i,s);return s.delete(e),l;case M:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,i,s);if(!(1&n)){var p=h&&Re.call(e,"__wrapped__"),g=d&&Re.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,y=g?t.value():t;return s||(s=new Gn),i(m,y,n,r,s)}}if(!f)return!1;return s||(s=new Gn),function(e,t,n,r,i,s){var a=1&n,c=oi(e),u=c.length,l=oi(t),h=l.length;if(u!=h&&!a)return!1;var d=u;for(;d--;){var f=c[d];if(!(a?f in t:Re.call(t,f)))return!1}var p=s.get(e),g=s.get(t);if(p&&g)return p==t&&g==e;var m=!0;s.set(e,t),s.set(t,e);var y=a;for(;++d<u;){var v=e[f=c[d]],b=t[f];if(r)var w=a?r(b,v,f,t,e,s):r(v,b,f,e,t,s);if(!(w===o?v===b||i(v,b,n,r,s):w)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var x=e.constructor,k=t.constructor;x==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof k&&k instanceof k||(m=!1)}return s.delete(e),s.delete(t),m}(e,t,n,r,i,s)}(e,t,n,r,Mr,i))}function Pr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Ce(e);i--;){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],l=e[u],h=c[1];if(a&&c[2]){if(l===o&&!(u in e))return!1}else{var d=new Gn;if(r)var f=r(l,h,u,e,t,d);if(!(f===o?Mr(h,l,3,r,d):f))return!1}}return!0}function Lr(e){return!(!ea(e)||(t=e,je&&je in t))&&(Qs(e)?Be:ve).test(Fi(e));var t}function Rr(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Us(e)?Br(e[0],e[1]):$r(e):dc(e)}function Nr(e){if(!_i(e))return $t(e);var t=[];for(var n in Ce(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=_i(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Hr(e,t){var r=-1,o=Vs(e)?n(e.length):[];return dr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function $r(e){var t=hi(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Br(e,t){return xi(e)&&Ti(t)?Ci(ji(e),t):function(n){var r=Ca(n,e);return r===o&&r===t?Ea(n,e):Mr(t,r,3)}}function qr(e,t,n,r,i){e!==t&&vr(t,(function(s,a){if(i||(i=new Gn),ea(s))!function(e,t,n,r,i,s,a){var c=Ii(e,n),u=Ii(t,n),l=a.get(u);if(l)return void er(e,n,l);var h=s?s(c,u,n+"",e,t,a):o,d=h===o;if(d){var f=Us(u),p=!f&&Ks(u),g=!f&&!p&&ua(u);h=u,f||p||g?Us(c)?h=c:Ys(c)?h=Do(c):p?(d=!1,h=_o(u,!0)):g?(d=!1,h=Co(u,!0)):h=[]:oa(u)||zs(u)?(h=c,zs(c)?h=ya(c):ea(c)&&!Qs(c)||(h=yi(u))):d=!1}d&&(a.set(u,h),i(h,u,r,s,a),a.delete(u));er(e,n,h)}(e,t,a,n,qr,r,i);else{var c=r?r(Ii(e,a),s,a+"",e,t,i):o;c===o&&(c=s),er(e,a,c)}}),Ma)}function zr(e,t){var n=e.length;if(n)return bi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Rt(t,(function(e){return Us(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[rc];var r=-1;t=Rt(t,Zt(ui()));var o=Hr(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;for(;++r<s;){var c=Eo(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Sr(e,s);n(a,s)&&Zr(i,wo(s,e),a)}return i}function Vr(e,t,n,r){var o=r?Ut:zt,i=-1,s=t.length,a=e;for(e===t&&(t=Do(t)),n&&(a=Rt(e,Zt(n)));++i<s;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(a,l,c,r))>-1;)a!==e&&Ge.call(a,c,1),Ge.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ge.call(e,o,1):ho(e,o)}}return e}function Kr(e,t){return e+pt(kn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Mi(Ei(e,t,rc),e+"")}function Qr(e){return Qn($a(e))}function Jr(e,t){var n=$a(e);return Ri(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!ea(e))return e;for(var i=-1,s=(t=wo(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=ji(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var h=c[u];(l=r?r(h,u,c):o)===o&&(l=ea(h)?h:bi(t[i+1])?[]:{})}tr(c,u,l),c=c[u]}return e}var eo=Dn?function(e,t){return Dn.set(e,t),e}:rc,to=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return Ri($a(e))}function ro(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=n(i);++o<i;)s[o]=e[o+t];return s}function oo(e,t){var n;return dr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return so(e,t,rc,n)}function so(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!==t,c=null===t,u=ca(t),l=t===o;i<s;){var h=pt((i+s)/2),d=n(e[h]),f=d!==o,p=null===d,g=d===d,m=ca(d);if(a)var y=r||g;else y=l?g&&(r||f):c?g&&f&&(r||!p):u?g&&f&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);y?i=h+1:s=h}return bn(s,4294967294)}function ao(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!$s(a,c)){var c=a;i[o++]=0===s?0:s}}return i}function co(e){return"number"==typeof e?e:ca(e)?g:+e}function uo(e){if("string"==typeof e)return e;if(Us(e))return Rt(e,uo)+"";if(ca(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Pt,i=e.length,s=!0,a=[],c=a;if(n)s=!1,o=Lt;else if(i>=200){var u=t?null:Xo(e);if(u)return dn(u);s=!1,o=tn,c=new Kn}else c=t?[]:a;e:for(;++r<i;){var l=e[r],h=t?t(l):l;if(l=n||0!==l?l:0,s&&h===h){for(var d=c.length;d--;)if(c[d]===h)continue e;t&&c.push(h),a.push(l)}else o(c,h,n)||(c!==a&&c.push(h),a.push(l))}return a}function ho(e,t){return null==(e=Oi(e,t=wo(t,e)))||delete e[ji(Xi(t))]}function fo(e,t,n,r){return Zr(e,t,n(Sr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Un&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function mo(e,t,r){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,s=n(o);++i<o;)for(var a=e[i],c=-1;++c<o;)c!=i&&(s[i]=hr(s[i]||a,e[c],t,r));return lo(yr(s,1),t,r)}function yo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var c=r<s?t[r]:o;n(a,e[r],c)}return a}function vo(e){return Ys(e)?e:[]}function bo(e){return"function"==typeof e?e:rc}function wo(e,t){return Us(e)?e:xi(e,t)?[e]:Ni(va(e))}var xo=Xr;function ko(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ro(e,t,n)}var So=nt||function(e){return gt.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function To(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Co(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,s=ca(e),a=t!==o,c=null===t,u=t===t,l=ca(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}function Oo(e,t,r,o){for(var i=-1,s=e.length,a=r.length,c=-1,u=t.length,l=Kt(s-a,0),h=n(u+l),d=!o;++c<u;)h[c]=t[c];for(;++i<a;)(d||i<s)&&(h[r[i]]=e[i]);for(;l--;)h[c++]=e[i++];return h}function Io(e,t,r,o){for(var i=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,h=Kt(s-c,0),d=n(h+l),f=!o;++i<h;)d[i]=e[i];for(var p=i;++u<l;)d[p+u]=t[u];for(;++a<c;)(f||i<s)&&(d[p+r[a]]=e[i++]);return d}function Do(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Ao(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?ir(n,c,u):tr(n,c,u)}return n}function Mo(e,t){return function(n,r){var o=Us(n)?Ot:rr,i=t?t():{};return o(n,e,ui(r,2),i)}}function Po(e){return Xr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&wi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ce(t);++r<i;){var c=n[r];c&&e(t,c,r,s)}return t}))}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Vs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Ce(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=Ce(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}function No(e){return function(t){var n=cn(t=va(t))?gn(t):o,r=n?n[0]:t.charAt(0),i=n?ko(n,1).join(""):t.slice(1);return r[e]()+i}}function jo(e){return function(t){return jt(Qa(za(t).replace(et,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ea(r)?r:n}}function Ho(e){return function(t,n,r){var i=Ce(t);if(!Vs(t)){var s=ui(n,3);t=Aa(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function $o(e){return ri((function(t){var n=t.length,r=n,s=zn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ie(i);if(s&&!c&&"wrapper"==ai(a))var c=new zn([],!0)}for(r=c?r:n;++r<n;){var u=ai(a=t[r]),l="wrapper"==u?si(a):o;c=l&&ki(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ai(l[0])].apply(c,l[3]):1==a.length&&ki(a)?c[u]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Us(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Bo(e,t,r,i,s,a,c,u,l,d){var f=t&h,p=1&t,g=2&t,m=24&t,y=512&t,v=g?o:Fo(e);return function h(){for(var b=arguments.length,w=n(b),x=b;x--;)w[x]=arguments[x];if(m)var k=ci(h),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,k);if(i&&(w=Oo(w,i,s,m)),a&&(w=Io(w,a,c,m)),b-=S,m&&b<d){var _=hn(w,k);return Ko(e,t,Bo,h.placeholder,r,w,_,u,l,d-b)}var T=p?r:this,C=g?T[e]:e;return b=w.length,u?w=function(e,t){var n=e.length,r=bn(t.length,n),i=Do(e);for(;r--;){var s=t[r];e[r]=bi(s,n)?i[s]:o}return e}(w,u):y&&b>1&&w.reverse(),f&&l<b&&(w.length=l),this&&this!==gt&&this instanceof h&&(C=v||Fo(C)),C.apply(T,w)}}function qo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Uo(e){return ri((function(t){return t=Rt(t,Zt(ui())),Xr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Gr(t,e):t;var r=Gr(t,ft(e/pn(t)));return cn(t)?ko(gn(r),0,e).join(""):r.slice(0,e)}function Vo(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=fa(t),r===o?(r=t,t=0):r=fa(r),function(e,t,r,o){for(var i=-1,s=Kt(ft((t-e)/(r||1)),0),a=n(s);s--;)a[o?s:++i]=e,e+=r;return a}(t,r,i=i===o?t<r?1:-1:fa(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Ko(e,t,n,r,i,s,a,c,h,d){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var p=[e,t,i,f?s:o,f?a:o,f?o:s,f?o:a,c,h,d],g=n.apply(o,p);return ki(e)&&Di(g,p),g.placeholder=r,Pi(g,e,t)}function Go(e){var t=Te[e];return function(e,n){if(e=ma(e),(n=null==n?0:bn(pa(n),292))&&bt(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=En&&1/dn(new En([,-0]))[1]==f?function(e){return new En(e)}:cc;function Qo(e){return function(t){var n=gi(t);return n==T?un(t):n==D?fn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,s,f,p,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new Ie(i);var v=s?s.length:0;if(v||(t&=-97,s=f=o),g=g===o?g:Kt(pa(g),0),m=m===o?m:pa(m),v-=f?f.length:0,t&l){var b=s,w=f;s=f=o}var x=y?o:si(e),k=[e,t,r,s,f,b,w,p,g,m];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==h&&8==n||r==h&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Oo(u,c,t[4]):c,e[4]=u?hn(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Io(u,c,t[6]):c,e[6]=u?hn(e[5],a):t[6]);(c=t[7])&&(e[7]=c);r&h&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(k,x),e=k[0],t=k[1],r=k[2],s=k[3],f=k[4],!(m=k[9]=k[9]===o?y?0:e.length:Kt(k[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==c?function(e,t,r){var i=Fo(e);return function s(){for(var a=arguments.length,c=n(a),u=a,l=ci(s);u--;)c[u]=arguments[u];var h=a<3&&c[0]!==l&&c[a-1]!==l?[]:hn(c,l);return(a-=h.length)<r?Ko(e,t,Bo,s.placeholder,o,c,h,o,o,r-a):Et(this&&this!==gt&&this instanceof s?i:e,this,c)}}(e,t,m):t!=u&&33!=t||f.length?Bo.apply(o,k):function(e,t,r,o){var i=1&t,s=Fo(e);return function t(){for(var a=-1,c=arguments.length,u=-1,l=o.length,h=n(l+c),d=this&&this!==gt&&this instanceof t?s:e;++u<l;)h[u]=o[u];for(;c--;)h[u++]=arguments[++a];return Et(d,i?r:this,h)}}(e,t,r,s);else var S=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==gt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Pi((x?eo:Di)(S,k),e,t)}function Zo(e,t,n,r){return e===o||$s(e,Me[n])&&!Re.call(r,n)?t:e}function ei(e,t,n,r,i,s){return ea(e)&&ea(t)&&(s.set(t,e),qr(e,t,o,ei,s),s.delete(t)),e}function ti(e){return oa(e)?o:e}function ni(e,t,n,r,i,s){var a=1&n,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),h=s.get(t);if(l&&h)return l==t&&h==e;var d=-1,f=!0,p=2&n?new Kn:o;for(s.set(e,t),s.set(t,e);++d<c;){var g=e[d],m=t[d];if(r)var y=a?r(m,g,d,t,e,s):r(g,m,d,e,t,s);if(y!==o){if(y)continue;f=!1;break}if(p){if(!Ht(t,(function(e,t){if(!tn(p,t)&&(g===e||i(g,e,n,r,s)))return p.push(t)}))){f=!1;break}}else if(g!==m&&!i(g,m,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function ri(e){return Mi(Ei(e,o,Wi),e+"")}function oi(e){return _r(e,Aa,fi)}function ii(e){return _r(e,Ma,pi)}var si=Dn?function(e){return Dn.get(e)}:cc;function ai(e){for(var t=e.name+"",n=An[t],r=Re.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Re.call($n,"placeholder")?$n:e).placeholder}function ui(){var e=$n.iteratee||oc;return e=e===oc?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function hi(e){for(var t=Aa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ti(o)]}return t}function di(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Lr(n)?n:o}var fi=mt?function(e){return null==e?[]:(e=Ce(e),Mt(mt(e),(function(t){return Ke.call(e,t)})))}:gc,pi=mt?function(e){for(var t=[];e;)Nt(t,fi(e)),e=Ve(e);return t}:gc,gi=Tr;function mi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var s=ji(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Zs(o)&&bi(s,o)&&(Us(e)||zs(e))}function yi(e){return"function"!=typeof e.constructor||_i(e)?{}:Bn(Ve(e))}function vi(e){return Us(e)||zs(e)||!!(Xe&&e&&e[Xe])}function bi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ea(n))return!1;var r=typeof t;return!!("number"==r?Vs(n)&&bi(t,n.length):"string"==r&&t in n)&&$s(n[t],e)}function xi(e,t){if(Us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function ki(e){var t=ai(e),n=$n[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(_n&&gi(new _n(new ArrayBuffer(1)))!=R||Tn&&gi(new Tn)!=T||Cn&&gi(Cn.resolve())!=O||En&&gi(new En)!=D||On&&gi(new On)!=P)&&(gi=function(e){var t=Tr(e),n=t==E?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Mn:return R;case Pn:return T;case Ln:return O;case Rn:return D;case Nn:return P}return t});var Si=Pe?Qs:mc;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Ti(e){return e===e&&!ea(e)}function Ci(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ce(n)))}}function Ei(e,t,r){return t=Kt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=Kt(o.length-t,0),a=n(s);++i<s;)a[i]=o[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=o[i];return c[t]=r(a),Et(e,this,c)}}function Oi(e,t){return t.length<2?e:Sr(e,ro(t,0,-1))}function Ii(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Di=Li(eo),Ai=lt||function(e,t){return gt.setTimeout(e,t)},Mi=Li(to);function Pi(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return It(y,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function Li(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=Kr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Ni=function(e){var t=Ls(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function ji(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Le.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Hi(e){if(e instanceof Un)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Do(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Xr((function(e,t){return Ys(e)?hr(e,yr(t,1,Ys,!0)):[]})),Bi=Xr((function(e,t){var n=Xi(t);return Ys(n)&&(n=o),Ys(e)?hr(e,yr(t,1,Ys,!0),ui(n,2)):[]})),qi=Xr((function(e,t){var n=Xi(t);return Ys(n)&&(n=o),Ys(e)?hr(e,yr(t,1,Ys,!0),o,n):[]}));function zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pa(n);return o<0&&(o=Kt(r+o,0)),qt(e,ui(t,3),o)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=pa(n),i=n<0?Kt(r+i,0):bn(i,r-1)),qt(e,ui(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?yr(e,1):[]}function Vi(e){return e&&e.length?e[0]:o}var Yi=Xr((function(e){var t=Rt(e,vo);return t.length&&t[0]===e[0]?Ir(t):[]})),Ki=Xr((function(e){var t=Xi(e),n=Rt(e,vo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ir(n,ui(t,2)):[]})),Gi=Xr((function(e){var t=Xi(e),n=Rt(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Xr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Zi=ri((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Rt(t,(function(e){return bi(e,n)?+e:e})).sort(Eo)),r}));function es(e){return null==e?e:Sn.call(e)}var ts=Xr((function(e){return lo(yr(e,1,Ys,!0))})),ns=Xr((function(e){var t=Xi(e);return Ys(t)&&(t=o),lo(yr(e,1,Ys,!0),ui(t,2))})),rs=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,lo(yr(e,1,Ys,!0),o,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Ys(e))return t=Kt(e.length,t),!0})),Qt(t,(function(t){return Rt(e,Yt(t))}))}function is(e,t){if(!e||!e.length)return[];var n=os(e);return null==t?n:Rt(n,(function(e){return Et(t,o,e)}))}var ss=Xr((function(e,t){return Ys(e)?hr(e,t):[]})),as=Xr((function(e){return mo(Mt(e,Ys))})),cs=Xr((function(e){var t=Xi(e);return Ys(t)&&(t=o),mo(Mt(e,Ys),ui(t,2))})),us=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,mo(Mt(e,Ys),o,t)})),ls=Xr(os);var hs=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,is(e,n)}));function ds(e){var t=$n(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var ps=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&bi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[i],thisArg:o}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var gs=Mo((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)}));var ms=Ho(zi),ys=Ho(Ui);function vs(e,t){return(Us(e)?It:dr)(e,ui(t,3))}function bs(e,t){return(Us(e)?Dt:fr)(e,ui(t,3))}var ws=Mo((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])}));var xs=Xr((function(e,t,r){var o=-1,i="function"==typeof t,s=Vs(e)?n(e.length):[];return dr(e,(function(e){s[++o]=i?Et(t,e,r):Dr(e,t,r)})),s})),ks=Mo((function(e,t,n){ir(e,n,t)}));function Ss(e,t){return(Us(e)?Rt:Hr)(e,ui(t,3))}var _s=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ts=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,yr(t,1),[])})),Cs=ot||function(){return gt.Date.now()};function Es(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,h,o,o,o,o,t)}function Os(e,t){var n;if("function"!=typeof t)throw new Ie(i);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Is=Xr((function(e,t,n){var r=1;if(n.length){var o=hn(n,ci(Is));r|=u}return Jo(e,r,t,n,o)})),Ds=Xr((function(e,t,n){var r=3;if(n.length){var o=hn(n,ci(Ds));r|=u}return Jo(t,r,e,n,o)}));function As(e,t,n){var r,s,a,c,u,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ie(i);function g(t){var n=r,i=s;return r=s=o,h=t,c=e.apply(i,n)}function m(e){var n=e-l;return l===o||n>=t||n<0||f&&e-h>=a}function y(){var e=Cs();if(m(e))return v(e);u=Ai(y,function(e){var n=t-(e-l);return f?bn(n,a-(e-h)):n}(e))}function v(e){return u=o,p&&r?g(e):(r=s=o,c)}function b(){var e=Cs(),n=m(e);if(r=arguments,s=this,l=e,n){if(u===o)return function(e){return h=e,u=Ai(y,t),d?g(e):c}(l);if(f)return So(u),u=Ai(y,t),g(l)}return u===o&&(u=Ai(y,t)),c}return t=ma(t)||0,ea(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Kt(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==o&&So(u),h=0,r=l=s=u=o},b.flush=function(){return u===o?c:v(Cs())},b}var Ms=Xr((function(e,t){return lr(e,1,t)})),Ps=Xr((function(e,t,n){return lr(e,ma(t)||0,n)}));function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ls.Cache||Yn),n}function Rs(e){if("function"!=typeof e)throw new Ie(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ls.Cache=Yn;var Ns=xo((function(e,t){var n=(t=1==t.length&&Us(t[0])?Rt(t[0],Zt(ui())):Rt(yr(t,1),Zt(ui()))).length;return Xr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),js=Xr((function(e,t){var n=hn(t,ci(js));return Jo(e,u,o,t,n)})),Fs=Xr((function(e,t){var n=hn(t,ci(Fs));return Jo(e,l,o,t,n)})),Hs=ri((function(e,t){return Jo(e,d,o,o,o,t)}));function $s(e,t){return e===t||e!==e&&t!==t}var Bs=Yo(Cr),qs=Yo((function(e,t){return e>=t})),zs=Ar(function(){return arguments}())?Ar:function(e){return ta(e)&&Re.call(e,"callee")&&!Ke.call(e,"callee")},Us=n.isArray,Ws=xt?Zt(xt):function(e){return ta(e)&&Tr(e)==L};function Vs(e){return null!=e&&Zs(e.length)&&!Qs(e)}function Ys(e){return ta(e)&&Vs(e)}var Ks=yt||mc,Gs=kt?Zt(kt):function(e){return ta(e)&&Tr(e)==x};function Xs(e){if(!ta(e))return!1;var t=Tr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Qs(e){if(!ea(e))return!1;var t=Tr(e);return t==S||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=St?Zt(St):function(e){return ta(e)&&gi(e)==T};function ra(e){return"number"==typeof e||ta(e)&&Tr(e)==C}function oa(e){if(!ta(e)||Tr(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==He}var ia=_t?Zt(_t):function(e){return ta(e)&&Tr(e)==I};var sa=Tt?Zt(Tt):function(e){return ta(e)&&gi(e)==D};function aa(e){return"string"==typeof e||!Us(e)&&ta(e)&&Tr(e)==A}function ca(e){return"symbol"==typeof e||ta(e)&&Tr(e)==M}var ua=Ct?Zt(Ct):function(e){return ta(e)&&Zs(e.length)&&!!ct[Tr(e)]};var la=Yo(Fr),ha=Yo((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Vs(e))return aa(e)?gn(e):Do(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=gi(e);return(t==T?un:t==D?dn:$a)(e)}function fa(e){return e?(e=ma(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function pa(e){var t=fa(e),n=t%1;return t===t?n?t-n:t:0}function ga(e){return e?ar(pa(e),0,m):0}function ma(e){if("number"==typeof e)return e;if(ca(e))return g;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):me.test(e)?g:+e}function ya(e){return Ao(e,Ma(e))}function va(e){return null==e?"":uo(e)}var ba=Po((function(e,t){if(_i(t)||Vs(t))Ao(t,Aa(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),wa=Po((function(e,t){Ao(t,Ma(t),e)})),xa=Po((function(e,t,n,r){Ao(t,Ma(t),e,r)})),ka=Po((function(e,t,n,r){Ao(t,Aa(t),e,r)})),Sa=ri(sr);var _a=Xr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Ma(s),c=-1,u=a.length;++c<u;){var l=a[c],h=e[l];(h===o||$s(h,Me[l])&&!Re.call(e,l))&&(e[l]=s[l])}return e})),Ta=Xr((function(e){return e.push(o,ei),Et(La,o,e)}));function Ca(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Ea(e,t){return null!=e&&mi(e,t,Or)}var Oa=qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),ec(rc)),Ia=qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Da=Xr(Dr);function Aa(e){return Vs(e)?Xn(e):Nr(e)}function Ma(e){return Vs(e)?Xn(e,!0):jr(e)}var Pa=Po((function(e,t,n){qr(e,t,n)})),La=Po((function(e,t,n,r){qr(e,t,n,r)})),Ra=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Ao(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Na=ri((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Ea(e,n)}))}(e,t)}));function ja(e,t){if(null==e)return{};var n=Rt(ii(e),(function(e){return[e]}));return t=ui(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Qo(Aa),Ha=Qo(Ma);function $a(e){return null==e?[]:en(e,Aa(e))}var Ba=jo((function(e,t,n){return t=t.toLowerCase(),e+(n?qa(t):t)}));function qa(e){return Xa(va(e).toLowerCase())}function za(e){return(e=va(e))&&e.replace(xe,on).replace(tt,"")}var Ua=jo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wa=jo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Va=No("toLowerCase");var Ya=jo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ka=jo((function(e,t,n){return e+(n?" ":"")+Xa(t)}));var Ga=jo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xa=No("toUpperCase");function Qa(e,t,n){return e=va(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(he)||[]}(e):e.match(t)||[]}var Ja=Xr((function(e,t){try{return Et(e,o,t)}catch(n){return Xs(n)?n:new ae(n)}})),Za=ri((function(e,t){return It(t,(function(t){t=ji(t),ir(e,t,Is(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=$o(),nc=$o(!0);function rc(e){return e}function oc(e){return Rr("function"==typeof e?e:cr(e,1))}var ic=Xr((function(e,t){return function(n){return Dr(n,e,t)}})),sc=Xr((function(e,t){return function(n){return Dr(e,n,t)}}));function ac(e,t,n){var r=Aa(t),o=kr(t,r);null!=n||ea(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Aa(t)));var i=!(ea(n)&&"chain"in n)||!!n.chain,s=Qs(e);return It(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Do(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function cc(){}var uc=Uo(Rt),lc=Uo(At),hc=Uo(Ht);function dc(e){return xi(e)?Yt(ji(e)):function(e){return function(t){return Sr(t,e)}}(e)}var fc=Vo(),pc=Vo(!0);function gc(){return[]}function mc(){return!1}var yc=zo((function(e,t){return e+t}),0),vc=Go("ceil"),bc=zo((function(e,t){return e/t}),1),wc=Go("floor");var xc=zo((function(e,t){return e*t}),1),kc=Go("round"),Sc=zo((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new Ie(i);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Es,$n.assign=ba,$n.assignIn=wa,$n.assignInWith=xa,$n.assignWith=ka,$n.at=Sa,$n.before=Os,$n.bind=Is,$n.bindAll=Za,$n.bindKey=Ds,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},$n.chain=ds,$n.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:Kt(pa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=n(ft(i/t));s<i;)c[a++]=ro(e,s,s+=t);return c},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Nt(Us(r)?Do(r):[r],yr(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ie(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}}))},$n.conforms=function(e){return function(e){var t=Aa(e);return function(n){return ur(n,e,t)}}(cr(e,1))},$n.constant=ec,$n.countBy=gs,$n.create=function(e,t){var n=Bn(e);return null==t?n:or(n,t)},$n.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},$n.curryRight=function e(t,n,r){var i=Jo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},$n.debounce=As,$n.defaults=_a,$n.defaultsDeep=Ta,$n.defer=Ms,$n.delay=Ps,$n.difference=$i,$n.differenceBy=Bi,$n.differenceWith=qi,$n.drop=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=n||t===o?1:pa(t))<0?0:t,r):[]},$n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,0,(t=r-(t=n||t===o?1:pa(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!0):[]},$n.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=pa(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:pa(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},$n.filter=function(e,t){return(Us(e)?Mt:mr)(e,ui(t,3))},$n.flatMap=function(e,t){return yr(Ss(e,t),1)},$n.flatMapDeep=function(e,t){return yr(Ss(e,t),f)},$n.flatMapDepth=function(e,t,n){return n=n===o?1:pa(n),yr(Ss(e,t),n)},$n.flatten=Wi,$n.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},$n.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:pa(t)):[]},$n.flip=function(e){return Jo(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},$n.functions=function(e){return null==e?[]:kr(e,Aa(e))},$n.functionsIn=function(e){return null==e?[]:kr(e,Ma(e))},$n.groupBy=ws,$n.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},$n.intersection=Yi,$n.intersectionBy=Ki,$n.intersectionWith=Gi,$n.invert=Oa,$n.invertBy=Ia,$n.invokeMap=xs,$n.iteratee=oc,$n.keyBy=ks,$n.keys=Aa,$n.keysIn=Ma,$n.map=Ss,$n.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},$n.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},$n.matches=function(e){return $r(cr(e,1))},$n.matchesProperty=function(e,t){return Br(e,cr(t,1))},$n.memoize=Ls,$n.merge=Pa,$n.mergeWith=La,$n.method=ic,$n.methodOf=sc,$n.mixin=ac,$n.negate=Rs,$n.nthArg=function(e){return e=pa(e),Xr((function(t){return zr(t,e)}))},$n.omit=Ra,$n.omitBy=function(e,t){return ja(e,Rs(ui(t)))},$n.once=function(e){return Os(2,e)},$n.orderBy=function(e,t,n,r){return null==e?[]:(Us(t)||(t=null==t?[]:[t]),Us(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},$n.over=uc,$n.overArgs=Ns,$n.overEvery=lc,$n.overSome=hc,$n.partial=js,$n.partialRight=Fs,$n.partition=_s,$n.pick=Na,$n.pickBy=ja,$n.property=dc,$n.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},$n.pull=Qi,$n.pullAll=Ji,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ui(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,o,n):e},$n.pullAt=Zi,$n.range=fc,$n.rangeRight=pc,$n.rearg=Hs,$n.reject=function(e,t){return(Us(e)?Mt:mr)(e,Rs(ui(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Yr(e,o),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Ie(i);return Xr(e,t=t===o?t:pa(t))},$n.reverse=es,$n.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:pa(t),(Us(e)?Jn:Jr)(e,t)},$n.set=function(e,t,n){return null==e?e:Zr(e,t,n)},$n.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},$n.shuffle=function(e){return(Us(e)?Zn:no)(e)},$n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:pa(t),n=n===o?r:pa(n)),ro(e,t,n)):[]},$n.sortBy=Ts,$n.sortedUniq=function(e){return e&&e.length?ao(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?ao(e,ui(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=uo(t))&&cn(e)?ko(gn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Ie(i);return t=null==t?0:Kt(pa(t),0),Xr((function(n){var r=n[t],o=ko(n,0,t);return r&&Nt(o,r),Et(e,this,o)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:pa(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:pa(t)))<0?0:t,r):[]},$n.takeRightWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?po(e,ui(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ie(i);return ea(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),As(e,t,{leading:r,maxWait:t,trailing:o})},$n.thru=fs,$n.toArray=da,$n.toPairs=Fa,$n.toPairsIn=Ha,$n.toPath=function(e){return Us(e)?Rt(e,ji):ca(e)?[e]:Do(Ni(va(e)))},$n.toPlainObject=ya,$n.transform=function(e,t,n){var r=Us(e),o=r||Ks(e)||ua(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ea(e)&&Qs(i)?Bn(Ve(e)):{}}return(o?It:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},$n.unary=function(e){return Es(e,1)},$n.union=ts,$n.unionBy=ns,$n.unionWith=rs,$n.uniq=function(e){return e&&e.length?lo(e):[]},$n.uniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},$n.unset=function(e,t){return null==e||ho(e,t)},$n.unzip=os,$n.unzipWith=is,$n.update=function(e,t,n){return null==e?e:fo(e,t,bo(n))},$n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,bo(n),r)},$n.values=$a,$n.valuesIn=function(e){return null==e?[]:en(e,Ma(e))},$n.without=ss,$n.words=Qa,$n.wrap=function(e,t){return js(bo(t),e)},$n.xor=as,$n.xorBy=cs,$n.xorWith=us,$n.zip=ls,$n.zipObject=function(e,t){return yo(e||[],t||[],tr)},$n.zipObjectDeep=function(e,t){return yo(e||[],t||[],Zr)},$n.zipWith=hs,$n.entries=Fa,$n.entriesIn=Ha,$n.extend=wa,$n.extendWith=xa,ac($n,$n),$n.add=yc,$n.attempt=Ja,$n.camelCase=Ba,$n.capitalize=qa,$n.ceil=vc,$n.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ma(n))===n?n:0),t!==o&&(t=(t=ma(t))===t?t:0),ar(ma(e),t,n)},$n.clone=function(e){return cr(e,4)},$n.cloneDeep=function(e){return cr(e,5)},$n.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},$n.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},$n.conformsTo=function(e,t){return null==t||ur(e,t,Aa(t))},$n.deburr=za,$n.defaultTo=function(e,t){return null==e||e!==e?t:e},$n.divide=bc,$n.endsWith=function(e,t,n){e=va(e),t=uo(t);var r=e.length,i=n=n===o?r:ar(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},$n.eq=$s,$n.escape=function(e){return(e=va(e))&&Q.test(e)?e.replace(G,sn):e},$n.escapeRegExp=function(e){return(e=va(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},$n.every=function(e,t,n){var r=Us(e)?At:pr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},$n.find=ms,$n.findIndex=zi,$n.findKey=function(e,t){return Bt(e,ui(t,3),wr)},$n.findLast=ys,$n.findLastIndex=Ui,$n.findLastKey=function(e,t){return Bt(e,ui(t,3),xr)},$n.floor=wc,$n.forEach=vs,$n.forEachRight=bs,$n.forIn=function(e,t){return null==e?e:vr(e,ui(t,3),Ma)},$n.forInRight=function(e,t){return null==e?e:br(e,ui(t,3),Ma)},$n.forOwn=function(e,t){return e&&wr(e,ui(t,3))},$n.forOwnRight=function(e,t){return e&&xr(e,ui(t,3))},$n.get=Ca,$n.gt=Bs,$n.gte=qs,$n.has=function(e,t){return null!=e&&mi(e,t,Er)},$n.hasIn=Ea,$n.head=Vi,$n.identity=rc,$n.includes=function(e,t,n,r){e=Vs(e)?e:$a(e),n=n&&!r?pa(n):0;var o=e.length;return n<0&&(n=Kt(o+n,0)),aa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pa(n);return o<0&&(o=Kt(r+o,0)),zt(e,t,o)},$n.inRange=function(e,t,n){return t=fa(t),n===o?(n=t,t=0):n=fa(n),function(e,t,n){return e>=bn(t,n)&&e<Kt(t,n)}(e=ma(e),t,n)},$n.invoke=Da,$n.isArguments=zs,$n.isArray=Us,$n.isArrayBuffer=Ws,$n.isArrayLike=Vs,$n.isArrayLikeObject=Ys,$n.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Tr(e)==w},$n.isBuffer=Ks,$n.isDate=Gs,$n.isElement=function(e){return ta(e)&&1===e.nodeType&&!oa(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Vs(e)&&(Us(e)||"string"==typeof e||"function"==typeof e.splice||Ks(e)||ua(e)||zs(e)))return!e.length;var t=gi(e);if(t==T||t==D)return!e.size;if(_i(e))return!Nr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return Mr(e,t)},$n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},$n.isError=Xs,$n.isFinite=function(e){return"number"==typeof e&&bt(e)},$n.isFunction=Qs,$n.isInteger=Js,$n.isLength=Zs,$n.isMap=na,$n.isMatch=function(e,t){return e===t||Pr(e,t,hi(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Pr(e,t,hi(t),n)},$n.isNaN=function(e){return ra(e)&&e!=+e},$n.isNative=function(e){if(Si(e))throw new ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=ra,$n.isObject=ea,$n.isObjectLike=ta,$n.isPlainObject=oa,$n.isRegExp=ia,$n.isSafeInteger=function(e){return Js(e)&&e>=-9007199254740991&&e<=p},$n.isSet=sa,$n.isString=aa,$n.isSymbol=ca,$n.isTypedArray=ua,$n.isUndefined=function(e){return e===o},$n.isWeakMap=function(e){return ta(e)&&gi(e)==P},$n.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Tr(e)},$n.join=function(e,t){return null==e?"":wt.call(e,t)},$n.kebabCase=Ua,$n.last=Xi,$n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=pa(n))<0?Kt(r+i,0):bn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):qt(e,Wt,i,!0)},$n.lowerCase=Wa,$n.lowerFirst=Va,$n.lt=la,$n.lte=ha,$n.max=function(e){return e&&e.length?gr(e,rc,Cr):o},$n.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Cr):o},$n.mean=function(e){return Vt(e,rc)},$n.meanBy=function(e,t){return Vt(e,ui(t,2))},$n.min=function(e){return e&&e.length?gr(e,rc,Fr):o},$n.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Fr):o},$n.stubArray=gc,$n.stubFalse=mc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=xc,$n.nth=function(e,t){return e&&e.length?zr(e,pa(t)):o},$n.noConflict=function(){return gt._===this&&(gt._=$e),this},$n.noop=cc,$n.now=Cs,$n.pad=function(e,t,n){e=va(e);var r=(t=pa(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(pt(o),n)+e+Wo(ft(o),n)},$n.padEnd=function(e,t,n){e=va(e);var r=(t=pa(t))?pn(e):0;return t&&r<t?e+Wo(t-r,n):e},$n.padStart=function(e,t,n){e=va(e);var r=(t=pa(t))?pn(e):0;return t&&r<t?Wo(t-r,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(va(e).replace(se,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=fa(e),t===o?(t=e,e=0):t=fa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+ht("1e-"+((i+"").length-1))),t)}return Kr(e,t)},$n.reduce=function(e,t,n){var r=Us(e)?jt:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,dr)},$n.reduceRight=function(e,t,n){var r=Us(e)?Ft:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},$n.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:pa(t),Gr(va(e),t)},$n.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[ji(t[r])];s===o&&(r=i,s=n),e=Qs(s)?s.call(e):s}return e},$n.round=kc,$n.runInContext=e,$n.sample=function(e){return(Us(e)?Qn:Qr)(e)},$n.size=function(e){if(null==e)return 0;if(Vs(e))return aa(e)?pn(e):e.length;var t=gi(e);return t==T||t==D?e.size:Nr(e).length},$n.snakeCase=Ya,$n.some=function(e,t,n){var r=Us(e)?Ht:oo;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},$n.sortedIndex=function(e,t){return io(e,t)},$n.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&$s(e[r],t))return r}return-1},$n.sortedLastIndex=function(e,t){return io(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if($s(e[n],t))return n}return-1},$n.startCase=Ka,$n.startsWith=function(e,t,n){return e=va(e),n=null==n?0:ar(pa(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},$n.subtract=Sc,$n.sum=function(e){return e&&e.length?Xt(e,rc):0},$n.sumBy=function(e,t){return e&&e.length?Xt(e,ui(t,2)):0},$n.template=function(e,t,n){var r=$n.templateSettings;n&&wi(e,t,n)&&(t=o),e=va(e),t=xa({},t,r,Zo);var i,s,a=xa({},t.imports,r.imports,Zo),c=Aa(a),u=en(a,c),l=0,h=t.interpolate||ke,d="__p += '",f=Ee((t.escape||ke).source+"|"+h.source+"|"+(h===ee?pe:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),p="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,n,r,o,a,c){return r||(r=o),d+=e.slice(l,c).replace(Se,an),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var g=Re.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new ae("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(W,""):d).replace(V,"$1").replace(Y,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Ja((function(){return _e(c,p+"return "+d).apply(o,u)}));if(m.source=d,Xs(m))throw m;return m},$n.times=function(e,t){if((e=pa(e))<1||e>p)return[];var n=m,r=bn(e,m);t=ui(t),e-=m;for(var o=Qt(r,t);++n<e;)t(n);return o},$n.toFinite=fa,$n.toInteger=pa,$n.toLength=ga,$n.toLower=function(e){return va(e).toLowerCase()},$n.toNumber=ma,$n.toSafeInteger=function(e){return e?ar(pa(e),-9007199254740991,p):0===e?e:0},$n.toString=va,$n.toUpper=function(e){return va(e).toUpperCase()},$n.trim=function(e,t,n){if((e=va(e))&&(n||t===o))return Jt(e);if(!e||!(t=uo(t)))return e;var r=gn(e),i=gn(t);return ko(r,nn(r,i),rn(r,i)+1).join("")},$n.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=gn(e);return ko(r,0,rn(r,gn(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=va(e))&&(n||t===o))return e.replace(se,"");if(!e||!(t=uo(t)))return e;var r=gn(e);return ko(r,nn(r,gn(t))).join("")},$n.truncate=function(e,t){var n=30,r="...";if(ea(t)){var i="separator"in t?t.separator:i;n="length"in t?pa(t.length):n,r="omission"in t?uo(t.omission):r}var s=(e=va(e)).length;if(cn(e)){var a=gn(e);s=a.length}if(n>=s)return e;var c=n-pn(r);if(c<1)return r;var u=a?ko(a,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(a&&(c+=u.length-c),ia(i)){if(e.slice(c).search(i)){var l,h=u;for(i.global||(i=Ee(i.source,va(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(h);)var d=l.index;u=u.slice(0,d===o?c:d)}}else if(e.indexOf(uo(i),c)!=c){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},$n.unescape=function(e){return(e=va(e))&&X.test(e)?e.replace(K,yn):e},$n.uniqueId=function(e){var t=++Ne;return va(e)+t},$n.upperCase=Ga,$n.upperFirst=Xa,$n.each=vs,$n.eachRight=bs,$n.first=Vi,ac($n,function(){var e={};return wr($n,(function(t,n){Re.call($n.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),$n.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),It(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:Kt(pa(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(rc)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Dr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Rs(ui(e)))},Un.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(m)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=$n[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Un,u=a[0],l=c||Us(t),h=function(e){var t=i.apply($n,Nt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,g=c&&!f;if(!s&&l){t=g?t:new Un(this);var m=e.apply(t,a);return m.__actions__.push({func:fs,args:[h],thisArg:o}),new zn(m,d)}return p&&g?e.apply(this,a):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Us(o)?o:[],e)}return this[n]((function(n){return t.apply(Us(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=$n[t];if(n){var r=n.name+"";Re.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Bo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Do(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Do(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Do(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Us(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=bn(t,e+s);break;case"takeRight":e=Kt(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,c=a-s,u=r?a:s-1,l=this.__iteratees__,h=l.length,d=0,f=bn(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return go(e,this.__actions__);var p=[];e:for(;c--&&d<f;){for(var g=-1,m=e[u+=t];++g<h;){var y=l[g],v=y.iteratee,b=y.type,w=v(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[d++]=m}return p},$n.prototype.at=ps,$n.prototype.chain=function(){return ds(this)},$n.prototype.commit=function(){return new zn(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===o&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Hi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fs,args:[es],thisArg:o}),new zn(t,this.__chain__)}return this.thru(es)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Qe&&($n.prototype[Qe]=function(){return this}),$n}();gt._=vn,(r=function(){return vn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},84391:(e,t,n)=>{"use strict";var r=n(23479);t.H=r.createRoot,r.hydrateRoot},1253:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return a="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},a(e)}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){u(e,t,n[t])}))}return e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}n.d(t,{q6:()=>oe,Zj:()=>ae,D:()=>X});var b=n(28437),w=n(23479),x=n(22740),k=n.n(x);function S(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _=n(95973),T=n.n(_),C=function(){function e(){h(this,e),u(this,"refs",{})}return f(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(E)}}]),e}();function E(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function O(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var I={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},D=function(){if("undefined"===typeof window||"undefined"===typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function A(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function M(e,t){e.style["".concat(D,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function P(e,t){e.style["".concat(D,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function L(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function R(e,t,n){return Math.max(e,Math.min(n,t))}function N(e){return"px"===e.substr(-2)?parseFloat(e):0}function j(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function F(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function H(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:$(e.parentNode,t,r)}}function B(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,s="px";if("string"===typeof t){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);k()(null!==a,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),s=a[1]}return k()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===s&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function q(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:q(e.parentNode):null}var z=27,U=32,W=37,V=38,Y=39,K=40,G={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function X(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;h(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return u(p(p(t=g(this,(e=m(n)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,b.createRef)()),t}return v(n,t),f(n,[{key:"componentDidMount",value:function(){(0,w.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return k()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,b.createElement)(e,r({ref:t},this.props))}}]),n}(b.Component),u(t,"displayName",j("sortableHandle",e)),n}function Q(e){return null!=e.sortableHandle}var J=function(){function e(t,n){h(this,e),this.container=t,this.onScrollCallback=n}return f(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,s=e.height,a={x:0,y:0},c={x:1,y:1},u=10,l=10,h=this.container,d=h.scrollTop,f=h.scrollLeft,p=h.scrollHeight,g=h.scrollWidth,m=0===d,y=p-d-h.clientHeight===0,v=0===f,b=g-f-h.clientWidth===0;n.y>=o.y-s/2&&!y?(a.y=1,c.y=l*Math.abs((o.y-s/2-n.y)/s)):n.x>=o.x-i/2&&!b?(a.x=1,c.x=u*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+s/2&&!m?(a.y=-1,c.y=l*Math.abs((n.y-s/2-r.y)/s)):n.x<=r.x+i/2&&!v&&(a.x=-1,c.x=u*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===a.x&&0===a.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:c.x*a.x,top:c.y*a.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var Z={axis:T().oneOf(["x","y","xy"]),contentWindow:T().any,disableAutoscroll:T().bool,distance:T().number,getContainer:T().func,getHelperDimensions:T().func,helperClass:T().string,helperContainer:T().oneOfType([T().func,"undefined"===typeof HTMLElement?T().any:T().instanceOf(HTMLElement)]),hideSortableGhost:T().bool,keyboardSortingTransitionDuration:T().number,lockAxis:T().string,lockOffset:T().oneOfType([T().number,T().string,T().arrayOf(T().oneOfType([T().number,T().string]))]),lockToContainerEdges:T().bool,onSortEnd:T().func,onSortMove:T().func,onSortOver:T().func,onSortStart:T().func,pressDelay:T().number,pressThreshold:T().number,keyCodes:T().shape({lift:T().arrayOf(T().number),drop:T().arrayOf(T().number),cancel:T().arrayOf(T().number),up:T().arrayOf(T().number),down:T().arrayOf(T().number)}),shouldCancelStart:T().func,transitionDuration:T().number,updateBeforeSortStart:T().func,useDragHandle:T().bool,useWindowAsScrollContainer:T().bool},ee={lift:[U],drop:[U],cancel:[z],up:[V,W],down:[K,Y]},te={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ee,shouldCancelStart:function(e){return-1!==[G.Input,G.Textarea,G.Select,G.Option,G.Button].indexOf(e.target.tagName)||!!L(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},ne=Object.keys(Z);var re=(0,b.createContext)({manager:{}});function oe(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;h(this,n),u(p(p(t=g(this,m(n).call(this,e)))),"state",{}),u(p(p(t)),"handleStart",(function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=H(e);var i=L(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var s=t.props.useDragHandle,a=i.sortableInfo,c=a.index,u=a.collection;if(a.disabled)return;if(s&&!L(e.target,Q))return;t.manager.active={collection:u,index:c},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==G.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),u(p(p(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),u(p(p(t)),"handleMove",(function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=H(e),s={x:t.position.x-i.x,y:t.position.y-i.y},a=Math.abs(s.x)+Math.abs(s.y);t.delta=s,r||o&&!(a>=o)?r&&a>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),u(p(p(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),u(p(p(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),u(p(p(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=f.sortableInfo.index,r=function(e){var t=window.getComputedStyle(e);return{bottom:N(t.marginBottom),left:N(t.marginLeft),right:N(t.marginRight),top:N(t.marginTop)}}(f),o=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:N(t.gridColumnGap),y:N(t.gridRowGap)}:{x:0,y:0}}(t.container),u=t.scrollContainer.getBoundingClientRect(),m=s({index:n,node:f,collection:p});if(t.node=f,t.margin=r,t.gridGap=o,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=u,t.index=n,t.newIndex=n,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=$(f,t.container),t.initialOffset=H(g?l({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return S(r.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===G.Canvas&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)})),r}(f)),A(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),c&&(t.sortableGhost=f,A(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var y=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=y.top,b=y.left,w=y.width,x=v+y.height,k=b+w;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=k-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=x-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:u.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:u.left+u.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:u.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?t.contentWindow.innerHeight:u.top+u.height)-t.boundingClientRect.top-t.height/2);a&&a.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(I.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),I.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),h&&h({node:f,index:n,collection:p,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},o=t.props,i=o.axis,s=o.getHelperDimensions,a=o.helperClass,c=o.hideSortableGhost,u=o.updateBeforeSortStart,h=o.onSortStart,d=o.useWindowAsScrollContainer,f=n.node,p=n.collection,g=t.manager.isKeySorting,m=function(){if("function"===typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(r){return t(!0,r)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=f.sortableInfo.index;return Promise.resolve(u({collection:p,index:t,node:f,isKeySorting:g},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(o){return Promise.reject(o)}})),u(p(p(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"===typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),u(p(p(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager,s=i.active.collection,a=i.isKeySorting,c=t.manager.getOrderedRefs();t.listenerNode&&(a?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(I.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),I.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&A(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,l=c.length;u<l;u++){var h=c[u],d=h.node;h.edgeOffset=null,h.boundingClientRect=null,M(d,null),P(d,null),h.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"===typeof o&&o({collection:s,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:a,nodes:c},e),t.touched=!1})),u(p(p(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=l({},t.translate),o=0,i=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-r.y),t.translate=r,M(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),u(p(p(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),u(p(p(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,o=r.shouldCancelStart,i=r.keyCodes,s=l({},ee,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||s.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),s.lift.includes(n)&&!t.manager.active?t.keyLift(e):s.drop.includes(n)&&t.manager.active?t.keyDrop(e):s.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):s.up.includes(n)?t.keyMove(-1):s.down.includes(n)&&t.keyMove(1))})),u(p(p(t)),"keyLift",(function(e){var n=e.target,r=L(n,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:i},t.handlePress(e)})),u(p(p(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,i=t.newIndex;if(!(o<0||o>r)){t.prevIndex=i,t.newIndex=o;var s=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),a=n.find((function(e){return e.node.sortableInfo.index===s})),c=a.node,u=t.containerScrollDelta,l=a.boundingClientRect||F(c,u),h=a.translate||{x:0,y:0},d=l.top+h.y-u.top,f=l.left+h.x-u.left,p=i<o,g=p&&t.axis.x?c.offsetWidth-t.width:0,m=p&&t.axis.y?c.offsetHeight-t.height:0;t.handleSortMove({pageX:f+g,pageY:d+m,ignoreTransition:0===e})}})),u(p(p(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),u(p(p(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),u(p(p(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,o=L(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Q(r):r.sortableInfo)}));var r=new C;return function(e){k()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=r,t.wrappedInstance=(0,b.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return v(n,t),f(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"===typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:q(e.container)||e.container,e.autoScroller=new J(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return I[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return I[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,c=void 0===a?i:a,u=this.manager.isKeySorting,l=e.ignoreTransition,h=H(e),d={x:h.x-this.initialOffset.x,y:h.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var f=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];k()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=s(o,2),a=i[0],c=i[1];return[B({height:t,lockOffset:a,width:n}),B({height:t,lockOffset:c,width:n})]}({height:this.height,lockOffset:r,width:this.width}),p=s(f,2),g=p[0],m=p[1],y={x:this.width/2-g.x,y:this.height/2-g.y},v={x:this.width/2-m.x,y:this.height/2-m.y};d.x=R(this.minTranslate.x+y.x,this.maxTranslate.x-v.x,d.x),d.y=R(this.minTranslate.y+y.y,this.maxTranslate.y-v.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),u&&c&&!l&&P(this.helper,c),M(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,s=this.manager.getOrderedRefs(),a=this.offsetEdge.left+this.translate.x+o.left,c=this.offsetEdge.top+this.translate.y+o.top,u=this.manager.isKeySorting,l=this.newIndex;this.newIndex=null;for(var h=0,d=s.length;h<d;h++){var f=s[h].node,p=f.sortableInfo.index,g=f.offsetWidth,m=f.offsetHeight,y={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},v=u&&p>this.index&&p<=l,b=u&&p<this.index&&p>=l,w={x:0,y:0},x=s[h].edgeOffset;x||(x=$(f,this.container),s[h].edgeOffset=x,u&&(s[h].boundingClientRect=F(f,o)));var k=h<s.length-1&&s[h+1],S=h>0&&s[h-1];k&&!k.edgeOffset&&(k.edgeOffset=$(k.node,this.container),u&&(k.boundingClientRect=F(k.node,o))),p!==this.index?(t&&P(f,t),this.axis.x?this.axis.y?b||p<this.index&&(a+i.left-y.width<=x.left&&c+i.top<=x.top+y.height||c+i.top+y.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-y.width&&k&&(w.x=k.edgeOffset.left-x.left,w.y=k.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=p)):(v||p>this.index&&(a+i.left+y.width>=x.left&&c+i.top+y.height>=x.top||c+i.top+y.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+y.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),this.newIndex=p):v||p>this.index&&a+i.left+y.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=p):(b||p<this.index&&a+i.left<=x.left+y.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=p)):this.axis.y&&(v||p>this.index&&c+i.top+y.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=p):(b||p<this.index&&c+i.top<=x.top+y.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=p))),M(f,w),s[h].translate=w):n&&(this.sortableGhost=f,A(f,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=l);var _=u?this.prevIndex:l;r&&this.newIndex!==_&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:_,isKeySorting:u,nodes:s,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return k()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!==typeof e?(0,w.findDOMNode)(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,b.createElement)(re.Provider,{value:this.sortableContextValue},(0,b.createElement)(e,r({ref:t},O(this.props,ne))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"===typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(b.Component),u(t,"displayName",j("sortableList",e)),u(t,"defaultProps",te),u(t,"propTypes",Z),n}var ie={index:T().number.isRequired,collection:T().oneOfType([T().number,T().string]),disabled:T().bool},se=Object.keys(ie);function ae(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;h(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return u(p(p(t=g(this,(e=m(n)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,b.createRef)()),t}return v(n,t),f(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,w.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return k()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,b.createElement)(e,r({ref:t},O(this.props,se)))}}]),n}(b.Component),u(t,"displayName",j("sortableElement",e)),u(t,"contextType",re),u(t,"propTypes",ie),u(t,"defaultProps",{collection:0}),n}},51153:(e,t,n)=>{"use strict";var r=n(28437),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},70579:(e,t,n)=>{"use strict";e.exports=n(51153)},84222:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,o.default)(e),i="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(94403))},89762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},19184:(e,t,n)=>{"use strict";function r(e){return e?.rows.map((e=>e.value)).filter((e=>!!e))??[]}function o(e){return e?.startsWith("system.host.")||(e=`system.host.${e}`),e}function i(e){return e?.startsWith("system.host.")&&(e=e.substring(12)),e}function s(e){return new Promise((t=>{setTimeout(t,e)}))}function a(e){const t="*"===(e=(e||"").toString())[0],n="*"===e[e.length-1];return(t?"":"^")+(e=e.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"))+(n?"":"$")}var c,u;n.d(t,{wz:()=>d,Gd:()=>c}),function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.OBJECTS_LOADED=2]="OBJECTS_LOADED",e[e.READY=3]="READY"}(c||(c={})),function(e){e.PERMISSION_ERROR="permissionError",e.NOT_CONNECTED="notConnectedError",e.TIMEOUT="timeout",e.NOT_ADMIN="Allowed only in admin",e.NOT_SUPPORTED="Not supported"}(u||(u={}));u.PERMISSION_ERROR,u.NOT_CONNECTED;const l=["material","echarts","vis"];class h{constructor(e){this.props=this.applyDefaultProps(e),this.waitForSocketLib().then((()=>this.startSocket())).catch((e=>{alert(`Socket connection could not be initialized: ${e}`)}))}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||("3000"===window.location.port?8081:window.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}props;ignoreState="";connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=(()=>function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}())();_instanceSubscriptions={};_promises={};_authTimer;_systemConfig;get systemConfig(){return this._systemConfig}systemLang="en";static isWeb(){return void 0!==window.socketUrl}waitForSocketLib(){return this._waitForSocketPromise||(this._waitForSocketPromise=new Promise((async(e,t)=>{if("undefined"===typeof window.io&&"undefined"===typeof window.iob)if("function"===typeof window.registerSocketOnLoad)window.registerSocketOnLoad((()=>e()));else{for(let t=1;t<=30;t++){if(window.io||window.iob)return e();await s(100)}t(new Error("Socket library could not be loaded!"))}else e()}))),this._waitForSocketPromise}async startSocket(){if(this._socket)return;let e=this.props.host,t=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),r=window.location.pathname;if("iobroker.net"===window.location.hostname||"iobroker.pro"===window.location.hostname)r="";else{if(window.socketUrl){const r=new URL(window.socketUrl);e=r.hostname,t=r.port,n=r.protocol.replace(":","")}const o=r.lastIndexOf("/");if(-1!==o&&(r=r.substring(0,o+1)),h.isWeb()){const e=r.split("/");e.length>2&&(e.pop(),e.pop(),l.includes(e[e.length-1])&&e.pop(),r=e.join("/"),r.endsWith("/")||(r+="/"))}}const o=t?`${n}://${e}:${t}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(o,{path:r.endsWith("/")?`${r}socket.io`:`${r}/socket.io`,query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on("connect",(e=>{this.onReadyDone=!1,!0!==e?(this.connected=!0,setTimeout((()=>this.getVersion().then((e=>{const[t,n,r]=e.version.split(".");1e4*parseInt(t,10)+100*parseInt(n,10)+parseInt(r,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",((e,t)=>this.onPreConnect(e,t)))})).catch((e=>this.onError({message:e.toString(),operation:"getVersion"})))),500)):this._socket.emit("authenticate",((e,t)=>{this.onPreConnect(e,t)}))})),this._socket.on("reconnect",(()=>{this.onReadyDone=!1,this.props.onProgress?.(c.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach((e=>e(!0))))})),this._socket.on("disconnect",(()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(c.CONNECTING),this.onConnectionHandlers.forEach((e=>e(!1)))})),this._socket.on("reauthenticate",(()=>this.authenticate())),this._socket.on("log",(e=>{this.props.onLog?.(e),this.onLogHandlers.forEach((t=>t(e)))})),this._socket.on("error",(e=>{let t;void 0==e?t="":"function"===typeof e.toString?t=e.toString():(t=JSON.stringify(e),console.error(`Received strange error: ${t}`)),t.includes("User not authorized")?this.authenticate():t.includes("websocket error")?(console.error(`Socket Error => reload: ${e}`),window.location.reload()):console.error(`Socket Error: ${e}`)})),this._socket.on("connect_error",(e=>console.error(`Connect error: ${e}`))),this._socket.on("permissionError",(e=>this.onError({message:"no permission",operation:e.operation,type:e.type,id:e.id||""}))),this._socket.on("objectChange",((e,t)=>{setTimeout((()=>this.objectChange(e,t)),0)})),this._socket.on("stateChange",((e,t)=>{setTimeout((()=>this.stateChange(e,t)),0)})),this._socket.on("im",((e,t,n)=>{setTimeout((()=>this.instanceMessage(e,t,n)),0)})),this._socket.on("fileChange",((e,t,n)=>{setTimeout((()=>this.fileChange(e,t,n)),0)})),this._socket.on("cmdStdout",((e,t)=>{this.onCmdStdoutHandler?.(e,t)})),this._socket.on("cmdStderr",((e,t)=>{this.onCmdStderrHandler?.(e,t)})),this._socket.on("cmdExit",((e,t)=>{this.onCmdExitHandler?.(e,t)})),Promise.resolve()}onPreConnect(e,t){this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=t,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch((e=>console.error(`Cannot load data: ${e}`))):this.props.onProgress?.(c.READY),this._subscribe(!0),this.onConnectionHandlers.forEach((e=>e(!0)))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return!(!window.location.hostname.includes("amazonaws.com")&&!window.location.hostname.includes("iobroker.in"))||"undefined"!==typeof window.socketUrl&&(window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws"))}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getUserPermissions",((n,r)=>{n?t(n):e(r)}))}})}async loadData(){if(this.loaded)return;for(let e=1;e<=10;e++){if(this.doLoadData().catch((e=>console.error(`Cannot load data: ${e}`))),this.loaded)return;await s(h.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){return void this.onError(`Cannot read user permissions: ${e}`)}try{!this.props.admin5only||h.isWeb()||window.vendorPrefix&&"@@vendorPrefix@@"!==window.vendorPrefix?this._systemConfig=await this.getSystemConfig():this._systemConfig=await this.getCompactSystemConfig()}catch(e){return void this.onError(`Cannot read system config: ${e}`)}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang="en"),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(c.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(c.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(){let e,t,n,r;for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];if(3===i.length?[e,t,n]=i:([e,n]=i,t=!1),r=Array.isArray(e)?e:[e],"function"!==typeof n)throw new Error("The state change handler must be a function!");const c=[];for(let l=0;l<r.length;l++){const t=r[l];this.statesSubscribes[t]?!this.statesSubscribes[t].cbs.includes(n)&&this.statesSubscribes[t].cbs.push(n):(this.statesSubscribes[t]={reg:new RegExp(a(t)),cbs:[n]},e!==this.ignoreState&&c.push(t))}if(this.connected)if(c.length&&this._socket.emit("subscribe",c),t){let e;for(let t=0;t<r.length;t++){try{e=await this.getBinaryState(r[t])}catch(u){console.error(`Cannot getBinaryState "${r[t]}": ${JSON.stringify(u)}`)}void 0!=e&&n(r[t],e)}}else if(r.find((e=>e.includes("*")))){let e;for(let t=0;t<r.length;t++){try{e=await this.getForeignStates(r[t])}catch(u){return void console.error(`Cannot getForeignStates "${r[t]}": ${JSON.stringify(u)}`)}if(e)for(const[t,r]of Object.entries(e)){const e=n(t,r);e instanceof Promise&&e.catch((e=>console.error(`Cannot call state change handler: ${e}`)))}}}else try{const e=await(h.isWeb()?this.getStates(r):this.getForeignStates(r));if(e)for(const[t,r]of Object.entries(e)){const e=n(t,r);e instanceof Promise&&e.catch((e=>console.error(`Cannot call state change handler: ${e}`)))}}catch(u){return void console.error(`Cannot getState "${r.join(", ")}": ${u.message}`)}}async subscribeStateAsync(e,t){return this.subscribeState(e,t)}unsubscribeState(e,t){let n;n=Array.isArray(e)?e:[e];const r=[];for(let o=0;o<n.length;o++){const e=n[o];if(this.statesSubscribes[e]){const n=this.statesSubscribes[e];if(t){const e=n.cbs.indexOf(t);-1!==e&&n.cbs.splice(e,1)}else n.cbs=[];n.cbs?.length||(delete this.statesSubscribes[e],e!==this.ignoreState&&r.push(e))}}this.connected&&r.length&&this._socket.emit("unsubscribe",n)}subscribeObject(e,t){let n;if(n=Array.isArray(e)?e:[e],"function"!==typeof t)throw new Error("The object change handler must be a function!");const r=[];for(let o=0;o<n.length;o++){const e=n[o];this.objectsSubscribes[e]?!this.objectsSubscribes[e].cbs.includes(t)&&this.objectsSubscribes[e].cbs.push(t):(this.objectsSubscribes[e]={reg:new RegExp(a(e)),cbs:[t]},r.push(e))}return this.connected&&r.length&&this._socket.emit("subscribeObjects",r),Promise.resolve()}unsubscribeObject(e,t){let n;n=Array.isArray(e)?e:[e];const r=[];for(let o=0;o<n.length;o++){const e=n[o];if(this.objectsSubscribes[e]){const n=this.objectsSubscribes[e];if(t){const e=n.cbs.indexOf(t);-1!==e&&n.cbs.splice(e,1)}else n.cbs=[];n.cbs?.length||(delete this.objectsSubscribes[e],r.push(e))}}return this.connected&&r.length&&this._socket.emit("unsubscribeObjects",r),Promise.resolve()}objectChange(e,t){let n;this.objects[e]&&(n={_id:e,type:this.objects[e].type});let r=!1;t?(t._rev&&this.objects[e]&&(this.objects[e]._rev=t._rev),this.objects[e]&&JSON.stringify(this.objects[e])===JSON.stringify(t)||(this.objects[e]=t,r=!0)):this.objects[e]&&(delete this.objects[e],r=!0);for(const[o,i]of Object.entries(this.objectsSubscribes))(o===e||i.reg.test(e))&&i.cbs.forEach((r=>{try{const o=r(e,t,n);o instanceof Promise&&o.catch((e=>console.error(`Cannot call object change handler: ${e}`)))}catch(o){console.error(`Error by callback of objectChange: ${o}`)}}));if(r){const n=this.props.onObjectChange?.(e,t);n instanceof Promise&&n.catch((e=>console.error(`Cannot call object change handler: ${e}`)))}}stateChange(e,t){for(const r of Object.values(this.statesSubscribes))if(r.reg.test(e))for(const o of r.cbs)try{const n=o(e,t??null);n instanceof Promise&&n.catch((e=>console.error(`Cannot call state change handler: ${e}`)))}catch(n){console.error(`Error by callback of stateChanged: ${n}`)}}instanceMessage(e,t,n){this._instanceSubscriptions[t]?.forEach((r=>{if(r.messageType===e){const o=r.callback(n,t,e);o instanceof Promise&&o.catch((e=>console.error(`Cannot call instance message handler: ${e}`)))}}))}fileChange(e,t,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(t))for(const i of o.cbs)try{i(e,t,n)}catch(r){console.error(`Error by callback of fileChange: ${r}`)}}async subscribeFiles(e,t,n){if("function"!==typeof n)throw new Error("The state change handler must be a function!");let r;r=Array.isArray(t)?t:[t];const o=[];for(let i=0;i<r.length;i++){const t=r[i],s=`${e}$%$${t}`;this.filesSubscribes[s]?!this.filesSubscribes[s].cbs.includes(n)&&this.filesSubscribes[s].cbs.push(n):(this.filesSubscribes[s]={regId:new RegExp(a(e)),regFilePattern:new RegExp(a(t)),cbs:[n]},o.push(t))}return this.connected&&o.length&&this._socket.emit("subscribeFiles",e,o),Promise.resolve()}unsubscribeFiles(e,t,n){let r;r=Array.isArray(t)?t:[t];const o=[];for(let i=0;i<r.length;i++){const t=r[i],s=`${e}$%$${t}`;if(this.filesSubscribes[s]){const e=this.filesSubscribes[s];if(n){const t=e.cbs.indexOf(n);-1!==t&&e.cbs.splice(t,1)}else e.cbs=[];e.cbs?.length||(delete this.filesSubscribes[s],o.push(t))}}this.connected&&o.length&&this._socket.emit("unsubscribeFiles",e,o)}async request(e){let{cacheKey:t,forceUpdate:n,commandTimeout:r,onTimeout:o,requireAdmin:i,requireFeatures:s,executor:a}=e;if(i&&h.isWeb())return Promise.reject(new Error(u.NOT_ADMIN));if(t&&!n&&t in this._promises)return this._promises[t];if(!this.connected)return Promise.reject(new Error(u.NOT_CONNECTED));if(s?.length)for(const l of s)if(!await this.checkFeatureSupported(l))throw new Error(u.NOT_SUPPORTED);const c=new Promise((async(e,n)=>{const i={elapsed:!1,clearTimeout:()=>{}};let s;!1!==r&&(s=setTimeout((()=>{i.elapsed=!0,o?.(),t&&this._promises[t]instanceof Promise&&delete this._promises[t],n(new Error(u.TIMEOUT))}),r??this.props.cmdTimeout),i.clearTimeout=()=>{clearTimeout(s)});try{await a(e,n,i)}catch(c){t&&this._promises[t]instanceof Promise&&delete this._promises[t],n(new Error(c.toString()))}}));return t&&(this._promises[t]=c),c}resetCache(e,t){t?Object.keys(this._promises).filter((t=>t.startsWith(e))).forEach((e=>{delete this._promises[e]})):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getStates",e,((e,r)=>{this.states=r??{},e?n(e):t(this.states)}))}})}getState(e){return this.request({commandTimeout:!1,executor:(t,n)=>{e&&e===this.ignoreState?t(this.simStates[e]||{val:null,ack:!0}):this._socket.emit("getState",e,((e,r)=>{e?n(e):t(r)}))}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getBinaryState",e,((e,r)=>{e?n(e):t(r)}))}})}setBinaryState(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("setBinaryState",e,t,(e=>{e?r(e):n()}))}})}setState(e,t,n){return"boolean"===typeof n&&(t={val:t,ack:n}),this.request({commandTimeout:!1,executor:(r,o)=>{if(e&&e===this.ignoreState){let o;if(o="boolean"===typeof n||"object"===typeof t&&void 0!==t.val?t:{val:t,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=o,this.statesSubscribes[e])for(const t of this.statesSubscribes[e].cbs)try{const n=t(e,o);n instanceof Promise&&n.catch((e=>console.error(`Cannot call state change handler: ${e}`)))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}r()}else this._socket.emit("setState",e,t,(e=>{e?o(e):r()}))}})}getObjects(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{e||!this.objects?this._socket.emit(h.isWeb()?"getObjects":"getAllObjects",((e,o)=>{t||this.props.onProgress?.(c.OBJECTS_LOADED),e?r(e):(this.objects=o??{},n(this.objects))})):n(this.objects)}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getObjects",e,((e,r)=>{e?n(e):t(r)}))}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const e=Object.keys(this.objectsSubscribes);e.length&&this._socket.emit("subscribeObjects",e),Object.keys(this.objectsSubscribes).forEach((e=>this._socket.emit("subscribeObjects",e))),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach((e=>this._socket.emit("subscribe",e))),Object.keys(this.filesSubscribes).forEach((e=>{const[t,n]=e.split("$%$");this._socket.emit("subscribeFiles",t,n)}))}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const e=Object.keys(this.objectsSubscribes);e.length&&this._socket.emit("unsubscribeObjects",e),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach((e=>this._socket.emit("unsubscribe",e))),Object.keys(this.filesSubscribes).forEach((e=>{const[t,n]=e.split("$%$");this._socket.emit("unsubscribeFiles",t,n)}))}}requireLog(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("requireLog",e,(e=>{e?n(e):t()}))}})}delObject(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("delObject",e,{maintenance:t},(e=>{e?r(e):n()}))}})}delObjects(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("delObjects",e,{maintenance:t},(e=>{e?r(e):n()}))}})}setObject(e,t){return t?(delete(t=JSON.parse(JSON.stringify(t))).from,delete t.user,delete t.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("setObject",e,t,(e=>{e?r(e):n()}))}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(t,n)=>{e&&e===this.ignoreState?t({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}}):this._socket.emit("getObject",e,((e,r)=>{e?n(e):t(r)}))}})}sendTo(e,t,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendTo",e,t,n,(e=>{r(e)}))}})}extendObject(e,t){return t?(delete(t=JSON.parse(JSON.stringify(t))).from,delete t.user,delete t.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("extendObject",e,t,(e=>{e?r(e):n()}))}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const t=this.onLogHandlers.indexOf(e);-1!==t&&this.onLogHandlers.splice(t,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const t=this.onConnectionHandlers.indexOf(e);-1!==t&&this.onConnectionHandlers.splice(t,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,t){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:t,commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.\u9999`:"enum.\u9999"},((r,o)=>{if(r)n(r);else{const n={};if(o)for(let t=0;t<o.rows.length;t++)e&&o.rows[t].id===`enum.${e}`||(n[o.rows[t].id]=o.rows[t].value);t(n)}}))}})}getObjectView(e,t,n){return this.getObjectViewCustom("system",n,e,t)}getObjectViewSystem(e,t,n){return this.getObjectViewCustom("system",e,t,n)}getObjectViewCustom(e,t,n,r){return this.request({commandTimeout:!1,executor:(o,i)=>{n=n||"",r=r||"\u9999",this._socket.emit("getObjectView",e,t,{startkey:n,endkey:r},((e,t)=>{if(e)i(e);else{const e={};if(t&&t.rows)for(let n=0;n<t.rows.length;n++)e[t.rows[n].id]=t.rows[n].value;o(e)}}))}})}readMetaItems(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"\u9999"},((n,r)=>{n?t(n):e(r.rows?.map((e=>e.value)).filter((e=>!!e)))}))}})}readDir(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("readDir",e,t,((e,t)=>{e?r(e):n(t)}))}})}readFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit(n?"readFile64":"readFile",e,t,((e,t,n)=>{e?o(e):r({file:t,mimeType:n})}))}})}writeFile64(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{if("string"===typeof n)this._socket.emit("writeFile",e,t,n,(e=>{e?o(e):r()}));else{const i=btoa(new Uint8Array(n).reduce(((e,t)=>e+String.fromCharCode(t)),""));this._socket.emit("writeFile64",e,t,i,(e=>{e?o(e):r()}))}}})}deleteFile(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFile",e,t,(e=>{e?r(e):n()}))}})}deleteFolder(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFolder",e,t,(e=>{e?r(e):n()}))}})}rename(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("rename",e,t,n,(e=>{e?o(e):r()}))}})}renameFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("renameFile",e,t,n,(e=>{e?o(e):r()}))}})}cmdExec(e,t,n,r){return this.request({commandTimeout:r,executor:(r,i,s)=>{e=o(e),this._socket.emit("cmdExec",e,n,t,(e=>{s.elapsed||(s.clearTimeout(),e?i(e):r())}))}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async e=>{let t=await this.getObject("system.config");t??={},t.common??={},t.native??={},e(t)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(e,t)=>{this._socket.emit("getCompactSystemConfig",((n,r)=>{n?t(n):(r??={},r.common??={},r.native??={},e(r))}))}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("getForeignStates",e||"*",((e,r)=>{e?n(e):t(r??{})}))}})}getForeignObjects(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getForeignObjects",e||"*",t,((e,t)=>{e?r(e):n(t)}))}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getHistory",e,t,((e,t)=>{e?r(e):n(t)}))}})}getHistoryEx(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("getHistory",e,t,((e,t,o,i)=>{e?r(e):n({values:t,sessionId:i,stepIgnore:o})}))}})}getIpAddresses(e,t){return e=o(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{const n=await this.getObject(e);t(n?.common.address??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getVersion",((n,r,o)=>{n&&!r&&"string"===typeof n&&n.match(/\d+\.\d+\.\d+/)?e({version:n,serverName:"socketio"}):n?t(n):e({version:r,serverName:o})}))}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getAdapterName",((n,r)=>{n?t(n):e(r)}))}})}fileExists(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("fileExists",e,t,((e,t)=>{e?r(e):n(!!t)}))}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",((t,n)=>{e(n)}))}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{const t=await this.getObject("system.meta.uuid");e(t?.native?.uuid)}})}checkFeatureSupported(e,t){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:t,commandTimeout:!1,executor:(t,n)=>{this._socket.emit("checkFeatureSupported",e,((e,r)=>{e?n(e):t(r)}))}})}getAdapterInstances(e,t){return"boolean"===typeof e&&(t=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{const n=e?`system.adapter.${e}.`:"system.adapter.",r=`${n}\u9999`,o=await this.getObjectViewSystem("instance",n,r),i=Object.values(o);t(e?i.filter((t=>t.common.name===e)):i)}})}getAdapters(e,t){return"boolean"===typeof e&&(t=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{const n=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"\u9999"}`),r=Object.values(n);t(e?r.filter((t=>t.common.name===e)):r)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.\u9999"},((n,o)=>{n?t(n):e(r(o))}))}})}logout(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit("logout",(n=>{n?t(n):e(null)}))}})}subscribeOnInstance(e,t,n,r){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("clientSubscribe",e,t,n,((n,s)=>{n?i(n):s&&(s.error?i(s.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find((e=>e.messageType===t&&e.callback===r))||this._instanceSubscriptions[e].push({messageType:t,callback:r}),o(s)))}))}})}unsubscribeFromInstance(e,t,n){let r;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);const o=[];do{r=!1;const i=this._instanceSubscriptions[e]?.findIndex((e=>(!t||e.messageType===t)&&(!n||e.callback===n)));if(void 0!==i&&null!==i&&-1!==i){r=!0;const n=this._instanceSubscriptions[e][i].messageType;this._instanceSubscriptions[e].splice(i,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e];this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find((e=>e.messageType===n))||o.push(this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("clientUnsubscribe",e,t,((e,t)=>e?r(e):n(t)))}}))}}while(r&&(!n||!t));return o.length?Promise.all(o).then((e=>!!e.find((e=>e)))):Promise.resolve(!1)}log(e,t){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,t),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}class d extends h{constructor(e){super(e)}request(e){return super.request({requireAdmin:!0,...e})}getCertificates(e){return this.request({cacheKey:"cert",forceUpdate:e,commandTimeout:!1,executor:async e=>{const t=await this.getObject("system.certificates");e(t?.native?.certificates?Object.entries(t.native.certificates).map((e=>{let[t,n]=e;return function(e,t){if(!t)return;let n;if(t.length<700&&(-1!==t.indexOf("/")||-1!==t.indexOf("\\")))if(e.toLowerCase().includes("private"))n="private";else if(t.toLowerCase().includes("private"))n="private";else if(e.toLowerCase().includes("public"))n="public";else if(t.toLowerCase().includes("public"))n="public";else if(e.toLowerCase().includes("chain"))n="chained";else{if(!t.toLowerCase().includes("chain"))return;n="chained"}else n="-----BEGIN RSA PRIVATE KEY"===t.substring(0,26)||"-----BEGIN PRIVATE KEY"===t.substring(0,22)?"private":"public","public"===n&&t.split("-----END CERTIFICATE-----").filter((e=>e.replace(/\r\n|\r|\n/,"").trim())).length>1&&(n="chained");return{name:e,type:n}}(t,n)})).filter((e=>!!e)):[])}})}getLogs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"getLogs",t||200,(e=>{n(e)}))}})}upgradeAdapterWithWebserver(e,t){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit("sendToHost",e,"upgradeAdapterWithWebserver",t,(e=>{n(e)}))}})}upgradeController(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("sendToHost",e,"upgradeController",{version:t,adminInstance:n},(e=>{const t=e;t.error?o(t.error):r(t.result)}))}})}updateLicenses(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("updateLicenses",e,t,((e,t)=>{e?r(e):n(t)}))}})}upgradeOsPackages(e,t,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit("sendToHost",e,"upgradeOsPackages",{packages:t,restart:!!n},(e=>{r(e)}))}})}getLogsFiles(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("readLogs",e,((e,r)=>{e&&n(e),t(r)}))}})}delLogs(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit("sendToHost",e,"delLogs",null,(e=>{e&&n(e),t()}))}})}deleteFile(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFile",e,t,(e=>{e&&r(e),n()}))}})}deleteFolder(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit("deleteFolder",e,t,(e=>{e&&r(e),n()}))}})}rename(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("rename",e,t,n,(e=>{e&&o(e),r()}))}})}renameFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,o)=>{this._socket.emit("renameFile",e,t,n,(e=>{e&&o(e),r()}))}})}getHosts(e){return this.request({cacheKey:"hosts",forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.\u9999"},((n,o)=>{n?t(n):e(r(o))}))}})}getUsers(e){return this.request({cacheKey:"users",forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.\u9999"},((n,o)=>{n?t(n):e(r(o))}))}})}renameGroup(e,t,n){return this.request({commandTimeout:!1,executor:async r=>{const o=await this.getGroups(!0),i=o.filter((t=>t._id.startsWith(`${e}.`)));for(const n of i){const r=n._id,o=t+n._id.substring(e.length);n._id=o,await this.setObject(o,n),await this.delObject(r)}const s=o.find((t=>t._id===e));if(s){const e=s._id;s._id=t,void 0!==n&&(s.common??={},s.common.name=n),await this.setObject(t,s),await this.delObject(e)}r()}})}getHostInfo(e,t,n){return e=o(e),this.request({cacheKey:`hostInfo_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit("sendToHost",e,"getHostInfo",null,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "getHostInfo"'):e?t(e):n('Cannot read "getHostInfo"'))}))}})}getHostInfoShort(e,t,n){return e=o(e),this.request({cacheKey:`hostInfoShort_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit("sendToHost",e,"getHostInfoShort",null,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "getHostInfoShort"'):e?t(e):n('Cannot read "getHostInfoShort"'))}))}})}getRepository(e,t,n,r){return this.request({cacheKey:`repository_${e}`,forceUpdate:n,commandTimeout:r,executor:(n,r,o)=>{this._socket.emit("sendToHost",e,"getRepository",t,(e=>{o.elapsed||(o.clearTimeout(),e===u.PERMISSION_ERROR?r('May not read "getRepository"'):e?n(e):r('Cannot read "getRepository"'))}))}})}getInstalled(e,t,n){return e=o(e),this.request({cacheKey:`installed_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit("sendToHost",e,"getInstalled",null,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "getInstalled"'):e?t(e):n('Cannot read "getInstalled"'))}))}})}cmdExec(e,t,n,r){return this.request({commandTimeout:r,executor:(r,i,s)=>{e=o(e),this._socket.emit("cmdExec",e,n,t,(e=>{s.elapsed||(s.clearTimeout(),e&&i(e),r())}))}})}readBaseSettings(e){return e=i(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(t,n,r)=>{this._socket.emit("sendToHost",e,"readBaseSettings",null,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "BaseSettings"'):e?e.error?n(new Error(e.error)):t(e):n('Cannot read "BaseSettings"'))}))}})}writeBaseSettings(e,t){return e=i(e),this.request({requireFeatures:["CONTROLLER_READWRITE_BASE_SETTINGS"],executor:(n,r,o)=>{this._socket.emit("sendToHost",e,"writeBaseSettings",t,(e=>{o.elapsed||(o.clearTimeout(),e===u.PERMISSION_ERROR?r('May not write "BaseSettings"'):e?n(e):r('Cannot write "BaseSettings"'))}))}})}restartController(e){return e=i(e),this.request({executor:(t,n,r)=>{this._socket.emit("sendToHost",e,"restartController",null,(()=>{r.elapsed||(r.clearTimeout(),t(!0))}))}})}getDiagData(e,t){return e=i(e),this.request({executor:(n,r,o)=>{this._socket.emit("sendToHost",e,"getDiagData",t,(e=>{o.elapsed||(o.clearTimeout(),n(e||null))}))}})}changePassword(e,t){return this.request({executor:(n,r,o)=>{this._socket.emit("changePassword",e,t,(e=>{o.elapsed||(o.clearTimeout(),e&&r(e),n())}))}})}getIpAddresses(e,t){return e=o(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{const n=await this.getObject(e);t(n?.common.address??[])}})}getHostByIp(e,t){return e=i(e),this.request({cacheKey:`rIPs_${e}`,forceUpdate:t,executor:(t,n,r)=>{this._socket.emit("getHostByIp",e,((e,n)=>{if(r.elapsed)return;r.clearTimeout();const{IPs4:o,IPs6:i}=function(e){const t=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],n=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(e.native?.hardware?.networkInterfaces)for(const[r,o]of Object.entries(e.native.hardware.networkInterfaces))if(o)for(const e of o)"IPv6"!==e.family?t.push({name:`[${e.family}] ${e.address} - ${r}`,address:e.address,family:"ipv4"}):n.push({name:`[${e.family}] ${e.address} - ${r}`,address:e.address,family:"ipv6"});return{IPs4:t,IPs6:n}}(n);t([...o,...i])}))}})}encrypt(e){return this.request({executor:(t,n,r)=>{this._socket.emit("encrypt",e,((e,o)=>{r.elapsed||(r.clearTimeout(),e&&n(e),t(o))}))}})}decrypt(e){return this.request({executor:(t,n,r)=>{this._socket.emit("decrypt",e,((e,o)=>{r.elapsed||(r.clearTimeout(),e&&n(e),t(o))}))}})}chmodFile(e,t,n){return this.request({executor:(r,o,i)=>{this._socket.emit("chmodFile",e,t,n,((e,t)=>{i.elapsed||(i.clearTimeout(),e&&o(e),r(t))}))}})}chownFile(e,t,n){return this.request({executor:(r,o,i)=>{this._socket.emit("chownFile",e,t,n,((e,t)=>{i.elapsed||(i.clearTimeout(),e&&o(e),r(t))}))}})}getNotifications(e,t){return this.request({executor:(n,r,o)=>{this._socket.emit("sendToHost",e,"getNotifications",{category:t},(e=>{o.elapsed||(o.clearTimeout(),n(e))}))}})}clearNotifications(e,t){return this.request({executor:(n,r,o)=>{this._socket.emit("sendToHost",e,"clearNotifications",{category:t},(e=>{o.elapsed||(o.clearTimeout(),n(e))}))}})}getIsEasyModeStrict(){return this.request({executor:(e,t,n)=>{this._socket.emit("getIsEasyModeStrict",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(!!o))}))}})}getEasyMode(){return this.request({executor:(e,t,n)=>{this._socket.emit("getEasyMode",((r,o)=>{n.elapsed||(n.clearTimeout(),r?t(new Error(r)):e(o))}))}})}getRatings(e){return this.request({executor:(t,n,r)=>{this._socket.emit("getRatings",!!e,((e,o)=>{r.elapsed||(r.clearTimeout(),e?n(new Error(e)):t(o))}))}})}getCurrentSession(e){const t=new AbortController;return this.request({commandTimeout:e||5e3,onTimeout:()=>{t.abort()},executor:async(e,n,r)=>{try{const n=await fetch("./session",{signal:t.signal});if(r.elapsed)return;r.clearTimeout(),e(n.json())}catch(o){n(`getCurrentSession: ${o}`)}}})}getCurrentInstance(){return this.request({cacheKey:"currentInstance",executor:(e,t,n)=>{this._socket.emit("getCurrentInstance",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(o))}))}})}getAdapterInstances(e,t){let n;return"boolean"===typeof e?(t=e,n=""):n=e||"",this.request({cacheKey:`instances_${n}`,forceUpdate:t,executor:(e,t,r)=>{this._socket.emit("getAdapterInstances",n,((n,o)=>{r.elapsed||(r.clearTimeout(),n&&t(n),e(o))}))}})}getAdapters(e,t){let n;return"boolean"===typeof e?(t=e,n=""):n=e||"",this.request({cacheKey:`adapter_${n}`,forceUpdate:t,executor:(e,t,r)=>{this._socket.emit("getAdapters",n,((n,o)=>{r.elapsed||(r.clearTimeout(),n&&t(n),e(o))}))}})}getCompactAdapters(e){return this.request({cacheKey:"compactAdapters",forceUpdate:e,executor:(e,t,n)=>{this._socket.emit("getCompactAdapters",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(o))}))}})}getAdaptersResetCache(e){e=e??"",this.resetCache(`adapter_${e}`),this.resetCache("compactAdapters")}getCompactInstances(e){return this.request({cacheKey:"compactInstances",forceUpdate:e,executor:(e,t,n)=>{this._socket.emit("getCompactInstances",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(o))}))}})}getAdapterInstancesResetCache(e){e=e??"",this.resetCache(`instances_${e}`),this.resetCache("compactInstances")}getCompactInstalled(e,t,n){return e=o(e),this.request({cacheKey:`installedCompact_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit("getCompactInstalled",e,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "getCompactInstalled"'):e?t(e):n('Cannot read "getCompactInstalled"'))}))}})}getInstalledResetCache(e){e?(this.resetCache(`installedCompact_${e}`),this.resetCache(`installed_${e}`)):(this.resetCache("installedCompact_",!0),this.resetCache("installed_",!0))}getCompactRepository(e,t,n){return e=o(e),this.request({cacheKey:`repositoryCompact_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit("getCompactRepository",e,(e=>{r.elapsed||(r.clearTimeout(),e===u.PERMISSION_ERROR?n('May not read "getCompactRepository"'):e?t(e):n('Cannot read "getCompactRepository"'))}))}})}getRepositoryResetCache(e){e?(this.resetCache(`repositoryCompact_${e}`),this.resetCache(`repository_${e}`)):(this.resetCache("repositoryCompact_",!0),this.resetCache("repository_",!0))}getCompactHosts(e){return this.request({cacheKey:"hostsCompact",forceUpdate:e,executor:(e,t,n)=>{this._socket.emit("getCompactHosts",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(o))}))}})}getCompactSystemRepositories(e){return this.request({cacheKey:"repositoriesCompact",forceUpdate:e,executor:(e,t,n)=>{this._socket.emit("getCompactSystemRepositories",((r,o)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(o))}))}})}}},92027:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("undefined"!==typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}n.d(t,{V:()=>r})},74271:(e,t,n)=>{"use strict";function r(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const s=i[c];if(!a(s))return!1;const u=e[s],l=t[s];if(o=n?n.call(r,u,l,s):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}n.d(t,{b:()=>r})},13391:(e,t,n)=>{"use strict";n.d(t,{U$:()=>c,fB:()=>i,hL:()=>a});var r=n(28437);const o=1;function i(e){return Object.freeze({__version:o,map:e})}const s=(0,r.createContext)(null),a=s.Provider;function c(){const e=(0,r.useContext)(s);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},27686:(e,t,n)=>{"use strict";let r;function o(){return r||(r=new Image,r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}n.d(t,{n:()=>o})},67537:(e,t,n)=>{"use strict";n.d(t,{t2:()=>_});var r={};function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(r),n.d(r,{FILE:()=>a,HTML:()=>l,TEXT:()=>u,URL:()=>c});class i{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",l="__NATIVE_HTML__";function h(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const d={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[l]:{exposeProperties:{html:(e,t)=>h(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>h(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>h(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function f(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(d).filter((e=>{const n=d[e];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const p=o((()=>/firefox/i.test(navigator.userAgent))),g=o((()=>Boolean(window.safari)));class m{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let s=t.length-1;if(e===t[s])return n[s];let a,c=0,u=i.length-1;for(;c<=u;){a=Math.floor(.5*(c+u));const r=t[a];if(r<e)c=a+1;else{if(!(r>e))return n[a];u=a-1}}s=Math.max(0,u);const l=e-t[s],h=l*l;return n[s]+r[s]*l+o[s]*h+i[s]*l*h}constructor(e,t){const{length:n}=e,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[],s=[];let a,c;for(let f=0;f<n-1;f++)a=e[f+1]-e[f],c=t[f+1]-t[f],i.push(a),o.push(c),s.push(c/a);const u=[s[0]];for(let f=0;f<i.length-1;f++){const e=s[f],t=s[f+1];if(e*t<=0)u.push(0);else{a=i[f];const n=i[f+1],r=a+n;u.push(3*r/((r+n)/e+(r+a)/t))}}u.push(s[s.length-1]);const l=[],h=[];let d;for(let f=0;f<u.length-1;f++){d=s[f];const e=u[f],t=1/i[f],n=e+u[f+1]-d-d;l.push((d-e-n)*t),h.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=h}}function y(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function v(e){return{x:e.clientX,y:e.clientY}}function b(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(p()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=y(i?e:t),a={x:n.x-s.x,y:n.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:h}=r,{dragPreviewWidth:d,dragPreviewHeight:f}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return g()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:v,offsetY:b}=o,w=0===b||b;return{x:0===v||v?v:new m([0,.5,1],[a.x,a.x/c*d,a.x+d-c]).interpolate(l),y:w?b:(()=>{let e=new m([0,.5,1],[a.y,a.y/u*f,a.y+f-u]).interpolate(h);return g()&&i&&(e+=(window.devicePixelRatio-1)*f),e})()}}class w{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}class S{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return k({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return k({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(r).some((t=>r[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=d[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new s(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&y(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=v(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=f(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),c=b(t,o,n,{anchorX:e,anchorY:i},{offsetX:s,offsetY:a});r.setDragImage(o,c.x,c.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=f(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:v(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=v(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):f(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:v(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new w(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}}const _=function(e,t,n){return new S(e,t,n)}},28791:(e,t,n)=>{"use strict";n.d(t,{qi:()=>p});var r,o=n(92027);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));class i{get delay(){var e;return null!==(e=this.args.delay)&&void 0!==e?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return null!==(e=this.args.ignoreContextMenu)&&void 0!==e&&e}get enableHoverOutsideTarget(){var e;return null!==(e=this.args.enableHoverOutsideTarget)&&void 0!==e&&e}get enableKeyboardEvents(){var e;return null!==(e=this.args.enableKeyboardEvents)&&void 0!==e&&e}get enableMouseEvents(){var e;return null!==(e=this.args.enableMouseEvents)&&void 0!==e&&e}get enableTouchEvents(){var e;return null===(e=this.args.enableTouchEvents)||void 0===e||e}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayTouchStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get delayMouseStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayMouseStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get window(){return this.context&&this.context.window?this.context.window:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.context)||void 0===e?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.args)||void 0===e?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}}const s=1,a=0;function c(e){return void 0===e.button||e.button===a}function u(e){return!!e.targetTouches}function l(e,t){return u(e)?function(e,t){return 1===e.targetTouches.length?l(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?l(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}const h=(()=>{let e=!1;try{addEventListener("test",(()=>{}),Object.defineProperty({},"passive",{get:()=>(e=!0,!0)}))}catch(t){}return e})(),d={[r.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[r.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[r.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&((0,o.V)(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=h?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const i=d[r][t];i&&e.addEventListener(i,n,o)}))}removeEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=h?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const i=d[r][t];i&&e.removeEventListener(i,n,o)}))}connectDragSource(e,t){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,"start",n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let o;switch(r.type){case d.mouse.move:o={x:r.clientX,y:r.clientY};break;case d.touch.move:var i,s;o={x:(null===(i=r.touches[0])||void 0===i?void 0:i.clientX)||0,y:(null===(s=r.touches[0])||void 0===s?void 0:s.clientY)||0}}const a=null!=o?this.document.elementFromPoint(o.x,o.y):void 0,c=a&&t.contains(a);return a===t||c?this.handleMove(r,e):void 0};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&function(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}(t)},this.handleTopMoveStartCapture=e=>{c(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!c(e))return;const t=l(e);t&&(u(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!c(e))return;const t=e.type===d.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,o=l(e,this.lastTargetTouchFallback);if(!o)return;if(this._isScrolling||!this.monitor.isDragging()&&function(e,t,n,r,o){if(!o)return!1;const i=180*Math.atan2(r-t,n-e)/Math.PI+180;for(let s=0;s<o.length;++s){const e=o[s];if(e&&(null==e.start||i>=e.start)&&(null==e.end||i<=e.end))return!0}return!1}(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,o.x,o.y,this.options.scrollAngleRanges))return void(this._isScrolling=!0);var i,s,a,c;if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&t&&(i=this._mouseClientOffset.x||0,s=this._mouseClientOffset.y||0,a=o.x,c=o.y,Math.sqrt(Math.pow(Math.abs(a-i),2)+Math.pow(Math.abs(c-s),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();const h=(n||[]).map((e=>this.targetNodes.get(e))).filter((e=>!!e)),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(o.x,o.y,h):this.document.elementsFromPoint(o.x,o.y),f=[];for(const l in d){if(!d.hasOwnProperty(l))continue;let e=d[l];for(null!=e&&f.push(e);e;)e=e.parentElement,e&&-1===f.indexOf(e)&&f.push(e)}const p=f.filter((e=>h.indexOf(e)>-1)).map((e=>this._getDropTargetId(e))).filter((e=>!!e)).filter(((e,t,n)=>n.indexOf(e)===t));if(r)for(const l in this.targetNodes){const e=this.targetNodes.get(l);if(u&&e&&e.contains(u)&&-1===p.indexOf(l)){p.unshift(l);break}}p.reverse(),this.actions.hover(p,{clientOffset:o})},this._getDropTargetId=e=>{const t=this.targetNodes.keys();let n=t.next();for(;!1===n.done;){const r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0===(e.buttons&s)}(e)&&(this.monitor.isDragging()&&!this.monitor.didDrop()?(e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()):this.moveStartSourceIds=void 0)},this.handleCancelOnEscape=e=>{"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new i(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}}const p=function(e){return new f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}},45389:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=(0,n(28437).createContext)({dragDropManager:void 0})},30335:(e,t,n)=>{"use strict";n.d(t,{Q:()=>ye});var r=n(70579);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(o(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(o(1));return n(u)(e,t)}if("function"!==typeof e)throw new Error(o(2));var s=e,l=t,h=[],d=h,f=!1;function p(){d===h&&(d=h.slice())}function g(){if(f)throw new Error(o(3));return l}function m(e){if("function"!==typeof e)throw new Error(o(4));if(f)throw new Error(o(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(o(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),h=null}}}function y(e){if(!c(e))throw new Error(o(7));if("undefined"===typeof e.type)throw new Error(o(8));if(f)throw new Error(o(9));try{f=!0,l=s(l,e)}finally{f=!1}for(var t=h=d,n=0;n<t.length;n++){(0,t[n])()}return e}return y({type:a.INIT}),(r={dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if("function"!==typeof e)throw new Error(o(10));s=e,y({type:a.REPLACE})}})[i]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},r}var l=n(92027);function h(e){return"object"===typeof e}const d="dnd-core/INIT_COORDS",f="dnd-core/BEGIN_DRAG",p="dnd-core/PUBLISH_DRAG_SOURCE",g="dnd-core/HOVER",m="dnd-core/DROP",y="dnd-core/END_DRAG";function v(e,t){return{type:d,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const b={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function w(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,s=e.getMonitor(),a=e.getRegistry();e.dispatch(v(o)),function(e,t,n){(0,l.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,l.V)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,a);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null==c)return void e.dispatch(b);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){(0,l.V)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(v(o,u));const d=a.getSource(c).beginDrag(s,c);if(null==d)return;!function(e){(0,l.V)(h(e),"Item must be an object.")}(d),a.pinSource(c);const p=a.getSourceType(c);return{type:f,payload:{itemType:p,item:d,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function S(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.getMonitor(),r=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call drop while not dragging."),(0,l.V)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const s=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){(0,l.V)("undefined"===typeof e||h(e),"Drop result must either be an object or undefined.")})(i),"undefined"===typeof i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),a={type:m,payload:{dropResult:k({},t,s)}};e.dispatch(a)}))}}function _(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:y}}}function T(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){(0,l.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];T(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){(0,l.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,l.V)(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];(0,l.V)(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(t);(0,l.V)(o,"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:g,payload:{targetIds:r,clientOffset:n||null}}}}function E(e){return function(){if(e.getMonitor().isDragging())return{type:p}}}class O{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:w(e),publishDragSource:E(e),hover:C(e),drop:S(e),endDrag:_(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var s;return r[o]=(s=i,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=s.apply(e,r);"undefined"!==typeof i&&t(i)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function I(e,t){return{x:e.x-t.x,y:e.y-t.y}}const D=[],A=[];D.__IS_NONE__=!0,A.__IS_ALL__=!0;class M{subscribeToStateChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=t;(0,l.V)("function"===typeof e,"listener must be a function."),(0,l.V)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){return e!==D&&(e===A||"undefined"===typeof t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){(0,l.V)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,l.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,l.V)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return T(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,l.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const s=i.indexOf(e);return n?s===i.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?I((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?I(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const P="undefined"!==typeof global?global:self,L=P.MutationObserver||P.WebKitMutationObserver;function R(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const N="function"===typeof L?function(e){let t=1;const n=new L(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:R;class j{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const F=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=N(this.flush),this.requestErrorThrow=R((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},H=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new j(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(F.registerPendingError);const $="dnd-core/ADD_SOURCE",B="dnd-core/ADD_TARGET",q="dnd-core/REMOVE_SOURCE",z="dnd-core/REMOVE_TARGET";function U(e,t){t&&Array.isArray(e)?e.forEach((e=>U(e,!1))):(0,l.V)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var W;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));let V=0;function Y(e){const t=(V++).toString();switch(e){case W.SOURCE:return`S${t}`;case W.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function K(e){switch(e[0]){case"S":return W.SOURCE;case"T":return W.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function G(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class X{addSource(e,t){U(e),function(e){(0,l.V)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,l.V)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,l.V)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(W.SOURCE,e,t);return this.store.dispatch(function(e){return{type:$,payload:{sourceId:e}}}(n)),n}addTarget(e,t){U(e,!0),function(e){(0,l.V)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,l.V)("function"===typeof e.hover,"Expected hover to be a function."),(0,l.V)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(W.TARGET,e,t);return this.store.dispatch(function(e){return{type:B,payload:{targetId:e}}}(n)),n}containsHandler(e){return G(this.dragSources,e)||G(this.dropTargets,e)}getSource(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,l.V)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,l.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return K(e)===W.SOURCE}isTargetId(e){return K(e)===W.TARGET}removeSource(e){var t;(0,l.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:q,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},F.enqueueTask(H.create(t))}removeTarget(e){(0,l.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:z,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,l.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,l.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=Y(e);return this.types.set(r,t),e===W.SOURCE?this.dragSources.set(r,n):e===W.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Q=(e,t)=>e===t;function J(){let e=arguments.length>1?arguments[1]:void 0;switch(e.type){case g:break;case $:case B:case z:case q:return D;default:return A}const{targetIds:t=[],prevTargetIds:n=[]}=e.payload,r=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(t,n),o=r.length>0||!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q;if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(t,n);if(!o)return D;const i=n[n.length-1],s=t[t.length-1];return i!==s&&(i&&r.push(i),s&&r.push(s)),r}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case d:case f:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case g:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case y:case m:return ee;default:return e}var r,o}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ne(e,t,n[t])}))}return e}const oe={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case f:return re({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case p:return re({},e,{isSourcePublic:!0});case g:return re({},e,{targetIds:n.targetIds});case z:return-1===e.targetIds.indexOf(n.targetId)?e:re({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case m:return re({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case y:return re({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case $:case B:return e+1;case q:case z:return e-1;default:return e}}function ae(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ce(e,t,n[t])}))}return e}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:J(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:te(e.dragOffset,t),refCount:se(e.refCount,t),dragOperation:ie(e.dragOperation,t),stateId:ae(e.stateId)};var n,r,o}function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new M(r,new X(r)),i=new O(r,o),s=e(i,t,n);return i.receiveBackend(s),i}var de=n(28437),fe=n(45389);function pe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let ge=0;const me=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ye=(0,de.memo)((function(e){var{children:t}=e,n=pe(e,["children"]);const[o,i]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=t;o[me]||(o[me]={dragDropManager:he(e,t,n,r)});return o[me]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,de.useEffect)((()=>{if(i){const e=ve();return++ge,()=>{0===--ge&&(e[me]=null)}}}),[]),(0,r.jsx)(fe.M.Provider,{value:o,children:t})}));function ve(){return"undefined"!==typeof global?global:window}},78902:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(53105),o=n(27918);function i(e,t,n){return function(e,t,n){const[i,s]=(0,r.F)(e,t,n);return(0,o.E)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(s,{handlerIds:[t]})}),[e,s]),i}(t,e||(()=>({})),(()=>n.reconnect()))}},53105:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(122),o=n(28437),i=n(27918);function s(e,t,n){const[s,a]=(0,o.useState)((()=>t(e))),c=(0,o.useCallback)((()=>{const o=t(e);r(s,o)||(a(o),n&&n())}),[s,e,n]);return(0,i.E)(c),[s,c]}},42734:(e,t,n)=>{"use strict";n.d(t,{i:()=>x});var r=n(92027),o=n(78902),i=n(85052),s=n(28437);function a(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=n(74271),l=n(89216),h=n(69840);class d{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,h.i)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,l.i)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,l.i)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var f=n(78292),p=n(27918);let g=!1,m=!1;class y{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,r.V)(!g,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return g=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{g=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.V)(!m,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{m=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var v=n(45020);class b{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==n&&void 0!==n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function w(e,t,n){const o=(0,f.u)(),i=function(e,t,n){const r=(0,s.useMemo)((()=>new b(e,t,n)),[t,n]);return(0,s.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return(0,s.useMemo)((()=>{const t=e.type;return(0,r.V)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,p.E)((function(){if(null!=a){const[e,r]=(0,v.V)(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[o,t,n,i,a])}function x(e,t){const n=(0,i.I)(e,t);(0,r.V)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,f.u)();return(0,s.useMemo)((()=>new y(e)),[e])}(),l=function(e,t){const n=(0,f.u)(),r=(0,s.useMemo)((()=>new d(n.getBackend())),[n]);return(0,p.E)((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),(0,p.E)((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return w(n,u,l),[(0,o.j)(n.collect,u,l),a(l),c(l)]}},78292:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(92027),o=n(28437),i=n(45389);function s(){const{dragDropManager:e}=(0,o.useContext)(i.M);return(0,r.V)(null!=e,"Expected drag drop context"),e}},35661:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(28437),o=n(53105),i=n(78292);function s(e){const t=(0,i.u)().getMonitor(),[n,s]=(0,o.F)(t,e);return(0,r.useEffect)((()=>t.subscribeToOffsetChange(s))),(0,r.useEffect)((()=>t.subscribeToStateChange(s))),n}},35964:(e,t,n)=>{"use strict";n.d(t,{H:()=>b});var r=n(78902),o=n(85052),i=n(28437);function s(e){return(0,i.useMemo)((()=>e.hooks.dropTarget()),[e])}var a=n(74271),c=n(89216),u=n(69840);class l{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.i)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.i)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var h=n(78292),d=n(27918);var f=n(92027);let p=!1;class g{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,f.V)(!p,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return p=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{p=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var m=n(45020);class y{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function v(e,t,n){const r=(0,h.u)(),o=function(e,t){const n=(0,i.useMemo)((()=>new y(e,t)),[t]);return(0,i.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),s=function(e){const{accept:t}=e;return(0,i.useMemo)((()=>((0,f.V)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,d.E)((function(){const[e,i]=(0,m.l)(s,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}),[r,t,o,n,s.map((e=>e.toString())).join("|")])}function b(e,t){const n=(0,o.I)(e,t),a=function(){const e=(0,h.u)();return(0,i.useMemo)((()=>new g(e)),[e])}(),c=function(e){const t=(0,h.u)(),n=(0,i.useMemo)((()=>new l(t.getBackend())),[t]);return(0,d.E)((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return v(n,a,c),[(0,r.j)(n.collect,a,c),s(c)]}},27918:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(28437);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},85052:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(28437);function o(e,t){const n=[...t||[]];return null==t&&"function"!==typeof e&&n.push(e),(0,r.useMemo)((()=>"function"===typeof e?e():e),n)}},89216:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{i:()=>r})},45020:(e,t,n)=>{"use strict";function r(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}function o(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}n.d(t,{V:()=>o,l:()=>r})},69840:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(92027),o=n(28437);function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){const r=t;return e(r,n),r}const i=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(i);return function(e,t){const n=e.ref;return(0,r.V)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,o.cloneElement)(e,{ref:e=>{a(n,e),a(t,e)}}):(0,o.cloneElement)(e,{ref:t})}(i,n?t=>e(t,n):e)}}function s(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=i(r);t[n]=()=>e}})),t}function a(e,t){"function"===typeof e?e(t):e.current=t}},99419:(e,t,n)=>{"use strict";n.d(t,{W:()=>c});var r=n(13391),o=n(89104),i=n(28437);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function a(e,t){let{bounds:n,boundsOptions:a,center:c,children:u,className:l,id:h,placeholder:d,style:f,whenReady:p,zoom:g,...m}=e;const[y]=(0,i.useState)({className:l,id:h,style:f}),[v,b]=(0,i.useState)(null);(0,i.useImperativeHandle)(t,(()=>v?.map??null),[v]);const w=(0,i.useCallback)((e=>{if(null!==e&&null===v){const t=new o.Map(e,m);null!=c&&null!=g?t.setView(c,g):null!=n&&t.fitBounds(n,a),null!=p&&t.whenReady(p),b((0,r.fB)(t))}}),[]);(0,i.useEffect)((()=>()=>{v?.map.remove()}),[v]);const x=v?i.createElement(r.hL,{value:v},u):d??null;return i.createElement("div",s({},y,{ref:w}),x)}const c=(0,i.forwardRef)(a)},23296:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var r=n(28437);n(23479);var o=n(13391);function i(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function s(e){return function(t){const n=(0,o.U$)(),s=e(i(t,n),n);return function(e,t){const n=(0,r.useRef)(t);(0,r.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}(n.map,t.attribution),function(e,t){const n=(0,r.useRef)();(0,r.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}(s.current,t.eventHandlers),function(e,t){(0,r.useEffect)((function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(s.current,n),s}}var a=n(89104);const c=function(e){function t(t,n){const{instance:o}=e(t).current;return(0,r.useImperativeHandle)(n,(()=>o)),null}return(0,r.forwardRef)(t)}(s(function(e,t){return null==t?function(t,n){const o=(0,r.useRef)();return o.current||(o.current=e(t,n)),o}:function(n,o){const i=(0,r.useRef)();i.current||(i.current=e(n,o));const s=(0,r.useRef)(n),{instance:a}=i.current;return(0,r.useEffect)((function(){s.current!==n&&(t(a,n,s.current),s.current=n)}),[a,n,o]),i}}((function(e,t){let{url:n,...r}=e;return function(e,t,n){return Object.freeze({instance:e,context:t,container:n})}(new a.TileLayer(n,i(r,t)),t)}),(function(e,t,n){!function(e,t,n){const{opacity:r,zIndex:o}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=o&&o!==n.zIndex&&e.setZIndex(o)}(e,t,n);const{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)}))))},9896:(e,t,n)=>{"use strict";n.d(t,{ko:()=>o});var r=n(13391);n(28437);function o(){return(0,r.U$)().map}},24369:(e,t,n)=>{"use strict";n.d(t,{o:()=>Or});var r={};n.r(r),n.d(r,{boolean:()=>m,booleanish:()=>y,commaOrSpaceSeparated:()=>k,commaSeparated:()=>x,number:()=>b,overloadedBoolean:()=>v,spaceSeparated:()=>w});var o={};n.r(o),n.d(o,{attentionMarkers:()=>tn,contentInitial:()=>Gt,disable:()=>nn,document:()=>Kt,flow:()=>Qt,flowInitial:()=>Xt,insideSpan:()=>en,string:()=>Jt,text:()=>Zt});const i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function c(e,t){return((t||a).jsx?s:i).test(e)}const u=/[ \t\n\f\r]/g;function l(e){return""===e.replace(u,"")}class h{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function d(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new h(n,r,t)}function f(e){return e.toLowerCase()}h.prototype.property={},h.prototype.normal={},h.prototype.space=null;class p{constructor(e,t){this.property=e,this.attribute=t}}p.prototype.space=null,p.prototype.boolean=!1,p.prototype.booleanish=!1,p.prototype.overloadedBoolean=!1,p.prototype.number=!1,p.prototype.commaSeparated=!1,p.prototype.spaceSeparated=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.mustUseProperty=!1,p.prototype.defined=!1;let g=0;const m=S(),y=S(),v=S(),b=S(),w=S(),x=S(),k=S();function S(){return 2**++g}const _=Object.keys(r);class T extends p{constructor(e,t,n,o){let i=-1;if(super(e,t),C(this,"space",o),"number"===typeof n)for(;++i<_.length;){const e=_[i];C(this,_[i],(n&r[e])===r[e])}}}function C(e,t,n){n&&(e[t]=n)}T.prototype.defined=!0;const E={}.hasOwnProperty;function O(e){const t={},n={};let r;for(r in e.properties)if(E.call(e.properties,r)){const o=e.properties[r],i=new T(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[f(r)]=r,n[f(i.attribute)]=r}return new h(t,n,e.space)}const I=O({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),D=O({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function A(e,t){return t in e?e[t]:t}function M(e,t){return A(e,t.toLowerCase())}const P=O({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:M,properties:{xmlns:null,xmlnsXLink:null}}),L=O({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:w,ariaCurrent:null,ariaDescribedBy:w,ariaDetails:null,ariaDisabled:y,ariaDropEffect:w,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:w,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:w,ariaLevel:b,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:w,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:w,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null}}),R=O({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:M,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:w,accessKey:w,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:w,autoFocus:m,autoPlay:m,blocking:w,capture:null,charSet:null,checked:m,cite:null,className:w,cols:b,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:w,coords:b|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:w,height:b,hidden:m,high:b,href:null,hrefLang:null,htmlFor:w,httpEquiv:w,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:w,itemRef:w,itemScope:m,itemType:w,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m,optimum:b,pattern:null,ping:w,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:w,required:m,reversed:m,rows:b,rowSpan:b,sandbox:w,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:w,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:b,security:null,unselectable:null}}),N=O({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:A,properties:{about:k,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:w,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:w,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),j=d([D,I,P,L,R],"html"),F=d([D,I,P,L,N],"svg"),H=/^data[-\w.:]+$/i,$=/-[a-z]/g,B=/[A-Z]/g;function q(e){return"-"+e.toLowerCase()}function z(e){return e.charAt(1).toUpperCase()}const U={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var W=n(84222);const V=W.default||W,Y=G("end"),K=G("start");function G(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function X(e){return e&&"object"===typeof e?"position"in e||"type"in e?J(e.position):"start"in e||"end"in e?J(e):"line"in e||"column"in e?Q(e):"":""}function Q(e){return Z(e&&e.line)+":"+Z(e&&e.column)}function J(e){return Q(e&&e.start)+"-"+Q(e&&e.end)}function Z(e){return e&&"number"===typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=X(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;const te={}.hasOwnProperty,ne=new Map,re=/[A-Z]/g,oe=/-([a-z])/g,ie=new Set(["table","tbody","thead","tfoot","tr"]),se=new Set(["td","th"]),ae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ce(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const s=Array.isArray(o.children),a=K(n);return t(r,o,i,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const s=Array.isArray(o.children)?n:t;return i?s(r,o,i):s(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:j,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=ue(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function ue(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=F,e.schema=o);e.ancestors.push(t);const i=pe(e,t.tagName,!1),s=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&te.call(t.properties,o)){const i=fe(e,o,t.properties[o]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof s&&se.has(t.tagName)?r=s:n[o]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=de(e,t);ie.has(t.tagName)&&(a=a.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&l(t.value):l(t));var t})));return le(e,s,i,t),he(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ge(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=F,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:pe(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else ge(e,t.position);else{const o=r.name;let i;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else ge(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=de(e,t);return le(e,s,i,t),he(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ge(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return he(r,de(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function le(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function he(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function de(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ne;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;s=e+"-"+t,o.set(e,t+1)}}const a=ue(e,i,s);void 0!==a&&n.push(a)}return n}function fe(e,t,n){const r=function(e,t){const n=f(t);let r=t,o=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&H.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($,z);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$.test(e)){let n=e.replace(B,q);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=T}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{V(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ae+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(oe,ye)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)te.call(e,n)&&(t[me(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}function pe(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=c(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=c(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return te.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ge(e)}function ge(e,t){const n=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ae+"#cannot-handle-mdx-estrees-without-createevaluater",n}function me(e){let t=e.replace(re,ve);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function ye(e,t){return t.toUpperCase()}function ve(e){return"-"+e.toLowerCase()}const be={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var we=n(70579);const xe={};function ke(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Se(e.children,t,n)}return Array.isArray(e)?Se(e,t,n):""}function Se(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=ke(e[o],t,n);return r.join("")}function _e(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function Te(e,t){return e.length>0?(_e(e,e.length,0,t),e):t}class Ce{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;if(n<this.left.length)return this.left.slice(e,n);if(e>this.left.length)return this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse();const r=this.left.slice(e);return r.push(...this.right.slice(this.right.length-n+this.left.length).reverse()),r}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ee(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ee(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ee(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ee(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ee(this.left,t.reverse())}}}function Ee(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Oe(e){const t={};let n,r,o,i,s,a,c,u=-1;const l=new Ce(e);for(;++u<l.length;){for(;u in t;)u=t[u];if(n=l.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===l.get(u-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ie(l,u)),u=t[u],c=!0);else if(n[1]._container){for(o=u,r=void 0;o--&&(i=l.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(l.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end={...l.get(r)[1].start},s=l.slice(r,u),s.unshift(n),l.splice(r,u-r+1,s))}}return _e(e,0,Number.POSITIVE_INFINITY,l.slice(0)),!c}function Ie(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,c=[],u={};let l,h,d=-1,f=n,p=0,g=0;const m=[g];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(l=r.sliceStream(f),f.next||l.push(null),h&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(l),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(g=d+1,m.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),d=m.length;d--;){const t=a.slice(m[d],m[d+1]),n=i.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)u[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return u}const De={}.hasOwnProperty;function Ae(e,t){let n;for(n in t){const r=(De.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){De.call(r,i)||(r[i]=[]);const e=o[i];Me(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Me(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);_e(e,0,0,r)}const Pe=We(/[A-Za-z]/),Le=We(/[\dA-Za-z]/),Re=We(/[#-'*+\--9=?A-Z^-~]/);function Ne(e){return null!==e&&(e<32||127===e)}const je=We(/\d/),Fe=We(/[\dA-Fa-f]/),He=We(/[!-/:-@[-`{-~]/);function $e(e){return null!==e&&e<-2}function Be(e){return null!==e&&(e<0||32===e)}function qe(e){return-2===e||-1===e||32===e}const ze=We(/\p{P}|\p{S}/u),Ue=We(/\s/);function We(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ve(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(qe(r))return e.enter(n),s(r);return t(r)};function s(r){return qe(r)&&i++<o?(e.consume(r),s):(e.exit(n),t(r))}}const Ye={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ve(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):$e(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const Ke={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return a;function a(r){if(s<n.length){const o=n[s];return t.containerState=o[1],e.attempt(o[0].continuation,c,u)(r)}return u(r)}function c(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return _e(t.events,i+1,0,t.events.slice(n)),t.events.length=a,u(e)}return a(e)}function u(o){if(s===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return p(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ge,l,h)(o)}function l(e){return r&&v(),y(s),d(e)}function h(e){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,p(e)}function d(n){return t.containerState={},e.attempt(Ge,f,p)(n)}function f(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function p(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):$e(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),g)}function m(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){a=t.events[c][1].end;break}o=!0}for(y(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;_e(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Ge={tokenize:function(e,t,n){return Ve(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Xe={partial:!0,tokenize:function(e,t,n){return function(t){return qe(t)?Ve(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||$e(e)?t(e):n(e)}}};const Qe={resolve:function(e){return Oe(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):$e(t)?e.check(Je,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Je={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ve(e,o,"linePrefix")};function o(o){if(null===o||$e(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const Ze={tokenize:function(e){const t=this,n=e.attempt(Xe,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Ve(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Qe,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const et={resolveAll:ot()},tt=rt("string"),nt=rt("text");function rt(e){return{resolveAll:ot("text"===e?it:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(e){return c(e)?o(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function c(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ot(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function it(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,a=-1,c=0;for(;s--;){const e=o[s];if("string"===typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)i=!0,c++;else if(-1!==e){s++;break}}if(c){const o={type:n===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const st={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),s(i)):o>=3&&(null===i||$e(i))?(e.exit("thematicBreak"),t(i)):n(i)}function s(t){return t===r?(e.consume(t),o++,s):(e.exit("thematicBreakSequence"),qe(t)?Ve(e,i,"whitespace")(t):i(t))}}};const at={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xe,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ve(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!qe(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ut,t,s)(n))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ve(e,e.attempt(at,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:je(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(st,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return je(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Xe,r.interrupt?n:u,e.attempt(ct,h,l))}function u(e){return r.containerState.initialBlankLine=!0,i++,h(e)}function l(t){return qe(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ct={partial:!0,tokenize:function(e,t,n){const r=this;return Ve(e,(function(e){const o=r.events[r.events.length-1];return!qe(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ut={partial:!0,tokenize:function(e,t,n){const r=this;return Ve(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const lt={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(qe(t))return Ve(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(lt,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return qe(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function ht(e,t,n,r,o,i,s,a,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),h;if(null===t||32===t||41===t||Ne(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t)};function h(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||$e(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(o){return l||null!==o&&41!==o&&!Be(o)?l<u&&40===o?(e.consume(o),l++,p):41===o?(e.consume(o),l--,p):null===o||32===o||40===o||Ne(o)?n(o):(e.consume(o),92===o?g:p):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function dt(e,t,n,r,o,i){const s=this;let a,c=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(h){return c>999||null===h||91===h||93===h&&!a||94===h&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):$e(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(h))}function l(t){return null===t||91===t||93===t||$e(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!qe(t)),92===t?h:l)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}function ft(e,t,n,r,o,i){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),c(n))}function c(t){return t===s?(e.exit(i),a(s)):null===t?n(t):$e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ve(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||$e(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===s||92===t?(e.consume(t),u):u(t)}}function pt(e,t){let n;return function r(o){if($e(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(qe(o))return Ve(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mt={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return dt.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Be(t)?pt(e,a)(t):a(t)}function a(t){return ht(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(yt,u,u)(t)}function u(t){return qe(t)?Ve(e,l,"whitespace")(t):l(t)}function l(i){return null===i||$e(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},yt={partial:!0,tokenize:function(e,t,n){return function(t){return Be(t)?pt(e,r)(t):n(t)};function r(t){return ft(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return qe(t)?Ve(e,i,"whitespace")(t):i(t)}function i(e){return null===e||$e(e)?t(e):n(e)}}};const vt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ve(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):$e(t)?e.attempt(bt,i,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||$e(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},bt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):$e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ve(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):$e(e)?o(e):n(e)}}};const wt={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},_e(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Be(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||$e(n)?(e.exit("atxHeading"),t(n)):qe(n)?Ve(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||Be(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}};const xt={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),qe(t)?Ve(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||$e(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const kt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],St=["pre","script","style","textarea"],_t={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,s,a,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),l):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),o=3,r.interrupt?t:L):Pe(a)?(e.consume(a),s=String.fromCharCode(a),p):n(a)}function l(i){return 45===i?(e.consume(i),o=2,h):91===i?(e.consume(i),o=5,a=0,d):Pe(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function h(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:C:d):n(o)}function f(t){return Pe(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||Be(a)){const c=47===a,u=s.toLowerCase();return c||i||!St.includes(u)?kt.includes(s.toLowerCase())?(o=6,c?(e.consume(a),g):r.interrupt?t(a):C(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?m(a):y(a)):(o=1,r.interrupt?t(a):C(a))}return 45===a||Le(a)?(e.consume(a),s+=String.fromCharCode(a),p):n(a)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function m(t){return qe(t)?(e.consume(t),m):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||Pe(t)?(e.consume(t),v):qe(t)?(e.consume(t),y):_(t)}function v(t){return 45===t||46===t||58===t||95===t||Le(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),w):qe(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,x):qe(t)?(e.consume(t),w):k(t)}function x(t){return t===c?(e.consume(t),c=null,S):null===t||$e(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Be(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||qe(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||$e(t)?C(t):qe(t)?(e.consume(t),T):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),D):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),P):!$e(t)||6!==o&&7!==o?null===t||$e(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Tt,N,E)(t))}function E(t){return e.check(Ct,O,N)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||$e(t)?E(t):(e.enter("htmlFlowData"),C(t))}function D(t){return 45===t?(e.consume(t),L):C(t)}function A(t){return 47===t?(e.consume(t),s="",M):C(t)}function M(t){if(62===t){const n=s.toLowerCase();return St.includes(n)?(e.consume(t),R):C(t)}return Pe(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),M):C(t)}function P(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),L):C(t)}function R(t){return null===t||$e(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),R)}function N(n){return e.exit("htmlFlow"),t(n)}}},Tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Xe,t,n)}}},Ct={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if($e(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Et={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Ot={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),qe(t)?Ve(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),l(t)):n(t)}function l(t){return t===i?(o++,e.consume(t),l):o>=a?(e.exit("codeFencedFenceSequence"),qe(t)?Ve(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||$e(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===i?(a++,e.consume(t),c):a<3?n(t):(e.exit("codeFencedFenceSequence"),qe(t)?Ve(e,u,"whitespace")(t):u(t))}function u(n){return null===n||$e(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Et,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(n))}function l(t){return null===t||$e(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):qe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ve(e,h,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),l)}function h(t){return null===t||$e(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||$e(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),d)}function f(t){return e.attempt(o,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return s>0&&qe(t)?Ve(e,m,"linePrefix",s+1)(t):m(t)}function m(t){return null===t||$e(t)?e.check(Et,f,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||$e(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const It=document.createElement("i");function Dt(e){const t="&"+e+";";It.innerHTML=t;const n=It.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const At={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,i=Le,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Fe,u):(e.enter("characterReferenceValue"),o=7,i=je,u(t))}function u(a){if(59===a&&s){const o=e.exit("characterReferenceValue");return i!==Le||Dt(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&s++<o?(e.consume(a),u):n(a)}}};const Mt={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return He(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Pt={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ve(e,t,"linePrefix")}}};function Lt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Rt={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&_e(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=s);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},l={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",c,t],["enter",u,t]],i=Te(i,e.slice(r+1,r+a+3)),i=Te(i,[["enter",l,t]]),i=Te(i,Lt(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Te(i,[["exit",l,t],e[o-2],e[o-1],["exit",u,t]]),i=Te(i,e.slice(o+1)),i=Te(i,[["exit",c,t]]),_e(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(t){if(!o)return n(t);if(o._inactive)return l(t);return i=r.parser.defined.includes(gt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(Nt,u,i?u:l)(t):91===t?e.attempt(jt,u,i?c:l)(t):i?u(t):l(t)}function c(t){return e.attempt(Ft,u,l)(t)}function u(e){return t(e)}function l(e){return o._balanced=!0,n(e)}}},Nt={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Be(t)?pt(e,o)(t):o(t)}function o(t){return 41===t?u(t):ht(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Be(t)?pt(e,a)(t):u(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?ft(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function c(t){return Be(t)?pt(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},jt={tokenize:function(e,t,n){const r=this;return function(t){return dt.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Ft={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Ht={name:"labelStartImage",resolveAll:Rt.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function $t(e){return null===e||Be(e)||Ue(e)?1:ze(e)?2:void 0}const Bt={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,a,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(n=l;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[n][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const h={...e[n][1].end},d={...e[l][1].start};qt(h,-a),qt(d,a),i={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:d},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[l][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[l][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Te(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Te(c,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),c=Te(c,Lt(t.parser.constructs.insideSpan.null,e.slice(n+1,l),t)),c=Te(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Te(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,_e(e,n-1,l-n+3,c),l=n+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=$t(r);let i;return function(t){return i=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===i)return e.consume(a),s;const c=e.exit("attentionSequence"),u=$t(a),l=!u||2===u&&o||n.includes(a),h=!o||2===o&&u||n.includes(r);return c._open=Boolean(42===i?l:l&&(o||!h)),c._close=Boolean(42===i?h:h&&(u||!l)),t(a)}}};function qt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const zt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Pe(t)?(e.consume(t),i):64===t?n(t):c(t)}function i(e){return 43===e||45===e||46===e||Le(e)?(r=1,s(e)):c(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||Le(t))&&r++<32?(e.consume(t),s):(r=0,c(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ne(r)?n(r):(e.consume(r),a)}function c(t){return 64===t?(e.consume(t),u):Re(t)?(e.consume(t),c):n(t)}function u(e){return Le(e)?l(e):n(e)}function l(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||Le(t))&&r++<63){const n=45===t?h:l;return e.consume(t),n}return n(t)}}};const Ut={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),w):63===t?(e.consume(t),v):Pe(t)?(e.consume(t),S):n(t)}function c(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):Pe(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function l(t){return null===t?n(t):45===t?(e.consume(t),h):$e(t)?(s=l,M(t)):(e.consume(t),l)}function h(t){return 45===t?(e.consume(t),d):l(t)}function d(e){return 62===e?A(e):45===e?h(e):l(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):$e(t)?(s=p,M(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?A(t):93===t?(e.consume(t),m):p(t)}function y(t){return null===t||62===t?A(t):$e(t)?(s=y,M(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):$e(t)?(s=v,M(t)):(e.consume(t),v)}function b(e){return 62===e?A(e):v(e)}function w(t){return Pe(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Le(t)?(e.consume(t),x):k(t)}function k(t){return $e(t)?(s=k,M(t)):qe(t)?(e.consume(t),k):A(t)}function S(t){return 45===t||Le(t)?(e.consume(t),S):47===t||62===t||Be(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),A):58===t||95===t||Pe(t)?(e.consume(t),T):$e(t)?(s=_,M(t)):qe(t)?(e.consume(t),_):A(t)}function T(t){return 45===t||46===t||58===t||95===t||Le(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),E):$e(t)?(s=C,M(t)):qe(t)?(e.consume(t),C):_(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):$e(t)?(s=E,M(t)):qe(t)?(e.consume(t),E):(e.consume(t),I)}function O(t){return t===o?(e.consume(t),o=void 0,D):null===t?n(t):$e(t)?(s=O,M(t)):(e.consume(t),O)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Be(t)?_(t):(e.consume(t),I)}function D(e){return 47===e||62===e||Be(e)?_(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return qe(t)?Ve(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),s(t)}}};const Wt={name:"labelStartLink",resolveAll:Rt.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Vt={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return $e(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Yt={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),i++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):$e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||$e(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}}};const Kt={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:lt},Gt={91:mt},Xt={[-2]:vt,[-1]:vt,32:vt},Qt={35:wt,42:st,45:[xt,st],60:_t,61:xt,95:st,96:Ot,126:Ot},Jt={38:At,92:Mt},Zt={[-5]:Pt,[-4]:Pt,[-3]:Pt,33:Ht,38:At,42:Bt,60:[zt,Ut],91:Wt,92:[Vt,Mt],93:Rt,95:Bt,96:Yt},en={null:[Bt,et]},tn={null:[42,95]},nn={null:[]};function rn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[],c=!0;const u={attempt:v((function(e,t){b(e,t.from)})),check:v(y),consume:function(e){$e(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));l.previous=e,c=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),l.events.push(["enter",n,l]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=p(),l.events.push(["exit",t,l]),t},interrupt:v(y,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,w()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if("string"===typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&o)continue;s=" ";break;default:s=String.fromCharCode(i)}o=-2===i,r.push(s)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){if(s=Te(s,e),g(),null!==s[s.length-1])return[];return b(t,0),l.events=Lt(i,l.events,l),l.events}};let h,d=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}(s,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function g(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){c=void 0,h=e,d=d(e)}function y(e,t){t.restore()}function v(e,t){return function(n,o,i){let s,h,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return s=e,h=0,0===e.length?i:m(e[h])}function m(e){return function(n){f=function(){const e=p(),t=l.previous,n=l.currentConstruct,o=l.events.length,i=Array.from(a);return{from:o,restore:s};function s(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=o,a=i,w()}}(),d=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(l),t):l,u,y,v)(n)}}function y(t){return c=!0,e(d,f),o}function v(e){return c=!0,f.restore(),++h<s.length?m(s[h]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&_e(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function on(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)Ae(t,e[n]);return t}([o,...(e||{}).extensions||[]]),n={constructs:t,content:r(Ye),defined:[],document:r(Ke),flow:r(Ze),lazy:{},string:r(tt),text:r(nt)};return n;function r(e){return function(t){return rn(n,e,t)}}}const sn=/[\0\t\n\r]/g;function an(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const cn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function un(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return an(n.slice(t?2:1),t?16:10)}return Dt(n)||e}const ln={}.hasOwnProperty;function hn(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ne),autolinkProtocol:T,autolinkEmail:T,atxHeading:i(J),blockQuote:i(V),characterEscape:T,characterReference:T,codeFenced:i(Y),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Y,s),codeText:i(K,s),codeTextData:T,data:T,codeFlowValue:T,definition:i(G),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Q),hardBreakEscape:i(Z),hardBreakTrailing:i(Z),htmlFlow:i(ee,s),htmlFlowData:T,htmlText:i(ee,s),htmlTextData:T,image:i(te),label:s,link:i(ne),listItem:i(oe),listItemValue:d,listOrdered:i(re,h),listUnordered:i(re),paragraph:i(ie),reference:H,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(J),strong:i(se),thematicBreak:i(ce)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:W,autolinkProtocol:U,blockQuote:c(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:q,characterReference:z,codeFenced:c(m),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:c(y),codeText:c(A),codeTextData:C,data:C,definition:c(),definitionDestinationString:w,definitionLabelString:v,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(I),htmlFlowData:C,htmlText:c(D),htmlTextData:C,image:c(P),label:R,labelText:L,lineEnding:E,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:$,resourceDestinationString:N,resourceTitleString:j,resource:F,setextHeading:c(_),setextHeadingLineSequence:S,setextHeadingText:k,strong:c(),thematicBreak:c()}};fn(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:l,data:n},c=[];let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])c.push(h);else{h=o(e,c.pop(),h)}for(h=-1;++h<e.length;){const n=t[e[h][0]];ln.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},i),e[h][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||gn).call(i,void 0,e[0])}for(r.position={start:dn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:dn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function o(e,t,n){let r,o,i,s,a=t-1,c=-1,u=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||c||i||(i=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(o=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,s=!0}}}return e[t][1]._spread=u,n}function i(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:dn(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||gn).call(this,e,r[0])}n.position.end=dn(e.end)}function l(){return function(e,t){const n=t||xe;return ke(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=gt(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:dn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=dn(e.end)}function E(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=dn(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),C.call(this,e))}function O(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(cn,un)}(t),n.identifier=gt(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function N(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function $(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=gt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=an(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Dt(t)}this.stack[this.stack.length-1].value+=r}function z(e){this.stack.pop().position.end=dn(e.end)}function U(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function G(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Oe(e););return e}(on(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,s){const a=[];let c,u,l,h,d;for(o=n+("string"===typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),l=0,n="",r&&(65279===o.charCodeAt(0)&&l++,r=void 0);l<o.length;){if(sn.lastIndex=l,c=sn.exec(o),h=c&&void 0!==c.index?c.index:o.length,d=o.charCodeAt(h),!c){n=o.slice(l);break}if(10===d&&l===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),l<h&&(a.push(o.slice(l,h)),t+=h-l),d){case 0:a.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),a.push(-2);t++<u;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}l=h+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function dn(e){return{line:e.line,column:e.column,offset:e.offset}}function fn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fn(e,r):pn(e,r)}}function pn(e,t){let n;for(n in t)if(ln.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function gn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is still open")}function mn(e){const t=this;t.parser=function(n){return hn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const yn="object"===typeof self?self:globalThis,vn=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,s]=t[o];switch(i){case 0:case-1:return n(s,o);case 1:{const e=n([],o);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),o);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new yn[e](t),o)}case 8:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o)}return n(new yn[i](s),o)};return r})(new Map,e)(0),bn="",{toString:wn}={},{keys:xn}=Object,kn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=wn.call(e).slice(8,-1);switch(n){case"Array":return[1,bn];case"Object":return[2,bn];case"Date":return[3,bn];case"RegExp":return[4,bn];case"Map":return[5,bn];case"Set":return[6,bn]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Sn=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},_n=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[s,a]=kn(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([s,t],r)}case 1:{if(a)return o([a,[...r]],r);const e=[],t=o([s,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],c=o([s,n],r);for(const t of xn(r))!e&&Sn(kn(r[t]))||n.push([i(t),i(r[t])]);return c}case 3:return o([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([s,{source:e,flags:t}],r)}case 5:{const t=[],n=o([s,t],r);for(const[o,s]of r)(e||!Sn(kn(o))&&!Sn(kn(s)))&&t.push([i(o),i(s)]);return n}case 6:{const t=[],n=o([s,t],r);for(const o of r)!e&&Sn(kn(o))||t.push(i(o));return n}}const{message:c}=r;return o([s,{name:a,message:c}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Tn="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?vn(_n(e,t)):structuredClone(e):(e,t)=>vn(_n(e,t));function Cn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(37===i&&Le(e.charCodeAt(n+1))&&Le(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(s=String.fromCharCode(i,t),o=1):s="\ufffd"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function En(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function On(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const In=function(e){if(null===e||void 0===e)return An;if("function"===typeof e)return Dn(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=In(e[n]);return Dn(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return Dn(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"===typeof e)return function(e){return Dn(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Dn(e){return function(t,n,r){return Boolean(Mn(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function An(){return!0}function Mn(e){return null!==e&&"object"===typeof e&&"type"in e}const Pn=[],Ln=!0,Rn=!1,Nn="skip";function jn(e,t,n,r){let o;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):o=t;const i=In(o),s=r?-1:1;!function e(o,a,c){const u=o&&"object"===typeof o?o:{};if("string"===typeof u.type){const e="string"===typeof u.tagName?u.tagName:"string"===typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,h,d=Pn;if((!t||i(o,a,c[c.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Ln,e];return null===e||void 0===e?Pn:[e]}(n(o,c)),d[0]===Rn))return d;if("children"in o&&o.children){const t=o;if(t.children&&d[0]!==Nn)for(l=(r?t.children.length:-1)+s,h=c.concat(t);l>-1&&l<t.children.length;){const n=t.children[l];if(u=e(n,l,h)(),u[0]===Rn)return u;l="number"===typeof u[1]?u[1]:l+s}}return d}}(e,void 0,[])()}function Fn(e,t,n,r){let o,i,s;"function"===typeof t&&"function"!==typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),jn(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)}),o)}function Hn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&"text"===s.type?s.value+=r:o.push({type:"text",value:r}),o}function $n(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Bn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(qn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(qn(t.slice(o),o>0,!1)),i.join("")}function qn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const zn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Cn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hn(e,t);const o={src:Cn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Cn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hn(e,t);const o={href:Cn(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Cn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=$n(n[r])}return t}(n):$n(t),i={},s=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?s.push(e):s.push(...e.children)}const c=r[r.length-1];c&&(o||"element"!==c.type||"p"!==c.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=K(t.children[1]),s=Y(t.children[t.children.length-1]);i&&s&&(r.position={start:i,end:s}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,s=i?i.length:t.children.length;let a=-1;const c=[];for(;++a<s;){const n=t.children[a],r={},s=i?i[a]:void 0;s&&(r.align=s);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),c.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Bn(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Un,yaml:Un,definition:Un,footnoteDefinition:Un};function Un(){}const Wn={}.hasOwnProperty,Vn={};function Yn(e,t){e.position&&(t.position=function(e){const t=K(e),n=Y(e);if(t&&n)return{start:t,end:n}}(e))}function Kn(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Tn(o)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Gn(e,t){const n=t.data||{},r=!("value"in t)||Wn.call(n,"hProperties")||Wn.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Xn(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Qn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Jn(e,t){const n=function(e,t){const n=t||Vn,r=new Map,o=new Map,i=new Map,s={...zn,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Qn(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Qn(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Kn,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(Wn.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Tn(n);return r.children=a.all(e),r}return Tn(e)}return(a.options.unknownHandler||Gn)(a,e,t)},options:n,patch:Yn,wrap:Xn};return Fn(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||En,r=e.options.footnoteBackLabel||On,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[c]);if(!o)continue;const i=e.all(o),s=String(o.identifier).toUpperCase(),u=Cn(s.toLowerCase());let l=0;const h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++l<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"===typeof n?n:n(c,l);"string"===typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(c,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...h)}else i.push(...h);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Tn(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Zn(e,t){return e&&"run"in e?async function(n,r){const o=Jn(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Jn(n,{file:r,...e||t})}}function er(e){if(e)throw e}var tr=n(43240);function nr(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rr(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(r){const s=e[++o];let a=-1;if(r)i(r);else{for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];for(;++a<n.length;)null!==u[a]&&void 0!==u[a]||(u[a]=n[a]);n=u,s?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];const c=e.length>o.length;let u;c&&o.push(i);try{u=e.apply(this,o)}catch(r){if(c&&n)throw r;return i(r)}c||(u&&u.then&&"function"===typeof u.then?u.then(s,i):u instanceof Error?i(u):s(u))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t(e,...o)}}function s(e){i(null,e)}}(s,t)(...u):i(null,...u)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const or={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');ir(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=s));r===o?o=s:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(ir(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){ir(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===s||1===s&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)ir(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){ir(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,a=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(s===c-1||1===a);else if(s!==c-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=c,a=0;continue}}else if(o.length>0){o="",i=0,s=c,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,c):o=e.slice(s+1,c),i=c-s-1;s=c,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function ir(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sr={cwd:function(){return"/"}};function ar(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function cr(e){if("string"===typeof e)e=new URL(e);else if(!ar(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const ur=["history","path","basename","stem","extname","dirname"];class lr{constructor(e){let t;t=e?ar(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":sr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ur.length;){const e=ur[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ur.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?or.basename(this.path):void 0}set basename(e){dr(e,"basename"),hr(e,"basename"),this.path=or.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?or.dirname(this.path):void 0}set dirname(e){fr(this.basename,"dirname"),this.path=or.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?or.extname(this.path):void 0}set extname(e){if(hr(e,"extname"),fr(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=or.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ar(e)&&(e=cr(e)),dr(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?or.basename(this.path,this.extname):void 0}set stem(e){dr(e,"stem"),hr(e,"stem"),this.path=or.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ee(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function hr(e,t){if(e&&e.includes(or.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+or.sep+"`")}function dr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const pr=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},gr={}.hasOwnProperty;class mr extends pr{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rr()}copy(){const e=new mr;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(tr(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(wr("data",this.frozen),this.namespace[e]=t,this):gr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(wr("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Sr(e),n=this.parser||this.Parser;return vr("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),vr("process",this.parser||this.Parser),br("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Sr(e),s=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,(function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);!function(e){return"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),vr("processSync",this.parser||this.Parser),br("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,er(e),t=r})),kr("processSync","process",n),t}run(e,t,n){xr(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=Sr(t);r.run(e,s,(function(t,r,s){const a=r||e;t?i(t):o?o(a):n(void 0,a,s)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){er(e),n=t,r=!0})),kr("runSync","run",r),n}stringify(e,t){this.freeze();const n=Sr(t),r=this.compiler||this.Compiler;return br("stringify",r),xr(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(wr("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];u(e,o)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?c(e):a(e)}return this;function s(e){if("function"===typeof e)u(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;u(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(e.plugins),e.settings&&(n.settings=tr(!0,n.settings,e.settings))}function c(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function u(e,n){let r=-1,o=-1;for(;++r<t.length;)if(t[r][0]===e){o=r;break}if(-1===o)t.push([e,...n]);else if(n.length>0){let[r,...i]=n;const s=t[o][1];nr(s)&&nr(r)&&(r=tr(!0,s,r)),t[o]=[e,r,...i]}}}}const yr=(new mr).freeze();function vr(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function br(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function wr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xr(e){if(!nr(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function kr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Sr(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new lr(e)}const _r=[],Tr={allowDangerousHtml:!0},Cr=/^(https?|ircs?|mailto|xmpp)$/i,Er=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Or(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,s=e.disallowedElements,a=e.rehypePlugins||_r,c=e.remarkPlugins||_r,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tr}:Tr,l=e.skipHtml,h=e.unwrapDisallowed,d=e.urlTransform||Ir,f=yr().use(mn).use(c).use(Zn,u).use(a),p=new lr;"string"===typeof r&&(p.value=r);for(const y of Er)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const g=f.parse(p);let m=f.runSync(g,p);return o&&(m={type:"element",tagName:"div",properties:{className:o},children:"root"===m.type?m.children:[m]}),Fn(m,(function(e,r,o){if("raw"===e.type&&o&&"number"===typeof r)return l?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in be)if(Object.hasOwn(be,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=be[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!s&&s.includes(e.tagName);if(!i&&n&&"number"===typeof r&&(i=!n(e,r,o)),i&&o&&"number"===typeof r)return h&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),ce(m,{Fragment:we.Fragment,components:i,ignoreInvalidStyle:!0,jsx:we.jsx,jsxs:we.jsxs,passKeys:!0,passNode:!0})}function Ir(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Cr.test(e.slice(0,t))?e:""}}}]);
3
- //# sourceMappingURL=3868.dd7a3468.chunk.js.map