Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_sppagebuilder/assets/editor/dist/js/vendors.min.js
Назад
/*! For license information please see vendors.min.js.LICENSE.txt */ (self.webpackChunkreact_typescript_webpack_backend_editor=self.webpackChunkreact_typescript_webpack_backend_editor||[]).push([[216],{6214:(e,t,n)=>{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e){return e<=1?"".concat(100*Number(e),"%"):e}function a(e){return 1===e.length?"0"+e:String(e)}function l(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=0,l=(i+o)/2;if(i===o)a=0,s=0;else{var u=i-o;switch(a=l>.5?u/(2-i-o):u/(i+o),i){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4}s/=6}return{h:s,s:a,l}}function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=i,l=i-o,u=0===i?0:l/i;if(i===o)s=0;else{switch(i){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4}s/=6}return{h:s,s:u,v:a}}function f(e,t,n,r){var i=[a(Math.round(e).toString(16)),a(Math.round(t).toString(16)),a(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(e){return d(e)/255}function d(e){return parseInt(e,16)}n.d(t,{C:()=>w});var p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var m="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),g="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),v="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),y={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function b(e){return Boolean(y.CSS_UNIT.exec(String(e)))}var w=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var a=function(e){var t,n,i,a={r:0,g:0,b:0},l=1,c=null,f=null,m=null,g=!1,v=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(p[e])e=p[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=y.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=y.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=y.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=y.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=y.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=y.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=y.hex8.exec(e))?{r:d(n[1]),g:d(n[2]),b:d(n[3]),a:h(n[4]),format:t?"name":"hex8"}:(n=y.hex6.exec(e))?{r:d(n[1]),g:d(n[2]),b:d(n[3]),format:t?"name":"hex"}:(n=y.hex4.exec(e))?{r:d(n[1]+n[1]),g:d(n[2]+n[2]),b:d(n[3]+n[3]),a:h(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=y.hex3.exec(e))&&{r:d(n[1]+n[1]),g:d(n[2]+n[2]),b:d(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=e.r,n=e.g,i=e.b,a={r:255*r(t,255),g:255*r(n,255),b:255*r(i,255)},g=!0,v="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(c=s(e.s),f=s(e.v),a=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var i=Math.floor(e),o=e-i,s=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),u=i%6;return{r:255*[n,a,s,s,l,n][u],g:255*[l,n,n,a,s,s][u],b:255*[s,s,l,n,n,a][u]}}(e.h,c,f),g=!0,v="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(c=s(e.s),m=s(e.l),a=function(e,t,n){var i,o,s;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)o=n,s=n,i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=u(l,a,e+1/3),o=u(l,a,e),s=u(l,a,e-1/3)}return{r:255*i,g:255*o,b:255*s}}(e.h,c,m),g=!0,v="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=o(l),{ok:g,format:e.format||v,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:l}}(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=o(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=c(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=c(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=l(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=l(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),f(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,i){var o,s=[a(Math.round(e).toString(16)),a(Math.round(t).toString(16)),a(Math.round(n).toString(16)),a((o=r,Math.round(255*parseFloat(o)).toString(16)))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+f(this.r,this.g,this.b,!1),t=0,n=Object.entries(p);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=i(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=i(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=i(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=i(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:i,v:o})),o=(o+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,s=1;s<t;s++)i.push(new e({h:(r+s*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},9752:(e,t,n)=>{"use strict";n.d(t,{LB:()=>Ge,y9:()=>pt,g4:()=>oe,Lg:()=>ce,uN:()=>ke,MA:()=>ye,we:()=>me,pE:()=>E,ey:()=>A,Ai:()=>ct,VK:()=>F,_8:()=>O,hI:()=>z,j2:()=>P,Xo:()=>R,Cj:()=>et,IJ:()=>f,O1:()=>Ze,Zj:()=>rt,VT:()=>v,Dy:()=>y});var r=n(7294),i=n(3935),o=n(4285);const s={display:"none"};function a(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:s},n)}const l={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return r.createElement("div",{id:t,style:l,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const c=(0,r.createContext)(null);function f(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}const h={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function p(e){let{announcements:t=d,container:n,hiddenTextDescribedById:s,screenReaderInstructions:l=h}=e;const{announce:c,announcement:p}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),m=(0,o.Ld)("DndLiveRegion"),[g,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{v(!0)}),[]),f((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;c(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&c(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;c(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;c(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;c(t.onDragCancel({active:n,over:r}))}})),[c,t])),!g)return null;const y=r.createElement(r.Fragment,null,r.createElement(a,{id:s,value:l.draggable}),r.createElement(u,{id:m,announcement:p}));return n?(0,i.createPortal)(y,n):y}var m;function g(){}function v(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(m||(m={}));const b=Object.freeze({x:0,y:0});function w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function x(e,t){const n=(0,o.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function S(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function O(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function _(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const E=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(_(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(S)},A=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=C(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=C(r),s=i.reduce(((e,t,r)=>e+w(n[r],t)),0),a=Number((s/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:a}})}}return o.sort(S)};function M(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=s*a;return Number((i/(n+r-i)).toFixed(4))}return 0}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=M(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(k)};function T(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const P=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const e of t){const{id:t}=e,o=n.get(t);if(o&&T(r,o)){const n=C(o).reduce(((e,t)=>e+w(r,t)),0),s=Number((n/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:s}})}}return i.sort(S)};function D(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function j(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const N=j(1);function I(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const L={ignoreTransform:!1};function F(e,t){void 0===t&&(t=L);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.Jj)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=I(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),u=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l}}(n,t,r))}const{top:r,left:i,width:s,height:a,bottom:l,right:u}=n;return{top:r,left:i,width:s,height:a,bottom:l,right:u}}function B(e){return F(e,{ignoreTransform:!0})}function z(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,o.qk)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,o.Re)(i)||(0,o.vZ)(i))return n;if(n.includes(i))return n;const s=(0,o.Jj)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,o.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,s)&&n.push(i),function(e,t){return void 0===t&&(t=(0,o.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(i,s)?n:r(i.parentNode)}(e):n}function U(e){const[t]=z(e,1);return null!=t?t:null}function V(e){return o.Nq&&e?(0,o.FJ)(e)?e:(0,o.UG)(e)?(0,o.qk)(e)||e===(0,o.r3)(e).scrollingElement?window:(0,o.Re)(e)?e:null:null:null}function W(e){return(0,o.FJ)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,o.FJ)(e)?e.scrollY:e.scrollTop}function $(e){return{x:W(e),y:H(e)}}var q;function K(e){return!(!o.Nq||!e)&&e===document.scrollingElement}function Q(e){const t={x:0,y:0},n=K(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(q||(q={}));const G={x:.2,y:.2};function J(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=G);const{isTop:u,isBottom:c,isLeft:f,isRight:h}=Q(e),d={x:0,y:0},p={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(d.y=q.Backward,p.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(d.y=q.Forward,p.y=r*Math.abs((t.bottom-m-l)/m)),!h&&a>=t.right-g?(d.x=q.Forward,p.x=r*Math.abs((t.right-g-a)/g)):!f&&s<=t.left+g&&(d.x=q.Backward,p.x=r*Math.abs((t.left+g-s)/g)),{direction:d,speed:p}}function X(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Y(e){return e.reduce(((e,t)=>(0,o.IH)(e,$(t))),b)}function Z(e,t){if(void 0===t&&(t=F),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);U(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ee=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+W(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+H(t)),0)}]];class te{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=z(t),r=Y(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of ee)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),s=r[e]-t;return this.rect[o]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ne{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function re(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ie,oe;function se(e){e.preventDefault()}function ae(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ie||(ie={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(oe||(oe={}));const le={start:[oe.Space,oe.Enter],cancel:[oe.Esc],end:[oe.Space,oe.Enter]},ue=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case oe.Right:return{...n,x:n.x+25};case oe.Left:return{...n,x:n.x-25};case oe.Down:return{...n,y:n.y+25};case oe.Up:return{...n,y:n.y-25}}};class ce{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ne((0,o.r3)(t)),this.windowListeners=new ne((0,o.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ie.Resize,this.handleCancel),this.windowListeners.add(ie.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ie.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Z(n),t(b)}handleKeyDown(e){if((0,o.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=le,coordinateGetter:s=ue,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:b;this.referenceCoordinates||(this.referenceCoordinates=c);const f=s(e,{active:t,context:n.current,currentCoordinates:c});if(f){const t=(0,o.$X)(f,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:c,minScroll:h}=Q(n),d=X(n),p={x:Math.min(i===oe.Right?d.right-d.width/2:d.right,Math.max(i===oe.Right?d.left:d.left+d.width/2,f.x)),y:Math.min(i===oe.Down?d.bottom-d.height/2:d.bottom,Math.max(i===oe.Down?d.top:d.top+d.height/2,f.y))},m=i===oe.Right&&!s||i===oe.Left&&!l,g=i===oe.Down&&!u||i===oe.Up&&!o;if(m&&p.x!==f.x){const e=n.scrollLeft+t.x,o=i===oe.Right&&e<=c.x||i===oe.Left&&e>=h.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===oe.Right?n.scrollLeft-c.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&p.y!==f.y){const e=n.scrollTop+t.y,o=i===oe.Down&&e<=c.y||i===oe.Up&&e>=h.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===oe.Down?n.scrollTop-c.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,o.IH)((0,o.$X)(f,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function fe(e){return Boolean(e&&"distance"in e)}function he(e){return Boolean(e&&"delay"in e)}ce.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=le,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class de{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.Jj)(e);return e instanceof t?e:(0,o.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:s}=i;this.props=e,this.events=t,this.document=(0,o.r3)(s),this.documentListeners=new ne(this.document),this.listeners=new ne(n),this.windowListeners=new ne((0,o.Jj)(s)),this.initialCoordinates=null!=(r=(0,o.DC)(i))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ie.Resize,this.handleCancel),this.windowListeners.add(ie.DragStart,se),this.windowListeners.add(ie.VisibilityChange,this.handleCancel),this.windowListeners.add(ie.ContextMenu,se),this.documentListeners.add(ie.Keydown,this.handleKeydown),t){if(fe(t))return;if(he(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ie.Click,ae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ie.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const l=null!=(t=(0,o.DC)(e))?t:b,u=(0,o.$X)(r,l);if(!n&&a){if(he(a))return re(u,a.tolerance)?this.handleCancel():void 0;if(fe(a))return null!=a.tolerance&&re(u,a.tolerance)?this.handleCancel():re(u,a.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),s(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===oe.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const pe={move:{name:"pointermove"},end:{name:"pointerup"}};class me extends de{constructor(e){const{event:t}=e,n=(0,o.r3)(t.target);super(e,pe,n)}}me.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ge={move:{name:"mousemove"},end:{name:"mouseup"}};var ve;!function(e){e[e.RightClick=2]="RightClick"}(ve||(ve={}));class ye extends de{constructor(e){super(e,ge,(0,o.r3)(e.event.target))}}ye.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ve.RightClick&&(null==r||r({event:n}),!0)}}];const be={move:{name:"touchmove"},end:{name:"touchend"}};var we,xe;(class extends de{constructor(e){super(e,be)}static setup(){return window.addEventListener(be.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(be.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(we||(we={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(xe||(xe={}));const Se={x:{[q.Backward]:!1,[q.Forward]:!1},y:{[q.Backward]:!1,[q.Forward]:!1}};var ke,Ce;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ke||(ke={})),function(e){e.Optimized="optimized"}(Ce||(Ce={}));const Oe=new Map;function _e(e,t){return(0,o.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Ee(e){let{callback:t,disabled:n}=e;const i=(0,o.zX)(t),s=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==s?void 0:s.disconnect()),[s]),s}function Ae(e){return new te(F(e),e)}function Me(e,t,n){void 0===t&&(t=Ae);const[i,s]=(0,r.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),a=function(e){let{callback:t,disabled:n}=e;const i=(0,o.zX)(t),s=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==s?void 0:s.disconnect()),[s]),s}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){s();break}}}}),l=Ee({callback:s});return(0,o.LI)((()=>{s(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())}),[e]),i}const Re=[];function Te(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,o.$X)(e,n.current):b}function Pe(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const De=[];function je(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.Re)(t)?t:e}const Ne=[{sensor:me,options:{}},{sensor:ce,options:{}}],Ie={current:{}},Le={draggable:{measure:B},droppable:{measure:B,strategy:ke.WhileDragging,frequency:Ce.Optimized},dragOverlay:{measure:F}};class Fe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Le,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Ue=(0,r.createContext)(ze),Ve=(0,r.createContext)(Be);function We(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fe}}}function He(e,t){switch(t.type){case m.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case m.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case m.DragEnd:case m.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case m.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Fe(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case m.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Fe(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case m.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Fe(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function $e(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:s}=(0,r.useContext)(Ue),a=(0,o.D9)(i),l=(0,o.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&a&&null!=l){if(!(0,o.vd)(a))return;if(document.activeElement===a.target)return;const e=s.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.so)(e);if(t){t.focus();break}}}))}}),[i,t,s,l,a]),null}function qe(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ke=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Qe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Qe||(Qe={}));const Ge=(0,r.memo)((function(e){var t,n,s,a;let{id:l,accessibility:u,autoScroll:f=!0,children:h,sensors:d=Ne,collisionDetection:g=R,measuring:v,modifiers:y,...w}=e;const x=(0,r.useReducer)(He,void 0,We),[S,k]=x,[C,_]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[E,A]=(0,r.useState)(Qe.Uninitialized),M=E===Qe.Initialized,{draggable:{active:T,nodes:P,translate:j},droppable:{containers:I}}=S,L=T?P.get(T):null,B=(0,r.useRef)({initial:null,translated:null}),W=(0,r.useMemo)((()=>{var e;return null!=T?{id:T,data:null!=(e=null==L?void 0:L.data)?e:Ie,rect:B}:null}),[T,L]),H=(0,r.useRef)(null),[Q,G]=(0,r.useState)(null),[X,Z]=(0,r.useState)(null),ee=(0,o.Ey)(w,Object.values(w)),ne=(0,o.Ld)("DndDescribedBy",l),re=(0,r.useMemo)((()=>I.getEnabled()),[I]),ie=(oe=v,(0,r.useMemo)((()=>({draggable:{...Le.draggable,...null==oe?void 0:oe.draggable},droppable:{...Le.droppable,...null==oe?void 0:oe.droppable},dragOverlay:{...Le.dragOverlay,...null==oe?void 0:oe.dragOverlay}})),[null==oe?void 0:oe.draggable,null==oe?void 0:oe.droppable,null==oe?void 0:oe.dragOverlay]));var oe;const{droppableRects:se,measureDroppableContainers:ae,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:i,config:s}=t;const[a,l]=(0,r.useState)(null),{frequency:u,measure:c,strategy:f}=s,h=(0,r.useRef)(e),d=function(){switch(f){case ke.Always:return!1;case ke.BeforeDragging:return n;default:return!n}}(),p=(0,o.Ey)(d),m=(0,r.useCallback)((function(e){void 0===e&&(e=[]),p.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,r.useRef)(null),v=(0,o.Gj)((t=>{if(d&&!n)return Oe;if(!t||t===Oe||h.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new te(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,d,c]);return(0,r.useEffect)((()=>{h.current=e}),[e]),(0,r.useEffect)((()=>{d||m()}),[n,d]),(0,r.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,r.useEffect)((()=>{d||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),u))}),[u,d,m,...i]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:null!=a}}(re,{dragging:M,dependencies:[j.x,j.y],config:ie.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(P,T),ce=(0,r.useMemo)((()=>X?(0,o.DC)(X):null),[X]),fe=function(){const e=!1===(null==Q?void 0:Q.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=M&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),he=function(e,t){return _e(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:s=!0}=e;const a=(0,r.useRef)(!1),{x:l,y:u}="boolean"==typeof s?{x:s,y:s}:s;(0,o.LI)((()=>{if(!l&&!u||!t)return void(a.current=!1);if(a.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=D(n(e),i);if(l||(r.x=0),u||(r.y=0),a.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=U(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,u,i,n])}({activeNode:T?P.get(T):null,config:fe.layoutShiftCompensation,initialRect:he,measure:ie.draggable.measure});const de=Me(ue,ie.draggable.measure,he),pe=Me(ue?ue.parentElement:null),me=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:se,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=I.getNodeFor(null==(t=me.current.over)?void 0:t.id),ve=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),s=Ee({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,o.Re)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=(0,r.useCallback)((e=>{const n=je(e);null==s||s.disconnect(),n&&(null==s||s.observe(n)),i(n?t(n):null)}),[t,s]),[l,u]=(0,o.wm)(a);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:u})),[n,l,u])}({measure:ie.dragOverlay.measure}),ye=null!=(n=ve.nodeRef.current)?n:ue,be=M?null!=(s=ve.rect)?s:de:null,Ce=Boolean(ve.nodeRef.current&&ve.rect),Ae=D(Fe=Ce?null:de,_e(Fe));var Fe;const Be=Pe(ye?(0,o.Jj)(ye):null),ze=function(e){const t=(0,r.useRef)(e),n=(0,o.Gj)((n=>e?n&&n!==Re&&e&&t.current&&e.parentNode===t.current.parentNode?n:z(e):Re),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(M?null!=ge?ge:ue:null),Ge=function(e,t){void 0===t&&(t=F);const[n]=e,i=Pe(n?(0,o.Jj)(n):null),[s,a]=(0,r.useReducer)((function(){return e.length?e.map((e=>K(e)?i:new te(t(e),e))):De}),De),l=Ee({callback:a});return e.length>0&&s===De&&a(),(0,o.LI)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),a())}),[e]),s}(ze),Je=qe(y,{transform:{x:j.x-Ae.x,y:j.y-Ae.y,scaleX:1,scaleY:1},activatorEvent:X,active:W,activeNodeRect:de,containerNodeRect:pe,draggingNodeRect:be,over:me.current.over,overlayNodeRect:ve.rect,scrollableAncestors:ze,scrollableAncestorRects:Ge,windowRect:Be}),Xe=ce?(0,o.IH)(ce,j):null,Ye=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),s=(0,r.useCallback)((e=>{const t=V(e.target);t&&n((e=>e?(e.set(t,$(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const o=e.map((e=>{const t=V(e);return t?(t.addEventListener("scroll",s,{passive:!0}),[t,$(t)]):null})).filter((e=>null!=e));n(o.length?new Map(o):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=V(e);null==t||t.removeEventListener("scroll",s)}))}}),[s,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,o.IH)(e,t)),b):Y(e):b),[e,t])}(ze),Ze=Te(Ye),et=Te(Ye,[de]),tt=(0,o.IH)(Je,Ze),nt=be?N(be,Je):null,rt=W&&nt?g({active:W,collisionRect:nt,droppableRects:se,droppableContainers:re,pointerCoordinates:Xe}):null,it=O(rt,"id"),[ot,st]=(0,r.useState)(null),at=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ce?Je:(0,o.IH)(Je,et),null!=(a=null==ot?void 0:ot.rect)?a:null,de),lt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==H.current)return;const o=P.get(H.current);if(!o)return;const s=e.nativeEvent,a=new n({active:H.current,activeNode:o,event:s,options:r,context:me,onStart(e){const t=H.current;if(null==t)return;const n=P.get(t);if(!n)return;const{onDragStart:r}=ee.current,o={active:{id:t,data:n.data,rect:B}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),A(Qe.Initializing),k({type:m.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:o})}))},onMove(e){k({type:m.DragMove,coordinates:e})},onEnd:l(m.DragEnd),onCancel:l(m.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=me.current;let a=null;if(t&&o){const{cancelDrop:i}=ee.current;a={activatorEvent:s,active:t,collisions:n,delta:o,over:r},e===m.DragEnd&&"function"==typeof i&&await Promise.resolve(i(a))&&(e=m.DragCancel)}H.current=null,(0,i.unstable_batchedUpdates)((()=>{k({type:e}),A(Qe.Uninitialized),st(null),G(null),Z(null);const t=e===m.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=ee.current[t];null==e||e(a),C({type:t,event:a})}}))}}(0,i.unstable_batchedUpdates)((()=>{G(a),Z(e.nativeEvent)}))}),[P]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=P.get(r);if(null!==H.current||!o||i.dndKit||i.defaultPrevented)return;const s={active:o};!0===e(n,t.options,s)&&(i.dndKit={capturedBy:t.sensor},H.current=r,lt(n,t))}),[P,lt]),ct=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(d,ut);!function(e){(0,r.useEffect)((()=>{if(!o.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(d),(0,o.LI)((()=>{de&&E===Qe.Initializing&&A(Qe.Initialized)}),[de,E]),(0,r.useEffect)((()=>{const{onDragMove:e}=ee.current,{active:t,activatorEvent:n,collisions:r,over:o}=me.current;if(!t||!n)return;const s={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(s),C({type:"onDragMove",event:s})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=me.current;if(!e||null==H.current||!t||!o)return;const{onDragOver:s}=ee.current,a=r.get(it),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,i.unstable_batchedUpdates)((()=>{st(l),null==s||s(u),C({type:"onDragOver",event:u})}))}),[it]),(0,o.LI)((()=>{me.current={activatorEvent:X,active:W,activeNode:ue,collisionRect:nt,collisions:rt,droppableRects:se,draggableNodes:P,draggingNode:ye,draggingNodeRect:be,droppableContainers:I,over:ot,scrollableAncestors:ze,scrollAdjustedTranslate:tt},B.current={initial:be,translated:nt}}),[W,ue,rt,nt,P,ye,be,se,I,ot,ze,tt]),function(e){let{acceleration:t,activator:n=we.Pointer,canScroll:i,draggingRect:s,enabled:a,interval:l=5,order:u=xe.TreeOrder,pointerCoordinates:c,scrollableAncestors:f,scrollableAncestorRects:h,delta:d,threshold:p}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,o.D9)(t);return(0,o.Gj)((e=>{if(n||!r||!e)return Se;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[q.Backward]:e.x[q.Backward]||-1===i,[q.Forward]:e.x[q.Forward]||1===i},y:{[q.Backward]:e.y[q.Backward]||-1===o,[q.Forward]:e.y[q.Forward]||1===o}}}),[n,t,r])}({delta:d,disabled:!a}),[g,v]=(0,o.Yz)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case we.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case we.DraggableRect:return s}}),[n,s,c]),x=(0,r.useRef)(null),S=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),k=(0,r.useMemo)((()=>u===xe.TreeOrder?[...f].reverse():f),[u,f]);(0,r.useEffect)((()=>{if(a&&f.length&&w){for(const e of k){if(!1===(null==i?void 0:i(e)))continue;const n=f.indexOf(e),r=h[n];if(!r)continue;const{direction:o,speed:s}=J(e,r,w,t,p);for(const e of["x","y"])m[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0)return v(),x.current=e,g(S,l),y.current=s,void(b.current=o)}y.current={x:0,y:0},b.current={x:0,y:0},v()}else v()}),[t,S,i,v,a,l,JSON.stringify(w),JSON.stringify(m),g,f,k,h,JSON.stringify(p)])}({...fe,delta:j,draggingRect:nt,pointerCoordinates:Xe,scrollableAncestors:ze,scrollableAncestorRects:Ge});const ft=(0,r.useMemo)((()=>({active:W,activeNode:ue,activeNodeRect:de,activatorEvent:X,collisions:rt,containerNodeRect:pe,dragOverlay:ve,draggableNodes:P,droppableContainers:I,droppableRects:se,over:ot,measureDroppableContainers:ae,scrollableAncestors:ze,scrollableAncestorRects:Ge,measuringConfiguration:ie,measuringScheduled:le,windowRect:Be})),[W,ue,de,X,rt,pe,ve,P,I,se,ot,ae,ze,Ge,ie,le,Be]),ht=(0,r.useMemo)((()=>({activatorEvent:X,activators:ct,active:W,activeNodeRect:de,ariaDescribedById:{draggable:ne},dispatch:k,draggableNodes:P,over:ot,measureDroppableContainers:ae})),[X,ct,W,de,k,ne,P,ot,ae]);return r.createElement(c.Provider,{value:_},r.createElement(Ue.Provider,{value:ht},r.createElement(Ve.Provider,{value:ft},r.createElement(Ke.Provider,{value:at},h)),r.createElement($e,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(p,{...u,hiddenTextDescribedById:ne}))})),Je=(0,r.createContext)(null),Xe="button",Ye="Droppable";function Ze(e){let{id:t,data:n,disabled:i=!1,attributes:s}=e;const a=(0,o.Ld)(Ye),{activators:l,activatorEvent:u,active:c,activeNodeRect:f,ariaDescribedById:h,draggableNodes:d,over:p}=(0,r.useContext)(Ue),{role:m=Xe,roleDescription:g="draggable",tabIndex:v=0}=null!=s?s:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?Ke:Je),[w,x]=(0,o.wm)(),[S,k]=(0,o.wm)(),C=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),O=(0,o.Ey)(n);return(0,o.LI)((()=>(d.set(t,{id:t,key:a,node:w,activatorNode:S,data:O}),()=>{const e=d.get(t);e&&e.key===a&&d.delete(t)})),[d,t]),{active:c,activatorEvent:u,activeNodeRect:f,attributes:(0,r.useMemo)((()=>({role:m,tabIndex:v,"aria-disabled":i,"aria-pressed":!(!y||m!==Xe)||void 0,"aria-roledescription":g,"aria-describedby":h.draggable})),[i,m,v,y,g,h.draggable]),isDragging:y,listeners:i?void 0:C,node:w,over:p,setNodeRef:x,setActivatorNodeRef:k,transform:b}}function et(){return(0,r.useContext)(Ve)}const tt="Droppable",nt={timeout:25};function rt(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:s}=e;const a=(0,o.Ld)(tt),{active:l,dispatch:u,over:c,measureDroppableContainers:f}=(0,r.useContext)(Ue),h=(0,r.useRef)({disabled:n}),d=(0,r.useRef)(!1),p=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...nt,...s},w=(0,o.Ey)(null!=y?y:i),x=Ee({callback:(0,r.useCallback)((()=>{d.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{f(Array.isArray(w.current)?w.current:[w.current]),g.current=null}),b)):d.current=!0}),[b]),disabled:v||!l}),S=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),d.current=!1),e&&x.observe(e))}),[x]),[k,C]=(0,o.wm)(S),O=(0,o.Ey)(t);return(0,r.useEffect)((()=>{x&&k.current&&(x.disconnect(),d.current=!1,x.observe(k.current))}),[k,x]),(0,o.LI)((()=>(u({type:m.RegisterDroppable,element:{id:i,key:a,disabled:n,node:k,rect:p,data:O}}),()=>u({type:m.UnregisterDroppable,key:a,id:i}))),[i]),(0,r.useEffect)((()=>{n!==h.current.disabled&&(u({type:m.SetDroppableDisabled,id:i,key:a,disabled:n}),h.current.disabled=n)}),[i,a,n,u]),{active:l,rect:p,isOver:(null==c?void 0:c.id)===i,node:k,over:c,setNodeRef:C}}function it(e){let{animation:t,children:n}=e;const[i,s]=(0,r.useState)(null),[a,l]=(0,r.useState)(null),u=(0,o.D9)(n);return n||i||!u||s(u),(0,o.LI)((()=>{if(!a)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,a)).then((()=>{s(null)})):s(null)}),[t,i,a]),r.createElement(r.Fragment,null,n,i?(0,r.cloneElement)(i,{ref:l}):null)}const ot={x:0,y:0,scaleX:1,scaleY:1};function st(e){let{children:t}=e;return r.createElement(Ue.Provider,{value:ze},r.createElement(Ke.Provider,{value:ot},t))}const at={position:"fixed",touchAction:"none"},lt=e=>(0,o.vd)(e)?"transform 250ms ease":void 0,ut=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:s,children:a,className:l,rect:u,style:c,transform:f,transition:h=lt}=e;if(!u)return null;const d=s?f:{...f,scaleX:1,scaleY:1},p={...at,width:u.width,height:u.height,top:u.top,left:u.left,transform:o.ux.Transform.toString(d),transformOrigin:s&&i?x(i,u):void 0,transition:"function"==typeof h?h(i):h,...c};return r.createElement(n,{className:l,style:p,ref:t},a)})),ct=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:s}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=s&&s.active&&n.node.classList.add(s.active),null!=s&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=s&&s.active&&n.node.classList.remove(s.active)}},ft={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:o.ux.Transform.toString(t)},{transform:o.ux.Transform.toString(n)}]},sideEffects:ct({styles:{active:{opacity:"0"}}})};let ht=0;function dt(e){return(0,r.useMemo)((()=>{if(null!=e)return ht++,ht}),[e])}const pt=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:s,transition:a,modifiers:l,wrapperElement:u="div",className:c,zIndex:f=999}=e;const{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:m,draggableNodes:g,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:S,windowRect:k}=et(),C=(0,r.useContext)(Ke),O=dt(null==d?void 0:d.id),_=qe(l,{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:m,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:x,scrollableAncestorRects:S,transform:C,windowRect:k}),E=_e(p),A=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,o.zX)(((e,s)=>{if(null===t)return;const a=n.get(e);if(!a)return;const l=a.node.current;if(!l)return;const u=je(s);if(!u)return;const{transform:c}=(0,o.Jj)(s).getComputedStyle(s),f=I(c);if(!f)return;const h="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...ft,...e};return e=>{let{active:o,dragOverlay:s,transform:a,...l}=e;if(!t)return;const u=s.rect.left-o.rect.left,c=s.rect.top-o.rect.top,f={scaleX:1!==a.scaleX?o.rect.width*a.scaleX/s.rect.width:1,scaleY:1!==a.scaleY?o.rect.height*a.scaleY/s.rect.height:1},h={x:a.x-u,y:a.y-c,...f},d=i({...l,active:o,dragOverlay:s,transform:{initial:a,final:h}}),[p]=d,m=d[d.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:s,...l}),v=s.node.animate(d,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return Z(l,i.draggable.measure),h({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:s,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:f})}))}({config:i,draggableNodes:g,droppableContainers:v,measuringConfiguration:w}),M=E?y.setRef:void 0;return r.createElement(st,null,r.createElement(it,{animation:A},d&&O?r.createElement(ut,{key:O,id:d.id,ref:M,as:u,activatorEvent:h,adjustScale:t,className:c,transition:a,rect:E,style:{zIndex:f,...s},transform:_},n):null))}))},5587:(e,t,n)=>{"use strict";n.d(t,{Fo:()=>g,PG:()=>c,Rp:()=>s,is:()=>_,nB:()=>k,qw:()=>d});var r=n(7294),i=n(9752),o=n(4285);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function a(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function l(e){return null!==e&&e>=0}const u={scaleX:1,scaleY:1},c=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:s}=e;const a=null!=(t=n[i])?t:r;if(!a)return null;const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width):0}(n,s,i);if(s===i){const e=n[o];return e?{x:i<o?e.left+e.width-(a.left+a.width):e.left-a.left,y:0,...u}:null}return s>i&&s<=o?{x:-a.width-l,y:0,...u}:s<i&&s>=o?{x:a.width+l,y:0,...u}:{x:0,y:0,...u}},f=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=s(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},h={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=null!=(t=o[n])?t:r;if(!a)return null;if(i===n){const e=o[s];return e?{x:0,y:n<s?e.top+e.height-(a.top+a.height):e.top-a.top,...h}:null}const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...h}:i<n&&i>=s?{x:0,y:a.height+l,...h}:{x:0,y:0,...h}},p="Sortable",m=r.createContext({activeIndex:-1,containerId:p,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:f,disabled:{draggable:!1,droppable:!1}});function g(e){let{children:t,id:n,items:s,strategy:l=f,disabled:u=!1}=e;const{active:c,dragOverlay:h,droppableRects:d,over:g,measureDroppableContainers:v}=(0,i.Cj)(),y=(0,o.Ld)(p,n),b=Boolean(null!==h.rect),w=(0,r.useMemo)((()=>s.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[s]),x=null!=c,S=c?w.indexOf(c.id):-1,k=g?w.indexOf(g.id):-1,C=(0,r.useRef)(w),O=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(w,C.current),_=-1!==k&&-1===S||O,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,o.LI)((()=>{O&&x&&v(w)}),[O,w,x,v]),(0,r.useEffect)((()=>{C.current=w}),[w]);const A=(0,r.useMemo)((()=>({activeIndex:S,containerId:y,disabled:E,disableTransforms:_,items:w,overIndex:k,useDragOverlay:b,sortedRects:a(w,d),strategy:l})),[S,y,E.draggable,E.droppable,_,w,k,d,b,l]);return r.createElement(m.Provider,{value:A},t)}const v=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},y=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!(!u||!r||a!==o&&i===s||!n&&(s===i||t!==l))},b={duration:200,easing:"ease"},w="transform",x=o.ux.Transition.toString({property:w,duration:0,easing:"linear"}),S={roleDescription:"sortable"};function k(e){let{animateLayoutChanges:t=y,attributes:n,disabled:s,data:a,getNewIndex:u=v,id:c,strategy:f,resizeObserverConfig:h,transition:d=b}=e;const{items:p,containerId:g,activeIndex:k,disabled:C,disableTransforms:O,sortedRects:_,overIndex:E,useDragOverlay:A,strategy:M}=(0,r.useContext)(m),R=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(s,C),T=p.indexOf(c),P=(0,r.useMemo)((()=>({sortable:{containerId:g,index:T,items:p},...a})),[g,a,T,p]),D=(0,r.useMemo)((()=>p.slice(p.indexOf(c))),[p,c]),{rect:j,node:N,isOver:I,setNodeRef:L}=(0,i.Zj)({id:c,data:P,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...h}}),{active:F,activatorEvent:B,activeNodeRect:z,attributes:U,setNodeRef:V,listeners:W,isDragging:H,over:$,setActivatorNodeRef:q,transform:K}=(0,i.O1)({id:c,data:P,attributes:{...S,...n},disabled:R.draggable}),Q=(0,o.HB)(L,V),G=Boolean(F),J=G&&!O&&l(k)&&l(E),X=!A&&H,Y=X&&J?K:null,Z=J?null!=Y?Y:(null!=f?f:M)({rects:_,activeNodeRect:z,activeIndex:k,overIndex:E,index:T}):null,ee=l(k)&&l(E)?u({id:c,items:p,activeIndex:k,overIndex:E}):T,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:p,newIndex:ee,containerId:g}),re=p!==ne.current.items,ie=t({active:F,containerId:g,isDragging:H,isSorting:G,id:c,index:T,items:p,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:d,wasDragging:null!=ne.current.activeId}),oe=function(e){let{disabled:t,index:n,node:s,rect:a}=e;const[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,o.LI)((()=>{if(!t&&n!==c.current&&s.current){const e=a.current;if(e){const t=(0,i.VK)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,s,a]),(0,r.useEffect)((()=>{l&&u(null)}),[l]),l}({disabled:!ie,index:T,node:N,rect:j});return(0,r.useEffect)((()=>{G&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),g!==ne.current.containerId&&(ne.current.containerId=g),p!==ne.current.items&&(ne.current.items=p)}),[G,ee,g,p]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:F,activeIndex:k,attributes:U,data:P,rect:j,index:T,newIndex:ee,items:p,isOver:I,isSorting:G,isDragging:H,listeners:W,node:N,overIndex:E,over:$,setNodeRef:Q,setActivatorNodeRef:q,setDroppableNodeRef:L,setDraggableNodeRef:V,transform:null!=oe?oe:Z,transition:oe||re&&ne.current.newIndex===T?x:X&&!(0,o.vd)(B)||!d?void 0:G||ie?o.ux.Transition.toString({...d,property:w}):void 0}}function C(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const O=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],_=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:a,over:l,scrollableAncestors:u}}=t;if(O.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];a.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=s.get(n.id);if(o)switch(e.code){case i.g4.Down:r.top<o.top&&t.push(n);break;case i.g4.Up:r.top>o.top&&t.push(n);break;case i.g4.Left:r.left>o.left&&t.push(n);break;case i.g4.Right:r.left<o.left&&t.push(n)}}));const h=(0,i.ey)({active:n,collisionRect:r,droppableRects:s,droppableContainers:t,pointerCoordinates:null});let d=(0,i._8)(h,"id");if(d===(null==l?void 0:l.id)&&h.length>1&&(d=h[1].id),null!=d){const e=a.get(n.id),t=a.get(d),l=t?s.get(t.id):null,h=null==t?void 0:t.node.current;if(h&&l&&e&&t){const n=(0,i.hI)(h).some(((e,t)=>u[t]!==e)),s=E(e,t),a=(f=t,!(!C(c=e)||!C(f))&&!!E(c,f)&&c.data.current.sortable.index<f.data.current.sortable.index),d=n||!s?{x:0,y:0}:{x:a?r.width-l.width:0,y:a?r.height-l.height:0},p={x:l.left,y:l.top};return d.x&&d.y?p:(0,o.$X)(p,d)}}}var c,f};function E(e,t){return!(!C(e)||!C(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},4285:(e,t,n)=>{"use strict";n.d(t,{$X:()=>C,D9:()=>b,DC:()=>_,Ey:()=>g,FJ:()=>s,Gj:()=>v,HB:()=>i,IH:()=>k,Jj:()=>l,LI:()=>d,Ld:()=>x,Nq:()=>o,Re:()=>c,UG:()=>a,Yz:()=>m,qk:()=>u,r3:()=>h,so:()=>M,ux:()=>E,vZ:()=>f,vd:()=>O,wm:()=>y,zX:()=>p});var r=n(7294);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function l(e){var t,n;return e?s(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=l(e);return e instanceof t}function c(e){return!s(e)&&e instanceof l(e).HTMLElement}function f(e){return e instanceof l(e).SVGElement}function h(e){return e?s(e)?e.document:a(e)?u(e)?e:c(e)?e.ownerDocument:document:document:document}const d=o?r.useLayoutEffect:r.useEffect;function p(e){const t=(0,r.useRef)(e);return d((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function m(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return d((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=p(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function S(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const k=S(1),C=S(-1);function O(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function _(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const E=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[E.Translate.toString(e),E.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),A="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(A)?e:e.querySelector(A)}},6751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function h(e){return e.length}function d(e){return e.length}function p(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,w="";function x(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:s,return:""}}function S(e,t){return s(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?c(w,--y):0,g--,10===b&&(g=1,m--),b}function C(){return b=y<v?c(w,y++):0,g++,10===b&&(g=1,m++),b}function O(){return c(w,y)}function _(){return y}function E(e,t){return f(w,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M(e){return m=g=1,v=h(w=e),y=0,[]}function R(e){return w="",e}function T(e){return a(E(y-1,j(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(b=O())&&b<33;)C();return A(e)>2||A(b)>3?"":" "}function D(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,_()+(t<6&&32==O()&&32==C()))}function j(e){for(;C();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&j(b);break;case 40:41===e&&j(e);break;case 92:C()}return y}function N(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==O()););return"/*"+E(t,y-1)+"*"+o(47===e?e:C())}function I(e){for(;!A(O());)C();return E(e,y)}var L="-ms-",F="-moz-",B="-webkit-",z="comm",U="rule",V="decl",W="@keyframes";function H(e,t){for(var n="",r=d(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function $(e,t,n,r){switch(e.type){case"@import":case V:return e.return=e.return||e.value;case z:return"";case W:return e.return=e.value+"{"+H(e.children,r)+"}";case U:e.value=e.props.join(",")}return h(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return R(K("",null,null,null,[""],e=M(e),0,[0],e))}function K(e,t,n,r,i,s,a,f,d){for(var m=0,g=0,v=a,y=0,b=0,w=0,x=1,S=1,E=1,A=0,M="",R=i,j=s,L=r,F=M;S;)switch(w=A,A=C()){case 40:if(108!=w&&58==c(F,v-1)){-1!=u(F+=l(T(A),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:F+=T(A);break;case 9:case 10:case 13:case 32:F+=P(w);break;case 92:F+=D(_()-1,7);continue;case 47:switch(O()){case 42:case 47:p(G(N(C(),_()),t,n),d);break;default:F+="/"}break;case 123*x:f[m++]=h(F)*E;case 125*x:case 59:case 0:switch(A){case 0:case 125:S=0;case 59+g:b>0&&h(F)-v&&p(b>32?J(F+";",r,n,v-1):J(l(F," ","")+";",r,n,v-2),d);break;case 59:F+=";";default:if(p(L=Q(F,t,n,m,g,i,f,M,R=[],j=[],v),s),123===A)if(0===g)K(F,t,L,L,R,s,v,f,j);else switch(99===y&&110===c(F,3)?100:y){case 100:case 109:case 115:K(e,L,L,r&&p(Q(e,L,L,0,0,i,f,M,i,R=[],v),j),i,j,v,f,r?R:j);break;default:K(F,L,L,L,[""],j,0,f,j)}}m=g=b=0,x=E=1,M=F="",v=a;break;case 58:v=1+h(F),b=w;default:if(x<1)if(123==A)--x;else if(125==A&&0==x++&&125==k())continue;switch(F+=o(A),A*x){case 38:E=g>0?1:(F+="\f",-1);break;case 44:f[m++]=(h(F)-1)*E,E=1;break;case 64:45===O()&&(F+=T(C())),y=O(),g=v=h(M=F+=I(_())),A++;break;case 45:45===w&&2==h(F)&&(x=0)}}return s}function Q(e,t,n,r,o,s,u,c,h,p,m){for(var g=o-1,v=0===o?s:[""],y=d(v),b=0,w=0,S=0;b<r;++b)for(var k=0,C=f(e,g+1,g=i(w=u[b])),O=e;k<y;++k)(O=a(w>0?v[k]+" "+C:l(C,/&\f/g,v[k])))&&(h[S++]=O);return x(e,t,n,0===o?U:c,h,p,m)}function G(e,t,n){return x(e,t,n,z,o(b),f(e,2,-2),0)}function J(e,t,n,r){return x(e,t,n,V,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=O(),38===r&&12===i&&(t[n]=1),!A(i);)C();return E(e,y)},Y=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Y.get(n))&&!r){Y.set(e,!0);for(var i=[],s=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(M(e),t))}(t,i),a=n.props,l=0,u=0;l<s.length;l++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[l]?s[l].replace(/&\f/g,a[c]):a[c]+" "+s[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+L+e+e;case 6828:case 4268:return B+e+L+e+e;case 6165:return B+e+L+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return B+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+L+l(e,"shrink","negative")+e;case 5292:return B+e+L+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+L+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,h(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===c(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+L+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=te(e.value,e.length);break;case W:return H([S(e,{value:l(e.value,"@","@"+B)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([S(e,{props:[l(t,/:(read-\w+)/,":"+F+"$1")]})],r);case"::placeholder":return H([S(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":"+F+"$1")]}),S(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}];const re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,s=e.stylisPlugins||ne,a={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var u,c,f,h,p=[$,(h=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&h(e)})],m=(c=[Z,ee].concat(s,p),f=d(c),function(e,t,n,r){for(var i="",o=0;o<f;o++)i+=c[o](e,t,n,r)||"";return i});o=function(e,t,n,r){u=n,H(q(e?e+"{"+t.styles+"}":t.styles),m),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return g.sheet.hydrate(l),g}},2443:(e,t,n)=>{"use strict";n.d(t,{E:()=>m,T:()=>f,c:()=>d,h:()=>l,w:()=>c});var r=n(7294),i=n(6751),o=n(444),s=n(8947),a=n(7278),l={}.hasOwnProperty,u=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);u.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(u);return e(t,i,n)}))},f=(0,r.createContext)({}),h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e,t){var n={};for(var r in t)l.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},p=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.hC)(t,n,r),(0,a.L)((function(){return(0,o.My)(t,n,r)})),null},m=c((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=e[h],u=[i],c="";"string"==typeof e.className?c=(0,o.fp)(t.registered,u,e.className):null!=e.className&&(c=e.className+" ");var d=(0,s.O)(u,void 0,(0,r.useContext)(f));c+=t.key+"-"+d.name;var m={};for(var g in e)l.call(e,g)&&"css"!==g&&g!==h&&(m[g]=e[g]);return m.ref=n,m.className=c,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p,{cache:t,serialized:d,isStringTag:"string"==typeof a}),(0,r.createElement)(a,m))}))},917:(e,t,n)=>{"use strict";n.d(t,{F4:()=>f,az:()=>l,iv:()=>c,xB:()=>u});var r=n(7294),i=(n(6751),n(2443)),o=(n(8679),n(444)),s=n(8947),a=n(7278),l=function(e,t){var n=arguments;if(null==t||!i.h.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=i.E,s[1]=(0,i.c)(e,t);for(var a=2;a<o;a++)s[a]=n[a];return r.createElement.apply(null,s)},u=(0,i.w)((function(e,t){var n=e.styles,l=(0,s.O)([n],void 0,(0,r.useContext)(i.T)),u=(0,r.useRef)();return(0,a.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,r],function(){n.flush()}}),[t]),(0,a.j)((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var f=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},5944:(e,t,n)=>{"use strict";n.d(t,{BX:()=>a,HY:()=>o,tZ:()=>s}),n(7294),n(6751);var r=n(2443),i=(n(8679),n(8947),n(7278),n(5893)),o=i.Fragment;function s(e,t,n){return r.h.call(t,"css")?(0,i.jsx)(r.E,(0,r.c)(e,t),n):(0,i.jsx)(e,t,n)}function a(e,t,n){return r.h.call(t,"css")?(0,i.jsxs)(r.E,(0,r.c)(e,t),n):(0,i.jsxs)(e,t,n)}},8947:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});const r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=a(n=e)?n:n.replace(o,"-$&").toLowerCase()),t[e];var n}}(),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i[e]||a(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":l(s)&&(r+=u(o)+":"+c(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=f(e,t,s);switch(o){case"animation":case"animationName":r+=u(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var h=0;h<s.length;h++)l(s[h])&&(r+=u(o)+":"+c(o,s[h])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=h,o=n(e);return h=i,f(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h,d=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";h=void 0;var s=e[0];null==s||void 0===s.raw?(i=!1,o+=f(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=f(n,t,e[a]),i&&(o+=s[a]);d.lastIndex=0;for(var l,u="";null!==(l=d.exec(o));)u+="-"+l[1];return{name:r(o)+u,styles:o,next:h}}},7278:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>s,j:()=>a});var i=n(7294),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},444:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:()=>o,fp:()=>r,hC:()=>i});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},8144:(e,t,n)=>{"use strict";n.d(t,{q:()=>zn,Z5:()=>be,q_:()=>bn,Yz:()=>wn});var r=b(),i=e=>m(e,r),o=b();i.write=e=>m(e,o);var s=b();i.onStart=e=>m(e,s);var a=b();i.onFrame=e=>m(e,a);var l=b();i.onFinish=e=>m(e,l);var u=[];i.setTimeout=(e,t)=>{let n=i.now()+t,r=()=>{let e=u.findIndex((e=>e.cancel==r));~e&&u.splice(e,1),d-=~e?1:0},o={time:n,handler:e,cancel:r};return u.splice(c(n),0,o),d+=1,g(),o};var c=e=>~(~u.findIndex((t=>t.time>e))||~u.length);i.cancel=e=>{s.delete(e),a.delete(e),l.delete(e),r.delete(e),o.delete(e)},i.sync=e=>{p=!0,i.batchedUpdates(e),p=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{s.delete(n),t=null},r};var f=typeof window<"u"?window.requestAnimationFrame:()=>{};i.use=e=>f=e,i.now=typeof performance<"u"?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):y()};var h=-1,d=0,p=!1;function m(e,t){p?(t.delete(e),e(0)):(t.add(e),g())}function g(){h<0&&(h=0,"demand"!==i.frameLoop&&f(v))}function v(){~h&&(f(v),i.batchedUpdates(y))}function y(){let e=h;h=i.now();let t=c(h);t&&(w(u.splice(0,t),(e=>e.handler())),d-=t),d?(s.flush(),r.flush(e?Math.min(64,h-e):16.667),a.flush(),o.flush(),l.flush()):h=-1}function b(){let e=new Set,t=e;return{add(n){d+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(d-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,d-=t.size,w(t,(t=>t(n)&&e.add(t))),d+=e.size,t=e)}}}function w(e,t){e.forEach((e=>{try{t(e)}catch(e){i.catch(e)}}))}var x=n(7294),S=Object.defineProperty,k={};function C(){}((e,t)=>{for(var n in t)S(e,n,{get:t[n],enumerable:!0})})(k,{assign:()=>F,colors:()=>N,createStringInterpolator:()=>T,skipAnimation:()=>I,to:()=>P,willAdvance:()=>L});var O={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function _(e,t){if(O.arr(e)){if(!O.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var E=(e,t)=>e.forEach(t);function A(e,t,n){if(O.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var M=e=>O.und(e)?[]:O.arr(e)?e:[e];function R(e,t){if(e.size){let n=Array.from(e);e.clear(),E(n,t)}}var T,P,D=(e,...t)=>R(e,(e=>e(...t))),j=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),N=null,I=!1,L=C,F=e=>{e.to&&(P=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(N=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)},B=new Set,z=[],U=[],V=0,W={get idle(){return!B.size&&!z.length},start(e){V>e.priority?(B.add(e),i.onStart(H)):($(e),i(K))},advance:K,sort(e){if(V)i.onFrame((()=>W.sort(e)));else{let t=z.indexOf(e);~t&&(z.splice(t,1),q(e))}},clear(){z=[],B.clear()}};function H(){B.forEach($),B.clear(),i(K)}function $(e){z.includes(e)||q(e)}function q(e){z.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(z,(t=>t.priority>e.priority)),0,e)}function K(e){let t=U;for(let n=0;n<z.length;n++){let r=z[n];V=r.priority,r.idle||(L(r),r.advance(e),r.idle||t.push(r))}return V=0,(U=z).length=0,(z=t).length>0}var Q="[-+]?\\d*\\.?\\d+",G=Q+"%";function J(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X=new RegExp("rgb"+J(Q,Q,Q)),Y=new RegExp("rgba"+J(Q,Q,Q,Q)),Z=new RegExp("hsl"+J(Q,G,G)),ee=new RegExp("hsla"+J(Q,G,G,Q)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=oe(i,r,e+1/3),s=oe(i,r,e),a=oe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function ae(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function ue(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ce(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function fe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=re.exec(e))?parseInt(t[1]+"ff",16)>>>0:N&&void 0!==N[e]?N[e]:(t=X.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|255)>>>0:(t=Y.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|ue(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ie.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|se(le(t[1]),ce(t[2]),ce(t[3])))>>>0:(t=ee.exec(e))?(se(le(t[1]),ce(t[2]),ce(t[3]))|ue(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var he=(e,t,n)=>{if(O.fun(e))return e;if(O.arr(e))return he({range:e,output:t,extrapolate:n});if(O.str(e.output[0]))return T(e);let r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,s,a,l){let u=l?l(e):e;if(u<t){if("identity"===s)return u;"clamp"===s&&(u=t)}if(u>n){if("identity"===a)return u;"clamp"===a&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(e,o[t],o[t+1],i[t],i[t+1],l,s,a,r.map)}},de=1.70158,pe=1.525*de,me=de+1,ge=2*Math.PI/3,ve=2*Math.PI/4.5,ye=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,be={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>me*e*e*e-de*e*e,easeOutBack:e=>1+me*Math.pow(e-1,3)+de*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(pe+1)*e-pe)/2:(Math.pow(2*e-2,2)*((pe+1)*(2*e-2)+pe)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ge),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ge)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ve)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ve)/2+1,easeInBounce:e=>1-ye(1-e),easeOutBounce:ye,easeInOutBounce:e=>e<.5?(1-ye(1-2*e))/2:(1+ye(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,0),1))(0,0,("end"===t?Math.floor(r):Math.ceil(r))/e)}},we=Symbol.for("FluidValue.get"),xe=Symbol.for("FluidValue.observers"),Se=e=>!(!e||!e[we]),ke=e=>e&&e[we]?e[we]():e,Ce=e=>e[xe]||null;function Oe(e,t){let n=e[xe];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var _e=class{[we];[xe];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ee(this,e)}},Ee=(e,t)=>Te(e,we,t);function Ae(e,t){if(e[we]){let n=e[xe];n||Te(e,xe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Me(e,t){let n=e[xe];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[xe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Re,Te=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Pe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,De=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,je=new RegExp(`(${Pe.source})(%|[a-z]+)`,"i"),Ne=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Le=e=>{let[t,n]=Fe(e);if(!t||j())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Ie.test(n)?Le(n):n||e},Fe=e=>{let t=Ie.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},Be=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ze=e=>{Re||(Re=N?new RegExp(`(${Object.keys(N).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>ke(e).replace(Ie,Le).replace(De,fe).replace(Re,fe))),n=t.map((e=>e.match(Pe).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>he({...e,output:t})));return e=>{let n=!je.test(t[0])&&t.find((e=>je.test(e)))?.replace(Pe,""),i=0;return t[0].replace(Pe,(()=>`${r[i++](e)}${n||""}`)).replace(Ne,Be)}},Ue="react-spring: ",Ve=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${Ue}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},We=Ve(console.warn),He=Ve(console.warn);function $e(e){return O.str(e)&&("#"==e[0]||/\d/.test(e)||!j()&&Ie.test(e)||e in(N||{}))}new WeakMap,new Set,new WeakMap,new WeakMap,new WeakMap;var qe=j()?x.useEffect:x.useLayoutEffect,Ke=()=>{let e=(0,x.useRef)(!1);return qe((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Qe(){let e=(0,x.useState)()[1],t=Ke();return()=>{t.current&&e(Math.random())}}var Ge=e=>(0,x.useEffect)(e,Je),Je=[];function Xe(e){let t=(0,x.useRef)();return(0,x.useEffect)((()=>{t.current=e})),t.current}var Ye=Symbol.for("Animated:node"),Ze=e=>e&&e[Ye],et=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Ye,t),tt=e=>e&&e[Ye]&&e[Ye].getPayload(),nt=class{payload;constructor(){et(this,this)}getPayload(){return this.payload||[]}},rt=class extends nt{constructor(e){super(),this._value=e,O.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new rt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return O.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,O.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},it=class extends rt{_string=null;_toString;constructor(e){super(0),this._toString=he({output:[e,e]})}static create(e){return new it(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(O.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=he({output:[this.getValue(),e]})),this._value=0,super.reset()}},ot={dependencies:null},st=class extends nt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return A(this.source,((n,r)=>{var i;(i=n)&&i[Ye]===i?t[r]=n.getValue(e):Se(n)?t[r]=ke(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&E(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return A(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ot.dependencies&&Se(e)&&ot.dependencies.add(e);let t=tt(e);t&&E(t,(e=>this.add(e)))}},at=class extends st{constructor(e){super(e)}static create(e){return new at(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(lt)),!0)}};function lt(e){return($e(e)?it:rt).create(e)}function ut(e){let t=Ze(e);return t?t.constructor:O.arr(e)?at:$e(e)?it:rt}var ct=(e,t)=>{let n=!O.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)(((r,o)=>{let s=(0,x.useRef)(null),a=n&&(0,x.useCallback)((e=>{s.current=function(e,t){return e&&(O.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[l,u]=function(e,t){let n=new Set;return ot.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new st(e),ot.dependencies=null,[e,n]}(r,t),c=Qe(),f=()=>{let e=s.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},h=new ft(f,u),d=(0,x.useRef)();qe((()=>(d.current=h,E(u,(e=>Ae(e,h))),()=>{d.current&&(E(d.current.deps,(e=>Me(e,d.current))),i.cancel(d.current.update))}))),(0,x.useEffect)(f,[]),Ge((()=>()=>{let e=d.current;E(e.deps,(t=>Me(t,e)))}));let p=t.getComponentProps(l.getValue());return x.createElement(e,{...p,ref:a})}))},ft=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&i.write(this.update)}},ht=Symbol.for("AnimatedComponent"),dt=e=>O.str(e)?e:e&&O.str(e.displayName)?e.displayName:O.fun(e)&&e.name||null;function pt(e,...t){return O.fun(e)?e(...t):e}var mt=(e,t)=>!0===e||!!(t&&e&&(O.fun(e)?e(t):M(e).includes(t))),gt=(e,t)=>O.obj(e)?t&&e[t]:e,vt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yt=e=>e,bt=(e,t=yt)=>{let n=wt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);O.und(n)||(r[i]=n)}return r},wt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function St(e){let t=function(e){let t={},n=0;if(A(e,((e,r)=>{xt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){let n={to:t};return A(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function kt(e){return e=ke(e),O.arr(e)?e.map(kt):$e(e)?k.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ct(e){for(let t in e)return!0;return!1}function Ot(e){return O.fun(e)||O.arr(e)&&O.obj(e[0])}function _t(e,t){e.ref?.delete(e),t?.delete(e)}function Et(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var At={tension:170,friction:26,mass:1,damping:1,easing:be.linear,clamp:!1};function Mt(e,t){if(O.und(t.decay)){let n=!O.und(t.tension)||!O.und(t.friction);(n||!O.und(t.frequency)||!O.und(t.damping)||!O.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Rt=[];function Tt(e,{key:t,props:n,defaultProps:r,state:o,actions:s}){return new Promise(((a,l)=>{let u,c,f=mt(n.cancel??r?.cancel,t);if(f)p();else{O.und(n.pause)||(o.paused=mt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||mt(e,t)),u=pt(n.delay||0,t),e?(o.resumeQueue.add(d),s.pause()):(s.resume(),d())}function h(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),u=c.time-i.now()}function d(){u>0&&!k.skipAnimation?(o.delayed=!0,c=i.setTimeout(p,u),o.pauseQueue.add(h),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(c),e<=(o.cancelId||0)&&(f=!0);try{s.start({...n,callId:e,cancel:f},a)}catch(e){l(e)}}}))}var Pt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Nt(e.get()):t.every((e=>e.noop))?Dt(e.get()):jt(e.get(),t.every((e=>e.finished))),Dt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),jt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Nt=e=>({value:e,cancelled:!0,finished:!1});function It(e,t,n,r){let{callId:o,parentId:s,onRest:a}=t,{asyncTo:l,promise:u}=n;return s||e!==l||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;let c,f,h,d=bt(t,((e,t)=>"onRest"===t?void 0:e)),p=new Promise(((e,t)=>(c=e,f=t))),m=e=>{let t=o<=(n.cancelId||0)&&Nt(r)||o!==n.asyncId&&jt(r,!1);if(t)throw e.result=t,f(e),e},g=(e,t)=>{let i=new Ft,s=new Bt;return(async()=>{if(k.skipAnimation)throw Lt(n),s.result=jt(r,!1),f(s),s;m(i);let a=O.obj(e)?{...e}:{...t,to:e};a.parentId=o,A(d,((e,t)=>{O.und(a[t])&&(a[t]=e)}));let l=await r.start(a);return m(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};if(k.skipAnimation)return Lt(n),jt(r,!1);try{let t;t=O.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(c),p]),h=jt(r.get(),!0,!1)}catch(e){if(e instanceof Ft)h=e.result;else{if(!(e instanceof Bt))throw e;h=e.result}}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?u:void 0)}return O.fun(a)&&i.batchedUpdates((()=>{a(h,r,r.item)})),h})():u}function Lt(e,t){R(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ft=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Bt=class extends Error{result;constructor(){super("SkipAnimationSignal")}},zt=e=>e instanceof Vt,Ut=1,Vt=class extends _e{id=Ut++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=Ze(this);return e&&e.getValue()}to(...e){return k.to(this,e)}interpolate(...e){return We(`${Ue}The "interpolate" function is deprecated in v9 (use "to" instead)`),k.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Oe(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||W.sort(this),Oe(this,{type:"priority",parent:this,priority:e})}},Wt=Symbol.for("SpringPhase"),Ht=e=>(1&e[Wt])>0,$t=e=>(2&e[Wt])>0,qt=e=>(4&e[Wt])>0,Kt=(e,t)=>t?e[Wt]|=3:e[Wt]&=-3,Qt=(e,t)=>t?e[Wt]|=4:e[Wt]&=-5,Gt=class extends Vt{key;animation=new class{changed=!1;values=Rt;toValues=null;fromValues=Rt;to;from;config=new class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,At)}};immediate=!1};queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!O.und(e)||!O.und(t)){let n=O.obj(e)?{...e}:{...t,from:e};O.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($t(this)||this._state.asyncTo)||qt(this)}get goal(){return ke(this.animation.to)}get velocity(){let e=Ze(this);return e instanceof rt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Ht(this)}get isAnimating(){return $t(this)}get isPaused(){return qt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,s=tt(r.to);!s&&Se(r.to)&&(i=M(ke(r.to))),r.values.forEach(((a,l)=>{if(a.done)return;let u=a.constructor==it?1:s?s[l].lastPosition:i[l],c=r.immediate,f=u;if(!c){if(f=a.lastPosition,o.tension<=0)return void(a.done=!0);let t,n=a.elapsedTime+=e,i=r.fromValues[l],s=null!=a.v0?a.v0:a.v0=O.arr(o.velocity)?o.velocity[l]:o.velocity,h=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(O.und(o.duration))if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);f=i+s/(1-e)*(1-r),c=Math.abs(a.lastPosition-f)<=h,t=s*r}else{t=null==a.lastVelocity?s:a.lastVelocity;let n,r=o.restVelocity||h/10,l=o.clamp?0:o.bounce,d=!O.und(l),p=i==u?a.v0>0:i<u,m=!1,g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(n=Math.abs(t)>r,n||(c=Math.abs(u-f)<=h,!c));++e)d&&(m=f==u||f>u==p,m&&(t=-t*l,f=u)),t+=(1e-6*-o.tension*(f-u)+.001*-o.friction*t)/o.mass*g,f+=t*g}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,a.durationProgress>0&&(a.elapsedTime=o.duration*a.durationProgress,n=a.elapsedTime+=e)),r=(o.progress||0)+n/this._memoizedDuration,r=r>1?1:r<0?0:r,a.durationProgress=r),f=i+o.easing(r)*(u-i),t=(f-a.lastPosition)/e,c=1==r}a.lastVelocity=t,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),c=!0)}s&&!s[l].done&&(c=!1),c?a.done=!0:t=!1,a.setValue(f,o.round)&&(n=!0)}));let a=Ze(this),l=a.getValue();if(t){let e=ke(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return i.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($t(this)){let{to:e,config:t}=this.animation;i.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return O.und(e)?(n=this.queue||[],this.queue=[]):n=[O.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Pt(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),Lt(this._state,e&&this._lastCallId),i.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;n=O.obj(n)?n[t]:n,(null==n||Ot(n))&&(n=void 0),r=O.obj(r)?r[t]:r,null==r&&(r=void 0);let i={to:n,from:r};return Ht(this)||(e.reverse&&([n,r]=[r,n]),r=ke(r),O.und(r)?Ze(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bt(e,((e,t)=>/^on/.test(t)?gt(e,n):e))),nn(this,e,"onProps"),rn(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return Tt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{qt(this)||(Qt(this,!0),D(o.pauseQueue),rn(this,"onPause",jt(this,Jt(this,this.animation.to)),this))},resume:()=>{qt(this)&&(Qt(this,!1),$t(this)&&this._resume(),D(o.resumeQueue),rn(this,"onResume",jt(this,Jt(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=Xt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Nt(this));let r=!O.und(e.to),o=!O.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Nt(this));this._lastToId=t.callId}let{key:s,defaultProps:a,animation:l}=this,{to:u,from:c}=l,{to:f=u,from:h=c}=e;o&&!r&&(!t.default||O.und(f))&&(f=h),t.reverse&&([f,h]=[h,f]);let d=!_(h,c);d&&(l.from=h),h=ke(h);let p=!_(f,u);p&&this._focus(f);let m=Ot(t.to),{config:g}=l,{decay:v,velocity:y}=g;(r||o)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(Mt(n={...n},t),t={...n,...t}),Mt(e,t),Object.assign(e,t);for(let t in At)null==e[t]&&(e[t]=At[t]);let{frequency:r,damping:i}=e,{mass:o}=e;O.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(g,pt(t.config,s),t.config!==a.config?pt(a.config,s):void 0);let b=Ze(this);if(!b||O.und(f))return n(jt(this,!0));let w=O.und(t.reset)?o&&!t.default:!O.und(h)&&mt(t.reset,s),x=w?h:this.get(),S=kt(f),k=O.num(S)||O.arr(S)||$e(S),C=!m&&(!k||mt(a.immediate||t.immediate,s));if(p){let e=ut(f);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}let A=b.constructor,R=Se(f),T=!1;if(!R){let e=w||!Ht(this)&&d;(p||e)&&(T=_(kt(x),S),R=!T),(!_(l.immediate,C)&&!C||!_(g.decay,v)||!_(g.velocity,y))&&(R=!0)}if(T&&$t(this)&&(l.changed&&!w?R=!0:R||this._stop(u)),!m&&((R||Se(u))&&(l.values=b.getPayload(),l.toValues=Se(f)?null:A==it?[1]:M(S)),l.immediate!=C&&(l.immediate=C,!C&&!w&&this._set(u)),R)){let{onRest:e}=l;E(tn,(e=>nn(this,t,e)));let r=jt(this,Jt(this,u));D(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&i.batchedUpdates((()=>{l.changed=!w,e?.(r,this),w?pt(a.onRest,r):l.onStart?.(r,this)}))}w&&this._set(x),m?n(It(t.to,t,this._state,this)):R?this._start():$t(this)&&!p?this._pendingCalls.add(n):n(Dt(x))}_focus(e){let t=this.animation;e!==t.to&&(Ce(this)&&this._detach(),t.to=e,Ce(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Se(t)&&(Ae(t,this),zt(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Se(e)&&Me(e,this)}_set(e,t=!0){let n=ke(e);if(!O.und(n)){let e=Ze(this);if(!e||!_(n,e.getValue())){let r=ut(n);e&&e.constructor==r?e.setValue(n):et(this,r.create(n)),e&&i.batchedUpdates((()=>{this._onChange(n,t)}))}}return Ze(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,rn(this,"onStart",jt(this,Jt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pt(this.animation.onChange,e,this)),pt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;Ze(this).reset(ke(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),$t(this)||(Kt(this,!0),qt(this)||this._resume())}_resume(){k.skipAnimation?this.finish():W.start(this)}_stop(e,t){if($t(this)){Kt(this,!1);let n=this.animation;E(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oe(this,{type:"idle",parent:this});let r=t?Nt(this.get()):jt(this.get(),Jt(this,e??n.to));D(this._pendingCalls,r),n.changed&&(n.changed=!1,rn(this,"onRest",r,this))}}};function Jt(e,t){let n=kt(t);return _(kt(e.get()),n)}function Xt(e,t=e.loop,n=e.to){let r=pt(t);if(r){let i=!0!==r&&St(r),o=(i||e).reverse,s=!i||i.reset;return Yt({...e,loop:t,default:!1,pause:void 0,to:!o||Ot(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function Yt(e){let{to:t,from:n}=e=St(e),r=new Set;return O.obj(t)&&en(t,r),O.obj(n)&&en(n,r),e.keys=r.size?Array.from(r):null,e}function Zt(e){let t=Yt(e);return O.und(t.default)&&(t.default=bt(t)),t}function en(e,t){A(e,((e,n)=>null!=e&&t.add(n)))}var tn=["onStart","onRest","onChange","onPause","onResume"];function nn(e,t,n){e.animation[n]=t[n]!==vt(t,n)?gt(t[n],e.key):void 0}function rn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var on=["onStart","onChange","onRest"],sn=1,an=class{id=sn++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];O.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Yt(e)),this}start(e){let{queue:t}=this;return e?t=M(e).map(Yt):this.queue=[],this._flush?this._flush(this,t):(pn(this,t),ln(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;E(M(t),(t=>n[t].stop(!!e)))}else Lt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(O.und(e))this.start({pause:!0});else{let t=this.springs;E(M(e),(e=>t[e].pause()))}return this}resume(e){if(O.und(e))this.start({pause:!1});else{let t=this.springs;E(M(e),(e=>t[e].resume()))}return this}each(e){A(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,R(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&R(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),o&&(this._started=!1,R(n,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}i.onFrame(this._onFrame)}};function ln(e,t){return Promise.all(t.map((t=>un(e,t)))).then((t=>Pt(e,t)))}async function un(e,t,n){let{keys:r,to:o,from:s,loop:a,onRest:l,onResolve:u}=t,c=O.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===s&&(t.from=null);let f=O.arr(o)||O.fun(o)?o:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):E(on,(n=>{let r=t[n];if(O.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let h=e._state;t.pause===!h.paused?(h.paused=t.pause,D(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);let d=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===vt(t,"cancel");(f||p&&h.asyncId)&&d.push(Tt(++e._lastAsyncId,{props:t,state:h,actions:{pause:C,resume:C,start(t,n){p?(Lt(h,e._lastAsyncId),n(Nt(e))):(t.onRest=l,n(It(f,t,h,e)))}}})),h.paused&&await new Promise((e=>{h.resumeQueue.add(e)}));let m=Pt(e,await Promise.all(d));if(a&&m.finished&&(!n||!m.noop)){let n=Xt(t,a,o);if(n)return pn(e,[n]),un(e,n,!0)}return u&&i.batchedUpdates((()=>u(m,e,e.item))),m}function cn(e,t){let n={...e.springs};return t&&E(M(t),(e=>{O.und(e.keys)&&(e=Yt(e)),O.obj(e.to)||(e={...e,to:void 0}),dn(n,e,(e=>hn(e)))})),fn(e,n),n}function fn(e,t){A(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ae(t,e))}))}function hn(e,t){let n=new Gt;return n.key=e,t&&Ae(n,t),n}function dn(e,t,n){t.keys&&E(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function pn(e,t){E(t,(t=>{dn(e.springs,t,(t=>hn(t,e)))}))}var mn,gn=({children:e,...t})=>{let n=(0,x.useContext)(vn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)((()=>({inputs:t,result:e()}))),r=(0,x.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs)||(o={inputs:t,result:e()}):o=n,(0,x.useEffect)((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:r,immediate:i})),[r,i]);let{Provider:o}=vn;return x.createElement(o,{value:t},e)},vn=(mn=gn,Object.assign(mn,x.createContext({})),mn.Provider._context=mn,mn.Consumer._context=mn,mn);gn.Provider=vn.Provider,gn.Consumer=vn.Consumer;var yn=()=>{let e=[],t=function(t){He(`${Ue}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return E(e,((e,i)=>{if(O.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return E(e,(e=>e.pause(...arguments))),this},t.resume=function(){return E(e,(e=>e.resume(...arguments))),this},t.set=function(t){E(e,((e,n)=>{let r=O.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){let n=[];return E(e,((e,r)=>{if(O.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return E(e,(e=>e.stop(...arguments))),this},t.update=function(t){return E(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};let n=function(e,t,n){return O.fun(e)?e(n,t):e};return t._getProps=n,t};function bn(e,t){let n=O.fun(e),[[r],i]=function(e,t,n){let r=O.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)((()=>r||3==arguments.length?yn():void 0),[]),o=(0,x.useRef)(0),s=Qe(),a=(0,x.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){let n=cn(e,t);return o.current>0&&!a.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?ln(e,t):new Promise((r=>{fn(e,n),a.queue.push((()=>{r(ln(e,t))})),s()}))}})),[]),l=(0,x.useRef)([...a.ctrls]),u=[],c=Xe(e)||0;function f(e,n){for(let i=e;i<n;i++){let e=l.current[i]||(l.current[i]=new an(null,a.flush)),n=r?r(i,e):t[i];n&&(u[i]=Zt(n))}}(0,x.useMemo)((()=>{E(l.current.slice(e,c),(e=>{_t(e,i),e.stop(!0)})),l.current.length=e,f(c,e)}),[e]),(0,x.useMemo)((()=>{f(0,Math.min(c,e))}),n);let h=l.current.map(((e,t)=>cn(e,u[t]))),d=(0,x.useContext)(gn),p=Xe(d),m=d!==p&&Ct(d);qe((()=>{o.current++,a.ctrls=l.current;let{queue:e}=a;e.length&&(a.queue=[],E(e,(e=>e()))),E(l.current,((e,t)=>{i?.add(e),m&&e.start({default:d});let n=u[t];n&&(Et(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Ge((()=>()=>{E(a.ctrls,(e=>e.stop(!0)))}));let g=h.map((e=>({...e})));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function wn(e,t,n){let r=O.fun(t)&&t,{reset:i,sort:o,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,h=(0,x.useMemo)((()=>r||3==arguments.length?yn():void 0),[]),d=M(e),p=[],m=(0,x.useRef)(null),g=i?null:m.current;qe((()=>{m.current=p})),Ge((()=>(E(p,(e=>{h?.add(e.ctrl),e.ctrl.ref=h})),()=>{E(m.current,(e=>{e.expired&&clearTimeout(e.expirationId),_t(e.ctrl,h),e.ctrl.stop(!0)}))})));let v=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map((e=>{let n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):xn++}))}return O.und(n)?e:O.fun(n)?e.map(n):M(n)}(d,r?r():t,g),y=i&&m.current||[];qe((()=>E(y,(({ctrl:e,item:t,key:n})=>{_t(e,h),pt(u,t,n)}))));let b=[];if(g&&E(g,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=v.indexOf(e.key))&&(p[t]=e)})),E(d,((e,t)=>{p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new an},p[t].ctrl.item=e)})),b.length){let e=-1,{leave:n}=r?r():t;E(b,((t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:d[t]}):n&&p.splice(++e,0,i)}))}O.fun(o)&&p.sort(((e,t)=>o(e.item,t.item)));let w=-s,S=Qe(),k=bt(t),C=new Map,_=(0,x.useRef)(new Map),A=(0,x.useRef)(!1);E(p,((e,n)=>{let i,o,u=e.key,h=e.phase,d=r?r():t,p=pt(d.delay||0,u);if("mount"==h)i=d.enter,o="enter";else{let e=v.indexOf(u)<0;if("leave"!=h)if(e)i=d.leave,o="leave";else{if(!(i=d.update))return;o="update"}else{if(e)return;i=d.enter,o="enter"}}if(i=pt(i,e.item,n),i=O.obj(i)?St(i):{to:i},!i.config){let t=f||k.config;i.config=pt(t,e.item,n,o)}w+=s;let y={...k,delay:p+w,ref:c,immediate:d.immediate,reset:!1,...i};if("enter"==o&&O.und(y.from)){let i=r?r():t,o=O.und(i.initial)||g?i.from:i.initial;y.from=pt(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{pt(b,e);let t=m.current,n=t.find((e=>e.key===u));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){let e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){let t=pt(a,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(S,r)))}}e&&t.some((e=>e.expired))&&(_.current.delete(n),l&&(A.current=!0),S())}};let x=cn(e.ctrl,y);"leave"===o&&l?_.current.set(e,{phase:o,springs:x,payload:y}):C.set(e,{phase:o,springs:x,payload:y})}));let R=(0,x.useContext)(gn),T=Xe(R),P=R!==T&&Ct(R);qe((()=>{P&&E(p,(e=>{e.ctrl.start({default:R})}))}),[R]),E(C,((e,t)=>{if(_.current.size){let e=p.findIndex((e=>e.key===t.key));p.splice(e,1)}})),qe((()=>{E(_.current.size?_.current:C,(({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,h?.add(r),P&&"enter"==e&&r.start({default:R}),t&&(Et(r,t.ref),!r.ref&&!h||A.current?(r.start(t),A.current&&(A.current=!1)):r.update(t))}))}),i?void 0:n);let D=e=>x.createElement(x.Fragment,null,p.map(((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?x.createElement(i.type,{...i.props,key:O.str(t.key)||O.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i})));return h?[D,h]:D}var xn=1,Sn=class extends Vt{constructor(e,t){super(),this.source=e,this.calc=he(...t);let n=this._get(),r=ut(n);et(this,r.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();_(t,this.get())||(Ze(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Cn(this._active)&&On(this)}_get(){let e=O.arr(this.source)?this.source.map(ke):M(ke(this.source));return this.calc(...e)}_start(){this.idle&&!Cn(this._active)&&(this.idle=!1,E(tt(this),(e=>{e.done=!1})),k.skipAnimation?(i.batchedUpdates((()=>this.advance())),On(this)):W.start(this))}_attach(){let e=1;E(M(this.source),(t=>{Se(t)&&Ae(t,this),zt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){E(M(this.source),(e=>{Se(e)&&Me(e,this)})),this._active.clear(),On(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=M(this.source).reduce(((e,t)=>Math.max(e,(zt(t)?t.priority:0)+1)),0))}};function kn(e){return!1!==e.idle}function Cn(e){return!e.size||Array.from(e).every(kn)}function On(e){e.idle||(e.idle=!0,E(tt(e),(e=>{e.done=!0})),Oe(e,{type:"idle",parent:e}))}k.assign({createStringInterpolator:ze,to:(e,t)=>new Sn(e,t)}),W.advance;var _n=n(3935),En=/^--/;function An(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||En.test(e)||Rn.hasOwnProperty(e)&&Rn[e]?(""+t).trim():t+"px"}var Mn={},Rn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Tn=["Webkit","Ms","Moz","O"];Rn=Object.keys(Rn).reduce(((e,t)=>(Tn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Rn);var Pn=/^(matrix|translate|scale|rotate|skew)/,Dn=/^(translate)/,jn=/^(rotate|skew)/,Nn=(e,t)=>O.num(e)&&0!==e?e+t:e,In=(e,t)=>O.arr(e)?e.every((e=>In(e,t))):O.num(e)?e===t:parseFloat(e)===t,Ln=class extends st{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>Nn(e,"px"))).join(",")})`,In(e,0)]))),A(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(Pn.test(t)){if(delete r[t],O.und(e))return;let n=Dn.test(t)?"px":jn.test(t)?"deg":"";i.push(M(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Nn(i,n)})`,In(i,0)]:e=>[`${t}(${e.map((e=>Nn(e,n))).join(",")})`,In(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new Fn(i,o)),super(r)}},Fn=class extends _e{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return E(this.inputs,((n,r)=>{let i=ke(n[0]),[o,s]=this.transforms[r](O.arr(i)?i:n.map(ke));e+=" "+o,t=t&&s})),t?"none":e}observerAdded(e){1==e&&E(this.inputs,(e=>E(e,(e=>Se(e)&&Ae(e,this)))))}observerRemoved(e){0==e&&E(this.inputs,(e=>E(e,(e=>Se(e)&&Me(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Oe(this,e)}};k.assign({batchedUpdates:_n.unstable_batchedUpdates,createStringInterpolator:ze,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Bn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new st(e)),getComponentProps:r=(e=>e)}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=dt(e)||"Anonymous";return(e=O.str(e)?o[e]||(o[e]=ct(e,i)):e[ht]||(e[ht]=ct(e,i))).displayName=`Animated(${t})`,e};return A(e,((t,n)=>{O.arr(e)&&(n=dt(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Mn[t]||(Mn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in r)if(r.hasOwnProperty(t)){let n=An(t,r[t]);En.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new Ln(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),zn=Bn.animated},2599:(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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{Ep:()=>f,J0:()=>a,RQ:()=>P,WK:()=>L,Zn:()=>A,Zq:()=>R,aU:()=>i,cP:()=>h,fp:()=>p,pC:()=>T,q_:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,s){void 0===s&&(s={});let{window:l=document.defaultView,v5Compat:h=!1}=s,d=l.history,p=i.Pop,m=null,g=v();function v(){return(d.state||{idx:null}).idx}function y(){p=i.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:f(e);return a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,d.replaceState(r({},d.state,{idx:g}),""));let w={get action(){return p},get location(){return e(l,d)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(o,y),m=e,()=>{l.removeEventListener(o,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=i.Push;let r=c(w.location,e,t);n&&n(r,e),g=v()+1;let o=u(r,g),s=w.createHref(r);try{d.pushState(o,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(s)}h&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=i.Replace;let r=c(w.location,e,t);n&&n(r,e),g=v();let o=u(r,g),s=w.createHref(r);d.replaceState(o,"",s),h&&m&&m({action:p,location:w.location,delta:0})},go:e=>d.go(e)};return w}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:f(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;function p(e,t,n){void 0===n&&(n="/");let r=A(("string"==typeof t?h(t):t).pathname||"/",n);if(null==r)return null;let i=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e<i.length;++e)o=O(i[e],E(r));return o}function m(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=P([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),m(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:C(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of g(e.path))i(e,t,n);else i(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=g(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const v=/^:\w+$/,y=3,b=2,w=1,x=10,S=-2,k=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(k)&&(r+=S),t&&(r+=b),n.filter((e=>!k(e))).reduce(((e,t)=>e+(v.test(t)?y:""===t?w:x)),r)}function O(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e<n.length;++e){let s=n[e],a=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",u=_({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(r,u.params);let c=s.route;o.push({params:r,pathname:P([i,u.pathname]),pathnameBase:D(P([i,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(i=P([i,u.pathnameBase]))}return o}function _(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return l(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(a[n]||"",t),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function E(e){try{return decodeURI(e)}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function T(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=h(e):(o=r({},e),a(!o.pathname||!o.pathname.includes("?"),M("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),M("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),M("#","search","hash",o)));let s,l=""===e||""===o.pathname,u=l?"/":o.pathname;if(i||null==u)s=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?h(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:j(r),hash:N(i)}}(o,s),f=u&&"/"!==u&&u.endsWith("/"),d=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const P=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const F=["post","put","patch","delete"],B=(new Set(F),["get",...F]);new Set(B),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},3126:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{ZP:()=>at});var a=Math.max,l=Math.min,u=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),a=1,l=1;t&&o(e)&&(a=e.offsetWidth>0&&u(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&u(s.height)/e.offsetHeight||1);var c=(i(e)?r(e):window).visualViewport,h=!f()&&n,d=(s.left+(h&&c?c.offsetLeft:0))/a,p=(s.top+(h&&c?c.offsetTop:0))/l,m=s.width/a,g=s.height/l;return{width:m,height:g,top:p,right:d+m,bottom:p+g,left:d,x:d,y:p}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+d(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i,s,a=o(t),l=o(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,r=u(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=m(t),f=h(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==p(t)||y(c))&&(v=(i=t)!==r(i)&&o(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:d(i)),o(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):c&&(b.x=g(c))),{x:f.left+v.scrollLeft-b.x,y:f.top+v.scrollTop-b.y,width:f.width,height:f.height}}function w(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function S(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:o(e)&&y(e)?e:S(x(e))}function k(e,t){var n;void 0===t&&(t=[]);var i=S(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=r(i),a=o?[s].concat(s.visualViewport||[],y(i)?i:[]):i,l=t.concat(a);return o?l:l.concat(k(x(a)))}function C(e){return["table","td","th"].indexOf(p(e))>=0}function O(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function _(e){for(var t=r(e),n=O(e);n&&C(n)&&"static"===v(n).position;)n=O(n);return n&&("html"===p(n)||"body"===p(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&o(e)&&"fixed"===v(e).position)return null;var n=x(e);for(s(n)&&(n=n.host);o(n)&&["html","body"].indexOf(p(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var E="top",A="bottom",M="right",R="left",T="auto",P=[E,A,M,R],D="start",j="end",N="viewport",I="popper",L=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+j])}),[]),F=[].concat(P,[T]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+j])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function z(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function W(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?U:o;return function(e,t,n){void 0===n&&(n=s);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;h(),l.options=Object.assign({},s,l.options,o),l.scrollParents={reference:i(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var a,c,d=function(e){var t=z(e);return B.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:f,options:r});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(V(t,n)){l.rects={reference:b(t,_(n),"fixed"===l.options.strategy),popper:w(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,s=i.options,a=void 0===s?{}:s,u=i.name;"function"==typeof o&&(l=o({state:l,options:a,name:u,instance:f})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){h(),c=!0}};if(!V(e,t))return f;function h(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var H={passive:!0};function $(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Q(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?$(i):null,s=i?q(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case E:t={x:a,y:n.y-r.height};break;case A:t={x:a,y:n.y+n.height};break;case M:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?K(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case D:t[u]=t[u]-(n[c]/2-r[c]/2);break;case j:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,h=e.roundOffsets,d=e.isFixed,p=a.x,g=void 0===p?0:p,y=a.y,b=void 0===y?0:y,w="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var x=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),k=R,C=E,O=window;if(f){var T=_(n),P="clientHeight",D="clientWidth";T===r(n)&&"static"!==v(T=m(n)).position&&"absolute"===l&&(P="scrollHeight",D="scrollWidth"),(o===E||(o===R||o===M)&&s===j)&&(C=A,b-=(d&&T===O&&O.visualViewport?O.visualViewport.height:T[P])-i.height,b*=c?1:-1),o!==R&&(o!==E&&o!==A||s!==j)||(k=M,g-=(d&&T===O&&O.visualViewport?O.visualViewport.width:T[D])-i.width,g*=c?1:-1)}var N,I=Object.assign({position:l},f&&G),L=!0===h?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:u(n*i)/i||0,y:u(r*i)/i||0}}({x:g,y:b},r(n)):{x:g,y:b};return g=L.x,b=L.y,c?Object.assign({},I,((N={})[C]=S?"0":"",N[k]=x?"0":"",N.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",N)):Object.assign({},I,((t={})[C]=S?b+"px":"",t[k]=x?g+"px":"",t.transform="",t))}const X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&p(r)&&(Object.assign(r.style,s),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return Y[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t,n){return t===N?re(function(e,t){var n=r(e),i=m(e),o=n.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=f();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+g(e),y:u}}(e,n)):i(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):re(function(e){var t,n=m(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=a(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+g(e),u=-r.scrollTop;return"rtl"===v(i||n).direction&&(l+=a(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}(m(e)))}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ae(e,t){void 0===t&&(t={});var n=t,r=n.placement,s=void 0===r?e.placement:r,u=n.strategy,c=void 0===u?e.strategy:u,f=n.boundary,d=void 0===f?"clippingParents":f,g=n.rootBoundary,y=void 0===g?N:g,b=n.elementContext,w=void 0===b?I:b,S=n.altBoundary,C=void 0!==S&&S,O=n.padding,R=void 0===O?0:O,T=oe("number"!=typeof R?R:se(R,P)),D=w===I?"reference":I,j=e.rects.popper,L=e.elements[C?D:w],F=function(e,t,n,r){var s="clippingParents"===t?function(e){var t=k(x(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?_(e):e;return i(n)?t.filter((function(e){return i(e)&&ne(e,n)&&"body"!==p(e)})):[]}(e):[].concat(t),u=[].concat(s,[n]),c=u[0],f=u.reduce((function(t,n){var i=ie(e,n,r);return t.top=a(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=a(i.left,t.left),t}),ie(e,c,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(i(L)?L:L.contextElement||m(e.elements.popper),d,y,c),B=h(e.elements.reference),z=Q({reference:B,element:j,strategy:"absolute",placement:s}),U=re(Object.assign({},j,z)),V=w===I?U:B,W={top:F.top-V.top+T.top,bottom:V.bottom-F.bottom+T.bottom,left:F.left-V.left+T.left,right:V.right-F.right+T.right},H=e.modifiersData.offset;if(w===I&&H){var $=H[s];Object.keys(W).forEach((function(e){var t=[M,A].indexOf(e)>=0?1:-1,n=[E,A].indexOf(e)>=0?"y":"x";W[e]+=$[n]*t}))}return W}function le(e,t,n){return a(e,l(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ce(e){return[E,M,A,R].some((function(t){return e[t]>=0}))}var fe=W({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=void 0===o||o,a=i.resize,l=void 0===a||a,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,H)})),l&&u.addEventListener("resize",n.update,H),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),l&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:$(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=F.reduce((function(e,n){return e[n]=function(e,t,n){var r=$(e),i=[R,E].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[R,M].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,v=$(g),y=l||(v!==g&&p?function(e){if($(e)===T)return[];var t=Z(e);return[te(e),t,te(t)]}(g):[Z(g)]),b=[g].concat(y).reduce((function(e,n){return e.concat($(n)===T?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?F:l,c=q(r),f=c?a?L:L.filter((function(e){return q(e)===c})):P,h=f.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=f);var d=h.reduce((function(t,n){return t[n]=ae(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[$(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,C=b[0],O=0;O<b.length;O++){var _=b[O],j=$(_),N=q(_)===D,I=[E,A].indexOf(j)>=0,B=I?"width":"height",z=ae(t,{placement:_,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),U=I?N?M:R:N?A:E;w[B]>x[B]&&(U=Z(U));var V=Z(U),W=[];if(o&&W.push(z[j]<=0),a&&W.push(z[U]<=0,z[V]<=0),W.every((function(e){return e}))){C=_,k=!1;break}S.set(_,W)}if(k)for(var H=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},K=p?3:1;K>0&&"break"!==H(K);K--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,u=void 0!==s&&s,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=ae(t,{boundary:c,rootBoundary:f,padding:d,altBoundary:h}),b=$(t.placement),x=q(t.placement),S=!x,k=K(b),C="x"===k?"y":"x",O=t.modifiersData.popperOffsets,T=t.rects.reference,P=t.rects.popper,j="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(O){if(o){var F,B="y"===k?E:R,z="y"===k?A:M,U="y"===k?"height":"width",V=O[k],W=V+y[B],H=V-y[z],Q=m?-P[U]/2:0,G=x===D?T[U]:P[U],J=x===D?-P[U]:-T[U],X=t.elements.arrow,Y=m&&X?w(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[B],te=Z[z],ne=le(0,T[U],Y[U]),re=S?T[U]/2-Q-ne-ee-N.mainAxis:G-ne-ee-N.mainAxis,ie=S?-T[U]/2+Q+ne+te+N.mainAxis:J+ne+te+N.mainAxis,oe=t.elements.arrow&&_(t.elements.arrow),se=oe?"y"===k?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(F=null==I?void 0:I[k])?F:0,ce=V+ie-ue,fe=le(m?l(W,V+re-ue-se):W,V,m?a(H,ce):H);O[k]=fe,L[k]=fe-V}if(u){var he,de="x"===k?E:R,pe="x"===k?A:M,me=O[C],ge="y"===C?"height":"width",ve=me+y[de],ye=me-y[pe],be=-1!==[E,R].indexOf(b),we=null!=(he=null==I?void 0:I[C])?he:0,xe=be?ve:me-T[ge]-P[ge]-we+N.altAxis,Se=be?me+T[ge]+P[ge]-we-N.altAxis:ye,ke=m&&be?function(e,t,n){var r=le(e,t,n);return r>n?n:r}(xe,me,Se):le(m?xe:ve,me,m?Se:ye);O[C]=ke,L[C]=ke-me}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=$(n.placement),l=K(a),u=[R,M].indexOf(a)>=0?"height":"width";if(o&&s){var c=function(e,t){return oe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,P))}(i.padding,n),f=w(o),h="y"===l?E:R,d="y"===l?A:M,p=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=_(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=c[h],x=v-f[u]-c[d],S=v/2-f[u]/2+y,k=le(b,S,x),C=l;n.modifiersData[r]=((t={})[C]=k,t.centerOffset=k-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ae(t,{elementContext:"reference"}),a=ae(t,{altBoundary:!0}),l=ue(s,r),u=ue(a,i,o),c=ce(l),f=ce(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),he="tippy-content",de="tippy-backdrop",pe="tippy-arrow",me="tippy-svg-arrow",ge={passive:!0,capture:!0},ve=function(){return document.body};function ye(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function be(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function we(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Se(e){return[].concat(e)}function ke(e,t){-1===e.indexOf(t)&&e.push(t)}function Ce(e){return[].slice.call(e)}function Oe(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function _e(e){return["Element","Fragment"].some((function(t){return be(e,t)}))}function Ee(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ae(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Me(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Re(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Te={isTouch:!1},Pe=0;function De(){Te.isTouch||(Te.isTouch=!0,window.performance&&document.addEventListener("mousemove",je))}function je(){var e=performance.now();e-Pe<20&&(Te.isTouch=!1,document.removeEventListener("mousemove",je)),Pe=e}function Ne(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ie=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Le=Object.assign({appendTo:ve,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Fe=Object.keys(Le);function Be(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Le[i])?r:o),t}),{});return Object.assign({},e,t)}function ze(e,t){var n=Object.assign({},t,{content:we(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Be(Object.assign({},Le,{plugins:t}))):Fe).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Le.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ue(e){var t=e.firstElementChild,n=Ce(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(he)})),arrow:n.find((function(e){return e.classList.contains(pe)||e.classList.contains(me)})),backdrop:n.find((function(e){return e.classList.contains(de)}))}}var Ve=1,We=[],He=[];function $e(e,t){var n,r,i,o,s,a,l,u,c=ze(e,Object.assign({},Le,Be(Oe(t)))),f=!1,h=!1,d=!1,p=!1,m=[],g=xe(K,c.interactiveDebounce),v=Ve++,y=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:document.createElement("div"),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(!b.state.isDestroyed){D("onBeforeUpdate",[b,t]),$();var n=b.props,r=ze(e,Object.assign({},n,Oe(t),{ignoreAttributes:!0}));b.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(I(),g=xe(K,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Se(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),N(),P(),S&&S(n,r),b.popperInstance&&(X(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Te.isTouch&&!b.props.touch,i=ye(b.props.duration,0,Le.duration);if(!(e||t||n||r||A().hasAttribute("disabled")||(D("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,E()&&(x.style.visibility="visible"),P(),z(),b.state.isMounted||(x.style.transition="none"),E()){var o=R();Ee([o.box,o.content],0)}var s,l,u;a=function(){var e;if(b.state.isVisible&&!p){if(p=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=R(),n=t.box,r=t.content;Ee([n,r],i),Ae([n,r],"visible")}j(),N(),ke(He,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&E()&&function(e,t){V(e,(function(){b.state.isShown=!0,D("onShown",[b])}))}(i)}},l=b.props.appendTo,u=A(),(s=b.props.interactive&&l===ve||"parent"===l?u.parentNode:we(l,[u])).contains(x)||s.appendChild(x),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=ye(b.props.duration,1,Le.duration);if(!(e||t||n)&&(D("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,p=!1,f=!1,E()&&(x.style.visibility="hidden"),I(),U(),P(!0),E()){var i=R(),o=i.box,s=i.content;b.props.animation&&(Ee([o,s],r),Ae([o,s],"hidden"))}j(),N(),b.props.animation?E()&&function(e,t){V(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()}},hideWithInteractivity:function(e){M().addEventListener("mousemove",g),ke(We,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Y(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),He=He.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b]))}};if(!c.render)return b;var w=c.render(b),x=w.popper,S=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var k=y.map((function(e){return e.fn(b)})),C=e.hasAttribute("aria-expanded");return H(),N(),P(),D("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",g)})),b;function O(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===O()[0]}function E(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function A(){return l||e}function M(){var e,t,n=A().parentNode;return n?null!=(t=Se(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function R(){return Ue(x)}function T(e){return b.state.isMounted&&!b.state.isVisible||Te.isTouch||o&&"focus"===o.type?0:ye(b.props.delay,e?0:1,Le.delay)}function P(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function D(e,t,n){var r;void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=b.props)[e].apply(r,t)}function j(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;Se(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function N(){!C&&b.props.aria.expanded&&Se(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function I(){M().removeEventListener("mousemove",g),We=We.filter((function(e){return e!==g}))}function L(t){if(!Te.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Re(x,n)){if(Se(b.props.triggerTarget||e).some((function(e){return Re(e,n)}))){if(Te.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||U())}}}function F(){d=!0}function B(){d=!1}function z(){var e=M();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,ge),e.addEventListener("touchstart",B,ge),e.addEventListener("touchmove",F,ge)}function U(){var e=M();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,ge),e.removeEventListener("touchstart",B,ge),e.removeEventListener("touchmove",F,ge)}function V(e,t){var n=R().box;function r(e){e.target===n&&(Me(n,"remove",r),t())}if(0===e)return t();Me(n,"remove",s),Me(n,"add",r),s=r}function W(t,n,r){void 0===r&&(r=!1),Se(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;_()&&(W("touchstart",q,{passive:!0}),W("touchend",Q,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(W(e,q),e){case"mouseenter":W("mouseleave",Q);break;case"focus":W(Ie?"focusout":"blur",G);break;case"focusin":W("focusout",G)}}))}function $(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function q(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!h){var r="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,N(),!b.state.isVisible&&be(e,"MouseEvent")&&We.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function K(e){var t=e.target,n=A().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=Z().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,s=i.placement.split("-")[0],a=i.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,f="left"===s?a.right.x:0,h=t.top-r+l>o,d=r-t.bottom-u>o,p=t.left-n+c>o,m=n-t.right-f>o;return h||d||p||m}))})(r,e)&&(I(),te(e))}}function Q(e){J(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==A()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function J(e){return!!Te.isTouch&&_()!==e.type.indexOf("touch")>=0}function X(){Y();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=E()?Ue(x).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||A()}:e,c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var n=R().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];E()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=fe(u,x,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:c}))}function Y(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return Ce(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),z();var t=T(!0),r=O(),i=r[0],o=r[1];Te.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=T(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else U()}}function qe(e,t){void 0===t&&(t={});var n=Le.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",De,ge),window.addEventListener("blur",Ne);var r,i=Object.assign({},t,{plugins:n}),o=(r=e,_e(r)?[r]:function(e){return be(e,"NodeList")}(r)?Ce(r):Array.isArray(r)?r:Ce(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&$e(t,i);return n&&e.push(n),e}),[]);return _e(e)?o[0]:o}qe.defaultProps=Le,qe.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Le[t]=e[t]}))},qe.currentInput=Te,Object.assign({},X,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),qe.setDefaultProps({animation:!1});const Ke=qe;var Qe=n(7294),Ge=n(3935);function Je(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Xe="undefined"!=typeof window&&"undefined"!=typeof document;function Ye(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Ze(){return Xe&&document.createElement("div")}function et(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!et(e[n],t[n]))return!1}return!0}return!1}function tt(e){var t=[];return e.forEach((function(e){t.find((function(t){return et(e,t)}))||t.push(e)})),t}var nt=Xe?Qe.useLayoutEffect:Qe.useEffect;function rt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var it={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||rt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&rt(t,"remove",e.props.className)},onAfterUpdate:r}}};function ot(e){return function(t){var n,r,i=t.children,o=t.content,s=t.visible,a=t.singleton,l=t.render,u=t.reference,c=t.disabled,f=void 0!==c&&c,h=t.ignoreAttributes,d=void 0===h||h,p=(t.__source,t.__self,Je(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==s,g=void 0!==a,v=(0,Qe.useState)(!1),y=v[0],b=v[1],w=(0,Qe.useState)({}),x=w[0],S=w[1],k=(0,Qe.useState)(),C=k[0],O=k[1],_=(n=function(){return{container:Ze(),renders:1}},(r=(0,Qe.useRef)()).current||(r.current="function"==typeof n?n():n),r.current),E=Object.assign({ignoreAttributes:d},p,{content:_.container});m&&(E.trigger="manual",E.hideOnClick=!1),g&&(f=!0);var A=E,M=E.plugins||[];l&&(A=Object.assign({},E,{plugins:g&&null!=a.data?[].concat(M,[{fn:function(){return{onTrigger:function(e,t){var n=a.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,O(n.content)}}}}]):M,render:function(){return{popper:_.container}}}));var R=[u].concat(i?[i.type]:[]);return nt((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||_.ref||Ze(),Object.assign({},A,{plugins:[it].concat(E.plugins||[])}));return _.instance=n,f&&n.disable(),s&&n.show(),g&&a.hook({instance:n,content:o,props:A,setSingletonContent:O}),b(!0),function(){n.destroy(),null==a||a.cleanup(n)}}),R),nt((function(){var e,t,n,r,i;if(1!==_.renders){var l=_.instance;l.setProps((t=l.props,n=A,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:tt([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=l.popperInstance)||e.forceUpdate(),f?l.disable():l.enable(),m&&(s?l.show():l.hide()),g&&a.hook({instance:l,content:o,props:A,setSingletonContent:O})}else _.renders++})),nt((function(){var e;if(l){var t=_.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;x.placement===n.placement&&x.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&x.escaped===(null==r?void 0:r.hasPopperEscaped)||S({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[x.placement,x.referenceHidden,x.escaped].concat(R)),Qe.createElement(Qe.Fragment,null,i?(0,Qe.cloneElement)(i,{ref:function(e){_.ref=e,Ye(i.ref,e)}}):null,y&&(0,Ge.createPortal)(l?l(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(x),C,_.instance):o,_.container))}}var st=function(e,t){return(0,Qe.forwardRef)((function(n,r){var i=n.children,o=Je(n,["children"]);return Qe.createElement(e,Object.assign({},t,o),i?(0,Qe.cloneElement)(i,{ref:function(e){Ye(r,e),Ye(i.ref,e)}}):null)}))};const at=st(ot(Ke),{render:function(){return""}})},8307:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>qo});var r=n(7462),i=n(3366),o=n(7294),s=n(8120),a=n(2864);const l=1024;let u=0;class c{constructor(e,t){this.from=e,this.to=t}}class f{constructor(e={}){this.id=u++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=d.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}f.closedBy=new f({deserialize:e=>e.split(" ")}),f.openedBy=new f({deserialize:e=>e.split(" ")}),f.group=new f({deserialize:e=>e.split(" ")}),f.contextHash=new f({perNode:!0}),f.lookAhead=new f({perNode:!0}),f.mounted=new f({perNode:!0});const h=Object.create(null);class d{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):h,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new d(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(f.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(f.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}d.none=new d("",Object.create(null),0,8);const p=new WeakMap,m=new WeakMap;var g;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(g||(g={}));class v{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(f.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new A(this.topNode,e)}cursorAt(e,t=0,n=0){let r=p.get(this)||this.topNode,i=new A(r);return i.moveTo(e,t),p.set(this,i._tree),i}get topNode(){return new k(this,0,0,null)}resolve(e,t=0){let n=S(p.get(this)||this.topNode,e,t,!1);return p.set(this,n),n}resolveInner(e,t=0){let n=S(m.get(this)||this.topNode,e,t,!0);return m.set(this,n),n}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e;for(let o=this.cursor((e.mode||0)|g.IncludeAnonymous);;){let e=!1;if(o.from<=i&&o.to>=r&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:P(d.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new v(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new v(d.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=l,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new y(n,n.length):n,u=r.types,c=0,h=0;function d(e,t,n,l,y){let{id:w,start:x,end:S,size:k}=a,C=h;for(;k<0;){if(a.next(),-1==k){let t=o[w];return n.push(t),void l.push(x-e)}if(-3==k)return void(c=w);if(-4==k)return void(h=w);throw new RangeError(`Unrecognized record size: ${k}`)}let O,_,E=u[w],A=x-e;if(S-x<=i&&(_=function(e,t){let n=a.fork(),r=0,o=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=o,c.skip=l,l+=4,r+=4,n.next();continue}let a=n.pos-e;if(e<0||a<i||n.start<u)break;let f=n.id>=s?4:0,h=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;f+=4}else n.id>=s&&(f+=4);n.next()}o=h,r+=e,l+=f}return(t<0||r==e)&&(c.size=r,c.start=o,c.skip=l),c.size>4?c:void 0}(a.pos-t,y))){let t=new Uint16Array(_.size-_.skip),n=a.pos-_.size,i=t.length;for(;a.pos>n;)i=g(_.start,t,i);O=new b(t,S-_.start,r),A=_.start-e}else{let e=a.pos-k;a.next();let t=[],n=[],r=w>=s?w:-1,o=0,l=S;for(;a.pos>e;)r>=0&&a.id==r&&a.size>=0?(a.end<=l-i&&(p(t,n,x,o,a.end,l,r,C),o=t.length,l=a.end),a.next()):d(x,e,t,n,r);if(r>=0&&o>0&&o<t.length&&p(t,n,x,o,x,l,r,C),t.reverse(),n.reverse(),r>-1&&o>0){let e=function(e){return(t,n,r)=>{let i,o,s=0,a=t.length-1;if(a>=0&&(i=t[a])instanceof v){if(!a&&i.type==e&&i.length==r)return i;(o=i.prop(f.lookAhead))&&(s=n[a]+i.length+o)}return m(e,t,n,r,s)}}(E);O=P(E,t,n,0,t.length,0,S-x,e,e)}else O=m(E,t,n,S-x,C-S)}n.push(O),l.push(A)}function p(e,t,n,i,o,s,a,l){let u=[],c=[];for(;e.length>i;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(m(r.types[a],u,c,s-o,l-s)),t.push(o-n)}function m(e,t,n,r,i=0,o){if(c){let e=[f.contextHash,c];o=o?[e].concat(o):[e]}if(i>25){let e=[f.lookAhead,i];o=o?[e].concat(o):[e]}return new v(e,t,n,r,o)}function g(e,t,n){let{id:r,start:i,end:o,size:l}=a;if(a.next(),l>=0&&r<s){let s=n;if(l>4){let r=a.pos-(l-4);for(;a.pos>r;)n=g(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==l?c=r:-4==l&&(h=r);return n}let w=[],x=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,w,x,-1);let S=null!==(t=e.length)&&void 0!==t?t:w.length?x[0]+w[0].length:0;return new v(u[e.topID],w.reverse(),x.reverse(),S)}(e)}}v.empty=new v(d.none,[],[],0);class y{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new y(this.buffer,this.index)}}class b{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return d.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(w(i,r,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){i[a++]=r[s++],i[a++]=r[s++]-n;let t=i[a++]=r[s++]-n;i[a++]=r[s++]-e,o=Math.max(o,t)}return new b(i,o,this.set)}}function w(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function x(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function S(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof k&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:g.IgnoreOverlays;if(r)for(let r=e,s=r.parent;s;r=s,s=r.parent)r instanceof k&&r.index<0&&(null===(i=s.enter(t,n,o))||void 0===i?void 0:i.from)!=r.from&&(e=s);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class k{constructor(e,t,n,r){this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],u=a[e]+o.from;if(w(r,n,u,u+l.length))if(l instanceof b){if(i&g.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,n-u,r);if(s>-1)return new E(new _(o,l,e,u),null,s)}else if(i&g.IncludeAnonymous||!l.type.isAnonymous||M(l)){let s;if(!(i&g.IgnoreMounts)&&l.props&&(s=l.prop(f.mounted))&&!s.overlay)return new k(s.tree,u,e,o);let a=new k(l,u,e,o);return i&g.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,r)}}if(i&g.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&g.IgnoreOverlays)&&(r=this._tree.prop(f.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new k(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new A(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return S(this,e,t,!1)}resolveInner(e,t=0){return S(this,e,t,!0)}enterUnfinishedNodesBefore(e){return x(this,e)}getChild(e,t=null,n=null){let r=C(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return C(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return O(this,e)}}function C(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function O(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class _{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class E{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new E(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&g.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new E(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new E(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new E(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new A(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new v(this.type,e,t,this.to-this.from)}resolve(e,t=0){return S(this,e,t,!1)}resolveInner(e,t=0){return S(this,e,t,!0)}enterUnfinishedNodesBefore(e){return x(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=C(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return C(this,e,t,n)}get node(){return this}matchContext(e){return O(this,e)}}class A{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof k)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof k?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&g.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&g.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&g.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&g.IncludeAnonymous||e instanceof b||!e.type.isAnonymous||M(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new E(this.buffer,t,this.stack[e]);return this.bufferNode=new E(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return O(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return O(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function M(e){return e.children.some((e=>e instanceof b||!e.type.isAnonymous||M(e)))}const R=new WeakMap;function T(e,t){if(!e.isAnonymous||t instanceof b||t.type!=e)return 1;let n=R.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof v)){n=1;break}n+=T(e,r)}R.set(t,n)}return n}function P(e,t,n,r,i,o,s,a,l){let u=0;for(let n=r;n<i;n++)u+=T(e,t[n]);let c=Math.ceil(1.5*u/8),f=[],h=[];return function t(n,r,i,s,a){for(let u=i;u<s;){let i=u,d=r[u],p=T(e,n[u]);for(u++;u<s;u++){let t=T(e,n[u]);if(p+t>=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}f.push(n[i])}else{let t=r[u-1]+n[u-1].length-d;f.push(P(e,n,r,i,u,d,t,null,l))}h.push(d+a-o)}}(t,n,r,i,0),(a||l)(f,h,s)}class D{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new D(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null,c=u?u.fromA:1e9;if(c-a>=n)for(;o&&o.from<c;){let t=o;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new D(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return r}}class j{startParse(e,t,n){return"string"==typeof e&&(e=new N(e)),n=n?n.length?n.map((e=>new c(e.from,e.to))):[new c(0,0)]:[new c(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class N{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new f({perNode:!0});let I=0;class L{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=I++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new L([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new B;return t=>t.modified.indexOf(e)>-1?t:B.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let F=0;class B{constructor(){this.instances=[],this.id=F++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new L(r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(B.get(t,e));return i}}function z(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new V(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return U.add(t)}const U=new f;class V{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function W(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function H(e,t,n,r=0,i=e.length){let o=new $(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}V.empty=new V([],2,null);class ${constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:s,to:a}=e;if(s>=n||a<=t)return;o.isTop&&(i=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=r,u=function(e){let t=e.type.prop(U);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||V.empty,c=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,u.tags);if(c&&(l&&(l+=" "),l+=c,1==u.mode&&(r+=(r?" ":"")+c)),this.startSpan(e.from,l),u.opaque)return;let h=e.tree&&e.tree.prop(f.mounted);if(h&&h.overlay){let o=e.node.enter(h.overlay[0].from+s,1),u=this.highlighters.filter((e=>!e.scope||e.scope(h.tree.type))),c=e.firstChild();for(let f=0,d=s;;f++){let p=f<h.overlay.length?h.overlay[f]:null,m=p?p.from+s:a,g=Math.max(t,d),v=Math.min(n,m);if(g<v&&c)for(;e.from<v&&(this.highlightRange(e,g,v,r,i),this.startSpan(Math.min(v,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!p||m>n)break;d=p.to+s,d>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+s),Math.min(n,d),r,u),this.startSpan(d,l))}c&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const q=L.define,K=q(),Q=q(),G=q(Q),J=q(Q),X=q(),Y=q(X),Z=q(X),ee=q(),te=q(ee),ne=q(),re=q(),ie=q(),oe=q(ie),se=q(),ae={comment:K,lineComment:q(K),blockComment:q(K),docComment:q(K),name:Q,variableName:q(Q),typeName:G,tagName:q(G),propertyName:J,attributeName:q(J),className:q(Q),labelName:q(Q),namespace:q(Q),macroName:q(Q),literal:X,string:Y,docString:q(Y),character:q(Y),attributeValue:q(Y),number:Z,integer:q(Z),float:q(Z),bool:q(X),regexp:q(X),escape:q(X),color:q(X),url:q(X),keyword:ne,self:q(ne),null:q(ne),atom:q(ne),unit:q(ne),modifier:q(ne),operatorKeyword:q(ne),controlKeyword:q(ne),definitionKeyword:q(ne),moduleKeyword:q(ne),operator:re,derefOperator:q(re),arithmeticOperator:q(re),logicOperator:q(re),bitwiseOperator:q(re),compareOperator:q(re),updateOperator:q(re),definitionOperator:q(re),typeOperator:q(re),controlOperator:q(re),punctuation:ie,separator:q(ie),bracket:oe,angleBracket:q(oe),squareBracket:q(oe),paren:q(oe),brace:q(oe),content:ee,heading:te,heading1:q(te),heading2:q(te),heading3:q(te),heading4:q(te),heading5:q(te),heading6:q(te),contentSeparator:q(ee),list:q(ee),quote:q(ee),emphasis:q(ee),strong:q(ee),link:q(ee),monospace:q(ee),strikethrough:q(ee),inserted:q(),deleted:q(),changed:q(),invalid:q(),meta:se,documentMeta:q(se),annotation:q(se),processingInstruction:q(se),definition:L.defineModifier(),constant:L.defineModifier(),function:L.defineModifier(),standard:L.defineModifier(),local:L.defineModifier(),special:L.defineModifier()};W([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);var le,ue=n(8699);const ce=new f,fe=new f;class he{constructor(e,t,n=[],r=""){this.data=e,this.name=r,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return pe(this)}}),this.parser=t,this.extension=[ke.of(this),s.yy.languageData.of(((e,t,n)=>{let r=de(e,t,n),i=r.type.prop(ce);if(!i)return[];let o=e.facet(i),s=r.type.prop(fe);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t,n=-1){return de(e,t,n).type.prop(ce)==this.data}findRegions(e){let t=e.facet(ke);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(ce)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(f.mounted);if(i){if(i.tree.prop(ce)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof v&&r(i,e.positions[n]+t)}};return r(pe(e),0),n}get allowsNesting(){return!0}}function de(e,t,n){let r=e.facet(ke),i=pe(e).topNode;if(!r||r.allowsNesting)for(let e=i;e;e=e.enter(t,n,g.ExcludeBuffers))e.type.isTop&&(i=e);return i}function pe(e){let t=e.field(he.state,!1);return t?t.tree:v.empty}he.setState=s.Py.define();class me{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let ge=null;class ve{constructor(e,t,n=[],r,i,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ve(e,t,[],v.empty,0,n,[],null)}startParse(){return this.parser.startParse(new me(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=v.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(D.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(D.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ge;ge=this;try{return e()}finally{ge=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=ye(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=D.applyChanges(n,t),r=v.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&s.push({from:n,to:r})}}}return new ve(this.parser,t,n,r,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=ye(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends j{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=ge;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new v(d.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return ge}}function ye(e,t,n){return D.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class be{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new be(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ve.create(e.facet(ke).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new be(n)}}he.state=s.QQ.define({create:be.init,update(e,t){for(let e of t.effects)if(e.is(he.setState))return e.value;return t.startState.facet(ke)!=t.state.facet(ke)?be.init(t.state):e.apply(t)}});let we=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(we=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const xe="undefined"!=typeof navigator&&(null===(le=navigator.scheduling)||void 0===le?void 0:le.isInputPending)?()=>navigator.scheduling.isInputPending():null,Se=a.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(he.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(he.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=we(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(he.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!xe?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work((()=>xe&&xe()||Date.now()>o),r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:he.setState.of(new be(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,a.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ke=s.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[he.state,Se,a.tk.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]}),Ce=s.r$.define(),Oe=s.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function _e(e){let t=e.facet(Oe);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Ee(e,t){let n="",r=e.tabSize,i=e.facet(Oe)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function Ae(e,t){e instanceof s.yy&&(e=new Me(e));for(let n of e.state.facet(Ce)){let r=n(e,t);if(void 0!==r)return r}let n=pe(e.state);return n?function(e,t,n){return Pe(t.resolveInner(n).enterUnfinishedNodesBefore(n),n,e)}(e,n,t):null}class Me{constructor(e,t={}){this.state=e,this.options=t,this.unit=_e(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,s.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Re=new f;function Te(e){let t=e.type.prop(Re);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(f.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>function(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from<s?n:null;e=i.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?De:null}function Pe(e,t,n){for(;e;e=e.parent){let r=Te(e);if(r)return r(je.create(n,t,e))}return null}function De(){return 0}class je extends Me{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new je(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(Ne(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?Pe(e,this.pos,this.base):0}}function Ne(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}const Ie=s.r$.define(),Le=new f;function Fe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Be(e,t,n){for(let r of e.facet(Ie)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=pe(e);if(r.length<n)return null;let i=null;for(let o=r.resolveInner(n,1);o;o=o.parent){if(o.to<=n||o.from>n)continue;if(i&&o.from<t)break;let s=o.type.prop(Le);if(s&&(o.to<r.length-50||r.length==e.doc.length||!Fe(o))){let r=s(o,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function ze(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const Ue=s.Py.define({map:ze}),Ve=s.Py.define({map:ze});function We(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const He=s.QQ.define({create:()=>a.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(Ue)&&!qe(e,n.value.from,n.value.to)?e=e.update({add:[Ze.range(n.value.from,n.value.to)]}):n.is(Ve)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{e<r&&t>r&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(Ze.range(r,i))}return a.p.set(t,!0)}});function $e(e,t,n){var r;let i=null;return null===(r=e.field(He,!1))||void 0===r||r.between(t,n,((e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})})),i}function qe(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function Ke(e,t){return e.field(He,!1)?t:t.concat(s.Py.appendConfig.of(Ye()))}function Qe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return a.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const Ge=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of We(e)){let n=Be(e.state,t.from,t.to);if(n)return e.dispatch({effects:Ke(e.state,[Ue.of(n),Qe(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(He,!1))return!1;let t=[];for(let n of We(e)){let r=$e(e.state,n.from,n.to);r&&t.push(Ve.of(r),Qe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),o=Be(t,i.from,i.to);o&&n.push(Ue.of(o)),r=(o?e.lineBlockAt(o.to):i).to+1}return n.length&&e.dispatch({effects:Ke(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(He,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(Ve.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],Je={placeholderDOM:null,placeholderText:"…"},Xe=s.r$.define({combine:e=>(0,s.BO)(e,Je)});function Ye(e){let t=[He,nt];return e&&t.push(Xe.of(e)),t}const Ze=a.p.replace({widget:new class extends a.l9{toDOM(e){let{state:t}=e,n=t.facet(Xe),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=$e(e.state,n.from,n.to);r&&e.dispatch({effects:Ve.of(r)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",t.phrase("folded code")),i.title=t.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}}}),et={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class tt extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const nt=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class rt{constructor(e,t){let n;function r(e){let t=ue.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof he?e=>e.prop(ce)==o.data:o?e=>e==o:void 0,this.style=W(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new ue.V(n):null,this.themeType=t.themeType}static define(e,t){return new rt(e,t||{})}}const it=s.r$.define(),ot=s.r$.define({combine:e=>e.length?[e[0]]:null});function st(e){let t=e.facet(it);return t.length?t:e.facet(ot)}function at(e,t){let n,r=[ut];return e instanceof rt&&(e.module&&r.push(a.tk.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(ot.of(e)):n?r.push(it.computeN([a.tk.darkTheme],(t=>t.facet(a.tk.darkTheme)==("dark"==n)?[e]:[]))):r.push(it.of(e)),r}class lt{constructor(e){this.markCache=Object.create(null),this.tree=pe(e.state),this.decorations=this.buildDeco(e,st(e.state))}update(e){let t=pe(e.state),n=st(e.state),r=n!=st(e.startState);t.length<e.view.viewport.to&&!r&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return a.p.none;let n=new s.f_;for(let{from:r,to:i}of e.visibleRanges)H(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.p.mark({class:r})))}),r,i);return n.finish()}}const ut=s.Wl.high(a.lg.fromClass(lt,{decorations:e=>e.decorations})),ct=rt.define([{tag:ae.meta,color:"#404740"},{tag:ae.link,textDecoration:"underline"},{tag:ae.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strong,fontWeight:"bold"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.keyword,color:"#708"},{tag:[ae.atom,ae.bool,ae.url,ae.contentSeparator,ae.labelName],color:"#219"},{tag:[ae.literal,ae.inserted],color:"#164"},{tag:[ae.string,ae.deleted],color:"#a11"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],color:"#e40"},{tag:ae.definition(ae.variableName),color:"#00f"},{tag:ae.local(ae.variableName),color:"#30a"},{tag:[ae.typeName,ae.namespace],color:"#085"},{tag:ae.className,color:"#167"},{tag:[ae.special(ae.variableName),ae.macroName],color:"#256"},{tag:ae.definition(ae.propertyName),color:"#00c"},{tag:ae.comment,color:"#940"},{tag:ae.invalid,color:"#f00"}]),ft=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ht=1e4,dt="()[]{}",pt=s.r$.define({combine:e=>(0,s.BO)(e,{afterCursor:!0,brackets:dt,maxScanDistance:ht,renderMatch:vt})}),mt=a.p.mark({class:"cm-matchingBracket"}),gt=a.p.mark({class:"cm-nonmatchingBracket"});function vt(e){let t=[],n=e.matched?mt:gt;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const yt=s.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(pt);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=kt(t.state,e.head,-1,r)||e.head>0&&kt(t.state,e.head-1,1,r)||r.afterCursor&&(kt(t.state,e.head,1,r)||e.head<t.state.doc.length&&kt(t.state,e.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,t.state)))}return a.p.set(n,!0)},provide:e=>a.tk.decorations.from(e)}),bt=[yt,ft],wt=new f;function xt(e,t,n){let r=e.prop(t<0?f.openedBy:f.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function St(e){let t=e.type.prop(wt);return t?t(e.node):e}function kt(e,t,n,r={}){let i=r.maxScanDistance||ht,o=r.brackets||dt,s=pe(e),a=s.resolveInner(t,n);for(let e=a;e;e=e.parent){let r=xt(e.type,n,o);if(r&&e.from<e.to){let i=St(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return Ct(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let e=0;!c.next().done&&e<=o;){let o=c.value;n<0&&(e+=o.length);let a=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=s.indexOf(o[e]);if(!(t<0||r.resolveInner(a+e,1).type!=i))if(t%2==0==n>0)f++;else{if(1==f)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};f--}}n>0&&(e+=o.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Ct(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},u=0,c=null==a?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from<c.to){let e=St(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(xt(c.type,n,s))u++;else if(xt(c.type,-n,s)){if(0==u){let e=St(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}const Ot=Object.create(null),_t=[d.none],Et=[],At=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])At[e]=Rt(Ot,t);function Mt(e,t){Et.indexOf(e)>-1||(Et.push(e),console.warn(t))}function Rt(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||ae[r];t?"function"==typeof t?n?n=t(n):Mt(r,`Modifier ${r} used at start of tag`):n?Mt(r,`Tag ${r} used as modifier`):n=t:Mt(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=d.define({id:_t.length,name:r,props:[z({[r]:n})]});return _t.push(i),i.id}function Tt(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const Pt=Tt(Ft,0),Dt=Tt(Lt,0),jt=Tt(((e,t)=>Lt(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from,to:i.to})}return t}(t))),0);function Nt(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const It=50;function Lt(e,t,n=t.selection.ranges){let r=n.map((e=>Nt(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,s,a=e.sliceDoc(r-It,r),l=e.sliceDoc(i,i+It),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,f=a.length-u;if(a.slice(f-t.length,f)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*It?o=s=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+It),s=e.sliceDoc(i-It,i));let h=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,p=s.length-d-n.length;return o.slice(h,h+t.length)==t&&s.slice(p,p+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(o.charAt(h+t.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n<i.length;n++)if(t=i[n]){let i=r[n],{open:o,close:s}=t;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}function Ft(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:e,to:o}of n){let n=r.length,s=1e9,a=Nt(t,e).line;if(a){for(let n=e;n<=o;){let l=t.doc.lineAt(n);if(l.from>i&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<s&&(s=e),r.push({line:l,comment:n,token:a,indent:e,empty:t,single:!1})}n=l.to+1}if(s<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=s);r.length==n+1&&(r[n].single=!0)}}if(2!=e&&r.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:s}of r)!s&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const Bt=s.q6.define(),zt=s.q6.define(),Ut=s.r$.define(),Vt=s.r$.define({combine:e=>(0,s.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Wt=s.QQ.define({create:()=>sn.empty,update(e,t){let n=t.state.facet(Vt),r=t.annotation(Bt);if(r){let i=t.docChanged?s.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=Gt.fromTransaction(t,i),a=r.side,l=0==a?e.undone:e.done;return l=o?Jt(l,l.length,n.minDepth,o):en(l,t.startState.selection),new sn(0==a?r.rest:l,0==a?l:r.rest)}let i=t.annotation(zt);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(s.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Gt.fromTransaction(t),a=t.annotation(s.YW.time),l=t.annotation(s.YW.userEvent);return o?e=e.addChanges(o,a,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new sn(e.done.map(Gt.fromJSON),e.undone.map(Gt.fromJSON))});function Ht(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Wt,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const $t=Ht(0,!1),qt=Ht(1,!1),Kt=Ht(0,!0),Qt=Ht(1,!0);class Gt{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new Gt(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Gt(e.changes&&s.as.fromJSON(e.changes),[],e.mapped&&s.n0.fromJSON(e.mapped),e.startSelection&&s.jT.fromJSON(e.startSelection),e.selectionsAfter.map(s.jT.fromJSON))}static fromTransaction(e,t){let n=Yt;for(let t of e.startState.facet(Ut)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new Gt(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Yt)}static selection(e){return new Gt(void 0,Yt,void 0,void 0,e)}}function Jt(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Xt(e,t){return e.length?t.length?e.concat(t):e:t}const Yt=[],Zt=200;function en(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Zt));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Jt(e,e.length-1,1e9,n.setSelAfter(r)))}return[Gt.selection([t])]}function tn(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function nn(e,t){if(!e.length)return e;let n=e.length,r=Yt;for(;n;){let i=rn(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Gt.selection(r)]:Yt}function rn(e,t,n){let r=Xt(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Yt,n);if(!e.changes)return Gt.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Gt(i,s.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const on=/^(input\.type|delete)($|\.)/;class sn{constructor(e,t,n=0,r=undefined){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new sn(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||on.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,function(e,t){let n=[],r=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e<n.length;){let t=n[e++],s=n[e++];o>=t&&i<=s&&(r=!0)}})),r}(s.changes,e.changes))||"input.type.compose"==n)?Jt(o,o.length-1,r.minDepth,new Gt(e.changes.compose(s.changes),Xt(e.effects,s.effects),s.mapped,s.startSelection,Yt)):Jt(o,o.length,r.minDepth,e),new sn(o,Yt,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Yt;return i.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(o=i[i.length-1],s=e,o.ranges.length==s.ranges.length&&0===o.ranges.filter(((e,t)=>e.empty!=s.ranges[t].empty)).length)?this:new sn(en(this.done,e),this.undone,t,n);var o,s}addMapping(e){return new sn(nn(this.done,e),nn(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Bt.of({side:e,rest:tn(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Yt:r.slice(0,r.length-1);return i.mapped&&(n=nn(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Bt.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}sn.empty=new sn(Yt,Yt);const an=[{key:"Mod-z",run:$t,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:qt,preventDefault:!0},{linux:"Ctrl-Shift-z",run:qt,preventDefault:!0},{key:"Mod-u",run:Kt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Qt,preventDefault:!0}];function ln(e,t){return s.jT.create(e.ranges.map(t),e.mainIndex)}function un(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function cn({state:e,dispatch:t},n){let r=ln(e.selection,n);return!r.eq(e.selection)&&(t(un(e,r)),!0)}function fn(e,t){return s.jT.cursor(t?e.to:e.from)}function hn(e,t){return cn(e,(n=>n.empty?e.moveByChar(n,t):fn(n,t)))}function dn(e){return e.textDirectionAt(e.state.selection.main.head)==a.Nm.LTR}const pn=e=>hn(e,!dn(e)),mn=e=>hn(e,dn(e));function gn(e,t){return cn(e,(n=>n.empty?e.moveByGroup(n,t):fn(n,t)))}function vn(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function yn(e,t,n){let r,i,o=pe(e).resolveInner(t.head),a=n?f.closedBy:f.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;vn(e,t,a)?o=t:r=n?t.to:t.from}return i=o.type.prop(a)&&(r=n?kt(e,o.from,1):kt(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,s.jT.cursor(i,n?-1:1)}function bn(e,t){return cn(e,(n=>{if(!n.empty)return fn(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const wn=e=>bn(e,!1),xn=e=>bn(e,!0);function Sn(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,i=0;if(n){for(let t of e.state.facet(a.tk.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(i=Math.max(null==n?void 0:n.bottom,i))}t=e.scrollDOM.clientHeight-r-i}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:i,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function kn(e,t){let n,r=Sn(e),{state:i}=e,o=ln(i.selection,(n=>n.empty?e.moveVertically(n,t,r.height):fn(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+r.marginTop,u=s.bottom-r.marginBottom;t&&t.top>l&&t.bottom<u&&(n=a.tk.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(un(i,o),{effects:n}),!0}const Cn=e=>kn(e,!1),On=e=>kn(e,!0);function _n(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=s.jT.cursor(r.from+n))}return i}function En(e,t){let n=ln(e.state.selection,(e=>{let n=t(e);return s.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(un(e.state,n)),!0)}function An(e,t){return En(e,(n=>e.moveByChar(n,t)))}const Mn=e=>An(e,!dn(e)),Rn=e=>An(e,dn(e));function Tn(e,t){return En(e,(n=>e.moveByGroup(n,t)))}function Pn(e,t){return En(e,(n=>e.moveVertically(n,t)))}const Dn=e=>Pn(e,!1),jn=e=>Pn(e,!0);function Nn(e,t){return En(e,(n=>e.moveVertically(n,t,Sn(e).height)))}const In=e=>Nn(e,!1),Ln=e=>Nn(e,!0),Fn=({state:e,dispatch:t})=>(t(un(e,{anchor:0})),!0),Bn=({state:e,dispatch:t})=>(t(un(e,{anchor:e.doc.length})),!0),zn=({state:e,dispatch:t})=>(t(un(e,{anchor:e.selection.main.anchor,head:0})),!0),Un=({state:e,dispatch:t})=>(t(un(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Vn(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let r=t(i);r<i?(n="delete.backward",r=Wn(e,r,!1)):r>i&&(n="delete.forward",r=Wn(e,r,!0)),i=Math.min(i,r),o=Math.max(o,r)}else i=Wn(e,i,!1),o=Wn(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:s.jT.cursor(i)}}));return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?a.tk.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Wn(e,t,n){if(e instanceof a.tk)for(let r of e.state.facet(a.tk.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{e<t&&r>t&&(t=n?r:e)}));return t}const Hn=(e,t)=>Vn(e,(n=>{let r,i,{state:o}=e,a=o.doc.lineAt(n);if(!t&&n>a.from&&n<a.from+200&&!/[^ \t]/.test(r=a.text.slice(0,n-a.from))){if("\t"==r[r.length-1])return n-1;let e=(0,s.IS)(r,o.tabSize)%_e(o)||_e(o);for(let t=0;t<e&&" "==r[r.length-1-t];t++)n--;i=n}else i=(0,s.cp)(a.text,n-a.from,t,t)+a.from,i==n&&a.number!=(t?o.doc.lines:1)&&(i+=t?1:-1);return i})),$n=e=>Hn(e,!1),qn=e=>Hn(e,!0),Kn=(e,t)=>Vn(e,(n=>{let r=n,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=(0,s.cp)(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(null!=e&&c!=e)break;" "==u&&r==n||(e=c),r=l}return r})),Qn=e=>Kn(e,!1),Gn=e=>Vn(e,(t=>{let n=e.lineBlockAt(t).to;return t<n?n:Math.min(e.state.doc.length,t+1)}));function Jn(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Xn(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of Jn(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push(s.jT.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push(s.jT.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:s.jT.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Yn(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of Jn(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Zn=er(!1);function er(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=pe(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(f.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let l=new Me(t,{simulateBreak:r,simulateDoubleBreak:!!a}),u=Ae(l,r);for(null==u&&(u=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);i<o.to&&/\s/.test(o.text[i-o.from]);)i++;a?({from:r,to:i}=a):r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let c=["",Ee(t,u)];return a&&c.push(Ee(t,l.lineIndent(o.from,-1))),{changes:{from:r,to:i,insert:s.xv.of(c)},range:s.jT.cursor(r+1+c[1].length)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function tr(e,t){let n=-1;return e.changeByRange((r=>{let i=[];for(let o=r.from;o<=r.to;){let s=e.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),o=s.to+1}let o=e.changes(i);return{changes:i,range:s.jT.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const nr=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(tr(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Oe)})})),{userEvent:"input.indent"})),!0),rr=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(tr(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=(0,s.IS)(r,e.tabSize),o=0,a=Ee(e,Math.max(0,i-_e(e)));for(;o<r.length&&o<a.length&&r.charCodeAt(o)==a.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+r.length,insert:a.slice(o)})})),{userEvent:"delete.dedent"})),!0),ir=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>cn(e,(t=>yn(e.state,t,!dn(e)))),shift:e=>En(e,(t=>yn(e.state,t,!dn(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>cn(e,(t=>yn(e.state,t,dn(e)))),shift:e=>En(e,(t=>yn(e.state,t,dn(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Xn(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Yn(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Xn(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Yn(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=s.jT.create([n.main]):n.main.empty||(r=s.jT.create([s.jT.cursor(n.main.head)])),!!r&&(t(un(e,r)),!0)}},{key:"Mod-Enter",run:er(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Jn(e).map((({from:t,to:n})=>s.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:s.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=ln(e.selection,(t=>{var n;let r=pe(e).resolveInner(t.head,1);for(;!(r.from<t.from&&r.to>=t.to||r.to>t.to&&r.from<=t.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent);)r=r.parent;return s.jT.range(r.to,r.from)}));return t(un(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:rr},{key:"Mod-]",run:nr},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Me(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=tr(e,((t,i,o)=>{let s=Ae(r,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=Ee(e,s);(a!=l||o.from<t.from+a.length)&&(n[t.from]=s,i.push({from:t.from,to:t.from+a.length,insert:l}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Jn(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),r=ln(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=ln(e.selection,(t=>{let i=kt(e,t.head,-1)||kt(e,t.head,1)||t.head>0&&kt(e,t.head-1,1)||t.head<e.doc.length&&kt(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let o=i.start.from==t.head?i.end.to:i.end.from;return n?s.jT.range(t.anchor,o):s.jT.cursor(o)}));return!!r&&(t(un(e,i)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Nt(e.state,n.from);return r.line?Pt(e):!!r.block&&jt(e)}},{key:"Alt-A",run:Dt}].concat([{key:"ArrowLeft",run:pn,shift:Mn,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>gn(e,!dn(e)),shift:e=>Tn(e,!dn(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>cn(e,(t=>_n(e,t,!dn(e)))),shift:e=>En(e,(t=>_n(e,t,!dn(e)))),preventDefault:!0},{key:"ArrowRight",run:mn,shift:Rn,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>gn(e,dn(e)),shift:e=>Tn(e,dn(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>cn(e,(t=>_n(e,t,dn(e)))),shift:e=>En(e,(t=>_n(e,t,dn(e)))),preventDefault:!0},{key:"ArrowUp",run:wn,shift:Dn,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Fn,shift:zn},{mac:"Ctrl-ArrowUp",run:Cn,shift:In},{key:"ArrowDown",run:xn,shift:jn,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Bn,shift:Un},{mac:"Ctrl-ArrowDown",run:On,shift:Ln},{key:"PageUp",run:Cn,shift:In},{key:"PageDown",run:On,shift:Ln},{key:"Home",run:e=>cn(e,(t=>_n(e,t,!1))),shift:e=>En(e,(t=>_n(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Fn,shift:zn},{key:"End",run:e=>cn(e,(t=>_n(e,t,!0))),shift:e=>En(e,(t=>_n(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Bn,shift:Un},{key:"Enter",run:Zn},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:$n,shift:$n},{key:"Delete",run:qn},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Qn},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Kn(e,!0)},{mac:"Mod-Backspace",run:e=>Vn(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:Gn}].concat([{key:"Ctrl-b",run:pn,shift:Mn,preventDefault:!0},{key:"Ctrl-f",run:mn,shift:Rn},{key:"Ctrl-p",run:wn,shift:Dn},{key:"Ctrl-n",run:xn,shift:jn},{key:"Ctrl-a",run:e=>cn(e,(t=>s.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>En(e,(t=>s.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>cn(e,(t=>s.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>En(e,(t=>s.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:qn},{key:"Ctrl-h",run:$n},{key:"Ctrl-k",run:Gn},{key:"Ctrl-Alt-h",run:Qn},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:s.xv.of(["",""])},range:s.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:(0,s.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,s.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:s.jT.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:On}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),or={key:"Tab",run:nr,shift:rr};function sr(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)ar(e,arguments[t]);return e}function ar(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)ar(e,t[n])}}const lr="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class ur{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(lr(e)):lr,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,s.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,s.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,s.nZ)(e);let r=this.normalize(t);for(let e=0,i=n;;e++){let o=r.charCodeAt(e),s=this.match(o,i);if(s)return this.value=s,this;if(e==r.length-1)break;i==n&&e<t.length&&t.charCodeAt(e)==o&&i++}}}match(e,t){let n=null;for(let r=0;r<this.matches.length;r+=2){let i=this.matches[r],o=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?n={from:this.matches[r+1],to:t+1}:(this.matches[r]++,o=!0)),o||(this.matches.splice(r,2),r-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?n={from:t,to:t+1}:this.matches.push(1,t)),n&&this.test&&!this.test(n.from,n.to,this.buffer,this.bufferPos)&&(n=null),n}}"undefined"!=typeof Symbol&&(ur.prototype[Symbol.iterator]=function(){return this});const cr={from:-1,to:-1,match:/.*/.exec("")},fr="gm"+(null==/x/.unicode?"":"u");class hr{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=cr,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new mr(e,t,n,r,i);this.re=new RegExp(t,fr+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=gr(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=gr(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const dr=new WeakMap;class pr{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=dr.get(e);if(!r||r.from>=n||r.to<=t){let r=new pr(t,e.sliceString(t,n));return dr.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to<n&&(i+=e.sliceString(r.to,n)),dr.set(e,new pr(o,i)),new pr(t,i.slice(t-o,n-o))}}class mr{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=cr,this.matchPos=gr(e,r),this.re=new RegExp(t,fr+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=pr.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=gr(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pr.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function gr(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344;)t++;return t}function vr(e){let t=sr("input",{class:"cm-textfield",name:"line"});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,a,l,u]=n,c=l?+l.slice(1):0,f=a?+a:i.number;if(a&&u){let e=f/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),f=Math.round(r.doc.lines*e)}else a&&o&&(f=f*("-"==o?-1:1)+i.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,f)));e.dispatch({effects:yr.of(!1),selection:s.jT.cursor(h.from+Math.max(0,Math.min(c,h.length))),scrollIntoView:!0}),e.focus()}return{dom:sr("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:yr.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},sr("label",e.state.phrase("Go to line"),": ",t)," ",sr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(hr.prototype[Symbol.iterator]=mr.prototype[Symbol.iterator]=function(){return this});const yr=s.Py.define(),br=s.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(yr)&&(e=n.value);return e},provide:e=>a.mH.from(e,(e=>e?vr:null))}),wr=a.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),xr={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Sr=s.r$.define({combine:e=>(0,s.BO)(e,xr,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),kr=a.p.mark({class:"cm-selectionMatch"}),Cr=a.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Or(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==s.D0.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==s.D0.Word)}const _r=a.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Sr),{state:n}=e,r=n.selection;if(r.ranges.length>1)return a.p.none;let i,o=r.main,l=null;if(o.empty){if(!t.highlightWordAroundCursor)return a.p.none;let e=n.wordAt(o.head);if(!e)return a.p.none;l=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return a.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),l=n.charCategorizer(o.head),!Or(l,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==s.D0.Word&&e(t.sliceDoc(r-1,r))==s.D0.Word}(l,n,o.from,o.to))return a.p.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return a.p.none}let u=[];for(let r of e.visibleRanges){let e=new ur(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!l||Or(l,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?u.push(Cr.range(r,i)):(r>=o.to||i<=o.from)&&u.push(kr.range(r,i)),u.length>t.maxMatches))return a.p.none}}return a.p.set(u)}},{decorations:e=>e.decorations}),Er=a.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Ar=s.r$.define({combine:e=>(0,s.BO)(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:e=>new ti(e),scrollToMatch:e=>a.tk.scrollIntoView(e)})});class Mr{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,fr),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Ir(this):new Pr(this)}getCursor(e,t=0,n){let r=e.doc?e:s.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Dr(this,r,t,n):Tr(this,r,t,n)}}class Rr{constructor(e){this.spec=e}}function Tr(e,t,n,r){return new ur(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=i.sliceString(r,Math.min(i.length,t+2))),!(o(jr(n,e-r))==s.D0.Word&&o(Nr(n,e-r))==s.D0.Word||o(Nr(n,t-r))==s.D0.Word&&o(jr(n,t-r))==s.D0.Word))):void 0);var i,o}class Pr extends Rr{constructor(e){super(e)}nextMatch(e,t,n){let r=Tr(this.spec,e,n,e.doc.length).nextOverlapping();return r.done&&(r=Tr(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=Tr(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=Tr(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Tr(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function Dr(e,t,n,r){return new hr(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(jr(n.input,n.index))!=s.D0.Word||i(Nr(n.input,n.index))!=s.D0.Word)&&(i(Nr(n.input,n.index+n[0].length))!=s.D0.Word||i(jr(n.input,n.index+n[0].length))!=s.D0.Word)):void 0},n,r);var i}function jr(e,t){return e.slice((0,s.cp)(e,t,!1),t)}function Nr(e,t){return e.slice(t,(0,s.cp)(e,t))}class Ir extends Rr{nextMatch(e,t,n){let r=Dr(this.spec,e,n,e.doc.length).next();return r.done&&(r=Dr(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=Dr(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t)))}matchAll(e,t){let n=Dr(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Dr(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const Lr=s.Py.define(),Fr=s.Py.define(),Br=s.QQ.define({create:e=>new zr(Xr(e).create(),null),update(e,t){for(let n of t.effects)n.is(Lr)?e=new zr(n.value.create(),e.panel):n.is(Fr)&&(e=new zr(e.query,n.value?Jr:null));return e},provide:e=>a.mH.from(e,(e=>e.panel))});class zr{constructor(e,t){this.query=e,this.panel=t}}const Ur=a.p.mark({class:"cm-searchMatch"}),Vr=a.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Wr=a.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Br))}update(e){let t=e.state.field(Br);(t!=e.startState.field(Br)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return a.p.none;let{view:n}=this,r=new s.f_;for(let t=0,i=n.visibleRanges,o=i.length;t<o;t++){let{from:s,to:a}=i[t];for(;t<o-1&&a>i[t+1].from-500;)a=i[++t].to;e.highlight(n.state,s,a,((e,t)=>{let i=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,i?Vr:Ur)}))}return r.finish()}},{decorations:e=>e.decorations});function Hr(e){return t=>{let n=t.state.field(Br,!1);return n&&n.query.spec.valid?e(t,n):Yr(t)}}const $r=Hr(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=s.jT.single(r.from,r.to),o=e.state.facet(Ar);return e.dispatch({selection:i,effects:[oi(e,r),o.scrollToMatch(i.main)],userEvent:"select.search"}),!0})),qr=Hr(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=s.jT.single(i.from,i.to),a=e.state.facet(Ar);return e.dispatch({selection:o,effects:[oi(e,i),a.scrollToMatch(o.main)],userEvent:"select.search"}),!0})),Kr=Hr(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:s.jT.create(n.map((e=>s.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),Qr=Hr(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let l,u,c=[],f=[];if(o.from==r&&o.to==i&&(u=n.toText(t.getReplacement(o)),c.push({from:o.from,to:o.to,insert:u}),o=t.nextMatch(n,o.from,o.to),f.push(a.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let t=0==c.length||c[0].from>=o.to?0:o.to-o.from-u.length;l=s.jT.single(o.from-t,o.to-t),f.push(oi(e,o)),f.push(n.facet(Ar).scrollToMatch(l.main))}return e.dispatch({changes:c,selection:l,effects:f,userEvent:"input.replace"}),!0})),Gr=Hr(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:a.tk.announce.of(r),userEvent:"input.replace.all"}),!0}));function Jr(e){return e.state.facet(Ar).createPanel(e)}function Xr(e,t){var n,r,i,o;let s=e.selection.main,a=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!a)return t;let l=e.facet(Ar);return new Mr({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:l.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:l.literal,wholeWord:null!==(o=null==t?void 0:t.wholeWord)&&void 0!==o?o:l.wholeWord})}const Yr=e=>{let t=e.state.field(Br,!1);if(t&&t.panel){let n=(0,a.Sd)(e,Jr);if(!n)return!1;let r=n.dom.querySelector("[main-field]");if(r&&r!=e.root.activeElement){let n=Xr(e.state,t.query.spec);n.valid&&e.dispatch({effects:Lr.of(n)}),r.focus(),r.select()}}else e.dispatch({effects:[Fr.of(!0),t?Lr.of(Xr(e.state,t.query.spec)):s.Py.appendConfig.of(ai)]});return!0},Zr=e=>{let t=e.state.field(Br,!1);if(!t||!t.panel)return!1;let n=(0,a.Sd)(e,Jr);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Fr.of(!1)}),!0},ei=[{key:"Mod-f",run:Yr,scope:"editor search-panel"},{key:"F3",run:$r,shift:qr,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:$r,shift:qr,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Zr,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new ur(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push(s.jT.range(t.value.from,t.value.to))}return t(e.update({selection:s.jT.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,a.Sd)(e,vr);if(!t){let n=[yr.of(!0)];null==e.state.field(br,!1)&&n.push(s.Py.appendConfig.of([br,wr])),e.dispatch({effects:n}),t=(0,a.Sd)(e,vr)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=s.jT.create(n.ranges.map((t=>e.wordAt(t.head)||s.jT.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new ur(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some((e=>e.from==i.value.from)))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new ur(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(s.jT.range(i.from,i.to),!1),effects:a.tk.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class ti{constructor(e){this.view=e;let t=this.query=e.state.field(Br).query.spec;function n(e,t,n){return sr("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=sr("input",{value:t.search,placeholder:ni(e,"Find"),"aria-label":ni(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=sr("input",{value:t.replace,placeholder:ni(e,"Replace"),"aria-label":ni(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=sr("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=sr("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=sr("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=sr("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>$r(e)),[ni(e,"next")]),n("prev",(()=>qr(e)),[ni(e,"previous")]),n("select",(()=>Kr(e)),[ni(e,"all")]),sr("label",null,[this.caseField,ni(e,"match case")]),sr("label",null,[this.reField,ni(e,"regexp")]),sr("label",null,[this.wordField,ni(e,"by word")]),...e.state.readOnly?[]:[sr("br"),this.replaceField,n("replace",(()=>Qr(e)),[ni(e,"replace")]),n("replaceAll",(()=>Gr(e)),[ni(e,"replace all")])],sr("button",{name:"close",onclick:()=>Zr(e),"aria-label":ni(e,"close"),type:"button"},["×"])])}commit(){let e=new Mr({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Lr.of(e)}))}keydown(e){(0,a.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?qr:$r)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Qr(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Lr)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Ar).top}}function ni(e,t){return e.state.phrase(t)}const ri=30,ii=/[\s\.,:;?!]/;function oi(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-ri),s=Math.min(i,n+ri),l=e.state.sliceDoc(o,s);if(o!=r.from)for(let e=0;e<ri;e++)if(!ii.test(l[e+1])&&ii.test(l[e])){l=l.slice(e);break}if(s!=i)for(let e=l.length-1;e>l.length-ri;e--)if(!ii.test(l[e-1])&&ii.test(l[e])){l=l.slice(0,e);break}return a.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${r.number}.`)}const si=a.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ai=[Br,s.Wl.lowest(Wr),si];class li{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=pe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(hi(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function ui(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class ci{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function fi(e){return e.selection.main.head}function hi(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const di=s.q6.define();function pi(e,t){const n=t.completion.apply||t.completion.label;let r=t.source;var i,o,a,l;"string"==typeof n?e.dispatch(Object.assign(Object.assign({},(i=e.state,o=n,a=r.from,l=r.to,Object.assign(Object.assign({},i.changeByRange((e=>{if(e==i.selection.main)return{changes:{from:a,to:l,insert:o},range:s.jT.cursor(a+o.length)};let t=l-a;return!e.empty||t&&i.sliceDoc(e.from-t,e.from)!=i.sliceDoc(a,l)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:o},range:s.jT.cursor(e.from-t+o.length)}}))),{userEvent:"input.complete"}))),{annotations:di.of(t.completion)})):n(e,t.completion,r.from,r.to)}const mi=new WeakMap;function gi(e){if(!Array.isArray(e))return e;let t=mi.get(e);return t||mi.set(e,t=function(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=ui(t)+ui(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}(e)),t}class vi{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let n=(0,s.gm)(e,t),r=(0,s.nZ)(n);this.chars.push(n);let i=e.slice(t,t+r),o=i.toUpperCase();this.folded.push((0,s.gm)(o==i?i.toLowerCase():o,0)),t+=r}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[0];if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:o}=this;if(1==t.length){let r=(0,s.gm)(e,0),i=(0,s.nZ)(r),o=i==e.length?0:-100;if(r==t[0]);else{if(r!=n[0])return null;o+=-200}return[o,0,i]}let a=e.indexOf(this.pattern);if(0==a)return[e.length==this.pattern.length?0:-100,0,this.pattern.length];let l=t.length,u=0;if(a<0){for(let i=0,o=Math.min(e.length,200);i<o&&u<l;){let o=(0,s.gm)(e,i);o!=t[u]&&o!=n[u]||(r[u++]=i),i+=(0,s.nZ)(o)}if(u<l)return null}let c=0,f=0,h=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(e),v=!0;for(let r=0,u=Math.min(e.length,200),y=0;r<u&&f<l;){let u=(0,s.gm)(e,r);a<0&&(c<l&&u==t[c]&&(i[c++]=r),d<l&&(u==t[d]||u==n[d]?(0==d&&(p=r),m=r+1,d++):d=0));let b,w=u<255?u>=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(b=(0,s.bg)(u))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!r||1==w&&g||0==y&&0!=w)&&(t[f]==u||n[f]==u&&(h=!0)?o[f++]=r:o.length&&(v=!1)),y=w,r+=(0,s.nZ)(u)}return f==l&&0==o[0]&&v?this.result((h?-200:0)-100,o,e):d==l&&0==p?[-200-e.length+(m==e.length?0:-100),0,m]:a>-1?[-700-e.length,a,a+this.pattern.length]:d==l?[-900-e.length,p,m]:f==l?this.result((h?-200:0)-100-700+(v?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[e-n.length],i=1;for(let e of t){let t=e+(this.astral?(0,s.nZ)((0,s.gm)(n,e)):1);i>1&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return r}}const yi=s.r$.define({combine:e=>(0,s.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>bi(e(n),t(n)),optionClass:(e,t)=>n=>bi(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function bi(e,t){return e?t?e+" "+t:e:t}function wi(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class xi{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:r,selected:i}=n.open,o=e.state.facet(yi);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:i}=e,o=0;for(let e=1;e<n.length;){let t=n[e++],s=n[e++];t>o&&r.appendChild(document.createTextNode(i.slice(o,t)));let a=r.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(i.slice(t,s))),a.className="cm-completionMatchedText",o=s}return o<i.length&&r.appendChild(document.createTextNode(i.slice(o))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=wi(r.length,i,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(t=>{for(let n,i=t.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(n=/-(\d+)$/.exec(i.id))&&+n[1]<r.length)return pi(e,r[+n[1]]),void t.preventDefault()})),this.list=this.dom.appendChild(this.createListBox(r,n.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){var t,n,r;let i=e.state.field(this.stateField),o=e.startState.field(this.stateField);this.updateTooltipClass(e.state),i!=o&&(this.updateSel(),(null===(t=i.open)||void 0===t?void 0:t.disabled)!=(null===(n=o.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(r=i.open)||void 0===r?void 0:r.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=wi(t.options.length,t.selected,this.view.state.facet(yi).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let i="string"==typeof r?document.createTextNode(r):r(n);if(!i)return;"then"in i?i.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>(0,a.OO)(this.view.state,e,"completion info"))):this.addInfoPane(i)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}if(r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10)return null;let o,s=this.view.textDirection==a.Nm.RTL,l=s,u=!1,c="",f="",h=t.left-i.left,d=i.right-t.right;if(l&&h<Math.min(n.width,d)?l=!1:!l&&d<Math.min(n.width,h)&&(l=!0),n.width<=(l?h:d))c=Math.max(i.top,Math.min(r.top,i.bottom-n.height))-t.top+"px",o=Math.min(400,l?h:d)+"px";else{u=!0,o=Math.min(400,(s?t.right:i.right-t.left)-30)+"px";let e=i.bottom-t.bottom;e>=n.height||e>t.top?c=r.bottom-t.top+"px":f=t.bottom-r.top+"px"}return{top:c,bottom:f,maxWidth:o,class:u?s?"left-narrow":"right-narrow":l?"left":"right"}}positionInfo(e){this.info&&(e?(this.info.style.top=e.top,this.info.style.bottom=e.bottom,this.info.style.maxWidth=e.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+e.class):this.info.style.top="-1e6px")}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let i=n.from;i<n.to;i++){let{completion:n,match:o}=e[i];const s=r.appendChild(document.createElement("li"));s.id=t+"-"+i,s.setAttribute("role","option");let a=this.optionClass(n);a&&(s.className=a);for(let e of this.optionContent){let t=e(n,this.view.state,o);t&&s.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}}function Si(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class ki{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new ki(this.options,_i(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=0;for(let i of e)if(i.hasResult())if(!1===i.result.filter){let e=i.result.getMatch;for(let t of i.result.options){let o=[1e9-r++];if(e)for(let n of e(t))o.push(n);n.push(new ci(t,i,o))}}else{let e,r=new vi(t.sliceDoc(i.from,i.to));for(let t of i.result.options)(e=r.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new ci(t,i,e)))}let i=[],o=null,s=t.facet(yi).compareCompletions;for(let e of n.sort(((e,t)=>t.match[0]-e.match[0]||s(e.completion,t.completion))))!o||o.label!=e.completion.label||o.detail!=e.completion.detail||null!=o.type&&null!=e.completion.type&&o.type!=e.completion.type||o.apply!=e.completion.apply?i.push(e):Si(e.completion)>Si(o)&&(i[i.length-1]=e),o=e.completion;return i}(e,t);if(!o.length)return r&&e.some((e=>1==e.state))?new ki(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let s=t.facet(yi).selectOnOpen?0:-1;if(r&&r.selected!=s&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){s=t;break}}return new ki(o,_i(n,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:(a=Ni,e=>new xi(e,a)),above:i.aboveCursor},r?r.timestamp:Date.now(),s,!1);var a}map(e){return new ki(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Ci{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new Ci(Ei,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(yi),r=(n.override||t.languageDataAt("autocomplete",fi(t)).map(gi)).map((t=>(this.active.find((e=>e.source==t))||new Mi(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let i=n==e.length,o=r==t.length;if(i||o)return i==o;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)?i=ki.build(r,t,this.id,i,n):i&&i.disabled&&!r.some((e=>1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new Mi(e.source,0):e)));for(let t of e.effects)t.is(ji)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new Ci(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Oi}}const Oi={"aria-autocomplete":"list"};function _i(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const Ei=[];function Ai(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Mi{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Ai(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new Mi(r.source,0));for(let t of e.effects)if(t.is(Ti))r=new Mi(r.source,1,t.value?fi(e.state):-1);else if(t.is(Pi))r=new Mi(r.source,0);else if(t.is(Di))for(let e of t.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new Mi(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(fi(e.startState))?new Mi(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Mi(this.source,this.state,e.mapPos(this.explicitPos))}}class Ri extends Mi{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=fi(e.state);if((this.explicitPos<0?s<=i:s<this.from)||s>o||"delete"==t&&fi(e.startState)==this.from)return new Mi(this.source,"input"==t&&n.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):hi(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new Ri(this.source,l,this.result,i,o):this.result.update&&(a=this.result.update(this.result,i,o,new li(e.state,s,l>=0)))?new Ri(this.source,l,a,a.from,null!==(r=a.to)&&void 0!==r?r:fi(e.state)):new Mi(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Mi(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Ri(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const Ti=s.Py.define(),Pi=s.Py.define(),Di=s.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),ji=s.Py.define(),Ni=s.QQ.define({create:()=>Ci.start(),update:(e,t)=>e.update(t),provide:e=>[a.hJ.from(e,(e=>e.tooltip)),a.tk.contentAttributes.from(e,(e=>e.attrs))]});function Ii(e,t="option"){return n=>{let r=n.state.field(Ni,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(yi).interactionDelay)return!1;let i,o=1;"page"==t&&(i=(0,a.gB)(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:s}=r.open.options,l=r.open.selected>-1?r.open.selected+o*(e?1:-1):e?0:s-1;return l<0?l="page"==t?0:s-1:l>=s&&(l="page"==t?s-1:0),n.dispatch({effects:ji.of(l)}),!0}}class Li{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Fi=a.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(Ni).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(Ni);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Ni)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!Ai(e)));for(let t=0;t<this.running.length;t++){let r=this.running[t];if(n||r.updates.length+e.transactions.length>50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){(0,a.OO)(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==Ai(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(Ni);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=fi(t),r=new li(t,n,e.explicitPos==n),i=new Li(e,r);this.running.push(i),Promise.resolve(e.source(r)).then((e=>{i.context.aborted||(i.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:Pi.of(null)}),(0,a.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(yi);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(void 0===i.done)continue;if(this.running.splice(r--,1),i.done){let r=new Ri(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:fi(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)r=r.update(e,n);if(r.hasResult()){t.push(r);continue}}let o=this.view.state.field(Ni).active.find((e=>e.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new Mi(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:Di.of(t)})}},{eventHandlers:{blur(){let e=this.view.state.field(Ni,!1);e&&e.tooltip&&this.view.state.facet(yi).closeOnBlur&&this.view.dispatch({effects:Pi.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:Ti.of(!1)})),20),this.composing=0}}}),Bi=a.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zi={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ui=s.Py.define({map(e,t){let n=t.mapPos(e,-1,s.gc.TrackAfter);return null==n?void 0:n}}),Vi=s.Py.define({map:(e,t)=>t.mapPos(e)}),Wi=new class extends s.uU{};Wi.startSide=1,Wi.endSide=-1;const Hi=s.QQ.define({create:()=>s.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=s.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(Ui)?e=e.update({add:[Wi.range(n.value,n.value+1)]}):n.is(Vi)&&(e=e.update({filter:e=>e!=n.value}));return e}}),$i="()[]{}<>";function qi(e){for(let t=0;t<$i.length;t+=2)if($i.charCodeAt(t)==e)return $i.charAt(t+1);return(0,s.bg)(e<128?e:e+1)}function Ki(e,t){return e.languageDataAt("closeBrackets",t)[0]||zi}const Qi="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Gi=a.tk.inputHandler.of(((e,t,n,r)=>{if((Qi?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,s.nZ)((0,s.gm)(r,0))||t!=i.from||n!=i.to)return!1;let o=function(e,t){let n=Ki(e,e.selection.main.head),r=n.brackets||zi.brackets;for(let i of r){let o=qi((0,s.gm)(i,0));if(t==i)return o==i?to(e,i,r.indexOf(i+i+i)>-1,n):Zi(e,i,o,n.before||zi.before);if(t==o&&Xi(e,e.selection.main.from))return eo(e,0,o)}return null}(e.state,r);return!!o&&(e.dispatch(o),!0)})),Ji=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Ki(e,e.selection.main.head).brackets||zi.brackets,r=null,i=e.changeByRange((t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return(0,s.nZ)((0,s.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let i of n)if(i==r&&Yi(e.doc,t.head)==qi((0,s.gm)(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:s.jT.cursor(t.head-i.length)}}return{range:r=t}}));return r||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function Xi(e,t){let n=!1;return e.field(Hi).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Yi(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,s.nZ)((0,s.gm)(n,0)))}function Zi(e,t,n,r){let i=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:Ui.of(o.to+t.length),range:s.jT.range(o.anchor+t.length,o.head+t.length)};let a=Yi(e.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:Ui.of(o.head+t.length),range:s.jT.cursor(o.head+t.length)}:{range:i=o}}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function eo(e,t,n){let r=null,i=e.selection.ranges.map((t=>t.empty&&Yi(e.doc,t.head)==n?s.jT.cursor(t.head+n.length):r=t));return r?null:e.update({selection:s.jT.create(i,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>Vi.of(e)))})}function to(e,t,n,r){let i=r.stringPrefixes||zi.stringPrefixes,o=null,a=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:Ui.of(r.to+t.length),range:s.jT.range(r.anchor+t.length,r.head+t.length)};let a,l=r.head,u=Yi(e.doc,l);if(u==t){if(no(e,l))return{changes:{insert:t+t,from:l},effects:Ui.of(l+t.length),range:s.jT.cursor(l+t.length)};if(Xi(e,l)){let r=n&&e.sliceDoc(l,l+3*t.length)==t+t+t;return{range:s.jT.cursor(l+t.length*(r?3:1)),effects:Vi.of(l)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(a=ro(e,l-2*t.length,i))>-1&&no(e,a))return{changes:{insert:t+t+t+t,from:l},effects:Ui.of(l+t.length),range:s.jT.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=s.D0.Word&&ro(e,l,i)>-1&&!function(e,t,n,r){let i=pe(e).resolveInner(t,-1),o=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),a=s.indexOf(n);if(!a||a>-1&&r.indexOf(s.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Ui.of(l+t.length),range:s.jT.cursor(l+t.length)}}return{range:o=r}}));return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function no(e,t){let n=pe(e).resolveInner(t+1);return n.parent&&n.from==t}function ro(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=s.D0.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=s.D0.Word)return n}return-1}const io=[{key:"Ctrl-Space",run:e=>!!e.state.field(Ni,!1)&&(e.dispatch({effects:Ti.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(Ni,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:Pi.of(null)}),0))}},{key:"ArrowDown",run:Ii(!0)},{key:"ArrowUp",run:Ii(!1)},{key:"PageDown",run:Ii(!0,"page")},{key:"PageUp",run:Ii(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(Ni,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamp<e.state.facet(yi).interactionDelay||(t.open.disabled||pi(e,t.open.options[t.open.selected]),0))}}],oo=s.Wl.highest(a.$f.computeN([yi],(e=>e.facet(yi).defaultKeymap?[io]:[])));class so{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class ao{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(So).markerFilter;i&&(r=i(r));let o=a.p.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?a.p.widget({widget:new Oo(e),diagnostic:e}).range(e.from):a.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new ao(o,t,lo(o))}}function lo(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new so(e,n,i.diagnostic),!1})),r}function uo(e,t){return!(!e.effects.some((e=>e.is(fo)))&&!e.changes.touchesRange(t.pos))}function co(e,t){return e.field(mo,!1)?t:t.concat(s.Py.appendConfig.of([mo,a.tk.decorations.compute([mo],(e=>{let{selected:t,panel:n}=e.field(mo);return t&&n&&t.from!=t.to?a.p.set([go.range(t.from,t.to)]):a.p.none})),(0,a.bF)(vo,{hideOn:uo}),Mo]))}const fo=s.Py.define(),ho=s.Py.define(),po=s.Py.define(),mo=s.QQ.define({create:()=>new ao(a.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=lo(n,e.selected.diagnostic,i)||lo(n,null,i)}e=new ao(n,e.panel,r)}for(let n of t.effects)n.is(fo)?e=ao.init(n.value,e.panel,t.state):n.is(ho)?e=new ao(e.diagnostics,n.value?Eo.open:null,e.selected):n.is(po)&&(e=new ao(e.diagnostics,e.panel,n.value));return e},provide:e=>[a.mH.from(e,(e=>e.panel)),a.tk.decorations.from(e,(e=>e.diagnostics))]}),go=a.p.mark({class:"cm-lintRange cm-lintRange-active"});function vo(e,t,n){let{diagnostics:r}=e.state.field(mo),i=[],o=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:a})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(i.push(a.diagnostic),o=Math.min(e,o),s=Math.max(r,s))}));let a=e.state.facet(So).tooltipFilter;return a&&(i=a(i)),i.length?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>({dom:yo(e,i)})}:null}function yo(e,t){return sr("ul",{class:"cm-tooltip-lint"},t.map((t=>Co(e,t,!1))))}const bo=e=>{let t=e.state.field(mo,!1);return!(!t||!t.panel||(e.dispatch({effects:ho.of(!1)}),0))},wo=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(mo,!1);t&&t.panel||e.dispatch({effects:co(e.state,[ho.of(!0)])});let n=(0,a.Sd)(e,Eo.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(mo,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],xo=a.lg.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(So);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(e<this.lintTime-10)setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(So);Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:co(e,[fo.of(t)])}}(this.view.state,n))}),(e=>{(0,a.OO)(this.view.state,e)}))}}update(e){let t=e.state.facet(So);(e.docChanged||t!=e.startState.facet(So)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),So=s.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,s.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t})),enables:xo});function ko(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some((e=>e.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function Co(e,t,n){var r;let i=n?ko(t.actions):[];return sr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},sr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=lo(e.state.field(mo).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,u=l<0?a:[a.slice(0,l),sr("u",a.slice(l,l+1)),a.slice(l+1)];return sr("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[r]})"`}.`},u)})),t.source&&sr("div",{class:"cm-diagnosticSource"},t.source))}class Oo extends a.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return sr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class _o{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Co(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Eo{constructor(e){this.view=e,this.items=[],this.list=sr("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)bo(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=ko(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=lo(this.view.state.field(mo).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=sr("div",{class:"cm-panel-lint"},this.list,sr("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>bo(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(mo).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(mo),n=0,r=!1,i=null;for(e.between(0,this.view.state.doc.length,((e,o,{spec:s})=>{let a,l=-1;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==s.diagnostic){l=e;break}l<0?(a=new _o(this.view,s.diagnostic),this.items.splice(n,0,a),r=!0):(a=this.items[l],l>n&&(this.items.splice(n,l-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new _o(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.top<t.top?this.list.scrollTop-=t.top-e.top:e.bottom>t.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=lo(this.view.state.field(mo).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:po.of(t)})}static open(e){return new Eo(e)}}function Ao(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Mo=a.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Ao("#d11")},".cm-lintRange-warning":{backgroundImage:Ao("orange")},".cm-lintRange-info":{backgroundImage:Ao("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});class Ro extends a.SJ{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>{let n=t.severity;return"error"==n||"warning"==n&&"info"==e?n:e}),"info")}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,r=e.state.facet(lintGutterConfig).tooltipFilter;return r&&r(n),n.length&&(t.onmouseover=()=>function(e,t,n){function r(){let r=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(r.from)&&e.dispatch({effects:setLintGutterTooltip.of({pos:r.from,above:!1,create:()=>({dom:yo(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=r=>{let i=t.getBoundingClientRect();if(!(r.clientX>i.left-10&&r.clientX<i.right+10&&r.clientY>i.top-10&&r.clientY<i.bottom+10)){for(let e=r.target;e;e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",n),e.state.field(lintGutterTooltip)&&e.dispatch({effects:setLintGutterTooltip.of(null)})}};window.addEventListener("mousemove",n)}(e,t)}let{hoverTime:i}=e.state.facet(lintGutterConfig),o=setTimeout(r,i);t.onmouseout=()=>{clearTimeout(o),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(o),setTimeout(r,i)}}(e,t,n)),t}}var To=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(Ji)),!1!==e.defaultKeymap&&(t=t.concat(ir)),!1!==e.searchKeymap&&(t=t.concat(ei)),!1!==e.historyKeymap&&(t=t.concat(an)),!1!==e.foldKeymap&&(t=t.concat(Ge)),!1!==e.completionKeymap&&(t=t.concat(io)),!1!==e.lintKeymap&&(t=t.concat(wo));var n=[];return!1!==e.lineNumbers&&n.push((0,a.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,a.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,a.AE)()),!1!==e.history&&n.push(function(e={}){return[Wt,Vt.of(e),a.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?$t:"historyRedo"==e.inputType?qt:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push(function(e={}){let t=Object.assign(Object.assign({},et),e),n=new tt(t,!0),r=new tt(t,!1),i=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(ke)!=e.state.facet(ke)||e.startState.field(He,!1)!=e.state.field(He,!1)||pe(e.startState)!=pe(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.f_;for(let i of e.viewportLineBlocks){let o=$e(e.state,i.from,i.to)?r:Be(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:o}=t;return[i,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||s.Xs.empty},initialSpacer:()=>new tt(t,!1),domEventHandlers:Object.assign(Object.assign({},o),{click:(e,t,n)=>{if(o.click&&o.click(e,t,n))return!0;let r=$e(e.state,t.from,t.to);if(r)return e.dispatch({effects:Ve.of(r)}),!0;let i=Be(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:Ue.of(i)}),!0)}})}),Ye()]}()),!1!==e.drawSelection&&n.push((0,a.Uw)()),!1!==e.dropCursor&&n.push((0,a.qr)()),!1!==e.allowMultipleSelections&&n.push(s.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push(s.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:s}=e,a=-1,l=[];for(let{head:e}of s.selection.ranges){let t=s.doc.lineAt(e);if(t.from==a)continue;a=t.from;let n=Ae(s,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=Ee(s,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))),!1!==e.syntaxHighlighting&&n.push(at(ct,{fallback:!0})),!1!==e.bracketMatching&&n.push(function(e={}){return[pt.of(e),bt]}()),!1!==e.closeBrackets&&n.push([Gi,Hi]),!1!==e.autocompletion&&n.push(function(e={}){return[Ni,yi.of(e),Fi,oo,Bi]}()),!1!==e.rectangularSelection&&n.push((0,a.Zs)()),!1!==e.crosshairCursor&&n.push((0,a.S2)()),!1!==e.highlightActiveLine&&n.push((0,a.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){let t=[Er,_r];return t}()),e.tabSize&&"number"==typeof e.tabSize&&n.push(Oe.of(" ".repeat(e.tabSize))),n.concat([a.$f.of(t.flat())]).filter(Boolean)};const Po="#e06c75",Do="#abb2bf",jo="#7d8799",No="#d19a66",Io="#2c313a",Lo="#282c34",Fo="#353a42",Bo="#528bff",zo=[a.tk.theme({"&":{color:Do,backgroundColor:Lo},".cm-content":{caretColor:Bo},".cm-cursor, .cm-dropCursor":{borderLeftColor:Bo},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Do},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Lo,color:jo,border:"none"},".cm-activeLineGutter":{backgroundColor:Io},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Fo},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Fo,borderBottomColor:Fo},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Io,color:Do}}},{dark:!0}),at(rt.define([{tag:ae.keyword,color:"#c678dd"},{tag:[ae.name,ae.deleted,ae.character,ae.propertyName,ae.macroName],color:Po},{tag:[ae.function(ae.variableName),ae.labelName],color:"#61afef"},{tag:[ae.color,ae.constant(ae.name),ae.standard(ae.name)],color:No},{tag:[ae.definition(ae.name),ae.separator],color:Do},{tag:[ae.typeName,ae.className,ae.number,ae.changed,ae.annotation,ae.modifier,ae.self,ae.namespace],color:"#e5c07b"},{tag:[ae.operator,ae.operatorKeyword,ae.url,ae.escape,ae.regexp,ae.link,ae.special(ae.string)],color:"#56b6c2"},{tag:[ae.meta,ae.comment],color:jo},{tag:ae.strong,fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.link,color:jo,textDecoration:"underline"},{tag:ae.heading,fontWeight:"bold",color:Po},{tag:[ae.atom,ae.bool,ae.special(ae.variableName)],color:No},{tag:[ae.processingInstruction,ae.string,ae.inserted],color:"#98c379"},{tag:ae.invalid,color:"#ffffff"}]))];var Uo=s.q6.define();function Vo(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:l,onUpdate:u,extensions:c=[],autoFocus:f,theme:h="light",height:d="",minHeight:p="",maxHeight:m="",placeholder:g="",width:v="",minWidth:y="",maxWidth:b="",editable:w=!0,readOnly:x=!1,indentWithTab:S=!0,basicSetup:k=!0,root:C,initialState:O}=e,[_,E]=(0,o.useState)(),[A,M]=(0,o.useState)(),[R,T]=(0,o.useState)(),P=a.tk.theme({"&":{height:d,minHeight:p,maxHeight:m,width:v,minWidth:y,maxWidth:b}}),D=a.tk.updateListener.of((e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some((e=>e.annotation(Uo)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),j=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:l=!0}=e,u=[],c=a.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(t&&u.unshift(a.$f.of([or])),l&&("boolean"==typeof l?u.unshift(To()):u.unshift(To(l))),o&&u.unshift((0,a.W$)(o)),i){case"light":u.push(c);break;case"dark":u.push(zo);break;case"none":break;default:u.push(i)}return!1===n&&u.push(a.tk.editable.of(!1)),r&&u.push(s.yy.readOnly.of(!0)),[...u]}({theme:h,editable:w,readOnly:x,placeholder:g,indentWithTab:S,basicSetup:k}),N=[D,P,...j];return u&&"function"==typeof u&&N.push(a.tk.updateListener.of(u)),N=N.concat(c),(0,o.useEffect)((()=>{if(_&&!R){var e={doc:t,selection:n,extensions:N},r=O?s.yy.fromJSON(O.json,e,O.fields):s.yy.create(e);if(T(r),!A){var i=new a.tk({state:r,parent:_,root:C});M(i),l&&l(i,r)}}return()=>{A&&(T(void 0),M(void 0))}}),[_,R]),(0,o.useEffect)((()=>E(e.container)),[e.container]),(0,o.useEffect)((()=>()=>{A&&(A.destroy(),M(void 0))}),[A]),(0,o.useEffect)((()=>{f&&A&&A.focus()}),[f,A]),(0,o.useEffect)((()=>{A&&A.dispatch({effects:s.Py.reconfigure.of(N)})}),[h,c,d,p,m,v,y,b,g,w,x,S,k,r,u]),(0,o.useEffect)((()=>{if(void 0!==t){var e=A?A.state.doc.toString():"";A&&t!==e&&A.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[Uo.of(!0)]})}}),[t,A]),{state:R,setState:T,view:A,setView:M,container:_,setContainer:E}}var Wo=n(5893),Ho=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],$o=(0,o.forwardRef)(((e,t)=>{var{className:n,value:s="",selection:a,extensions:l=[],onChange:u,onStatistics:c,onCreateEditor:f,onUpdate:h,autoFocus:d,theme:p="light",height:m,minHeight:g,maxHeight:v,width:y,minWidth:b,maxWidth:w,basicSetup:x,placeholder:S,indentWithTab:k,editable:C,readOnly:O,root:_,initialState:E}=e,A=(0,i.Z)(e,Ho),M=(0,o.useRef)(null),{state:R,view:T,container:P}=Vo({container:M.current,root:_,value:s,autoFocus:d,theme:p,height:m,minHeight:g,maxHeight:v,width:y,minWidth:b,maxWidth:w,basicSetup:x,placeholder:S,indentWithTab:k,editable:C,readOnly:O,selection:a,onChange:u,onStatistics:c,onCreateEditor:f,onUpdate:h,extensions:l,initialState:E});if((0,o.useImperativeHandle)(t,(()=>({editor:M.current,state:R,view:T})),[M,P,R,T]),"string"!=typeof s)throw new Error("value must be typeof string but got "+typeof s);var D="string"==typeof p?"cm-theme-"+p:"cm-theme";return(0,Wo.jsx)("div",(0,r.Z)({ref:M,className:D+(n?" "+n:"")},A))}));$o.displayName="CodeMirror";const qo=$o},8363:(e,t)=>{"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},1924:(e,t,n)=>{"use strict";var r=n(210),i=n(5559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),i=n(210),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(s,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=a(r,s,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return a(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},8687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".rc-slider {\n position: relative;\n width: 100%;\n height: 14px;\n padding: 5px 0;\n border-radius: 6px;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-rail {\n position: absolute;\n width: 100%;\n height: 4px;\n background-color: #e9e9e9;\n border-radius: 6px;\n}\n.rc-slider-track {\n position: absolute;\n height: 4px;\n background-color: #abe2fb;\n border-radius: 6px;\n}\n.rc-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n background-color: #fff;\n border: solid 2px #96dbfa;\n border-radius: 50%;\n cursor: pointer;\n cursor: -webkit-grab;\n cursor: grab;\n opacity: 0.8;\n touch-action: pan-x;\n}\n.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {\n border-color: #57c5f7;\n box-shadow: 0 0 0 5px #96dbfa;\n}\n.rc-slider-handle:focus {\n outline: none;\n box-shadow: none;\n}\n.rc-slider-handle:focus-visible {\n border-color: #2db7f5;\n box-shadow: 0 0 0 3px #96dbfa;\n}\n.rc-slider-handle-click-focused:focus {\n border-color: #96dbfa;\n box-shadow: unset;\n}\n.rc-slider-handle:hover {\n border-color: #57c5f7;\n}\n.rc-slider-handle:active {\n border-color: #57c5f7;\n box-shadow: 0 0 5px #57c5f7;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n}\n.rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n color: #999;\n text-align: center;\n vertical-align: middle;\n cursor: pointer;\n}\n.rc-slider-mark-text-active {\n color: #666;\n}\n.rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n pointer-events: none;\n}\n.rc-slider-dot {\n position: absolute;\n bottom: -2px;\n width: 8px;\n height: 8px;\n vertical-align: middle;\n background-color: #fff;\n border: 2px solid #e9e9e9;\n border-radius: 50%;\n cursor: pointer;\n}\n.rc-slider-dot-active {\n border-color: #96dbfa;\n}\n.rc-slider-dot-reverse {\n margin-right: -4px;\n}\n.rc-slider-disabled {\n background-color: #e9e9e9;\n}\n.rc-slider-disabled .rc-slider-track {\n background-color: #ccc;\n}\n.rc-slider-disabled .rc-slider-handle,\n.rc-slider-disabled .rc-slider-dot {\n background-color: #fff;\n border-color: #ccc;\n box-shadow: none;\n cursor: not-allowed;\n}\n.rc-slider-disabled .rc-slider-mark-text,\n.rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n}\n.rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n}\n.rc-slider-vertical .rc-slider-rail {\n width: 4px;\n height: 100%;\n}\n.rc-slider-vertical .rc-slider-track {\n bottom: 0;\n left: 5px;\n width: 4px;\n}\n.rc-slider-vertical .rc-slider-handle {\n margin-top: 0;\n margin-left: -5px;\n touch-action: pan-y;\n}\n.rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n}\n.rc-slider-vertical .rc-slider-step {\n width: 4px;\n height: 100%;\n}\n.rc-slider-vertical .rc-slider-dot {\n margin-left: -2px;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n display: block !important;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-leave {\n display: block !important;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n@keyframes rcSliderTooltipZoomDownIn {\n 0% {\n transform: scale(0, 0);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 100% {\n transform: scale(1, 1);\n transform-origin: 50% 100%;\n }\n}\n@keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform: scale(1, 1);\n transform-origin: 50% 100%;\n }\n 100% {\n transform: scale(0, 0);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n.rc-slider-tooltip {\n position: absolute;\n top: -9999px;\n left: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-tooltip-hidden {\n display: none;\n}\n.rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n}\n.rc-slider-tooltip-inner {\n min-width: 24px;\n height: 24px;\n padding: 6px 2px;\n color: #fff;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n}\n.rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n}\n",""]);const a=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&s[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},296:e=>{function t(e,t,n){var r,i,o,s,a;function l(){var u=Date.now()-s;u<t&&u>=0?r=setTimeout(l,t-u):(r=null,n||(a=e.apply(o,i),o=i=null))}null==t&&(t=100);var u=function(){o=this,i=arguments,s=Date.now();var u=n&&!r;return r||(r=setTimeout(l,t)),u&&(a=e.apply(o,i),o=i=null),a};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(a=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},u}t.debounce=t,e.exports=t},251:(e,t,n)=>{"use strict";var r=n(3533),i=n(1924),o=n(2847),s=n(210),a=n(3216),l=n(7478),u=n(609),c=n(2584),f=n(5826),h=n(635),d=n(8923),p=n(8420),m=n(2579),g=n(2215),v=n(3679),y=n(3483),b=n(6430),w=i("ArrayBuffer.prototype.byteLength",!0)||function(e){return e.byteLength},x=i("SharedArrayBuffer.prototype.byteLength",!0),S=i("Date.prototype.getTime"),k=Object.getPrototypeOf,C=i("Object.prototype.toString"),O=s("%Set%",!0),_=i("Map.prototype.has",!0),E=i("Map.prototype.get",!0),A=i("Map.prototype.size",!0),M=i("Set.prototype.add",!0),R=i("Set.prototype.delete",!0),T=i("Set.prototype.has",!0),P=i("Set.prototype.size",!0);function D(e,t,n,r){for(var i,o=a(e);(i=o.next())&&!i.done;)if(F(t,i.value,n,r))return R(e,i.value),!0;return!1}function j(e){return void 0===e?null:"object"!=typeof e?"symbol"!=typeof e&&("string"!=typeof e&&"number"!=typeof e||+e==+e):void 0}function N(e,t,n,i,o,s){var a=j(n);if(null!=a)return a;var l=E(t,a),u=r({},o,{strict:!1});return!(void 0===l&&!_(t,a)||!F(i,l,u,s))&&!_(e,a)&&F(i,l,u,s)}function I(e,t,n){var r=j(n);return null!=r?r:T(t,r)&&!T(e,r)}function L(e,t,n,r,i,o){for(var s,l,u=a(e);(s=u.next())&&!s.done;)if(F(n,l=s.value,i,o)&&F(r,E(t,l),i,o))return R(e,l),!0;return!1}function F(e,t,n,i){var s=n||{};if(s.strict?u(e,t):e===t)return!0;if(v(e)!==v(t))return!1;if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return s.strict?u(e,t):e==t;var l,R=i.has(e),j=i.has(t);if(R&&j){if(i.get(e)===i.get(t))return!0}else l={};return R||i.set(e,l),j||i.set(t,l),function(e,t,n,i){var s,l;if(typeof e!=typeof t)return!1;if(null==e||null==t)return!1;if(C(e)!==C(t))return!1;if(c(e)!==c(t))return!1;if(f(e)!==f(t))return!1;var u=e instanceof Error,v=t instanceof Error;if(u!==v)return!1;if((u||v)&&(e.name!==t.name||e.message!==t.message))return!1;var R=p(e),j=p(t);if(R!==j)return!1;if((R||j)&&(e.source!==t.source||o(e)!==o(t)))return!1;var z=d(e),U=d(t);if(z!==U)return!1;if((z||U)&&S(e)!==S(t))return!1;if(n.strict&&k&&k(e)!==k(t))return!1;var V=b(e),W=b(t);if((V||W)&&V!==W)return!1;var H=B(e),$=B(t);if(H!==$)return!1;if(H||$){if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}var q=h(e),K=h(t);if(q!==K)return!1;if(q||K)return w(e)===w(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,i);var Q=m(e),G=m(t);if(Q!==G)return!1;if(Q||G)return x(e)===x(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,i);if(typeof e!=typeof t)return!1;var J=g(e),X=g(t);if(J.length!==X.length)return!1;for(J.sort(),X.sort(),s=J.length-1;s>=0;s--)if(J[s]!=X[s])return!1;for(s=J.length-1;s>=0;s--)if(!F(e[l=J[s]],t[l],n,i))return!1;var Y=y(e),Z=y(t);return Y===Z&&("Set"===Y||"Set"===Z?function(e,t,n,r){if(P(e)!==P(t))return!1;for(var i,o,s,l=a(e),u=a(t);(i=l.next())&&!i.done;)if(i.value&&"object"==typeof i.value)s||(s=new O),M(s,i.value);else if(!T(t,i.value)){if(n.strict)return!1;if(!I(e,t,i.value))return!1;s||(s=new O),M(s,i.value)}if(s){for(;(o=u.next())&&!o.done;)if(o.value&&"object"==typeof o.value){if(!D(s,o.value,n.strict,r))return!1}else if(!n.strict&&!T(e,o.value)&&!D(s,o.value,n.strict,r))return!1;return 0===P(s)}return!0}(e,t,n,i):"Map"!==Y||function(e,t,n,i){if(A(e)!==A(t))return!1;for(var o,s,l,u,c,f,h=a(e),d=a(t);(o=h.next())&&!o.done;)if(u=o.value[0],c=o.value[1],u&&"object"==typeof u)l||(l=new O),M(l,u);else if(void 0===(f=E(t,u))&&!_(t,u)||!F(c,f,n,i)){if(n.strict)return!1;if(!N(e,t,u,c,n,i))return!1;l||(l=new O),M(l,u)}if(l){for(;(s=d.next())&&!s.done;)if(u=s.value[0],f=s.value[1],u&&"object"==typeof u){if(!L(l,e,u,f,n,i))return!1}else if(!(n.strict||e.has(u)&&F(E(e,u),f,n,i)||L(l,e,u,f,r({},n,{strict:!1}),i)))return!1;return 0===P(l)}return!0}(e,t,n,i))}(e,t,s,i)}function B(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0]||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))}e.exports=function(e,t,n){return F(e,t,n,l())}},1245:function(e,t,n){e.exports=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(t,n){t.exports=function(){var t="function"==typeof Promise,n="object"==typeof self?self:e,r="undefined"!=typeof Symbol,i="undefined"!=typeof Map,o="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,u=r&&void 0!==Symbol.iterator,c=r&&void 0!==Symbol.toStringTag,f=o&&"function"==typeof Set.prototype.entries,h=i&&"function"==typeof Map.prototype.entries,d=f&&Object.getPrototypeOf((new Set).entries()),p=h&&Object.getPrototypeOf((new Map).entries()),m=u&&"function"==typeof Array.prototype[Symbol.iterator],g=m&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],y=v&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,w=-1;function x(e){var r=typeof e;if("object"!==r)return r;if(null===e)return"null";if(e===n)return"global";if(Array.isArray(e)&&(!1===c||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var u=c&&e[Symbol.toStringTag];if("string"==typeof u)return u;var f=Object.getPrototypeOf(e);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":t&&f===Promise.prototype?"Promise":o&&f===Set.prototype?"Set":i&&f===Map.prototype?"Map":a&&f===WeakSet.prototype?"WeakSet":s&&f===WeakMap.prototype?"WeakMap":l&&f===DataView.prototype?"DataView":i&&f===p?"Map Iterator":o&&f===d?"Set Iterator":m&&f===g?"Array Iterator":v&&f===y?"String Iterator":null===f?"Object":Object.prototype.toString.call(e).slice(b,w)}return x}()}));const r="undefined"!=typeof Buffer,i=r&&void 0!==Buffer.from,o=r?function(e){return Buffer.isBuffer(e)}:function(){return!1},s=i?function(e){return Buffer.from(e)}:r?function(e){return new Buffer(e)}:function(e){return e};function a(e){return o(e)?"Buffer":t(e)}const l=new Set(["Arguments","Array","Map","Object","Set"]);function u(e,t,n=null){switch(n||a(e)){case"Arguments":case"Array":case"Object":return e[t];case"Map":return e.get(t);case"Set":return t}}function c(e){return l.has(e)}function f(e,t,n,r=null){switch(r||a(e)){case"Arguments":case"Array":case"Object":e[t]=n;break;case"Map":e.set(t,n);break;case"Set":e.add(n)}return e}const h="undefined"!=typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis,d=void 0!==n.g&&null!==n.g&&n.g.Object===Object&&n.g,p="undefined"!=typeof self&&null!==self&&self.Object===Object&&self,m=h||d||p||Function("return this")();function g(e,t){return m[t].from?m[t].from(e):new m[t](e)}function v(e){return e}function y(){return[]}var b=new Map([["ArrayBuffer",function(e){return e.slice(0)}],["Boolean",function(e){return new Boolean(e.valueOf())}],["Buffer",function(e){return s(e)}],["DataView",function(e){return new DataView(e.buffer)}],["Date",function(e){return new Date(e.getTime())}],["Number",function(e){return new Number(e)}],["RegExp",function(e){return new RegExp(e.source,e.flags)}],["String",function(e){return new String(e)}],["Float32Array",g],["Float64Array",g],["Int16Array",g],["Int32Array",g],["Int8Array",g],["Uint16Array",g],["Uint32Array",g],["Uint8Array",g],["Uint8ClampedArray",g],["Array Iterator",v],["Map Iterator",v],["Promise",v],["Set Iterator",v],["String Iterator",v],["function",v],["global",v],["WeakMap",v],["WeakSet",v],["boolean",v],["null",v],["number",v],["string",v],["symbol",v],["undefined",v],["Arguments",y],["Array",y],["Map",function(){return new Map}],["Object",function(){return{}}],["Set",function(){return new Set}]]);function w(){}function x(e,t=null,n=w){2===arguments.length&&"function"==typeof t&&(n=t,t=null);const r=t||a(e),i=b.get(r);if("Object"===r){const t=n(e,r);if(void 0!==t)return t}return i?i(e,r):e}function S(e,t,n,r,i){const o=a(e),s=x(e,o);if(!c(o))return s;let l;switch(o){case"Arguments":case"Array":l=Object.keys(e);break;case"Object":l=Object.keys(e),l.push(...Object.getOwnPropertySymbols(e));break;case"Map":case"Set":l=e.keys()}for(let i of l){const s=u(e,i,o);if(r.has(s))f(t,i,n.get(s),o);else{const e=a(s),l=x(s,e);c(e)&&(n.set(s,l),r.add(s)),f(t,i,S(s,l,n,r),o)}}return t}return function(e,t={}){"function"==typeof t&&(t={customizer:t});const{customizer:n}=t,r=a(e);if(!c(r))return S(e,null,null,null);const i=x(e,r,n);return S(e,i,new WeakMap([[e,i]]),new WeakSet([e]))}}()},4289:(e,t,n)=>{"use strict";var r=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,l=n(1044)(),u=a&&l,c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?a(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)c(e,o[a],t[o[a]],n[o[a]])};f.supportsDescriptors=!!u,e.exports=f},9180:function(e,t,n){var r,i,o;!function(s,a){"use strict";i=[n(9829)],void 0===(o="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;var i=this.extractLocation(r?r[1]:n),o=r&&n||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,o=this.extractLocation(t.replace(n,""));return new e({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],o=2,s=r.length;o<s;o+=2){var a=n.exec(r[o]);a&&i.push(new e({fileName:a[2],lineNumber:a[1],source:r[o]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],o=0,s=r.length;o<s;o+=2){var a=n.exec(r[o]);a&&i.push(new e({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:r[o]}))}return i},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,r=t.split("@"),i=this.extractLocation(r.pop()),o=r.shift()||"",s=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;o.match(/\(([^)]*)\)/)&&(n=o.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:s,args:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)}}})?r.apply(t,i):r)||(e.exports=o)}()},4029:(e,t,n)=>{"use strict";var r=n(5320),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,s):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s)}},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,o=t.call(arguments,1),s=Math.max(0,r.length-o.length),a=[],l=0;l<s;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new s},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(1405)(),h=Object.getPrototypeOf||function(e){return e.__proto__},d={},p="undefined"==typeof Uint8Array?r:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var g=h(h(e));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(8612),w=n(7642),x=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),C=b.call(Function.call,String.prototype.slice),O=b.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,A=function(e,t){var n,r=e;if(w(y,r)&&(r="%"+(n=y[r])[0]+"%"),w(m,r)){var o=m[r];if(o===d&&(o=v(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,_,(function(e,t,n,i){r[r.length]=n?k(i,E,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=A("%"+r+"%",t),a=o.name,u=o.value,c=!1,f=o.alias;f&&(r=f[0],S(n,x([0,1],f)));for(var h=1,d=!0;h<n.length;h+=1){var p=n[h],g=C(p,0,1),v=C(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&d||(c=!0),w(m,a="%"+(r+="."+p)+"%"))u=m[a];else if(null!=u){if(!(p in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=n.length){var y=l(u,p);u=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else d=w(u,p),u=u[p];d&&!c&&(m[a]=u)}}return u}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},932:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:(e,t,n)=>{"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var s=c(n);f&&(s=s.concat(f(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!(o[v]||r&&r[v]||m&&m[v]||a&&a[v])){var y=h(n,v);try{u(t,v,y)}catch(e){}}}}return t}},9496:(e,t,n)=>{"use strict";var r=n(210),i=n(7642),o=n(7478)(),s=r("%TypeError%"),a={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`O` is not an object");if("string"!=typeof t)throw new s("`slot` must be a string");if(o.assert(e),!a.has(e,t))throw new s("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`O` is not an object");if("string"!=typeof t)throw new s("`slot` must be a string");var n=o.get(e);return n&&n["$"+t]},has:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`O` is not an object");if("string"!=typeof t)throw new s("`slot` must be a string");var n=o.get(e);return!!n&&i(n,"$"+t)},set:function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`O` is not an object");if("string"!=typeof t)throw new s("`slot` must be a string");var r=o.get(e);r||(r={},o.set(e,r)),r["$"+t]=n}};Object.freeze&&Object.freeze(a),e.exports=a},2584:(e,t,n)=>{"use strict";var r=n(6410)(),i=n(1924)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},635:(e,t,n)=>{"use strict";var r=n(5559),i=n(1924),o=n(210),s=n(5692),a=o("ArrayBuffer",!0),l=o("Float32Array",!0),u=i("ArrayBuffer.prototype.byteLength",!0),c=a&&!u&&(new a).slice,f=c&&r(c);e.exports=u||f?function(e){if(!e||"object"!=typeof e)return!1;try{return u?u(e):f(e,0),!0}catch(e){return!1}}:l?function(e){try{return new l(e).buffer===e&&!s(e)}catch(t){return"object"==typeof e&&"RangeError"===t.name}}:function(e){return!1}},3376:(e,t,n)=>{"use strict";if(n(932)()){var r=BigInt.prototype.valueOf;e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||function(e){try{return r.call(e),!0}catch(e){}return!1}(e))}}else e.exports=function(e){return!1}},6814:(e,t,n)=>{"use strict";var r=n(1924),i=r("Boolean.prototype.toString"),o=r("Object.prototype.toString"),s=n(6410)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(s&&Symbol.toStringTag in e?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Boolean]"===o(e))}},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)&&a(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return a(e);if(s(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},8923:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},8379:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var i=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},4578:(e,t,n)=>{"use strict";var r=Number.prototype.toString,i=Object.prototype.toString,o=n(6410)();e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Number]"===i.call(e))}},8420:(e,t,n)=>{"use strict";var r,i,o,s,a=n(1924),l=n(6410)();if(l){r=a("Object.prototype.hasOwnProperty"),i=a("RegExp.prototype.exec"),o={};var u=function(){throw o};s={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=u)}var c=a("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{i(e,s)}catch(e){return e===o}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}},9572:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var i=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},2579:(e,t,n)=>{"use strict";var r=n(1924)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},9981:(e,t,n)=>{"use strict";var r=String.prototype.valueOf,i=Object.prototype.toString,o=n(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},2636:(e,t,n)=>{"use strict";var r=Object.prototype.toString;if(n(1405)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&o.test(i.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},5692:(e,t,n)=>{"use strict";var r=n(4029),i=n(3083),o=n(1924),s=o("Object.prototype.toString"),a=n(6410)(),l=n(7296),u="undefined"==typeof globalThis?n.g:globalThis,c=i(),f=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},h=o("String.prototype.slice"),d={},p=Object.getPrototypeOf;a&&l&&p&&r(c,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=l(n,Symbol.toStringTag);if(!r){var i=p(n);r=l(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a||!(Symbol.toStringTag in e)){var t=h(s(e),8,-1);return f(c,t)>-1}return!!l&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},1718:e=>{"use strict";var t,n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var i=n?n.prototype.has:null,o=r?r.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e,i),o)try{o.call(e,o)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},5899:(e,t,n)=>{"use strict";var r=n(210),i=n(1924),o=r("%WeakSet%",!0),s=i("WeakSet.prototype.has",!0);if(s){var a=i("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(s(e,s),a)try{a(e,a)}catch(e){return!0}return e instanceof o}catch(e){}return!1}}else e.exports=function(e){return!1}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,f=9007199254740991,h=NaN,d=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",S="[object Map]",k="[object Number]",C="[object Object]",O="[object Promise]",_="[object RegExp]",E="[object Set]",A="[object String]",M="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",P="[object DataView]",D="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp($.source),Q=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Ee="\\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="["+xe+"]",Me="["+Ee+"]",Re="["+Se+"]",Te="\\d+",Pe="["+ke+"]",De="["+Ce+"]",je="[^"+xe+Ee+Te+ke+Ce+Oe+"]",Ne="\\ud83c[\\udffb-\\udfff]",Ie="[^"+xe+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Oe+"]",ze="\\u200d",Ue="(?:"+De+"|"+je+")",Ve="(?:"+Be+"|"+je+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Re+"|"+Ne+")?",qe="["+_e+"]?",Ke=qe+$e+"(?:"+ze+"(?:"+[Ie,Le,Fe].join("|")+")"+qe+$e+")*",Qe="(?:"+[Pe,Le,Fe].join("|")+")"+Ke,Ge="(?:"+[Ie+Re+"?",Re,Le,Fe,Ae].join("|")+")",Je=RegExp("['’]","g"),Xe=RegExp(Re,"g"),Ye=RegExp(Ne+"(?="+Ne+")|"+Ge+Ke,"g"),Ze=RegExp([Be+"?"+De+"+"+We+"(?="+[Me,Be,"$"].join("|")+")",Ve+"+"+He+"(?="+[Me,Be+Ue,"$"].join("|")+")",Be+"?"+Ue+"+"+We,Be+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Qe].join("|"),"g"),et=RegExp("["+ze+xe+Se+_e+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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"],rt=-1,it={};it[D]=it[j]=it[N]=it[I]=it[L]=it[F]=it[B]=it[z]=it[U]=!0,it[m]=it[g]=it[T]=it[v]=it[P]=it[y]=it[b]=it[w]=it[S]=it[k]=it[C]=it[_]=it[E]=it[A]=it[R]=!1;var ot={};ot[m]=ot[g]=ot[T]=ot[P]=ot[v]=ot[y]=ot[D]=ot[j]=ot[N]=ot[I]=ot[L]=ot[S]=ot[k]=ot[C]=ot[_]=ot[E]=ot[A]=ot[M]=ot[F]=ot[B]=ot[z]=ot[U]=!0,ot[b]=ot[w]=ot[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||ct||Function("return this")(),ht=t&&!t.nodeType&&t,dt=ht&&e&&!e.nodeType&&e,pt=dt&&dt.exports===ht,mt=pt&&ut.process,gt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,wt=gt&>.isRegExp,xt=gt&>.isSet,St=gt&>.isTypedArray;function kt(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 Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(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 At(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Mt(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function jt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Nt(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 It=Wt("length");function Lt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Ut,n)}function zt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:h}function Wt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,hn(e)+1).replace(re,""):e}function Gt(e){return function(t){return e(t)}}function Jt(e,t){return Tt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Yt(e,t){for(var n=-1,r=e.length;++n<r&&Bt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var en=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Ye.lastIndex=0;Ye.test(e);)++t;return t}(e):It(e)}function fn(e){return rn(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,ie=t.Date,xe=t.Error,Se=t.Function,ke=t.Math,Ce=t.Object,Oe=t.RegExp,_e=t.String,Ee=t.TypeError,Ae=r.prototype,Me=Se.prototype,Re=Ce.prototype,Te=t["__core-js_shared__"],Pe=Me.toString,De=Re.hasOwnProperty,je=0,Ne=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ie=Re.toString,Le=Pe.call(Ce),Fe=ft._,Be=Oe("^"+Pe.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=pt?t.Buffer:i,Ue=t.Symbol,Ve=t.Uint8Array,We=ze?ze.allocUnsafe:i,He=sn(Ce.getPrototypeOf,Ce),$e=Ce.create,qe=Re.propertyIsEnumerable,Ke=Ae.splice,Qe=Ue?Ue.isConcatSpreadable:i,Ge=Ue?Ue.iterator:i,Ye=Ue?Ue.toStringTag:i,et=function(){try{var e=lo(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ft.Date.now&&ie.now,ct=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,dt=ke.floor,mt=Ce.getOwnPropertySymbols,gt=ze?ze.isBuffer:i,It=t.isFinite,Ht=Ae.join,mn=sn(Ce.keys,Ce),gn=ke.max,vn=ke.min,yn=ie.now,bn=t.parseInt,wn=ke.random,xn=Ae.reverse,Sn=lo(t,"DataView"),kn=lo(t,"Map"),Cn=lo(t,"Promise"),On=lo(t,"Set"),_n=lo(t,"WeakMap"),En=lo(Ce,"create"),An=_n&&new _n,Mn={},Rn=Lo(Sn),Tn=Lo(kn),Pn=Lo(Cn),Dn=Lo(On),jn=Lo(_n),Nn=Ue?Ue.prototype:i,In=Nn?Nn.valueOf:i,Ln=Nn?Nn.toString:i;function Fn(e){if(ea(e)&&!Ws(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(De.call(e,"__wrapped__"))return Fo(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!Zs(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,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 Hn(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 $n(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Qn(e,t){var n=Ws(e),r=!n&&Vs(e),i=!n&&!r&&Ks(e),o=!n&&!r&&!i&&la(e),s=n||r||i||o,a=s?Kt(e.length,_e):[],l=a.length;for(var u in e)!t&&!De.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||go(u,l))||a.push(u);return a}function Gn(e){var t=e.length;return t?e[$r(0,t-1)]:i}function Jn(e,t){return Po(_i(e),or(t,0,e.length))}function Xn(e){return Po(_i(e))}function Yn(e,t,n){(n!==i&&!Bs(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];De.call(e,t)&&Bs(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&Ei(t,Ra(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Oa(e,t[n]);return s}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!Zs(e))return e;var f=Ws(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return _i(e,a)}else{var h=fo(e),d=h==w||h==x;if(Ks(e))return wi(e,l);if(h==C||h==m||d&&!o){if(a=u||d?{}:po(e),!l)return u?function(e,t){return Ei(e,co(e),t)}(e,function(e,t){return e&&Ei(t,Ta(t),e)}(a,e)):function(e,t){return Ei(e,uo(e),t)}(e,nr(a,e))}else{if(!ot[h])return o?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case T:return xi(e);case v:case y:return new i(+e);case P:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case j:case N:case I:case L:case F:case B:case z:case U:return Si(e,n);case S:return new i;case k:case A:return new i(e);case _:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new i;case M:return r=e,In?Ce(In.call(r)):{}}}(e,h,l)}}s||(s=new Kn);var p=s.get(e);if(p)return p;s.set(e,a),oa(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,i){a.set(i,sr(r,t,n,i,e,s))}));var g=f?i:(c?u?to:eo:u?Ta:Ra)(e);return Ot(g||e,(function(r,i){g&&(r=e[i=r]),Zn(a,i,sr(r,t,n,i,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Ee(o);return Ao((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=Mt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Tt(t,Gt(n))),r?(o=Rt,s=!1):t.length>=200&&(o=Xt,s=!1,t=new qn(t));e:for(;++i<a;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,s&&f==f){for(var h=u;h--;)if(t[h]===f)continue e;l.push(c)}else o(t,f,r)||l.push(c)}return l}Fn.templateSettings={escape:G,evaluate:J,interpolate:X,variable:"",imports:{_:Fn}},Fn.prototype=zn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Bn(zn.prototype),Un.prototype.constructor=Un,Vn.prototype=Bn(zn.prototype),Vn.prototype.constructor=Vn,Wn.prototype.clear=function(){this.__data__=En?En(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(En){var n=t[e];return n===s?i:n}return De.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==i:De.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===i?s:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Hn.prototype.has=function(e){return er(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(kn||Hn),string:new Wn}},$n.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return so(this,e).get(e)},$n.prototype.has=function(e){return so(this,e).has(e)},$n.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,s),this},qn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var cr=Ri(yr),fr=Ri(br,!0);function hr(e,t){var n=!0;return cr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function dr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a==a&&!aa(a):n(a,l)))var l=a,u=s}return u}function pr(e,t){var n=[];return cr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=mo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?mr(a,t-1,n,r,i):Pt(i,a):r||(i[i.length]=a)}return i}var gr=Ti(),vr=Ti(!0);function yr(e,t){return e&&gr(e,t,Ra)}function br(e,t){return e&&vr(e,t,Ra)}function wr(e,t){return At(t,(function(t){return Js(e[t])}))}function xr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Io(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Ws(e)?r:Pt(r,n(e))}function kr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ye&&Ye in Ce(e)?function(e){var t=De.call(e,Ye),n=e[Ye];try{e[Ye]=i;var r=!0}catch(e){}var o=Ie.call(e);return r&&(t?e[Ye]=n:delete e[Ye]),o}(e):function(e){return Ie.call(e)}(e)}function Cr(e,t){return e>t}function Or(e,t){return null!=e&&De.call(e,t)}function _r(e,t){return null!=e&&t in Ce(e)}function Er(e,t,n){for(var o=n?Rt:Mt,s=e[0].length,a=e.length,l=a,u=r(a),c=1/0,f=[];l--;){var h=e[l];l&&t&&(h=Tt(h,Gt(t))),c=vn(h.length,c),u[l]=!n&&(t||s>=120&&h.length>=120)?new qn(l&&h):i}h=e[0];var d=-1,p=u[0];e:for(;++d<s&&f.length<c;){var m=h[d],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?Xt(p,g):o(f,g,n))){for(l=a;--l;){var v=u[l];if(!(v?Xt(v,g):o(e[l],g,n)))continue e}p&&p.push(g),f.push(m)}}return f}function Ar(e,t,n){var r=null==(e=Oo(e,t=gi(t,e)))?e:e[Io(Go(t))];return null==r?i:kt(r,e,n)}function Mr(e){return ea(e)&&kr(e)==m}function Rr(e,t,n,r,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Ws(e),l=Ws(t),u=a?g:fo(e),c=l?g:fo(t),f=(u=u==m?C:u)==C,h=(c=c==m?C:c)==C,d=u==c;if(d&&Ks(e)){if(!Ks(t))return!1;a=!0,f=!1}if(d&&!f)return s||(s=new Kn),a||la(e)?Yi(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new Ve(e),new Ve(t)));case v:case y:case k:return Bs(+e,+t);case b:return e.name==t.name&&e.message==t.message;case _:case A:return e==t+"";case S:var a=on;case E:var l=1&r;if(a||(a=ln),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=Yi(a(e),a(t),r,i,o,s);return s.delete(e),c;case M:if(In)return In.call(e)==In.call(t)}return!1}(e,t,u,n,r,o,s);if(!(1&n)){var p=f&&De.call(e,"__wrapped__"),w=h&&De.call(t,"__wrapped__");if(p||w){var x=p?e.value():e,O=w?t.value():t;return s||(s=new Kn),o(x,O,n,r,s)}}return!!d&&(s||(s=new Kn),function(e,t,n,r,o,s){var a=1&n,l=eo(e),u=l.length;if(u!=eo(t).length&&!a)return!1;for(var c=u;c--;){var f=l[c];if(!(a?f in t:De.call(t,f)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var m=a;++c<u;){var g=e[f=l[c]],v=t[f];if(r)var y=a?r(v,g,f,t,e,s):r(g,v,f,e,t,s);if(!(y===i?g===v||o(g,v,n,r,s):y)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,o,s))}(e,t,n,r,Rr,o))}function Tr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Ce(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],c=e[u],f=l[1];if(a&&l[2]){if(c===i&&!(u in e))return!1}else{var h=new Kn;if(r)var d=r(c,f,u,e,t,h);if(!(d===i?Rr(f,c,3,r,h):d))return!1}}return!0}function Pr(e){return!(!Zs(e)||(t=e,Ne&&Ne in t))&&(Js(e)?Be:me).test(Lo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ws(e)?Fr(e[0],e[1]):Lr(e):fl(e)}function jr(e){if(!xo(e))return mn(e);var t=[];for(var n in Ce(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e,t){return e<t}function Ir(e,t){var n=-1,i=$s(e)?r(e.length):[];return cr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Lr(e){var t=ao(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function Fr(e,t){return yo(e)&&So(t)?ko(Io(e),t):function(n){var r=Oa(n,e);return r===i&&r===t?_a(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&gr(t,(function(s,a){if(o||(o=new Kn),Zs(s))!function(e,t,n,r,o,s,a){var l=_o(e,n),u=_o(t,n),c=a.get(u);if(c)Yn(e,n,c);else{var f=s?s(l,u,n+"",e,t,a):i,h=f===i;if(h){var d=Ws(u),p=!d&&Ks(u),m=!d&&!p&&la(u);f=u,d||p||m?Ws(l)?f=l:qs(l)?f=_i(l):p?(h=!1,f=wi(u,!0)):m?(h=!1,f=Si(u,!0)):f=[]:ra(u)||Vs(u)?(f=l,Vs(l)?f=ga(l):Zs(l)&&!Js(l)||(f=po(u))):h=!1}h&&(a.set(u,f),o(f,u,r,s,a),a.delete(u)),Yn(e,n,f)}}(e,t,a,n,Br,r,o);else{var l=r?r(_o(e,a),s,a+"",e,t,o):i;l===i&&(l=s),Yn(e,a,l)}}),Ta)}function zr(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?Tt(t,(function(e){return Ws(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=Tt(t,Gt(oo()));var i=Ir(e,(function(e,n,i){var o=Tt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var l=ki(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=xr(e,s);n(a,s)&&Jr(o,gi(s,e),a)}return o}function Wr(e,t,n,r){var i=r?zt:Bt,o=-1,s=t.length,a=e;for(e===t&&(t=_i(t)),n&&(a=Tt(e,Gt(n)));++o<s;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==e&&Ke.call(a,l,1),Ke.call(e,l,1);return e}function Hr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?Ke.call(e,i,1):li(e,i)}}return e}function $r(e,t){return e+dt(wn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Mo(Co(e,t,nl),e+"")}function Qr(e){return Gn(Ba(e))}function Gr(e,t){var n=Ba(e);return Po(n,or(t,0,n.length))}function Jr(e,t,n,r){if(!Zs(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var u=Io(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=a){var f=l[u];(c=r?r(f,u,l):i)===i&&(c=Zs(f)?f:go(t[o+1])?[]:{})}Zn(l,u,c),l=l[u]}return e}var Xr=An?function(e,t){return An.set(e,t),e}:nl,Yr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Za(t),writable:!0})}:nl;function Zr(e){return Po(Ba(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var n;return cr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,u=aa(t),c=t===i;o<s;){var f=dt((o+s)/2),h=n(e[f]),d=h!==i,p=null===h,m=h==h,g=aa(h);if(a)var v=r||m;else v=c?m&&(r||d):l?m&&d&&(r||!p):u?m&&d&&!p&&(r||!g):!p&&!g&&(r?h<=t:h<t);v?o=f+1:s=f}return vn(s,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?h:+e}function si(e){if("string"==typeof e)return e;if(Ws(e))return Tt(e,si)+"";if(aa(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,n){var r=-1,i=Mt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=Rt;else if(o>=200){var u=t?null:qi(e);if(u)return ln(u);s=!1,i=Xt,l=new qn}else l=t?[]:a;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,s&&f==f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),a.push(c)}else i(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}function li(e,t){return null==(e=Oo(e,t=gi(t,e)))||delete e[Io(Go(t))]}function ui(e,t,n,r){return Jr(e,t,n(xr(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function hi(e,t,n){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=ur(s[o]||a,e[l],t,n));return ai(mr(s,1),t,n)}function di(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:i;n(a,e[r],l)}return a}function pi(e){return qs(e)?e:[]}function mi(e){return"function"==typeof e?e:nl}function gi(e,t){return Ws(e)?e:yo(e,t)?[e]:No(va(e))}var vi=Kr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=st||function(e){return ft.clearTimeout(e)};function wi(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 xi(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Si(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=aa(e),a=t!==i,l=null===t,u=t==t,c=aa(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!s&&!c&&e<t||c&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!u)return-1}return 0}function Ci(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,u=t.length,c=gn(s-a,0),f=r(u+c),h=!i;++l<u;)f[l]=t[l];for(;++o<a;)(h||o<s)&&(f[n[o]]=e[o]);for(;c--;)f[l++]=e[o++];return f}function Oi(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,f=gn(s-l,0),h=r(f+c),d=!i;++o<f;)h[o]=e[o];for(var p=o;++u<c;)h[p+u]=t[u];for(;++a<l;)(d||o<s)&&(h[p+n[a]]=e[o++]);return h}function _i(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ei(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?rr(n,l,u):Zn(n,l,u)}return n}function Ai(e,t){return function(n,r){var i=Ws(n)?Ct:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Mi(e){return Kr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&vo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Ce(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$s(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Ce(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Ti(e){return function(t,n,r){for(var i=-1,o=Ce(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Pi(e){return function(t){var n=rn(t=va(t))?fn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return Dt(Ja(Va(t).replace(Je,"")),e,"")}}function ji(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 Zs(r)?r:n}}function Ni(e){return function(t,n,r){var o=Ce(t);if(!$s(t)){var s=oo(n,3);t=Ra(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Ii(e){return Zi((function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ee(o);if(s&&!l&&"wrapper"==ro(a))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var u=ro(a=t[r]),c="wrapper"==u?no(a):i;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ro(c[0])].apply(l,c[3]):1==a.length&&bo(a)?l[u]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ws(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Li(e,t,n,o,s,a,l,c,f,h){var d=t&u,p=1&t,m=2&t,g=24&t,v=512&t,y=m?i:ji(e);return function u(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(g)var S=io(u),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(o&&(w=Ci(w,o,s,g)),a&&(w=Oi(w,a,l,g)),b-=k,g&&b<h){var C=an(w,S);return Hi(e,t,Li,u.placeholder,n,w,C,c,f,h-b)}var O=p?n:this,_=m?O[e]:e;return b=w.length,c?w=function(e,t){for(var n=e.length,r=vn(t.length,n),o=_i(e);r--;){var s=t[r];e[r]=go(s,n)?o[s]:i}return e}(w,c):v&&b>1&&w.reverse(),d&&f<b&&(w.length=f),this&&this!==ft&&this instanceof u&&(_=y||ji(_)),_.apply(O,w)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function zi(e){return Zi((function(t){return t=Tt(t,Gt(oo())),Kr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,ht(e/cn(t)));return rn(t)?yi(fn(r),0,e).join(""):r.slice(0,e)}function Vi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=ha(t),n===i?(n=t,t=0):n=ha(n),function(e,t,n,i){for(var o=-1,s=gn(ht((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:ha(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Hi(e,t,n,r,o,s,a,u,c,f){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var d=[e,t,o,h?s:i,h?a:i,h?i:s,h?i:a,u,c,f],p=n.apply(i,d);return bo(e)&&Eo(p,d),p.placeholder=r,Ro(p,e,t)}function $i(e){var t=ke[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(da(n),292))&&It(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 qi=On&&1/ln(new On([,-0]))[1]==c?function(e){return new On(e)}:al;function Ki(e){return function(t){var n=fo(t);return n==S?on(t):n==E?un(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,n,s,c,f,h,d){var p=2&t;if(!p&&"function"!=typeof e)throw new Ee(o);var m=s?s.length:0;if(m||(t&=-97,s=c=i),h=h===i?h:gn(da(h),0),d=d===i?d:da(d),m-=c?c.length:0,64&t){var g=s,v=c;s=c=i}var y=p?i:no(e),b=[e,t,n,s,c,g,v,f,h,d];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ci(c,l,t[4]):l,e[4]=c?an(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Oi(c,l,t[6]):l,e[6]=c?an(e[5],a):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],s=b[3],c=b[4],!(d=b[9]=b[9]===i?p?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=ji(e);return function s(){for(var a=arguments.length,l=r(a),u=a,c=io(s);u--;)l[u]=arguments[u];var f=a<3&&l[0]!==c&&l[a-1]!==c?[]:an(l,c);return(a-=f.length)<n?Hi(e,t,Li,s.placeholder,i,l,f,i,i,n-a):kt(this&&this!==ft&&this instanceof s?o:e,this,l)}}(e,t,d):t!=l&&33!=t||c.length?Li.apply(i,b):function(e,t,n,i){var o=1&t,s=ji(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=i.length,f=r(c+l),h=this&&this!==ft&&this instanceof t?s:e;++u<c;)f[u]=i[u];for(;l--;)f[u++]=arguments[++a];return kt(h,o?n:this,f)}}(e,t,n,s);else var w=function(e,t,n){var r=1&t,i=ji(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ro((y?Xr:Eo)(w,b),e,t)}function Gi(e,t,n,r){return e===i||Bs(e,Re[n])&&!De.call(r,n)?t:e}function Ji(e,t,n,r,o,s){return Zs(e)&&Zs(t)&&(s.set(t,e),Br(e,t,i,Ji,s),s.delete(t)),e}function Xi(e){return ra(e)?i:e}function Yi(e,t,n,r,o,s){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var h=-1,d=!0,p=2&n?new qn:i;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(r)var v=a?r(g,m,h,t,e,s):r(m,g,h,e,t,s);if(v!==i){if(v)continue;d=!1;break}if(p){if(!Nt(t,(function(e,t){if(!Xt(p,t)&&(m===e||o(m,e,n,r,s)))return p.push(t)}))){d=!1;break}}else if(m!==g&&!o(m,g,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Zi(e){return Mo(Co(e,i,Ho),e+"")}function eo(e){return Sr(e,Ra,uo)}function to(e){return Sr(e,Ta,co)}var no=An?function(e){return An.get(e)}:al;function ro(e){for(var t=e.name+"",n=Mn[t],r=De.call(Mn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(De.call(Fn,"placeholder")?Fn:e).placeholder}function oo(){var e=Fn.iteratee||rl;return e=e===rl?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=Ra(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pr(n)?n:i}var uo=mt?function(e){return null==e?[]:(e=Ce(e),At(mt(e),(function(t){return qe.call(e,t)})))}:pl,co=mt?function(e){for(var t=[];e;)Pt(t,uo(e)),e=He(e);return t}:pl,fo=kr;function ho(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var s=Io(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ys(i)&&go(s,i)&&(Ws(e)||Vs(e))}function po(e){return"function"!=typeof e.constructor||xo(e)?{}:Bn(He(e))}function mo(e){return Ws(e)||Vs(e)||!!(Qe&&e&&e[Qe])}function go(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!Zs(n))return!1;var r=typeof t;return!!("number"==r?$s(n)&&go(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function yo(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||Z.test(e)||!Y.test(e)||null!=t&&e in Ce(t)}function bo(e){var t=ro(e),n=Fn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(Sn&&fo(new Sn(new ArrayBuffer(1)))!=P||kn&&fo(new kn)!=S||Cn&&fo(Cn.resolve())!=O||On&&fo(new On)!=E||_n&&fo(new _n)!=R)&&(fo=function(e){var t=kr(e),n=t==C?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case Rn:return P;case Tn:return S;case Pn:return O;case Dn:return E;case jn:return R}return t});var wo=Te?Js:ml;function xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function So(e){return e==e&&!Zs(e)}function ko(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ce(n))}}function Co(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=gn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),kt(e,this,l)}}function Oo(e,t){return t.length<2?e:xr(e,ei(t,0,-1))}function _o(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Eo=To(Xr),Ao=ct||function(e,t){return ft.setTimeout(e,t)},Mo=To(Yr);function Ro(e,t,n){var r=t+"";return Mo(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(p,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function To(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Po(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=$r(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Do,jo,No=(Do=Ds((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===jo.size&&jo.clear(),e})),jo=Do.cache,Do);function Io(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fo(e){if(e instanceof Vn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=_i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Kr((function(e,t){return qs(e)?ur(e,mr(t,1,qs,!0)):[]})),zo=Kr((function(e,t){var n=Go(t);return qs(n)&&(n=i),qs(e)?ur(e,mr(t,1,qs,!0),oo(n,2)):[]})),Uo=Kr((function(e,t){var n=Go(t);return qs(n)&&(n=i),qs(e)?ur(e,mr(t,1,qs,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Ft(e,oo(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=da(n),o=n<0?gn(r+o,0):vn(o,r-1)),Ft(e,oo(t,3),o,!0)}function Ho(e){return null!=e&&e.length?mr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var qo=Kr((function(e){var t=Tt(e,pi);return t.length&&t[0]===e[0]?Er(t):[]})),Ko=Kr((function(e){var t=Go(e),n=Tt(e,pi);return t===Go(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Er(n,oo(t,2)):[]})),Qo=Kr((function(e){var t=Go(e),n=Tt(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Er(n,i,t):[]}));function Go(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Kr(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Yo=Zi((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Hr(e,Tt(t,(function(e){return go(e,n)?+e:e})).sort(ki)),r}));function Zo(e){return null==e?e:xn.call(e)}var es=Kr((function(e){return ai(mr(e,1,qs,!0))})),ts=Kr((function(e){var t=Go(e);return qs(t)&&(t=i),ai(mr(e,1,qs,!0),oo(t,2))})),ns=Kr((function(e){var t=Go(e);return t="function"==typeof t?t:i,ai(mr(e,1,qs,!0),i,t)}));function rs(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(qs(e))return t=gn(e.length,t),!0})),Kt(t,(function(t){return Tt(e,Wt(t))}))}function is(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:Tt(n,(function(e){return kt(t,i,e)}))}var os=Kr((function(e,t){return qs(e)?ur(e,t):[]})),ss=Kr((function(e){return hi(At(e,qs))})),as=Kr((function(e){var t=Go(e);return qs(t)&&(t=i),hi(At(e,qs),oo(t,2))})),ls=Kr((function(e){var t=Go(e);return t="function"==typeof t?t:i,hi(At(e,qs),i,t)})),us=Kr(rs),cs=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,is(e,n)}));function fs(e){var t=Fn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ds=Zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ps=Ai((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),ms=Ni(Vo),gs=Ni(Wo);function vs(e,t){return(Ws(e)?Ot:cr)(e,oo(t,3))}function ys(e,t){return(Ws(e)?_t:fr)(e,oo(t,3))}var bs=Ai((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),ws=Kr((function(e,t,n){var i=-1,o="function"==typeof t,s=$s(e)?r(e.length):[];return cr(e,(function(e){s[++i]=o?kt(t,e,n):Ar(e,t,n)})),s})),xs=Ai((function(e,t,n){rr(e,n,t)}));function Ss(e,t){return(Ws(e)?Tt:Ir)(e,oo(t,3))}var ks=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Cs=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),Os=ut||function(){return ft.Date.now()};function _s(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,u,i,i,i,i,t)}function Es(e,t){var n;if("function"!=typeof t)throw new Ee(o);return e=da(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var As=Kr((function(e,t,n){var r=1;if(n.length){var i=an(n,io(As));r|=l}return Qi(e,r,t,n,i)})),Ms=Kr((function(e,t,n){var r=3;if(n.length){var i=an(n,io(Ms));r|=l}return Qi(t,r,e,n,i)}));function Rs(e,t,n){var r,s,a,l,u,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ee(o);function m(t){var n=r,o=s;return r=s=i,f=t,l=e.apply(o,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=a}function v(){var e=Os();if(g(e))return y(e);u=Ao(v,function(e){var n=t-(e-c);return d?vn(n,a-(e-f)):n}(e))}function y(e){return u=i,p&&r?m(e):(r=s=i,l)}function b(){var e=Os(),n=g(e);if(r=arguments,s=this,c=e,n){if(u===i)return function(e){return f=e,u=Ao(v,t),h?m(e):l}(c);if(d)return bi(u),u=Ao(v,t),m(c)}return u===i&&(u=Ao(v,t)),l}return t=ma(t)||0,Zs(n)&&(h=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&bi(u),f=0,r=c=s=u=i},b.flush=function(){return u===i?l:y(Os())},b}var Ts=Kr((function(e,t){return lr(e,1,t)})),Ps=Kr((function(e,t,n){return lr(e,ma(t)||0,n)}));function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ds.Cache||$n),n}function js(e){if("function"!=typeof e)throw new Ee(o);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)}}Ds.Cache=$n;var Ns=vi((function(e,t){var n=(t=1==t.length&&Ws(t[0])?Tt(t[0],Gt(oo())):Tt(mr(t,1),Gt(oo()))).length;return Kr((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Is=Kr((function(e,t){var n=an(t,io(Is));return Qi(e,l,i,t,n)})),Ls=Kr((function(e,t){var n=an(t,io(Ls));return Qi(e,64,i,t,n)})),Fs=Zi((function(e,t){return Qi(e,256,i,i,i,t)}));function Bs(e,t){return e===t||e!=e&&t!=t}var zs=Wi(Cr),Us=Wi((function(e,t){return e>=t})),Vs=Mr(function(){return arguments}())?Mr:function(e){return ea(e)&&De.call(e,"callee")&&!qe.call(e,"callee")},Ws=r.isArray,Hs=vt?Gt(vt):function(e){return ea(e)&&kr(e)==T};function $s(e){return null!=e&&Ys(e.length)&&!Js(e)}function qs(e){return ea(e)&&$s(e)}var Ks=gt||ml,Qs=yt?Gt(yt):function(e){return ea(e)&&kr(e)==y};function Gs(e){if(!ea(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Js(e){if(!Zs(e))return!1;var t=kr(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==da(e)}function Ys(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Gt(bt):function(e){return ea(e)&&fo(e)==S};function na(e){return"number"==typeof e||ea(e)&&kr(e)==k}function ra(e){if(!ea(e)||kr(e)!=C)return!1;var t=He(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Le}var ia=wt?Gt(wt):function(e){return ea(e)&&kr(e)==_},oa=xt?Gt(xt):function(e){return ea(e)&&fo(e)==E};function sa(e){return"string"==typeof e||!Ws(e)&&ea(e)&&kr(e)==A}function aa(e){return"symbol"==typeof e||ea(e)&&kr(e)==M}var la=St?Gt(St):function(e){return ea(e)&&Ys(e.length)&&!!it[kr(e)]},ua=Wi(Nr),ca=Wi((function(e,t){return e<=t}));function fa(e){if(!e)return[];if($s(e))return sa(e)?fn(e):_i(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=fo(e);return(t==S?on:t==E?ln:Ba)(e)}function ha(e){return e?(e=ma(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?or(da(e),0,d):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=pe.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):de.test(e)?h:+e}function ga(e){return Ei(e,Ta(e))}function va(e){return null==e?"":si(e)}var ya=Mi((function(e,t){if(xo(t)||$s(t))Ei(t,Ra(t),e);else for(var n in t)De.call(t,n)&&Zn(e,n,t[n])})),ba=Mi((function(e,t){Ei(t,Ta(t),e)})),wa=Mi((function(e,t,n,r){Ei(t,Ta(t),e,r)})),xa=Mi((function(e,t,n,r){Ei(t,Ra(t),e,r)})),Sa=Zi(ir),ka=Kr((function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ta(s),l=-1,u=a.length;++l<u;){var c=a[l],f=e[c];(f===i||Bs(f,Re[c])&&!De.call(e,c))&&(e[c]=s[c])}return e})),Ca=Kr((function(e){return e.push(i,Ji),kt(Da,i,e)}));function Oa(e,t,n){var r=null==e?i:xr(e,t);return r===i?n:r}function _a(e,t){return null!=e&&ho(e,t,_r)}var Ea=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n}),Za(nl)),Aa=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Ma=Kr(Ar);function Ra(e){return $s(e)?Qn(e):jr(e)}function Ta(e){return $s(e)?Qn(e,!0):function(e){if(!Zs(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=xo(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var Pa=Mi((function(e,t,n){Br(e,t,n)})),Da=Mi((function(e,t,n,r){Br(e,t,n,r)})),ja=Zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=gi(t,e),r||(r=t.length>1),t})),Ei(e,to(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)li(n,t[i]);return n})),Na=Zi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return _a(e,n)}))}(e,t)}));function Ia(e,t){if(null==e)return{};var n=Tt(to(e),(function(e){return[e]}));return t=oo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var La=Ki(Ra),Fa=Ki(Ta);function Ba(e){return null==e?[]:Jt(e,Ra(e))}var za=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Ga(va(e).toLowerCase())}function Va(e){return(e=va(e))&&e.replace(ye,en).replace(Xe,"")}var Wa=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ha=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$a=Pi("toLowerCase"),qa=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ka=Di((function(e,t,n){return e+(n?" ":"")+Ga(t)})),Qa=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ga=Pi("toUpperCase");function Ja(e,t,n){return e=va(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xa=Kr((function(e,t){try{return kt(e,i,t)}catch(e){return Gs(e)?e:new xe(e)}})),Ya=Zi((function(e,t){return Ot(t,(function(t){t=Io(t),rr(e,t,As(e[t],e))})),e}));function Za(e){return function(){return e}}var el=Ii(),tl=Ii(!0);function nl(e){return e}function rl(e){return Dr("function"==typeof e?e:sr(e,1))}var il=Kr((function(e,t){return function(n){return Ar(n,e,t)}})),ol=Kr((function(e,t){return function(n){return Ar(e,n,t)}}));function sl(e,t,n){var r=Ra(t),i=wr(t,r);null!=n||Zs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,Ra(t)));var o=!(Zs(n)&&"chain"in n&&!n.chain),s=Js(e);return Ot(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=_i(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function al(){}var ll=zi(Tt),ul=zi(Et),cl=zi(Nt);function fl(e){return yo(e)?Wt(Io(e)):function(e){return function(t){return xr(t,e)}}(e)}var hl=Vi(),dl=Vi(!0);function pl(){return[]}function ml(){return!1}var gl,vl=Bi((function(e,t){return e+t}),0),yl=$i("ceil"),bl=Bi((function(e,t){return e/t}),1),wl=$i("floor"),xl=Bi((function(e,t){return e*t}),1),Sl=$i("round"),kl=Bi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Ee(o);return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=_s,Fn.assign=ya,Fn.assignIn=ba,Fn.assignInWith=wa,Fn.assignWith=xa,Fn.at=Sa,Fn.before=Es,Fn.bind=As,Fn.bindAll=Ya,Fn.bindKey=Ms,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Fn.chain=fs,Fn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(da(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=r(ht(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Pt(Ws(n)?_i(n):[n],mr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new Ee(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ra(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Fn.constant=Za,Fn.countBy=ps,Fn.create=function(e,t){var n=Bn(e);return null==t?n:nr(n,t)},Fn.curry=function e(t,n,r){var o=Qi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=Qi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.debounce=Rs,Fn.defaults=ka,Fn.defaultsDeep=Ca,Fn.defer=Ts,Fn.delay=Ps,Fn.difference=Bo,Fn.differenceBy=zo,Fn.differenceWith=Uo,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:da(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:da(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=da(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:da(r))<0&&(r+=o),r=n>r?0:pa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ws(e)?At:pr)(e,oo(t,3))},Fn.flatMap=function(e,t){return mr(Ss(e,t),1)},Fn.flatMapDeep=function(e,t){return mr(Ss(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===i?1:da(n),mr(Ss(e,t),n)},Fn.flatten=Ho,Fn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:da(t)):[]},Fn.flip=function(e){return Qi(e,512)},Fn.flow=el,Fn.flowRight=tl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:wr(e,Ra(e))},Fn.functionsIn=function(e){return null==e?[]:wr(e,Ta(e))},Fn.groupBy=bs,Fn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Fn.intersection=qo,Fn.intersectionBy=Ko,Fn.intersectionWith=Qo,Fn.invert=Ea,Fn.invertBy=Aa,Fn.invokeMap=ws,Fn.iteratee=rl,Fn.keyBy=xs,Fn.keys=Ra,Fn.keysIn=Ta,Fn.map=Ss,Fn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Lr(sr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Fn.memoize=Ds,Fn.merge=Pa,Fn.mergeWith=Da,Fn.method=il,Fn.methodOf=ol,Fn.mixin=sl,Fn.negate=js,Fn.nthArg=function(e){return e=da(e),Kr((function(t){return zr(t,e)}))},Fn.omit=ja,Fn.omitBy=function(e,t){return Ia(e,js(oo(t)))},Fn.once=function(e){return Es(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=ll,Fn.overArgs=Ns,Fn.overEvery=ul,Fn.overSome=cl,Fn.partial=Is,Fn.partialRight=Ls,Fn.partition=ks,Fn.pick=Na,Fn.pickBy=Ia,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?i:xr(e,t)}},Fn.pull=Jo,Fn.pullAll=Xo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,oo(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Fn.pullAt=Yo,Fn.range=hl,Fn.rangeRight=dl,Fn.rearg=Fs,Fn.reject=function(e,t){return(Ws(e)?At:pr)(e,js(oo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Hr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Ee(o);return Kr(e,t=t===i?t:da(t))},Fn.reverse=Zo,Fn.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:da(t),(Ws(e)?Jn:Gr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Fn.shuffle=function(e){return(Ws(e)?Xn:Zr)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:da(t),n=n===i?r:da(n)),ei(e,t,n)):[]},Fn.sortBy=Cs,Fn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&rn(e)?yi(fn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Ee(o);return t=null==t?0:gn(da(t),0),Kr((function(n){var r=n[t],i=yi(n,0,t);return r&&Pt(i,r),kt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:da(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:da(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ci(e,oo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ee(o);return Zs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=hs,Fn.toArray=fa,Fn.toPairs=La,Fn.toPairsIn=Fa,Fn.toPath=function(e){return Ws(e)?Tt(e,Io):aa(e)?[e]:_i(No(va(e)))},Fn.toPlainObject=ga,Fn.transform=function(e,t,n){var r=Ws(e),i=r||Ks(e)||la(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Zs(e)&&Js(o)?Bn(He(e)):{}}return(i?Ot:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return _s(e,1)},Fn.union=es,Fn.unionBy=ts,Fn.unionWith=ns,Fn.uniq=function(e){return e&&e.length?ai(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Fn.unset=function(e,t){return null==e||li(e,t)},Fn.unzip=rs,Fn.unzipWith=is,Fn.update=function(e,t,n){return null==e?e:ui(e,t,mi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,mi(n),r)},Fn.values=Ba,Fn.valuesIn=function(e){return null==e?[]:Jt(e,Ta(e))},Fn.without=os,Fn.words=Ja,Fn.wrap=function(e,t){return Is(mi(t),e)},Fn.xor=ss,Fn.xorBy=as,Fn.xorWith=ls,Fn.zip=us,Fn.zipObject=function(e,t){return di(e||[],t||[],Zn)},Fn.zipObjectDeep=function(e,t){return di(e||[],t||[],Jr)},Fn.zipWith=cs,Fn.entries=La,Fn.entriesIn=Fa,Fn.extend=ba,Fn.extendWith=wa,sl(Fn,Fn),Fn.add=vl,Fn.attempt=Xa,Fn.camelCase=za,Fn.capitalize=Ua,Fn.ceil=yl,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ma(n))==n?n:0),t!==i&&(t=(t=ma(t))==t?t:0),or(ma(e),t,n)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||ar(e,t,Ra(t))},Fn.deburr=Va,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,n){e=va(e),t=si(t);var r=e.length,o=n=n===i?r:or(da(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Bs,Fn.escape=function(e){return(e=va(e))&&Q.test(e)?e.replace(q,tn):e},Fn.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Ws(e)?Et:hr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Fn.find=ms,Fn.findIndex=Vo,Fn.findKey=function(e,t){return Lt(e,oo(t,3),yr)},Fn.findLast=gs,Fn.findLastIndex=Wo,Fn.findLastKey=function(e,t){return Lt(e,oo(t,3),br)},Fn.floor=wl,Fn.forEach=vs,Fn.forEachRight=ys,Fn.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ta)},Fn.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Ta)},Fn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Fn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Fn.get=Oa,Fn.gt=zs,Fn.gte=Us,Fn.has=function(e,t){return null!=e&&ho(e,t,Or)},Fn.hasIn=_a,Fn.head=$o,Fn.identity=nl,Fn.includes=function(e,t,n,r){e=$s(e)?e:Ba(e),n=n&&!r?da(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),sa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Bt(e,t,i)},Fn.inRange=function(e,t,n){return t=ha(t),n===i?(n=t,t=0):n=ha(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ma(e),t,n)},Fn.invoke=Ma,Fn.isArguments=Vs,Fn.isArray=Ws,Fn.isArrayBuffer=Hs,Fn.isArrayLike=$s,Fn.isArrayLikeObject=qs,Fn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&kr(e)==v},Fn.isBuffer=Ks,Fn.isDate=Qs,Fn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ra(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Ks(e)||la(e)||Vs(e)))return!e.length;var t=fo(e);if(t==S||t==E)return!e.size;if(xo(e))return!jr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Rr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Rr(e,t,i,n):!!r},Fn.isError=Gs,Fn.isFinite=function(e){return"number"==typeof e&&It(e)},Fn.isFunction=Js,Fn.isInteger=Xs,Fn.isLength=Ys,Fn.isMap=ta,Fn.isMatch=function(e,t){return e===t||Tr(e,t,ao(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Tr(e,t,ao(t),n)},Fn.isNaN=function(e){return na(e)&&e!=+e},Fn.isNative=function(e){if(wo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=na,Fn.isObject=Zs,Fn.isObjectLike=ea,Fn.isPlainObject=ra,Fn.isRegExp=ia,Fn.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=oa,Fn.isString=sa,Fn.isSymbol=aa,Fn.isTypedArray=la,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return ea(e)&&fo(e)==R},Fn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==kr(e)},Fn.join=function(e,t){return null==e?"":Ht.call(e,t)},Fn.kebabCase=Wa,Fn.last=Go,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=da(n))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ft(e,Ut,o,!0)},Fn.lowerCase=Ha,Fn.lowerFirst=$a,Fn.lt=ua,Fn.lte=ca,Fn.max=function(e){return e&&e.length?dr(e,nl,Cr):i},Fn.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Cr):i},Fn.mean=function(e){return Vt(e,nl)},Fn.meanBy=function(e,t){return Vt(e,oo(t,2))},Fn.min=function(e){return e&&e.length?dr(e,nl,Nr):i},Fn.minBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Nr):i},Fn.stubArray=pl,Fn.stubFalse=ml,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xl,Fn.nth=function(e,t){return e&&e.length?zr(e,da(t)):i},Fn.noConflict=function(){return ft._===this&&(ft._=Fe),this},Fn.noop=al,Fn.now=Os,Fn.pad=function(e,t,n){e=va(e);var r=(t=da(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(dt(i),n)+e+Ui(ht(i),n)},Fn.padEnd=function(e,t,n){e=va(e);var r=(t=da(t))?cn(e):0;return t&&r<t?e+Ui(t-r,n):e},Fn.padStart=function(e,t,n){e=va(e);var r=(t=da(t))?cn(e):0;return t&&r<t?Ui(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(va(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ha(e),t===i?(t=e,e=0):t=ha(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=wn();return vn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return $r(e,t)},Fn.reduce=function(e,t,n){var r=Ws(e)?Dt:$t,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},Fn.reduceRight=function(e,t,n){var r=Ws(e)?jt:$t,i=arguments.length<3;return r(e,oo(t,4),n,i,fr)},Fn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:da(t),qr(va(e),t)},Fn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Io(t[r])];s===i&&(r=o,s=n),e=Js(s)?s.call(e):s}return e},Fn.round=Sl,Fn.runInContext=e,Fn.sample=function(e){return(Ws(e)?Gn:Qr)(e)},Fn.size=function(e){if(null==e)return 0;if($s(e))return sa(e)?cn(e):e.length;var t=fo(e);return t==S||t==E?e.size:jr(e).length},Fn.snakeCase=qa,Fn.some=function(e,t,n){var r=Ws(e)?Nt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Fn.sortedIndex=function(e,t){return ni(e,t)},Fn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Bs(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},Fn.startCase=Ka,Fn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:or(da(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=kl,Fn.sum=function(e){return e&&e.length?qt(e,nl):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&vo(e,t,n)&&(t=i),e=va(e),t=wa({},t,r,Gi);var o,s,a=wa({},t.imports,r.imports,Gi),l=Ra(a),u=Jt(a,l),c=0,f=t.interpolate||be,h="__p += '",d=Oe((t.escape||be).source+"|"+f.source+"|"+(f===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(c,l).replace(we,nn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),h+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(V,""):h).replace(W,"$1").replace(H,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xa((function(){return Se(l,p+"return "+h).apply(i,u)}));if(g.source=h,Gs(g))throw g;return g},Fn.times=function(e,t){if((e=da(e))<1||e>f)return[];var n=d,r=vn(e,d);t=oo(t),e-=d;for(var i=Kt(r,t);++n<e;)t(n);return i},Fn.toFinite=ha,Fn.toInteger=da,Fn.toLength=pa,Fn.toLower=function(e){return va(e).toLowerCase()},Fn.toNumber=ma,Fn.toSafeInteger=function(e){return e?or(da(e),-9007199254740991,f):0===e?e:0},Fn.toString=va,Fn.toUpper=function(e){return va(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=va(e))&&(n||t===i))return Qt(e);if(!e||!(t=si(t)))return e;var r=fn(e),o=fn(t);return yi(r,Yt(r,o),Zt(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===i))return e.slice(0,hn(e)+1);if(!e||!(t=si(t)))return e;var r=fn(e);return yi(r,0,Zt(r,fn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=fn(e);return yi(r,Yt(r,fn(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(Zs(t)){var o="separator"in t?t.separator:o;n="length"in t?da(t.length):n,r="omission"in t?si(t.omission):r}var s=(e=va(e)).length;if(rn(e)){var a=fn(e);s=a.length}if(n>=s)return e;var l=n-cn(r);if(l<1)return r;var u=a?yi(a,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(a&&(l+=u.length-l),ia(o)){if(e.slice(l).search(o)){var c,f=u;for(o.global||(o=Oe(o.source,va(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var h=c.index;u=u.slice(0,h===i?l:h)}}else if(e.indexOf(si(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},Fn.unescape=function(e){return(e=va(e))&&K.test(e)?e.replace($,dn):e},Fn.uniqueId=function(e){var t=++je;return va(e)+t},Fn.upperCase=Qa,Fn.upperFirst=Ga,Fn.each=vs,Fn.eachRight=ys,Fn.first=$o,sl(Fn,(gl={},yr(Fn,(function(e,t){De.call(Fn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Fn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Ot(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(nl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ar(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(js(oo(e)))},Vn.prototype.slice=function(e,t){e=da(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=da(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},yr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Vn,u=a[0],c=l||Ws(t),f=function(e){var t=o.apply(Fn,Pt([e],a));return r&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,m=l&&!d;if(!s&&c){t=m?t:new Vn(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[f],thisArg:i}),new Un(g,h)}return p&&m?e.apply(this,a):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ws(i)?i:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),yr(Vn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";De.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Li(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=_i(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_i(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_i(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,f=c.length,h=0,d=vn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return fi(e,this.__actions__);var p=[];e:for(;l--&&h<d;){for(var m=-1,g=e[u+=t];++m<f;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}p[h++]=g}return p},Fn.prototype.at=ds,Fn.prototype.chain=function(){return fs(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===i&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Fo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Zo],thisArg:i}),new Un(t,this.__chain__)}return this.thru(Zo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ge&&(Fn.prototype[Ge]=function(){return this}),Fn}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&l&&"function"==typeof l.get?l.get:null,c=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,S=RegExp.prototype.test,k=Array.prototype.concat,C=Array.prototype.join,O=Array.prototype.slice,_=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-_(-e):_(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(4654),I=N.custom,L=V(I)?I:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function B(e){return b.call(String(e),/"/g,""")}function z(e){return!("[object Array]"!==$(e)||T&&"object"==typeof e&&T in e)}function U(e){return!("[object RegExp]"!==$(e)||T&&"object"==typeof e&&T in e)}function V(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var a=n||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?j(t,w):w}if("bigint"==typeof t){var S=String(t)+"n";return m?j(t,S):S}var _=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=_&&_>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var A,I=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(a,r);if(void 0===i)i=[];else if(q(i,t)>=0)return"[Circular]";function W(t,n,o){if(n&&(i=O.call(i)).push(n),o){var s={depth:a.depth};return H(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,i)}return e(t,a,r+1,i)}if("function"==typeof t&&!U(t)){var Q=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Z(t,W);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(ee.length>0?" { "+C.call(ee,", ")+" }":"")}if(V(t)){var te=R?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||R?te:G(te)}if((A=t)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var ne="<"+x.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+F(B(re[ie].value),"double",a);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+x.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var oe=Z(t,W);return I&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Y(oe,I)+"]":"[ "+C.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||T&&"object"==typeof e&&T in e)}(t)){var se=Z(t,W);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(se,", ")+" }":"{ ["+String(t)+"] "+C.call(k.call("[cause]: "+W(t.cause),se),", ")+" }"}if("object"==typeof t&&l){if(L&&"function"==typeof t[L]&&N)return N(t,{depth:_-r});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s&&s.call(t,(function(e,n){ae.push(W(n,t,!0)+" => "+W(e,t))})),X("Map",o.call(t),ae,I)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(W(e,t))})),X("Set",u.call(t),le,I)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return G(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return G(W(E.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return G(p.call(t));if(function(e){return!("[object String]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return G(W(String(t)));if(!function(e){return!("[object Date]"!==$(e)||T&&"object"==typeof e&&T in e)}(t)&&!U(t)){var ue=Z(t,W),ce=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!ce&&T&&Object(t)===t&&T in t?y.call($(t),8,-1):fe?"Object":"",de=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+C.call(k.call([],he||[],fe||[]),": ")+"] ":"");return 0===ue.length?de+"{}":I?de+"{"+Y(ue,I)+"}":de+"{ "+C.call(ue,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return W.call(e,t)}function $(e){return m.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Q),"single",t)}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function G(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Y(n,r):C.call(n,", "))+"}"}function Y(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=H(e,i)?t(e[i],e):""}var o,s="function"==typeof A?A(e):[];if(R){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||R&&o["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof A)for(var u=0;u<s.length;u++)P.call(e,s[u])&&r.push("["+t(s[u])+"]: "+t(e[s[u]],e));return r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),i=n(5559),o=n(4244),s=n(5624),a=n(2281),l=i(s(),Object);r(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),i=n(4289);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(1414),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=s(e),a=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)h.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)h.push(String(g));else for(var v in e)p&&"prototype"===v||!i.call(e,v)||h.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||h.push(c[b]);return h}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(1414),o=Object.keys,s=o?function(e){return o(e)}:n(8987),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(r.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2837:(e,t,n)=>{"use strict";var r=n(2215),i=n(5419)(),o=n(1924),s=Object,a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=s(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var c=s(arguments[o]),f=r(c),h=i&&(Object.getOwnPropertySymbols||u);if(h)for(var d=h(c),p=0;p<d.length;++p){var m=d[p];l(c,m)&&a(f,m)}for(var g=0;g<f.length;++g){var v=f[g];if(l(c,v)){var y=c[v];n[v]=y}}}return n}},3533:(e,t,n)=>{"use strict";var r=n(4289),i=n(5559),o=n(2837),s=n(8162),a=n(4489),l=i.apply(s()),u=function(e,t){return l(Object,arguments)};r(u,{getPolyfill:s,implementation:o,shim:a}),e.exports=u},8162:(e,t,n)=>{"use strict";var r=n(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var s in i)o+=s;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},4489:(e,t,n)=>{"use strict";var r=n(4289),i=n(8162);e.exports=function(){var e=i();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},4101:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t,n){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,s)}function s(){return o(e,arguments,i(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r(s,e)},s(e)}n.d(t,{m4:()=>k});var a=function(e){var t,n;function i(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i}(s(Error));function l(e){return Math.round(255*e)}function u(e,t,n){return l(e)+","+l(t)+","+l(n)}function c(e,t,n,r){if(void 0===r&&(r=u),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,s=o*(1-Math.abs(i%2-1)),a=0,l=0,c=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,c=s):i>=3&&i<4?(l=s,c=o):i>=4&&i<5?(a=s,c=o):i>=5&&i<6&&(a=o,c=s);var f=n-o/2;return r(a+f,l+f,c+f)}var f={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},h=/^#[a-fA-F0-9]{6}$/,d=/^#[a-fA-F0-9]{8}$/,p=/^#[a-fA-F0-9]{3}$/,m=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,v=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,y=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,b=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;var w=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function x(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function S(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return w("#"+x(e)+x(t)+x(n));if("object"==typeof e&&void 0===t&&void 0===n)return w("#"+x(e.red)+x(e.green)+x(e.blue));throw new a(6)}function k(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var i=function(e){if("string"!=typeof e)throw new a(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return f[t]?"#"+f[t]:e}(e);if(t.match(h))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(d)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(p))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(m)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=g.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=v.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var s=y.exec(t);if(s){var l="rgb("+c(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",u=g.exec(l);if(!u)throw new a(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var w=b.exec(t.substring(0,50));if(w){var x="rgb("+c(parseInt(""+w[1],10),parseInt(""+w[2],10)/100,parseInt(""+w[3],10)/100)+")",S=g.exec(x);if(!S)throw new a(4,t,x);return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+w[4])>1?parseFloat(""+w[4])/100:parseFloat(""+w[4])}}throw new a(5)}(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?S(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?S(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new a(7)}},2703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(n);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var u=0;u<l;++u){var c,f,h,d,p=e[u].replace(s,"%20"),m=p.indexOf(r);m>=0?(c=p.substr(0,m),f=p.substr(m+1)):(c=p,f=""),h=decodeURIComponent(c),d=decodeURIComponent(f),t(o,h)?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).filter(Boolean).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},7673:(e,t,n)=>{"use strict";n(2587),t.stringify=n(2361)},667:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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 a(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)||s(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.")}()}function l(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,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||s(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.")}()}n.d(t,{Z:()=>V});var u=n(7294),c=n(4184),f=n.n(c),h={};function d(e,t){}const p=function(e,t){!function(e,t,n){t||h[n]||(e(!1,n),h[n]=!0)}(d,e,t)};function m(e){var t=u.useRef();t.current=e;var n=u.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var g="undefined"!=typeof window&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,v=function(e,t){var n=u.useRef(!0);g((function(){if(!n.current)return e()}),t),g((function(){return n.current=!1,function(){n.current=!0}}),[])};function y(e){var t=u.useRef(!1),n=l(u.useState(e),2),r=n[0],i=n[1];return u.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function b(e){return void 0!==e}var w=n(7462),x=n(3366);function S(e,t){if(null==e)return{};var n,r,i=(0,x.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=O.F1&&t<=O.F12)return!1;switch(t){case O.ALT:case O.CAPS_LOCK:case O.CONTEXT_MENU:case O.CTRL:case O.DOWN:case O.END:case O.ESC:case O.HOME:case O.INSERT:case O.LEFT:case O.MAC_FF_META:case O.META:case O.NUMLOCK:case O.NUM_CENTER:case O.PAGE_DOWN:case O.PAGE_UP:case O.PAUSE:case O.PRINT_SCREEN:case O.RIGHT:case O.SHIFT:case O.UP:case O.WIN_KEY:case O.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=O.ZERO&&e<=O.NINE)return!0;if(e>=O.NUM_ZERO&&e<=O.NUM_MULTIPLY)return!0;if(e>=O.A&&e<=O.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case O.SPACE:case O.QUESTION_MARK:case O.NUM_PLUS:case O.NUM_MINUS:case O.NUM_PERIOD:case O.NUM_DIVISION:case O.SEMICOLON:case O.DASH:case O.EQUALS:case O.COMMA:case O.PERIOD:case O.SLASH:case O.APOSTROPHE:case O.SINGLE_QUOTE:case O.OPEN_SQUARE_BRACKET:case O.BACKSLASH:case O.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const _=O,E=u.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function A(e,t,n){return(e-t)/(n-t)}function M(e,t,n,r){var i=A(t,n,r),o={};switch(e){case"rtl":o.right="".concat(100*i,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(100*i,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(100*i,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(100*i,"%"),o.transform="translateX(-50%)"}return o}function R(e,t){return Array.isArray(e)?e[t]:e}var T=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"];const P=u.forwardRef((function(e,t){var n,r,o=e.prefixCls,s=e.value,a=e.valueIndex,l=e.onStartMove,c=e.style,h=e.render,d=e.dragging,p=e.onOffsetChange,m=S(e,T),g=u.useContext(E),v=g.min,y=g.max,b=g.direction,x=g.disabled,k=g.keyboard,O=g.range,A=g.tabIndex,P=g.ariaLabelForHandle,D=g.ariaLabelledByForHandle,j=g.ariaValueTextFormatterForHandle,N="".concat(o,"-handle"),I=function(e){x||l(e,a)},L=M(b,s,v,y),F=u.createElement("div",(0,w.Z)({ref:t,className:f()(N,(n={},i(n,"".concat(N,"-").concat(a+1),O),i(n,"".concat(N,"-dragging"),d),n)),style:C(C({},L),c),onMouseDown:I,onTouchStart:I,onKeyDown:function(e){if(!x&&k){var t=null;switch(e.which||e.keyCode){case _.LEFT:t="ltr"===b||"btt"===b?-1:1;break;case _.RIGHT:t="ltr"===b||"btt"===b?1:-1;break;case _.UP:t="ttb"!==b?1:-1;break;case _.DOWN:t="ttb"!==b?-1:1;break;case _.HOME:t="min";break;case _.END:t="max";break;case _.PAGE_UP:t=2;break;case _.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),p(t,a))}},tabIndex:x?null:R(A,a),role:"slider","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":s,"aria-disabled":x,"aria-label":R(P,a),"aria-labelledby":R(D,a),"aria-valuetext":null===(r=R(j,a))||void 0===r?void 0:r(s)},m));return h&&(F=h(F,{index:a,prefixCls:o,value:s,dragging:d})),F}));var D=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];const j=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,s=e.values,a=e.handleRender,l=e.draggingIndex,c=S(e,D),f=u.useRef({});return u.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=f.current[e])||void 0===t||t.focus()}}})),u.createElement(u.Fragment,null,s.map((function(e,t){return u.createElement(P,(0,w.Z)({ref:function(e){e?f.current[t]=e:delete f.current[t]},dragging:l===t,prefixCls:n,style:R(r,t),key:t,value:e,valueIndex:t,onStartMove:i,onOffsetChange:o,render:a},c))})))}));function N(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function I(e){var t=e.prefixCls,n=e.style,r=e.start,i=e.end,o=e.index,s=e.onStartMove,a=u.useContext(E),l=a.direction,c=a.min,h=a.max,d=a.disabled,p=a.range,m="".concat(t,"-track"),g=A(r,c,h),v=A(i,c,h),y=function(e){!d&&s&&s(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*g,"%"),b.width="".concat(100*v-100*g,"%");break;case"btt":b.bottom="".concat(100*g,"%"),b.height="".concat(100*v-100*g,"%");break;case"ttb":b.top="".concat(100*g,"%"),b.height="".concat(100*v-100*g,"%");break;default:b.left="".concat(100*g,"%"),b.width="".concat(100*v-100*g,"%")}return u.createElement("div",{className:f()(m,p&&"".concat(m,"-").concat(o+1)),style:C(C({},b),n),onMouseDown:y,onTouchStart:y})}function L(e){var t=e.prefixCls,n=e.style,r=e.values,i=e.startPoint,o=e.onStartMove,s=u.useContext(E),a=s.included,l=s.range,c=s.min,f=u.useMemo((function(){if(!l){if(0===r.length)return[];var e=null!=i?i:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],o=0;o<r.length-1;o+=1)n.push({start:r[o],end:r[o+1]});return n}),[r,l,i,c]);return a?f.map((function(e,r){var i=e.start,s=e.end;return u.createElement(I,{index:r,prefixCls:t,style:R(n,r),start:i,end:s,key:r,onStartMove:o})})):null}function F(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,s=e.onClick,a=u.useContext(E),l=a.min,c=a.max,h=a.direction,d=a.includedStart,p=a.includedEnd,m=a.included,g="".concat(t,"-text"),v=M(h,o,l,c);return u.createElement("span",{className:f()(g,i({},"".concat(g,"-active"),m&&d<=o&&o<=p)),style:C(C({},v),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){s(o)}},r)}function B(e){var t=e.prefixCls,n=e.marks,r=e.onClick,i="".concat(t,"-mark");return n.length?u.createElement("div",{className:i},n.map((function(e){var t=e.value,n=e.style,o=e.label;return u.createElement(F,{key:t,prefixCls:i,style:n,value:t,onClick:r},o)}))):null}function z(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,s=u.useContext(E),a=s.min,l=s.max,c=s.direction,h=s.included,d=s.includedStart,p=s.includedEnd,m="".concat(t,"-dot"),g=h&&d<=n&&n<=p,v=C(C({},M(c,n,a,l)),"function"==typeof r?r(n):r);return g&&(v=C(C({},v),"function"==typeof o?o(n):o)),u.createElement("span",{className:f()(m,i({},"".concat(m,"-active"),g)),style:v})}function U(e){var t=e.prefixCls,n=e.marks,r=e.dots,i=e.style,o=e.activeStyle,s=u.useContext(E),a=s.min,l=s.max,c=s.step,f=u.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==c)for(var t=a;t<=l;)e.add(t),t+=c;return Array.from(e)}),[a,l,c,r,n]);return u.createElement("div",{className:"".concat(t,"-step")},f.map((function(e){return u.createElement(z,{prefixCls:t,key:e,value:e,style:i,activeStyle:o})})))}const V=u.forwardRef((function(e,t){var n,o=e.prefixCls,s=void 0===o?"rc-slider":o,c=e.className,h=e.style,d=e.disabled,g=void 0!==d&&d,w=e.keyboard,x=void 0===w||w,S=e.autoFocus,k=e.onFocus,C=e.onBlur,O=e.min,_=void 0===O?0:O,A=e.max,M=void 0===A?100:A,R=e.step,T=void 0===R?1:R,P=e.value,D=e.defaultValue,I=e.range,F=e.count,z=e.onChange,V=e.onBeforeChange,W=e.onAfterChange,H=e.allowCross,$=void 0===H||H,q=e.pushable,K=void 0!==q&&q,Q=e.draggableTrack,G=e.reverse,J=e.vertical,X=e.included,Y=void 0===X||X,Z=e.startPoint,ee=e.trackStyle,te=e.handleStyle,ne=e.railStyle,re=e.dotStyle,ie=e.activeDotStyle,oe=e.marks,se=e.dots,ae=e.handleRender,le=e.tabIndex,ue=void 0===le?0:le,ce=e.ariaLabelForHandle,fe=e.ariaLabelledByForHandle,he=e.ariaValueTextFormatterForHandle,de=u.useRef(),pe=u.useRef(),me=u.useMemo((function(){return J?G?"ttb":"btt":G?"rtl":"ltr"}),[G,J]),ge=u.useMemo((function(){return isFinite(_)?_:0}),[_]),ve=u.useMemo((function(){return isFinite(M)?M:100}),[M]),ye=u.useMemo((function(){return null!==T&&T<=0?1:T}),[T]),be=u.useMemo((function(){return!0===K?ye:K>=0&&K}),[K,ye]),we=u.useMemo((function(){return Object.keys(oe||{}).map((function(e){var t=oe[e],n={value:Number(e)};return t&&"object"===r(t)&&!u.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[oe]),xe=function(e,t,n,r,i,o){var s=u.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),l=u.useCallback((function(r){if(null!==n){var i=e+Math.round((s(r)-e)/n)*n,o=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(o(n),o(t),o(e)),l=Number(i.toFixed(a));return e<=l&&l<=t?l:null}return null}),[n,e,t,s]),c=u.useCallback((function(i){var o=s(i),a=r.map((function(e){return e.value}));null!==n&&a.push(l(i)),a.push(e,t);var u=a[0],c=t-e;return a.forEach((function(e){var t=Math.abs(o-e);t<=c&&(u=e,c=t)})),u}),[e,t,r,n,s,l]),f=function i(o,s,u){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof s){var f,h=o[u],d=h+s,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(l(h));var m=s>0?1:-1;"unit"===c?p.push(l(h+m*n)):p.push(l(d)),p=p.filter((function(e){return null!==e})).filter((function(e){return s<0?e<=h:e>=h})),"unit"===c&&(p=p.filter((function(e){return e!==h})));var g="unit"===c?h:d;f=p[0];var v=Math.abs(f-g);if(p.forEach((function(e){var t=Math.abs(e-g);t<v&&(f=e,v=t)})),void 0===f)return s<0?e:t;if("dist"===c)return f;if(Math.abs(s)>1){var y=a(o);return y[u]=f,i(y,s-m,u,c)}return f}return"min"===s?e:"max"===s?t:void 0},h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",i=e[n],o=f(e,t,n,r);return{value:o,changed:o!==i}},d=function(e){return null===o&&0===e||"number"==typeof o&&e<o};return[c,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",s=e.map(c),a=s[n],l=f(s,t,n,r);if(s[n]=l,!1===i){var u=o||0;n>0&&s[n-1]!==a&&(s[n]=Math.max(s[n],s[n-1]+u)),n<s.length-1&&s[n+1]!==a&&(s[n]=Math.min(s[n],s[n+1]-u))}else if("number"==typeof o||null===o){for(var p=n+1;p<s.length;p+=1)for(var m=!0;d(s[p]-s[p-1])&&m;){var g=h(s,1,p);s[p]=g.value,m=g.changed}for(var v=n;v>0;v-=1)for(var y=!0;d(s[v]-s[v-1])&&y;){var b=h(s,-1,v-1);s[v-1]=b.value,y=b.changed}for(var w=s.length-1;w>0;w-=1)for(var x=!0;d(s[w]-s[w-1])&&x;){var S=h(s,-1,w-1);s[w-1]=S.value,x=S.changed}for(var k=0;k<s.length-1;k+=1)for(var C=!0;d(s[k+1]-s[k])&&C;){var O=h(s,1,k+1);s[k+1]=O.value,C=O.changed}}return{value:s[n],values:s}}]}(ge,ve,ye,we,$,be),Se=l(xe,2),ke=Se[0],Ce=Se[1],Oe=function(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,s=n.postState,a=l(y((function(){return b(i)?i:b(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),u=a[0],c=a[1],f=void 0!==i?i:u,h=s?s(f):f,d=m(o),p=l(y([f]),2),g=p[0],w=p[1];return v((function(){var e=g[0];u!==e&&d(u,e)}),[g]),v((function(){b(i)||c(i)}),[i]),[h,m((function(e,t){c(e,t),w([f],t)}))]}(D,{value:P}),_e=l(Oe,2),Ee=_e[0],Ae=_e[1],Me=u.useMemo((function(){var e=null==Ee?[]:Array.isArray(Ee)?Ee:[Ee],t=l(e,1)[0],n=null===Ee?[]:[void 0===t?ge:t];if(I){if(n=a(e),F||void 0===Ee){var r=F>=0?F+1:2;for(n=n.slice(0,r);n.length<r;){var i;n.push(null!==(i=n[n.length-1])&&void 0!==i?i:ge)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ke(e)})),n}),[Ee,I,ge,F,ke]),Re=u.useRef(Me);Re.current=Me;var Te=function(e){return I?e:e[0]},Pe=function(e){var t=a(e).sort((function(e,t){return e-t}));z&&!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=i.has(t);if(p(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&s>1)return!1;i.add(t);var l=s+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],o[u],l))return!1;return!0}if(t&&o&&"object"===r(t)&&"object"===r(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}(t,Re.current,!0)&&z(Te(t)),Ae(t)},De=function(e){if(!g){var t=0,n=ve-ge;Me.forEach((function(r,i){var o=Math.abs(e-r);o<=n&&(n=o,t=i)}));var r=a(Me);r[t]=e,I&&!Me.length&&void 0===F&&r.push(e),null==V||V(Te(r)),Pe(r),null==W||W(Te(r))}},je=l(u.useState(null),2),Ne=je[0],Ie=je[1];u.useEffect((function(){if(null!==Ne){var e=Me.indexOf(Ne);e>=0&&de.current.focus(e)}Ie(null)}),[Ne]);var Le=u.useMemo((function(){return(!Q||null!==ye)&&Q}),[Q,ye]),Fe=function(e,t,n,r,i,o,s,c,f){var h=l(u.useState(null),2),d=h[0],p=h[1],m=l(u.useState(-1),2),g=m[0],v=m[1],y=l(u.useState(n),2),b=y[0],w=y[1],x=l(u.useState(n),2),S=x[0],k=x[1],C=u.useRef(null),O=u.useRef(null);u.useEffect((function(){-1===g&&w(n)}),[n,g]),u.useEffect((function(){return function(){document.removeEventListener("mousemove",C.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",C.current),document.removeEventListener("touchend",O.current)}}),[]);var _=function(e,t){b.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),w(e),s(e))},E=function(e,t){if(-1===e){var n=S[0],s=S[S.length-1],l=r-n,u=i-s,c=t*(i-r);c=Math.max(c,l),c=Math.min(c,u);var h=o(n+c);c=h-n;var d=S.map((function(e){return e+c}));_(d)}else{var p=(i-r)*t,m=a(b);m[e]=S[e];var g=f(m,p,e,"dist");_(g.values,g.value)}},A=u.useRef(E);A.current=E;var M=u.useMemo((function(){var e=a(n).sort((function(e,t){return e-t})),t=a(b).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?b:n}),[n,b]);return[g,d,M,function(r,i){r.stopPropagation();var o=n[i];v(i),p(o),k(n);var s=N(r),a=s.pageX,l=s.pageY,u=function(n){n.preventDefault();var r,o=N(n),s=o.pageX,u=o.pageY,c=s-a,f=u-l,h=e.current.getBoundingClientRect(),d=h.width,p=h.height;switch(t){case"btt":r=-f/p;break;case"ttb":r=f/p;break;case"rtl":r=-c/d;break;default:r=c/d}A.current(i,r)},c=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),C.current=null,O.current=null,v(-1),null==W||W(Te(Re.current))};document.addEventListener("mouseup",c),document.addEventListener("mousemove",u),document.addEventListener("touchend",c),document.addEventListener("touchmove",u),C.current=u,O.current=c}]}(pe,me,Me,ge,ve,ke,Pe,0,Ce),Be=l(Fe,4),ze=Be[0],Ue=Be[1],Ve=Be[2],We=Be[3],He=function(e,t){We(e,t),null==V||V(Te(Re.current))},$e=-1!==ze;u.useEffect((function(){if(!$e){var e=Me.lastIndexOf(Ue);de.current.focus(e)}}),[$e]);var qe=u.useMemo((function(){return a(Ve).sort((function(e,t){return e-t}))}),[Ve]),Ke=l(u.useMemo((function(){return I?[qe[0],qe[qe.length-1]]:[ge,qe[0]]}),[qe,I,ge]),2),Qe=Ke[0],Ge=Ke[1];u.useImperativeHandle(t,(function(){return{focus:function(){de.current.focus(0)},blur:function(){var e=document.activeElement;pe.current.contains(e)&&(null==e||e.blur())}}})),u.useEffect((function(){S&&de.current.focus(0)}),[]);var Je=u.useMemo((function(){return{min:ge,max:ve,direction:me,disabled:g,keyboard:x,step:ye,included:Y,includedStart:Qe,includedEnd:Ge,range:I,tabIndex:ue,ariaLabelForHandle:ce,ariaLabelledByForHandle:fe,ariaValueTextFormatterForHandle:he}}),[ge,ve,me,g,x,ye,Y,Qe,Ge,I,ue,ce,fe,he]);return u.createElement(E.Provider,{value:Je},u.createElement("div",{ref:pe,className:f()(s,c,(n={},i(n,"".concat(s,"-disabled"),g),i(n,"".concat(s,"-vertical"),J),i(n,"".concat(s,"-horizontal"),!J),i(n,"".concat(s,"-with-marks"),we.length),n)),style:h,onMouseDown:function(e){e.preventDefault();var t,n=pe.current.getBoundingClientRect(),r=n.width,i=n.height,o=n.left,s=n.top,a=n.bottom,l=n.right,u=e.clientX,c=e.clientY;switch(me){case"btt":t=(a-c)/i;break;case"ttb":t=(c-s)/i;break;case"rtl":t=(l-u)/r;break;default:t=(u-o)/r}De(ke(ge+t*(ve-ge)))}},u.createElement("div",{className:"".concat(s,"-rail"),style:ne}),u.createElement(L,{prefixCls:s,style:ee,values:qe,startPoint:Z,onStartMove:Le?He:null}),u.createElement(U,{prefixCls:s,marks:we,dots:se,style:re,activeStyle:ie}),u.createElement(j,{ref:de,prefixCls:s,style:te,values:Ve,draggingIndex:ze,onStartMove:He,onOffsetChange:function(e,t){if(!g){var n=Ce(Me,e,t);null==V||V(Te(Me)),Pe(n.values),null==W||W(Te(n.values)),Ie(n.value)}},onFocus:k,onBlur:C,handleRender:ae}),u.createElement(B,{prefixCls:s,marks:we,onClick:De})))}))},4448:(e,t,n)=>{"use strict";var r=n(7294),i=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function m(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(d,e)&&(h.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var I,L=Object.assign;function F(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case O:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Y(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Oe(e){if(e=gi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=yi(t),Se(e.stateNode,e.type,t))}}function _e(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Ee(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ae(e,t){return e(t)}function Me(){}var Re=!1;function Te(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==ke||null!==Ce)&&(Me(),Ee())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=yi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var De=!1;if(c)try{var je={};Object.defineProperty(je,"passive",{get:function(){De=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ce){De=!1}function Ne(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,Le=null,Fe=!1,Be=null,ze={onError:function(e){Ie=!0,Le=e}};function Ue(e,t,n,r,i,o,s,a,l){Ie=!1,Le=null,Ne.apply(ze,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(o(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return He(i),e;if(s===r)return He(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Qe=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Je=i.unstable_requestPaint,Xe=i.unstable_now,Ye=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,st=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~i;0!==a?r=ft(a):0!=(o&=s)&&(r=ft(o))}else 0!=(s=n&~i)?r=ft(s):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,St,kt,Ct,Ot,_t=!1,Et=[],At=null,Mt=null,Rt=null,Tt=new Map,Pt=new Map,Dt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=gi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=mi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ot(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=gi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function zt(){_t=!1,null!==At&&Ft(At)&&(At=null),null!==Mt&&Ft(Mt)&&(Mt=null),null!==Rt&&Ft(Rt)&&(Rt=null),Tt.forEach(Bt),Pt.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Vt(e){function t(t){return Ut(t,e)}if(0<Et.length){Ut(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ut(At,e),null!==Mt&&Ut(Mt,e),null!==Rt&&Ut(Rt,e),Tt.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var Wt=w.ReactCurrentBatchConfig,Ht=!0;function $t(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function qt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Kt(e,t,n,r){if(Ht){var i=Gt(e,t,n,r);if(null===i)Ur(e,t,r,Qt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=It(At,e,t,n,r,i),!0;case"dragenter":return Mt=It(Mt,e,t,n,r,i),!0;case"mouseover":return Rt=It(Rt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Tt.set(o,It(Tt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,It(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==i;){var o=gi(i);if(null!==o&&xt(o),null===(o=Gt(e,t,n,r))&&Ur(e,t,r,Qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Qt=null;function Gt(e,t,n,r){if(Qt=null,null!==(e=mi(e=xe(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ye()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Yt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Yt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=L({},un,{view:0,detail:0}),hn=on(fn),dn=L({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=on(dn),mn=on(L({},dn,{dataTransfer:0})),gn=on(L({},fn,{relatedTarget:0})),vn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=on(L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),bn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var On=on(L({},fn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),_n=on(L({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=on(L({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=on(L({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],Tn=c&&"CompositionEvent"in window,Pn=null;c&&"documentMode"in document&&(Pn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Pn,jn=c&&(!Tn||Pn&&8<Pn&&11>=Pn),Nn=String.fromCharCode(32),In=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Hn=null;function $n(e){Nr(e,0)}function qn(e){if(K(vi(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Gn;if(c){var Jn="oninput"in document;if(!Jn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Jn="function"==typeof Xn.oninput}Gn=Jn}else Gn=!1;Qn=Gn&&(!document.documentMode||9<document.documentMode)}function Yn(){Wn&&(Wn.detachEvent("onpropertychange",Zn),Hn=Wn=null)}function Zn(e){if("value"===e.propertyName&&qn(Hn)){var t=[];Vn(t,Hn,e,xe(e)),Te($n,t)}}function er(e,t,n){"focusin"===e?(Yn(),Hn=n,(Wn=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Yn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Hn)}function nr(e,t){if("click"===e)return qn(t)}function rr(e,t){if("input"===e||"change"===e)return qn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!ir(e[i],t[i]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ar(n,o);var s=ar(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,dr=null,pr=null,mr=null,gr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==dr||dr!==Q(r)||(r="selectionStart"in(r=dr)&&cr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Wr(pr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},wr={},xr={};function Sr(e){if(wr[e])return wr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}c&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var kr=Sr("animationend"),Cr=Sr("animationiteration"),Or=Sr("animationstart"),_r=Sr("transitionend"),Er=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Er.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ar.length;Rr++){var Tr=Ar[Rr];Mr(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Mr(kr,"onAnimationEnd"),Mr(Cr,"onAnimationIteration"),Mr(Or,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(_r,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,s,a,l,u){if(Ue.apply(this,arguments),Ie){if(!Ie)throw Error(o(198));var c=Le;Ie=!1,Le=null,Fe||(Fe=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;jr(i,a,u),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;jr(i,a,u),o=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Ir(e,t){var n=t[hi];void 0===n&&(n=t[hi]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Lr(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Fr]){e[Fr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Lr(t,!1,e),Lr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Lr("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Jt(t)){case 1:var i=$t;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=mi(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}Te((function(){var r=o,i=xe(n),s=[];e:{var a=Er.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case kr:case Cr:case Or:l=vn;break;case _r:l=An;break;case"scroll":l=hn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var c=0!=(4&t),f=!c&&"scroll"===e,h=c?null!==a?a+"Capture":null:a;c=[];for(var d,p=r;null!==p;){var m=(d=p).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==h&&null!=(m=Pe(p,h))&&c.push(Vr(p,m,d))),f)break;p=p.return}0<c.length&&(a=new l(a,u,null,n,i),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!mi(u)&&!u[fi])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?mi(u):null)&&(u!==(f=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,m="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==l?a:vi(l),d=null==u?a:vi(u),(a=new c(m,p+"leave",l,n,i)).target=f,a.relatedTarget=d,m=null,mi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=d,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(h=u,p=0,d=c=l;d;d=Hr(d))p++;for(d=0,m=h;m;m=Hr(m))d++;for(;0<p-d;)c=Hr(c),p--;for(;0<d-p;)h=Hr(h),d--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Hr(c),h=Hr(h)}c=null}else c=null;null!==l&&$r(s,a,l,c,!1),null!==u&&null!==f&&$r(s,f,u,c,!0)}if("select"===(l=(a=r?vi(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Kn;else if(Un(a))if(Qn)g=rr;else{g=tr;var v=er}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=nr);switch(g&&(g=g(e,r))?Vn(s,g,n,i):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=r?vi(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(dr=v,pr=r,mr=null);break;case"focusout":mr=pr=dr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,vr(s,n,i);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":vr(s,n,i)}var y;if(Tn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Ln(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Yt="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(v=Wr(r,b)).length&&(b=new bn(b,e,null,n,i),s.push({event:b,listeners:v}),(y||null!==(y=Fn(n)))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(In=!0,Nn);case"textInput":return(e=t.data)===Nn&&In?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Tn&&Ln(e,t)?(e=en(),Zt=Yt=Xt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=y)}Nr(s,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,i?null!=(l=Pe(n,o))&&s.unshift(Vr(n,l,a)):i||null!=(l=Pe(n,o))&&s.push(Vr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Kr,"")}function Gr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Jr(){}var Xr=null,Yr=null;function Zr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ei="function"==typeof setTimeout?setTimeout:void 0,ti="function"==typeof clearTimeout?clearTimeout:void 0,ni="function"==typeof Promise?Promise:void 0,ri="function"==typeof queueMicrotask?queueMicrotask:void 0!==ni?function(e){return ni.resolve(null).then(e).catch(ii)}:ei;function ii(e){setTimeout((function(){throw e}))}function oi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Vt(t)}function si(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ai(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),ui="__reactFiber$"+li,ci="__reactProps$"+li,fi="__reactContainer$"+li,hi="__reactEvents$"+li,di="__reactListeners$"+li,pi="__reactHandles$"+li;function mi(e){var t=e[ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[ui]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ai(e);null!==e;){if(n=e[ui])return n;e=ai(e)}return t}n=(e=n).parentNode}return null}function gi(e){return!(e=e[ui]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function vi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function yi(e){return e[ci]||null}var bi=[],wi=-1;function xi(e){return{current:e}}function Si(e){0>wi||(e.current=bi[wi],bi[wi]=null,wi--)}function ki(e,t){wi++,bi[wi]=e.current,e.current=t}var Ci={},Oi=xi(Ci),_i=xi(!1),Ei=Ci;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!=e.childContextTypes}function Ri(){Si(_i),Si(Oi)}function Ti(e,t,n){if(Oi.current!==Ci)throw Error(o(168));ki(Oi,t),ki(_i,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return L({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Ei=Oi.current,ki(Oi,e),ki(_i,_i.current),!0}function ji(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Pi(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,Si(_i),Si(Oi),ki(Oi,e)):Si(_i),ki(_i,n)}var Ni=null,Ii=!1,Li=!1;function Fi(e){null===Ni?Ni=[e]:Ni.push(e)}function Bi(){if(!Li&&null!==Ni){Li=!0;var e=0,t=bt;try{var n=Ni;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ni=null,Ii=!1}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),Ke(Ze,Bi),t}finally{bt=t,Li=!1}}return null}var zi=[],Ui=0,Vi=null,Wi=0,Hi=[],$i=0,qi=null,Ki=1,Qi="";function Gi(e,t){zi[Ui++]=Wi,zi[Ui++]=Vi,Vi=e,Wi=t}function Ji(e,t,n){Hi[$i++]=Ki,Hi[$i++]=Qi,Hi[$i++]=qi,qi=e;var r=Ki;e=Qi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ki=1<<32-st(t)+i|n<<i|r,Qi=o+e}else Ki=1<<o|n<<i|r,Qi=e}function Xi(e){null!==e.return&&(Gi(e,1),Ji(e,1,0))}function Yi(e){for(;e===Vi;)Vi=zi[--Ui],zi[Ui]=null,Wi=zi[--Ui],zi[Ui]=null;for(;e===qi;)qi=Hi[--$i],Hi[$i]=null,Qi=Hi[--$i],Hi[$i]=null,Ki=Hi[--$i],Hi[$i]=null}var Zi=null,eo=null,to=!1,no=null;function ro(e,t){var n=Mu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Zi=e,eo=si(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zi=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qi?{id:Ki,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zi=e,eo=null,!0);default:return!1}}function oo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function so(e){if(to){var t=eo;if(t){var n=t;if(!io(e,t)){if(oo(e))throw Error(o(418));t=si(n.nextSibling);var r=Zi;t&&io(e,t)?ro(r,n):(e.flags=-4097&e.flags|2,to=!1,Zi=e)}}else{if(oo(e))throw Error(o(418));e.flags=-4097&e.flags|2,to=!1,Zi=e}}}function ao(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zi=e}function lo(e){if(e!==Zi)return!1;if(!to)return ao(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw uo(),Error(o(418));for(;t;)ro(e,t),t=si(t.nextSibling)}if(ao(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){eo=si(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}eo=null}}else eo=Zi?si(e.stateNode.nextSibling):null;return!0}function uo(){for(var e=eo;e;)e=si(e.nextSibling)}function co(){eo=Zi=null,to=!1}function fo(e){null===no?no=[e]:no.push(e)}var ho=w.ReactCurrentBatchConfig;function po(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mo=xi(null),go=null,vo=null,yo=null;function bo(){yo=vo=go=null}function wo(e){var t=mo.current;Si(mo),e._currentValue=t}function xo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){go=e,yo=vo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(va=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(yo!==e)if(e={context:e,memoizedValue:t,next:null},null===vo){if(null===go)throw Error(o(308));vo=e,go.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var Co=null;function Oo(e){null===Co?Co=[e]:Co.push(e)}function _o(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Eo(e,r)}function Eo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ao=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&_l)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Eo(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Eo(e,n)}function Do(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function jo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function No(e,t,n,r){var i=e.updateQueue;Ao=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(s=0,c=u=l=null,a=o;;){var h=a.lane,d=a.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(h=t,d=n,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(d,f,h);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(d,f,h):p))break e;f=L({},f,h);break e;case 2:Ao=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[a]:h.push(a))}else d={eventTime:d,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=d,l=f):c=c.next=d,s|=h;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(h=a).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);jl|=s,e.lanes=s,e.memoizedState=f}}function Io(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Lo=(new r.Component).refs;function Fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bo={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yl(),i=Zl(e),o=To(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(eu(t,e,i,r),Do(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yl(),i=Zl(e),o=To(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,i))&&(eu(t,e,i,r),Do(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yl(),r=Zl(e),i=To(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Po(e,i,r))&&(eu(t,e,r,n),Do(t,e,r))}};function zo(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&or(n,r)&&or(i,o))}function Uo(e,t,n){var r=!1,i=Ci,o=t.contextType;return"object"==typeof o&&null!==o?o=ko(o):(i=Mi(t)?Ei:Oi.current,o=(r=null!=(r=t.contextTypes))?Ai(e,i):Ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Lo,Mo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ko(o):(o=Mi(t)?Ei:Oi.current,i.context=Ai(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Bo.enqueueReplaceState(i,i.state,null),No(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Ho(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;t===Lo&&(t=i.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function $o(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qo(e){return(0,e._init)(e._payload)}function Ko(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Tu(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&qo(o)===t.type)?((r=i(t,n.props)).ref=Ho(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=Ho(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Iu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Du(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=Ho(e,null,t),n.return=e,n;case S:return(t=Iu(t,e.mode,n)).return=e,t;case P:return h(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Du(t,e.mode,n,null)).return=e,t;$o(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case P:return d(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:f(e,t,n,r,null);$o(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||N(r))return f(t,e=e.get(n)||null,r,i,null);$o(t,r)}return null}function m(i,o,a,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<a.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=d(i,f,a[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),o=s(v,o,m),null===c?u=v:c.sibling=v,c=v,f=g}if(m===a.length)return n(i,f),to&&Gi(i,m),u;if(null===f){for(;m<a.length;m++)null!==(f=h(i,a[m],l))&&(o=s(f,o,m),null===c?u=f:c.sibling=f,c=f);return to&&Gi(i,m),u}for(f=r(i,f);m<a.length;m++)null!==(g=p(f,i,m,a[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=s(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),to&&Gi(i,m),u}function g(i,a,l,u){var c=N(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var f=c=null,m=a,g=a=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=d(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),a=s(b,a,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),to&&Gi(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,u))&&(a=s(y,a,g),null===f?c=y:f.sibling=y,f=y);return to&&Gi(i,g),c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=s(y,a,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),to&&Gi(i,g),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===k&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case x:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&qo(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=Ho(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===k?((o=Du(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Pu(s.type,s.key,s.props,null,r.mode,l)).ref=Ho(r,o,s),l.return=r,r=l)}return a(r);case S:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Iu(s,r.mode,l)).return=r,r=o}return a(r);case P:return e(r,o,(c=s._init)(s._payload),l)}if(te(s))return m(r,o,s,l);if(N(s))return g(r,o,s,l);$o(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Nu(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var Qo=Ko(!0),Go=Ko(!1),Jo={},Xo=xi(Jo),Yo=xi(Jo),Zo=xi(Jo);function es(e){if(e===Jo)throw Error(o(174));return e}function ts(e,t){switch(ki(Zo,t),ki(Yo,e),ki(Xo,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(Xo),ki(Xo,t)}function ns(){Si(Xo),Si(Yo),Si(Zo)}function rs(e){es(Zo.current);var t=es(Xo.current),n=le(t,e.type);t!==n&&(ki(Yo,e),ki(Xo,n))}function is(e){Yo.current===e&&(Si(Xo),Si(Yo))}var os=xi(0);function ss(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var as=[];function ls(){for(var e=0;e<as.length;e++)as[e]._workInProgressVersionPrimary=null;as.length=0}var us=w.ReactCurrentDispatcher,cs=w.ReactCurrentBatchConfig,fs=0,hs=null,ds=null,ps=null,ms=!1,gs=!1,vs=0,ys=0;function bs(){throw Error(o(321))}function ws(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function xs(e,t,n,r,i,s){if(fs=s,hs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,us.current=null===e||null===e.memoizedState?ia:oa,e=n(r,i),gs){s=0;do{if(gs=!1,vs=0,25<=s)throw Error(o(301));s+=1,ps=ds=null,t.updateQueue=null,us.current=sa,e=n(r,i)}while(gs)}if(us.current=ra,t=null!==ds&&null!==ds.next,fs=0,ps=ds=hs=null,ms=!1,t)throw Error(o(300));return e}function Ss(){var e=0!==vs;return vs=0,e}function ks(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ps?hs.memoizedState=ps=e:ps=ps.next=e,ps}function Cs(){if(null===ds){var e=hs.alternate;e=null!==e?e.memoizedState:null}else e=ds.next;var t=null===ps?hs.memoizedState:ps.next;if(null!==t)ps=t,ds=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ds=e).memoizedState,baseState:ds.baseState,baseQueue:ds.baseQueue,queue:ds.queue,next:null},null===ps?hs.memoizedState=ps=e:ps=ps.next=e}return ps}function Os(e,t){return"function"==typeof t?t(e):t}function _s(e){var t=Cs(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ds,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=a=null,u=null,c=s;do{var f=c.lane;if((fs&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,a=r):u=u.next=h,hs.lanes|=f,jl|=f}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ir(r,t.memoizedState)||(va=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,hs.lanes|=s,jl|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Es(e){var t=Cs(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);ir(s,t.memoizedState)||(va=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function As(){}function Ms(e,t){var n=hs,r=Cs(),i=t(),s=!ir(r.memoizedState,i);if(s&&(r.memoizedState=i,va=!0),r=r.queue,Us(Ps.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ps&&1&ps.memoizedState.tag){if(n.flags|=2048,Is(9,Ts.bind(null,n,r,i,t),void 0,null),null===El)throw Error(o(349));0!=(30&fs)||Rs(n,t,i)}return i}function Rs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ts(e,t,n,r){t.value=n,t.getSnapshot=r,Ds(t)&&js(e)}function Ps(e,t,n){return n((function(){Ds(t)&&js(e)}))}function Ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function js(e){var t=Eo(e,1);null!==t&&eu(t,e,1,-1)}function Ns(e){var t=ks();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:e},t.queue=e,e=e.dispatch=Zs.bind(null,hs,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ls(){return Cs().memoizedState}function Fs(e,t,n,r){var i=ks();hs.flags|=e,i.memoizedState=Is(1|t,n,void 0,void 0===r?null:r)}function Bs(e,t,n,r){var i=Cs();r=void 0===r?null:r;var o=void 0;if(null!==ds){var s=ds.memoizedState;if(o=s.destroy,null!==r&&ws(r,s.deps))return void(i.memoizedState=Is(t,n,o,r))}hs.flags|=e,i.memoizedState=Is(1|t,n,o,r)}function zs(e,t){return Fs(8390656,8,e,t)}function Us(e,t){return Bs(2048,8,e,t)}function Vs(e,t){return Bs(4,2,e,t)}function Ws(e,t){return Bs(4,4,e,t)}function Hs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $s(e,t,n){return n=null!=n?n.concat([e]):null,Bs(4,4,Hs.bind(null,t,e),n)}function qs(){}function Ks(e,t){var n=Cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ws(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=Cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ws(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gs(e,t,n){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,va=!0),e.memoizedState=n):(ir(n,t)||(n=mt(),hs.lanes|=n,jl|=n,e.baseState=!0),t)}function Js(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=cs.transition;cs.transition={};try{e(!1),t()}finally{bt=n,cs.transition=r}}function Xs(){return Cs().memoizedState}function Ys(e,t,n){var r=Zl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ea(e)?ta(t,n):null!==(n=_o(e,t,n,r))&&(eu(n,e,r,Yl()),na(n,t,r))}function Zs(e,t,n){var r=Zl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ea(e))ta(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ir(a,s)){var l=t.interleaved;return null===l?(i.next=i,Oo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=_o(e,t,i,r))&&(eu(n,e,r,i=Yl()),na(n,t,r))}}function ea(e){var t=e.alternate;return e===hs||null!==t&&t===hs}function ta(e,t){gs=ms=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function na(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var ra={readContext:ko,useCallback:bs,useContext:bs,useEffect:bs,useImperativeHandle:bs,useInsertionEffect:bs,useLayoutEffect:bs,useMemo:bs,useReducer:bs,useRef:bs,useState:bs,useDebugValue:bs,useDeferredValue:bs,useTransition:bs,useMutableSource:bs,useSyncExternalStore:bs,useId:bs,unstable_isNewReconciler:!1},ia={readContext:ko,useCallback:function(e,t){return ks().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:zs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fs(4194308,4,Hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fs(4,2,e,t)},useMemo:function(e,t){var n=ks();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ks();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ys.bind(null,hs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ks().memoizedState=e},useState:Ns,useDebugValue:qs,useDeferredValue:function(e){return ks().memoizedState=e},useTransition:function(){var e=Ns(!1),t=e[0];return e=Js.bind(null,e[1]),ks().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hs,i=ks();if(to){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===El)throw Error(o(349));0!=(30&fs)||Rs(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,zs(Ps.bind(null,r,s,e),[e]),r.flags|=2048,Is(9,Ts.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ks(),t=El.identifierPrefix;if(to){var n=Qi;t=":"+t+"R"+(n=(Ki&~(1<<32-st(Ki)-1)).toString(32)+n),0<(n=vs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ys++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oa={readContext:ko,useCallback:Ks,useContext:ko,useEffect:Us,useImperativeHandle:$s,useInsertionEffect:Vs,useLayoutEffect:Ws,useMemo:Qs,useReducer:_s,useRef:Ls,useState:function(){return _s(Os)},useDebugValue:qs,useDeferredValue:function(e){return Gs(Cs(),ds.memoizedState,e)},useTransition:function(){return[_s(Os)[0],Cs().memoizedState]},useMutableSource:As,useSyncExternalStore:Ms,useId:Xs,unstable_isNewReconciler:!1},sa={readContext:ko,useCallback:Ks,useContext:ko,useEffect:Us,useImperativeHandle:$s,useInsertionEffect:Vs,useLayoutEffect:Ws,useMemo:Qs,useReducer:Es,useRef:Ls,useState:function(){return Es(Os)},useDebugValue:qs,useDeferredValue:function(e){var t=Cs();return null===ds?t.memoizedState=e:Gs(t,ds.memoizedState,e)},useTransition:function(){return[Es(Os)[0],Cs().memoizedState]},useMutableSource:As,useSyncExternalStore:Ms,useId:Xs,unstable_isNewReconciler:!1};function aa(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function la(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ua(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ca="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=To(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Wl=r),ua(0,t)},n}function ha(e,t,n){(n=To(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ua(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ua(0,t),"function"!=typeof r&&(null===Hl?Hl=new Set([this]):Hl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function da(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ca;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ku.bind(null,e,t,n),t.then(e,e))}function pa(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ma(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=To(-1,1)).tag=2,Po(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ga=w.ReactCurrentOwner,va=!1;function ya(e,t,n,r){t.child=null===e?Go(t,null,n,r):Qo(t,e.child,n,r)}function ba(e,t,n,r,i){n=n.render;var o=t.ref;return So(t,i),r=xs(e,t,n,r,o,i),n=Ss(),null===e||va?(to&&n&&Xi(t),t.flags|=1,ya(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Va(e,t,i))}function wa(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xa(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(s,r)&&e.ref===t.ref)return Va(e,t,i)}return t.flags|=1,(e=Tu(o,r)).ref=t.ref,e.return=t,t.child=e}function xa(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(va=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Va(e,t,i);0!=(131072&e.flags)&&(va=!0)}}return Ca(e,t,n,r,i)}function Sa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Tl,Rl),Rl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Tl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Tl,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Tl,Rl),Rl|=r;return ya(e,t,i,n),t.child}function ka(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ca(e,t,n,r,i){var o=Mi(n)?Ei:Oi.current;return o=Ai(t,o),So(t,i),n=xs(e,t,n,r,o,i),r=Ss(),null===e||va?(to&&r&&Xi(t),t.flags|=1,ya(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Va(e,t,i))}function Oa(e,t,n,r,i){if(Mi(n)){var o=!0;Di(t)}else o=!1;if(So(t,i),null===t.stateNode)Ua(e,t),Uo(t,n,r),Wo(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?ko(u):Ai(t,u=Mi(n)?Ei:Oi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;f||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Vo(t,s,r,u),Ao=!1;var h=t.memoizedState;s.state=h,No(t,r,s,i),l=t.memoizedState,a!==r||h!==l||_i.current||Ao?("function"==typeof c&&(Fo(t,n,c,r),l=t.memoizedState),(a=Ao||zo(t,n,a,r,h,l,u))?(f||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ro(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:po(t.type,a),s.props=u,f=t.pendingProps,h=s.context,l="object"==typeof(l=n.contextType)&&null!==l?ko(l):Ai(t,l=Mi(n)?Ei:Oi.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==f||h!==l)&&Vo(t,s,r,l),Ao=!1,h=t.memoizedState,s.state=h,No(t,r,s,i);var p=t.memoizedState;a!==f||h!==p||_i.current||Ao?("function"==typeof d&&(Fo(t,n,d,r),p=t.memoizedState),(u=Ao||zo(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _a(e,t,n,r,o,i)}function _a(e,t,n,r,i,o){ka(e,t);var s=0!=(128&t.flags);if(!r&&!s)return i&&ji(t,n,!1),Va(e,t,o);r=t.stateNode,ga.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Qo(t,e.child,null,o),t.child=Qo(t,null,a,o)):ya(e,t,a,o),t.memoizedState=r.state,i&&ji(t,n,!0),t.child}function Ea(e){var t=e.stateNode;t.pendingContext?Ti(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ti(0,t.context,!1),ts(e,t.containerInfo)}function Aa(e,t,n,r,i){return co(),fo(i),t.flags|=256,ya(e,t,n,r),t.child}var Ma,Ra,Ta,Pa,Da={dehydrated:null,treeContext:null,retryLane:0};function ja(e){return{baseLanes:e,cachePool:null,transitions:null}}function Na(e,t,n){var r,i=t.pendingProps,s=os.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),ki(os,1&s),null===e)return so(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,a?(i=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=ju(l,i,0,null),e=Du(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ja(n),t.memoizedState=Da,e):Ia(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,a){if(n)return 256&t.flags?(t.flags&=-257,La(e,t,a,r=la(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ju({mode:"visible",children:r.children},i,0,null),(s=Du(s,i,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Qo(t,e.child,null,a),t.child.memoizedState=ja(a),t.memoizedState=Da,s);if(0==(1&t.mode))return La(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,La(e,t,a,r=la(s=Error(o(419)),r,void 0))}if(l=0!=(a&e.childLanes),va||l){if(null!==(r=El)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==s.retryLane&&(s.retryLane=i,Eo(e,i),eu(r,e,i,-1))}return du(),La(e,t,a,r=la(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ou.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,eo=si(i.nextSibling),Zi=t,to=!0,no=null,null!==e&&(Hi[$i++]=Ki,Hi[$i++]=Qi,Hi[$i++]=qi,Ki=e.id,Qi=e.overflow,qi=t),(t=Ia(t,r.children)).flags|=4096,t)}(e,t,l,i,r,s,n);if(a){a=i.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==s?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Tu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=Tu(r,a):(a=Du(a,l,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,l=null===(l=e.child.memoizedState)?ja(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Da,i}return e=(a=e.child).sibling,i=Tu(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ia(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function La(e,t,n,r){return null!==r&&fo(r),Qo(t,e.child,null,n),(e=Ia(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xo(e.return,t,n)}function Ba(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ya(e,t,r.children,n),0!=(2&(r=os.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(os,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ss(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ba(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ss(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ba(t,!0,n,null,o);break;case"together":Ba(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ua(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Va(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Tu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wa(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ha(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ha(t),null;case 1:case 17:return Mi(t.type)&&Ri(),Ha(t),null;case 3:return r=t.stateNode,ns(),Si(_i),Si(Oi),ls(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(lo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==no&&(iu(no),no=null))),Ra(e,t),Ha(t),null;case 5:is(t);var i=es(Zo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ta(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ha(t),null}if(e=es(Xo.current),lo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ui]=t,r[ci]=s,e=0!=(1&t.mode),n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Ir(Pr[i],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":J(r,s),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ir("invalid",r);break;case"textarea":ie(r,s),Ir("invalid",r)}for(var l in ye(n,s),i=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ir("scroll",r)}switch(n){case"input":q(r),Z(r,s,!0);break;case"textarea":q(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ui]=t,e[ci]=r,Ma(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Ir(Pr[i],e);i=r;break;case"source":Ir("error",e),i=r;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),i=r;break;case"details":Ir("toggle",e),i=r;break;case"input":J(e,r),i=G(e,r),Ir("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Ir("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ir("invalid",e)}for(s in ye(n,i),u=i)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Ir("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":q(e),Z(e,r,!1);break;case"textarea":q(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ha(t),null;case 6:if(e&&null!=t.stateNode)Pa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=es(Zo.current),es(Xo.current),lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[ui]=t,(s=r.nodeValue!==n)&&null!==(e=Zi))switch(e.tag){case 3:Gr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ui]=t,t.stateNode=r}return Ha(t),null;case 13:if(Si(os),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&0!=(1&t.mode)&&0==(128&t.flags))uo(),co(),t.flags|=98560,s=!1;else if(s=lo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[ui]=t}else co(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ha(t),s=!1}else null!==no&&(iu(no),no=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&os.current)?0===Pl&&(Pl=3):du())),null!==t.updateQueue&&(t.flags|=4),Ha(t),null);case 4:return ns(),Ra(e,t),null===e&&Br(t.stateNode.containerInfo),Ha(t),null;case 10:return wo(t.type._context),Ha(t),null;case 19:if(Si(os),null===(s=t.memoizedState))return Ha(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Wa(s,!1);else{if(0!==Pl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ss(e))){for(t.flags|=128,Wa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(os,1&os.current|2),t.child}e=e.sibling}null!==s.tail&&Xe()>zl&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ss(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!to)return Ha(t),null}else 2*Xe()-s.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xe(),t.sibling=null,n=os.current,ki(os,r?1&n|2:1&n),t):(Ha(t),null);case 22:case 23:return uu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(Ha(t),6&t.subtreeFlags&&(t.flags|=8192)):Ha(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qa(e,t){switch(Yi(t),t.tag){case 1:return Mi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ns(),Si(_i),Si(Oi),ls(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return is(t),null;case 13:if(Si(os),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(os),null;case 4:return ns(),null;case 10:return wo(t.type._context),null;case 22:case 23:return uu(),null;default:return null}}Ma=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ra=function(){},Ta=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,es(Xo.current);var o,s=null;switch(n){case"input":i=G(e,i),r=G(e,r),s=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ir("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Pa=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ka=!1,Qa=!1,Ga="function"==typeof WeakSet?WeakSet:Set,Ja=null;function Xa(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function Ya(e,t,n){try{n()}catch(n){Su(e,t,n)}}var Za=!1;function el(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Ya(t,n,o)}i=i.next}while(i!==r)}}function tl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function rl(e){var t=e.alternate;null!==t&&(e.alternate=null,rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[hi],delete t[di],delete t[pi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}var ll=null,ul=!1;function cl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Qa||Xa(n,t);case 6:var r=ll,i=ul;ll=null,cl(e,t,n),ul=i,null!==(ll=r)&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ll.removeChild(n.stateNode));break;case 18:null!==ll&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?oi(e.parentNode,n):1===e.nodeType&&oi(e,n),Vt(e)):oi(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,cl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:if(!Qa&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)||0!=(4&o))&&Ya(n,t,s),i=i.next}while(i!==r)}cl(e,t,n);break;case 1:if(!Qa&&(Xa(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:1&n.mode?(Qa=(r=Qa)||null!==n.memoizedState,cl(e,t,n),Qa=r):cl(e,t,n);break;default:cl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ga),t.forEach((function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function dl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ll=l.stateNode,ul=!1;break e;case 3:case 4:ll=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===ll)throw Error(o(160));fl(s,a,i),ll=null,ul=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)pl(t,e),t=t.sibling}function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dl(t,e),ml(e),4&r){try{el(3,e,e.return),tl(3,e)}catch(t){Su(e,e.return,t)}try{el(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:dl(t,e),ml(e),512&r&&null!==n&&Xa(n,n.return);break;case 5:if(dl(t,e),ml(e),512&r&&null!==n&&Xa(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&X(i,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var f=u[a],h=u[a+1];"style"===f?ge(i,h):"dangerouslySetInnerHTML"===f?fe(i,h):"children"===f?he(i,h):b(i,f,h,c)}switch(l){case"input":Y(i,s);break;case"textarea":oe(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;null!=p?ne(i,!!s.multiple,p,!1):d!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[ci]=s}catch(t){Su(e,e.return,t)}}break;case 6:if(dl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(t){Su(e,e.return,t)}}break;case 3:if(dl(t,e),ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:dl(t,e),ml(e);break;case 13:dl(t,e),ml(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Xe())),4&r&&hl(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Qa=(c=Qa)||f,dl(t,e),Qa=c):dl(t,e),ml(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Ja=e,f=e.child;null!==f;){for(h=Ja=f;null!==Ja;){switch(p=(d=Ja).child,d.tag){case 0:case 11:case 14:case 15:el(4,d,d.return);break;case 1:Xa(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:Xa(d,d.return);break;case 22:if(null!==d.memoizedState){bl(h);continue}}null!==p?(p.return=d,Ja=p):bl(h)}f=f.sibling}e:for(f=null,h=e;;){if(5===h.tag){if(null===f){f=h;try{i=h.stateNode,c?"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,a=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Su(e,e.return,t)}}}else if(6===h.tag){if(null===f)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:dl(t,e),ml(e),4&r&&hl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),al(e,ol(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;sl(e,ol(e),s);break;default:throw Error(o(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Ja=e,vl(e,t,n)}function vl(e,t,n){for(var r=0!=(1&e.mode);null!==Ja;){var i=Ja,o=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||Ka;if(!s){var a=i.alternate,l=null!==a&&null!==a.memoizedState||Qa;a=Ka;var u=Qa;if(Ka=s,(Qa=l)&&!u)for(Ja=i;null!==Ja;)l=(s=Ja).child,22===s.tag&&null!==s.memoizedState?wl(i):null!==l?(l.return=s,Ja=l):wl(i);for(;null!==o;)Ja=o,vl(o,t,n),o=o.sibling;Ja=i,Ka=a,Qa=u}yl(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Ja=o):yl(e)}}function yl(e){for(;null!==Ja;){var t=Ja;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qa||tl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qa)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:po(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Io(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Io(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&Vt(h)}}}break;default:throw Error(o(163))}Qa||512&t.flags&&nl(t)}catch(e){Su(t,t.return,e)}}if(t===e){Ja=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ja=n;break}Ja=t.return}}function bl(e){for(;null!==Ja;){var t=Ja;if(t===e){Ja=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ja=n;break}Ja=t.return}}function wl(e){for(;null!==Ja;){var t=Ja;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Su(t,i,e)}}var o=t.return;try{nl(t)}catch(e){Su(t,o,e)}break;case 5:var s=t.return;try{nl(t)}catch(e){Su(t,s,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Ja=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ja=a;break}Ja=t.return}}var xl,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,_l=0,El=null,Al=null,Ml=0,Rl=0,Tl=xi(0),Pl=0,Dl=null,jl=0,Nl=0,Il=0,Ll=null,Fl=null,Bl=0,zl=1/0,Ul=null,Vl=!1,Wl=null,Hl=null,$l=!1,ql=null,Kl=0,Ql=0,Gl=null,Jl=-1,Xl=0;function Yl(){return 0!=(6&_l)?Xe():-1!==Jl?Jl:Jl=Xe()}function Zl(e){return 0==(1&e.mode)?1:0!=(2&_l)&&0!==Ml?Ml&-Ml:null!==ho.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function eu(e,t,n,r){if(50<Ql)throw Ql=0,Gl=null,Error(o(185));vt(e,n,r),0!=(2&_l)&&e===El||(e===El&&(0==(2&_l)&&(Nl|=n),4===Pl&&ou(e,Ml)),tu(e,r),1===n&&0===_l&&0==(1&t.mode)&&(zl=Xe()+500,Ii&&Bi()))}function tu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),a=1<<s,l=i[s];-1===l?0!=(a&n)&&0==(a&r)||(i[s]=dt(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}(e,t);var r=ht(e,e===El?Ml:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Ii=!0,Fi(e)}(su.bind(null,e)):Fi(su.bind(null,e)),ri((function(){0==(6&_l)&&Bi()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Eu(n,nu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nu(e,t){if(Jl=-1,Xl=0,0!=(6&_l))throw Error(o(327));var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=ht(e,e===El?Ml:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=pu(e,r);else{t=r;var i=_l;_l|=2;var s=hu();for(El===e&&Ml===t||(Ul=null,zl=Xe()+500,cu(e,t));;)try{gu();break}catch(t){fu(e,t)}bo(),kl.current=s,_l=i,null!==Al?t=0:(El=null,Ml=0,t=Pl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=ru(e,i)),1===t)throw n=Dl,cu(e,0),ou(e,r),tu(e,Xe()),n;if(6===t)ou(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ir(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=pu(e,r))&&0!==(s=pt(e))&&(r=s,t=ru(e,s)),1===t))throw n=Dl,cu(e,0),ou(e,r),tu(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:bu(e,Fl,Ul);break;case 3:if(ou(e,r),(130023424&r)===r&&10<(t=Bl+500-Xe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Yl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ei(bu.bind(null,e,Fl,Ul),t);break}bu(e,Fl,Ul);break;case 4:if(ou(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>i&&(i=a),r&=~s}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ei(bu.bind(null,e,Fl,Ul),r);break}bu(e,Fl,Ul);break;default:throw Error(o(329))}}}return tu(e,Xe()),e.callbackNode===n?nu.bind(null,e):null}function ru(e,t){var n=Ll;return e.current.memoizedState.isDehydrated&&(cu(e,t).flags|=256),2!==(e=pu(e,t))&&(t=Fl,Fl=n,null!==t&&iu(t)),e}function iu(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function ou(e,t){for(t&=~Il,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(0!=(6&_l))throw Error(o(327));wu();var t=ht(e,0);if(0==(1&t))return tu(e,Xe()),null;var n=pu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ru(e,r))}if(1===n)throw n=Dl,cu(e,0),ou(e,t),tu(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bu(e,Fl,Ul),tu(e,Xe()),null}function au(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(zl=Xe()+500,Ii&&Bi())}}function lu(e){null!==ql&&0===ql.tag&&0==(6&_l)&&wu();var t=_l;_l|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0==(6&(_l=t))&&Bi()}}function uu(){Rl=Tl.current,Si(Tl)}function cu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ti(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(Yi(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ri();break;case 3:ns(),Si(_i),Si(Oi),ls();break;case 5:is(r);break;case 4:ns();break;case 13:case 19:Si(os);break;case 10:wo(r.type._context);break;case 22:case 23:uu()}n=n.return}if(El=e,Al=e=Tu(e.current,null),Ml=Rl=t,Pl=0,Dl=null,Il=Nl=jl=0,Fl=Ll=null,null!==Co){for(t=0;t<Co.length;t++)if(null!==(r=(n=Co[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=i,r.next=s}n.pending=r}Co=null}return e}function fu(e,t){for(;;){var n=Al;try{if(bo(),us.current=ra,ms){for(var r=hs.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ms=!1}if(fs=0,ps=ds=hs=null,gs=!1,vs=0,Cl.current=null,null===n||null===n.return){Pl=1,Dl=t,Al=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Ml,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,h=f.tag;if(0==(1&f.mode)&&(0===h||11===h||15===h)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=pa(a);if(null!==p){p.flags&=-257,ma(p,a,l,0,t),1&p.mode&&da(s,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){da(s,c,t),du();break e}u=Error(o(426))}else if(to&&1&l.mode){var v=pa(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ma(v,a,l,0,t),fo(aa(u,l));break e}}s=u=aa(u,l),4!==Pl&&(Pl=2),null===Ll?Ll=[s]:Ll.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,jo(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Hl||!Hl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,jo(s,ha(s,l,t));break e}}s=s.return}while(null!==s)}yu(n)}catch(e){t=e,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hu(){var e=kl.current;return kl.current=ra,null===e?ra:e}function du(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===El||0==(268435455&jl)&&0==(268435455&Nl)||ou(El,Ml)}function pu(e,t){var n=_l;_l|=2;var r=hu();for(El===e&&Ml===t||(Ul=null,cu(e,t));;)try{mu();break}catch(t){fu(e,t)}if(bo(),_l=n,kl.current=r,null!==Al)throw Error(o(261));return El=null,Ml=0,Pl}function mu(){for(;null!==Al;)vu(Al)}function gu(){for(;null!==Al&&!Ge();)vu(Al)}function vu(e){var t=xl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?yu(e):Al=t,Cl.current=null}function yu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$a(n,t,Rl)))return void(Al=n)}else{if(null!==(n=qa(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Pl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Pl&&(Pl=5)}function bu(e,t,n){var r=bt,i=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{wu()}while(null!==ql);if(0!=(6&_l))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,s),e===El&&(Al=El=null,Ml=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$l||($l=!0,Eu(tt,(function(){return wu(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Ol.transition,Ol.transition=null;var a=bt;bt=1;var l=_l;_l|=4,Cl.current=null,function(e,t){if(Xr=Ht,cr(e=ur())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,f=0,h=e,d=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=a+i),h!==s||0!==r&&3!==h.nodeType||(u=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(p=h.firstChild);)d=h,h=p;for(;;){if(h===e)break t;if(d===n&&++c===i&&(l=a),d===s&&++f===r&&(u=a),null!==(p=h.nextSibling))break;d=(h=d).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yr={focusedElem:e,selectionRange:n},Ht=!1,Ja=t;null!==Ja;)if(e=(t=Ja).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ja=e;else for(;null!==Ja;){t=Ja;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:po(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ja=e;break}Ja=t.return}m=Za,Za=!1}(e,n),pl(n,e),fr(Yr),Ht=!!Xr,Yr=Xr=null,e.current=n,gl(n,e,i),Je(),_l=l,bt=a,Ol.transition=s}else e.current=n;if($l&&($l=!1,ql=e,Kl=i),0===(s=e.pendingLanes)&&(Hl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),tu(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&wu(),0!=(1&(s=e.pendingLanes))?e===Gl?Ql++:(Ql=0,Gl=e):Ql=0,Bi()}(e,t,n,r)}finally{Ol.transition=i,bt=r}return null}function wu(){if(null!==ql){var e=wt(Kl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Kl=0,0!=(6&_l))throw Error(o(331));var i=_l;for(_l|=4,Ja=e.current;null!==Ja;){var s=Ja,a=s.child;if(0!=(16&Ja.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ja=c;null!==Ja;){var f=Ja;switch(f.tag){case 0:case 11:case 15:el(8,f,s)}var h=f.child;if(null!==h)h.return=f,Ja=h;else for(;null!==Ja;){var d=(f=Ja).sibling,p=f.return;if(rl(f),f===c){Ja=null;break}if(null!==d){d.return=p,Ja=d;break}Ja=p}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ja=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Ja=a;else e:for(;null!==Ja;){if(0!=(2048&(s=Ja).flags))switch(s.tag){case 0:case 11:case 15:el(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Ja=y;break e}Ja=s.return}}var b=e.current;for(Ja=b;null!==Ja;){var w=(a=Ja).child;if(0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,Ja=w;else e:for(a=b;null!==Ja;){if(0!=(2048&(l=Ja).flags))try{switch(l.tag){case 0:case 11:case 15:tl(9,l)}}catch(e){Su(l,l.return,e)}if(l===a){Ja=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Ja=x;break e}Ja=l.return}}if(_l=i,Bi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function xu(e,t,n){e=Po(e,t=fa(0,t=aa(n,t),1),1),t=Yl(),null!==e&&(vt(e,1,t),tu(e,t))}function Su(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hl||!Hl.has(r))){t=Po(t,e=ha(t,e=aa(n,e),1),1),e=Yl(),null!==t&&(vt(t,1,e),tu(t,e));break}}t=t.return}}function ku(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Yl(),e.pingedLanes|=e.suspendedLanes&n,El===e&&(Ml&n)===n&&(4===Pl||3===Pl&&(130023424&Ml)===Ml&&500>Xe()-Bl?cu(e,0):Il|=n),tu(e,t)}function Cu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=Yl();null!==(e=Eo(e,t))&&(vt(e,t,n),tu(e,n))}function Ou(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cu(e,n)}function Eu(e,t){return Ke(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mu(e,t,n,r){return new Au(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tu(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,n,r,i,s){var a=2;if(r=e,"function"==typeof e)Ru(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case k:return Du(n.children,i,s,t);case C:a=8,i|=8;break;case O:return(e=Mu(12,n,t,2|i)).elementType=O,e.lanes=s,e;case M:return(e=Mu(13,n,t,i)).elementType=M,e.lanes=s,e;case R:return(e=Mu(19,n,t,i)).elementType=R,e.lanes=s,e;case D:return ju(n,i,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:a=10;break e;case E:a=9;break e;case A:a=11;break e;case T:a=14;break e;case P:a=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Mu(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Du(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function Iu(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,i,o,s,a,l){return e=new Lu(e,t,n,a,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Mu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Bu(e){if(!e)return Ci;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Pi(e,n,t)}return t}function zu(e,t,n,r,i,o,s,a,l){return(e=Fu(n,r,!0,e,0,o,0,a,l)).context=Bu(null),n=e.current,(o=To(r=Yl(),i=Zl(n))).callback=null!=t?t:null,Po(n,o,i),e.current.lanes=i,vt(e,i,r),tu(e,r),e}function Uu(e,t,n,r){var i=t.current,o=Yl(),s=Zl(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=To(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Po(i,t,s))&&(eu(e,i,s,o),Do(e,i,s)),s}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_i.current)va=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return va=!1,function(e,t,n){switch(t.tag){case 3:Ea(t),co();break;case 5:rs(t);break;case 1:Mi(t.type)&&Di(t);break;case 4:ts(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(mo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(os,1&os.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Na(e,t,n):(ki(os,1&os.current),null!==(e=Va(e,t,n))?e.sibling:null);ki(os,1&os.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return za(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(os,os.current),r)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,n)}return Va(e,t,n)}(e,t,n);va=0!=(131072&e.flags)}else va=!1,to&&0!=(1048576&t.flags)&&Ji(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ua(e,t),e=t.pendingProps;var i=Ai(t,Oi.current);So(t,n),i=xs(null,t,r,e,i,n);var s=Ss();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(s=!0,Di(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Mo(t),i.updater=Bo,t.stateNode=i,i._reactInternals=t,Wo(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,to&&s&&Xi(t),ya(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ua(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===T)return 14}return 2}(r),e=po(r,e),i){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=Oa(null,t,r,e,n);break e;case 11:t=ba(null,t,r,e,n);break e;case 14:t=wa(null,t,r,po(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ca(e,t,r,i=t.elementType===r?i:po(r,i),n);case 1:return r=t.type,i=t.pendingProps,Oa(e,t,r,i=t.elementType===r?i:po(r,i),n);case 3:e:{if(Ea(t),null===e)throw Error(o(387));r=t.pendingProps,i=(s=t.memoizedState).element,Ro(e,t),No(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Aa(e,t,r,n,i=aa(Error(o(423)),t));break e}if(r!==i){t=Aa(e,t,r,n,i=aa(Error(o(424)),t));break e}for(eo=si(t.stateNode.containerInfo.firstChild),Zi=t,to=!0,no=null,n=Go(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(co(),r===i){t=Va(e,t,n);break e}ya(e,t,r,n)}t=t.child}return t;case 5:return rs(t),null===e&&so(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,a=i.children,Zr(r,i)?a=null:null!==s&&Zr(r,s)&&(t.flags|=32),ka(e,t),ya(e,t,a,n),t.child;case 6:return null===e&&so(t),null;case 13:return Na(e,t,n);case 4:return ts(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qo(t,null,r,n):ya(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ba(e,t,r,i=t.elementType===r?i:po(r,i),n);case 7:return ya(e,t,t.pendingProps,n),t.child;case 8:case 12:return ya(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,ki(mo,r._currentValue),r._currentValue=a,null!==s)if(ir(s.value,a)){if(s.children===i.children&&!_i.current){t=Va(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=To(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),xo(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(o(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xo(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}ya(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,So(t,n),r=r(i=ko(i)),t.flags|=1,ya(e,t,r,n),t.child;case 14:return i=po(r=t.type,t.pendingProps),wa(e,t,r,i=po(r.type,i),n);case 15:return xa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:po(r,i),Ua(e,t),t.tag=1,Mi(r)?(e=!0,Di(t)):e=!1,So(t,n),Uo(t,r,i),Wo(t,r,i,n),_a(null,t,r,!0,e,n);case 19:return za(e,t,n);case 22:return Sa(e,t,n)}throw Error(o(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Xu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof i){var a=i;i=function(){var e=Vu(s);a.call(e)}}Uu(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Vu(s);o.call(e)}}var s=zu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=s,e[fi]=s.current,Br(8===e.nodeType?e.parentNode:e),lu(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var a=r;r=function(){var e=Vu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[fi]=l.current,Br(8===e.nodeType?e.parentNode:e),lu((function(){Uu(t,l,n,r)})),l}(n,t,e,i,r);return Vu(s)}Ku.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Uu(e,t,null,null)},Ku.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lu((function(){Uu(null,e,null,null)})),t[fi]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),tu(t,Xe()),0==(6&_l)&&(zl=Xe()+500,Bi()))}break;case 13:lu((function(){var t=Eo(e,1);if(null!==t){var n=Yl();eu(t,e,1,n)}})),Hu(e,1)}},St=function(e){if(13===e.tag){var t=Eo(e,134217728);null!==t&&eu(t,e,134217728,Yl()),Hu(e,134217728)}},kt=function(e){if(13===e.tag){var t=Zl(e),n=Eo(e,t);null!==n&&eu(n,e,t,Yl()),Hu(e,t)}},Ct=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Y(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=yi(r);if(!i)throw Error(o(90));K(r),Y(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=au,Me=lu;var Yu={usingClientEntryPoint:!1,Events:[gi,vi,yi,_e,Ee,au]},Zu={findFiberByHostInstance:mi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ec={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{it=tc.inject(ec),ot=tc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(o(299));var n=!1,r="",i=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Br(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return lu(e)},t.hydrate=function(e,t,n){if(!Gu(t))throw Error(o(200));return Xu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=zu(t,null,e,1,null!=n?n:null,i,0,s,a),e[fi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ku(t)},t.render=function(e,t,n){if(!Gu(t))throw Error(o(200));return Xu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Gu(e))throw Error(o(40));return!!e._reactRootContainer&&(lu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=au,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.s=r.createRoot,r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},463:(e,t,n)=>{"use strict";n.d(t,{uI:()=>se});var r=n(7294),i=n(5697),o=n.n(i);function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var c=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function f(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=c.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var h=[".DS_Store","Thumbs.db"];function d(e){return"object"==typeof e&&null!==e}function p(e){return y(e.target.files).map((function(e){return f(e)}))}function m(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return f(e)}))]}}))}))}function g(e,t){return s(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return e.items?(n=y(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(b))]):[3,2];case 1:return[2,v(w(r.sent()))];case 2:return[2,v(y(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===h.indexOf(e.name)}))}function y(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function b(e){if("function"!=typeof e.webkitGetAsEntry)return x(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?k(t):x(e)}function w(e){return e.reduce((function(e,t){return u(u([],l(e),!1),l(Array.isArray(t)?w(t):[t]),!1)}),[])}function x(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=f(t);return Promise.resolve(n)}function S(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){return[2,e.isDirectory?k(e):C(e)]}))}))}function k(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return s(o,void 0,void 0,(function(){var o,s,l;return a(this,(function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=a.sent(),e(o),[3,4];case 3:return s=a.sent(),n(s),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(S)),r.push(l),i(),a.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function C(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=f(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var O=n(8363);function _(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(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.")}()}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(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,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||T(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 T(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.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)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var D=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},j=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},N=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},I={code:"too-many-files",message:"Too many files"};function L(e,t){var n="application/x-moz-file"===e.type||(0,O.Z)(e,t);return[n,n?null:D(t)]}function F(e,t,n){if(B(e.size))if(B(t)&&B(n)){if(e.size>n)return[!1,j(n)];if(e.size<t)return[!1,N(t)]}else{if(B(t)&&e.size<t)return[!1,N(t)];if(B(n)&&e.size>n)return[!1,j(n)]}return[!0,null]}function B(e){return null!=e}function z(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function U(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function V(e){e.preventDefault()}function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!z(e)&&t&&t.apply(void 0,[e].concat(r)),z(e)}))}}function H(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function $(e){return/^.*\.[\w]+$/.test(e)}var q=["children"],K=["open"],Q=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],G=["refKey","onChange","onClick"];function J(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,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||X(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 X(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.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)?Y(e,t):void 0}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var re=(0,r.forwardRef)((function(e,t){var n=e.children,i=se(ne(e,q)),o=i.open,s=ne(i,K);return(0,r.useImperativeHandle)(t,(function(){return{open:o}}),[o]),r.createElement(r.Fragment,null,n(ee(ee({},s),{},{open:o})))}));re.displayName="Dropzone";var ie={disabled:!1,getFilesFromEvent:function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){return d(e)&&d(e.dataTransfer)?[2,g(e.dataTransfer,e.type)]:d(n=e)&&d(n.target)?[2,p(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,m(e)]:[2,[]];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};re.defaultProps=ie,re.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var oe={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ee(ee({},ie),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,d=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,S=t.noKeyboard,k=t.noDrag,C=t.noDragEventsBubbling,O=t.onError,E=t.validator,T=(0,r.useMemo)((function(){return function(e){if(B(e))return Object.entries(e).reduce((function(e,t){var n=R(t,2),r=n[0],i=n[1];return[].concat(_(e),[r],_(i))}),[]).filter((function(e){return H(e)||$(e)})).join(",")}(n)}),[n]),P=(0,r.useMemo)((function(){return function(e){return B(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=R(e,2),n=t[0],r=t[1],i=!0;return H(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every($)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=R(t,2),r=n[0],i=n[1];return A(A({},e),{},M({},r,i))}),{})}]:e}(n)}),[n]),D=(0,r.useMemo)((function(){return"function"==typeof v?v:le}),[v]),j=(0,r.useMemo)((function(){return"function"==typeof g?g:le}),[g]),N=(0,r.useRef)(null),q=(0,r.useRef)(null),K=J((0,r.useReducer)(ae,oe),2),Z=K[0],re=K[1],se=Z.isFocused,ue=Z.isFileDialogActive,ce=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),fe=function(){!ce.current&&ue&&setTimeout((function(){q.current&&(q.current.files.length||(re({type:"closeDialog"}),j()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",fe,!1),function(){window.removeEventListener("focus",fe,!1)}}),[q,ue,j,ce]);var he=(0,r.useRef)([]),de=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),he.current=[])};(0,r.useEffect)((function(){return w&&(document.addEventListener("dragover",V,!1),document.addEventListener("drop",de,!1)),function(){w&&(document.removeEventListener("dragover",V),document.removeEventListener("drop",de))}}),[N,w]),(0,r.useEffect)((function(){return!i&&b&&N.current&&N.current.focus(),function(){}}),[N,b,i]);var pe=(0,r.useCallback)((function(e){O?O(e):console.error(e)}),[O]),me=(0,r.useCallback)((function(e){var t;e.preventDefault(),e.persist(),Ae(e),he.current=[].concat(function(e){if(Array.isArray(e))return Y(e)}(t=he.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||X(t)||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.")}(),[e.target]),U(e)&&Promise.resolve(o(e)).then((function(t){if(!z(e)||C){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles,a=e.validator;return!(!o&&t.length>1||o&&s>=1&&t.length>s)&&t.every((function(e){var t=R(L(e,n),1)[0],o=R(F(e,r,i),1)[0],s=a?a(e):null;return t&&o&&!s}))}({files:t,accept:T,minSize:a,maxSize:s,multiple:l,maxFiles:u,validator:E});re({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}})).catch((function(e){return pe(e)}))}),[o,c,pe,C,T,a,s,l,u,E]),ge=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Ae(e);var t=U(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1}),[h,C]),ve=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Ae(e);var t=he.current.filter((function(e){return N.current&&N.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),he.current=t,t.length>0||(re({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),U(e)&&f&&f(e))}),[N,f,C]),ye=(0,r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=J(L(e,T),2),i=t[0],o=t[1],l=J(F(e,a,s),2),u=l[0],c=l[1],f=E?E(e):null;if(i&&u&&!f)n.push(e);else{var h=[o,c];f&&(h=h.concat(f)),r.push({file:e,errors:h.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[I]})})),n.splice(0)),re({acceptedFiles:n,fileRejections:r,type:"setFiles"}),d&&d(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)}),[re,l,T,a,s,u,d,p,m,E]),be=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Ae(e),he.current=[],U(e)&&Promise.resolve(o(e)).then((function(t){z(e)&&!C||ye(t,e)})).catch((function(e){return pe(e)})),re({type:"reset"})}),[o,ye,pe,C]),we=(0,r.useCallback)((function(){if(ce.current){re({type:"openDialog"}),D();var e={multiple:l,types:P};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){ye(e,null),re({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(j(e),re({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(ce.current=!1,q.current?(q.current.value=null,q.current.click()):pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):pe(e)}))}else q.current&&(re({type:"openDialog"}),D(),q.current.value=null,q.current.click())}),[re,D,j,y,ye,pe,P,l]),xe=(0,r.useCallback)((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),we()))}),[N,we]),Se=(0,r.useCallback)((function(){re({type:"focus"})}),[]),ke=(0,r.useCallback)((function(){re({type:"blur"})}),[]),Ce=(0,r.useCallback)((function(){x||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(we,0):we())}),[x,we]),Oe=function(e){return i?null:e},_e=function(e){return S?null:Oe(e)},Ee=function(e){return k?null:Oe(e)},Ae=function(e){C&&e.stopPropagation()},Me=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,s=e.onFocus,a=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,f=e.onDragLeave,h=e.onDrop,d=ne(e,Q);return ee(ee(te({onKeyDown:_e(W(o,xe)),onFocus:_e(W(s,Se)),onBlur:_e(W(a,ke)),onClick:Oe(W(l,Ce)),onDragEnter:Ee(W(u,me)),onDragOver:Ee(W(c,ge)),onDragLeave:Ee(W(f,ve)),onDrop:Ee(W(h,be)),role:"string"==typeof r&&""!==r?r:"presentation"},n,N),i||S?{}:{tabIndex:0}),d)}}),[N,xe,Se,ke,Ce,me,ge,ve,be,S,k,i]),Re=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),Te=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=ne(e,G);return ee(ee({},te({accept:T,multiple:l,type:"file",style:{display:"none"},onChange:Oe(W(r,be)),onClick:Oe(W(i,Re)),tabIndex:-1},n,q)),o)}}),[q,n,l,be,i]);return ee(ee({},Z),{},{isFocused:se&&!i,getRootProps:Me,getInputProps:Te,rootRef:N,inputRef:q,open:Oe(we)})}function ae(e,t){switch(t.type){case"focus":return ee(ee({},e),{},{isFocused:!0});case"blur":return ee(ee({},e),{},{isFocused:!1});case"openDialog":return ee(ee({},oe),{},{isFileDialogActive:!0});case"closeDialog":return ee(ee({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ee(ee({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ee(ee({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ee({},oe);default:return e}}function le(){}},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case a:case s:case d:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===a||e===s||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},9655:(e,t,n)=>{"use strict";var r;n.d(t,{UT:()=>c,rU:()=>d});var i=n(7294),o=n(9250),s=n(2599);function a(){return a=Object.assign?Object.assign.bind():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},a.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],u=(r||(r=n.t(i,2))).startTransition;function c(e){let{basename:t,children:n,future:r,window:a}=e,l=i.useRef();null==l.current&&(l.current=(0,s.q_)({window:a,v5Compat:!0}));let c=l.current,[f,h]=i.useState({action:c.action,location:c.location}),{v7_startTransition:d}=r||{},p=i.useCallback((e=>{d&&u?u((()=>h(e))):h(e)}),[h,d]);return i.useLayoutEffect((()=>c.listen(p)),[c,p]),i.createElement(o.F0,{basename:t,children:n,location:f.location,navigationType:f.action,navigator:c})}const f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d=i.forwardRef((function(e,t){let n,{onClick:r,relative:u,reloadDocument:c,replace:d,state:p,target:m,to:g,preventScrollReset:v}=e,y=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,l),{basename:b}=i.useContext(o.Us),w=!1;if("string"==typeof g&&h.test(g)&&(n=g,f))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=(0,s.Zn)(t.pathname,b);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:w=!0}catch(e){}let x=(0,o.oQ)(g,{relative:u}),S=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:l,relative:u}=void 0===t?{}:t,c=(0,o.s0)(),f=(0,o.TH)(),h=(0,o.WU)(e,{relative:u});return i.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,s.Ep)(f)===(0,s.Ep)(h);c(e,{replace:n,state:a,preventScrollReset:l,relative:u})}}),[f,c,h,r,a,n,e,l,u])}(g,{replace:d,state:p,target:m,preventScrollReset:v,relative:u});return i.createElement("a",a({},y,{href:n||x,onClick:w||c?r:function(e){r&&r(e),e.defaultPrevented||S(e)},ref:t,target:m}))}));var p,m;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(p||(p={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(m||(m={}))},9250:(e,t,n)=>{"use strict";var r;n.d(t,{F0:()=>T,Fg:()=>M,TH:()=>m,UO:()=>b,Us:()=>u,V$:()=>x,WU:()=>w,j3:()=>R,oQ:()=>d,s0:()=>v,w3:()=>a});var i=n(7294),o=n(2599);function s(){return s=Object.assign?Object.assign.bind():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)}const a=i.createContext(null),l=i.createContext(null),u=i.createContext(null),c=i.createContext(null),f=i.createContext({outlet:null,matches:[],isDataRoute:!1}),h=i.createContext(null);function d(e,t){let{relative:n}=void 0===t?{}:t;p()||(0,o.J0)(!1);let{basename:r,navigator:s}=i.useContext(u),{hash:a,pathname:l,search:c}=w(e,{relative:n}),f=l;return"/"!==r&&(f="/"===l?r:(0,o.RQ)([r,l])),s.createHref({pathname:f,search:c,hash:a})}function p(){return null!=i.useContext(c)}function m(){return p()||(0,o.J0)(!1),i.useContext(c).location}function g(e){i.useContext(u).static||i.useLayoutEffect(e)}function v(){let{isDataRoute:e}=i.useContext(f);return e?function(){let{router:e}=function(e){let t=i.useContext(a);return t||(0,o.J0)(!1),t}(_.UseNavigateStable),t=A(E.UseNavigateStable),n=i.useRef(!1);return g((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,s({fromRouteId:t},i)))}),[e,t])}():function(){p()||(0,o.J0)(!1);let e=i.useContext(a),{basename:t,navigator:n}=i.useContext(u),{matches:r}=i.useContext(f),{pathname:s}=m(),l=JSON.stringify((0,o.Zq)(r).map((e=>e.pathnameBase))),c=i.useRef(!1);return g((()=>{c.current=!0})),i.useCallback((function(r,i){if(void 0===i&&(i={}),!c.current)return;if("number"==typeof r)return void n.go(r);let a=(0,o.pC)(r,JSON.parse(l),s,"path"===i.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.RQ)([t,a.pathname])),(i.replace?n.replace:n.push)(a,i.state,i)}),[t,n,l,s,e])}()}const y=i.createContext(null);function b(){let{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function w(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=i.useContext(f),{pathname:s}=m(),a=JSON.stringify((0,o.Zq)(r).map((e=>e.pathnameBase)));return i.useMemo((()=>(0,o.pC)(e,JSON.parse(a),s,"path"===n)),[e,a,s,n])}function x(e,t){return function(e,t,n){p()||(0,o.J0)(!1);let{navigator:r}=i.useContext(u),{matches:a}=i.useContext(f),l=a[a.length-1],h=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let g,v=m();if(t){var y;let e="string"==typeof t?(0,o.cP)(t):t;"/"===d||(null==(y=e.pathname)?void 0:y.startsWith(d))||(0,o.J0)(!1),g=e}else g=v;let b=g.pathname||"/",w="/"===d?b:b.slice(d.length)||"/",x=(0,o.fp)(e,{pathname:w}),S=function(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let a=e,l=null==(r=n)?void 0:r.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||(0,o.J0)(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,r,o)=>{let s=r.route.id?null==l?void 0:l[r.route.id]:null,u=null;n&&(u=r.route.errorElement||k);let c=t.concat(a.slice(0,o+1)),f=()=>{let t;return t=s?u:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(O,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(C,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):f()}),null)}(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.RQ)([d,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:(0,o.RQ)([d,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n);return t&&S?i.createElement(c.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:o.aU.Pop}},S):S}(e,t)}function S(){let e=function(){var e;let t=i.useContext(h),n=function(e){let t=i.useContext(l);return t||(0,o.J0)(!1),t}(E.UseRouteError),r=A(E.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}(),t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:r},n):null,null)}const k=i.createElement(S,null);class C extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(a);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(f.Provider,{value:t},r)}var _=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_||{}),E=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(E||{});function A(e){let t=function(e){let t=i.useContext(f);return t||(0,o.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.J0)(!1),n.route.id}function M(e){let{to:t,replace:n,state:r,relative:s}=e;p()||(0,o.J0)(!1);let{matches:a}=i.useContext(f),{pathname:l}=m(),u=v(),c=(0,o.pC)(t,(0,o.Zq)(a).map((e=>e.pathnameBase)),l,"path"===s),h=JSON.stringify(c);return i.useEffect((()=>u(JSON.parse(h),{replace:n,state:r,relative:s})),[u,h,s,n,r]),null}function R(e){return function(e){let t=i.useContext(f).outlet;return t?i.createElement(y.Provider,{value:e},t):t}(e.context)}function T(e){let{basename:t="/",children:n=null,location:r,navigationType:s=o.aU.Pop,navigator:a,static:l=!1}=e;p()&&(0,o.J0)(!1);let f=t.replace(/^\/*/,"/"),h=i.useMemo((()=>({basename:f,navigator:a,static:l})),[f,a,l]);"string"==typeof r&&(r=(0,o.cP)(r));let{pathname:d="/",search:m="",hash:g="",state:v=null,key:y="default"}=r,b=i.useMemo((()=>{let e=(0,o.Zn)(d,f);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:y},navigationType:s}}),[f,d,m,g,v,y,s]);return null==b?null:i.createElement(u.Provider,{value:h},i.createElement(c.Provider,{children:n,value:b}))}(r||(r=n.t(i,2))).startTransition,new Promise((()=>{}));class P extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?void 0!==r._error?AwaitRenderStatus.error:void 0!==r._data?AwaitRenderStatus.success:AwaitRenderStatus.pending:(AwaitRenderStatus.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else AwaitRenderStatus.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===AwaitRenderStatus.error&&r._error instanceof AbortedDeferredError)throw neverSettledPromise;if(i===AwaitRenderStatus.error&&!t)throw r._error;if(i===AwaitRenderStatus.error)return React.createElement(AwaitContext.Provider,{value:r,children:t});if(i===AwaitRenderStatus.success)return React.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}},3460:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294),i=n(296),o=n.n(i);function s(e){let{debounce:t,scroll:n,polyfill:i,offsetSize:s}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const l=i||("undefined"==typeof window?class{}:window.ResizeObserver);if(!l)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[c,f]=(0,r.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),h=(0,r.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:c}),d=t?"number"==typeof t?t:t.scroll:null,p=t?"number"==typeof t?t:t.resize:null,m=(0,r.useRef)(!1);(0,r.useEffect)((()=>(m.current=!0,()=>{m.current=!1})));const[g,v,y]=(0,r.useMemo)((()=>{const e=()=>{if(!h.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:o,x:a,y:l}=h.current.element.getBoundingClientRect(),c={left:e,top:t,width:n,height:r,bottom:i,right:o,x:a,y:l};h.current.element instanceof HTMLElement&&s&&(c.height=h.current.element.offsetHeight,c.width=h.current.element.offsetWidth),Object.freeze(c),m.current&&!u(h.current.lastBounds,c)&&f(h.current.lastBounds=c)};return[e,p?o()(e,p):e,d?o()(e,d):e]}),[f,s,d,p]);function b(){h.current.scrollContainers&&(h.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",y,!0))),h.current.scrollContainers=null),h.current.resizeObserver&&(h.current.resizeObserver.disconnect(),h.current.resizeObserver=null)}function w(){h.current.element&&(h.current.resizeObserver=new l(y),h.current.resizeObserver.observe(h.current.element),n&&h.current.scrollContainers&&h.current.scrollContainers.forEach((e=>e.addEventListener("scroll",y,{capture:!0,passive:!0}))))}var x,S,k;return x=y,S=Boolean(n),(0,r.useEffect)((()=>{if(S){const e=x;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[x,S]),k=v,(0,r.useEffect)((()=>{const e=k;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[k]),(0,r.useEffect)((()=>{b(),w()}),[n,y,v]),(0,r.useEffect)((()=>b),[]),[e=>{e&&e!==h.current.element&&(b(),h.current.element=e,h.current.scrollContainers=a(e),w())},c,g]}function a(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...a(e.parentElement)]}const l=["x","y","top","bottom","left","right","width","height"],u=(e,t)=>l.every((n=>e[n]===t[n]))},5251:(e,t,n)=>{"use strict";var r=n(7294),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var i,o={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:a,props:o,_owner:k.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+A(l,0):o,x(s)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),M(s,t,i,"",(function(e){return e}))):null!=s&&(_(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+A(a=e[u],u);l+=M(a,t,i,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=M(a=a.value,t,i,c=o+A(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},D={transition:null},j={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:k};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=s,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:i,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},3697:(e,t,n)=>{"use strict";var r=n(5972).functionsHaveConfigurableNames(),i=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:(e,t,n)=>{"use strict";var r=n(4289),i=n(5559),o=n(3697),s=n(1721),a=n(2753),l=i(s());r(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},1721:(e,t,n)=>{"use strict";var r=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:(e,t,n)=>{"use strict";var r=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=TypeError,l=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!r||!l)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(u),n=o(t,"flags");return n&&n.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],f=1,h=null,d=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,D(S);else{var t=r(c);null!==t&&j(x,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(_),_=-1),p=!0;var o=d;try{for(w(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!M());){var s=h.callback;if("function"==typeof s){h.callback=null,d=h.priorityLevel;var a=s(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?h.callback=a:h===r(u)&&i(u),w(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var f=r(c);null!==f&&j(x,f.startTime-n),l=!1}return l}finally{h=null,d=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,O=null,_=-1,E=5,A=-1;function M(){return!(t.unstable_now()-A<E)}function R(){if(null!==O){var e=t.unstable_now();A=e;var n=!0;try{n=O(!0,e)}finally{n?k():(C=!1,O=null)}}else C=!1}if("function"==typeof b)k=function(){b(R)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,P=T.port2;T.port1.onmessage=R,k=function(){P.postMessage(null)}}else k=function(){v(R,0)};function D(e){O=e,C||(C=!0,k())}function j(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(_),_=-1):g=!0,j(x,o-s))):(e.sortIndex=a,n(u,e),m||p||(m=!0,D(S))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},7478:(e,t,n)=>{"use strict";var r=n(210),i=n(1924),o=n(631),s=r("%TypeError%"),a=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(l){if(t)return p(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),c(e,r,i)):l?(t||(t=new l),d(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},8213:(e,t)=>{class n{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const r=new n;for(let n=0,i=e.length;n<i;n++)r.add(e[n],t);return r}size(){return this._set.size}add(e,t){const n=this.has(e),r=this._array.length;n&&!t||this._array.push(e),n||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){const t=this._set.get(e);if(t>=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}}t.I=n},6400:(e,t,n)=>{const r=n(7923);t.encode=function(e){let t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,i>>>=5,i>0&&(t|=32),n+=r.encode(t)}while(i>0);return n}},7923:(e,t)=>{const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)}},9216:(e,t)=>{function n(e,r,i,o,s,a){const l=Math.floor((r-e)/2)+e,u=s(i,o[l],!0);return 0===u?l:u>0?r-l>1?n(l,r,i,o,s,a):a==t.LEAST_UPPER_BOUND?r<o.length?r:-1:l:l-e>1?n(e,l,i,o,s,a):a==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;let s=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(r[s],r[s-1],!0);)--s;return s}},1188:(e,t,n)=>{const r=n(2728);t.H=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const n=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,s=t.generatedColumn;return i>n||i==n&&s>=o||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},8429:(e,t,n)=>{if(function(){return"undefined"!=typeof window&&this===window}.call()){let t=null;e.exports=function(){if("string"==typeof t)return fetch(t).then((e=>e.arrayBuffer()));if(t instanceof ArrayBuffer)return Promise.resolve(t);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},e.exports.initialize=e=>t=e}else{const t=n(5574),r=n(6152);e.exports=function(){return new Promise(((e,n)=>{const i=r.join("/","mappings.wasm");t.readFile(i,null,((t,r)=>{t?n(t):e(r.buffer)}))}))},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}}},6771:(e,t,n)=>{const r=n(2728),i=n(9216),o=n(8213).I,s=(n(6400),n(8429)),a=n(1225),l=Symbol("smcInternal");class u{constructor(e,t){return e==l?Promise.resolve(this):function(e,t){let n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));const i=null!=n.sections?new f(n,t):new c(n,t);return Promise.resolve(i)}(e,t)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return function(e,t){return c.fromSourceMap(e,t)}(e,t)}static async with(e,t,n){const r=await new u(e,t);try{return await n(r)}finally{r.destroy()}}_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")}eachMapping(e,t,n){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,t.SourceMapConsumer=u;class c extends u{constructor(e,t){return super(l).then((n=>{let i=e;"string"==typeof e&&(i=r.parseSourceMapInput(e));const s=r.getArg(i,"version");let l=r.getArg(i,"sources");const u=r.getArg(i,"names",[]);let c=r.getArg(i,"sourceRoot",null);const f=r.getArg(i,"sourcesContent",null),h=r.getArg(i,"mappings"),d=r.getArg(i,"file",null);if(s!=n._version)throw new Error("Unsupported version: "+s);return c&&(c=r.normalize(c)),l=l.map(String).map(r.normalize).map((function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e})),n._names=o.fromArray(u.map(String),!0),n._sources=o.fromArray(l,!0),n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(c,e,t)})),n.sourceRoot=c,n.sourcesContent=f,n._mappings=h,n._sourceMapURL=t,n.file=d,n._computedColumnSpans=!1,n._mappingsPtr=0,n._wasm=null,a().then((e=>(n._wasm=e,n)))}))}_findSourceIndex(e){let t=e;if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);for(let t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1}static fromSourceMap(e,t){return new c(e.toString())}get sources(){return this._absoluteSources.slice()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(this._mappings,this.sourceRoot),this._mappingsPtr}_parseMappings(e,t){const n=e.length,r=this._wasm.exports.allocate_mappings(n),i=new Uint8Array(this._wasm.exports.memory.buffer,r,n);for(let t=0;t<n;t++)i[t]=e.charCodeAt(t);const o=this._wasm.exports.parse_mappings(r);if(!o){const e=this._wasm.exports.get_last_error();let t=`Error parsing mappings (code ${e}): `;switch(e){case 1:t+="the mappings contained a negative line, column, source index, or name index";break;case 2:t+="the mappings contained a number larger than 2**32";break;case 3:t+="reached EOF while in the middle of parsing a VLQ";break;case 4:t+="invalid base 64 character while parsing a VLQ";break;default:t+="unknown error code"}throw new Error(t)}this._mappingsPtr=o}eachMapping(e,t,n){const i=t||null,o=n||u.GENERATED_ORDER,s=this.sourceRoot;this._wasm.withMappingCallback((t=>{null!==t.source&&(t.source=this._sources.at(t.source),t.source=r.computeSourceURL(s,t.source,this._sourceMapURL),null!==t.name&&(t.name=this._names.at(t.name))),e.call(i,t)}),(()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=r.getArg(e,"source");const n=r.getArg(e,"line"),i=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(n<1)throw new Error("Line numbers must be >= 1");if(i<0)throw new Error("Column numbers must be >= 0");const o=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),o.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,n-1,"column"in e,i)})),o}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let n,i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>n=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,i)})),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._sources.at(e),e=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];let i,o=e;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=r.urlParse(this.sourceRoot))){const e=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')}generatedPositionFor(e){let t=r.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(n.originalLine<1)throw new Error("Line numbers must be >= 1");if(n.originalColumn<0)throw new Error("Column numbers must be >= 0");let i,o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>i=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),n.source,n.originalLine-1,n.originalColumn,o)})),i&&i.source===n.source){let e=i.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class f extends u{constructor(e,t){return super(l).then((n=>{let i=e;"string"==typeof e&&(i=r.parseSourceMapInput(e));const s=r.getArg(i,"version"),a=r.getArg(i,"sections");if(s!=n._version)throw new Error("Unsupported version: "+s);n._sources=new o,n._names=new o,n.__generatedMappings=null,n.__originalMappings=null,n.__generatedMappingsUnsorted=null,n.__originalMappingsUnsorted=null;let l={line:-1,column:0};return Promise.all(a.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const n=r.getArg(e,"offset"),i=r.getArg(n,"line"),o=r.getArg(n,"column");if(i<l.line||i===l.line&&o<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=n,new u(r.getArg(e,"map"),t).then((e=>({generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:e})))}))).then((e=>(n._sections=e,n)))}))}get _generatedMappings(){return this.__generatedMappings||this._sortGeneratedMappings(),this.__generatedMappings}get _originalMappings(){return this.__originalMappings||this._sortOriginalMappings(),this.__originalMappings}get _generatedMappingsUnsorted(){return this.__generatedMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappingsUnsorted}get _originalMappingsUnsorted(){return this.__originalMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappingsUnsorted}_sortGeneratedMappings(){const e=this._generatedMappingsUnsorted;e.sort(r.compareByGeneratedPositionsDeflated),this.__generatedMappings=e}_sortOriginalMappings(){const e=this._originalMappingsUnsorted;e.sort(r.compareByOriginalPositions),this.__originalMappings=e}get sources(){const e=[];for(let t=0;t<this._sections.length;t++)for(let n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}originalPositionFor(e){const t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),o=this._sections[n];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))}sourceContentFor(e,t){for(let t=0;t<this._sections.length;t++){const n=this._sections[t].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){for(let t=0;t<this._sections.length;t++){const n=this._sections[t];if(-1===n.consumer._findSourceIndex(r.getArg(e,"source")))continue;const i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}return{line:null,column:null}}_parseMappings(e,t){const n=this.__generatedMappingsUnsorted=[],i=this.__originalMappingsUnsorted=[];for(let e=0;e<this._sections.length;e++){const t=this._sections[e],o=[];t.consumer.eachMapping((e=>o.push(e)));for(let e=0;e<o.length;e++){const s=o[e];let a=r.computeSourceURL(t.consumer.sourceRoot,null,this._sourceMapURL);this._sources.add(a),a=this._sources.indexOf(a);let l=null;s.name&&(this._names.add(s.name),l=this._names.indexOf(s.name));const u={source:a,generatedLine:s.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(t.generatedOffset.generatedLine===s.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:l};n.push(u),"number"==typeof u.originalLine&&i.push(u)}}}eachMapping(e,t,n){const i=t||null;let o;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}const s=this.sourceRoot;o.map((function(e){let t=null;return null!==e.source&&(t=this._sources.at(e.source),t=r.computeSourceURL(s,t,this._sourceMapURL)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)}_findMapping(e,t,n,r,o,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o,s)}allGeneratedPositionsFor(e){const t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];if(n.originalLine<1)throw new Error("Line numbers must be >= 1");if(n.originalColumn<0)throw new Error("Column numbers must be >= 0");const o=[];let s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(s>=0){let n=this._originalMappings[s];if(void 0===e.column){const e=n.originalLine;for(;n&&n.originalLine===e;){let e=n.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),o.push({line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}),n=this._originalMappings[++s]}}else{const e=n.originalColumn;for(;n&&n.originalLine===t&&n.originalColumn==e;){let e=n.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),o.push({line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}),n=this._originalMappings[++s]}}}return o}destroy(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.destroy()}}},4433:(e,t,n)=>{const r=n(6400),i=n(2728),o=n(8213).I,s=n(1188).H;class a{constructor(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){let o=r;null!==t&&(o=i.relative(t,r)),n._sources.has(o)||n._sources.add(o);const s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n}addMapping(e){const t=i.getArg(e,"generated"),n=i.getArg(e,"original",null);let r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})}setSourceContent(e,t){let n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,n){let r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const s=this._sourceRoot;null!=s&&(r=i.relative(s,r));const a=this._mappings.toArray().length>0?new o:this._sources,l=new o;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){const r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=n&&(t.source=i.join(n,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}const o=t.source;null==o||a.has(o)||a.add(o);const u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=a,this._names=l,e.sources.forEach((function(t){const r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,r))}),this)}_validateMapping(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!r);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}_serializeMappings(){let e,t,n,o,s=0,a=1,l=0,u=0,c=0,f=0,h="";const d=this._mappings.toArray();for(let p=0,m=d.length;p<m;p++){if(t=d[p],e="",t.generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(p>0){if(!i.compareByGeneratedPositionsInflated(t,d[p-1]))continue;e+=","}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-f),f=o,e+=r.encode(t.originalLine-1-u),u=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-c),c=n)),h+=e}return h}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));const n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}a.prototype._version=3,t.h=a},7085:(e,t,n)=>{n(4433).h,n(2728)},2728:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};const n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){const t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){let t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}t.urlParse=i,t.urlGenerate=o;const s=function(e){const n=[];return function(e){for(let t=0;t<n.length;t++)if(n[t].input===e){const e=n[0];return n[0]=n[t],n[t]=e,n[0].result}const r=function(e){let n=e;const r=i(e);if(r){if(!r.path)return e;n=r.path}const s=t.isAbsolute(n),a=[];let l=0,u=0;for(;;){if(l=u,u=n.indexOf("/",l),-1===u){a.push(n.slice(l));break}for(a.push(n.slice(l,u));u<n.length&&"/"===n[u];)u++}let c=0;for(u=a.length-1;u>=0;u--){const e=a[u];"."===e?a.splice(u,1):".."===e?c++:c>0&&(""===e?(a.splice(u+1,c),c=0):(a.splice(u,2),c--))}return n=a.join("/"),""===n&&(n=s?"/":"."),r?(r.path=n,o(r)):n}(e);return n.unshift({input:e,result:r}),n.length>32&&n.pop(),r}}();function a(e,t){""===e&&(e="."),""===t&&(t=".");const n=i(t),a=i(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),o(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);const l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,o(a)):l}t.normalize=s,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");let n=0;for(;0!==t.indexOf(e+"/");){const r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};const l=!("__proto__"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?u:function(e){return c(e)?"$"+e:e},t.fromSetString=l?u:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){let r=f(e.source,t.source);return 0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r||n?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=e.generatedLine-t.generatedLine,0!==r?r:f(e.name,t.name)))))},t.compareByGeneratedPositionsDeflated=function(e,t,n){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r||n?r:(r=f(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:f(e.name,t.name)))))},t.compareByGeneratedPositionsInflated=function(e,t){let n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=f(e.source,t.source),0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name)))))},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){const e=i(n);if(!e)throw new Error("sourceMapURL could not be parsed");if(e.path){const t=e.path.lastIndexOf("/");t>=0&&(e.path=e.path.substring(0,t+1))}t=a(o(e),t)}return s(t)}},1225:(e,t,n)=>{const r=n(8429);function i(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let o=null;e.exports=function(){if(o)return o;const e=[];return o=r().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,n,r,o,s,a,l,u,c,f){const h=new i;h.generatedLine=t+1,h.generatedColumn=n,r&&(h.lastGeneratedColumn=o-1),s&&(h.source=a,h.originalLine=l+1,h.originalColumn=u,c&&(h.name=f)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,n)=>{e.push(t);try{n()}finally{e.pop()}}}))).then(null,(e=>{throw o=null,e})),o}},9125:(e,t,n)=>{n(4433).h,t.SourceMapConsumer=n(6771).SourceMapConsumer,n(7085)},9829:function(e,t){var n,r,i;!function(o,s){"use strict";r=[],void 0===(i="function"==typeof(n=function(){function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],i=["fileName","functionName","source"],o=n.concat(r,i,["args"],["evalOrigin"]);function s(t){if(t)for(var n=0;n<o.length;n++)void 0!==t[o[n]]&&this["set"+e(o[n])](t[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},s.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),i=e.substring(t+1,n).split(","),o=e.substring(n+1);if(0===o.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(o,""),l=a[1],u=a[2],c=a[3];return new s({functionName:r,args:i||void 0,fileName:l,lineNumber:u||void 0,columnNumber:c||void 0})};for(var a=0;a<n.length;a++)s.prototype["get"+e(n[a])]=t(n[a]),s.prototype["set"+e(n[a])]=function(e){return function(t){this[e]=Boolean(t)}}(n[a]);for(var l=0;l<r.length;l++)s.prototype["get"+e(r[l])]=t(r[l]),s.prototype["set"+e(r[l])]=function(e){return function(t){if(n=t,isNaN(parseFloat(n))||!isFinite(n))throw new TypeError(e+" must be a Number");var n;this[e]=Number(t)}}(r[l]);for(var u=0;u<i.length;u++)s.prototype["get"+e(i[u])]=t(i[u]),s.prototype["set"+e(i[u])]=function(e){return function(t){this[e]=String(t)}}(i[u]);return s})?n.apply(t,r):n)||(e.exports=i)}()},6373:(e,t,n)=>{"use strict";var r=n(9496),i=SyntaxError,o="object"==typeof StopIteration?StopIteration:null;e.exports=function(e){if(!o)throw new i("this environment lacks StopIteration");r.set(e,"[[Done]]",!1);var t={next:function(){var e=r.get(this,"[[Iterator]]"),t=r.get(e,"[[Done]]");try{return{done:t,value:t?void 0:e.next()}}catch(t){if(r.set(e,"[[Done]]",!0),t!==o)throw t;return{done:!0,value:void 0}}}};return r.set(t,"[[Iterator]]",e),t}},6597:(e,t,n)=>{"use strict";var r=n(3379),i=n.n(r),o=n(7795),s=n.n(o),a=n(569),l=n.n(a),u=n(3565),c=n.n(u),f=n(7446),h=n.n(f),d=n(4589),p=n.n(d),m=n(8687),g={};g.styleTagTransform=p(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=o[u]||0,f="".concat(u," ").concat(c);o[u]=c+1;var h=n(f),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(d);else{var p=i(d,r);r.byIndex=a,t.splice(a,0,{identifier:f,updater:p,references:1})}s.push(f)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var l=r(e,i),u=0;u<o.length;u++){var c=n(o[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7446:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9225:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(7294),i=n(9250);const o=({children:e})=>{var t;const{navigator:n}=(0,r.useContext)(i.Us),o=(0,i.s0)(),s=null==(t=(0,r.useContext)(i.w3))?void 0:t.router,a=(0,i.TH)();return e({replace(e){o(e.search||"?",{replace:!0,state:e.state})},push(e){o(e.search||"?",{replace:!1,state:e.state})},get location(){var e,t,r;return null!=(r=null!=(t=null==(e=null==s?void 0:s.state)?void 0:e.location)?t:null==n?void 0:n.location)?r:a}})}},4420:(e,t,n)=>{"use strict";function r(e,t,n=!0){return{...e,default:t,decode:(...r)=>{const i=e.decode(...r);return void 0===i||n&&null===i?t:i}}}function i(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function o(e){return null==e?e:String(e)}function s(e){const t=i(e,!0);return null==t?t:String(t)}n.d(t,{JsonParam:()=>c,NumberParam:()=>u,QueryParamProvider:()=>A,StringParam:()=>a,createEnumParam:()=>l,useQueryParams:()=>D,withDefault:()=>r});const a={encode:o,decode:s},l=e=>({encode:o,decode:t=>function(e,t){const n=s(e);return null==n||t.includes(n)?n:void 0}(t,e)}),u={encode:function(e){return null==e?e:String(e)},decode:function(e){const t=i(e);return null==t?t:""===t?null:+t}},c={encode:function(e){return null==e?e:JSON.stringify(e)},decode:function(e){const t=i(e);if(null==t)return t;let n=null;try{n=JSON.parse(t)}catch(e){}return n}};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));var f=n(7294);const h=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&r.stringified===t&&(null==n||r.decode===n)}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var i;if(!n||!t.length)return e;let o={...e},s=!1;for(const e of t)Object.prototype.hasOwnProperty.call(o,e)||(o[e]=null!=(i=n[e])?i:r,s=!0);return s?o:e}const p=Object.prototype.hasOwnProperty;function m(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function g(e,t,n){var r,i;if(m(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(let s=0;s<o.length;s++){const a=null!=(i=null==(r=null==n?void 0:n[o[s]])?void 0:r.equals)?i:m;if(!p.call(t,o[s])||!a(e[o[s]],t[o[s]]))return!1}return!0}function v(e,t,n){const r={},i=Object.keys(t);for(const o of i){const i=t[o],s=e[o];let a;if(n.has(o,s,i.decode))a=n.get(o);else{if(a=i.decode(s),i.equals&&n.has(o,s)){const e=n.get(o);i.equals(a,e)&&(a=e)}void 0!==a&&n.set(o,s,a,i.decode)}void 0===a&&void 0!==i.default&&(a=i.default),r[o]=a}return r}function y(){let e;return function(t,n,r){const i=v(t,n,r);return null!=e&&g(e,i)?e:(e=i,i)}}let b,w,x,S={};const k=(e,t,n)=>{if(b===t&&x===e&&w===n)return S;b=t,x=e;const r=e(null!=t?t:"");w=n;const i=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[e,t]of Object.entries(r)){(null==i?void 0:i[e])&&(delete r[e],e=i[e],r[e]=t);const n=S[e];g(t,n)&&(r[e]=n)}return S=r,r};function C(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const O={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[e,r]of t)Object.prototype.hasOwnProperty.call(n,e)?Array.isArray(n[e])?n[e].push(r):n[e]=[n[e],r]:n[e]=r;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[e,r]of n)if(null!=r)if(Array.isArray(r))for(const n of r)t.append(e,null!=n?n:"");else t.append(e,r);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},_=f.createContext(O);function E({children:e,adapter:t,options:n}){const{adapter:r,options:i}=f.useContext(_),o=f.useMemo((()=>({adapter:null!=t?t:r,options:C(i,n)})),[t,n,r,i]);return f.createElement(_.Provider,{value:o},e)}function A({children:e,adapter:t,options:n}){const r=t;return r?f.createElement(r,null,(t=>f.createElement(E,{adapter:t,options:n},e))):f.createElement(E,{options:n},e)}function M({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:o,objectToSearchString:s}=i;let a;null==t&&(t=i.updateType);const l=k(o,n),u=d(r,Object.keys(e),i.params);let c,f;return c="function"==typeof e?e(v(l,u,h)):e,a=function(e,t){const n={},r=Object.keys(t);for(const i of r){const r=t[i];e[i]?n[i]=e[i].encode(t[i]):n[i]=null==r?r:String(r)}return n}(u,c),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(a,u),a=function(e,t){var n;let r={};for(const i in e)null!=(null==(n=t[i])?void 0:n.urlName)?r[t[i].urlName]=e[i]:r[i]=e[i];return r}(a,u),f=s("push"===t||"replace"===t?a:{...l,...a}),(null==f?void 0:f.length)&&"?"!==f[0]&&(f=`?${f}`),null!=f?f:""}const R=e=>e(),T=e=>setTimeout((()=>e()),0),P=[];function D(e,t){const{adapter:n,options:r}=function(){const e=f.useContext(_);if(void 0===e||e===O)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[i]=(0,f.useState)(y),{paramConfigMap:o,options:s}=function(e,t){let n,r;return void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t),{paramConfigMap:n,options:r}}(e,t),l=(0,f.useMemo)((()=>C(r,s)),[r,s]);let u=function(e,t){var n,r,i;const o={};let s=!1;const l=Object.keys(e);let u=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});u.push(...e)}for(const n of u){const l=e[n];null==l||"object"!=typeof l?(s=!0,o[n]=null!=(i=null==(r=t.params)?void 0:r[n])?i:a):o[n]=l}return s?o:e}(o,l);const c=k(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(u));l.includeAllParams&&(u=d(u,Object.keys(c),l.params,a));const p=i(c,u,h),m=Object.keys(u).join("\0");(0,f.useEffect)((()=>{const e=m.split("\0");return h.registerParams(e),()=>{h.unregisterParams(e)}}),[m]);const g={adapter:n,paramConfigMap:u,options:l},v=(0,f.useRef)(g);null==v.current&&(v.current=g),(0,f.useEffect)((()=>{v.current.adapter=n,v.current.paramConfigMap=u,v.current.options=l}),[n,u,l]);const[b]=(0,f.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:i}=v.current;null==t&&(t=i.updateType),function(e,{immediate:t}={}){P.push(e);let n=t?R:T;1===P.length&&n((()=>{const t=P.slice();P.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=M(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&("string"==typeof r&&r.startsWith("replace")?t.replace(i):t.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})}));return[p,b]}},3250:(e,t,n)=>{"use strict";var r=n(7294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:(e,t,n)=>{"use strict";var r=n(7294),i=n(1688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=a(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=u((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var d=s(e,f[0],f[1]);return l((function(){h.hasValue=!0,h.value=d}),[d]),c(d),d}},1688:(e,t,n)=>{"use strict";e.exports=n(3250)},2798:(e,t,n)=>{"use strict";e.exports=n(139)},8721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);function s(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));const l=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(i)}},3679:(e,t,n)=>{"use strict";var r=n(9981),i=n(4578),o=n(6814),s=n(2636),a=n(3376);e.exports=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e?null:r(e)?"String":i(e)?"Number":o(e)?"Boolean":s(e)?"Symbol":a(e)?"BigInt":void 0}},6430:(e,t,n)=>{"use strict";var r=n(4029),i=n(3083),o=n(1924),s=n(7296),a=o("Object.prototype.toString"),l=n(6410)(),u="undefined"==typeof globalThis?n.g:globalThis,c=i(),f=o("String.prototype.slice"),h={},d=Object.getPrototypeOf;l&&s&&d&&r(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=d(t),r=s(n,Symbol.toStringTag);if(!r){var i=d(n);r=s(i,Symbol.toStringTag)}h[e]=r.get}}}));var p=n(5692);e.exports=function(e){return!!p(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return r(h,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):f(a(e),8,-1))}},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3216:(e,t,n)=>{"use strict";var r=n(2584),i=n(6373);if(n(1405)()||n(5419)()){var o=Symbol.iterator;e.exports=function(e){return null!=e&&void 0!==e[o]?e[o]():r(e)?Array.prototype[o].call(e):void 0}}else{var s=n(5826),a=n(9981),l=n(210),u=l("%Map%",!0),c=l("%Set%",!0),f=n(1924),h=f("Array.prototype.push"),d=f("String.prototype.charCodeAt"),p=f("String.prototype.slice"),m=function(e){var t=0;return{next:function(){var n,r=t>=e.length;return r||(n=e[t],t+=1),{done:r,value:n}}}},g=function(e,t){if(s(e)||r(e))return m(e);if(a(e)){var n=0;return{next:function(){var t=function(e,t){if(t+1>=e.length)return t+1;var n=d(e,t);if(n<55296||n>56319)return t+1;var r=d(e,t+1);return r<56320||r>57343?t+1:t+2}(e,n),r=p(e,n,t);return n=t,{done:t>e.length,value:r}}}}return t&&void 0!==e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void 0};if(u||c){var v=n(8379),y=n(9572),b=f("Map.prototype.forEach",!0),w=f("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var x=f("Map.prototype.iterator",!0),S=f("Set.prototype.iterator",!0);var k=f("Map.prototype.@@iterator",!0)||f("Map.prototype._es6-shim iterator_",!0),C=f("Set.prototype.@@iterator",!0)||f("Set.prototype._es6-shim iterator_",!0);e.exports=function(e){return function(e){if(v(e)){if(x)return i(x(e));if(k)return k(e);if(b){var t=[];return b(e,(function(e,n){h(t,[n,e])})),m(t)}}if(y(e)){if(S)return i(S(e));if(C)return C(e);if(w){var n=[];return w(e,(function(e){h(n,e)})),m(n)}}}(e)||g(e)}}else e.exports=function(e){if(null!=e)return g(e,!0)}}},3483:(e,t,n)=>{"use strict";var r=n(8379),i=n(9572),o=n(1718),s=n(5899);e.exports=function(e){if(e&&"object"==typeof e){if(r(e))return"Map";if(i(e))return"Set";if(o(e))return"WeakMap";if(s(e))return"WeakSet"}return!1}},7462:(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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},8120:(e,t,n)=>{"use strict";n.d(t,{BO:()=>Se,D0:()=>ye,Gz:()=>ze,IS:()=>Be,Py:()=>ce,QQ:()=>$,Wl:()=>K,Xs:()=>Ee,YW:()=>fe,as:()=>E,bg:()=>S,cp:()=>g,f_:()=>Ae,gc:()=>O,gm:()=>x,jT:()=>N,n0:()=>_,nZ:()=>k,q6:()=>ae,r$:()=>F,uU:()=>ke,xv:()=>r,yy:()=>xe});class r{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new f(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=s(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=s(this.text,s(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(r+=n),e<a&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if(n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let s=this.children[r],a=i+s.length;if(e>=i&&t<=a){let l=s.replace(e-i,t-i,n),u=this.lines-s.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(r+=n),e<a&&t>o&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==s||i==a)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),s=r<<1,a=r>>1,l=[],u=0,c=-1,f=[];function h(e){let t;if(e.lines>s&&e instanceof o)for(let t of e.children)h(t);else e.lines>a&&(u>a||!u)?(d(),l.push(e)):e instanceof i&&u&&(t=f[f.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,f[f.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&d(),u+=e.lines,c+=e.length+1,f.push(e))}function d(){0!=u&&(l.push(1==f.length?f[0]:o.from(f,c)),c=-1,u=f.length=0)}for(let t of e)h(t);return d(),1==l.length?l[0]:new o(l,t)}}function s(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}function a(e,t,n){return s(e,[""],t,n)}r.empty=new i([""],0);class l{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof i?r.text.length:r.children.length;if(s==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class f{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let h="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<h.length;e++)h[e]+=h[e-1];function d(e){for(let t=1;t<h.length;t+=2)if(h[t]>e)return h[t-1]<=e;return!1}function p(e){return e>=127462&&e<=127487}const m=8205;function g(e,t,n=!0,r=!0){return(n?v:y)(e,t,r)}function v(e,t,n){if(t==e.length)return t;t&&b(e.charCodeAt(t))&&w(e.charCodeAt(t-1))&&t--;let r=x(e,t);for(t+=k(r);t<e.length;){let i=x(e,t);if(r==m||i==m||n&&d(i))t+=k(i),r=i;else{if(!p(i))break;{let n=0,r=t-2;for(;r>=0&&p(x(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function y(e,t,n){for(;t>0;){let r=v(e,t-2,n);if(r<t)return r;t--}return 0}function b(e){return e>=56320&&e<57344}function w(e){return e>=55296&&e<56320}function x(e,t){let n=e.charCodeAt(t);if(!w(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return b(r)?r-56320+(n-55296<<10)+65536:n}function S(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function k(e){return e<65536?1:2}const C=/\r\n?|\n/;var O=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(O||(O={}));class _{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){R(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new _(e)}composeDesc(e){return this.empty?e:e.empty?this:P(this,e)}mapDesc(e,t=!1){return e.empty?this:T(this,e,t)}mapPos(e,t=-1,n=O.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>e)return i+(e-r);i+=s}else{if(n!=O.Simple&&l>=e&&(n==O.TrackDel&&r<e&&l>e||n==O.TrackBefore&&r<e||n==O.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _(e)}static create(e){return new _(e)}}class E extends _{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return R(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return T(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i<t.length;i+=2){let s=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=s;let l=i>>1;for(;n.length<l;)n.push(r.empty);n.push(s?e.slice(o,o+s):r.empty)}o+=s}return new E(t,n)}compose(e){return this.empty?e:e.empty?this:P(this,e,!0)}map(e,t=!1){return e.empty?this:T(this,e,t,!0)}iterChanges(e,t=!1){R(this,e,t)}get desc(){return _.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new D(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-s);A(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;A(t,e,o),o>0&&M(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s<l;){if(i.done)break e;let e=Math.min(i.len,l-s);A(t,e,-1),A(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new E(t,n),filtered:_.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],s=0,a=null;function l(e=!1){if(!e&&!i.length)return;s<t&&A(i,t-s,-1);let n=new E(i,o);a=a?a.compose(n.map(a)):n,i=[],o=[],s=0}return function e(u){if(Array.isArray(u))for(let t of u)e(t);else if(u instanceof E){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:e,to:a=e,insert:c}=u;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let f=c?"string"==typeof c?r.of(c.split(n||C)):c:r.empty,h=f.length;if(e==a&&0==h)return;e<s&&l(),e>s&&A(i,e-s,-1),A(i,a-e,h),M(o,i,f),s=a}}(e),l(!a),a}static empty(e){return new E(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let o=e[i];if("number"==typeof o)t.push(o,-1);else{if(!Array.isArray(o)||"number"!=typeof o[0]||o.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length<i;)n.push(r.empty);n[i]=r.of(o.slice(1)),t.push(o[0],n[i].length)}}}return new E(t,n)}static createSet(e,t){return new E(e,t)}}function A(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function M(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(r.empty);e.push(n)}}function R(e,t,n){let i=e.inserted;for(let o=0,s=0,a=0;a<e.sections.length;){let l=e.sections[a++],u=e.sections[a++];if(u<0)o+=l,s+=l;else{let c=o,f=s,h=r.empty;for(;c+=l,f+=u,u&&i&&(h=h.append(i[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],u=e.sections[a++];t(o,c,s,f,h),o=c,s=f}}}function T(e,t,n,r=!1){let i=[],o=r?[]:null,s=new D(e),a=new D(t);for(let e=-1;;)if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);A(i,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let t=a.len;for(A(i,a.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(A(i,0,s.ins),o&&M(o,i,s.text),e=s.i),s.forward(n),t-=n}a.next()}else{if(!(s.ins>=0)){if(s.done&&a.done)return o?E.createSet(i,o):_.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=s.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<n))break;n-=a.len,a.next()}A(i,t,e<s.i?s.ins:0),o&&e<s.i&&M(o,i,s.text),e=s.i,s.forward(s.len-n)}}}function P(e,t,n=!1){let r=[],i=n?[]:null,o=new D(e),s=new D(t);for(let e=!1;;){if(o.done&&s.done)return i?E.createSet(r,i):_.create(r);if(0==o.ins)A(r,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),n=r.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;A(r,t,n,e),i&&n&&M(i,r,s.text)}else-1==s.ins?(A(r,o.off?0:o.len,t,e),i&&M(i,r,o.textBit(t))):(A(r,o.off?0:o.len,s.off?0:s.ins,e),i&&!s.off&&M(i,r,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||r.length>n),o.forward2(t),s.forward(t)}}else A(r,0,s.ins,e),i&&M(i,r,s.text),s.next()}}class D{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class j{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new j(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return N.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return N.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return N.range(e.anchor,e.head)}static create(e,t,n){return new j(e,t,n)}}class N{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:N.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new N([this.main],0)}addRange(e,t=!0){return N.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,N.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new N(e.ranges.map((e=>j.fromJSON(e))),e.main)}static single(e,t=e){return new N([N.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return N.normalized(e.slice(),t);n=i.to}return new N(e,t)}static cursor(e,t=0,n,r){return j.create(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}static range(e,t,n,r){let i=(null!=n?n:33554431)<<5|(null==r?3:Math.min(2,r));return t<e?j.create(t,e,24|i):j.create(e,t,(t>e?4:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,s=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?N.range(s,o):N.range(o,s))}}return new N(e,t)}}function I(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let L=0;class F{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=L++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new F(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:B),!!e.static,e.enables)}of(e){return new z([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new z(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new z(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function B(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class z{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=L++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&u.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||V(e,u)){let t=n(e);if(s?!U(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=Z(t,l);if(this.dependencies.every((n=>n instanceof F?t.facet(n)===e.facet(n):!(n instanceof $)||t.field(n,!1)==e.field(n,!1)))||(s?U(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function U(e,t,n){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}function V(e,t){let n=!1;for(let r of t)1&Y(e,r)&&(n=!0);return n}function W(e,t,n){let r=n.map((t=>e[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let o=Z(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)Y(e,t);return e.values[s]=a(e),1},update(e,n){if(!V(e,o))return 0;let r=a(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let o=V(e,r),l=i.config.facets[t.id],u=i.facet(t);if(l&&!o&&B(n,l))return e.values[s]=u,0;let c=a(e);return t.compare(c,u)?(e.values[s]=u,0):(e.values[s]=c,1)}}}const H=F.define({static:!0});class ${constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new $(L++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(H).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,H.of({field:this,create:e})]}get extension(){return this}}function q(e){return t=>new Q(t,e)}const K={highest:q(0),high:q(1),default:q(2),low:q(3),lowest:q(4)};class Q{constructor(e,t){this.inner=e,this.prec=t}}class G{of(e){return new J(this,e)}reconfigure(e){return G.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class J{constructor(e,t){this.compartment=e,this.inner=t}}class X{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,s){let a=i.get(o);if(null!=a){if(a<=s)return;let e=r[a].indexOf(o);e>-1&&r[a].splice(e,1),o instanceof J&&n.delete(o.compartment)}if(i.set(o,s),Array.isArray(o))for(let t of o)e(t,s);else if(o instanceof J){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,s)}else if(o instanceof Q)e(o.inner,o.prec);else if(o instanceof $)r[s].push(o),o.provides&&e(o.provides,s);else if(o instanceof z)r[s].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof $?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let s=Object.create(null),a=[],l=[];for(let e of r)s[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=u&&u[e]||[];if(t.every((e=>0==e.type)))if(s[r.id]=a.length<<1|1,B(o,t))a.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));a.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(s[e.id]=a.length<<1|1,a.push(e.value)):(s[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));s[r.id]=l.length<<1,l.push((e=>W(e,r,t)))}}let c=l.map((e=>e(s)));return new X(e,o,c,s,a,i)}}function Y(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function Z(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ee=F.define(),te=F.define({combine:e=>e.some((e=>e)),static:!0}),ne=F.define({combine:e=>e.length?e[0]:void 0,static:!0}),re=F.define(),ie=F.define(),oe=F.define(),se=F.define({combine:e=>!!e.length&&e[0]});class ae{constructor(e,t){this.type=e,this.value=t}static define(){return new le}}class le{of(e){return new ae(this,e)}}class ue{constructor(e){this.map=e}of(e){return new ce(this,e)}}class ce{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ce(this.type,t)}is(e){return this.type==e}static define(e={}){return new ue(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ce.reconfigure=ce.define(),ce.appendConfig=ce.define();class fe{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&I(n,t.newLength),i.some((e=>e.type==fe.time))||(this.annotations=i.concat(fe.time.of(Date.now())))}static create(e,t,n,r,i,o){return new fe(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(fe.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function he(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else{if(!(i<t.length))return n;o=t[i++],s=t[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function de(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=E.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:ce.mapEffects(e.effects,i).concat(ce.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function pe(e,t,n){let r=t.selection,i=ve(t.annotations);return t.userEvent&&(i=i.concat(fe.userEvent.of(t.userEvent))),{changes:t.changes instanceof E?t.changes:E.of(t.changes||[],n,e.facet(ne)),selection:r&&(r instanceof N?r:N.single(r.anchor,r.head)),effects:ve(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function me(e,t,n){let r=pe(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(n=!1);let o=!!t[i].sequential;r=de(r,pe(e,t[i],o?r.changes.newLength:e.doc.length),o)}let i=fe.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(oe),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=de(r,pe(t,o,e.changes.newLength),!0))}return r==e?e:fe.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(re)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:he(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=E.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=fe.create(t,r,e.selection&&e.selection.map(i),ce.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(ie);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof fe?i:Array.isArray(i)&&1==i.length&&i[0]instanceof fe?i[0]:me(t,ve(i),!1)}return e}(i):i)}fe.time=ae.define(),fe.userEvent=ae.define(),fe.addToHistory=ae.define(),fe.remote=ae.define();const ge=[];function ve(e){return null==e?ge:Array.isArray(e)?e:[e]}var ye=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ye||(ye={}));const be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let we;try{we=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class xe{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Y(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return Y(this,n),Z(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return me(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(G.reconfigure)?(n&&(i=new Map,n.compartments.forEach(((e,t)=>i.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ce.reconfigure)?(n=null,r=t.value):t.is(ce.appendConfig)&&(n=null,r=ve(r).concat(t.value));n?t=e.startState.values.slice():(n=X.resolve(r,i,this),t=new xe(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values),new xe(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:N.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ve(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),a=this.changes(s.changes),l=a.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let u=r.mapDesc(a,!0);i.push(s.range.map(u)),r=r.compose(l),o=ce.mapEffects(o,l).concat(ce.mapEffects(ve(s.effects),u))}return{changes:r,selection:N.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof E?e:E.of(e,this.doc.length,this.facet(xe.lineSeparator))}toText(e){return r.of(e.split(this.facet(xe.lineSeparator)||C))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Y(this,t),Z(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof $&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],o=e[t];r.push(i.init((e=>i.spec.fromJSON(o,e))))}return xe.create({doc:e.doc,selection:N.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=X.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(xe.lineSeparator)||C)),i=e.selection?e.selection instanceof N?e.selection:N.single(e.selection.anchor,e.selection.head):N.single(0);return I(i,n.length),t.staticFacet(te)||(i=i.asSingle()),new xe(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(xe.tabSize)}get lineBreak(){return this.facet(xe.lineSeparator)||"\n"}get readOnly(){return this.facet(se)}phrase(e,...t){for(let t of this.facet(xe.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(ee))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return ye.Space;if(function(e){if(we)return we.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||be.test(n)))return!0}return!1}(e))return ye.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return ye.Word;return ye.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=g(t,o,!1);if(i(t.slice(e,o))!=ye.Word)break;o=e}for(;s<r;){let e=g(t,s);if(i(t.slice(s,e))!=ye.Word)break;s=e}return o==s?null:N.range(o+n,s+n)}}function Se(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=r[e];if(void 0===o)r[e]=i;else if(o===i||void 0===i);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,i)}}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}xe.allowMultipleSelections=te,xe.tabSize=F.define({combine:e=>e.length?e[0]:4}),xe.lineSeparator=ne,xe.readOnly=se,xe.phrases=F.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),xe.languageData=ee,xe.changeFilter=re,xe.transactionFilter=ie,xe.transactionExtender=oe,G.reconfigure=ce.define();class ke{eq(e){return this==e}range(e,t=e){return Ce.create(e,t,this)}}ke.prototype.startSide=ke.prototype.endSide=0,ke.prototype.point=!1,ke.prototype.mapMode=O.TrackDel;class Ce{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Ce(e,t,n)}}function Oe(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class _e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,u,c=this.value[a],f=this.from[a]+e,h=this.to[a]+e;if(f==h){let e=t.mapPos(f,c.startSide,c.mapMode);if(null==e)continue;if(l=u=e,c.startSide!=c.endSide&&(u=t.mapPos(f,c.endSide),u<l))continue}else if(l=t.mapPos(f,c.startSide),u=t.mapPos(h,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(s=Math.max(s,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new _e(r,i,n,s):null,pos:o}}}class Ee{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Ee(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Oe)),this.isEmpty)return t.length?Ee.of(t):this;let s=new Re(this,null,-1).goto(0),a=0,l=[],u=new Ae;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value)||l.push(Ce.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?Ee.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],s=this.chunk[i],a=e.touchesRange(o,o+s.length);if(!1===a)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(o));else if(!0===a){let{mapped:i,pos:a}=s.map(o,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Ee(n,t,i||Ee.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Te.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Te.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=Me(o,s,n),l=new De(o,a,i),u=new De(s,a,i);n.iterGaps(((e,t,n)=>je(l,e,u,t,n,r))),n.empty&&0==n.length&&je(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Me(i,o),a=new De(i,s,0).goto(n),l=new De(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Ne(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new De(e,null,i).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:Math.min(n.length,a);r.point(s,e,o.point,n,i,o.pointRank),a=Math.min(o.openEnd(e),n.length)}else e>s&&(r.span(s,e,o.active,a),a=o.openEnd(e));if(o.to>n)return a+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,t=!1){let n=new Ae;for(let r of e instanceof Ce?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Oe(t,r)>0)return e.slice().sort(Oe);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Ee.empty=new Ee([],[],null,-1),Ee.empty.nextLayer=Ee.empty;class Ae{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new _e(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ae)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ee.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ee.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Me(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=r.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||i.add(e.chunk[t])}return i}class Re{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Te{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new Re(o,t,n,i));return 1==r.length?r[0]:new Te(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Pe(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Pe(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Pe(this.heap,0)}}}function Pe(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class De{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Te.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ie(this.active,e),Ie(this.activeTo,e),Ie(this.activeRank,e),this.minActive=Fe(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=i;)t++;Le(this.active,t,n),Le(this.activeTo,t,r),Le(this.activeRank,t,i),e&&Le(e,t,this.cursor.from),this.minActive=Fe(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ie(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function je(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Ne(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,i,e.point,n.point):i>a&&!Ne(e.active,n.active)&&o.compareRange(a,i,e.active,n.active),r>s)break;a=r,t<=0&&e.next(),t>=0&&n.next()}}function Ne(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Ie(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function Le(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function Fe(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function Be(e,t,n=e.length){let r=0;for(let i=0;i<n;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=g(e,i));return r}function ze(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=g(e,r)}return!0===r?-1:e.length}},2864:(e,t,n)=>{"use strict";n.d(t,{p:()=>he,Nm:()=>Qe,tk:()=>Vn,SJ:()=>pi,lg:()=>Fe,l9:()=>ce,S2:()=>Hr,Uw:()=>hr,qr:()=>Sr,Sd:()=>ui,gB:()=>si,v5:()=>yi,ZO:()=>jr,HQ:()=>Ii,AE:()=>Rr,bF:()=>oi,$f:()=>Jn,Eu:()=>Pi,OO:()=>je,W$:()=>Fr,Zs:()=>Ur,$1:()=>Zn,mH:()=>di,hJ:()=>Zr});for(var r=n(8120),i=n(8699),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),l=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),u="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),c=l||a&&+a[1]<57,f=0;f<10;f++)o[48+f]=o[96+f]=String(f);for(f=1;f<=24;f++)o[f+111]="F"+f;for(f=65;f<=90;f++)o[f]=String.fromCharCode(f+32),s[f]=String.fromCharCode(f);for(var h in o)s.hasOwnProperty(h)||(s[h]=o[h]);function d(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function p(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function m(e,t){if(!t.anchorNode)return!1;try{return p(e,t.anchorNode)}catch(e){return!1}}function g(e){return 3==e.nodeType?A(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function v(e,t,n,r){return!!n&&(b(e,t,n,r,-1)||b(e,t,n,r,1))}function y(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function b(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:w(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=y(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?w(e):0}}}function w(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const x={left:0,right:0,top:0,bottom:0};function S(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function k(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class C{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let O,_=null;function E(e){if(e.setActive)return e.setActive();if(_)return e.focus(_);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==_?{get preventScroll(){return _={preventScroll:!0},!0}}:void 0),!_){_=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function A(e,t,n=t){let r=O||(O=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function M(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function R(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class T{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new T(e.parentNode,y(e),t)}static after(e,t){return new T(e.parentNode,y(e)+1,t)}}const P=[];class D{constructor(){this.parent=null,this.dom=null,this.dirty=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}coordsAt(e,t){return null}sync(e,t){if(2&this.dirty){let n,r=this.dom,i=null;for(let o of this.children){if(o.dirty){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=D.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.dirty=0}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=j(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=j(n)}else if(1&this.dirty)for(let n of this.children)n.dirty&&(n.sync(e,t),n.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==w(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!D.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,u=n;a<this.children.length;a++){let n=this.children[a],c=l+n.length;if(l<e&&c>t)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=u;break}u=c,l=c+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=P){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...n);for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new N(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}function j(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}D.prototype.breakAfter=0;class N{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function I(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,f=o.length?o[o.length-1]:null,h=f?f.breakAfter:s;if(!(t==r&&c&&!s&&!h&&o.length<2&&c.merge(n,i,o.length?f:null,0==n,a,l))){if(r<u.length){let e=u[r];e&&i<e.length?(t==r&&(e=e.split(i),i=0),!h&&f&&e.merge(0,i,f,!0,0,l)?o[o.length-1]=e:(i&&e.merge(0,i,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(f?f.breakAfter=1:s=1),r++}for(c&&(c.breakAfter=s,n>0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(n,c.length,null,!1,a,0),t++));t<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:a;else{if(!u[t].become(o[0]))break;t++,o.shift(),a=o.length?0:l}!o.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,a,l)&&t--,(t<r||o.length)&&e.replaceChildren(t,r,o)}}function L(e,t,n,r,i,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:u,off:c}=s.findPos(t,-1),f=t-n;for(let e of r)f+=e.length;e.length+=f,I(e,u,c,a,l,r,0,i,o)}let F="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},B="undefined"!=typeof document?document:{documentElement:{style:{}}};const z=/Edge\/(\d+)/.exec(F.userAgent),U=/MSIE \d/.test(F.userAgent),V=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(F.userAgent),W=!!(U||V||z),H=!W&&/gecko\/(\d+)/i.test(F.userAgent),$=!W&&/Chrome\/(\d+)/.exec(F.userAgent),q="webkitFontSmoothing"in B.documentElement.style,K=!W&&/Apple Computer/.test(F.vendor),Q=K&&(/Mobile\/\w+/.test(F.userAgent)||F.maxTouchPoints>2);var G={mac:Q||/Mac/.test(F.platform),windows:/Win/.test(F.platform),linux:/Linux|X11/.test(F.platform),ie:W,ie_version:U?B.documentMode||6:V?+V[1]:z?+z[1]:0,gecko:H,gecko_version:H?+(/Firefox\/(\d+)/.exec(F.userAgent)||[0,0])[1]:0,chrome:!!$,chrome_version:$?+$[1]:0,ios:Q,android:/Android\b/.test(F.userAgent),webkit:q,safari:K,webkit_version:q?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=B.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class J extends D{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof J&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new J(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new T(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Y(this.dom,e,t)}}class X extends D{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(R(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e,t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof X&&n.mark.eq(this.mark))||e&&i<=0||t<this.length&&o<=0)||(L(this,e,t,n?n.children:[],i-1,o-1),this.markDirty(),0))}split(e){let t=[],n=0,r=-1,i=0;for(let o of this.children){let s=n+o.length;s>e&&t.push(n<e?o.split(e-n):o),r<0&&n>=e&&(r=i),n=s,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new X(this.mark,t,o)}domAtPos(e){return ie(this,e)}coordsAt(e,t){return se(this,e,t)}}function Y(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?G.chrome||G.gecko||(t?(i--,s=1):o<r&&(o++,s=-1)):n<0?i--:o<r&&o++;let a=A(e,i,o).getClientRects();if(!a.length)return x;let l=a[(s?s<0:n>=0)?0:a.length-1];return G.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),s?S(l,s<0):l||null}class Z extends D{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||Z)(e,t,n)}split(e){let t=Z.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Z&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}become(e){return e.length==this.length&&e instanceof Z&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return r.xv.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):r.xv.empty}domAtPos(e){return 0==e?T.before(this.dom):T.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.dom.getClientRects(),r=null;if(!n.length)return x;for(let t=e>0?n.length-1:0;r=n[t],!(e>0?0==t:t==n.length-1||r.top<r.bottom);t+=e>0?-1:1);return this.length?r:S(r,this.side>0)}get isEditable(){return!1}get isWidget(){return!0}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class ee extends Z{domAtPos(e){let{topView:t,text:n}=this.widget;return t?te(e,0,t,n,((e,t)=>e.domAtPos(t)),(e=>new T(n,Math.min(e,n.nodeValue.length)))):new T(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?ne(e,t,n,r):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?te(e,t,n,r,((e,t,n)=>e.coordsAt(t,n)),((e,t)=>Y(r,e,t))):Y(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function te(e,t,n,r,i,o){if(n instanceof X){for(let s=n.dom.firstChild;s;s=s.nextSibling){let n=D.get(s);if(!n)return o(e,t);let a=p(s,r),l=n.length+(a?r.nodeValue.length:0);if(e<l||e==l&&n.getSide()<=0)return a?te(e,t,n,r,i,o):i(n,e,t);e-=l}return i(n,n.length,-1)}return n.dom==r?o(e,t):i(n,e,t)}function ne(e,t,n,r){if(n instanceof X){let i=0;for(let o of n.children){let n=p(o.dom,r);if(p(o.dom,e))return i+(n?ne(e,t,o,r):o.localPosFromDOM(e,t));i+=n?r.nodeValue.length:o.length}}else if(n.dom==r)return Math.min(t,r.nodeValue.length);return n.localPosFromDOM(e,t)}class re extends D{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof re&&e.side==this.side}split(){return new re(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?T.before(this.dom):T.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),n=function(e,t){let n=e.parent,r=n?n.children.indexOf(e):-1;for(;n&&r>=0;)if(t<0?r>0:r<n.children.length){let e=n.children[r+t];if(e instanceof J){let n=e.coordsAt(t<0?e.length:0,t);if(n)return n}r+=t}else{if(!(n instanceof X&&n.parent)){let e=n.dom.lastChild;if(e&&"BR"==e.nodeName)return e.getClientRects()[0];break}r=n.parent.children.indexOf(n)+(t<0?0:1),n=n.parent}}(this,this.side>0?-1:1);return n&&n.top<t.bottom&&n.bottom>t.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return r.xv.empty}}function ie(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;i<r.length;i++){let o=r[i],s=e+o.length;if(!(s==e&&o.getSide()<=0)){if(t>e&&t<s&&o.dom.parentNode==n)return o.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=i;e>0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e<r.length;e++){let t=r[e];if(t.dom.parentNode==n)return t.domAtPos(0)}return new T(n,0)}function oe(e,t,n){let r,{children:i}=e;n>0&&t instanceof X&&i.length&&(r=i[i.length-1])instanceof X&&r.mark.eq(t.mark)?oe(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function se(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,n){for(let a=0,l=0;a<t.children.length&&l<=n;a++){let u=t.children[a],c=l+u.length;c>=n&&(u.children.length?e(u,n-l):!o&&(c>n||l==c&&u.getSide()>0)?(o=u,s=n-l):(l<n||l==c&&u.getSide()<0)&&(r=u,i=n-l)),l=c}}(e,t);let a=(n<0?r:o)||r||o;return a?a.coordsAt(Math.max(0,a==r?i:s),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=g(t);return n[n.length-1]||null}(e)}function ae(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function le(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i of n)if(-1==r.indexOf(i)||e[i]!==t[i])return!1;return!0}function ue(e,t,n){let r=null;if(t)for(let i in t)n&&i in n||e.removeAttribute(r=i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(r=i,n[i]);return!!r}J.prototype.children=Z.prototype.children=re.prototype.children=P;class ce{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var fe=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(fe||(fe={}));class he extends r.uU{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new de(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new me(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=ge(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new me(e,t,n,r,e.widget||null,!0)}static line(e){return new pe(e)}static set(e,t=!1){return r.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}he.none=r.Xs.empty;class de extends he{constructor(e){let{start:t,end:n}=ge(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof de&&this.tagName==e.tagName&&this.class==e.class&&le(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}de.prototype.point=!1;class pe extends he{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof pe&&this.spec.class==e.spec.class&&le(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}pe.prototype.mapMode=r.gc.TrackBefore,pe.prototype.point=!0;class me extends he{constructor(e,t,n,i,o,s){super(t,n,o,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel}get type(){return this.startSide<this.endSide?fe.WidgetRange:this.startSide<=0?fe.WidgetBefore:fe.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof me&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ge(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function ve(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}me.prototype.point=!0;class ye extends D{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof ye))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),L(this,e,t,n?n.children:[],i,o),!0}split(e){let t=new ye;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){le(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){oe(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=ae(t,this.attrs||{})),n&&(this.attrs=ae({class:n},this.attrs||{}))}domAtPos(e){return ie(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e,t){var n;this.dom?4&this.dirty&&(R(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ue(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&D.get(r)instanceof X;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=D.get(r))||void 0===n?void 0:n.isEditable)||G.ios&&this.children.some((e=>e instanceof J))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof J)||/[^ -~]/.test(n.text))return null;let r=g(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=se(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return!1}get type(){return fe.Text}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let i=e.children[n],o=r+i.length;if(o>=t){if(i instanceof ye)return i;if(o>t)break}r=o+i.breakAfter}return null}}class be extends D{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof be&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?T.before(this.dom):T.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new be(this.widget,t,this.type);return n.breakAfter=this.breakAfter,n}get children(){return P}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):r.xv.empty}domBoundsAround(){return null}become(e){return e instanceof be&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class we{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof be&&e.type==fe.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new ye),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(xe(new re(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(xe(new J(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof me){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof me)if(n.block){let{type:e}=n;e!=fe.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new be(n.widget||new Se("div"),s,e))}else{let o=Z.create(n.widget||new Se("span"),s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||i>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(xe(new re(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(xe(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let s=new we(e,t,n,o);return s.openEnd=r.Xs.spans(i,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function xe(e,t){for(let n of t)e=new X(n,[e],e.length);return e}class Se extends ce{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const ke=r.r$.define(),Ce=r.r$.define(),Oe=r.r$.define(),_e=r.r$.define(),Ee=r.r$.define(),Ae=r.r$.define(),Me=r.r$.define(),Re=r.r$.define({combine:e=>e.some((e=>e))}),Te=r.r$.define({combine:e=>e.some((e=>e))});class Pe{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new Pe(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const De=r.Py.define({map:(e,t)=>e.map(t)});function je(e,t,n){let r=e.facet(_e);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Ne=r.r$.define({combine:e=>!e.length||e[0]});let Ie=0;const Le=r.r$.define();class Fe{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:n,provide:r,decorations:i}=t||{};return new Fe(Ie++,e,n,(e=>{let t=[Le.of(e)];return i&&t.push(Ve.of((t=>{let n=t.plugin(e);return n?i(n):he.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return Fe.define((t=>new e(t)),t)}}class Be{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(je(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){je(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){je(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const ze=r.r$.define(),Ue=r.r$.define(),Ve=r.r$.define(),We=r.r$.define(),He=r.r$.define(),$e=r.r$.define();class qe{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new qe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0,s=0;;r++){let a=r==e.length?null:e[r],l=o-s,u=a?a.fromB:1e9;for(;i<t.length&&t[i]<u;){let e=t[i],r=t[i+1],o=Math.max(s,e),a=Math.min(u,r);if(o<=a&&new qe(o+l,a+l,o,a).addToSet(n),r>u)break;i+=2}if(!a)return n;new qe(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class Ke{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new qe(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new Ke(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Qe=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Qe||(Qe={}));const Ge=Qe.LTR,Je=Qe.RTL;function Xe(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const Ye=Xe("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Ze=Xe("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),et=Object.create(null),tt=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);et[t]=n,et[n]=-t}const nt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class rt{constructor(e,t,n){this.from=e,this.to=t,this.level=n}get dir(){return this.level%2?Je:Ge}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.from<t:s.to>t:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}const it=[];function ot(e){return[new rt(0,e,0)]}let st="";function at(e,t,n,i,o){var s;let a=i.head-e.from,l=-1;if(0==a){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),l=0)}else if(a==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(a=e.side(!0,n),l=t.length-1)}l<0&&(l=rt.find(t,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc));let u=t[l];a==u.side(o,n)&&(u=t[l+=o?1:-1],a=u.side(!o,n));let c=o==(u.dir==n),f=(0,r.cp)(e.text,a,c);if(st=e.text.slice(Math.min(a,f),Math.max(a,f)),f!=u.side(o,n))return r.jT.cursor(f+e.from,c?-1:1,u.level);let h=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return h||u.level==n?h&&h.level<u.level?r.jT.cursor(h.side(!o,n)+e.from,o?1:-1,h.level):r.jT.cursor(f+e.from,o?-1:1,u.level):r.jT.cursor(o?e.to:e.from,o?-1:1,n)}const lt="";class ut{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=lt}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r),this.readNode(r);let e=r.nextSibling;if(e==t)break;let i=D.get(r),o=D.get(e);(i&&o?i.breakAfter:(i?i.breakAfter:ct(r))||ct(e)&&("BR"!=r.nodeName||r.cmIgnore))&&this.lineBreak(),r=e}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,s=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=D.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function ct(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class ft{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class ht extends D{constructor(e){super(),this.view=e,this.compositionDeco=he.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ye],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new qe(0,0,0,e.state.doc.length)],0)}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=he.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=pt(e);if(!n)return he.none;let{from:r,to:i,node:o,text:s}=n,a=t.mapPos(r,1),l=Math.max(a,t.mapPos(i,-1)),{state:u}=e,c=3==o.nodeType?o.nodeValue:new ut([],u).readRange(o.firstChild,null).text;if(l-a<c.length)if(u.doc.sliceString(a,Math.min(u.doc.length,a+c.length),lt)==c)l=a+c.length;else{if(u.doc.sliceString(Math.max(0,l-c.length),l,lt)!=c)return he.none;a=l-c.length}else if(u.doc.sliceString(a,l,lt)!=c)return he.none;let f=D.get(o);return f instanceof ee?f=f.widget.topView:f&&(f.parent=null),he.set(he.replace({widget:new mt(o,s,f),inclusive:!0}).range(a,l))}(this.view,e.changes)),(G.ie||G.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let n=function(e,t,n){let i=new vt;return r.Xs.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return t=qe.extendWithRanges(t,n),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=G.chrome||G.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof be&&e.widget instanceof dt&&r.push(e.dom);n.updateGaps(r)}updateChildren(e,t){let n=this.childCursor(t);for(let t=e.length-1;;t--){let r=t>=0?e[t]:null;if(!r)break;let{fromA:i,toA:o,fromB:s,toB:a}=r,{content:l,breakAtStart:u,openStart:c,openEnd:f}=we.build(this.view.state.doc,s,a,this.decorations,this.dynamicDecorationMap),{i:h,off:d}=n.findPos(o,1),{i:p,off:m}=n.findPos(i,-1);I(this,p,m,h,d,l,u,c,f)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection())return;let n=this.forceSelection;this.forceSelection=!1;let r=this.view.state.selection.main,i=this.domAtPos(r.anchor),o=r.empty?i:this.domAtPos(r.head);if(G.gecko&&r.empty&&1==(s=i).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>i.node.insertBefore(e,i.node.childNodes[i.offset]||null))),i=o=new T(e,0),n=!0}var s;let a=this.view.observer.selectionRange;!n&&a.focusNode&&v(i.node,i.offset,a.anchorNode,a.anchorOffset)&&v(o.node,o.offset,a.focusNode,a.focusOffset)||(this.view.observer.ignore((()=>{G.android&&G.chrome&&this.dom.contains(a.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(a.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=d(this.view.root);if(e)if(r.empty){if(G.gecko){let e=(t=i.node,n=i.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable?2:0));if(e&&3!=e){let t=gt(i.node,i.offset,1==e?1:-1);t&&(i=new T(t,1==e?0:t.nodeValue.length))}}e.collapse(i.node,i.offset),null!=r.bidiLevel&&null!=a.cursorBidiLevel&&(a.cursorBidiLevel=r.bidiLevel)}else if(e.extend){e.collapse(i.node,i.offset);try{e.extend(o.node,o.offset)}catch(e){}}else{let t=document.createRange();r.anchor>r.head&&([i,o]=[o,i]),t.setEnd(o.node,o.offset),t.setStart(i.node,i.offset),e.removeAllRanges(),e.addRange(t)}var t,n})),this.view.observer.setSelectionRange(i,o)),this.impreciseAnchor=i.precise?null:new T(a.anchorNode,a.anchorOffset),this.impreciseHead=o.precise?null:new T(a.focusNode,a.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,n=d(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=ye.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||m(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=D.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof ye)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){for(let n=this.length,r=this.children.length-1;;r--){let i=this.children[r],o=n-i.breakAfter-i.length;if(e>o||e==o&&i.type!=fe.WidgetBefore&&i.type!=fe.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==fe.WidgetBefore&&t>-2))return i.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Qe.LTR;for(let e=0,l=0;l<this.children.length;l++){let u=this.children[l],c=e+u.length;if(c>r)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),o){let t=u.dom.lastChild,r=t?g(t):[];if(r.length){let t=r[r.length-1],o=a?t.right-n.left:n.right-t.left;o>s&&(s=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Qe.RTL:Qe.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ye){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=g(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new N(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(he.replace({widget:new dt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return he.set(e)}updateDeco(){let e=this.view.state.facet(Ve).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=0,o=0,s=0,a=0;for(let e of this.view.state.facet(He).map((e=>e(this.view))))if(e){let{left:t,right:n,top:r,bottom:l}=e;null!=t&&(i=Math.max(i,t)),null!=n&&(o=Math.max(o,n)),null!=r&&(s=Math.max(s,r)),null!=l&&(a=Math.max(a,l))}let l={left:r.left-i,top:r.top-s,right:r.right+o,bottom:r.bottom+a};!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e;c;)if(1==c.nodeType){let e,f=c==l.body;if(f)e=k(u);else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();e={left:t.left,right:t.left+c.clientWidth,top:t.top,bottom:t.top+c.clientHeight}}let h=0,d=0;if("nearest"==i)t.top<e.top?(d=-(e.top-t.top+s),n>0&&t.bottom>e.bottom+d&&(d=t.bottom-e.bottom+d+s)):t.bottom>e.bottom&&(d=t.bottom-e.bottom+s,n<0&&t.top-d<e.top&&(d=-(e.top+d-t.top+s)));else{let r=t.bottom-t.top,o=e.bottom-e.top;d=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==r?t.left<e.left?(h=-(e.left-t.left+o),n>0&&t.right>e.right+h&&(h=t.right-e.right+h+o)):t.right>e.right&&(h=t.right-e.right+o,n<0&&t.left<e.left+h&&(h=-(e.left+h-t.left+o))):h=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,h||d)if(f)u.scrollBy(h,d);else{let e=0,n=0;if(d){let e=c.scrollTop;c.scrollTop+=d,n=c.scrollTop-e}if(h){let t=c.scrollLeft;c.scrollLeft+=h,e=c.scrollLeft-t}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-h)<1&&(r="nearest"),n&&Math.abs(n-d)<1&&(i="nearest")}if(f)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,l,n.head<n.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==Qe.LTR)}}class dt extends ce{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function pt(e){let t=e.observer.selectionRange,n=t.focusNode&>(t.focusNode,t.focusOffset,0);if(!n)return null;let r=e.docView.nearest(n);if(!r)return null;if(r instanceof ye){let e=n;for(;e.parentNode!=r.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!D.get(t);)t=t.previousSibling;let i=t?D.get(t).posAtEnd:r.posAtStart;return{from:i,to:i,node:e,text:n}}{for(;;){let{parent:e}=r;if(!e)return null;if(e instanceof ye)break;r=e}let e=r.posAtStart;return{from:e,to:e+r.length,node:r.dom,text:n}}}class mt extends ce{constructor(e,t,n){super(),this.top=e,this.text=t,this.topView=n}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return ee}}function gt(e,t,n){if(n<=0)for(let n=e,r=t;;){if(3==n.nodeType)return n;if(!(1==n.nodeType&&r>0))break;n=n.childNodes[r-1],r=w(n)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return r;if(!(1==r.nodeType&&i<r.childNodes.length&&n>=0))break;r=r.childNodes[i],i=0}return null}class vt{constructor(){this.changes=[]}compareRange(e,t){ve(e,t,this.changes)}comparePoint(e,t){ve(e,t,this.changes)}}function yt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function bt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function wt(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function xt(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function St(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function kt(e,t,n){let r,i,o,s,a,l,u,c,f=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=g(h);for(let d=0;d<e.length;d++){let p=e[d];i&&wt(i,p)&&(p=xt(St(p,i.bottom),i.top));let m=yt(t,p),g=bt(n,p);if(0==m&&0==g)return 3==h.nodeType?Ct(h,t,n):kt(h,t,n);if(!r||s>g||s==g&&o>m){r=h,i=p,o=m,s=g;let a=g?n<p.top?-1:1:m?t<p.left?-1:1:0;f=!a||(a>0?d<e.length-1:d>0)}0==m?n>p.bottom&&(!u||u.bottom<p.bottom)?(a=h,u=p):n<p.top&&(!c||c.top>p.top)&&(l=h,c=p):u&&wt(u,p)?u=St(u,p.bottom):c&&wt(c,p)&&(c=xt(c,p.top))}}if(u&&u.bottom>=n?(r=a,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Ct(r,h,n):f&&"false"!=r.contentEditable?kt(r,h,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Ct(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;a<r;a++){let r=A(e,a,a+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;s||(s=t-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<o){let n=t>=(u.left+u.right)/2,r=n;if((G.chrome||G.gecko)&&A(e,a).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Ot(e,t,n,r=-1){var i,o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:f}=t,h=f-l;if(h<0)return 0;if(h>u)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;s=e.elementAtHeight(h),s.type!=fe.Text;)for(;h=r>0?s.bottom+t:s.top-t,!(h>=0&&h<=u);){if(i)return n?null:0;i=!0,r=-r}f=l+h;let d=s.from;if(d<e.viewport.from)return 0==e.viewport.from?0:n?null:_t(e,a,s,c,f);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:_t(e,a,s,c,f);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,f);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,f),g&&!e.contentDOM.contains(g)&&(g=null));let v,y=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,f);e&&({offsetNode:v,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,f);t&&(({startContainer:v,startOffset:y}=t),(!e.contentDOM.contains(v)||G.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return A(e,r-1,r).getBoundingClientRect().left>n}(v,y,c)||G.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():A(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(v,y,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=ye.find(e.docView,d);if(!t)return h>s.top+s.height/2?s.to:s.from;({node:v,offset:y}=kt(t.dom,c,f))}let b=e.docView.nearest(v);if(!b)return null;if(b.isWidget&&1==(null===(o=b.dom)||void 0===o?void 0:o.nodeType)){let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(v,y)+b.posAtStart}function _t(e,t,n,i,o){let s=Math.round((i-t.left)*e.defaultCharacterWidth);e.lineWrapping&&n.height>1.5*e.defaultLineHeight&&(s+=Math.floor((o-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.Gz)(a,s,e.state.tabSize)}function Et(e,t,n,i){let o=e.state.doc.lineAt(t.head),s=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=at(o,s,a,l,n),c=st;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),s=e.bidiSpans(o),t=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(c))return l}else{if(!i)return t;u=i(c)}l=t}}function At(e,t,n){let i=e.state.facet(We).map((t=>t(e)));for(;;){let e=!1;for(let o of i)o.between(n.from-1,n.from+1,((i,o,s)=>{n.from>i&&n.from<o&&(n=t.head>n.from?r.jT.cursor(i,1):r.jT.cursor(o,-1),e=!0)}));if(!e)return n}}class Mt{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let t=(t,n)=>{this.ignoreDuringComposition(n)||"keydown"==n.type&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(n.type,e,n)?n.preventDefault():t(e,n))};for(let n in It){let r=It[n];e.contentDOM.addEventListener(n,(n=>{Nt(e,n)&&t(r,n)}),Lt[n]),this.registeredEvents.push(n)}e.scrollDOM.addEventListener("mousedown",(n=>{if(n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(It.mousedown,n),!n.defaultPrevented&&2==n.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),G.chrome&&102==G.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,G.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let r;this.customHandlers=[];for(let i of t)if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:i.value,handlers:r});for(let t in r)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{Nt(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){je(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){je(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(G.android&&G.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return!(!G.ios||t.synthetic||t.altKey||t.metaKey||!((n=Rt.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||Tt.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)||(this.pendingIOSKey=n||t,setTimeout((()=>this.flushIOSKey(e)),250),0))}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,M(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(G.safari&&!G.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const Rt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Tt="dthko",Pt=[16,17,18,20,91,92,224,225];function Dt(e){return.7*e+8}class jt{constructor(e,t,n,i){this.view=e,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM);let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.yy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(ke);return n.length?n[0](t):G.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(Ce);return n.length?n[0](t):G.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=d(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Gt(t))&&null}start(e){!1===this.dragging&&(e.preventDefault(),this.select(e))}move(e){var t;if(0==e.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=e);let n=0,r=0,i=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};e.clientX<=i.left?n=-Dt(i.left-e.clientX):e.clientX>=i.right&&(n=Dt(e.clientX-i.right)),e.clientY<=i.top?r=-Dt(i.top-e.clientY):e.clientY>=i.bottom&&(r=Dt(e.clientY-i.bottom)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Nt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=D.get(r))&&n.ignoreEvent(t))return!1;return!0}const It=Object.create(null),Lt=Object.create(null),Ft=G.ie&&G.ie_version<15||G.ios&&G.webkit_version<604;function Bt(e,t){let n,{state:i}=e,o=1,s=i.toText(t),a=s.lines==i.selection.ranges.length;if(null!=Xt&&i.selection.ranges.every((e=>e.empty))&&Xt==s.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((a?s.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.jT.cursor(n.from+u.length)}}))}else n=a?i.changeByRange((e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.jT.cursor(e.from+t.length)}})):i.replaceSelection(s);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function zt(e,t,n,i){if(1==i)return r.jT.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return r.jT.cursor(t);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=(0,r.cp)(o.text,s,!1):l=(0,r.cp)(o.text,s);let u=i(o.text.slice(a,l));for(;a>0;){let e=(0,r.cp)(o.text,a,!1);if(i(o.text.slice(e,a))!=u)break;a=e}for(;l<o.length;){let e=(0,r.cp)(o.text,l);if(i(o.text.slice(l,e))!=u)break;l=e}return r.jT.range(a+o.from,l+o.from)}(e.state,t,n);{let n=ye.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:i.from,s=n?n.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,r.jT.range(o,s)}}It.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():Pt.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},It.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},It.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Lt.touchstart=Lt.touchmove={passive:!0},It.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let r of e.state.facet(Oe))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Ht(e,t),i=Gt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,s,a){let l=Ht(e,t),u=zt(e,l.pos,l.bias,i);if(n.pos!=l.pos&&!s){let t=zt(e,n.pos,n.bias,i),o=Math.min(t.from,u.from),s=Math.max(t.to,u.to);u=o<u.from?r.jT.range(o,s):r.jT.range(s,o)}return s?o.replaceRange(o.main.extend(u.from,u.to)):a&&o.ranges.length>1&&o.ranges.some((e=>e.eq(u)))?function(e,t){for(let n=0;;n++)if(e.ranges[n].eq(t))return r.jT.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}(o,u):a?o.addRange(u):r.jT.create([u])}}}(e,t)),n){let r=e.root.activeElement!=e.contentDOM;e.inputState.startMouseSelection(new jt(e,t,n,r)),r&&e.observer.ignore((()=>E(e.contentDOM))),e.inputState.mouseSelection&&e.inputState.mouseSelection.start(t)}};let Ut=(e,t)=>e>=t.top&&e<=t.bottom,Vt=(e,t,n)=>Ut(t,n)&&e>=n.left&&e<=n.right;function Wt(e,t,n,r){let i=ye.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let s=i.coordsAt(o,-1);if(s&&Vt(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&Vt(n,r,a)?1:s&&Ut(r,s)?-1:1}function Ht(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Wt(e,n,t.clientX,t.clientY)}}const $t=G.ie&&G.ie_version<=11;let qt=null,Kt=0,Qt=0;function Gt(e){if(!$t)return e.detail;let t=qt,n=Qt;return qt=e,Qt=Date.now(),Kt=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Kt+1)%3:1}function Jt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"})}It.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},It.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,o=()=>{++i==n.length&&Jt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}}else Jt(e,t,t.dataTransfer.getData("Text"),!0)},It.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=Ft?null:t.clipboardData;n?(Bt(e,n.getData("text/plain")||n.getData("text/uri-text")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Bt(e,n.value)}),50)}(e)};let Xt=null;It.copy=It.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;Xt=i?n:null;let o=Ft?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})};const Yt=r.q6.define();function Zt(e,t){let n=[];for(let r of e.facet(Me)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Yt.of(!0)}):null}function en(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Zt(e.state,t);n?e.dispatch(n):e.update([])}}),10)}It.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),en(e)},It.blur=e=>{e.observer.clearSelectionRange(),en(e)},It.compositionstart=It.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},It.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,G.chrome&&G.android&&e.observer.flushSoon(),setTimeout((()=>{e.inputState.composing<0&&e.docView.compositionDeco.size&&e.update([])}),50)},It.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},It.beforeinput=(e,t)=>{var n;let r;if(G.chrome&&G.android&&(r=Rt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const tn=["pre-wrap","normal","pre-line","break-spaces"];class nn{constructor(e){this.lineWrapping=e,this.doc=r.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return tn.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let s=tn.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class rn{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class on{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this.type=i}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new on(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var sn=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(sn||(sn={}));const an=.001;class ln{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>an&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return ln.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=r[s],f=i.lineAt(a,sn.ByPosNoHeight,n.setDoc(t),0,0),h=f.to>=l?f:i.lineAt(l,sn.ByPosNoHeight,n,0,0);for(c+=h.to-l,l=h.to;s>0&&f.from<=r[s-1].toA;)a=r[s-1].fromA,u=r[s-1].fromB,s--,a<f.from&&(f=i.lineAt(a,sn.ByPosNoHeight,n,0,0));u+=f.from-a,a=f.from;let d=pn.build(n.setDoc(o),e,u,c);i=i.replace(a,l,d)}return i.updateHeight(n,0)}static empty(){return new cn(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new hn(ln.of(e.slice(0,t)),o,ln.of(e.slice(n)))}}ln.prototype.size=1;class un extends ln{constructor(e,t,n){super(e,t),this.type=n}blockAt(e,t,n,r){return new on(r,this.length,n,this.height,this.type)}lineAt(e,t,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class cn extends un{constructor(e,t){super(e,t,fe.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof cn||r instanceof fn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof fn?r=new cn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):ln.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class fn extends ln{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,s=(this.height-t)/(this.length-o-1)}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=s+o.length*a,u=Math.max(n,e-l/2);return new on(o.from,o.length,u,l,fe.Text)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:a,length:l}=t.doc.line(i+r);return new on(a,l,n+s*r,s,fe.Text)}}lineAt(e,t,n,r,i){if(t==sn.ByHeight)return this.blockAt(e,n,r,i);if(t==sn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new on(t,r-t,0,0,fe.Text)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=s+l.length*a,c=l.number-o,f=r+s*c+a*(l.from-i-c);return new on(l.from,l.length,Math.max(r,Math.min(f,r+this.height-u)),u,fe.Text)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-s;c+=a*n+l*(e-i-n)}let r=a+l*t.length;o(new on(t.from,t.length,c,r,fe.Text)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof fn?n[n.length-1]=new fn(e.length+r):n.push(null,new fn(r-1))}if(e>0){let t=n[0];t instanceof fn?n[0]=new fn(e+t.length):n.unshift(new fn(e-1),null)}return ln.of(n)}decomposeLeft(e,t){t.push(new fn(e-1),null)}decomposeRight(e,t){t.push(null,new fn(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new fn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=an&&(s=-2);let a=new cn(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new fn(i-o).updateHeight(e,o));let a=ln.of(n);return(s<0||Math.abs(a.height-this.height)>=an||Math.abs(s-this.heightMetrics(e,t).perLine)>=an)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class hn extends ln{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,a=t==sn.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let u=t==sn.ByPosNoHeight?sn.ByPosNoHeight:sn.ByPos;return a?l.join(this.right.lineAt(s,u,n,o,s)):this.left.lineAt(s,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,r,i,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,sn.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&dn(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),dn(i,e)}return ln.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?ln.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,s=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function dn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof fn&&(r=e[t+1])instanceof fn&&e.splice(t-1,3,new fn(n.length+1+r.length))}class pn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof cn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new cn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0;r<0&&(r=this.oracle.lineHeight);let i=t-e;n.block?this.addBlock(new un(i,r,n.type)):(i||r>=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new cn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new fn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof cn)return e;let t=new cn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=fe.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=fe.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof cn||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new cn(0,-1));let n=e;for(let e of this.nodes)e instanceof cn&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,i){let o=new pn(n,e);return r.Xs.spans(t,n,i,o,0),o.finish(n)}}class mn{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&ve(e,t,this.changes,5)}}function gn(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),s=Math.min(s,r.right),a=Math.max(a,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function vn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class yn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e){return he.replace({widget:new bn(this.size,e)}).range(this.from,this.to)}}class bn extends ce{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class wn{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaler=On,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Qe.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Ue).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new nn(t),this.stateDeco=e.facet(Ve).filter((e=>"function"!=typeof e)),this.heightMap=ln.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle.setDoc(e.doc),[new qe(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=he.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new xn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?On:new _n(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:En(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Ve).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=qe.extendWithRanges(i,function(e,t,n){let i=new mn;return r.Xs.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.as.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Te)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Qe.RTL:Qe.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0,f=parseInt(n.paddingTop)||0,h=parseInt(n.paddingBottom)||0;this.paddingTop==f&&this.paddingBottom==h||(this.paddingTop=f,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let d=(this.printing?vn:gn)(t,this.paddingTop),p=d.top-this.pixelViewport.top,m=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();s=n>0&&i.refresh(o,n,r,a,v/r,t),s&&(e.docView.minWidth=0,u|=8)}p>0&&m>0?c=Math.max(p,m):p<0&&m<0&&(c=Math.min(p,m)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(s?ln.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle,[new qe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new rn(n.from,o))}i.heightChanged&&(u|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new xn(r.lineAt(o-1e3*n,sn.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),sn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(e,sn.ByPos,i,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<a.from?s.top:s.bottom-o,a=new xn(r.lineAt(n-500,sn.ByHeight,i,0,0).from,r.lineAt(n+o+500,sn.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new xn(this.heightMap.lineAt(n,sn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,sn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,sn.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,sn.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=s+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new yn(t.mapPos(r.from),t.mapPos(r.to),r.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,o=i>>1,s=i<<1;if(this.defaultTextDirection!=Qe.LTR&&!n)return[];let a=[],l=(i,s,u,c)=>{if(s-i<o)return;let f=this.state.selection.main,h=[f.from];f.empty||h.push(f.to);for(let e of h)if(e>i&&e<s)return l(i,e-10,u,c),void l(e+10,s,u,c);let d=function(e,t){for(let n of e)if(t(n))return n}(e,(e=>e.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)<o&&Math.abs(e.to-s)<o&&!h.some((t=>e.from<t&&e.to>t))));if(!d){if(s<u.to&&t&&n&&t.visibleRanges.some((e=>e.from<=s&&e.to>=s))){let e=t.moveToLineBoundary(r.jT.cursor(s),!1,!0).head;e>i&&(s=e)}d=new yn(i,s,this.gapSize(u,i,s,c))}a.push(d)};for(let e of this.viewportLines){if(e.length<s)continue;let t=Sn(e.from,e.to,this.stateDeco);if(t.total<s)continue;let r,o,a=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,s,l=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=a){let r=Cn(t,a),i=((this.visibleBottom-this.visibleTop)/2+l)/e.height;n=r-i,s=r+i}else n=(this.visibleTop-e.top-l)/e.height,s=(this.visibleBottom-e.top+l)/e.height;r=kn(t,n),o=kn(t,s)}else{let e,n,s=t.total*this.heightOracle.charWidth,l=i*this.heightOracle.charWidth;if(null!=a){let r=Cn(t,a),i=((this.pixelViewport.right-this.pixelViewport.left)/2+l)/s;e=r-i,n=r+i}else e=(this.pixelViewport.left-l)/s,n=(this.pixelViewport.right+l)/s;r=kn(t,e),o=kn(t,n)}r>e.from&&l(e.from,r,e,t),o<e.to&&l(o,e.to,e,t)}return a}gapSize(e,t,n,r){let i=Cn(r,n)-Cn(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){yn.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=he.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.Xs.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||En(this.heightMap.lineAt(e,sn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return En(this.heightMap.lineAt(this.scaler.fromDOM(e),sn.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(e){return En(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class xn{constructor(e,t){this.from=e,this.to=t}}function Sn(e,t,n){let i=[],o=e,s=0;return r.Xs.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),s+=e-o),o=t}},20),o<t&&(i.push({from:o,to:t}),s+=t-o),{total:s,ranges:i}}function kn({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function Cn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const On={toDOM:e=>e,fromDOM:e=>e,scale:1};class _n{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,sn.ByPos,e,0,0).top,s=t.lineAt(i,sn.ByPos,e,0,0).bottom;return r+=s-o,{from:n,to:i,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}}function En(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new on(e.from,e.length,n,r-n,Array.isArray(e.type)?e.type.map((e=>En(e,t))):e.type)}const An=r.r$.define({combine:e=>e.join(" ")}),Mn=r.r$.define({combine:e=>e.indexOf(!0)>-1}),Rn=i.V.newName(),Tn=i.V.newName(),Pn=i.V.newName(),Dn={"&light":"."+Tn,"&dark":"."+Pn};function jn(e,t,n){return new i.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Nn=jn("."+Rn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Dn);class In{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new ft(n,r)),i==n&&o==r||t.push(new ft(i,o))),t}(e),n=new ut(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.jT.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!p(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!p(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.jT.single(i,n)}}}function Ln(e,t){let n,{newSel:i}=t,o=e.state.selection.main;if(t.bounds){let{from:i,to:s}=t.bounds,a=o.from,l=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||G.android&&t.text.length<s-i)&&(a=o.to,l="end");let u=function(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;return"end"==r&&(n-=s+Math.max(0,o-Math.min(s,a))-o),s<o&&e.length<t.length?(o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o):a<o&&(o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o),{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,s,lt),t.text,a-i,l);u&&(G.chrome&&13==e.inputState.lastKeyCode&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==lt+lt&&u.toB--,n={from:i+u.from,to:i+u.toA,insert:r.xv.of(t.text.slice(u.from,u.toB).split(lt))})}else i&&(!e.hasFocus&&e.state.facet(Ne)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(G.mac||G.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}):G.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}),n){let t=e.state;if(G.ios&&e.inputState.flushIOSKey(e))return!0;if(G.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&M(e.contentDOM,"Enter",13)||n.from==o.from-1&&n.to==o.to&&0==n.insert.length&&M(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&M(e.contentDOM,"Delete",46)))return!0;let s,a=n.insert.toString();if(e.state.facet(Ae).some((t=>t(e,n.from,n.to,a))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,n.from>=o.from&&n.to<=o.to&&n.to-n.from>=(o.to-o.from)/3&&(!i||i.main.empty&&i.main.from==n.from+n.insert.length)&&e.inputState.composing<0){let r=o.from<n.from?t.sliceDoc(o.from,n.from):"",i=o.to>n.to?t.sliceDoc(n.to,o.to):"";s=t.replaceSelection(e.state.toText(r+n.insert.sliceString(0,void 0,e.state.lineBreak)+i))}else{let a=t.changes(n),l=i&&!t.selection.main.eq(i.main)&&i.main.to<=a.newLength?i.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&n.to<=o.to&&n.to>=o.to-10){let i=e.state.sliceDoc(n.from,n.to),u=pt(e)||e.state.doc.lineAt(o.head),c=o.to-n.to,f=o.to-o.from;s=t.changeByRange((s=>{if(s.from==o.from&&s.to==o.to)return{changes:a,range:l||s.map(a)};let h=s.to-c,d=h-i.length;if(s.to-s.from!=f||e.state.sliceDoc(d,h)!=i||u&&s.to>=u.from&&s.from<=u.to)return{range:s};let p=t.changes({from:d,to:h,insert:n.insert}),m=s.to-o.to;return{changes:p,range:l?r.jT.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):s.map(p)}}))}else s={changes:a,selection:l&&t.selection.replaceRange(l)}}let l="input.type";return e.composing&&(l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(s,{scrollIntoView:!0,userEvent:l}),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const Fn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Bn=G.ie&&G.ie_version<=11;class zn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new C,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(G.ie&&G.ie_version<=11||G.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Bn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver((()=>this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Ne)?n.root.activeElement!=this.dom:!m(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(G.ie&&G.ie_version<=11||G.android&&G.chrome)&&!n.state.selection.main.empty&&r.focusNode&&v(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=G.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return v(a.node,a.offset,o,s)&&([r,i,o,s]=[o,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}}(this.view)||d(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=m(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(;;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=w(n))}else{if(n==e)return!0;r=y(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Fn),Bn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Bn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),!this.flush()&&e.force&&M(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&m(this.dom,this.selectionRange);return e<0&&!r?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new In(this.view,e,t,n))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,r=Ln(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=Un(t,e.previousSibling||e.target.previousSibling,-1),r=Un(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Un(e,t,n){for(;t;){let r=D.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Vn{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new wn(e.state||r.yy.create(e)),this.plugins=this.state.facet(Le).map((e=>new Be(e)));for(let e of this.plugins)e.update(this);this.observer=new zn(this),this.inputState=new Mt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new ht(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof r.YW?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,o=this.state;for(let t of e){if(t.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed)return void(this.viewState.state=o);let s=this.hasFocus,a=0,l=null;e.some((e=>e.annotation(Yt)))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=Zt(o,s),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);t=Ke.create(this,o,e),t.flags|=a;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(f&&(f=f.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;f=new Pe(e.empty?e:r.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(De)&&(f=e.value)}this.viewState.update(t,f),this.bidiCache=$n.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet($e)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(An)!=t.state.facet(An)&&(this.viewState.mustMeasureContent=!0),(n||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Ee))e(t);(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Ln(this,c)&&u.force&&M(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new wn(e),this.plugins=e.facet(Le).map((e=>new Be(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new ht(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Le),n=e.state.facet(Le);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Be(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:n,scrollTop:r,clientHeight:i}=this.scrollDOM,o=r>n-i-4?n:r;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,r=this.viewState.lineBlockAtHeight(o),i=this.viewState.measure(this);if(!i&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&i||([this.measureRequests,s]=[s,this.measureRequests]);let a=s.map((e=>{try{return e.read(this)}catch(e){return je(this.state,e),Hn}})),l=Ke.create(this,this.state,[]),u=!1,c=!1;l.flags|=i,t?t.flags|=i:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),u=this.docView.update(l));for(let e=0;e<s.length;e++)if(a[e]!=Hn)try{let t=s[e];t.write&&t.write(a[e],this)}catch(e){je(this.state,e)}if(this.viewState.editorHeight)if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,c=!0;else{let e=this.viewState.lineBlockAt(r.from).top-r.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,c=!0)}if(u&&this.docView.updateSelection(!0),this.viewport.from==n.from&&this.viewport.to==n.to&&!c&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Ee))e(t)}get themeClasses(){return Rn+" "+(this.state.facet(Mn)?Pn:Tn)+" "+this.state.facet(An)}updateAttrs(){let e=qn(this,ze,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ne)?"true":"false",class:"cm-content",style:`${G.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),qn(this,Ue,t);let n=this.observer.ignore((()=>{let n=ue(this.contentDOM,this.contentAttrs,t),r=ue(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(Vn.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet($e),i.V.mount(this.root,this.styleModules.concat(Nn).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return At(this,e,Et(this,e,t,n))}moveByGroup(e,t){return At(this,e,Et(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.D0.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let o=e.state.doc.lineAt(t.head),s=i&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(i==Qe.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=a)return r.jT.cursor(a,n?-1:1)}let a=ye.find(e.docView,t.head),l=a?n?a.posAtEnd:a.posAtStart:n?o.to:o.from;return r.jT.cursor(l,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return At(this,e,function(e,t,n,i){let o=t.head,s=n?1:-1;if(o==(n?e.state.doc.length:0))return r.jT.cursor(o,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o),f=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=s<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),a=(s<0?t.top:t.bottom)+f}let h=u.left+l,d=null!=i?i:e.defaultLineHeight>>1;for(let n=0;;n+=10){let i=a+(d+n)*s,c=Ot(e,{x:h,y:i},!1,s);if(i<u.top||i>u.bottom||(s<0?c<o:c>o))return r.jT.cursor(c,t.assoc,void 0,l)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Ot(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return S(n,i[rt.find(i,e-r.from,-1,t)].dir==Qe.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Re)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Wn)return ot(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=function(e,t){let n=e.length,r=t==Ge?1:2,i=t==Ge?2:1;if(!e||1==r&&!nt.test(e))return ot(n);for(let t=0,i=r,s=r;t<n;t++){let n=(o=e.charCodeAt(t))<=247?Ye[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?Ze[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203?256:64336<=o&&o<=65023?4:8204==o?256:1;512==n?n=i:8==n&&4==s&&(n=16),it[t]=4==n?2:n,7&n&&(s=n),i=n}var o;for(let e=0,t=r,i=r;e<n;e++){let r=it[e];if(128==r)e<n-1&&t==it[e+1]&&24&t?r=it[e]=t:it[e]=256;else if(64==r){let r=e+1;for(;r<n&&64==it[r];)r++;let o=e&&8==t||r<n&&8==it[r]?1==i?1:8:256;for(let t=e;t<r;t++)it[t]=o;e=r-1}else 8==r&&1==i&&(it[e]=1);t=r,7&r&&(i=r)}for(let t,o,s,a=0,l=0,u=0;a<n;a++)if(o=et[t=e.charCodeAt(a)])if(o<0){for(let e=l-3;e>=0;e-=3)if(tt[e+1]==-o){let t=tt[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(it[a]=it[tt[e]]=n),l=e;break}}else{if(189==tt.length)break;tt[l++]=a,tt[l++]=t,tt[l++]=u}else if(2==(s=it[a])||1==s){let e=s==r;u=e?0:1;for(let t=l-3;t>=0;t-=3){let n=tt[t+2];if(2&n)break;if(e)tt[t+2]|=2;else{if(4&n)break;tt[t+2]|=4}}}for(let e=0;e<n;e++)if(256==it[e]){let t=e+1;for(;t<n&&256==it[t];)t++;let i=1==(e?it[e-1]:r),o=i==(1==(t<n?it[t]:r))?i?1:2:r;for(let n=e;n<t;n++)it[n]=o;e=t-1}let s=[];if(1==r)for(let e=0;e<n;){let t=e,r=1!=it[e++];for(;e<n&&r==(1!=it[e]);)e++;if(r)for(let n=e;n>t;){let e=n,r=2!=it[--n];for(;n>t&&r==(2!=it[n-1]);)n--;s.push(new rt(n,e,r?2:1))}else s.push(new rt(t,e,0))}else for(let e=0;e<n;){let t=e,r=2==it[e++];for(;e<n&&r==(2==it[e]);)e++;s.push(new rt(t,e,r?1:2))}return s}(e.text,t);return this.bidiCache.push(new $n(e.from,e.to,t,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||G.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{E(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return De.of(new Pe("number"==typeof e?r.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return Fe.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=i.V.newName(),r=[An.of(n),$e.of(jn(`.${n}`,e))];return t&&t.dark&&r.push(Mn.of(!0)),r}static baseTheme(e){return r.Wl.lowest($e.of(jn("."+Rn,e,Dn)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&D.get(n)||D.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Vn.styleModule=$e,Vn.inputHandler=Ae,Vn.focusChangeEffect=Me,Vn.perLineTextDirection=Re,Vn.exceptionSink=_e,Vn.updateListener=Ee,Vn.editable=Ne,Vn.mouseSelectionStyle=Oe,Vn.dragMovesSelection=Ce,Vn.clickAddsSelectionRange=ke,Vn.decorations=Ve,Vn.atomicRanges=We,Vn.scrollMargins=He,Vn.darkTheme=Mn,Vn.contentAttributes=Ue,Vn.editorAttributes=ze,Vn.lineWrapping=Vn.contentAttributes.of({class:"cm-lineWrapping"}),Vn.announce=r.Py.define();const Wn=4096,Hn={};class $n{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:Qe.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new $n(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return n}}function qn(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&ae(o,n)}return n}const Kn=G.mac?"mac":G.windows?"win":G.linux?"linux":"key";function Qn(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const Gn=r.Wl.default(Vn.domEventHandlers({keydown:(e,t)=>nr(Yn(t.state),e,t,"editor")})),Jn=r.r$.define({enables:Gn}),Xn=new WeakMap;function Yn(e){let t=e.facet(Jn),n=Xn.get(t);return n||Xn.set(t,n=function(e,t=Kn){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s)=>{var a,l;let u=n[e]||(n[e]=Object.create(null)),c=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let e=0;e<n.length-1;++e){const a=n[e];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?s=!0:i=!0}}return r&&(a="Alt-"+a),i&&(a="Ctrl-"+a),s&&(a="Meta-"+a),o&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<c.length;t++){let n=c.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,run:[t=>{let r=er={view:t,prefix:n,scope:e};return setTimeout((()=>{er==r&&(er=null)}),tr),!0}]})}let f=c.join(" ");i(f,!1);let h=u[f]||(u[f]={preventDefault:!1,run:(null===(l=null===(a=u._any)||void 0===a?void 0:a.run)||void 0===l?void 0:l.slice())||[]});o&&h.run.push(o),s&&(h.preventDefault=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function Zn(e,t,n){return nr(Yn(e.state),t,e,n)}let er=null;const tr=4e3;function nr(e,t,n,i){let a=function(e){var t=!(c&&(e.ctrlKey||e.altKey||e.metaKey)||u&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),l=(0,r.gm)(a,0),f=(0,r.nZ)(l)==a.length&&" "!=a,h="",d=!1;er&&er.view==n&&er.scope==i&&(h=er.prefix+" ",(d=Pt.indexOf(t.keyCode)<0)&&(er=null));let p,m,g=new Set,v=e=>{if(e){for(let r of e.run)if(!g.has(r)&&(g.add(r),r(n,t)))return!0;e.preventDefault&&(d=!0)}return!1},y=e[i];if(y){if(v(y[h+Qn(a,t,!f)]))return!0;if(f&&(t.altKey||t.metaKey||t.ctrlKey)&&!(G.windows&&t.ctrlKey&&t.altKey)&&(p=o[t.keyCode])&&p!=a){if(v(y[h+Qn(p,t,!0)]))return!0;if(t.shiftKey&&(m=s[t.keyCode])!=a&&m!=p&&v(y[h+Qn(m,t,!1)]))return!0}else if(f&&t.shiftKey&&v(y[h+Qn(a,t,!0)]))return!0;if(v(y._any))return!0}return d}class rr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=ir(e);return[new rr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Qe.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=ir(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=a.right-(c?parseInt(c.paddingRight):0),d=sr(e,r),p=sr(e,i),m=d.type==fe.Text?d:null,g=p.type==fe.Text?p:null;if(e.lineWrapping&&(m&&(m=or(e,r,m)),g&&(g=or(e,i,g))),m&&g&&m.from==g.from)return y(b(n.from,n.to,m));{let t=m?b(n.from,null,m):w(d,!1),r=g?b(null,n.to,g):w(p,!0),i=[];return(m||d).to<(g||p).from-1?i.push(v(f,t.bottom,h,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==fe.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),y(t).concat(i).concat(y(r))}function v(e,n,r,i){return new rr(t,e-l.left,n-l.top-.01,r-e,i-n+.01)}function y({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(v(n[i],e,n[i+1],t));return r}function b(t,n,r){let i=1e9,s=-1e9,a=[];function l(t,n,l,u,c){let d=e.coordsAtPos(t,t==r.to?-2:2),p=e.coordsAtPos(l,l==r.from?2:-2);i=Math.min(d.top,p.top,i),s=Math.max(d.bottom,p.bottom,s),c==Qe.LTR?a.push(o&&n?f:d.left,o&&u?h:p.right):a.push(!o&&u?f:p.left,!o&&n?h:d.right)}let u=null!=t?t:r.from,c=null!=n?n:r.to;for(let r of e.visibleRanges)if(r.to>u&&r.from<c)for(let i=Math.max(r.from,u),o=Math.min(r.to,c);;){let r=e.state.doc.lineAt(i);for(let s of e.bidiSpans(r)){let e=s.from+r.from,a=s.to+r.from;if(e>=o)break;a>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(a,o),null==n&&a>=c,s.dir)}if(i=r.to+1,i>=o)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function w(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function ir(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Qe.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function or(e,t,n){let i=r.jT.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:fe.Text}}function sr(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==fe.Text))return e;return n}class ar{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(lr)!=e.state.facet(lr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&e.view.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(lr);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const lr=r.r$.define();function ur(e){return[Fe.define((t=>new ar(t,e))),lr.of(e)]}const cr=!G.ios,fr=r.r$.define({combine:e=>(0,r.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function hr(e={}){return[fr.of(e),pr,gr,yr,Te.of(!0)]}function dr(e){return e.startState.facet(fr)!=e.state.facet(fr)}const pr=ur({above:!0,markers(e){let{state:t}=e,n=t.facet(fr),i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty?!s||cr:n.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let r of rr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=dr(e);return n&&mr(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){mr(t.state,e)},class:"cm-cursorLayer"});function mr(e,t){t.style.animationDuration=e.facet(fr).cursorBlinkRate+"ms"}const gr=ur({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:rr.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||dr(e),class:"cm-selectionLayer"}),vr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cr&&(vr[".cm-line"].caretColor="transparent !important");const yr=r.Wl.highest(Vn.theme(vr)),br=r.Py.define({map:(e,t)=>null==e?null:t.mapPos(e)}),wr=r.QQ.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(br)?t.value:e),e))}),xr=Fe.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(wr);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(wr)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let e=this.view.state.field(wr),t=null!=e&&this.view.coordsAtPos(e);if(!t)return null;let n=this.view.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+this.view.scrollDOM.scrollLeft,top:t.top-n.top+this.view.scrollDOM.scrollTop,height:t.bottom-t.top}}drawCursor(e){this.cursor&&(e?(this.cursor.style.left=e.left+"px",this.cursor.style.top=e.top+"px",this.cursor.style.height=e.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(wr)!=e&&this.view.dispatch({effects:br.of(e)})}},{eventHandlers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Sr(){return[wr,xr]}function kr(e,t,n,r,i){t.lastIndex=0;for(let o,s=e.iterRange(n,r),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)i(a+o.index,o)}class Cr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.f_,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))kr(e.state.doc,this.regexp,t,r,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,s)=>{s>e.view.viewport.from&&o<e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(s,r))})),e.viewportChanged||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>o){let n=e.state.doc.lineAt(o),r=n.to<s?e.state.doc.lineAt(s):n,a=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;s<r.to;s++)if(this.boundary.test(r.text[s-r.from])){l=s;break}}let u,c=[],f=(e,t,n)=>c.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(u=this.regexp.exec(n.text))&&u.index<l-n.from;)this.addMatch(u,e,u.index+n.from,f);else kr(e.state.doc,this.regexp,a,l,((t,n)=>this.addMatch(n,e,t,f)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:c})}}return t}}const Or=null!=/x/.unicode?"gu":"g",_r=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",Or),Er={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ar=null;const Mr=r.r$.define({combine(e){let t=(0,r.BO)(e,{render:null,specialChars:_r,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Ar&&"undefined"!=typeof document&&document.body){let t=document.body.style;Ar=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Ar||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Or)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Or)),t}});function Rr(e={}){return[Mr.of(e),Tr||(Tr=Fe.fromClass(class{constructor(e){this.view=e,this.decorations=he.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Mr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Cr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,s=(0,r.gm)(t[0],0);if(9==s){let e=o.lineAt(i),t=n.state.tabSize,s=(0,r.IS)(e.text,t,i-e.from);return he.replace({widget:new Dr((t-s%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[s]||(this.decorationCache[s]=he.replace({widget:new Pr(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Mr);e.startState.facet(Mr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Tr=null;class Pr extends ce{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Er[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Dr extends ce{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function jr(){return Ir}const Nr=he.line({class:"cm-activeLine"}),Ir=Fe.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Nr.range(i.from)),t=i.from)}return he.set(n)}},{decorations:e=>e.decorations});class Lr extends ce{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}ignoreEvent(){return!1}}function Fr(e){return Fe.fromClass(class{constructor(t){this.view=t,this.placeholder=he.set([he.widget({widget:new Lr(e),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?he.none:this.placeholder}},{decorations:e=>e.decorations})}const Br=2e3;function zr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,s=o>Br?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.IS)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:s,off:o}}function Ur(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Vn.mouseSelectionStyle.of(((e,n)=>t(n)?function(e,t){let n=zr(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,s){let a=zr(e,t);if(!a)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),s=[];if(t.off>Br||n.off>Br||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&s.push(r.jT.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.Gz)(n.text,a,e.tabSize,!0);if(i<0)s.push(r.jT.cursor(n.to));else{let t=(0,r.Gz)(n.text,l,e.tabSize);s.push(r.jT.range(n.from+i,n.from+t))}}}return s}(e.state,n,a);return l.length?s?r.jT.create(l.concat(i.ranges)):r.jT.create(l):i}}:null}(e,n):null))}const Vr={Alt:[18,e=>e.altKey],Control:[17,e=>e.ctrlKey],Shift:[16,e=>e.shiftKey],Meta:[91,e=>e.metaKey]},Wr={style:"cursor: crosshair"};function Hr(e={}){let[t,n]=Vr[e.key||"Alt"],r=Fe.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventHandlers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Vn.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?Wr:null}))]}const $r="-10000px";class qr{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),r=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[];for(let t=0;t<r.length;t++){let n=r[t],o=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(o=e)}if(o<0)i[t]=this.createTooltipView(n);else{let n=i[t]=this.tooltipViews[o];n.update&&n.update(e)}}}for(let e of this.tooltipViews)i.indexOf(e)<0&&(e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e));return this.input=n,this.tooltips=r,this.tooltipViews=i,!0}}function Kr(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Qr=r.r$.define({combine:e=>{var t,n,r;return{position:G.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Kr}}}),Gr=new WeakMap,Jr=Fe.fromClass(class{constructor(e){this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Qr);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new qr(e,Zr,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(Qr);if(r.position!=this.position){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=$r,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Qr).tooltipSpace(this.view)}}writeMeasure(e){var t;let{editor:n,space:r}=e,i=[];for(let o=0;o<this.manager.tooltips.length;o++){let s=this.manager.tooltips[o],a=this.manager.tooltipViews[o],{dom:l}=a,u=e.pos[o],c=e.size[o];if(!u||u.bottom<=Math.max(n.top,r.top)||u.top>=Math.min(n.bottom,r.bottom)||u.right<Math.max(n.left,r.left)-.1||u.left>Math.min(n.right,r.right)+.1){l.style.top=$r;continue}let f=s.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,h=f?7:0,d=c.right-c.left,p=null!==(t=Gr.get(a))&&void 0!==t?t:c.bottom-c.top,m=a.offset||Yr,g=this.view.textDirection==Qe.LTR,v=c.width>r.right-r.left?g?r.left:r.right-c.width:g?Math.min(u.left-(f?14:0)+m.x,r.right-d):Math.max(r.left,u.left-d+(f?14:0)-m.x),y=!!s.above;!s.strictSide&&(y?u.top-(c.bottom-c.top)-m.y<r.top:u.bottom+(c.bottom-c.top)+m.y>r.bottom)&&y==r.bottom-u.bottom>u.top-r.top&&(y=!y);let b=(y?u.top-r.top:r.bottom-u.bottom)-h;if(b<p&&!1!==a.resize){if(b<this.view.defaultLineHeight){l.style.top=$r;continue}Gr.set(a,p),l.style.height=(p=b)+"px"}else l.style.height&&(l.style.height="");let w=y?u.top-p-h-m.y:u.bottom+h+m.y,x=v+d;if(!0!==a.overlap)for(let e of i)e.left<x&&e.right>v&&e.top<w+p&&e.bottom>w&&(w=y?e.top-p-2-h:e.bottom+h+2);"absolute"==this.position?(l.style.top=w-e.parent.top+"px",l.style.left=v-e.parent.left+"px"):(l.style.top=w+"px",l.style.left=v+"px"),f&&(f.style.left=u.left+(g?m.x:-m.x)-(v+14-7)+"px"),!0!==a.overlap&&i.push({left:v,top:w,right:x,bottom:w+p}),l.classList.toggle("cm-tooltip-above",y),l.classList.toggle("cm-tooltip-below",!y),a.positioned&&a.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=$r}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),Xr=Vn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Yr={x:0,y:0},Zr=r.r$.define({enables:[Jr,Xr]}),ei=r.r$.define();class ti{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new qr(e,ei,(e=>this.createHostedView(e)))}static create(e){return new ti(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}}const ni=Zr.compute([ei],(e=>{let t=e.facet(ei).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:ti.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class ri{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{lastMove:e}=this,t=this.view.contentDOM.contains(e.target)?this.view.posAtCoords(e):null;if(null==t)return;let n=this.view.coordsAtPos(t);if(null==n||e.y<n.top||e.y>n.bottom||e.x<n.left-this.view.defaultCharacterWidth||e.x>n.right+this.view.defaultCharacterWidth)return;let r=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find((e=>e.from<=t&&e.to>=t)),i=r&&r.dir==Qe.RTL?-1:1,o=this.source(this.view,t,e.x<n.left?-i:i);if(null==o?void 0:o.then){let e=this.pending={pos:t};o.then((t=>{this.pending==e&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))}),(e=>je(this.view.state,e,"hover tooltip")))}else o&&this.view.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!ii(this.lastMove.target)||this.pending){let{pos:r}=n||this.pending,i=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords(this.lastMove)==r:function(e,t,n,r,i,o){let s=document.createRange(),a=e.domAtPos(t),l=e.domAtPos(n);s.setEnd(l.node,l.offset),s.setStart(a.node,a.offset);let u=s.getClientRects();s.detach();for(let e=0;e<u.length;e++){let t=u[e];if(Math.max(t.top-i,i-t.bottom,t.left-r,r-t.right)<=6)return!0}return!1}(this.view,r,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!ii(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function ii(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function oi(e,t={}){let n=r.Py.define(),i=r.QQ.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,r.gc.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(ai)&&(e=null);return e},provide:e=>ei.from(e)});return[i,Fe.define((r=>new ri(r,e,i,n,t.hoverTime||300))),ni]}function si(e,t){let n=e.plugin(Jr);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const ai=r.Py.define(),li=r.r$.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function ui(e,t){let n=e.plugin(ci),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const ci=Fe.fromClass(class{constructor(e){this.input=e.state.facet(di),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(li);this.top=new fi(e,!0,t.topContainer),this.bottom=new fi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(li);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new fi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new fi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(di);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Vn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class fi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=hi(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=hi(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function hi(e){let t=e.nextSibling;return e.remove(),t}const di=r.r$.define({enables:ci});class pi extends r.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}pi.prototype.elementClass="",pi.prototype.toDOM=void 0,pi.prototype.mapMode=r.gc.TrackBefore,pi.prototype.startSide=pi.prototype.endSide=-1,pi.prototype.point=!0;const mi=r.r$.define(),gi={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.Xs.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},vi=r.r$.define();function yi(e){return[wi(),vi.of(Object.assign(Object.assign({},gi),e))]}const bi=r.r$.define({combine:e=>e.some((e=>e))});function wi(e){let t=[xi];return e&&!1===e.fixed&&t.push(bi.of(!0)),t}const xi=Fe.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(vi).map((t=>new Oi(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(bi),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(bi)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.Xs.iter(this.view.state.facet(mi),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Ci(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==fe.Text){t=n;break}}else t=e.type==fe.Text?e:void 0;if(t){i.length&&(i=[]),ki(n,i,e.from);for(let e of o)e.line(this.view,t,i)}}for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(vi),n=e.state.facet(vi),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.Xs.eq(e.startState.facet(mi),e.state.facet(mi),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new Oi(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Vn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Qe.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function Si(e){return Array.isArray(e)?e:[e]}function ki(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Ci{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.Xs.iter(e.markers,t.from)}line(e,t,n){let r=[];ki(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;if(0==r.length&&!o.config.renderEmptyElements)return;let s=t.top-this.height;if(this.i==o.elements.length){let n=new _i(e,t.height,s,r);o.elements.push(n),o.dom.appendChild(n.dom)}else o.elements[this.i].update(e,t.height,s,r);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Oi{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,s,r)&&r.preventDefault()}));this.markers=Si(t.markers(e)),t.initialSpacer&&(this.spacer=new _i(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Si(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.Xs.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class _i{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let s=o,a=i<t.length?t[i++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!a)break;a.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(a.toDOM(e),r)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const Ei=r.r$.define(),Ai=r.r$.define({combine:e=>(0,r.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class Mi extends pi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Ri(e,t){return e.state.facet(Ai).formatNumber(t,e.state)}const Ti=vi.compute([Ai],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Ei),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Mi(Ri(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(Ai)!=e.state.facet(Ai),initialSpacer:e=>new Mi(Ri(e,Di(e.state.doc.lines))),updateSpacer(e,t){let n=Ri(t.view,Di(t.view.state.doc.lines));return n==e.number?e:new Mi(n)},domEventHandlers:e.facet(Ai).domEventHandlers})));function Pi(e={}){return[Ai.of(e),wi(),Ti]}function Di(e){let t=9;for(;t<e;)t=10*t+9;return t}const ji=new class extends pi{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Ni=mi.compute(["selection"],(e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(ji.range(i)))}return r.Xs.of(t)}));function Ii(){return Ni}},5761:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(3989),i=n(2161);class o extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const s=new o},9499:(e,t,n)=>{"use strict";function r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,a,l;const u=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(s=r.meta)?void 0:s.fetchMore,f=null==c?void 0:c.pageParam,h="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(l=e.state.data)?void 0:l.pageParams)||[];let g=m,v=!1;const y=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),b=(e,t,n,r)=>(g=r?[t,...g]:[...g,t],r?[n,...e]:[...e,n]),w=(t,n,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?v=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{v=!0})),e.signal}});const a=y(o);return Promise.resolve(a).then((e=>b(t,r,e,i)))};let x;if(p.length)if(h){const t=void 0!==f,n=t?f:i(e.options,p);x=w(p,t,n)}else if(d){const t=void 0!==f,n=t?f:o(e.options,p);x=w(p,t,n,!0)}else{g=[];const t=void 0===e.options.getNextPageParam;x=u&&p[0]&&!u(p[0],0,p)?Promise.resolve(b([],m[0],p[0])):w([],t,m[0]);for(let n=1;n<p.length;n++)x=x.then((r=>{if(!u||!p[n]||u(p[n],n,p)){const o=t?m[n]:i(e.options,r);return w(r,t,o)}return Promise.resolve(b(r,m[n],p[n]))}))}else x=w([]);return x.then((e=>({pages:e,pageParams:g})))}}}}function i(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function o(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function s(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=i(e,t);return null!=n&&!1!==n}}function a(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=o(e,t);return null!=n&&!1!==n}}n.d(t,{Gm:()=>r,Qy:()=>s,ZF:()=>a})},819:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r=console},9886:(e,t,n)=>{"use strict";n.d(t,{R:()=>l,m:()=>a});var r=n(819),i=n(81),o=n(9643),s=n(2379);class a extends o.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r._,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=(0,s.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,a,l,u,c;if(!t){var f,h,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(f=(h=this.mutationCache.config).onMutate)?void 0:f.call(h,this.state.variables,this));const e=await(null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const s=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,s,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,s,this.state.variables,this.state.context)),await(null==(a=(l=this.mutationCache.config).onSettled)?void 0:a.call(l,s,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,s,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:s}),s}catch(e){try{var m,g,v,y,b,w,x,S;throw await(null==(m=(g=this.mutationCache.config).onError)?void 0:m.call(g,e,this.state.variables,this.state.context,this)),await(null==(v=(y=this.options).onError)?void 0:v.call(y,e,this.state.variables,this.state.context)),await(null==(b=(w=this.mutationCache.config).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(S=this.options).onSettled)?void 0:x.call(S,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,s.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),i.V.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},81:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(2161);const i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()};const o=i=>{t?e.push(i):(0,r.A4)((()=>{n(i)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&(0,r.A4)((()=>{i((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e}}}()},6474:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(3989),i=n(2161);class o extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){const t=()=>e();return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach((e=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const s=new o},948:(e,t,n)=>{"use strict";n.d(t,{S:()=>g});var r=n(2161),i=n(819),o=n(81),s=n(2379),a=n(9643);class l extends a.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||i._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,r.oE)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const a=(0,r.G9)(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(l);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn")};var f;u(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=c.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(f=c.fetchOptions)?void 0:f.meta});const h=e=>{var t,n,r,i;(0,s.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,s.DV)(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,s.Mz)({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,i;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):h(new Error("undefined"))},onError:h,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,s.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return(0,s.DV)(i)&&i.revert&&this.revertState?{...this.revertState}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),o.V.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}var u=n(3989);class c extends u.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const o=t.queryKey,s=null!=(i=t.queryHash)?i:(0,r.Rm)(o,t);let a=this.get(s);return a||(a=new l({cache:this,logger:e.getLogger(),queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){o.V.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,r.I6)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,r._x)(n,e)))}findAll(e,t){const[n]=(0,r.I6)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,r._x)(n,e))):this.queries}notify(e){o.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){o.V.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){o.V.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}var f=n(9886);class h extends u.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new f.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){o.V.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,r.X7)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,r.X7)(e,t)))}notify(e){o.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return o.V.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(r.ZT)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}var d=n(5761),p=n(6474),m=n(9499);class g{constructor(e={}){this.queryCache=e.queryCache||new c,this.mutationCache=e.mutationCache||new h,this.logger=e.logger||i._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=d.j.subscribe((()=>{d.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=p.N.subscribe((()=>{p.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=(0,r.I6)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const i=(0,r._v)(e,t,n),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const i=this.queryCache.find(e),o=null==i?void 0:i.state.data,s=(0,r.SE)(t,o);if(void 0===s)return;const a=(0,r._v)(e),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,r.I6)(e,t),i=this.queryCache;o.V.batch((()=>{i.findAll(n).forEach((e=>{i.remove(e)}))}))}resetQueries(e,t,n){const[i,s]=(0,r.I6)(e,t,n),a=this.queryCache,l={type:"active",...i};return o.V.batch((()=>(a.findAll(i).forEach((e=>{e.reset()})),this.refetchQueries(l,s))))}cancelQueries(e,t,n){const[i,s={}]=(0,r.I6)(e,t,n);void 0===s.revert&&(s.revert=!0);const a=o.V.batch((()=>this.queryCache.findAll(i).map((e=>e.cancel(s)))));return Promise.all(a).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t,n){const[i,s]=(0,r.I6)(e,t,n);return o.V.batch((()=>{var e,t;if(this.queryCache.findAll(i).forEach((e=>{e.invalidate()})),"none"===i.refetchType)return Promise.resolve();const n={...i,type:null!=(e=null!=(t=i.refetchType)?t:i.type)?e:"active"};return this.refetchQueries(n,s)}))}refetchQueries(e,t,n){const[i,s]=(0,r.I6)(e,t,n),a=o.V.batch((()=>this.queryCache.findAll(i).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:i.refetchPage}})}))));let l=Promise.all(a).then(r.ZT);return null!=s&&s.throwOnError||(l=l.catch(r.ZT)),l}fetchQuery(e,t,n){const i=(0,r._v)(e,t,n),o=this.defaultQueryOptions(i);void 0===o.retry&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e,t,n){const i=(0,r._v)(e,t,n);return i.behavior=(0,m.Gm)(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>(0,r.yF)(e)===(0,r.yF)(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>(0,r.to)(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>(0,r.yF)(e)===(0,r.yF)(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>(0,r.to)(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},2924:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(2161),i=n(81),o=n(5761),s=n(3989),a=n(2379);class l extends s.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.length&&(this.currentQuery.addObserver(this),u(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,r.VS)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&f(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===i&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const s=this.computeRefetchInterval();!o||this.currentQuery===i&&this.options.enabled===n.enabled&&s===this.currentRefetchInterval||this.updateRefetchInterval(s)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.sk||this.currentResult.isStale||!(0,r.PN)(this.options.staleTime))return;const e=(0,r.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.sk&&!1!==this.options.enabled&&(0,r.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==n,d=c?e.state:this.currentQueryInitialState,p=c?this.currentResult:this.previousQueryResult,{state:m}=e;let g,{dataUpdatedAt:v,error:y,errorUpdatedAt:b,fetchStatus:w,status:x}=m,S=!1,k=!1;if(t._optimisticResults){const r=this.hasListeners(),o=!r&&u(e,t),s=r&&f(e,n,t,i);(o||s)&&(w=(0,a.Kw)(e.options.networkMode)?"fetching":"paused",v||(x="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!m.dataUpdatedAt&&null!=p&&p.isSuccess&&"error"!==x)g=p.data,v=p.dataUpdatedAt,x=p.status,S=!0;else if(t.select&&void 0!==m.data)if(o&&m.data===(null==s?void 0:s.data)&&t.select===this.selectFn)g=this.selectResult;else try{this.selectFn=t.select,g=t.select(m.data),g=(0,r.oE)(null==o?void 0:o.data,g,t),this.selectResult=g,this.selectError=null}catch(e){this.selectError=e}else g=m.data;if(void 0!==t.placeholderData&&void 0===g&&"loading"===x){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==l?void 0:l.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(x="success",g=(0,r.oE)(null==o?void 0:o.data,e,t),k=!0)}this.selectError&&(y=this.selectError,g=this.selectResult,b=Date.now(),x="error");const C="fetching"===w,O="loading"===x,_="error"===x;return{status:x,fetchStatus:w,isLoading:O,isSuccess:"success"===x,isError:_,isInitialLoading:O&&C,data:g,dataUpdatedAt:v,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:C,isRefetching:C&&!O,isLoadingError:_&&0===m.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:k,isPreviousData:S,isRefetchError:_&&0!==m.dataUpdatedAt,isStale:h(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,r.VS)(n,t))return;this.currentResult=n;const i={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options;if("all"===e||!e&&!this.trackedProps.size)return!0;const n=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some((e=>{const r=e;return this.currentResult[r]!==t[r]&&n.has(r)}))})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,a.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){i.V.batch((()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var o,s,a,l;null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(a=(l=this.options).onSettled)||a.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((e=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function u(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&h(e,t)}return!1}function f(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&h(e,n)}function h(e,t){return e.isStaleByTime(t.staleTime)}},9643:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(2161);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},2379:(e,t,n)=>{"use strict";n.d(t,{DV:()=>u,Kw:()=>a,Mz:()=>c});var r=n(5761),i=n(6474),o=n(2161);function s(e){return Math.min(1e3*2**e,3e4)}function a(e){return"online"!==(null!=e?e:"online")||i.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let t,n,u,c=!1,f=0,h=!1;const d=new Promise(((e,t)=>{n=e,u=t})),p=()=>!r.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),m=r=>{h||(h=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},g=n=>{h||(h=!0,null==e.onError||e.onError(n),null==t||t(),u(n))},v=()=>new Promise((n=>{t=e=>{const t=h||!p();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,h||null==e.onContinue||e.onContinue()})),y=()=>{if(h)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch((t=>{var n,r;if(h)return;const i=null!=(n=e.retry)?n:3,a=null!=(r=e.retryDelay)?r:s,l="function"==typeof a?a(f,t):a,u=!0===i||"number"==typeof i&&f<i||"function"==typeof i&&i(f,t);!c&&u?(f++,null==e.onFail||e.onFail(f,t),(0,o.Gh)(l).then((()=>{if(p())return v()})).then((()=>{c?g(t):y()}))):g(t)}))};return a(e.networkMode)?y():v().then(y),{promise:d,cancel:t=>{h||(g(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?d:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},3989:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});class r{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.push(e),this.onSubscribe(),()=>{this.listeners=this.listeners.filter((t=>t!==e)),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}},2161:(e,t,n)=>{"use strict";n.d(t,{A4:()=>C,G9:()=>O,Gh:()=>k,I6:()=>c,Kp:()=>a,PN:()=>s,Rm:()=>d,SE:()=>o,VS:()=>y,X7:()=>h,ZT:()=>i,_v:()=>l,_x:()=>f,lV:()=>u,oE:()=>_,sk:()=>r,to:()=>m,yF:()=>p});const r="undefined"==typeof window||"Deno"in window;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return S(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,n){return S(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,n){return S(e)?[{...t,queryKey:e},n]:[e||{},t]}function f(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(S(s))if(r){if(t.queryHash!==d(s,t.options))return!1}else if(!m(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||void 0!==i&&i!==t.state.fetchStatus||o&&!o(t))}function h(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(S(o)){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||i&&!i(t))}function d(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){return JSON.stringify(e,((e,t)=>w(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function m(e,t){return g(e,t)}function g(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!g(e[n],t[n])))}function v(e,t){if(e===t)return e;const n=b(e)&&b(t);if(n||w(e)&&w(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let r=0;r<o;r++){const o=n?r:i[r];s[o]=v(e[o],t[o]),s[o]===e[o]&&a++}return r===o&&a===r?e:s}return t}function y(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!x(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!x(n)&&!!n.hasOwnProperty("isPrototypeOf")}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return Array.isArray(e)}function k(e){return new Promise((t=>{setTimeout(t,e)}))}function C(e){k(0).then(e)}function O(){if("function"==typeof AbortController)return new AbortController}function _(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?v(e,t):t}},5945:(e,t,n)=>{"use strict";n.d(t,{NL:()=>a,aH:()=>l});var r=n(7294);const i=r.createContext(void 0),o=r.createContext(!1);function s(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}const a=({context:e}={})=>{const t=r.useContext(s(e,r.useContext(o)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:n,contextSharing:i=!1})=>{r.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const a=s(n,i);return r.createElement(o.Provider,{value:!n&&i},r.createElement(a.Provider,{value:e},t))}},5079:(e,t,n)=>{"use strict";n.d(t,{r:()=>y});var r=n(7294),i=n(464),o=n(81);const s=r.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),a=()=>r.useContext(s);var l=n(5945);const u=r.createContext(!1),c=()=>r.useContext(u);u.Provider;var f=n(4798);const h=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},d=e=>{r.useEffect((()=>{e.clearReset()}),[e])},p=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,f.L)(n,[e.error,r]),m=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},g=(e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n),v=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function y(e,t){const n=(0,l.NL)({context:e.context}),s=c(),u=a(),f=n.defaultQueryOptions(e);f._optimisticResults=s?"isRestoring":"optimistic",f.onError&&(f.onError=o.V.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=o.V.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=o.V.batchCalls(f.onSettled)),m(f),h(f,u),d(u);const[y]=r.useState((()=>new t(n,f))),b=y.getOptimisticResult(f);if((0,i.$)(r.useCallback((e=>s?()=>{}:y.subscribe(o.V.batchCalls(e))),[y,s]),(()=>y.getCurrentResult()),(()=>y.getCurrentResult())),r.useEffect((()=>{y.setOptions(f,{listeners:!1})}),[f,y]),g(f,b,s))throw v(f,y,u);if(p({result:b,errorResetBoundary:u,useErrorBoundary:f.useErrorBoundary,query:y.getCurrentQuery()}))throw b.error;return f.notifyOnChangeProps?b:y.trackResult(b)}},8596:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(2161),i=n(2924),o=n(9499);class s extends i.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,o.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,s,a,l;const{state:u}=e,c=super.createResult(e,t),{isFetching:f,isRefetching:h}=c,d=f&&"forward"===(null==(n=u.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),p=f&&"backward"===(null==(i=u.fetchMeta)||null==(s=i.fetchMore)?void 0:s.direction);return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.Qy)(t,null==(a=u.data)?void 0:a.pages),hasPreviousPage:(0,o.ZF)(t,null==(l=u.data)?void 0:l.pages),isFetchingNextPage:d,isFetchingPreviousPage:p,isRefetching:h&&!d&&!p}}}var a=n(5079);function l(e,t,n){const i=(0,r._v)(e,t,n);return(0,a.r)(i,s)}},4469:(e,t,n)=>{"use strict";n.d(t,{D:()=>h});var r=n(7294),i=n(464),o=n(2161),s=n(9886),a=n(81),l=n(3989);class u extends l.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),(0,o.VS)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.listeners.length||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:(0,s.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){a.V.batch((()=>{var t,n,r,i;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var o,s,a,l;null==(o=(s=this.mutateOptions).onError)||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(l=this.mutateOptions).onSettled)||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((e=>{e(this.currentResult)}))}))}}var c=n(5945),f=n(4798);function h(e,t,n){const s=(0,o.lV)(e,t,n),l=(0,c.NL)({context:s.context}),[h]=r.useState((()=>new u(l,s)));r.useEffect((()=>{h.setOptions(s)}),[h,s]);const p=(0,i.$)(r.useCallback((e=>h.subscribe(a.V.batchCalls(e))),[h]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),m=r.useCallback(((e,t)=>{h.mutate(e,t).catch(d)}),[h]);if(p.error&&(0,f.L)(h.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:m,mutateAsync:p.mutate}}function d(){}},6492:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(2161),i=n(2924),o=n(5079);function s(e,t,n){const s=(0,r._v)(e,t,n);return(0,o.r)(s,i.z)}},464:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});const r=n(1688).useSyncExternalStore},4798:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}n.d(t,{L:()=>r})},2861:(e,t,n)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{Z:()=>Ie});const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),e=>{const t=i.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const l=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:c}=Array,f=u("undefined"),h=l("ArrayBuffer"),d=u("string"),p=u("function"),m=u("number"),g=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==s(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=l("Date"),b=l("File"),w=l("Blob"),x=l("FileList"),S=l("URLSearchParams");function k(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),c(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!f(e)&&e!==O,E=(A="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>A&&e instanceof A);var A;const M=l("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T=l("RegExp"),P=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,((n,i)=>{!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},D="abcdefghijklmnopqrstuvwxyz",j="0123456789",N={DIGIT:j,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+j},I={isArray:c,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||p(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:d,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:v,isUndefined:f,isDate:y,isFile:b,isBlob:w,isRegExp:T,isFunction:p,isStream:e=>g(e)&&p(e.pipe),isURLSearchParams:S,isTypedArray:E,isFileList:x,forEach:k,merge:function e(){const{caseless:t}=_(this)&&this||{},n={},r=(r,i)=>{const o=t&&C(n,i)||i;v(n[o])&&v(r)?n[o]=e(n[o],r):v(r)?n[o]=e({},r):c(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(k(t,((t,i)=>{n&&p(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,s,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:P,freezeMethods:e=>{P(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];p(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:C,global:O,isContextDefined:_,ALPHABET:N,generateString:(e=16,t=N.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=c(e)?[]:{};return k(e,((e,t)=>{const o=n(e,r+1);!f(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)}};function L(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}I.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F=L.prototype,B={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{B[e]={value:e}})),Object.defineProperties(L,B),Object.defineProperty(F,"isAxiosError",{value:!0}),L.from=(e,t,n,r,i,o)=>{const s=Object.create(F);return I.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),L.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const z=L;function U(e){return I.isPlainObject(e)||I.isArray(e)}function V(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=V(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const H=I.toFlatObject(I,{},null,(function(e){return/^is[A-Z]/.test(e)})),$=function(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!I.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!a&&I.isBlob(e))throw new z("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(I.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(I.isArray(e)&&function(e){return I.isArray(e)&&!e.some(U)}(e)||(I.isFileList(e)||I.endsWith(n,"[]"))&&(a=I.toArray(e)))return n=V(n),a.forEach((function(e,r){!I.isUndefined(e)&&null!==e&&t.append(!0===s?W([n],r,o):null===s?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(W(i,n,o),l(e)),!1)}const c=[],f=Object.assign(H,{defaultVisitor:u,convertValue:l,isVisitable:U});if(!I.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!I.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),I.forEach(n,(function(n,o){!0===(!(I.isUndefined(n)||null===n)&&i.call(t,n,I.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t};function q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function K(e,t){this._pairs=[],e&&$(e,this,t)}const Q=K.prototype;Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,q)}:q;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const G=K;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X(e,t,n){if(!t)return e;const r=n&&n.encode||J,i=n&&n.serialize;let o;if(o=i?i(t,n):I.isURLSearchParams(t)?t.toString():new G(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const Y=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:G,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},te=function(e){function t(e,n,r,i){let o=e[i++];const s=Number.isFinite(+o),a=i>=e.length;return o=!o&&I.isArray(r)?r.length:o,a?(I.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s):(r[o]&&I.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&I.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,((e,r)=>{t(function(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ne={"Content-Type":void 0},re={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=I.isObject(e);if(i&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return r&&r?JSON.stringify(te(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ee.isNode&&I.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(I.isString(e))try{return(0,JSON.parse)(e),I.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||re.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&I.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw z.from(e,z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],(function(e){re.headers[e]={}})),I.forEach(["post","put","patch"],(function(e){re.headers[e]=I.merge(ne)}));const ie=re,oe=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),se=Symbol("internals");function ae(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:I.isArray(e)?e.map(le):String(e)}function ue(e,t,n,r,i){return I.isFunction(r)?r.call(this,t,n):(i&&(t=n),I.isString(t)?I.isString(r)?-1!==t.indexOf(r):I.isRegExp(r)?r.test(t):void 0:void 0)}class ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=ae(t);if(!i)throw new Error("header name must be a non-empty string");const o=I.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=le(e))}const o=(e,t)=>I.forEach(e,((e,n)=>i(e,n,t)));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&oe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=ae(e)){const n=I.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(I.isFunction(t))return t.call(this,e,n);if(I.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ae(e)){const n=I.findKey(this,e);return!(!n||void 0===this[n]||t&&!ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=ae(e)){const i=I.findKey(n,e);!i||t&&!ue(0,n[i],i,t)||(delete n[i],r=!0)}}return I.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!ue(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return I.forEach(this,((r,i)=>{const o=I.findKey(n,i);if(o)return t[o]=le(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=le(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return I.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&I.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[se]=this[se]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ae(e);t[r]||(function(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return I.isArray(e)?e.forEach(r):r(e),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.freezeMethods(ce.prototype),I.freezeMethods(ce);const fe=ce;function he(e,t){const n=this||ie,r=t||n,i=fe.from(r.headers);let o=r.data;return I.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function de(e){return!(!e||!e.__CANCEL__)}function pe(e,t,n){z.call(this,null==e?"canceled":e,z.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(pe,z,{__CANCEL__:!0});const me=pe,ge=ee.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),I.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),I.isString(r)&&s.push("path="+r),I.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ve(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ye=ee.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=I.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function be(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=r[s];i||(i=l),n[o]=a,r[o]=l;let c=s,f=0;for(;c!==o;)f+=n[c++],c%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const h=u&&l-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a);n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const we={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=fe.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}I.isFormData(r)&&(ee.isStandardBrowserEnv||ee.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const u=ve(e.baseURL,e.url);function c(){if(!l)return;const r=fe.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),X(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new z("Request aborted",z.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new z("Network Error",z.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new z(t,r.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,l)),l=null},ee.isStandardBrowserEnv){const t=(e.withCredentials||ye(u))&&e.xsrfCookieName&&ge.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in l&&I.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),I.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",be(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",be(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new me(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===ee.protocols.indexOf(f)?n(new z("Unsupported protocol "+f+":",z.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};I.forEach(we,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function xe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new me(null,e)}function Se(e){return xe(e),e.headers=fe.from(e.headers),e.data=he.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=I.isString(n)?we[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new z(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(I.hasOwnProp(we,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!I.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||ie.adapter)(e).then((function(t){return xe(e),t.data=he.call(e,e.transformResponse,t),t.headers=fe.from(t.headers),t}),(function(t){return de(t)||(xe(e),t&&t.response&&(t.response.data=he.call(e,e.transformResponse,t.response),t.response.headers=fe.from(t.response.headers))),Promise.reject(t)}))}const ke=e=>e instanceof fe?e.toJSON():e;function Ce(e,t){t=t||{};const n={};function r(e,t,n){return I.isPlainObject(e)&&I.isPlainObject(t)?I.merge.call({caseless:n},e,t):I.isPlainObject(t)?I.merge({},t):I.isArray(t)?t.slice():t}function i(e,t,n){return I.isUndefined(t)?I.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!I.isUndefined(t))return r(void 0,t)}function s(e,t){return I.isUndefined(t)?I.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(ke(e),ke(t),!0)};return I.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const o=l[r]||i,s=o(e[r],t[r],r);I.isUndefined(s)&&o!==a||(n[r]=s)})),n}const Oe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Oe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const _e={};Oe.transitional=function(e,t,n){function r(e,t){return"[Axios v1.3.5] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new z(r(i," has been removed"+(t?" in "+t:"")),z.ERR_DEPRECATED);return t&&!_e[i]&&(_e[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const Ee={assertOptions:function(e,t,n){if("object"!=typeof e)throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new z("option "+o+" must be "+n,z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new z("Unknown option "+o,z.ERR_BAD_OPTION)}},validators:Oe},Ae=Ee.validators;class Me{constructor(e){this.defaults=e,this.interceptors={request:new Y,response:new Y}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;let o;void 0!==n&&Ee.assertOptions(n,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean)},!1),null!=r&&(I.isFunction(r)?t.paramsSerializer={serialize:r}:Ee.assertOptions(r,{encode:Ae.function,serialize:Ae.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=i&&I.merge(i.common,i[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=fe.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,f=0;if(!a){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);f<c;)u=u.then(e[f++],e[f++]);return u}c=s.length;let h=t;for(f=0;f<c;){const e=s[f++],t=s[f++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=Se.call(this,h)}catch(e){return Promise.reject(e)}for(f=0,c=l.length;f<c;)u=u.then(l[f++],l[f++]);return u}getUri(e){return X(ve((e=Ce(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}I.forEach(["delete","get","head","options"],(function(e){Me.prototype[e]=function(t,n){return this.request(Ce(n||{},{method:e,url:t,data:(n||{}).data}))}})),I.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ce(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Me.prototype[e]=t(),Me.prototype[e+"Form"]=t(!0)}));const Re=Me;class Te{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new me(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Te((function(t){e=t})),cancel:e}}}const Pe=Te,De={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(De).forEach((([e,t])=>{De[t]=e}));const je=De,Ne=function e(t){const n=new Re(t),i=r(Re.prototype.request,n);return I.extend(i,Re.prototype,n,{allOwnKeys:!0}),I.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ce(t,n))},i}(ie);Ne.Axios=Re,Ne.CanceledError=me,Ne.CancelToken=Pe,Ne.isCancel=de,Ne.VERSION="1.3.5",Ne.toFormData=$,Ne.AxiosError=z,Ne.Cancel=Ne.CanceledError,Ne.all=function(e){return Promise.all(e)},Ne.spread=function(e){return function(t){return e.apply(null,t)}},Ne.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},Ne.mergeConfig=Ce,Ne.AxiosHeaders=fe,Ne.formToJSON=e=>te(I.isHTMLForm(e)?new FormData(e):e),Ne.HttpStatusCode=je,Ne.default=Ne;const Ie=Ne},2902:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[H]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[W]||!!(null===(t=e.constructor)||void 0===t?void 0:t[W])||f(e)||h(e))}function s(e){return i(e)||r(23,e),e[H].t}function a(e,t,n){void 0===n&&(n=!1),0===l(e)?(n?Object.keys:q)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function l(e){var t=e[H];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:h(e)?3:0}function u(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t,n){var r=l(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e){return B&&e instanceof Map}function h(e){return z&&e instanceof Set}function d(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[H];for(var n=q(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),v(e)||i(e)||!o(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0)),e}function g(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=Q[e];return t||r(18,e),t}function b(){return L}function w(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function x(e){S(e),e.p.forEach(C),e.p=null}function S(e){e===L&&(L=e.l)}function k(e){return L={p:[],l:L,h:e,m:!0,_:0}}function C(e){var t=e[H];0===t.i||1===t.i?t.j():t.g=!0}function O(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||y("ES5").S(t,e,i),i?(n[H].P&&(x(t),r(4)),o(e)&&(e=_(t,e),t.l||A(t,e)),t.u&&y("Patches").M(n[H].t,e,t.u,t.s)):e=_(t,n,[]),x(t),t.u&&t.v(t.u,t.s),e!==V?e:void 0}function _(e,t,n){if(v(t))return t;var r=t[H];if(!r)return a(t,(function(i,o){return E(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return A(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=p(r.k):r.o,o=i,s=!1;3===r.i&&(o=new Set(i),i.clear(),s=!0),a(o,(function(t,o){return E(e,r,i,t,o,n,s)})),A(e,i,!1),n&&e.u&&y("Patches").N(r,n,e.u,e.s)}return r.o}function E(e,t,n,r,s,a,l){if(i(s)){var f=_(e,s,a&&t&&3!==t.i&&!u(t.R,r)?a.concat(r):void 0);if(c(n,r,f),!i(f))return;e.m=!1}else l&&n.add(s);if(o(s)&&!v(s)){if(!e.h.D&&e._<1)return;_(e,s),t&&t.A.l||A(e,s)}}function A(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function M(e,t){var n=e[H];return(n?d(n):e)[t]}function R(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function P(e){e.o||(e.o=p(e.t))}function D(e,t,n){var r=f(t)?y("MapSet").F(t,n):h(t)?y("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:b(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=G;n&&(i=[r],o=J);var s=Proxy.revocable(i,o),a=s.revoke,l=s.proxy;return r.k=l,r.j=a,l}(t,n):y("ES5").J(t,n);return(n?n.A:b()).p.push(r),r}function j(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[H],i=l(t);if(r){if(!r.P&&(r.i<4||!y("ES5").K(r)))return r.t;r.I=!0,n=N(t,i),r.I=!1}else n=N(t,i);return a(n,(function(t,i){r&&function(e,t){return 2===l(e)?e.get(t):e[t]}(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}n.d(t,{Fl:()=>ee,Js:()=>s,Uy:()=>Z,ZP:()=>te,mv:()=>i});var I,L,F="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,z="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=F?Symbol.for("immer-nothing"):((I={})["immer-nothing"]=!0,I),W=F?Symbol.for("immer-draftable"):"__$immer_draftable",H=F?Symbol.for("immer-state"):"__$immer_state",$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return q(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Q={},G={get:function(e,t){if(t===H)return e;var n=d(e);if(!u(n,t))return function(e,t,n){var r,i=R(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===M(e.t,t)?(P(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,n){var r=R(d(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=M(d(e),t),o=null==i?void 0:i[H];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||u(e.t,t)))return!0;P(e),T(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==M(e.t,t)||t in e.t?(e.R[t]=!1,P(e),T(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=d(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},J={};a(G,(function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),J.deleteProperty=function(e,t){return J.set.call(this,e,t,void 0)},J.set=function(e,t,n){return G.set.call(this,e[0],t,n,e[0])};var X=function(){function e(e){var t=this;this.O=U,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var s=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=s);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var l;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var u=k(t),c=D(t,e,void 0),f=!0;try{l=n(c),f=!1}finally{f?x(u):S(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return w(u,i),O(e,u)}),(function(e){throw x(u),e})):(w(u,i),O(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===V&&(l=void 0),t.D&&m(l,!0),i){var h=[],d=[];y("Patches").M(e,l,h,d),i(h,d)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=j(e));var t=k(this),n=D(this,e,void 0);return n[H].C=!0,S(t),n},t.finishDraft=function(e,t){var n=(e&&e[H]).A;return w(n,t),O(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!U&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=y("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Y=new X,Z=Y.produce,ee=(Y.produceWithPatches.bind(Y),Y.setAutoFreeze.bind(Y));Y.setUseProxies.bind(Y),Y.applyPatches.bind(Y),Y.createDraft.bind(Y),Y.finishDraft.bind(Y);const te=Z},5651:(e,t,n)=>{"use strict";n.d(t,{Jg:()=>A});var r=n(7294);function i(){return(i=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}).apply(this,arguments)}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function s(e){var t=(0,r.useRef)(e),n=(0,r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},l=function(e){return"touches"in e},u=function(e){return e&&e.ownerDocument.defaultView||self},c=function(e,t,n){var r=e.getBoundingClientRect(),i=l(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:a((i.pageX-(r.left+u(e).pageXOffset))/r.width),top:a((i.pageY-(r.top+u(e).pageYOffset))/r.height)}},f=function(e){!l(e)&&e.preventDefault()},h=r.memo((function(e){var t=e.onMove,n=e.onKey,a=o(e,["onMove","onKey"]),h=(0,r.useRef)(null),d=s(t),p=s(n),m=(0,r.useRef)(null),g=(0,r.useRef)(!1),v=(0,r.useMemo)((function(){var e=function(e){f(e),(l(e)?e.touches.length>0:e.buttons>0)&&h.current?d(c(h.current,e,m.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=g.current,i=u(h.current),o=n?i.addEventListener:i.removeEventListener;o(r?"touchmove":"mousemove",e),o(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=h.current;if(r&&(f(t),!function(e,t){return t&&!l(e)}(t,g.current)&&r)){if(l(t)){g.current=!0;var i=t.changedTouches||[];i.length&&(m.current=i[0].identifier)}r.focus(),d(c(r,t,m.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),p({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[p,d]),y=v[0],b=v[1],w=v[2];return(0,r.useEffect)((function(){return w}),[w]),r.createElement("div",i({},a,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:h,onKeyDown:b,tabIndex:0,role:"slider"}))})),d=function(e){return e.filter(Boolean).join(" ")},p=function(e){var t=e.color,n=e.left,i=e.top,o=void 0===i?.5:i,s=d(["react-colorful__pointer",e.className]);return r.createElement("div",{className:s,style:{top:100*o+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},m=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},g=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:m(e.h),s:m(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:m(i/2),a:m(r,2)}}),v=function(e){var t=g(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},y=function(e){var t=g(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},b=r.memo((function(e){var t=e.hue,n=e.onChange,i=d(["react-colorful__hue",e.className]);return r.createElement("div",{className:i},r.createElement(h,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:a(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":m(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:v({h:t,s:100,v:100,a:1})})))})),w=r.memo((function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:v({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:i},r.createElement(h,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:a(t.s+100*e.left,0,100),v:a(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+m(t.s)+"%, Brightness "+m(t.v)+"%"},r.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:v(t)})))})),x=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function S(e,t,n){var i=s(n),o=(0,r.useState)((function(){return e.toHsva(t)})),a=o[0],l=o[1],u=(0,r.useRef)({color:t,hsva:a});(0,r.useEffect)((function(){if(!e.equal(t,u.current.color)){var n=e.toHsva(t);u.current={hsva:n,color:t},l(n)}}),[t,e]),(0,r.useEffect)((function(){var t;x(a,u.current.hsva)||e.equal(t=e.fromHsva(a),u.current.color)||(u.current={hsva:a,color:t},i(t))}),[a,e,i]);var c=(0,r.useCallback)((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[a,c]}var k="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,C=new Map,O=function(e){var t=e.className,n=e.hsva,i=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+y(Object.assign({},n,{a:0}))+", "+y(Object.assign({},n,{a:1}))+")"},s=d(["react-colorful__alpha",t]),l=m(100*n.a);return r.createElement("div",{className:s},r.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),r.createElement(h,{onMove:function(e){i({a:e.left})},onKey:function(e){i({a:a(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:y(n)})))},_=function(e){var t,s=e.className,a=e.colorModel,l=e.color,u=void 0===l?a.defaultColor:l,c=e.onChange,f=o(e,["className","colorModel","color","onChange"]),h=(0,r.useRef)(null);t=h,k((function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!C.has(e)){var r=e.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',C.set(e,r);var i=n.nc;i&&r.setAttribute("nonce",i),e.head.appendChild(r)}}),[]);var p=S(a,u,c),m=p[0],g=p[1],v=d(["react-colorful",s]);return r.createElement("div",i({},f,{ref:h,className:v}),r.createElement(w,{hsva:m,onChange:g}),r.createElement(b,{hue:m.h,onChange:g}),r.createElement(O,{hsva:m,onChange:g,className:"react-colorful__last-control"}))},E={defaultColor:{r:0,g:0,b:0,a:1},toHsva:function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:m(60*(a<0?a+6:a)),s:m(o?s/o*100:0),v:m(o/255*100),a:i}},fromHsva:function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%6;return{r:m(255*[r,a,s,s,l,r][u]),g:m(255*[l,r,r,a,s,s][u]),b:m(255*[s,s,l,r,r,a][u]),a:m(i,2)}},equal:x},A=function(e){return r.createElement(_,i({},e,{colorModel:E}))}},7536:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>pe,Gc:()=>S,Qr:()=>I,RV:()=>k,cI:()=>Ne,qo:()=>P});var r=n(7294),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,s=e=>null==e;const a=e=>"object"==typeof e;var l=e=>!s(e)&&!Array.isArray(e)&&a(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),f=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function d(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(h&&(e instanceof Blob||e instanceof FileList)||!n&&!l(e))return e;if(t=n?[]:{},Array.isArray(e)||f(e))for(const n in e)t[n]=d(e[n]);else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;const r=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>s(e)?e:e[t]),e);return m(r)||r===e?m(e[t])?n:e[t]:r};const v={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},y={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b="pattern",w="required",x=r.createContext(null),S=()=>r.useContext(x),k=e=>{const{children:t,...n}=e;return r.createElement(x.Provider,{value:n},t)};var C=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==y.all&&(t._proxyFormState[i]=!r||y.all),n&&(n[i]=!0),e[i]}});return i},O=e=>l(e)&&!Object.keys(e).length,_=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return O(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||y.all)))},E=e=>Array.isArray(e)?e:[e],A=(e,t,n)=>n&&t?e===t:!e||!t||e===t||E(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function M(e){const t=r.useRef(e);t.current=e,r.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var R=e=>"string"==typeof e,T=(e,t,n,r,i)=>R(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),g(n,e)))):(r&&(t.watchAll=!0),n);function P(e){const t=S(),{control:n=t.control,name:i,defaultValue:o,disabled:s,exact:a}=e||{},l=r.useRef(i);l.current=i,M({disabled:s,subject:n._subjects.values,next:e=>{A(l.current,e.name,a)&&c(d(T(l.current,n._names,e.values||n._formValues,!1,o)))}});const[u,c]=r.useState(n._getWatch(i,o));return r.useEffect((()=>n._removeUnmounted())),u}var D=e=>/^\w*$/.test(e),j=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,n){let r=-1;const i=D(t)?[t]:j(t),o=i.length,s=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==s){const n=e[t];o=l(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=o,e=e[t]}return e}const I=e=>e.render(function(e){const t=S(),{name:n,control:i=t.control,shouldUnregister:o}=e,s=c(i._names.array,n),a=P({control:i,name:n,defaultValue:g(i._formValues,n,g(i._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=S(),{control:n=t.control,disabled:i,name:o,exact:s}=e||{},[a,l]=r.useState(n._formState),u=r.useRef(!0),c=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=r.useRef(o);return f.current=o,M({disabled:i,next:e=>u.current&&A(f.current,e.name,s)&&_(e,c.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),r.useEffect((()=>(u.current=!0,c.current.isValid&&n._updateValid(!0),()=>{u.current=!1})),[n]),C(a,n,c.current,!1)}({control:i,name:n}),f=r.useRef(i.register(n,{...e.rules,value:a}));return r.useEffect((()=>{const e=i._options.shouldUnregister||o,t=(e,t)=>{const n=g(i._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=d(g(i._options.defaultValues,n));N(i._defaultValues,n,e),m(g(i._formValues,n))&&N(i._formValues,n,e)}return()=>{(s?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,s,o]),{field:{name:n,value:a,onChange:r.useCallback((e=>f.current.onChange({target:{value:u(e),name:n},type:v.CHANGE})),[n]),onBlur:r.useCallback((()=>f.current.onBlur({target:{value:g(i._formValues,n),name:n},type:v.BLUR})),[n,i]),ref:e=>{const t=g(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!g(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!g(l.touchedFields,n)},error:{enumerable:!0,get:()=>g(l.errors,n)}})}}(e));var L=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const F=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=g(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&F(r,t)}}};var B=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)}))},z=(e,t,n={})=>n.shouldFocus||m(n.shouldFocus)?n.focusName||`${e}.${m(n.focusIndex)?t:n.focusIndex}.`:"",U=e=>({isOnSubmit:!e||e===y.onSubmit,isOnBlur:e===y.onBlur,isOnChange:e===y.onChange,isOnAll:e===y.all,isOnTouch:e===y.onTouched}),V=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),W=(e,t,n)=>{const r=p(g(e,n));return N(r,"root",t[n]),N(e,n,r),e},H=e=>"boolean"==typeof e,$=e=>"file"===e.type,q=e=>"function"==typeof e,K=e=>{if(!h)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>R(e),G=e=>"radio"===e.type,J=e=>e instanceof RegExp;const X={value:!1,isValid:!1},Y={value:!0,isValid:!0};var Z=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?Y:{value:e[0].value,isValid:!0}:Y:X}return X};const ee={isValid:!1,value:null};var te=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ee):ee;function ne(e,t,n="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||H(e)&&!e)return{type:n,message:Q(e)?e:"",ref:t}}var re=e=>l(e)&&!J(e)?e:{value:e,message:""},ie=async(e,t,n,r,o)=>{const{ref:a,refs:u,required:c,maxLength:f,minLength:h,min:d,max:p,pattern:v,validate:y,name:x,valueAsNumber:S,mount:k,disabled:C}=e._f,_=g(t,x);if(!k||C)return{};const E=u?u[0]:a,A=e=>{r&&E.reportValidity&&(E.setCustomValidity(H(e)?"":e||""),E.reportValidity())},M={},T=G(a),P=i(a),D=T||P,j=(S||$(a))&&m(a.value)&&m(_)||K(a)&&""===a.value||""===_||Array.isArray(_)&&!_.length,N=L.bind(null,x,n,M),I=(e,t,n,r="maxLength",i="minLength")=>{const o=e?t:n;M[x]={type:e?r:i,message:o,ref:a,...N(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!D&&(j||s(_))||H(_)&&!_||P&&!Z(u).isValid||T&&!te(u).isValid)){const{value:e,message:t}=Q(c)?{value:!!c,message:c}:re(c);if(e&&(M[x]={type:w,message:t,ref:E,...N(w,t)},!n))return A(t),M}if(!(j||s(d)&&s(p))){let e,t;const r=re(p),i=re(d);if(s(_)||isNaN(_)){const n=a.valueAsDate||new Date(_),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;R(r.value)&&_&&(e=s?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),R(i.value)&&_&&(t=s?o(_)<o(i.value):l?_<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(_?+_:_);s(r.value)||(e=n>r.value),s(i.value)||(t=n<i.value)}if((e||t)&&(I(!!e,r.message,i.message,"max","min"),!n))return A(M[x].message),M}if((f||h)&&!j&&(R(_)||o&&Array.isArray(_))){const e=re(f),t=re(h),r=!s(e.value)&&_.length>+e.value,i=!s(t.value)&&_.length<+t.value;if((r||i)&&(I(r,e.message,t.message),!n))return A(M[x].message),M}if(v&&!j&&R(_)){const{value:e,message:t}=re(v);if(J(e)&&!_.match(e)&&(M[x]={type:b,message:t,ref:a,...N(b,t)},!n))return A(t),M}if(y)if(q(y)){const e=ne(await y(_,t),E);if(e&&(M[x]={...e,...N("validate",e.message)},!n))return A(e.message),M}else if(l(y)){let e={};for(const r in y){if(!O(e)&&!n)break;const i=ne(await y[r](_,t),E,r);i&&(e={...i,...N(r,i.message)},A(i.message),n&&(M[x]=e))}if(!O(e)&&(M[x]={ref:E,...e},!n))return M}return A(!0),M};function oe(e,t){return[...e,...E(t)]}var se=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ae(e,t,n){return[...e.slice(0,t),...E(n),...e.slice(t)]}var le=(e,t,n)=>Array.isArray(e)?(m(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[];function ue(e,t){return[...E(t),...E(e)]}var ce=(e,t)=>m(t)?[]:function(e,t){let n=0;const r=[...e];for(const e of t)r.splice(e-n,1),n++;return p(r).length?r:[]}(e,E(t).sort(((e,t)=>e-t))),fe=(e,t,n)=>{e[t]=[e[n],e[n]=e[t]][0]};function he(e,t){const n=Array.isArray(t)?t:D(t)?[t]:j(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=m(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(l(r)&&O(r)||Array.isArray(r)&&function(e){for(const t in e)if(!m(e[t]))return!1;return!0}(r))&&he(e,n.slice(0,-1)),e}var de=(e,t,n)=>(e[t]=n,e);function pe(e){const t=S(),{control:n=t.control,name:i,keyName:o="id",shouldUnregister:s}=e,[a,l]=r.useState(n._getFieldArray(i)),u=r.useRef(n._getFieldArray(i).map(B)),c=r.useRef(a),f=r.useRef(i),h=r.useRef(!1);f.current=i,c.current=a,n._names.array.add(i),e.rules&&n.register(i,e.rules),M({next:({values:e,name:t})=>{if(t===f.current||!t){const t=g(e,f.current);Array.isArray(t)&&(l(t),u.current=t.map(B))}},subject:n._subjects.array});const p=r.useCallback((e=>{h.current=!0,n._updateFieldArray(i,e)}),[n,i]);return r.useEffect((()=>{if(n._state.action=!1,V(i,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!U(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([i]).then((e=>{const t=g(e.errors,i),r=g(n._formState.errors,i);(r?!t&&r.type:t&&t.type)&&(t?N(n._formState.errors,i,t):he(n._formState.errors,i),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=g(n._fields,i);e&&e._f&&ie(e,n._formValues,n._options.criteriaMode===y.all,n._options.shouldUseNativeValidation,!0).then((e=>!O(e)&&n._subjects.state.next({errors:W(n._formState.errors,e,i)})))}n._subjects.values.next({name:i,values:{...n._formValues}}),n._names.focus&&F(n._fields,(e=>!!e&&e.startsWith(n._names.focus||""))),n._names.focus="",n._updateValid()}),[a,i,n]),r.useEffect((()=>(!g(n._formValues,i)&&n._updateFieldArray(i),()=>{(n._options.shouldUnregister||s)&&n.unregister(i)})),[i,n,o,s]),{swap:r.useCallback(((e,t)=>{const r=n._getFieldArray(i);fe(r,e,t),fe(u.current,e,t),p(r),l(r),n._updateFieldArray(i,r,fe,{argA:e,argB:t},!1)}),[p,i,n]),move:r.useCallback(((e,t)=>{const r=n._getFieldArray(i);le(r,e,t),le(u.current,e,t),p(r),l(r),n._updateFieldArray(i,r,le,{argA:e,argB:t},!1)}),[p,i,n]),prepend:r.useCallback(((e,t)=>{const r=E(d(e)),o=ue(n._getFieldArray(i),r);n._names.focus=z(i,0,t),u.current=ue(u.current,r.map(B)),p(o),l(o),n._updateFieldArray(i,o,ue,{argA:se(e)})}),[p,i,n]),append:r.useCallback(((e,t)=>{const r=E(d(e)),o=oe(n._getFieldArray(i),r);n._names.focus=z(i,o.length-1,t),u.current=oe(u.current,r.map(B)),p(o),l(o),n._updateFieldArray(i,o,oe,{argA:se(e)})}),[p,i,n]),remove:r.useCallback((e=>{const t=ce(n._getFieldArray(i),e);u.current=ce(u.current,e),p(t),l(t),n._updateFieldArray(i,t,ce,{argA:e})}),[p,i,n]),insert:r.useCallback(((e,t,r)=>{const o=E(d(t)),s=ae(n._getFieldArray(i),e,o);n._names.focus=z(i,e,r),u.current=ae(u.current,e,o.map(B)),p(s),l(s),n._updateFieldArray(i,s,ae,{argA:e,argB:se(t)})}),[p,i,n]),update:r.useCallback(((e,t)=>{const r=d(t),o=de(n._getFieldArray(i),e,r);u.current=[...o].map(((t,n)=>t&&n!==e?u.current[n]:B())),p(o),l([...o]),n._updateFieldArray(i,o,de,{argA:e,argB:r},!0,!1)}),[p,i,n]),replace:r.useCallback((e=>{const t=E(d(e));u.current=t.map(B),p([...t]),l([...t]),n._updateFieldArray(i,[...t],(e=>e),{},!0,!1)}),[p,i,n]),fields:r.useMemo((()=>a.map(((e,t)=>({...e,[o]:u.current[t]||B()})))),[a,o])}}function me(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var ge=e=>s(e)||!a(e);function ve(e,t){if(ge(e)||ge(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!ve(n,e):n!==e)return!1}}return!0}var ye=e=>"select-multiple"===e.type,be=e=>G(e)||i(e),we=e=>K(e)&&e.isConnected,xe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function Se(e,t={}){const n=Array.isArray(e);if(l(e)||n)for(const n in e)Array.isArray(e[n])||l(e[n])&&!xe(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Se(e[n],t[n])):s(e[n])||(t[n]=!0);return t}function ke(e,t,n){const r=Array.isArray(e);if(l(e)||r)for(const r in e)Array.isArray(e[r])||l(e[r])&&!xe(e[r])?m(t)||ge(n[r])?n[r]=Array.isArray(e[r])?Se(e[r],[]):{...Se(e[r])}:ke(e[r],s(t)?{}:t[r],n[r]):n[r]=!ve(e[r],t[r]);return n}var Ce=(e,t)=>ke(e,t,Se(t)),Oe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>m(e)?e:t?""===e?NaN:e?+e:e:n&&R(e)?new Date(e):r?r(e):e;function _e(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return $(t)?t.files:G(t)?te(e.refs).value:ye(t)?[...t.selectedOptions].map((({value:e})=>e)):i(t)?Z(e.refs).value:Oe(m(t.value)?e.ref.value:t.value,e)}var Ee=(e,t,n,r)=>{const i={};for(const n of e){const e=g(t,n);e&&N(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ae=e=>m(e)?e:J(e)?e.source:l(e)?J(e.value)?e.value.source:e.value:e,Me=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Re(e,t,n){const r=g(e,n);if(r||D(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=g(t,r),s=g(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(s&&s.type)return{name:r,error:s};i.pop()}return{name:n}}var Te=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),Pe=(e,t)=>!p(g(e,t)).length&&he(e,t);const De={mode:y.onSubmit,reValidateMode:y.onChange,shouldFocusError:!0};function je(e={},t){let n,r={...De,...e},a={submitCount:0,isDirty:!1,isLoading:q(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},f={},b=(l(r.defaultValues)||l(r.values))&&d(r.defaultValues||r.values)||{},w=r.shouldUnregister?{}:d(b),x={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={values:me(),array:me(),state:me()},A=e.resetOptions&&e.resetOptions.keepDirtyValues,M=U(r.mode),P=U(r.reValidateMode),D=r.criteriaMode===y.all,j=async e=>{if(C.isValid||e){const e=r.resolver?O((await z()).errors):await Q(f,!0);e!==a.isValid&&_.state.next({isValid:e})}},I=e=>C.isValidating&&_.state.next({isValidating:e}),L=(e,t,n,r)=>{const i=g(f,e);if(i){const o=g(w,e,m(n)?g(b,e):n);m(o)||r&&r.defaultChecked||t?N(w,e,t?o:_e(i._f)):X(e,o),x.mount&&j()}},B=(e,t,n,r,i)=>{let o=!1,s=!1;const l={name:e};if(!n||r){C.isDirty&&(s=a.isDirty,a.isDirty=l.isDirty=G(),o=s!==l.isDirty);const n=ve(g(b,e),t);s=g(a.dirtyFields,e),n?he(a.dirtyFields,e):N(a.dirtyFields,e,!0),l.dirtyFields=a.dirtyFields,o=o||C.dirtyFields&&s!==!n}if(n){const t=g(a.touchedFields,e);t||(N(a.touchedFields,e,n),l.touchedFields=a.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&_.state.next(l),o?l:{}},z=async e=>r.resolver(w,r.context,Ee(e||S.mount,f,r.criteriaMode,r.shouldUseNativeValidation)),Q=async(e,t,n={valid:!0})=>{for(const i in e){const o=e[i];if(o){const{_f:e,...i}=o;if(e){const i=S.array.has(e.name),s=await ie(o,w,D,r.shouldUseNativeValidation&&!t,i);if(s[e.name]&&(n.valid=!1,t))break;!t&&(g(s,e.name)?i?W(a.errors,s,e.name):N(a.errors,e.name,s[e.name]):he(a.errors,e.name))}i&&await Q(i,t,n)}}return n.valid},G=(e,t)=>(e&&t&&N(w,e,t),!ve(ne(),b)),J=(e,t,n)=>T(e,S,{...x.mount?w:m(t)?b:R(e)?{[e]:t}:t},n,t),X=(e,t,n={})=>{const r=g(f,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&N(w,e,Oe(t,n)),o=K(n.ref)&&s(t)?"":t,ye(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):$(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||_.values.next({name:e,values:{...w}})))}(n.shouldDirty||n.shouldTouch)&&B(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&te(e)},Y=(e,t,n)=>{for(const r in t){const i=t[r],s=`${e}.${r}`,a=g(f,s);!S.array.has(e)&&ge(i)&&(!a||a._f)||o(i)?X(s,i,n):Y(s,i,n)}},Z=(e,n,r={})=>{const i=g(f,e),o=S.array.has(e),l=d(n);N(w,e,l),o?(_.array.next({name:e,values:{...w}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&_.state.next({name:e,dirtyFields:Ce(b,w),isDirty:G(e,l)})):!i||i._f||s(l)?X(e,l,r):Y(e,l,r),V(e,S)&&_.state.next({...a}),_.values.next({name:e,values:{...w}}),!x.mount&&t()},ee=async t=>{const i=t.target;let o=i.name,s=!0;const l=g(f,o);if(l){let c,h;const d=i.type?_e(l._f):u(t),p=t.type===v.BLUR||t.type===v.FOCUS_OUT,m=!Me(l._f)&&!r.resolver&&!g(a.errors,o)&&!l._f.deps||Te(p,g(a.touchedFields,o),a.isSubmitted,P,M),y=V(o,S,p);N(w,o,d),p?(l._f.onBlur&&l._f.onBlur(t),n&&n(0)):l._f.onChange&&l._f.onChange(t);const b=B(o,d,p,!1),x=!O(b)||y;if(!p&&_.values.next({name:o,type:t.type,values:{...w}}),m)return C.isValid&&j(),x&&_.state.next({name:o,...y?{}:b});if(!p&&y&&_.state.next({...a}),I(!0),r.resolver){const{errors:e}=await z([o]),t=Re(a.errors,f,o),n=Re(e,f,t.name||o);c=n.error,o=n.name,h=O(e)}else c=(await ie(l,w,D,r.shouldUseNativeValidation))[o],s=isNaN(d)||d===g(w,o,d),s&&(c?h=!1:C.isValid&&(h=await Q(f,!0)));s&&(l._f.deps&&te(l._f.deps),((t,r,i,o)=>{const s=g(a.errors,t),l=C.isValid&&H(r)&&a.isValid!==r;var u;if(e.delayError&&i?(u=()=>((e,t)=>{N(a.errors,e,t),_.state.next({errors:a.errors})})(t,i),n=e=>{clearTimeout(k),k=setTimeout(u,e)},n(e.delayError)):(clearTimeout(k),n=null,i?N(a.errors,t,i):he(a.errors,t)),(i?!ve(s,i):s)||!O(o)||l){const e={...o,...l&&H(r)?{isValid:r}:{},errors:a.errors,name:t};a={...a,...e},_.state.next(e)}I(!1)})(o,h,c,b))}},te=async(e,t={})=>{let n,i;const o=E(e);if(I(!0),r.resolver){const t=await(async e=>{const{errors:t}=await z();if(e)for(const n of e){const e=g(t,n);e?N(a.errors,n,e):he(a.errors,n)}else a.errors=t;return t})(m(e)?e:o);n=O(t),i=e?!o.some((e=>g(t,e))):n}else e?(i=(await Promise.all(o.map((async e=>{const t=g(f,e);return await Q(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||a.isValid)&&j()):i=n=await Q(f);return _.state.next({...!R(e)||C.isValid&&n!==a.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:a.errors,isValidating:!1}),t.shouldFocus&&!i&&F(f,(e=>e&&g(a.errors,e)),e?o:S.mount),i},ne=e=>{const t={...b,...x.mount?w:{}};return m(e)?t:R(e)?g(t,e):e.map((e=>g(t,e)))},re=(e,t)=>({invalid:!!g((t||a).errors,e),isDirty:!!g((t||a).dirtyFields,e),isTouched:!!g((t||a).touchedFields,e),error:g((t||a).errors,e)}),oe=(e,t={})=>{for(const n of e?E(e):S.mount)S.mount.delete(n),S.array.delete(n),t.keepValue||(he(f,n),he(w,n)),!t.keepError&&he(a.errors,n),!t.keepDirty&&he(a.dirtyFields,n),!t.keepTouched&&he(a.touchedFields,n),!r.shouldUnregister&&!t.keepDefaultValue&&he(b,n);_.values.next({values:{...w}}),_.state.next({...a,...t.keepDirty?{isDirty:G()}:{}}),!t.keepIsValid&&j()},se=(e,t={})=>{let n=g(f,e);const i=H(t.disabled);return N(f,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),n?i&&N(w,e,t.disabled?void 0:g(w,e,_e(n._f))):L(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:Ae(t.min),max:Ae(t.max),minLength:Ae(t.minLength),maxLength:Ae(t.maxLength),pattern:Ae(t.pattern)}:{},name:e,onChange:ee,onBlur:ee,ref:i=>{if(i){se(e,t),n=g(f,e);const r=m(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=be(r),s=n._f.refs||[];if(o?s.find((e=>e===r)):r===n._f.ref)return;N(f,e,{_f:{...n._f,...o?{refs:[...s.filter(we),r,...Array.isArray(g(b,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),L(e,!1,void 0,r)}else n=g(f,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!c(S.array,e)||!x.action)&&S.unMount.add(e)}}},ae=()=>r.shouldFocusError&&F(f,(e=>e&&g(a.errors,e)),S.mount),le=(n,r={})=>{const i=n||b,o=d(i),s=n&&!O(n)?o:b;if(r.keepDefaultValues||(b=i),!r.keepValues){if(r.keepDirtyValues||A)for(const e of S.mount)g(a.dirtyFields,e)?N(s,e,g(w,e)):Z(e,g(s,e));else{if(h&&m(n))for(const e of S.mount){const t=g(f,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(K(e)){const t=e.closest("form");if(t){t.reset();break}}}}f={}}w=e.shouldUnregister?r.keepDefaultValues?d(b):{}:o,_.array.next({values:{...s}}),_.values.next({values:{...s}})}S={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!x.mount&&t(),x.mount=!C.isValid||!!r.keepIsValid,x.watch=!!e.shouldUnregister,_.state.next({submitCount:r.keepSubmitCount?a.submitCount:0,isDirty:r.keepDirty?a.isDirty:!(!r.keepDefaultValues||ve(n,b)),isSubmitted:!!r.keepIsSubmitted&&a.isSubmitted,dirtyFields:r.keepDirtyValues?a.dirtyFields:r.keepDefaultValues&&n?Ce(b,n):{},touchedFields:r.keepTouched?a.touchedFields:{},errors:r.keepErrors?a.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},ue=(e,t)=>le(q(e)?e(w):e,t);return{control:{register:se,unregister:oe,getFieldState:re,_executeSchema:z,_getWatch:J,_getDirty:G,_updateValid:j,_removeUnmounted:()=>{for(const e of S.unMount){const t=g(f,e);t&&(t._f.refs?t._f.refs.every((e=>!we(e))):!we(t._f.ref))&&oe(e)}S.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(x.action=!0,o&&Array.isArray(g(f,e))){const t=n(g(f,e),r.argA,r.argB);i&&N(f,e,t)}if(o&&Array.isArray(g(a.errors,e))){const t=n(g(a.errors,e),r.argA,r.argB);i&&N(a.errors,e,t),Pe(a.errors,e)}if(C.touchedFields&&o&&Array.isArray(g(a.touchedFields,e))){const t=n(g(a.touchedFields,e),r.argA,r.argB);i&&N(a.touchedFields,e,t)}C.dirtyFields&&(a.dirtyFields=Ce(b,w)),_.state.next({name:e,isDirty:G(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else N(w,e,t)},_getFieldArray:t=>p(g(x.mount?w:b,t,e.shouldUnregister?g(b,t,[]):[])),_reset:le,_resetDefaultValues:()=>q(r.defaultValues)&&r.defaultValues().then((e=>{ue(e,r.resetOptions),_.state.next({isLoading:!1})})),_updateFormState:e=>{a={...a,...e}},_subjects:_,_proxyFormState:C,get _fields(){return f},get _formValues(){return w},get _state(){return x},set _state(e){x=e},get _defaultValues(){return b},get _names(){return S},set _names(e){S=e},get _formState(){return a},set _formState(e){a=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:te,register:se,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=d(w);if(_.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await z();a.errors=e,i=t}else await Q(f);he(a.errors,"root"),O(a.errors)?(_.state.next({errors:{}}),await e(i,n)):(t&&await t({...a.errors},n),ae(),setTimeout(ae)),_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(a.errors),submitCount:a.submitCount+1,errors:a.errors})},watch:(e,t)=>q(e)?_.values.subscribe({next:n=>e(J(void 0,t),n)}):J(e,t,!0),setValue:Z,getValues:ne,reset:ue,resetField:(e,t={})=>{g(f,e)&&(m(t.defaultValue)?Z(e,g(b,e)):(Z(e,t.defaultValue),N(b,e,t.defaultValue)),t.keepTouched||he(a.touchedFields,e),t.keepDirty||(he(a.dirtyFields,e),a.isDirty=t.defaultValue?G(e,g(b,e)):G()),t.keepError||(he(a.errors,e),C.isValid&&j()),_.state.next({...a}))},clearErrors:e=>{e&&E(e).forEach((e=>he(a.errors,e))),_.state.next({errors:e?a.errors:{}})},unregister:oe,setError:(e,t,n)=>{const r=(g(f,e,{_f:{}})._f||{}).ref;N(a.errors,e,{...t,ref:r}),_.state.next({name:e,errors:a.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{const n=g(f,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:re}}function Ne(e={}){const t=r.useRef(),[n,i]=r.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...je(e,(()=>i((e=>({...e}))))),formState:n});const o=t.current.control;return o._options=e,M({subject:o._subjects.state,next:e=>{_(e,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),r.useEffect((()=>{e.values&&!ve(e.values,o._defaultValues)?o._reset(e.values,o._options.resetOptions):o._resetDefaultValues()}),[e.values,o]),r.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),t.current.formState=C(n,o),t.current}},8699:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||u)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[i]||new l(e)).mount(Array.isArray(t)?t:[t])}}let a=null;class l{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(a)return e.adoptedStyleSheets=[a.sheet,...e.adoptedStyleSheets],e[i]=a;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],a=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i],s=this.modules.indexOf(o);if(s<r&&s>-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;r<s;)n+=this.modules[r++].rules.length;n+=o.rules.length,r++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}},270:(e,t,n)=>{"use strict";n.d(t,{Ue:()=>l});const r=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,o),o};var i=n(7294),o=n(2798);const{useSyncExternalStoreWithSelector:s}=o,a=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?r(e):r)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=s(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},l=e=>e?a(e):a},782:(e,t,n)=>{"use strict";n.d(t,{mW:()=>o});const r=new Map,i=e=>{const t=r.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},o=(e,t={})=>(n,o,a)=>{const{enabled:l,anonymousActionType:u,store:c,...f}=t;let h;try{h=(null==l||l)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!h)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,o,a);const{connection:d,...p}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const i=r.get(n.name);if(i)return{type:"tracked",store:e,...i};const o={connection:t.connect(n),stores:{}};return r.set(n.name,o),{type:"tracked",store:e,...o}})(c,h,f);let m=!0;a.setState=(e,t,r)=>{const s=n(e,t);if(!m)return s;const l=void 0===r?{type:u||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===c?(null==d||d.send(l,o()),s):(null==d||d.send({...l,type:`${c}/${l.type}`},{...i(f.name),[c]:a.getState()}),s)};const g=(...e)=>{const t=m;m=!1,n(...e),m=t},v=e(a.setState,o,a);if("untracked"===p.type?null==d||d.init(v):(p.stores[p.store]=a,null==d||d.init(Object.fromEntries(Object.entries(p.stores).map((([e,t])=>[e,e===p.store?v:t.getState()]))))),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return d.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):s(e.payload,(e=>{if("__setState"!==e.type)a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e);else{if(void 0===c)return void g(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[c];if(null==t)return;JSON.stringify(a.getState())!==JSON.stringify(t)&&g(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return g(v),void 0===c?null==d?void 0:d.init(a.getState()):null==d?void 0:d.init(i(f.name));case"COMMIT":return void 0===c?void(null==d||d.init(a.getState())):null==d?void 0:d.init(i(f.name));case"ROLLBACK":return s(e.state,(e=>{if(void 0===c)return g(e),void(null==d||d.init(a.getState()));g(e[c]),null==d||d.init(i(f.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,(e=>{void 0!==c?JSON.stringify(a.getState())!==JSON.stringify(e[c])&&g(e[c]):g(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return g(void 0===c?r:r[c]),void(null==d||d.send(null,n))}case"PAUSE_RECORDING":return m=!m}return}})),v},s=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)}},8753:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(2902);const i=e=>(t,n,i)=>(i.setState=(e,n,...i)=>{const o="function"==typeof e?(0,r.Uy)(e):e;return t(o,n,...i)},e(i.setState,n,i))},6248:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}n.d(t,{X:()=>r})}}]);
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.3 |
proxy
|
phpinfo
|
Настройка